@farthershore/cli 0.3.14 → 0.3.16
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/index.js +178 -157
- package/dist/mcp.js +88 -88
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,101 +1,101 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __createRequire } from "node:module";const require=__createRequire(import.meta.url);
|
|
3
|
-
var
|
|
4
|
-
`)}displayWidth(
|
|
3
|
+
var Z$=Object.create;var _s=Object.defineProperty;var M$=Object.getOwnPropertyDescriptor;var q$=Object.getOwnPropertyNames;var F$=Object.getPrototypeOf,V$=Object.prototype.hasOwnProperty;var Ke=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var x=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),He=(e,t)=>{for(var n in t)_s(e,n,{get:t[n],enumerable:!0})},B$=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of q$(t))!V$.call(e,r)&&r!==n&&_s(e,r,{get:()=>t[r],enumerable:!(i=M$(t,r))||i.enumerable});return e};var Fr=(e,t,n)=>(n=e!=null?Z$(F$(e)):{},B$(t||!e||!e.__esModule?_s(n,"default",{value:e,enumerable:!0}):n,e));var Vr=x(ws=>{var wi=class extends Error{constructor(t,n,i){super(i),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=n,this.exitCode=t,this.nestedError=void 0}},$s=class extends wi{constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};ws.CommanderError=wi;ws.InvalidArgumentError=$s});var ki=x(xs=>{var{InvalidArgumentError:K$}=Vr(),ks=class{constructor(t,n){switch(this.description=n||"",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.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(t,n){return n===this.defaultValue||!Array.isArray(n)?[t]:n.concat(t)}default(t,n){return this.defaultValue=t,this.defaultValueDescription=n,this}argParser(t){return this.parseArg=t,this}choices(t){return this.argChoices=t.slice(),this.parseArg=(n,i)=>{if(!this.argChoices.includes(n))throw new K$(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(n,i):n},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function H$(e){let t=e.name()+(e.variadic===!0?"...":"");return e.required?"<"+t+">":"["+t+"]"}xs.Argument=ks;xs.humanReadableArgName=H$});var Os=x(Is=>{var{humanReadableArgName:J$}=ki(),Ss=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 n=t.commands.filter(r=>!r._hidden),i=t._getHelpCommand();return i&&!i._hidden&&n.push(i),this.sortSubcommands&&n.sort((r,o)=>r.name().localeCompare(o.name())),n}compareOptions(t,n){let i=r=>r.short?r.short.replace(/^-/,""):r.long.replace(/^--/,"");return i(t).localeCompare(i(n))}visibleOptions(t){let n=t.options.filter(r=>!r.hidden),i=t._getHelpOption();if(i&&!i.hidden){let r=i.short&&t._findOption(i.short),o=i.long&&t._findOption(i.long);!r&&!o?n.push(i):i.long&&!o?n.push(t.createOption(i.long,i.description)):i.short&&!r&&n.push(t.createOption(i.short,i.description))}return this.sortOptions&&n.sort(this.compareOptions),n}visibleGlobalOptions(t){if(!this.showGlobalOptions)return[];let n=[];for(let i=t.parent;i;i=i.parent){let r=i.options.filter(o=>!o.hidden);n.push(...r)}return this.sortOptions&&n.sort(this.compareOptions),n}visibleArguments(t){return t._argsDescription&&t.registeredArguments.forEach(n=>{n.description=n.description||t._argsDescription[n.name()]||""}),t.registeredArguments.find(n=>n.description)?t.registeredArguments:[]}subcommandTerm(t){let n=t.registeredArguments.map(i=>J$(i)).join(" ");return t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(n?" "+n:"")}optionTerm(t){return t.flags}argumentTerm(t){return t.name()}longestSubcommandTermLength(t,n){return n.visibleCommands(t).reduce((i,r)=>Math.max(i,this.displayWidth(n.styleSubcommandTerm(n.subcommandTerm(r)))),0)}longestOptionTermLength(t,n){return n.visibleOptions(t).reduce((i,r)=>Math.max(i,this.displayWidth(n.styleOptionTerm(n.optionTerm(r)))),0)}longestGlobalOptionTermLength(t,n){return n.visibleGlobalOptions(t).reduce((i,r)=>Math.max(i,this.displayWidth(n.styleOptionTerm(n.optionTerm(r)))),0)}longestArgumentTermLength(t,n){return n.visibleArguments(t).reduce((i,r)=>Math.max(i,this.displayWidth(n.styleArgumentTerm(n.argumentTerm(r)))),0)}commandUsage(t){let n=t._name;t._aliases[0]&&(n=n+"|"+t._aliases[0]);let i="";for(let r=t.parent;r;r=r.parent)i=r.name()+" "+i;return i+n+" "+t.usage()}commandDescription(t){return t.description()}subcommandDescription(t){return t.summary()||t.description()}optionDescription(t){let n=[];return t.argChoices&&n.push(`choices: ${t.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),t.defaultValue!==void 0&&(t.required||t.optional||t.isBoolean()&&typeof t.defaultValue=="boolean")&&n.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),t.presetArg!==void 0&&t.optional&&n.push(`preset: ${JSON.stringify(t.presetArg)}`),t.envVar!==void 0&&n.push(`env: ${t.envVar}`),n.length>0?`${t.description} (${n.join(", ")})`:t.description}argumentDescription(t){let n=[];if(t.argChoices&&n.push(`choices: ${t.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),t.defaultValue!==void 0&&n.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),n.length>0){let i=`(${n.join(", ")})`;return t.description?`${t.description} ${i}`:i}return t.description}formatHelp(t,n){let i=n.padWidth(t,n),r=n.helpWidth??80;function o(d,f){return n.formatItem(d,i,f,n)}let a=[`${n.styleTitle("Usage:")} ${n.styleUsage(n.commandUsage(t))}`,""],s=n.commandDescription(t);s.length>0&&(a=a.concat([n.boxWrap(n.styleCommandDescription(s),r),""]));let c=n.visibleArguments(t).map(d=>o(n.styleArgumentTerm(n.argumentTerm(d)),n.styleArgumentDescription(n.argumentDescription(d))));c.length>0&&(a=a.concat([n.styleTitle("Arguments:"),...c,""]));let u=n.visibleOptions(t).map(d=>o(n.styleOptionTerm(n.optionTerm(d)),n.styleOptionDescription(n.optionDescription(d))));if(u.length>0&&(a=a.concat([n.styleTitle("Options:"),...u,""])),n.showGlobalOptions){let d=n.visibleGlobalOptions(t).map(f=>o(n.styleOptionTerm(n.optionTerm(f)),n.styleOptionDescription(n.optionDescription(f))));d.length>0&&(a=a.concat([n.styleTitle("Global Options:"),...d,""]))}let l=n.visibleCommands(t).map(d=>o(n.styleSubcommandTerm(n.subcommandTerm(d)),n.styleSubcommandDescription(n.subcommandDescription(d))));return l.length>0&&(a=a.concat([n.styleTitle("Commands:"),...l,""])),a.join(`
|
|
4
|
+
`)}displayWidth(t){return qp(t).length}styleTitle(t){return t}styleUsage(t){return t.split(" ").map(n=>n==="[options]"?this.styleOptionText(n):n==="[command]"?this.styleSubcommandText(n):n[0]==="["||n[0]==="<"?this.styleArgumentText(n):this.styleCommandText(n)).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(n=>n==="[options]"?this.styleOptionText(n):n[0]==="["||n[0]==="<"?this.styleArgumentText(n):this.styleSubcommandText(n)).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,n){return Math.max(n.longestOptionTermLength(t,n),n.longestGlobalOptionTermLength(t,n),n.longestSubcommandTermLength(t,n),n.longestArgumentTermLength(t,n))}preformatted(t){return/\n[^\S\r\n]/.test(t)}formatItem(t,n,i,r){let a=" ".repeat(2);if(!i)return a+t;let s=t.padEnd(n+t.length-r.displayWidth(t)),c=2,l=(this.helpWidth??80)-n-c-2,d;return l<this.minWidthToWrap||r.preformatted(i)?d=i:d=r.boxWrap(i,l).replace(/\n/g,`
|
|
5
5
|
`+" ".repeat(n+c)),a+s+" ".repeat(c)+d.replace(/\n/g,`
|
|
6
|
-
${a}`)}boxWrap(
|
|
7
|
-
`)}};function
|
|
6
|
+
${a}`)}boxWrap(t,n){if(n<this.minWidthToWrap)return t;let i=t.split(/\r\n|\n/),r=/[\s]*[^\s]+/g,o=[];return i.forEach(a=>{let s=a.match(r);if(s===null){o.push("");return}let c=[s.shift()],u=this.displayWidth(c[0]);s.forEach(l=>{let d=this.displayWidth(l);if(u+d<=n){c.push(l),u+=d;return}o.push(c.join(""));let f=l.trimStart();c=[f],u=this.displayWidth(f)}),o.push(c.join(""))}),o.join(`
|
|
7
|
+
`)}};function qp(e){let t=/\x1b\[\d*(;\d*)*m/g;return e.replace(t,"")}Is.Help=Ss;Is.stripColor=qp});var Ts=x(As=>{var{InvalidArgumentError:W$}=Vr(),Ps=class{constructor(t,n){this.flags=t,this.description=n||"",this.required=t.includes("<"),this.optional=t.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(t),this.mandatory=!1;let i=G$(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}default(t,n){return this.defaultValue=t,this.defaultValueDescription=n,this}preset(t){return this.presetArg=t,this}conflicts(t){return this.conflictsWith=this.conflictsWith.concat(t),this}implies(t){let n=t;return typeof t=="string"&&(n={[t]:!0}),this.implied=Object.assign(this.implied||{},n),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}_concatValue(t,n){return n===this.defaultValue||!Array.isArray(n)?[t]:n.concat(t)}choices(t){return this.argChoices=t.slice(),this.parseArg=(n,i)=>{if(!this.argChoices.includes(n))throw new W$(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(n,i):n},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?Fp(this.name().replace(/^no-/,"")):Fp(this.name())}is(t){return this.short===t||this.long===t}isBoolean(){return!this.required&&!this.optional&&!this.negate}},Es=class{constructor(t){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,t.forEach(n=>{n.negate?this.negativeOptions.set(n.attributeName(),n):this.positiveOptions.set(n.attributeName(),n)}),this.negativeOptions.forEach((n,i)=>{this.positiveOptions.has(i)&&this.dualOptions.add(i)})}valueFromOption(t,n){let i=n.attributeName();if(!this.dualOptions.has(i))return!0;let r=this.negativeOptions.get(i).presetArg,o=r!==void 0?r:!1;return n.negate===(o===t)}};function Fp(e){return e.split("-").reduce((t,n)=>t+n[0].toUpperCase()+n.slice(1))}function G$(e){let t,n,i=/^-[^-]$/,r=/^--[^-]/,o=e.split(/[ |,]+/).concat("guard");if(i.test(o[0])&&(t=o.shift()),r.test(o[0])&&(n=o.shift()),!t&&i.test(o[0])&&(t=o.shift()),!t&&r.test(o[0])&&(t=n,n=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}
|
|
8
8
|
- a short flag is a single dash and a single character
|
|
9
9
|
- either use a single dash and a single character (for a short flag)
|
|
10
10
|
- or use a double dash for a long option (and can have two, like '--ws, --workspace')`):i.test(a)?new Error(`${s}
|
|
11
11
|
- too many short flags`):r.test(a)?new Error(`${s}
|
|
12
12
|
- too many long flags`):new Error(`${s}
|
|
13
|
-
- unrecognised flag format`)}if(
|
|
13
|
+
- unrecognised flag format`)}if(t===void 0&&n===void 0)throw new Error(`option creation failed due to no flags found in '${e}'.`);return{shortFlag:t,longFlag:n}}As.Option=Ps;As.DualOptions=Es});var Bp=x(Vp=>{function Y$(e,t){if(Math.abs(e.length-t.length)>3)return Math.max(e.length,t.length);let n=[];for(let i=0;i<=e.length;i++)n[i]=[i];for(let i=0;i<=t.length;i++)n[0][i]=i;for(let i=1;i<=t.length;i++)for(let r=1;r<=e.length;r++){let o=1;e[r-1]===t[i-1]?o=0:o=1,n[r][i]=Math.min(n[r-1][i]+1,n[r][i-1]+1,n[r-1][i-1]+o),r>1&&i>1&&e[r-1]===t[i-2]&&e[r-2]===t[i-1]&&(n[r][i]=Math.min(n[r][i],n[r-2][i-2]+1))}return n[e.length][t.length]}function X$(e,t){if(!t||t.length===0)return"";t=Array.from(new Set(t));let n=e.startsWith("--");n&&(e=e.slice(2),t=t.map(a=>a.slice(2)));let i=[],r=3,o=.4;return t.forEach(a=>{if(a.length<=1)return;let s=Y$(e,a),c=Math.max(e.length,a.length);(c-s)/c>o&&(s<r?(r=s,i=[a]):s===r&&i.push(a))}),i.sort((a,s)=>a.localeCompare(s)),n&&(i=i.map(a=>`--${a}`)),i.length>1?`
|
|
14
14
|
(Did you mean one of ${i.join(", ")}?)`:i.length===1?`
|
|
15
|
-
(Did you mean ${i[0]}?)`:""}
|
|
16
|
-
- specify the name in Command constructor or using .name()`);return n=n||{},n.isDefault&&(this._defaultCommandName=
|
|
17
|
-
Expecting one of '${i.join("', '")}'`);return this._lifeCycleHooks[
|
|
18
|
-
- already used by option '${n.flags}'`)}this.options.push(
|
|
19
|
-
- 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(
|
|
15
|
+
(Did you mean ${i[0]}?)`:""}Vp.suggestSimilar=X$});var Wp=x(Ds=>{var Q$=Ke("node:events").EventEmitter,zs=Ke("node:child_process"),Je=Ke("node:path"),xi=Ke("node:fs"),U=Ke("node:process"),{Argument:ew,humanReadableArgName:tw}=ki(),{CommanderError:Cs}=Vr(),{Help:rw,stripColor:nw}=Os(),{Option:Kp,DualOptions:iw}=Ts(),{suggestSimilar:Hp}=Bp(),js=class e extends Q${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:n=>U.stdout.write(n),writeErr:n=>U.stderr.write(n),outputError:(n,i)=>i(n),getOutHelpWidth:()=>U.stdout.isTTY?U.stdout.columns:void 0,getErrHelpWidth:()=>U.stderr.isTTY?U.stderr.columns:void 0,getOutHasColors:()=>Ns()??(U.stdout.isTTY&&U.stdout.hasColors?.()),getErrHasColors:()=>Ns()??(U.stderr.isTTY&&U.stderr.hasColors?.()),stripColor:n=>nw(n)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={}}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 n=this;n;n=n.parent)t.push(n);return t}command(t,n,i){let r=n,o=i;typeof r=="object"&&r!==null&&(o=r,r=null),o=o||{};let[,a,s]=t.match(/([^ ]+) *(.*)/),c=this.createCommand(a);return r&&(c.description(r),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),r?this:c}createCommand(t){return new e(t)}createHelp(){return Object.assign(new rw,this.configureHelp())}configureHelp(t){return t===void 0?this._helpConfiguration:(this._helpConfiguration=t,this)}configureOutput(t){return t===void 0?this._outputConfiguration:(Object.assign(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,n){if(!t._name)throw new Error(`Command passed to .addCommand() must have a name
|
|
16
|
+
- specify the name in Command constructor or using .name()`);return n=n||{},n.isDefault&&(this._defaultCommandName=t._name),(n.noHelp||n.hidden)&&(t._hidden=!0),this._registerCommand(t),t.parent=this,t._checkForBrokenPassThrough(),this}createArgument(t,n){return new ew(t,n)}argument(t,n,i,r){let o=this.createArgument(t,n);return typeof i=="function"?o.default(r).argParser(i):o.default(i),this.addArgument(o),this}arguments(t){return t.trim().split(/ +/).forEach(n=>{this.argument(n)}),this}addArgument(t){let n=this.registeredArguments.slice(-1)[0];if(n&&n.variadic)throw new Error(`only the last argument can be variadic '${n.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,n){if(typeof t=="boolean")return this._addImplicitHelpCommand=t,this;t=t??"help [command]";let[,i,r]=t.match(/([^ ]+) *(.*)/),o=n??"display help for command",a=this.createCommand(i);return a.helpOption(!1),r&&a.arguments(r),o&&a.description(o),this._addImplicitHelpCommand=!0,this._helpCommand=a,this}addHelpCommand(t,n){return typeof t!="object"?(this.helpCommand(t,n),this):(this._addImplicitHelpCommand=!0,this._helpCommand=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,n){let i=["preSubcommand","preAction","postAction"];if(!i.includes(t))throw new Error(`Unexpected value for event passed to hook : '${t}'.
|
|
17
|
+
Expecting one of '${i.join("', '")}'`);return this._lifeCycleHooks[t]?this._lifeCycleHooks[t].push(n):this._lifeCycleHooks[t]=[n],this}exitOverride(t){return t?this._exitCallback=t:this._exitCallback=n=>{if(n.code!=="commander.executeSubCommandAsync")throw n},this}_exit(t,n,i){this._exitCallback&&this._exitCallback(new Cs(t,n,i)),U.exit(t)}action(t){let n=i=>{let r=this.registeredArguments.length,o=i.slice(0,r);return this._storeOptionsAsProperties?o[r]=this:o[r]=this.opts(),o.push(this),t.apply(this,o)};return this._actionHandler=n,this}createOption(t,n){return new Kp(t,n)}_callParseArg(t,n,i,r){try{return t.parseArg(n,i)}catch(o){if(o.code==="commander.invalidArgument"){let a=`${r} ${o.message}`;this.error(a,{exitCode:o.exitCode,code:o.code})}throw o}}_registerOption(t){let n=t.short&&this._findOption(t.short)||t.long&&this._findOption(t.long);if(n){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}'
|
|
18
|
+
- already used by option '${n.flags}'`)}this.options.push(t)}_registerCommand(t){let n=r=>[r.name()].concat(r.aliases()),i=n(t).find(r=>this._findCommand(r));if(i){let r=n(this._findCommand(i)).join("|"),o=n(t).join("|");throw new Error(`cannot add command '${o}' as already have command '${r}'`)}this.commands.push(t)}addOption(t){this._registerOption(t);let n=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 r=(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._concatValue(o,c)),o==null&&(t.negate?o=!1:t.isBoolean()||t.optional?o=!0:o=""),this.setOptionValueWithSource(i,o,s)};return this.on("option:"+n,o=>{let a=`error: option '${t.flags}' argument '${o}' is invalid.`;r(o,a,"cli")}),t.envVar&&this.on("optionEnv:"+n,o=>{let a=`error: option '${t.flags}' value '${o}' from env '${t.envVar}' is invalid.`;r(o,a,"env")}),this}_optionEx(t,n,i,r,o){if(typeof n=="object"&&n instanceof Kp)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let a=this.createOption(n,i);if(a.makeOptionMandatory(!!t.mandatory),typeof r=="function")a.default(o).argParser(r);else if(r instanceof RegExp){let s=r;r=(c,u)=>{let l=s.exec(c);return l?l[0]:u},a.default(o).argParser(r)}else a.default(r);return this.addOption(a)}option(t,n,i,r){return this._optionEx({},t,n,i,r)}requiredOption(t,n,i,r){return this._optionEx({mandatory:!0},t,n,i,r)}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,n){return this.setOptionValueWithSource(t,n,void 0)}setOptionValueWithSource(t,n,i){return this._storeOptionsAsProperties?this[t]=n:this._optionValues[t]=n,this._optionValueSources[t]=i,this}getOptionValueSource(t){return this._optionValueSources[t]}getOptionValueSourceWithGlobals(t){let n;return this._getCommandAndAncestors().forEach(i=>{i.getOptionValueSource(t)!==void 0&&(n=i.getOptionValueSource(t))}),n}_prepareUserArgs(t,n){if(t!==void 0&&!Array.isArray(t))throw new Error("first parameter to parse must be array or undefined");if(n=n||{},t===void 0&&n.from===void 0){U.versions?.electron&&(n.from="electron");let r=U.execArgv??[];(r.includes("-e")||r.includes("--eval")||r.includes("-p")||r.includes("--print"))&&(n.from="eval")}t===void 0&&(t=U.argv),this.rawArgs=t.slice();let i;switch(n.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: '${n.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",i}parse(t,n){this._prepareForParse();let i=this._prepareUserArgs(t,n);return this._parseCommand([],i),this}async parseAsync(t,n){this._prepareForParse();let i=this._prepareUserArgs(t,n);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.
|
|
19
|
+
- 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,n,i){if(xi.existsSync(t))return;let r=n?`searched for local subcommand relative to directory '${n}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",o=`'${t}' does not exist
|
|
20
20
|
- if '${i}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
21
21
|
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
22
|
-
- ${r}`;throw new Error(o)}_executeSubCommand(
|
|
22
|
+
- ${r}`;throw new Error(o)}_executeSubCommand(t,n){n=n.slice();let i=!1,r=[".js",".ts",".tsx",".mjs",".cjs"];function o(l,d){let f=Je.resolve(l,d);if(xi.existsSync(f))return f;if(r.includes(Je.extname(d)))return;let p=r.find(y=>xi.existsSync(`${f}${y}`));if(p)return`${f}${p}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let a=t._executableFile||`${this._name}-${t._name}`,s=this._executableDir||"";if(this._scriptPath){let l;try{l=xi.realpathSync(this._scriptPath)}catch{l=this._scriptPath}s=Je.resolve(Je.dirname(l),s)}if(s){let l=o(s,a);if(!l&&!t._executableFile&&this._scriptPath){let d=Je.basename(this._scriptPath,Je.extname(this._scriptPath));d!==this._name&&(l=o(s,`${d}-${t._name}`))}a=l||a}i=r.includes(Je.extname(a));let c;U.platform!=="win32"?i?(n.unshift(a),n=Jp(U.execArgv).concat(n),c=zs.spawn(U.argv[0],n,{stdio:"inherit"})):c=zs.spawn(a,n,{stdio:"inherit"}):(this._checkForMissingExecutable(a,s,t._name),n.unshift(a),n=Jp(U.execArgv).concat(n),c=zs.spawn(U.execPath,n,{stdio:"inherit"})),c.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(d=>{U.on(d,()=>{c.killed===!1&&c.exitCode===null&&c.kill(d)})});let u=this._exitCallback;c.on("close",l=>{l=l??1,u?u(new Cs(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 d=new Cs(1,"commander.executeSubCommandAsync","(error)");d.nestedError=l,u(d)}}),this.runningCommand=c}_dispatchSubcommand(t,n,i){let r=this._findCommand(t);r||this.help({error:!0}),r._prepareForParse();let o;return o=this._chainOrCallSubCommandHook(o,r,"preSubcommand"),o=this._chainOrCall(o,()=>{if(r._executableHandler)this._executeSubCommand(r,n.concat(i));else return r._parseCommand(n,i)}),o}_dispatchHelpCommand(t){t||this.help();let n=this._findCommand(t);return n&&!n._executableHandler&&n.help(),this._dispatchSubcommand(t,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((t,n)=>{t.required&&this.args[n]==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,r,o)=>{let a=r;if(r!==null&&i.parseArg){let s=`error: command-argument value '${r}' is invalid for argument '${i.name()}'.`;a=this._callParseArg(i,r,o,s)}return a};this._checkNumberOfArguments();let n=[];this.registeredArguments.forEach((i,r)=>{let o=i.defaultValue;i.variadic?r<this.args.length?(o=this.args.slice(r),i.parseArg&&(o=o.reduce((a,s)=>t(i,s,a),i.defaultValue))):o===void 0&&(o=[]):r<this.args.length&&(o=this.args[r],i.parseArg&&(o=t(i,o,i.defaultValue))),n[r]=o}),this.processedArgs=n}_chainOrCall(t,n){return t&&t.then&&typeof t.then=="function"?t.then(()=>n()):n()}_chainOrCallHooks(t,n){let i=t,r=[];return this._getCommandAndAncestors().reverse().filter(o=>o._lifeCycleHooks[n]!==void 0).forEach(o=>{o._lifeCycleHooks[n].forEach(a=>{r.push({hookedCommand:o,callback:a})})}),n==="postAction"&&r.reverse(),r.forEach(o=>{i=this._chainOrCall(i,()=>o.callback(o.hookedCommand,this))}),i}_chainOrCallSubCommandHook(t,n,i){let r=t;return this._lifeCycleHooks[i]!==void 0&&this._lifeCycleHooks[i].forEach(o=>{r=this._chainOrCall(r,()=>o(this,n))}),r}_parseCommand(t,n){let i=this.parseOptions(n);if(this._parseOptionsEnv(),this._parseOptionsImplied(),t=t.concat(i.operands),n=i.unknown,this.args=t.concat(n),t&&this._findCommand(t[0]))return this._dispatchSubcommand(t[0],t.slice(1),n);if(this._getHelpCommand()&&t[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(t[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(n),this._dispatchSubcommand(this._defaultCommandName,t,n);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(i.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let r=()=>{i.unknown.length>0&&this.unknownOption(i.unknown[0])},o=`command:${this.name()}`;if(this._actionHandler){r(),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,n)})),a=this._chainOrCallHooks(a,"postAction"),a}if(this.parent&&this.parent.listenerCount(o))r(),this._processArguments(),this.parent.emit(o,t,n);else if(t.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",t,n);this.listenerCount("command:*")?this.emit("command:*",t,n):this.commands.length?this.unknownCommand():(r(),this._processArguments())}else this.commands.length?(r(),this.help({error:!0})):(r(),this._processArguments())}_findCommand(t){if(t)return this.commands.find(n=>n._name===t||n._aliases.includes(t))}_findOption(t){return this.options.find(n=>n.is(t))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(t=>{t.options.forEach(n=>{n.mandatory&&t.getOptionValue(n.attributeName())===void 0&&t.missingMandatoryOptionValue(n)})})}_checkForConflictingLocalOptions(){let t=this.options.filter(i=>{let r=i.attributeName();return this.getOptionValue(r)===void 0?!1:this.getOptionValueSource(r)!=="default"});t.filter(i=>i.conflictsWith.length>0).forEach(i=>{let r=t.find(o=>i.conflictsWith.includes(o.attributeName()));r&&this._conflictingOption(i,r)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(t=>{t._checkForConflictingLocalOptions()})}parseOptions(t){let n=[],i=[],r=n,o=t.slice();function a(c){return c.length>1&&c[0]==="-"}let s=null;for(;o.length;){let c=o.shift();if(c==="--"){r===i&&r.push(c),r.push(...o);break}if(s&&!a(c)){this.emit(`option:${s.name()}`,c);continue}if(s=null,a(c)){let u=this._findOption(c);if(u){if(u.required){let l=o.shift();l===void 0&&this.optionMissingArgument(u),this.emit(`option:${u.name()}`,l)}else if(u.optional){let l=null;o.length>0&&!a(o[0])&&(l=o.shift()),this.emit(`option:${u.name()}`,l)}else this.emit(`option:${u.name()}`);s=u.variadic?u:null;continue}}if(c.length>2&&c[0]==="-"&&c[1]!=="-"){let u=this._findOption(`-${c[1]}`);if(u){u.required||u.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${u.name()}`,c.slice(2)):(this.emit(`option:${u.name()}`),o.unshift(`-${c.slice(2)}`));continue}}if(/^--[^=]+=/.test(c)){let u=c.indexOf("="),l=this._findOption(c.slice(0,u));if(l&&(l.required||l.optional)){this.emit(`option:${l.name()}`,c.slice(u+1));continue}}if(a(c)&&(r=i),(this._enablePositionalOptions||this._passThroughOptions)&&n.length===0&&i.length===0){if(this._findCommand(c)){n.push(c),o.length>0&&i.push(...o);break}else if(this._getHelpCommand()&&c===this._getHelpCommand().name()){n.push(c),o.length>0&&n.push(...o);break}else if(this._defaultCommandName){i.push(c),o.length>0&&i.push(...o);break}}if(this._passThroughOptions){r.push(c),o.length>0&&r.push(...o);break}r.push(c)}return{operands:n,unknown:i}}opts(){if(this._storeOptionsAsProperties){let t={},n=this.options.length;for(let i=0;i<n;i++){let r=this.options[i].attributeName();t[r]=r===this._versionOptionName?this._version:this[r]}return t}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((t,n)=>Object.assign(t,n.opts()),{})}error(t,n){this._outputConfiguration.outputError(`${t}
|
|
23
23
|
`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
|
|
24
24
|
`):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
|
|
25
|
-
`),this.outputHelp({error:!0}));let i=n||{},r=i.exitCode||1,o=i.code||"commander.error";this._exit(r,o,
|
|
26
|
-
`),this._exit(0,"commander.version",
|
|
27
|
-
Expecting one of '${i.join("', '")}'`);let r=`${
|
|
28
|
-
`)}),this}_outputHelpIfRequested(
|
|
29
|
-
`)}};
|
|
30
|
-
`)?
|
|
25
|
+
`),this.outputHelp({error:!0}));let i=n||{},r=i.exitCode||1,o=i.code||"commander.error";this._exit(r,o,t)}_parseOptionsEnv(){this.options.forEach(t=>{if(t.envVar&&t.envVar in U.env){let n=t.attributeName();(this.getOptionValue(n)===void 0||["default","config","env"].includes(this.getOptionValueSource(n)))&&(t.required||t.optional?this.emit(`optionEnv:${t.name()}`,U.env[t.envVar]):this.emit(`optionEnv:${t.name()}`))}})}_parseOptionsImplied(){let t=new iw(this.options),n=i=>this.getOptionValue(i)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(i));this.options.filter(i=>i.implied!==void 0&&n(i.attributeName())&&t.valueFromOption(this.getOptionValue(i.attributeName()),i)).forEach(i=>{Object.keys(i.implied).filter(r=>!n(r)).forEach(r=>{this.setOptionValueWithSource(r,i.implied[r],"implied")})})}missingArgument(t){let n=`error: missing required argument '${t}'`;this.error(n,{code:"commander.missingArgument"})}optionMissingArgument(t){let n=`error: option '${t.flags}' argument missing`;this.error(n,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(t){let n=`error: required option '${t.flags}' not specified`;this.error(n,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(t,n){let i=a=>{let s=a.attributeName(),c=this.getOptionValue(s),u=this.options.find(d=>d.negate&&s===d.attributeName()),l=this.options.find(d=>!d.negate&&s===d.attributeName());return u&&(u.presetArg===void 0&&c===!1||u.presetArg!==void 0&&c===u.presetArg)?u:l||a},r=a=>{let s=i(a),c=s.attributeName();return this.getOptionValueSource(c)==="env"?`environment variable '${s.envVar}'`:`option '${s.flags}'`},o=`error: ${r(t)} cannot be used with ${r(n)}`;this.error(o,{code:"commander.conflictingOption"})}unknownOption(t){if(this._allowUnknownOption)return;let n="";if(t.startsWith("--")&&this._showSuggestionAfterError){let r=[],o=this;do{let a=o.createHelp().visibleOptions(o).filter(s=>s.long).map(s=>s.long);r=r.concat(a),o=o.parent}while(o&&!o._enablePositionalOptions);n=Hp(t,r)}let i=`error: unknown option '${t}'${n}`;this.error(i,{code:"commander.unknownOption"})}_excessArguments(t){if(this._allowExcessArguments)return;let n=this.registeredArguments.length,i=n===1?"":"s",o=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${n} argument${i} but got ${t.length}.`;this.error(o,{code:"commander.excessArguments"})}unknownCommand(){let t=this.args[0],n="";if(this._showSuggestionAfterError){let r=[];this.createHelp().visibleCommands(this).forEach(o=>{r.push(o.name()),o.alias()&&r.push(o.alias())}),n=Hp(t,r)}let i=`error: unknown command '${t}'${n}`;this.error(i,{code:"commander.unknownCommand"})}version(t,n,i){if(t===void 0)return this._version;this._version=t,n=n||"-V, --version",i=i||"output the version number";let r=this.createOption(n,i);return this._versionOptionName=r.attributeName(),this._registerOption(r),this.on("option:"+r.name(),()=>{this._outputConfiguration.writeOut(`${t}
|
|
26
|
+
`),this._exit(0,"commander.version",t)}),this}description(t,n){return t===void 0&&n===void 0?this._description:(this._description=t,n&&(this._argsDescription=n),this)}summary(t){return t===void 0?this._summary:(this._summary=t,this)}alias(t){if(t===void 0)return this._aliases[0];let n=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(n=this.commands[this.commands.length-1]),t===n._name)throw new Error("Command alias can't be the same as its name");let i=this.parent?._findCommand(t);if(i){let r=[i.name()].concat(i.aliases()).join("|");throw new Error(`cannot add alias '${t}' to command '${this.name()}' as already have command '${r}'`)}return n._aliases.push(t),this}aliases(t){return t===void 0?this._aliases:(t.forEach(n=>this.alias(n)),this)}usage(t){if(t===void 0){if(this._usage)return this._usage;let n=this.registeredArguments.map(i=>tw(i));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?n:[]).join(" ")}return this._usage=t,this}name(t){return t===void 0?this._name:(this._name=t,this)}nameFromFilename(t){return this._name=Je.basename(t,Je.extname(t)),this}executableDir(t){return t===void 0?this._executableDir:(this._executableDir=t,this)}helpInformation(t){let n=this.createHelp(),i=this._getOutputContext(t);n.prepareContext({error:i.error,helpWidth:i.helpWidth,outputHasColors:i.hasColors});let r=n.formatHelp(this,n);return i.hasColors?r:this._outputConfiguration.stripColor(r)}_getOutputContext(t){t=t||{};let n=!!t.error,i,r,o;return n?(i=s=>this._outputConfiguration.writeErr(s),r=this._outputConfiguration.getErrHasColors(),o=this._outputConfiguration.getErrHelpWidth()):(i=s=>this._outputConfiguration.writeOut(s),r=this._outputConfiguration.getOutHasColors(),o=this._outputConfiguration.getOutHelpWidth()),{error:n,write:s=>(r||(s=this._outputConfiguration.stripColor(s)),i(s)),hasColors:r,helpWidth:o}}outputHelp(t){let n;typeof t=="function"&&(n=t,t=void 0);let i=this._getOutputContext(t),r={error:i.error,write:i.write,command:this};this._getCommandAndAncestors().reverse().forEach(a=>a.emit("beforeAllHelp",r)),this.emit("beforeHelp",r);let o=this.helpInformation({error:i.error});if(n&&(o=n(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",r),this._getCommandAndAncestors().forEach(a=>a.emit("afterAllHelp",r))}helpOption(t,n){return typeof t=="boolean"?(t?this._helpOption=this._helpOption??void 0:this._helpOption=null,this):(t=t??"-h, --help",n=n??"display help for command",this._helpOption=this.createOption(t,n),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(t){return this._helpOption=t,this}help(t){this.outputHelp(t);let n=Number(U.exitCode??0);n===0&&t&&typeof t!="function"&&t.error&&(n=1),this._exit(n,"commander.help","(outputHelp)")}addHelpText(t,n){let i=["beforeAll","before","after","afterAll"];if(!i.includes(t))throw new Error(`Unexpected value for position to addHelpText.
|
|
27
|
+
Expecting one of '${i.join("', '")}'`);let r=`${t}Help`;return this.on(r,o=>{let a;typeof n=="function"?a=n({error:o.error,command:o.command}):a=n,a&&o.write(`${a}
|
|
28
|
+
`)}),this}_outputHelpIfRequested(t){let n=this._getHelpOption();n&&t.find(r=>n.is(r))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function Jp(e){return e.map(t=>{if(!t.startsWith("--inspect"))return t;let n,i="127.0.0.1",r="9229",o;return(o=t.match(/^(--inspect(-brk)?)$/))!==null?n=o[1]:(o=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(n=o[1],/^\d+$/.test(o[3])?r=o[3]:i=o[3]):(o=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(n=o[1],i=o[3],r=o[4]),n&&r!=="0"?`${n}=${i}:${parseInt(r)+1}`:t})}function Ns(){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}Ds.Command=js;Ds.useColor=Ns});var Qp=x(ke=>{var{Argument:Gp}=ki(),{Command:Us}=Wp(),{CommanderError:ow,InvalidArgumentError:Yp}=Vr(),{Help:aw}=Os(),{Option:Xp}=Ts();ke.program=new Us;ke.createCommand=e=>new Us(e);ke.createOption=(e,t)=>new Xp(e,t);ke.createArgument=(e,t)=>new Gp(e,t);ke.Command=Us;ke.Option=Xp;ke.Argument=Gp;ke.Help=aw;ke.CommanderError=ow;ke.InvalidArgumentError=Yp;ke.InvalidOptionArgumentError=Yp});var D=x(oe=>{"use strict";var Gs=Symbol.for("yaml.alias"),$g=Symbol.for("yaml.document"),Ei=Symbol.for("yaml.map"),wg=Symbol.for("yaml.pair"),Ys=Symbol.for("yaml.scalar"),Ai=Symbol.for("yaml.seq"),We=Symbol.for("yaml.node.type"),Sw=e=>!!e&&typeof e=="object"&&e[We]===Gs,Iw=e=>!!e&&typeof e=="object"&&e[We]===$g,Ow=e=>!!e&&typeof e=="object"&&e[We]===Ei,Pw=e=>!!e&&typeof e=="object"&&e[We]===wg,kg=e=>!!e&&typeof e=="object"&&e[We]===Ys,Ew=e=>!!e&&typeof e=="object"&&e[We]===Ai;function xg(e){if(e&&typeof e=="object")switch(e[We]){case Ei:case Ai:return!0}return!1}function Aw(e){if(e&&typeof e=="object")switch(e[We]){case Gs:case Ei:case Ys:case Ai:return!0}return!1}var Tw=e=>(kg(e)||xg(e))&&!!e.anchor;oe.ALIAS=Gs;oe.DOC=$g;oe.MAP=Ei;oe.NODE_TYPE=We;oe.PAIR=wg;oe.SCALAR=Ys;oe.SEQ=Ai;oe.hasAnchor=Tw;oe.isAlias=Sw;oe.isCollection=xg;oe.isDocument=Iw;oe.isMap=Ow;oe.isNode=Aw;oe.isPair=Pw;oe.isScalar=kg;oe.isSeq=Ew});var Yr=x(Xs=>{"use strict";var te=D(),me=Symbol("break visit"),Sg=Symbol("skip children"),Le=Symbol("remove node");function Ti(e,t){let n=Ig(t);te.isDocument(e)?Wt(null,e.contents,n,Object.freeze([e]))===Le&&(e.contents=null):Wt(null,e,n,Object.freeze([]))}Ti.BREAK=me;Ti.SKIP=Sg;Ti.REMOVE=Le;function Wt(e,t,n,i){let r=Og(e,t,n,i);if(te.isNode(r)||te.isPair(r))return Pg(e,i,r),Wt(e,r,n,i);if(typeof r!="symbol"){if(te.isCollection(t)){i=Object.freeze(i.concat(t));for(let o=0;o<t.items.length;++o){let a=Wt(o,t.items[o],n,i);if(typeof a=="number")o=a-1;else{if(a===me)return me;a===Le&&(t.items.splice(o,1),o-=1)}}}else if(te.isPair(t)){i=Object.freeze(i.concat(t));let o=Wt("key",t.key,n,i);if(o===me)return me;o===Le&&(t.key=null);let a=Wt("value",t.value,n,i);if(a===me)return me;a===Le&&(t.value=null)}}return r}async function zi(e,t){let n=Ig(t);te.isDocument(e)?await Gt(null,e.contents,n,Object.freeze([e]))===Le&&(e.contents=null):await Gt(null,e,n,Object.freeze([]))}zi.BREAK=me;zi.SKIP=Sg;zi.REMOVE=Le;async function Gt(e,t,n,i){let r=await Og(e,t,n,i);if(te.isNode(r)||te.isPair(r))return Pg(e,i,r),Gt(e,r,n,i);if(typeof r!="symbol"){if(te.isCollection(t)){i=Object.freeze(i.concat(t));for(let o=0;o<t.items.length;++o){let a=await Gt(o,t.items[o],n,i);if(typeof a=="number")o=a-1;else{if(a===me)return me;a===Le&&(t.items.splice(o,1),o-=1)}}}else if(te.isPair(t)){i=Object.freeze(i.concat(t));let o=await Gt("key",t.key,n,i);if(o===me)return me;o===Le&&(t.key=null);let a=await Gt("value",t.value,n,i);if(a===me)return me;a===Le&&(t.value=null)}}return r}function Ig(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function Og(e,t,n,i){if(typeof n=="function")return n(e,t,i);if(te.isMap(t))return n.Map?.(e,t,i);if(te.isSeq(t))return n.Seq?.(e,t,i);if(te.isPair(t))return n.Pair?.(e,t,i);if(te.isScalar(t))return n.Scalar?.(e,t,i);if(te.isAlias(t))return n.Alias?.(e,t,i)}function Pg(e,t,n){let i=t[t.length-1];if(te.isCollection(i))i.items[e]=n;else if(te.isPair(i))e==="key"?i.key=n:i.value=n;else if(te.isDocument(i))i.contents=n;else{let r=te.isAlias(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${r} parent`)}}Xs.visit=Ti;Xs.visitAsync=zi});var Qs=x(Ag=>{"use strict";var Eg=D(),zw=Yr(),Cw={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},jw=e=>e.replace(/[!,[\]{}]/g,t=>Cw[t]),Xr=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:e.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},e.defaultTags),this.atNextDocument=!1);let i=t.trim().split(/[ \t]+/),r=i.shift();switch(r){case"%TAG":{if(i.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),i.length<2))return!1;let[o,a]=i;return this.tags[o]=a,!0}case"%YAML":{if(this.yaml.explicit=!0,i.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;let[o]=i;if(o==="1.1"||o==="1.2")return this.yaml.version=o,!0;{let a=/^\d+\.\d+$/.test(o);return n(6,`Unsupported YAML version ${o}`,a),!1}}default:return n(0,`Unknown directive ${r}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){let a=t.slice(2,-1);return a==="!"||a==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),a)}let[,i,r]=t.match(/^(.*!)([^!]*)$/s);r||n(`The ${t} tag has no suffix`);let o=this.tags[i];if(o)try{return o+decodeURIComponent(r)}catch(a){return n(String(a)),null}return i==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(let[n,i]of Object.entries(this.tags))if(t.startsWith(i))return n+jw(t.substring(i.length));return t[0]==="!"?t:`!<${t}>`}toString(t){let n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags),r;if(t&&i.length>0&&Eg.isNode(t.contents)){let o={};zw.visit(t.contents,(a,s)=>{Eg.isNode(s)&&s.tag&&(o[s.tag]=!0)}),r=Object.keys(o)}else r=[];for(let[o,a]of i)o==="!!"&&a==="tag:yaml.org,2002:"||(!t||r.some(s=>s.startsWith(a)))&&n.push(`%TAG ${o} ${a}`);return n.join(`
|
|
29
|
+
`)}};Xr.defaultYaml={explicit:!1,version:"1.2"};Xr.defaultTags={"!!":"tag:yaml.org,2002:"};Ag.Directives=Xr});var Ci=x(Qr=>{"use strict";var Tg=D(),Nw=Yr();function Dw(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function zg(e){let t=new Set;return Nw.visit(e,{Value(n,i){i.anchor&&t.add(i.anchor)}}),t}function Cg(e,t){for(let n=1;;++n){let i=`${e}${n}`;if(!t.has(i))return i}}function Uw(e,t){let n=[],i=new Map,r=null;return{onAnchor:o=>{n.push(o),r??(r=zg(e));let a=Cg(t,r);return r.add(a),a},setAnchors:()=>{for(let o of n){let a=i.get(o);if(typeof a=="object"&&a.anchor&&(Tg.isScalar(a.node)||Tg.isCollection(a.node)))a.node.anchor=a.anchor;else{let s=new Error("Failed to resolve repeated object (this should not happen)");throw s.source=o,s}}},sourceObjects:i}}Qr.anchorIsValid=Dw;Qr.anchorNames=zg;Qr.createNodeAnchors=Uw;Qr.findNewAnchor=Cg});var ec=x(jg=>{"use strict";function en(e,t,n,i){if(i&&typeof i=="object")if(Array.isArray(i))for(let r=0,o=i.length;r<o;++r){let a=i[r],s=en(e,i,String(r),a);s===void 0?delete i[r]:s!==a&&(i[r]=s)}else if(i instanceof Map)for(let r of Array.from(i.keys())){let o=i.get(r),a=en(e,i,r,o);a===void 0?i.delete(r):a!==o&&i.set(r,a)}else if(i instanceof Set)for(let r of Array.from(i)){let o=en(e,i,r,r);o===void 0?i.delete(r):o!==r&&(i.delete(r),i.add(o))}else for(let[r,o]of Object.entries(i)){let a=en(e,i,r,o);a===void 0?delete i[r]:a!==o&&(i[r]=a)}return e.call(t,n,i)}jg.applyReviver=en});var it=x(Dg=>{"use strict";var Rw=D();function Ng(e,t,n){if(Array.isArray(e))return e.map((i,r)=>Ng(i,String(r),n));if(e&&typeof e.toJSON=="function"){if(!n||!Rw.hasAnchor(e))return e.toJSON(t,n);let i={aliasCount:0,count:1,res:void 0};n.anchors.set(e,i),n.onCreate=o=>{i.res=o,delete n.onCreate};let r=e.toJSON(t,n);return n.onCreate&&n.onCreate(r),r}return typeof e=="bigint"&&!n?.keep?Number(e):e}Dg.toJS=Ng});var ji=x(Rg=>{"use strict";var Lw=ec(),Ug=D(),Zw=it(),tc=class{constructor(t){Object.defineProperty(this,Ug.NODE_TYPE,{value:t})}clone(){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:i,onAnchor:r,reviver:o}={}){if(!Ug.isDocument(t))throw new TypeError("A document argument is required");let a={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},s=Zw.toJS(this,"",a);if(typeof r=="function")for(let{count:c,res:u}of a.anchors.values())r(u,c);return typeof o=="function"?Lw.applyReviver(o,{"":s},"",s):s}};Rg.NodeBase=tc});var tn=x(Lg=>{"use strict";var Mw=Ci(),qw=Yr(),Yt=D(),Fw=ji(),Vw=it(),rc=class extends Fw.NodeBase{constructor(t){super(Yt.ALIAS),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t,n){let i;n?.aliasResolveCache?i=n.aliasResolveCache:(i=[],qw.visit(t,{Node:(o,a)=>{(Yt.isAlias(a)||Yt.hasAnchor(a))&&i.push(a)}}),n&&(n.aliasResolveCache=i));let r;for(let o of i){if(o===this)break;o.anchor===this.source&&(r=o)}return r}toJSON(t,n){if(!n)return{source:this.source};let{anchors:i,doc:r,maxAliasCount:o}=n,a=this.resolve(r,n);if(!a){let c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}let s=i.get(a);if(s||(Vw.toJS(a,null,n),s=i.get(a)),s?.res===void 0){let c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(o>=0&&(s.count+=1,s.aliasCount===0&&(s.aliasCount=Ni(r,a,i)),s.count*s.aliasCount>o)){let c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return s.res}toString(t,n,i){let r=`*${this.source}`;if(t){if(Mw.anchorIsValid(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){let o=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(o)}if(t.implicitKey)return`${r} `}return r}};function Ni(e,t,n){if(Yt.isAlias(t)){let i=t.resolve(e),r=n&&i&&n.get(i);return r?r.count*r.aliasCount:0}else if(Yt.isCollection(t)){let i=0;for(let r of t.items){let o=Ni(e,r,n);o>i&&(i=o)}return i}else if(Yt.isPair(t)){let i=Ni(e,t.key,n),r=Ni(e,t.value,n);return Math.max(i,r)}return 1}Lg.Alias=rc});var Y=x(nc=>{"use strict";var Bw=D(),Kw=ji(),Hw=it(),Jw=e=>!e||typeof e!="function"&&typeof e!="object",ot=class extends Kw.NodeBase{constructor(t){super(Bw.SCALAR),this.value=t}toJSON(t,n){return n?.keep?this.value:Hw.toJS(this.value,t,n)}toString(){return String(this.value)}};ot.BLOCK_FOLDED="BLOCK_FOLDED";ot.BLOCK_LITERAL="BLOCK_LITERAL";ot.PLAIN="PLAIN";ot.QUOTE_DOUBLE="QUOTE_DOUBLE";ot.QUOTE_SINGLE="QUOTE_SINGLE";nc.Scalar=ot;nc.isScalarValue=Jw});var rn=x(Mg=>{"use strict";var Ww=tn(),Et=D(),Zg=Y(),Gw="tag:yaml.org,2002:";function Yw(e,t,n){if(t){let i=n.filter(o=>o.tag===t),r=i.find(o=>!o.format)??i[0];if(!r)throw new Error(`Tag ${t} not found`);return r}return n.find(i=>i.identify?.(e)&&!i.format)}function Xw(e,t,n){if(Et.isDocument(e)&&(e=e.contents),Et.isNode(e))return e;if(Et.isPair(e)){let d=n.schema[Et.MAP].createNode?.(n.schema,null,n);return d.items.push(e),d}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:i,onAnchor:r,onTagObj:o,schema:a,sourceObjects:s}=n,c;if(i&&e&&typeof e=="object"){if(c=s.get(e),c)return c.anchor??(c.anchor=r(e)),new Ww.Alias(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith("!!")&&(t=Gw+t.slice(2));let u=Yw(e,t,a.tags);if(!u){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){let d=new Zg.Scalar(e);return c&&(c.node=d),d}u=e instanceof Map?a[Et.MAP]:Symbol.iterator in Object(e)?a[Et.SEQ]:a[Et.MAP]}o&&(o(u),delete n.onTagObj);let l=u?.createNode?u.createNode(n.schema,e,n):typeof u?.nodeClass?.from=="function"?u.nodeClass.from(n.schema,e,n):new Zg.Scalar(e);return t?l.tag=t:u.default||(l.tag=u.tag),c&&(c.node=l),l}Mg.createNode=Xw});var Ui=x(Di=>{"use strict";var Qw=rn(),Ze=D(),ek=ji();function ic(e,t,n){let i=n;for(let r=t.length-1;r>=0;--r){let o=t[r];if(typeof o=="number"&&Number.isInteger(o)&&o>=0){let a=[];a[o]=i,i=a}else i=new Map([[o,i]])}return Qw.createNode(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}var qg=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done,oc=class extends ek.NodeBase{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){let n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(i=>Ze.isNode(i)||Ze.isPair(i)?i.clone(t):i),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(qg(t))this.add(n);else{let[i,...r]=t,o=this.get(i,!0);if(Ze.isCollection(o))o.addIn(r,n);else if(o===void 0&&this.schema)this.set(i,ic(this.schema,r,n));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${r}`)}}deleteIn(t){let[n,...i]=t;if(i.length===0)return this.delete(n);let r=this.get(n,!0);if(Ze.isCollection(r))return r.deleteIn(i);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}getIn(t,n){let[i,...r]=t,o=this.get(i,!0);return r.length===0?!n&&Ze.isScalar(o)?o.value:o:Ze.isCollection(o)?o.getIn(r,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!Ze.isPair(n))return!1;let i=n.value;return i==null||t&&Ze.isScalar(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(t){let[n,...i]=t;if(i.length===0)return this.has(n);let r=this.get(n,!0);return Ze.isCollection(r)?r.hasIn(i):!1}setIn(t,n){let[i,...r]=t;if(r.length===0)this.set(i,n);else{let o=this.get(i,!0);if(Ze.isCollection(o))o.setIn(r,n);else if(o===void 0&&this.schema)this.set(i,ic(this.schema,r,n));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${r}`)}}};Di.Collection=oc;Di.collectionFromPath=ic;Di.isEmptyPath=qg});var nn=x(Ri=>{"use strict";var tk=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function ac(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var rk=(e,t,n)=>e.endsWith(`
|
|
30
|
+
`)?ac(n,t):n.includes(`
|
|
31
31
|
`)?`
|
|
32
|
-
`+
|
|
33
|
-
`)n===
|
|
34
|
-
`&&p!==" "){let P=
|
|
35
|
-
`&&P!==" "&&(f=h)}if(h>=d)if(f)u.push(f),d=f+c,f=void 0;else if(n===
|
|
36
|
-
${
|
|
37
|
-
${
|
|
38
|
-
`);i=
|
|
39
|
-
`){if(o-a>i)return!0;if(a=o+1,r-a<=i)return!1}return!0}function
|
|
32
|
+
`+ac(n,t):(e.endsWith(" ")?"":" ")+n;Ri.indentComment=ac;Ri.lineComment=rk;Ri.stringifyComment=tk});var Vg=x(on=>{"use strict";var nk="flow",sc="block",Li="quoted";function ik(e,t,n="flow",{indentAtStart:i,lineWidth:r=80,minContentWidth:o=20,onFold:a,onOverflow:s}={}){if(!r||r<0)return e;r<o&&(o=0);let c=Math.max(1+o,1+r-t.length);if(e.length<=c)return e;let u=[],l={},d=r-t.length;typeof i=="number"&&(i>r-Math.max(2,o)?u.push(0):d=r-i);let f,p,y=!1,h=-1,b=-1,I=-1;n===sc&&(h=Fg(e,h,t.length),h!==-1&&(d=h+c));for(let O;O=e[h+=1];){if(n===Li&&O==="\\"){switch(b=h,e[h+1]){case"x":h+=3;break;case"u":h+=5;break;case"U":h+=9;break;default:h+=1}I=h}if(O===`
|
|
33
|
+
`)n===sc&&(h=Fg(e,h,t.length)),d=h+t.length+c,f=void 0;else{if(O===" "&&p&&p!==" "&&p!==`
|
|
34
|
+
`&&p!==" "){let P=e[h+1];P&&P!==" "&&P!==`
|
|
35
|
+
`&&P!==" "&&(f=h)}if(h>=d)if(f)u.push(f),d=f+c,f=void 0;else if(n===Li){for(;p===" "||p===" ";)p=O,O=e[h+=1],y=!0;let P=h>I+1?h-2:b-1;if(l[P])return e;u.push(P),l[P]=!0,d=P+c,f=void 0}else y=!0}p=O}if(y&&s&&s(),u.length===0)return e;a&&a();let A=e.slice(0,u[0]);for(let O=0;O<u.length;++O){let P=u[O],T=u[O+1]||e.length;P===0?A=`
|
|
36
|
+
${t}${e.slice(0,T)}`:(n===Li&&l[P]&&(A+=`${e[P]}\\`),A+=`
|
|
37
|
+
${t}${e.slice(P+1,T)}`)}return A}function Fg(e,t,n){let i=t,r=t+1,o=e[r];for(;o===" "||o===" ";)if(t<r+n)o=e[++t];else{do o=e[++t];while(o&&o!==`
|
|
38
|
+
`);i=t,r=t+1,o=e[r]}return i}on.FOLD_BLOCK=sc;on.FOLD_FLOW=nk;on.FOLD_QUOTED=Li;on.foldFlowLines=ik});var sn=x(Bg=>{"use strict";var ze=Y(),at=Vg(),Mi=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),qi=e=>/^(%|---|\.\.\.)/m.test(e);function ok(e,t,n){if(!t||t<0)return!1;let i=t-n,r=e.length;if(r<=i)return!1;for(let o=0,a=0;o<r;++o)if(e[o]===`
|
|
39
|
+
`){if(o-a>i)return!0;if(a=o+1,r-a<=i)return!1}return!0}function an(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:i}=t,r=t.options.doubleQuotedMinMultiLineLength,o=t.indent||(qi(e)?" ":""),a="",s=0;for(let c=0,u=n[c];u;u=n[++c])if(u===" "&&n[c+1]==="\\"&&n[c+2]==="n"&&(a+=n.slice(s,c)+"\\ ",c+=1,s=c,u="\\"),u==="\\")switch(n[c+1]){case"u":{a+=n.slice(s,c);let l=n.substr(c+2,4);switch(l){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:l.substr(0,2)==="00"?a+="\\x"+l.substr(2):a+=n.substr(c,6)}c+=5,s=c+1}break;case"n":if(i||n[c+2]==='"'||n.length<r)c+=1;else{for(a+=n.slice(s,c)+`
|
|
40
40
|
|
|
41
41
|
`;n[c+2]==="\\"&&n[c+3]==="n"&&n[c+4]!=='"';)a+=`
|
|
42
|
-
`,c+=2;a+=o,n[c+2]===" "&&(a+="\\"),c+=1,s=c+1}break;default:c+=1}return a=s?a+n.slice(s):n,i?a:
|
|
43
|
-
`)||/[ \t]\n|\n[ \t]/.test(
|
|
44
|
-
${n}`)+"'";return
|
|
42
|
+
`,c+=2;a+=o,n[c+2]===" "&&(a+="\\"),c+=1,s=c+1}break;default:c+=1}return a=s?a+n.slice(s):n,i?a:at.foldFlowLines(a,o,at.FOLD_QUOTED,Mi(t,!1))}function cc(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
|
43
|
+
`)||/[ \t]\n|\n[ \t]/.test(e))return an(e,t);let n=t.indent||(qi(e)?" ":""),i="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
44
|
+
${n}`)+"'";return t.implicitKey?i:at.foldFlowLines(i,n,at.FOLD_FLOW,Mi(t,!1))}function Xt(e,t){let{singleQuote:n}=t.options,i;if(n===!1)i=an;else{let r=e.includes('"'),o=e.includes("'");r&&!o?i=cc:o&&!r?i=an:i=n?cc:an}return i(e,t)}var uc;try{uc=new RegExp(`(^|(?<!
|
|
45
45
|
))
|
|
46
46
|
+(?!
|
|
47
|
-
|$)`,"g")}catch{
|
|
47
|
+
|$)`,"g")}catch{uc=/\n+(?!\n|$)/g}function Zi({comment:e,type:t,value:n},i,r,o){let{blockQuote:a,commentString:s,lineWidth:c}=i.options;if(!a||/\n[\t ]+$/.test(n))return Xt(n,i);let u=i.indent||(i.forceBlockIndent||qi(n)?" ":""),l=a==="literal"?!0:a==="folded"||t===ze.Scalar.BLOCK_FOLDED?!1:t===ze.Scalar.BLOCK_LITERAL?!0:!ok(n,c,u.length);if(!n)return l?`|
|
|
48
48
|
`:`>
|
|
49
49
|
`;let d,f;for(f=n.length;f>0;--f){let T=n[f-1];if(T!==`
|
|
50
50
|
`&&T!==" "&&T!==" ")break}let p=n.substring(f),y=p.indexOf(`
|
|
51
51
|
`);y===-1?d="-":n===p||y!==p.length-1?(d="+",o&&o()):d="",p&&(n=n.slice(0,-p.length),p[p.length-1]===`
|
|
52
|
-
`&&(p=p.slice(0,-1)),p=p.replace(
|
|
53
|
-
`)I=b;else break}let
|
|
54
|
-
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${u}`),C=!1,
|
|
55
|
-
${u}${
|
|
56
|
-
${u}${
|
|
57
|
-
`)||l&&/[[\]{},]/.test(o))return
|
|
58
|
-
`)?
|
|
59
|
-
`))return
|
|
60
|
-
${c}`);if(a){let f=h=>h.default&&h.tag!=="tag:yaml.org,2002:str"&&h.test?.test(d),{compat:p,tags:y}=
|
|
61
|
-
${
|
|
62
|
-
${s}:`):(b=`${b}:`,f&&(b+=
|
|
63
|
-
`:"",
|
|
64
|
-
${
|
|
52
|
+
`&&(p=p.slice(0,-1)),p=p.replace(uc,`$&${u}`));let h=!1,b,I=-1;for(b=0;b<n.length;++b){let T=n[b];if(T===" ")h=!0;else if(T===`
|
|
53
|
+
`)I=b;else break}let A=n.substring(0,I<b?I+1:b);A&&(n=n.substring(A.length),A=A.replace(/\n+/g,`$&${u}`));let P=(h?u?"2":"1":"")+d;if(e&&(P+=" "+s(e.replace(/ ?[\r\n]+/g," ")),r&&r()),!l){let T=n.replace(/\n+/g,`
|
|
54
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${u}`),C=!1,q=Mi(i,!0);a!=="folded"&&t!==ze.Scalar.BLOCK_FOLDED&&(q.onOverflow=()=>{C=!0});let E=at.foldFlowLines(`${A}${T}${p}`,u,at.FOLD_BLOCK,q);if(!C)return`>${P}
|
|
55
|
+
${u}${E}`}return n=n.replace(/\n+/g,`$&${u}`),`|${P}
|
|
56
|
+
${u}${A}${n}${p}`}function ak(e,t,n,i){let{type:r,value:o}=e,{actualString:a,implicitKey:s,indent:c,indentStep:u,inFlow:l}=t;if(s&&o.includes(`
|
|
57
|
+
`)||l&&/[[\]{},]/.test(o))return Xt(o,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return s||l||!o.includes(`
|
|
58
|
+
`)?Xt(o,t):Zi(e,t,n,i);if(!s&&!l&&r!==ze.Scalar.PLAIN&&o.includes(`
|
|
59
|
+
`))return Zi(e,t,n,i);if(qi(o)){if(c==="")return t.forceBlockIndent=!0,Zi(e,t,n,i);if(s&&c===u)return Xt(o,t)}let d=o.replace(/\n+/g,`$&
|
|
60
|
+
${c}`);if(a){let f=h=>h.default&&h.tag!=="tag:yaml.org,2002:str"&&h.test?.test(d),{compat:p,tags:y}=t.doc.schema;if(y.some(f)||p?.some(f))return Xt(o,t)}return s?d:at.foldFlowLines(d,c,at.FOLD_FLOW,Mi(t,!1))}function sk(e,t,n,i){let{implicitKey:r,inFlow:o}=t,a=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==ze.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(s=ze.Scalar.QUOTE_DOUBLE);let c=l=>{switch(l){case ze.Scalar.BLOCK_FOLDED:case ze.Scalar.BLOCK_LITERAL:return r||o?Xt(a.value,t):Zi(a,t,n,i);case ze.Scalar.QUOTE_DOUBLE:return an(a.value,t);case ze.Scalar.QUOTE_SINGLE:return cc(a.value,t);case ze.Scalar.PLAIN:return ak(a,t,n,i);default:return null}},u=c(s);if(u===null){let{defaultKeyType:l,defaultStringType:d}=t.options,f=r&&l||d;if(u=c(f),u===null)throw new Error(`Unsupported default string type ${f}`)}return u}Bg.stringifyString=sk});var cn=x(lc=>{"use strict";var ck=Ci(),st=D(),uk=nn(),lk=sn();function dk(e,t){let n=Object.assign({blockQuote:!0,commentString:uk.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t),i;switch(n.collectionStyle){case"block":i=!1;break;case"flow":i=!0;break;default:i=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:i,options:n}}function fk(e,t){if(t.tag){let r=e.filter(o=>o.tag===t.tag);if(r.length>0)return r.find(o=>o.format===t.format)??r[0]}let n,i;if(st.isScalar(t)){i=t.value;let r=e.filter(o=>o.identify?.(i));if(r.length>1){let o=r.filter(a=>a.test);o.length>0&&(r=o)}n=r.find(o=>o.format===t.format)??r.find(o=>!o.format)}else i=t,n=e.find(r=>r.nodeClass&&i instanceof r.nodeClass);if(!n){let r=i?.constructor?.name??(i===null?"null":typeof i);throw new Error(`Tag not resolved for ${r} value`)}return n}function mk(e,t,{anchors:n,doc:i}){if(!i.directives)return"";let r=[],o=(st.isScalar(e)||st.isCollection(e))&&e.anchor;o&&ck.anchorIsValid(o)&&(n.add(o),r.push(`&${o}`));let a=e.tag??(t.default?null:t.tag);return a&&r.push(i.directives.tagString(a)),r.join(" ")}function pk(e,t,n,i){if(st.isPair(e))return e.toString(t,n,i);if(st.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let r,o=st.isNode(e)?e:t.doc.createNode(e,{onTagObj:c=>r=c});r??(r=fk(t.doc.schema.tags,o));let a=mk(o,r,t);a.length>0&&(t.indentAtStart=(t.indentAtStart??0)+a.length+1);let s=typeof r.stringify=="function"?r.stringify(o,t,n,i):st.isScalar(o)?lk.stringifyString(o,t,n,i):o.toString(t,n,i);return a?st.isScalar(o)||s[0]==="{"||s[0]==="["?`${a} ${s}`:`${a}
|
|
61
|
+
${t.indent}${s}`:s}lc.createStringifyContext=dk;lc.stringify=pk});var Wg=x(Jg=>{"use strict";var Ge=D(),Kg=Y(),Hg=cn(),un=nn();function gk({key:e,value:t},n,i,r){let{allNullValues:o,doc:a,indent:s,indentStep:c,options:{commentString:u,indentSeq:l,simpleKeys:d}}=n,f=Ge.isNode(e)&&e.comment||null;if(d){if(f)throw new Error("With simple keys, key nodes cannot have comments");if(Ge.isCollection(e)||!Ge.isNode(e)&&typeof e=="object"){let q="With simple keys, collection cannot be used as a key value";throw new Error(q)}}let p=!d&&(!e||f&&t==null&&!n.inFlow||Ge.isCollection(e)||(Ge.isScalar(e)?e.type===Kg.Scalar.BLOCK_FOLDED||e.type===Kg.Scalar.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!p&&(d||!o),indent:s+c});let y=!1,h=!1,b=Hg.stringify(e,n,()=>y=!0,()=>h=!0);if(!p&&!n.inFlow&&b.length>1024){if(d)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");p=!0}if(n.inFlow){if(o||t==null)return y&&i&&i(),b===""?"?":p?`? ${b}`:b}else if(o&&!d||t==null&&p)return b=`? ${b}`,f&&!y?b+=un.lineComment(b,n.indent,u(f)):h&&r&&r(),b;y&&(f=null),p?(f&&(b+=un.lineComment(b,n.indent,u(f))),b=`? ${b}
|
|
62
|
+
${s}:`):(b=`${b}:`,f&&(b+=un.lineComment(b,n.indent,u(f))));let I,A,O;Ge.isNode(t)?(I=!!t.spaceBefore,A=t.commentBefore,O=t.comment):(I=!1,A=null,O=null,t&&typeof t=="object"&&(t=a.createNode(t))),n.implicitKey=!1,!p&&!f&&Ge.isScalar(t)&&(n.indentAtStart=b.length+1),h=!1,!l&&c.length>=2&&!n.inFlow&&!p&&Ge.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let P=!1,T=Hg.stringify(t,n,()=>P=!0,()=>h=!0),C=" ";if(f||I||A){if(C=I?`
|
|
63
|
+
`:"",A){let q=u(A);C+=`
|
|
64
|
+
${un.indentComment(q,n.indent)}`}T===""&&!n.inFlow?C===`
|
|
65
65
|
`&&O&&(C=`
|
|
66
66
|
|
|
67
67
|
`):C+=`
|
|
68
|
-
${n.indent}`}else if(!p&&
|
|
69
|
-
`),X=
|
|
68
|
+
${n.indent}`}else if(!p&&Ge.isCollection(t)){let q=T[0],E=T.indexOf(`
|
|
69
|
+
`),X=E!==-1,et=n.inFlow??t.flow??t.items.length===0;if(X||!et){let Bt=!1;if(X&&(q==="&"||q==="!")){let Q=T.indexOf(" ");q==="&"&&Q!==-1&&Q<E&&T[Q+1]==="!"&&(Q=T.indexOf(" ",Q+1)),(Q===-1||E<Q)&&(Bt=!0)}Bt||(C=`
|
|
70
70
|
${n.indent}`)}}else(T===""||T[0]===`
|
|
71
|
-
`)&&(C="");return b+=C+T,n.inFlow?P&&i&&i():O&&!P?b+=
|
|
71
|
+
`)&&(C="");return b+=C+T,n.inFlow?P&&i&&i():O&&!P?b+=un.lineComment(b,n.indent,u(O)):h&&r&&r(),b}Jg.stringifyPair=gk});var fc=x(dc=>{"use strict";var Gg=Ke("process");function hk(e,...t){e==="debug"&&console.log(...t)}function vk(e,t){(e==="debug"||e==="warn")&&(typeof Gg.emitWarning=="function"?Gg.emitWarning(t):console.warn(t))}dc.debug=hk;dc.warn=vk});var Ki=x(Bi=>{"use strict";var ln=D(),Yg=Y(),Fi="<<",Vi={identify:e=>e===Fi||typeof e=="symbol"&&e.description===Fi,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new Yg.Scalar(Symbol(Fi)),{addToJSMap:Xg}),stringify:()=>Fi},yk=(e,t)=>(Vi.identify(t)||ln.isScalar(t)&&(!t.type||t.type===Yg.Scalar.PLAIN)&&Vi.identify(t.value))&&e?.doc.schema.tags.some(n=>n.tag===Vi.tag&&n.default);function Xg(e,t,n){if(n=e&&ln.isAlias(n)?n.resolve(e.doc):n,ln.isSeq(n))for(let i of n.items)mc(e,t,i);else if(Array.isArray(n))for(let i of n)mc(e,t,i);else mc(e,t,n)}function mc(e,t,n){let i=e&&ln.isAlias(n)?n.resolve(e.doc):n;if(!ln.isMap(i))throw new Error("Merge sources must be maps or map aliases");let r=i.toJSON(null,e,Map);for(let[o,a]of r)t instanceof Map?t.has(o)||t.set(o,a):t instanceof Set?t.add(o):Object.prototype.hasOwnProperty.call(t,o)||Object.defineProperty(t,o,{value:a,writable:!0,enumerable:!0,configurable:!0});return t}Bi.addMergeToJSMap=Xg;Bi.isMergeKey=yk;Bi.merge=Vi});var gc=x(th=>{"use strict";var bk=fc(),Qg=Ki(),_k=cn(),eh=D(),pc=it();function $k(e,t,{key:n,value:i}){if(eh.isNode(n)&&n.addToJSMap)n.addToJSMap(e,t,i);else if(Qg.isMergeKey(e,n))Qg.addMergeToJSMap(e,t,i);else{let r=pc.toJS(n,"",e);if(t instanceof Map)t.set(r,pc.toJS(i,r,e));else if(t instanceof Set)t.add(r);else{let o=wk(n,r,e),a=pc.toJS(i,o,e);o in t?Object.defineProperty(t,o,{value:a,writable:!0,enumerable:!0,configurable:!0}):t[o]=a}}return t}function wk(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(eh.isNode(e)&&n?.doc){let i=_k.createStringifyContext(n.doc,{});i.anchors=new Set;for(let o of n.anchors.keys())i.anchors.add(o.anchor);i.inFlow=!0,i.inStringifyKey=!0;let r=e.toString(i);if(!n.mapKeyWarned){let o=JSON.stringify(r);o.length>40&&(o=o.substring(0,36)+'..."'),bk.warn(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${o}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}th.addPairToJSMap=$k});var ct=x(hc=>{"use strict";var rh=rn(),kk=Wg(),xk=gc(),Hi=D();function Sk(e,t,n){let i=rh.createNode(e,void 0,n),r=rh.createNode(t,void 0,n);return new Ji(i,r)}var Ji=class e{constructor(t,n=null){Object.defineProperty(this,Hi.NODE_TYPE,{value:Hi.PAIR}),this.key=t,this.value=n}clone(t){let{key:n,value:i}=this;return Hi.isNode(n)&&(n=n.clone(t)),Hi.isNode(i)&&(i=i.clone(t)),new e(n,i)}toJSON(t,n){let i=n?.mapAsMap?new Map:{};return xk.addPairToJSMap(n,i,this)}toString(t,n,i){return t?.doc?kk.stringifyPair(this,t,n,i):JSON.stringify(this)}};hc.Pair=Ji;hc.createPair=Sk});var vc=x(ih=>{"use strict";var At=D(),nh=cn(),Wi=nn();function Ik(e,t,n){return(t.inFlow??e.flow?Pk:Ok)(e,t,n)}function Ok({comment:e,items:t},n,{blockItemPrefix:i,flowChars:r,itemIndent:o,onChompKeep:a,onComment:s}){let{indent:c,options:{commentString:u}}=n,l=Object.assign({},n,{indent:o,type:null}),d=!1,f=[];for(let y=0;y<t.length;++y){let h=t[y],b=null;if(At.isNode(h))!d&&h.spaceBefore&&f.push(""),Gi(n,f,h.commentBefore,d),h.comment&&(b=h.comment);else if(At.isPair(h)){let A=At.isNode(h.key)?h.key:null;A&&(!d&&A.spaceBefore&&f.push(""),Gi(n,f,A.commentBefore,d))}d=!1;let I=nh.stringify(h,l,()=>b=null,()=>d=!0);b&&(I+=Wi.lineComment(I,o,u(b))),d&&b&&(d=!1),f.push(i+I)}let p;if(f.length===0)p=r.start+r.end;else{p=f[0];for(let y=1;y<f.length;++y){let h=f[y];p+=h?`
|
|
72
72
|
${c}${h}`:`
|
|
73
|
-
`}}return
|
|
74
|
-
`+
|
|
75
|
-
`)),y<
|
|
73
|
+
`}}return e?(p+=`
|
|
74
|
+
`+Wi.indentComment(u(e),c),s&&s()):d&&a&&a(),p}function Pk({items:e},t,{flowChars:n,itemIndent:i}){let{indent:r,indentStep:o,flowCollectionPadding:a,options:{commentString:s}}=t;i+=o;let c=Object.assign({},t,{indent:i,inFlow:!0,type:null}),u=!1,l=0,d=[];for(let y=0;y<e.length;++y){let h=e[y],b=null;if(At.isNode(h))h.spaceBefore&&d.push(""),Gi(t,d,h.commentBefore,!1),h.comment&&(b=h.comment);else if(At.isPair(h)){let A=At.isNode(h.key)?h.key:null;A&&(A.spaceBefore&&d.push(""),Gi(t,d,A.commentBefore,!1),A.comment&&(u=!0));let O=At.isNode(h.value)?h.value:null;O?(O.comment&&(b=O.comment),O.commentBefore&&(u=!0)):h.value==null&&A?.comment&&(b=A.comment)}b&&(u=!0);let I=nh.stringify(h,c,()=>b=null);u||(u=d.length>l||I.includes(`
|
|
75
|
+
`)),y<e.length-1?I+=",":t.options.trailingComma&&(t.options.lineWidth>0&&(u||(u=d.reduce((A,O)=>A+O.length+2,2)+(I.length+2)>t.options.lineWidth)),u&&(I+=",")),b&&(I+=Wi.lineComment(I,i,s(b))),d.push(I),l=d.length}let{start:f,end:p}=n;if(d.length===0)return f+p;if(!u){let y=d.reduce((h,b)=>h+b.length+2,2);u=t.options.lineWidth>0&&y>t.options.lineWidth}if(u){let y=f;for(let h of d)y+=h?`
|
|
76
76
|
${o}${r}${h}`:`
|
|
77
77
|
`;return`${y}
|
|
78
|
-
${r}${p}`}else return`${f}${a}${d.join(" ")}${a}${p}`}function
|
|
79
|
-
`:" ")}return
|
|
78
|
+
${r}${p}`}else return`${f}${a}${d.join(" ")}${a}${p}`}function Gi({indent:e,options:{commentString:t}},n,i,r){if(i&&r&&(i=i.replace(/^\n+/,"")),i){let o=Wi.indentComment(t(i),e);n.push(o.trimStart())}}ih.stringifyCollection=Ik});var lt=x(bc=>{"use strict";var Ek=vc(),Ak=gc(),Tk=Ui(),ut=D(),Yi=ct(),zk=Y();function dn(e,t){let n=ut.isScalar(t)?t.value:t;for(let i of e)if(ut.isPair(i)&&(i.key===t||i.key===n||ut.isScalar(i.key)&&i.key.value===n))return i}var yc=class extends Tk.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(ut.MAP,t),this.items=[]}static from(t,n,i){let{keepUndefined:r,replacer:o}=i,a=new this(t),s=(c,u)=>{if(typeof o=="function")u=o.call(n,c,u);else if(Array.isArray(o)&&!o.includes(c))return;(u!==void 0||r)&&a.items.push(Yi.createPair(c,u,i))};if(n instanceof Map)for(let[c,u]of n)s(c,u);else if(n&&typeof n=="object")for(let c of Object.keys(n))s(c,n[c]);return typeof t.sortMapEntries=="function"&&a.items.sort(t.sortMapEntries),a}add(t,n){let i;ut.isPair(t)?i=t:!t||typeof t!="object"||!("key"in t)?i=new Yi.Pair(t,t?.value):i=new Yi.Pair(t.key,t.value);let r=dn(this.items,i.key),o=this.schema?.sortMapEntries;if(r){if(!n)throw new Error(`Key ${i.key} already set`);ut.isScalar(r.value)&&zk.isScalarValue(i.value)?r.value.value=i.value:r.value=i.value}else if(o){let a=this.items.findIndex(s=>o(i,s)<0);a===-1?this.items.push(i):this.items.splice(a,0,i)}else this.items.push(i)}delete(t){let n=dn(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){let r=dn(this.items,t)?.value;return(!n&&ut.isScalar(r)?r.value:r)??void 0}has(t){return!!dn(this.items,t)}set(t,n){this.add(new Yi.Pair(t,n),!0)}toJSON(t,n,i){let r=i?new i:n?.mapAsMap?new Map:{};n?.onCreate&&n.onCreate(r);for(let o of this.items)Ak.addPairToJSMap(n,r,o);return r}toString(t,n,i){if(!t)return JSON.stringify(this);for(let r of this.items)if(!ut.isPair(r))throw new Error(`Map items must all be pairs; found ${JSON.stringify(r)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),Ek.stringifyCollection(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:i,onComment:n})}};bc.YAMLMap=yc;bc.findPair=dn});var Qt=x(ah=>{"use strict";var Ck=D(),oh=lt(),jk={collection:"map",default:!0,nodeClass:oh.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){return Ck.isMap(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>oh.YAMLMap.from(e,t,n)};ah.map=jk});var dt=x(sh=>{"use strict";var Nk=rn(),Dk=vc(),Uk=Ui(),Qi=D(),Rk=Y(),Lk=it(),_c=class extends Uk.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Qi.SEQ,t),this.items=[]}add(t){this.items.push(t)}delete(t){let n=Xi(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){let i=Xi(t);if(typeof i!="number")return;let r=this.items[i];return!n&&Qi.isScalar(r)?r.value:r}has(t){let n=Xi(t);return typeof n=="number"&&n<this.items.length}set(t,n){let i=Xi(t);if(typeof i!="number")throw new Error(`Expected a valid index, not ${t}.`);let r=this.items[i];Qi.isScalar(r)&&Rk.isScalarValue(n)?r.value=n:this.items[i]=n}toJSON(t,n){let i=[];n?.onCreate&&n.onCreate(i);let r=0;for(let o of this.items)i.push(Lk.toJS(o,String(r++),n));return i}toString(t,n,i){return t?Dk.stringifyCollection(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:i,onComment:n}):JSON.stringify(this)}static from(t,n,i){let{replacer:r}=i,o=new this(t);if(n&&Symbol.iterator in Object(n)){let a=0;for(let s of n){if(typeof r=="function"){let c=n instanceof Set?s:String(a++);s=r.call(n,c,s)}o.items.push(Nk.createNode(s,void 0,i))}}return o}};function Xi(e){let t=Qi.isScalar(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}sh.YAMLSeq=_c});var er=x(uh=>{"use strict";var Zk=D(),ch=dt(),Mk={collection:"seq",default:!0,nodeClass:ch.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Zk.isSeq(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>ch.YAMLSeq.from(e,t,n)};uh.seq=Mk});var fn=x(lh=>{"use strict";var qk=sn(),Fk={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,i){return t=Object.assign({actualString:!0},t),qk.stringifyString(e,t,n,i)}};lh.string=Fk});var eo=x(mh=>{"use strict";var dh=Y(),fh={identify:e=>e==null,createNode:()=>new dh.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new dh.Scalar(null),stringify:({source:e},t)=>typeof e=="string"&&fh.test.test(e)?e:t.options.nullStr};mh.nullTag=fh});var $c=x(gh=>{"use strict";var Vk=Y(),ph={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Vk.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&ph.test.test(e)){let i=e[0]==="t"||e[0]==="T";if(t===i)return e}return t?n.options.trueStr:n.options.falseStr}};gh.boolTag=ph});var tr=x(hh=>{"use strict";function Bk({format:e,minFractionDigits:t,tag:n,value:i}){if(typeof i=="bigint")return String(i);let r=typeof i=="number"?i:Number(i);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let o=Object.is(i,-0)?"-0":JSON.stringify(i);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let a=o.indexOf(".");a<0&&(a=o.length,o+=".");let s=t-(o.length-a-1);for(;s-- >0;)o+="0"}return o}hh.stringifyNumber=Bk});var kc=x(to=>{"use strict";var Kk=Y(),wc=tr(),Hk={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:wc.stringifyNumber},Jk={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():wc.stringifyNumber(e)}},Wk={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new Kk.Scalar(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:wc.stringifyNumber};to.float=Wk;to.floatExp=Jk;to.floatNaN=Hk});var Sc=x(no=>{"use strict";var vh=tr(),ro=e=>typeof e=="bigint"||Number.isInteger(e),xc=(e,t,n,{intAsBigInt:i})=>i?BigInt(e):parseInt(e.substring(t),n);function yh(e,t,n){let{value:i}=e;return ro(i)&&i>=0?n+i.toString(t):vh.stringifyNumber(e)}var Gk={identify:e=>ro(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>xc(e,2,8,n),stringify:e=>yh(e,8,"0o")},Yk={identify:ro,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>xc(e,0,10,n),stringify:vh.stringifyNumber},Xk={identify:e=>ro(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>xc(e,2,16,n),stringify:e=>yh(e,16,"0x")};no.int=Yk;no.intHex=Xk;no.intOct=Gk});var _h=x(bh=>{"use strict";var Qk=Qt(),ex=eo(),tx=er(),rx=fn(),nx=$c(),Ic=kc(),Oc=Sc(),ix=[Qk.map,tx.seq,rx.string,ex.nullTag,nx.boolTag,Oc.intOct,Oc.int,Oc.intHex,Ic.floatNaN,Ic.floatExp,Ic.float];bh.schema=ix});var kh=x(wh=>{"use strict";var ox=Y(),ax=Qt(),sx=er();function $h(e){return typeof e=="bigint"||Number.isInteger(e)}var io=({value:e})=>JSON.stringify(e),cx=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:io},{identify:e=>e==null,createNode:()=>new ox.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:io},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:io},{identify:$h,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>$h(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:io}],ux={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},lx=[ax.map,sx.seq].concat(cx,ux);wh.schema=lx});var Ec=x(xh=>{"use strict";var mn=Ke("buffer"),Pc=Y(),dx=sn(),fx={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof mn.Buffer=="function")return mn.Buffer.from(e,"base64");if(typeof atob=="function"){let n=atob(e.replace(/[\n\r]/g,"")),i=new Uint8Array(n.length);for(let r=0;r<n.length;++r)i[r]=n.charCodeAt(r);return i}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},i,r,o){if(!n)return"";let a=n,s;if(typeof mn.Buffer=="function")s=a instanceof mn.Buffer?a.toString("base64"):mn.Buffer.from(a.buffer).toString("base64");else if(typeof btoa=="function"){let c="";for(let u=0;u<a.length;++u)c+=String.fromCharCode(a[u]);s=btoa(c)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=Pc.Scalar.BLOCK_LITERAL),t!==Pc.Scalar.QUOTE_DOUBLE){let c=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),u=Math.ceil(s.length/c),l=new Array(u);for(let d=0,f=0;d<u;++d,f+=c)l[d]=s.substr(f,c);s=l.join(t===Pc.Scalar.BLOCK_LITERAL?`
|
|
79
|
+
`:" ")}return dx.stringifyString({comment:e,type:t,value:s},i,r,o)}};xh.binary=fx});var so=x(ao=>{"use strict";var oo=D(),Ac=ct(),mx=Y(),px=dt();function Sh(e,t){if(oo.isSeq(e))for(let n=0;n<e.items.length;++n){let i=e.items[n];if(!oo.isPair(i)){if(oo.isMap(i)){i.items.length>1&&t("Each pair must have its own sequence indicator");let r=i.items[0]||new Ac.Pair(new mx.Scalar(null));if(i.commentBefore&&(r.key.commentBefore=r.key.commentBefore?`${i.commentBefore}
|
|
80
80
|
${r.key.commentBefore}`:i.commentBefore),i.comment){let o=r.value??r.key;o.comment=o.comment?`${i.comment}
|
|
81
|
-
${o.comment}`:i.comment}i=r}t.items[n]=Xi.isPair(i)?i:new xc.Pair(i)}}else e("Expected a sequence for this tag");return t}function _h(t,e,n){let{replacer:i}=n,r=new sx.YAMLSeq(t);r.tag="tag:yaml.org,2002:pairs";let o=0;if(e&&Symbol.iterator in Object(e))for(let a of e){typeof i=="function"&&(a=i.call(e,String(o++),a));let s,c;if(Array.isArray(a))if(a.length===2)s=a[0],c=a[1];else throw new TypeError(`Expected [key, value] tuple: ${a}`);else if(a&&a instanceof Object){let u=Object.keys(a);if(u.length===1)s=u[0],c=a[s];else throw new TypeError(`Expected tuple with one key, not ${u.length} keys`)}else s=a;r.items.push(xc.createPair(s,c,n))}return r}var cx={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:bh,createNode:_h};Qi.createPairs=_h;Qi.pairs=cx;Qi.resolvePairs=bh});var Oc=x(Ic=>{"use strict";var $h=D(),Sc=tt(),fn=st(),ux=ct(),wh=eo(),Pt=class t extends ux.YAMLSeq{constructor(){super(),this.add=fn.YAMLMap.prototype.add.bind(this),this.delete=fn.YAMLMap.prototype.delete.bind(this),this.get=fn.YAMLMap.prototype.get.bind(this),this.has=fn.YAMLMap.prototype.has.bind(this),this.set=fn.YAMLMap.prototype.set.bind(this),this.tag=t.tag}toJSON(e,n){if(!n)return super.toJSON(e);let i=new Map;n?.onCreate&&n.onCreate(i);for(let r of this.items){let o,a;if($h.isPair(r)?(o=Sc.toJS(r.key,"",n),a=Sc.toJS(r.value,o,n)):o=Sc.toJS(r,"",n),i.has(o))throw new Error("Ordered maps must not include duplicate keys");i.set(o,a)}return i}static from(e,n,i){let r=wh.createPairs(e,n,i),o=new this;return o.items=r.items,o}};Pt.tag="tag:yaml.org,2002:omap";var lx={collection:"seq",identify:t=>t instanceof Map,nodeClass:Pt,default:!1,tag:"tag:yaml.org,2002:omap",resolve(t,e){let n=wh.resolvePairs(t,e),i=[];for(let{key:r}of n.items)$h.isScalar(r)&&(i.includes(r.value)?e(`Ordered maps must not include duplicate keys: ${r.value}`):i.push(r.value));return Object.assign(new Pt,n)},createNode:(t,e,n)=>Pt.from(t,e,n)};Ic.YAMLOMap=Pt;Ic.omap=lx});var Oh=x(Pc=>{"use strict";var kh=Y();function xh({value:t,source:e},n){return e&&(t?Sh:Ih).test.test(e)?e:t?n.options.trueStr:n.options.falseStr}var Sh={identify:t=>t===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new kh.Scalar(!0),stringify:xh},Ih={identify:t=>t===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new kh.Scalar(!1),stringify:xh};Pc.falseTag=Ih;Pc.trueTag=Sh});var Ph=x(to=>{"use strict";var dx=Y(),Ac=Xt(),fx={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Ac.stringifyNumber},mx={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify(t){let e=Number(t.value);return isFinite(e)?e.toExponential():Ac.stringifyNumber(t)}},px={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(t){let e=new dx.Scalar(parseFloat(t.replace(/_/g,""))),n=t.indexOf(".");if(n!==-1){let i=t.substring(n+1).replace(/_/g,"");i[i.length-1]==="0"&&(e.minFractionDigits=i.length)}return e},stringify:Ac.stringifyNumber};to.float=px;to.floatExp=mx;to.floatNaN=fx});var Eh=x(pn=>{"use strict";var Ah=Xt(),mn=t=>typeof t=="bigint"||Number.isInteger(t);function ro(t,e,n,{intAsBigInt:i}){let r=t[0];if((r==="-"||r==="+")&&(e+=1),t=t.substring(e).replace(/_/g,""),i){switch(n){case 2:t=`0b${t}`;break;case 8:t=`0o${t}`;break;case 16:t=`0x${t}`;break}let a=BigInt(t);return r==="-"?BigInt(-1)*a:a}let o=parseInt(t,n);return r==="-"?-1*o:o}function Ec(t,e,n){let{value:i}=t;if(mn(i)){let r=i.toString(e);return i<0?"-"+n+r.substr(1):n+r}return Ah.stringifyNumber(t)}var gx={identify:mn,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(t,e,n)=>ro(t,2,2,n),stringify:t=>Ec(t,2,"0b")},hx={identify:mn,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(t,e,n)=>ro(t,1,8,n),stringify:t=>Ec(t,8,"0")},vx={identify:mn,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(t,e,n)=>ro(t,0,10,n),stringify:Ah.stringifyNumber},yx={identify:mn,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(t,e,n)=>ro(t,2,16,n),stringify:t=>Ec(t,16,"0x")};pn.int=vx;pn.intBin=gx;pn.intHex=yx;pn.intOct=hx});var zc=x(Tc=>{"use strict";var oo=D(),no=ot(),io=st(),At=class t extends io.YAMLMap{constructor(e){super(e),this.tag=t.tag}add(e){let n;oo.isPair(e)?n=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?n=new no.Pair(e.key,null):n=new no.Pair(e,null),io.findPair(this.items,n.key)||this.items.push(n)}get(e,n){let i=io.findPair(this.items,e);return!n&&oo.isPair(i)?oo.isScalar(i.key)?i.key.value:i.key:i}set(e,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);let i=io.findPair(this.items,e);i&&!n?this.items.splice(this.items.indexOf(i),1):!i&&n&&this.items.push(new no.Pair(e))}toJSON(e,n){return super.toJSON(e,n,Set)}toString(e,n,i){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),n,i);throw new Error("Set items must all have null values")}static from(e,n,i){let{replacer:r}=i,o=new this(e);if(n&&Symbol.iterator in Object(n))for(let a of n)typeof r=="function"&&(a=r.call(n,a,a)),o.items.push(no.createPair(a,null,i));return o}};At.tag="tag:yaml.org,2002:set";var bx={collection:"map",identify:t=>t instanceof Set,nodeClass:At,default:!1,tag:"tag:yaml.org,2002:set",createNode:(t,e,n)=>At.from(t,e,n),resolve(t,e){if(oo.isMap(t)){if(t.hasAllNullValues(!0))return Object.assign(new At,t);e("Set items must all have null values")}else e("Expected a mapping for this tag");return t}};Tc.YAMLSet=At;Tc.set=bx});var jc=x(ao=>{"use strict";var _x=Xt();function Cc(t,e){let n=t[0],i=n==="-"||n==="+"?t.substring(1):t,r=a=>e?BigInt(a):Number(a),o=i.replace(/_/g,"").split(":").reduce((a,s)=>a*r(60)+r(s),r(0));return n==="-"?r(-1)*o:o}function Th(t){let{value:e}=t,n=a=>a;if(typeof e=="bigint")n=a=>BigInt(a);else if(isNaN(e)||!isFinite(e))return _x.stringifyNumber(t);let i="";e<0&&(i="-",e*=n(-1));let r=n(60),o=[e%r];return e<60?o.unshift(0):(e=(e-o[0])/r,o.unshift(e%r),e>=60&&(e=(e-o[0])/r,o.unshift(e))),i+o.map(a=>String(a).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var $x={identify:t=>typeof t=="bigint"||Number.isInteger(t),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(t,e,{intAsBigInt:n})=>Cc(t,n),stringify:Th},wx={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:t=>Cc(t,!1),stringify:Th},zh={identify:t=>t instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(t){let e=t.match(zh.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,n,i,r,o,a,s]=e.map(Number),c=e[7]?Number((e[7]+"00").substr(1,3)):0,u=Date.UTC(n,i-1,r,o||0,a||0,s||0,c),l=e[8];if(l&&l!=="Z"){let d=Cc(l,!1);Math.abs(d)<30&&(d*=60),u-=6e4*d}return new Date(u)},stringify:({value:t})=>t?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};ao.floatTime=wx;ao.intTime=$x;ao.timestamp=zh});var Nh=x(jh=>{"use strict";var kx=Gt(),xx=Ji(),Sx=Yt(),Ix=ln(),Ox=kc(),Ch=Oh(),Nc=Ph(),so=Eh(),Px=Li(),Ax=Oc(),Ex=eo(),Tx=zc(),Dc=jc(),zx=[kx.map,Sx.seq,Ix.string,xx.nullTag,Ch.trueTag,Ch.falseTag,so.intBin,so.intOct,so.int,so.intHex,Nc.floatNaN,Nc.floatExp,Nc.float,Ox.binary,Px.merge,Ax.omap,Ex.pairs,Tx.set,Dc.intTime,Dc.floatTime,Dc.timestamp];jh.schema=zx});var Bh=x(Lc=>{"use strict";var Lh=Gt(),Cx=Ji(),Zh=Yt(),jx=ln(),Nx=gc(),Uc=vc(),Rc=bc(),Dx=ph(),Ux=vh(),Mh=kc(),gn=Li(),qh=Oc(),Fh=eo(),Dh=Nh(),Vh=zc(),co=jc(),Uh=new Map([["core",Dx.schema],["failsafe",[Lh.map,Zh.seq,jx.string]],["json",Ux.schema],["yaml11",Dh.schema],["yaml-1.1",Dh.schema]]),Rh={binary:Mh.binary,bool:Nx.boolTag,float:Uc.float,floatExp:Uc.floatExp,floatNaN:Uc.floatNaN,floatTime:co.floatTime,int:Rc.int,intHex:Rc.intHex,intOct:Rc.intOct,intTime:co.intTime,map:Lh.map,merge:gn.merge,null:Cx.nullTag,omap:qh.omap,pairs:Fh.pairs,seq:Zh.seq,set:Vh.set,timestamp:co.timestamp},Rx={"tag:yaml.org,2002:binary":Mh.binary,"tag:yaml.org,2002:merge":gn.merge,"tag:yaml.org,2002:omap":qh.omap,"tag:yaml.org,2002:pairs":Fh.pairs,"tag:yaml.org,2002:set":Vh.set,"tag:yaml.org,2002:timestamp":co.timestamp};function Lx(t,e,n){let i=Uh.get(e);if(i&&!t)return n&&!i.includes(gn.merge)?i.concat(gn.merge):i.slice();let r=i;if(!r)if(Array.isArray(t))r=[];else{let o=Array.from(Uh.keys()).filter(a=>a!=="yaml11").map(a=>JSON.stringify(a)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${o} or define customTags array`)}if(Array.isArray(t))for(let o of t)r=r.concat(o);else typeof t=="function"&&(r=t(r.slice()));return n&&(r=r.concat(gn.merge)),r.reduce((o,a)=>{let s=typeof a=="string"?Rh[a]:a;if(!s){let c=JSON.stringify(a),u=Object.keys(Rh).map(l=>JSON.stringify(l)).join(", ");throw new Error(`Unknown custom tag ${c}; use one of ${u}`)}return o.includes(s)||o.push(s),o},[])}Lc.coreKnownTags=Rx;Lc.getTags=Lx});var qc=x(Kh=>{"use strict";var Zc=D(),Zx=Gt(),Mx=Yt(),qx=ln(),uo=Bh(),Fx=(t,e)=>t.key<e.key?-1:t.key>e.key?1:0,Mc=class t{constructor({compat:e,customTags:n,merge:i,resolveKnownTags:r,schema:o,sortMapEntries:a,toStringDefaults:s}){this.compat=Array.isArray(e)?uo.getTags(e,"compat"):e?uo.getTags(null,e):null,this.name=typeof o=="string"&&o||"core",this.knownTags=r?uo.coreKnownTags:{},this.tags=uo.getTags(n,this.name,i),this.toStringOptions=s??null,Object.defineProperty(this,Zc.MAP,{value:Zx.map}),Object.defineProperty(this,Zc.SCALAR,{value:qx.string}),Object.defineProperty(this,Zc.SEQ,{value:Mx.seq}),this.sortMapEntries=typeof a=="function"?a:a===!0?Fx:null}clone(){let e=Object.create(t.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}};Kh.Schema=Mc});var Hh=x(Jh=>{"use strict";var Vx=D(),Fc=an(),hn=tn();function Bx(t,e){let n=[],i=e.directives===!0;if(e.directives!==!1&&t.directives){let c=t.directives.toString(t);c?(n.push(c),i=!0):t.directives.docStart&&(i=!0)}i&&n.push("---");let r=Fc.createStringifyContext(t,e),{commentString:o}=r.options;if(t.commentBefore){n.length!==1&&n.unshift("");let c=o(t.commentBefore);n.unshift(hn.indentComment(c,""))}let a=!1,s=null;if(t.contents){if(Vx.isNode(t.contents)){if(t.contents.spaceBefore&&i&&n.push(""),t.contents.commentBefore){let l=o(t.contents.commentBefore);n.push(hn.indentComment(l,""))}r.forceBlockIndent=!!t.comment,s=t.contents.comment}let c=s?void 0:()=>a=!0,u=Fc.stringify(t.contents,r,()=>s=null,c);s&&(u+=hn.lineComment(u,"",o(s))),(u[0]==="|"||u[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${u}`:n.push(u)}else n.push(Fc.stringify(t.contents,r));if(t.directives?.docEnd)if(t.comment){let c=o(t.comment);c.includes(`
|
|
82
|
-
`)?(n.push("..."),n.push(
|
|
81
|
+
${o.comment}`:i.comment}i=r}e.items[n]=oo.isPair(i)?i:new Ac.Pair(i)}}else t("Expected a sequence for this tag");return e}function Ih(e,t,n){let{replacer:i}=n,r=new px.YAMLSeq(e);r.tag="tag:yaml.org,2002:pairs";let o=0;if(t&&Symbol.iterator in Object(t))for(let a of t){typeof i=="function"&&(a=i.call(t,String(o++),a));let s,c;if(Array.isArray(a))if(a.length===2)s=a[0],c=a[1];else throw new TypeError(`Expected [key, value] tuple: ${a}`);else if(a&&a instanceof Object){let u=Object.keys(a);if(u.length===1)s=u[0],c=a[s];else throw new TypeError(`Expected tuple with one key, not ${u.length} keys`)}else s=a;r.items.push(Ac.createPair(s,c,n))}return r}var gx={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Sh,createNode:Ih};ao.createPairs=Ih;ao.pairs=gx;ao.resolvePairs=Sh});var Cc=x(zc=>{"use strict";var Oh=D(),Tc=it(),pn=lt(),hx=dt(),Ph=so(),Tt=class e extends hx.YAMLSeq{constructor(){super(),this.add=pn.YAMLMap.prototype.add.bind(this),this.delete=pn.YAMLMap.prototype.delete.bind(this),this.get=pn.YAMLMap.prototype.get.bind(this),this.has=pn.YAMLMap.prototype.has.bind(this),this.set=pn.YAMLMap.prototype.set.bind(this),this.tag=e.tag}toJSON(t,n){if(!n)return super.toJSON(t);let i=new Map;n?.onCreate&&n.onCreate(i);for(let r of this.items){let o,a;if(Oh.isPair(r)?(o=Tc.toJS(r.key,"",n),a=Tc.toJS(r.value,o,n)):o=Tc.toJS(r,"",n),i.has(o))throw new Error("Ordered maps must not include duplicate keys");i.set(o,a)}return i}static from(t,n,i){let r=Ph.createPairs(t,n,i),o=new this;return o.items=r.items,o}};Tt.tag="tag:yaml.org,2002:omap";var vx={collection:"seq",identify:e=>e instanceof Map,nodeClass:Tt,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let n=Ph.resolvePairs(e,t),i=[];for(let{key:r}of n.items)Oh.isScalar(r)&&(i.includes(r.value)?t(`Ordered maps must not include duplicate keys: ${r.value}`):i.push(r.value));return Object.assign(new Tt,n)},createNode:(e,t,n)=>Tt.from(e,t,n)};zc.YAMLOMap=Tt;zc.omap=vx});var Ch=x(jc=>{"use strict";var Eh=Y();function Ah({value:e,source:t},n){return t&&(e?Th:zh).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}var Th={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Eh.Scalar(!0),stringify:Ah},zh={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Eh.Scalar(!1),stringify:Ah};jc.falseTag=zh;jc.trueTag=Th});var jh=x(co=>{"use strict";var yx=Y(),Nc=tr(),bx={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Nc.stringifyNumber},_x={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():Nc.stringifyNumber(e)}},$x={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new yx.Scalar(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){let i=e.substring(n+1).replace(/_/g,"");i[i.length-1]==="0"&&(t.minFractionDigits=i.length)}return t},stringify:Nc.stringifyNumber};co.float=$x;co.floatExp=_x;co.floatNaN=bx});var Dh=x(hn=>{"use strict";var Nh=tr(),gn=e=>typeof e=="bigint"||Number.isInteger(e);function uo(e,t,n,{intAsBigInt:i}){let r=e[0];if((r==="-"||r==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),i){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let a=BigInt(e);return r==="-"?BigInt(-1)*a:a}let o=parseInt(e,n);return r==="-"?-1*o:o}function Dc(e,t,n){let{value:i}=e;if(gn(i)){let r=i.toString(t);return i<0?"-"+n+r.substr(1):n+r}return Nh.stringifyNumber(e)}var wx={identify:gn,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>uo(e,2,2,n),stringify:e=>Dc(e,2,"0b")},kx={identify:gn,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>uo(e,1,8,n),stringify:e=>Dc(e,8,"0")},xx={identify:gn,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>uo(e,0,10,n),stringify:Nh.stringifyNumber},Sx={identify:gn,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>uo(e,2,16,n),stringify:e=>Dc(e,16,"0x")};hn.int=xx;hn.intBin=wx;hn.intHex=Sx;hn.intOct=kx});var Rc=x(Uc=>{"use strict";var mo=D(),lo=ct(),fo=lt(),zt=class e extends fo.YAMLMap{constructor(t){super(t),this.tag=e.tag}add(t){let n;mo.isPair(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new lo.Pair(t.key,null):n=new lo.Pair(t,null),fo.findPair(this.items,n.key)||this.items.push(n)}get(t,n){let i=fo.findPair(this.items,t);return!n&&mo.isPair(i)?mo.isScalar(i.key)?i.key.value:i.key:i}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);let i=fo.findPair(this.items,t);i&&!n?this.items.splice(this.items.indexOf(i),1):!i&&n&&this.items.push(new lo.Pair(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,i){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,i);throw new Error("Set items must all have null values")}static from(t,n,i){let{replacer:r}=i,o=new this(t);if(n&&Symbol.iterator in Object(n))for(let a of n)typeof r=="function"&&(a=r.call(n,a,a)),o.items.push(lo.createPair(a,null,i));return o}};zt.tag="tag:yaml.org,2002:set";var Ix={collection:"map",identify:e=>e instanceof Set,nodeClass:zt,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>zt.from(e,t,n),resolve(e,t){if(mo.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new zt,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};Uc.YAMLSet=zt;Uc.set=Ix});var Zc=x(po=>{"use strict";var Ox=tr();function Lc(e,t){let n=e[0],i=n==="-"||n==="+"?e.substring(1):e,r=a=>t?BigInt(a):Number(a),o=i.replace(/_/g,"").split(":").reduce((a,s)=>a*r(60)+r(s),r(0));return n==="-"?r(-1)*o:o}function Uh(e){let{value:t}=e,n=a=>a;if(typeof t=="bigint")n=a=>BigInt(a);else if(isNaN(t)||!isFinite(t))return Ox.stringifyNumber(e);let i="";t<0&&(i="-",t*=n(-1));let r=n(60),o=[t%r];return t<60?o.unshift(0):(t=(t-o[0])/r,o.unshift(t%r),t>=60&&(t=(t-o[0])/r,o.unshift(t))),i+o.map(a=>String(a).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var Px={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>Lc(e,n),stringify:Uh},Ex={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Lc(e,!1),stringify:Uh},Rh={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let t=e.match(Rh.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,n,i,r,o,a,s]=t.map(Number),c=t[7]?Number((t[7]+"00").substr(1,3)):0,u=Date.UTC(n,i-1,r,o||0,a||0,s||0,c),l=t[8];if(l&&l!=="Z"){let d=Lc(l,!1);Math.abs(d)<30&&(d*=60),u-=6e4*d}return new Date(u)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};po.floatTime=Ex;po.intTime=Px;po.timestamp=Rh});var Mh=x(Zh=>{"use strict";var Ax=Qt(),Tx=eo(),zx=er(),Cx=fn(),jx=Ec(),Lh=Ch(),Mc=jh(),go=Dh(),Nx=Ki(),Dx=Cc(),Ux=so(),Rx=Rc(),qc=Zc(),Lx=[Ax.map,zx.seq,Cx.string,Tx.nullTag,Lh.trueTag,Lh.falseTag,go.intBin,go.intOct,go.int,go.intHex,Mc.floatNaN,Mc.floatExp,Mc.float,jx.binary,Nx.merge,Dx.omap,Ux.pairs,Rx.set,qc.intTime,qc.floatTime,qc.timestamp];Zh.schema=Lx});var Yh=x(Bc=>{"use strict";var Bh=Qt(),Zx=eo(),Kh=er(),Mx=fn(),qx=$c(),Fc=kc(),Vc=Sc(),Fx=_h(),Vx=kh(),Hh=Ec(),vn=Ki(),Jh=Cc(),Wh=so(),qh=Mh(),Gh=Rc(),ho=Zc(),Fh=new Map([["core",Fx.schema],["failsafe",[Bh.map,Kh.seq,Mx.string]],["json",Vx.schema],["yaml11",qh.schema],["yaml-1.1",qh.schema]]),Vh={binary:Hh.binary,bool:qx.boolTag,float:Fc.float,floatExp:Fc.floatExp,floatNaN:Fc.floatNaN,floatTime:ho.floatTime,int:Vc.int,intHex:Vc.intHex,intOct:Vc.intOct,intTime:ho.intTime,map:Bh.map,merge:vn.merge,null:Zx.nullTag,omap:Jh.omap,pairs:Wh.pairs,seq:Kh.seq,set:Gh.set,timestamp:ho.timestamp},Bx={"tag:yaml.org,2002:binary":Hh.binary,"tag:yaml.org,2002:merge":vn.merge,"tag:yaml.org,2002:omap":Jh.omap,"tag:yaml.org,2002:pairs":Wh.pairs,"tag:yaml.org,2002:set":Gh.set,"tag:yaml.org,2002:timestamp":ho.timestamp};function Kx(e,t,n){let i=Fh.get(t);if(i&&!e)return n&&!i.includes(vn.merge)?i.concat(vn.merge):i.slice();let r=i;if(!r)if(Array.isArray(e))r=[];else{let o=Array.from(Fh.keys()).filter(a=>a!=="yaml11").map(a=>JSON.stringify(a)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${o} or define customTags array`)}if(Array.isArray(e))for(let o of e)r=r.concat(o);else typeof e=="function"&&(r=e(r.slice()));return n&&(r=r.concat(vn.merge)),r.reduce((o,a)=>{let s=typeof a=="string"?Vh[a]:a;if(!s){let c=JSON.stringify(a),u=Object.keys(Vh).map(l=>JSON.stringify(l)).join(", ");throw new Error(`Unknown custom tag ${c}; use one of ${u}`)}return o.includes(s)||o.push(s),o},[])}Bc.coreKnownTags=Bx;Bc.getTags=Kx});var Jc=x(Xh=>{"use strict";var Kc=D(),Hx=Qt(),Jx=er(),Wx=fn(),vo=Yh(),Gx=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0,Hc=class e{constructor({compat:t,customTags:n,merge:i,resolveKnownTags:r,schema:o,sortMapEntries:a,toStringDefaults:s}){this.compat=Array.isArray(t)?vo.getTags(t,"compat"):t?vo.getTags(null,t):null,this.name=typeof o=="string"&&o||"core",this.knownTags=r?vo.coreKnownTags:{},this.tags=vo.getTags(n,this.name,i),this.toStringOptions=s??null,Object.defineProperty(this,Kc.MAP,{value:Hx.map}),Object.defineProperty(this,Kc.SCALAR,{value:Wx.string}),Object.defineProperty(this,Kc.SEQ,{value:Jx.seq}),this.sortMapEntries=typeof a=="function"?a:a===!0?Gx:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}};Xh.Schema=Hc});var ev=x(Qh=>{"use strict";var Yx=D(),Wc=cn(),yn=nn();function Xx(e,t){let n=[],i=t.directives===!0;if(t.directives!==!1&&e.directives){let c=e.directives.toString(e);c?(n.push(c),i=!0):e.directives.docStart&&(i=!0)}i&&n.push("---");let r=Wc.createStringifyContext(e,t),{commentString:o}=r.options;if(e.commentBefore){n.length!==1&&n.unshift("");let c=o(e.commentBefore);n.unshift(yn.indentComment(c,""))}let a=!1,s=null;if(e.contents){if(Yx.isNode(e.contents)){if(e.contents.spaceBefore&&i&&n.push(""),e.contents.commentBefore){let l=o(e.contents.commentBefore);n.push(yn.indentComment(l,""))}r.forceBlockIndent=!!e.comment,s=e.contents.comment}let c=s?void 0:()=>a=!0,u=Wc.stringify(e.contents,r,()=>s=null,c);s&&(u+=yn.lineComment(u,"",o(s))),(u[0]==="|"||u[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${u}`:n.push(u)}else n.push(Wc.stringify(e.contents,r));if(e.directives?.docEnd)if(e.comment){let c=o(e.comment);c.includes(`
|
|
82
|
+
`)?(n.push("..."),n.push(yn.indentComment(c,""))):n.push(`... ${c}`)}else n.push("...");else{let c=e.comment;c&&a&&(c=c.replace(/^\n+/,"")),c&&((!a||s)&&n[n.length-1]!==""&&n.push(""),n.push(yn.indentComment(o(c),"")))}return n.join(`
|
|
83
83
|
`)+`
|
|
84
|
-
`}
|
|
84
|
+
`}Qh.stringifyDocument=Xx});var bn=x(tv=>{"use strict";var Qx=tn(),rr=Ui(),Se=D(),eS=ct(),tS=it(),rS=Jc(),nS=ev(),Gc=Ci(),iS=ec(),oS=rn(),Yc=Qs(),Xc=class e{constructor(t,n,i){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Se.NODE_TYPE,{value:Se.DOC});let r=null;typeof n=="function"||Array.isArray(n)?r=n:i===void 0&&n&&(i=n,n=void 0);let o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},i);this.options=o;let{version:a}=o;i?._directives?(this.directives=i._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new Yc.Directives({version:a}),this.setSchema(a,i),this.contents=t===void 0?null:this.createNode(t,r,i)}clone(){let t=Object.create(e.prototype,{[Se.NODE_TYPE]:{value:Se.DOC}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=Se.isNode(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){nr(this.contents)&&this.contents.add(t)}addIn(t,n){nr(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){let i=Gc.anchorNames(this);t.anchor=!n||i.has(n)?Gc.findNewAnchor(n||"a",i):n}return new Qx.Alias(t.anchor)}createNode(t,n,i){let r;if(typeof n=="function")t=n.call({"":t},"",t),r=n;else if(Array.isArray(n)){let b=A=>typeof A=="number"||A instanceof String||A instanceof Number,I=n.filter(b).map(String);I.length>0&&(n=n.concat(I)),r=n}else i===void 0&&n&&(i=n,n=void 0);let{aliasDuplicateObjects:o,anchorPrefix:a,flow:s,keepUndefined:c,onTagObj:u,tag:l}=i??{},{onAnchor:d,setAnchors:f,sourceObjects:p}=Gc.createNodeAnchors(this,a||"a"),y={aliasDuplicateObjects:o??!0,keepUndefined:c??!1,onAnchor:d,onTagObj:u,replacer:r,schema:this.schema,sourceObjects:p},h=oS.createNode(t,l,y);return s&&Se.isCollection(h)&&(h.flow=!0),f(),h}createPair(t,n,i={}){let r=this.createNode(t,null,i),o=this.createNode(n,null,i);return new eS.Pair(r,o)}delete(t){return nr(this.contents)?this.contents.delete(t):!1}deleteIn(t){return rr.isEmptyPath(t)?this.contents==null?!1:(this.contents=null,!0):nr(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return Se.isCollection(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return rr.isEmptyPath(t)?!n&&Se.isScalar(this.contents)?this.contents.value:this.contents:Se.isCollection(this.contents)?this.contents.getIn(t,n):void 0}has(t){return Se.isCollection(this.contents)?this.contents.has(t):!1}hasIn(t){return rr.isEmptyPath(t)?this.contents!==void 0:Se.isCollection(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=rr.collectionFromPath(this.schema,[t],n):nr(this.contents)&&this.contents.set(t,n)}setIn(t,n){rr.isEmptyPath(t)?this.contents=n:this.contents==null?this.contents=rr.collectionFromPath(this.schema,Array.from(t),n):nr(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let i;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Yc.Directives({version:"1.1"}),i={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new Yc.Directives({version:t}),i={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,i=null;break;default:{let r=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${r}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(i)this.schema=new rS.Schema(Object.assign(i,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:i,maxAliasCount:r,onAnchor:o,reviver:a}={}){let s={anchors:new Map,doc:this,keep:!t,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},c=tS.toJS(this.contents,n??"",s);if(typeof o=="function")for(let{count:u,res:l}of s.anchors.values())o(l,u);return typeof a=="function"?iS.applyReviver(a,{"":c},"",c):c}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){let n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return nS.stringifyDocument(this,t)}};function nr(e){if(Se.isCollection(e))return!0;throw new Error("Expected a YAML collection as document contents")}tv.Document=Xc});var wn=x($n=>{"use strict";var _n=class extends Error{constructor(t,n,i,r){super(),this.name=t,this.code=i,this.message=r,this.pos=n}},Qc=class extends _n{constructor(t,n,i){super("YAMLParseError",t,n,i)}},eu=class extends _n{constructor(t,n,i){super("YAMLWarning",t,n,i)}},aS=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(s=>t.linePos(s));let{line:i,col:r}=n.linePos[0];n.message+=` at line ${i}, column ${r}`;let o=r-1,a=e.substring(t.lineStarts[i-1],t.lineStarts[i]).replace(/[\n\r]+$/,"");if(o>=60&&a.length>80){let s=Math.min(o-39,a.length-79);a="\u2026"+a.substring(s),o-=s-1}if(a.length>80&&(a=a.substring(0,79)+"\u2026"),i>1&&/^ *$/.test(a.substring(0,o))){let s=e.substring(t.lineStarts[i-2],t.lineStarts[i-1]);s.length>80&&(s=s.substring(0,79)+`\u2026
|
|
85
85
|
`),a=s+a}if(/[^ ]/.test(a)){let s=1,c=n.linePos[1];c?.line===i&&c.col>r&&(s=Math.max(1,Math.min(c.col-r,80-o)));let u=" ".repeat(o)+"^".repeat(s);n.message+=`:
|
|
86
86
|
|
|
87
87
|
${a}
|
|
88
88
|
${u}
|
|
89
|
-
`}}
|
|
90
|
-
`))return!0;if(
|
|
91
|
-
`+h.comment:s.comment=h.comment);continue}(h.newlineAfterProp||
|
|
92
|
-
`+O.comment:
|
|
93
|
-
`+C.comment:u.comment=C.comment),d=C.end;continue}!a&&n.options.strict&&
|
|
94
|
-
`+
|
|
95
|
-
`+X.comment:
|
|
96
|
-
`+b.comment:u.comment=b.comment),u.range=[i.offset,h,b.offset]}else u.range=[i.offset,h,h];return u}
|
|
97
|
-
`.repeat(Math.max(1,a.length-1)):"",b=i+r.length;return
|
|
98
|
-
`;for(let h=l;h<s;++h){let[b,I]=a[h];u+=b.length+I.length+1;let
|
|
89
|
+
`}};$n.YAMLError=_n;$n.YAMLParseError=Qc;$n.YAMLWarning=eu;$n.prettifyError=aS});var kn=x(rv=>{"use strict";function sS(e,{flow:t,indicator:n,next:i,offset:r,onError:o,parentIndent:a,startOnNewline:s}){let c=!1,u=s,l=s,d="",f="",p=!1,y=!1,h=null,b=null,I=null,A=null,O=null,P=null,T=null;for(let E of e)switch(y&&(E.type!=="space"&&E.type!=="newline"&&E.type!=="comma"&&o(E.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),y=!1),h&&(u&&E.type!=="comment"&&E.type!=="newline"&&o(h,"TAB_AS_INDENT","Tabs are not allowed as indentation"),h=null),E.type){case"space":!t&&(n!=="doc-start"||i?.type!=="flow-collection")&&E.source.includes(" ")&&(h=E),l=!0;break;case"comment":{l||o(E,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let X=E.source.substring(1)||" ";d?d+=f+X:d=X,f="",u=!1;break}case"newline":u?d?d+=E.source:(!P||n!=="seq-item-ind")&&(c=!0):f+=E.source,u=!0,p=!0,(b||I)&&(A=E),l=!0;break;case"anchor":b&&o(E,"MULTIPLE_ANCHORS","A node can have at most one anchor"),E.source.endsWith(":")&&o(E.offset+E.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),b=E,T??(T=E.offset),u=!1,l=!1,y=!0;break;case"tag":{I&&o(E,"MULTIPLE_TAGS","A node can have at most one tag"),I=E,T??(T=E.offset),u=!1,l=!1,y=!0;break}case n:(b||I)&&o(E,"BAD_PROP_ORDER",`Anchors and tags must be after the ${E.source} indicator`),P&&o(E,"UNEXPECTED_TOKEN",`Unexpected ${E.source} in ${t??"collection"}`),P=E,u=n==="seq-item-ind"||n==="explicit-key-ind",l=!1;break;case"comma":if(t){O&&o(E,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),O=E,u=!1,l=!1;break}default:o(E,"UNEXPECTED_TOKEN",`Unexpected ${E.type} token`),u=!1,l=!1}let C=e[e.length-1],q=C?C.offset+C.source.length:r;return y&&i&&i.type!=="space"&&i.type!=="newline"&&i.type!=="comma"&&(i.type!=="scalar"||i.source!=="")&&o(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),h&&(u&&h.indent<=a||i?.type==="block-map"||i?.type==="block-seq")&&o(h,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:O,found:P,spaceBefore:c,comment:d,hasNewline:p,anchor:b,tag:I,newlineAfterProp:A,end:q,start:T??q}}rv.resolveProps=sS});var yo=x(nv=>{"use strict";function tu(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
|
|
90
|
+
`))return!0;if(e.end){for(let t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(let t of e.items){for(let n of t.start)if(n.type==="newline")return!0;if(t.sep){for(let n of t.sep)if(n.type==="newline")return!0}if(tu(t.key)||tu(t.value))return!0}return!1;default:return!0}}nv.containsNewline=tu});var ru=x(iv=>{"use strict";var cS=yo();function uS(e,t,n){if(t?.type==="flow-collection"){let i=t.end[0];i.indent===e&&(i.source==="]"||i.source==="}")&&cS.containsNewline(t)&&n(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}iv.flowIndentCheck=uS});var nu=x(av=>{"use strict";var ov=D();function lS(e,t,n){let{uniqueKeys:i}=e.options;if(i===!1)return!1;let r=typeof i=="function"?i:(o,a)=>o===a||ov.isScalar(o)&&ov.isScalar(a)&&o.value===a.value;return t.some(o=>r(o.key,n))}av.mapIncludes=lS});var fv=x(dv=>{"use strict";var sv=ct(),dS=lt(),cv=kn(),fS=yo(),uv=ru(),mS=nu(),lv="All mapping items must start at the same column";function pS({composeNode:e,composeEmptyNode:t},n,i,r,o){let a=o?.nodeClass??dS.YAMLMap,s=new a(n.schema);n.atRoot&&(n.atRoot=!1);let c=i.offset,u=null;for(let l of i.items){let{start:d,key:f,sep:p,value:y}=l,h=cv.resolveProps(d,{indicator:"explicit-key-ind",next:f??p?.[0],offset:c,onError:r,parentIndent:i.indent,startOnNewline:!0}),b=!h.found;if(b){if(f&&(f.type==="block-seq"?r(c,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in f&&f.indent!==i.indent&&r(c,"BAD_INDENT",lv)),!h.anchor&&!h.tag&&!p){u=h.end,h.comment&&(s.comment?s.comment+=`
|
|
91
|
+
`+h.comment:s.comment=h.comment);continue}(h.newlineAfterProp||fS.containsNewline(f))&&r(f??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else h.found?.indent!==i.indent&&r(c,"BAD_INDENT",lv);n.atKey=!0;let I=h.end,A=f?e(n,f,h,r):t(n,I,d,null,h,r);n.schema.compat&&uv.flowIndentCheck(i.indent,f,r),n.atKey=!1,mS.mapIncludes(n,s.items,A)&&r(I,"DUPLICATE_KEY","Map keys must be unique");let O=cv.resolveProps(p??[],{indicator:"map-value-ind",next:y,offset:A.range[2],onError:r,parentIndent:i.indent,startOnNewline:!f||f.type==="block-scalar"});if(c=O.end,O.found){b&&(y?.type==="block-map"&&!O.hasNewline&&r(c,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&h.start<O.found.offset-1024&&r(A.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let P=y?e(n,y,O,r):t(n,c,p,null,O,r);n.schema.compat&&uv.flowIndentCheck(i.indent,y,r),c=P.range[2];let T=new sv.Pair(A,P);n.options.keepSourceTokens&&(T.srcToken=l),s.items.push(T)}else{b&&r(A.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),O.comment&&(A.comment?A.comment+=`
|
|
92
|
+
`+O.comment:A.comment=O.comment);let P=new sv.Pair(A);n.options.keepSourceTokens&&(P.srcToken=l),s.items.push(P)}}return u&&u<c&&r(u,"IMPOSSIBLE","Map comment with trailing content"),s.range=[i.offset,c,u??c],s}dv.resolveBlockMap=pS});var pv=x(mv=>{"use strict";var gS=dt(),hS=kn(),vS=ru();function yS({composeNode:e,composeEmptyNode:t},n,i,r,o){let a=o?.nodeClass??gS.YAMLSeq,s=new a(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let c=i.offset,u=null;for(let{start:l,value:d}of i.items){let f=hS.resolveProps(l,{indicator:"seq-item-ind",next:d,offset:c,onError:r,parentIndent:i.indent,startOnNewline:!0});if(!f.found)if(f.anchor||f.tag||d)d?.type==="block-seq"?r(f.end,"BAD_INDENT","All sequence items must start at the same column"):r(c,"MISSING_CHAR","Sequence item without - indicator");else{u=f.end,f.comment&&(s.comment=f.comment);continue}let p=d?e(n,d,f,r):t(n,f.end,l,null,f,r);n.schema.compat&&vS.flowIndentCheck(i.indent,d,r),c=p.range[2],s.items.push(p)}return s.range=[i.offset,c,u??c],s}mv.resolveBlockSeq=yS});var ir=x(gv=>{"use strict";function bS(e,t,n,i){let r="";if(e){let o=!1,a="";for(let s of e){let{source:c,type:u}=s;switch(u){case"space":o=!0;break;case"comment":{n&&!o&&i(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let l=c.substring(1)||" ";r?r+=a+l:r=l,a="";break}case"newline":r&&(a+=c),o=!0;break;default:i(s,"UNEXPECTED_TOKEN",`Unexpected ${u} at node end`)}t+=c.length}}return{comment:r,offset:t}}gv.resolveEnd=bS});var bv=x(yv=>{"use strict";var _S=D(),$S=ct(),hv=lt(),wS=dt(),kS=ir(),vv=kn(),xS=yo(),SS=nu(),iu="Block collections are not allowed within flow collections",ou=e=>e&&(e.type==="block-map"||e.type==="block-seq");function IS({composeNode:e,composeEmptyNode:t},n,i,r,o){let a=i.start.source==="{",s=a?"flow map":"flow sequence",c=o?.nodeClass??(a?hv.YAMLMap:wS.YAMLSeq),u=new c(n.schema);u.flow=!0;let l=n.atRoot;l&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let d=i.offset+i.start.source.length;for(let b=0;b<i.items.length;++b){let I=i.items[b],{start:A,key:O,sep:P,value:T}=I,C=vv.resolveProps(A,{flow:s,indicator:"explicit-key-ind",next:O??P?.[0],offset:d,onError:r,parentIndent:i.indent,startOnNewline:!1});if(!C.found){if(!C.anchor&&!C.tag&&!P&&!T){b===0&&C.comma?r(C.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`):b<i.items.length-1&&r(C.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${s}`),C.comment&&(u.comment?u.comment+=`
|
|
93
|
+
`+C.comment:u.comment=C.comment),d=C.end;continue}!a&&n.options.strict&&xS.containsNewline(O)&&r(O,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(b===0)C.comma&&r(C.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`);else if(C.comma||r(C.start,"MISSING_CHAR",`Missing , between ${s} items`),C.comment){let q="";e:for(let E of A)switch(E.type){case"comma":case"space":break;case"comment":q=E.source.substring(1);break e;default:break e}if(q){let E=u.items[u.items.length-1];_S.isPair(E)&&(E=E.value??E.key),E.comment?E.comment+=`
|
|
94
|
+
`+q:E.comment=q,C.comment=C.comment.substring(q.length+1)}}if(!a&&!P&&!C.found){let q=T?e(n,T,C,r):t(n,C.end,P,null,C,r);u.items.push(q),d=q.range[2],ou(T)&&r(q.range,"BLOCK_IN_FLOW",iu)}else{n.atKey=!0;let q=C.end,E=O?e(n,O,C,r):t(n,q,A,null,C,r);ou(O)&&r(E.range,"BLOCK_IN_FLOW",iu),n.atKey=!1;let X=vv.resolveProps(P??[],{flow:s,indicator:"map-value-ind",next:T,offset:E.range[2],onError:r,parentIndent:i.indent,startOnNewline:!1});if(X.found){if(!a&&!C.found&&n.options.strict){if(P)for(let Q of P){if(Q===X.found)break;if(Q.type==="newline"){r(Q,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}C.start<X.found.offset-1024&&r(X.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else T&&("source"in T&&T.source?.[0]===":"?r(T,"MISSING_CHAR",`Missing space after : in ${s}`):r(X.start,"MISSING_CHAR",`Missing , or : between ${s} items`));let et=T?e(n,T,X,r):X.found?t(n,X.end,P,null,X,r):null;et?ou(T)&&r(et.range,"BLOCK_IN_FLOW",iu):X.comment&&(E.comment?E.comment+=`
|
|
95
|
+
`+X.comment:E.comment=X.comment);let Bt=new $S.Pair(E,et);if(n.options.keepSourceTokens&&(Bt.srcToken=I),a){let Q=u;SS.mapIncludes(n,Q.items,E)&&r(q,"DUPLICATE_KEY","Map keys must be unique"),Q.items.push(Bt)}else{let Q=new hv.YAMLMap(n.schema);Q.flow=!0,Q.items.push(Bt);let Mp=(et??E).range;Q.range=[E.range[0],Mp[1],Mp[2]],u.items.push(Q)}d=et?et.range[2]:X.end}}let f=a?"}":"]",[p,...y]=i.end,h=d;if(p?.source===f)h=p.offset+p.source.length;else{let b=s[0].toUpperCase()+s.substring(1),I=l?`${b} must end with a ${f}`:`${b} in block collection must be sufficiently indented and end with a ${f}`;r(d,l?"MISSING_CHAR":"BAD_INDENT",I),p&&p.source.length!==1&&y.unshift(p)}if(y.length>0){let b=kS.resolveEnd(y,h,n.options.strict,r);b.comment&&(u.comment?u.comment+=`
|
|
96
|
+
`+b.comment:u.comment=b.comment),u.range=[i.offset,h,b.offset]}else u.range=[i.offset,h,h];return u}yv.resolveFlowCollection=IS});var $v=x(_v=>{"use strict";var OS=D(),PS=Y(),ES=lt(),AS=dt(),TS=fv(),zS=pv(),CS=bv();function au(e,t,n,i,r,o){let a=n.type==="block-map"?TS.resolveBlockMap(e,t,n,i,o):n.type==="block-seq"?zS.resolveBlockSeq(e,t,n,i,o):CS.resolveFlowCollection(e,t,n,i,o),s=a.constructor;return r==="!"||r===s.tagName?(a.tag=s.tagName,a):(r&&(a.tag=r),a)}function jS(e,t,n,i,r){let o=i.tag,a=o?t.directives.tagName(o.source,f=>r(o,"TAG_RESOLVE_FAILED",f)):null;if(n.type==="block-seq"){let{anchor:f,newlineAfterProp:p}=i,y=f&&o?f.offset>o.offset?f:o:f??o;y&&(!p||p.offset<y.offset)&&r(y,"MISSING_CHAR","Missing newline after block sequence props")}let s=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!o||!a||a==="!"||a===ES.YAMLMap.tagName&&s==="map"||a===AS.YAMLSeq.tagName&&s==="seq")return au(e,t,n,r,a);let c=t.schema.tags.find(f=>f.tag===a&&f.collection===s);if(!c){let f=t.schema.knownTags[a];if(f?.collection===s)t.schema.tags.push(Object.assign({},f,{default:!1})),c=f;else return f?r(o,"BAD_COLLECTION_TYPE",`${f.tag} used for ${s} collection, but expects ${f.collection??"scalar"}`,!0):r(o,"TAG_RESOLVE_FAILED",`Unresolved tag: ${a}`,!0),au(e,t,n,r,a)}let u=au(e,t,n,r,a,c),l=c.resolve?.(u,f=>r(o,"TAG_RESOLVE_FAILED",f),t.options)??u,d=OS.isNode(l)?l:new PS.Scalar(l);return d.range=u.range,d.tag=a,c?.format&&(d.format=c.format),d}_v.composeCollection=jS});var cu=x(wv=>{"use strict";var su=Y();function NS(e,t,n){let i=t.offset,r=DS(t,e.options.strict,n);if(!r)return{value:"",type:null,comment:"",range:[i,i,i]};let o=r.mode===">"?su.Scalar.BLOCK_FOLDED:su.Scalar.BLOCK_LITERAL,a=t.source?US(t.source):[],s=a.length;for(let h=a.length-1;h>=0;--h){let b=a[h][1];if(b===""||b==="\r")s=h;else break}if(s===0){let h=r.chomp==="+"&&a.length>0?`
|
|
97
|
+
`.repeat(Math.max(1,a.length-1)):"",b=i+r.length;return t.source&&(b+=t.source.length),{value:h,type:o,comment:r.comment,range:[i,b,b]}}let c=t.indent+r.indent,u=t.offset+r.length,l=0;for(let h=0;h<s;++h){let[b,I]=a[h];if(I===""||I==="\r")r.indent===0&&b.length>c&&(c=b.length);else{b.length<c&&n(u+b.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),r.indent===0&&(c=b.length),l=h,c===0&&!e.atRoot&&n(u,"BAD_INDENT","Block scalar values in collections must be indented");break}u+=b.length+I.length+1}for(let h=a.length-1;h>=s;--h)a[h][0].length>c&&(s=h+1);let d="",f="",p=!1;for(let h=0;h<l;++h)d+=a[h][0].slice(c)+`
|
|
98
|
+
`;for(let h=l;h<s;++h){let[b,I]=a[h];u+=b.length+I.length+1;let A=I[I.length-1]==="\r";if(A&&(I=I.slice(0,-1)),I&&b.length<c){let P=`Block scalar lines must not be less indented than their ${r.indent?"explicit indentation indicator":"first line"}`;n(u-I.length-(A?2:1),"BAD_INDENT",P),b=""}o===su.Scalar.BLOCK_LITERAL?(d+=f+b.slice(c)+I,f=`
|
|
99
99
|
`):b.length>c||I[0]===" "?(f===" "?f=`
|
|
100
100
|
`:!p&&f===`
|
|
101
101
|
`&&(f=`
|
|
@@ -108,68 +108,68 @@ ${u}
|
|
|
108
108
|
`+a[h][0].slice(c);d[d.length-1]!==`
|
|
109
109
|
`&&(d+=`
|
|
110
110
|
`);break;default:d+=`
|
|
111
|
-
`}let y=i+r.length+
|
|
111
|
+
`}let y=i+r.length+t.source.length;return{value:d,type:o,comment:r.comment,range:[i,y,y]}}function DS({offset:e,props:t},n,i){if(t[0].type!=="block-scalar-header")return i(t[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:r}=t[0],o=r[0],a=0,s="",c=-1;for(let f=1;f<r.length;++f){let p=r[f];if(!s&&(p==="-"||p==="+"))s=p;else{let y=Number(p);!a&&y?a=y:c===-1&&(c=e+f)}}c!==-1&&i(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${r}`);let u=!1,l="",d=r.length;for(let f=1;f<t.length;++f){let p=t[f];switch(p.type){case"space":u=!0;case"newline":d+=p.source.length;break;case"comment":n&&!u&&i(p,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),d+=p.source.length,l=p.source.substring(1);break;case"error":i(p,"UNEXPECTED_TOKEN",p.message),d+=p.source.length;break;default:{let y=`Unexpected token in block scalar header: ${p.type}`;i(p,"UNEXPECTED_TOKEN",y);let h=p.source;h&&typeof h=="string"&&(d+=h.length)}}}return{mode:o,indent:a,chomp:s,comment:l,length:d}}function US(e){let t=e.split(/\n( *)/),n=t[0],i=n.match(/^( *)/),o=[i?.[1]?[i[1],n.slice(i[1].length)]:["",n]];for(let a=1;a<t.length;a+=2)o.push([t[a],t[a+1]]);return o}wv.resolveBlockScalar=NS});var lu=x(xv=>{"use strict";var uu=Y(),RS=ir();function LS(e,t,n){let{offset:i,type:r,source:o,end:a}=e,s,c,u=(f,p,y)=>n(i+f,p,y);switch(r){case"scalar":s=uu.Scalar.PLAIN,c=ZS(o,u);break;case"single-quoted-scalar":s=uu.Scalar.QUOTE_SINGLE,c=MS(o,u);break;case"double-quoted-scalar":s=uu.Scalar.QUOTE_DOUBLE,c=qS(o,u);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${r}`),{value:"",type:null,comment:"",range:[i,i+o.length,i+o.length]}}let l=i+o.length,d=RS.resolveEnd(a,l,t,n);return{value:c,type:s,comment:d.comment,range:[i,l,d.offset]}}function ZS(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),kv(e)}function MS(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),kv(e.slice(1,-1)).replace(/''/g,"'")}function kv(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
112
112
|
`,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
113
|
-
`,"sy")}catch{
|
|
113
|
+
`,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let i=t.exec(e);if(!i)return e;let r=i[1],o=" ",a=t.lastIndex;for(n.lastIndex=a;i=n.exec(e);)i[1]===""?o===`
|
|
114
114
|
`?r+=o:o=`
|
|
115
|
-
`:(r+=o+i[1],o=" "),a=n.lastIndex;let s=/[ \t]*(.*)/sy;return s.lastIndex=a,i=s.exec(
|
|
115
|
+
`:(r+=o+i[1],o=" "),a=n.lastIndex;let s=/[ \t]*(.*)/sy;return s.lastIndex=a,i=s.exec(e),r+o+(i?.[1]??"")}function qS(e,t){let n="";for(let i=1;i<e.length-1;++i){let r=e[i];if(!(r==="\r"&&e[i+1]===`
|
|
116
116
|
`))if(r===`
|
|
117
|
-
`){let{fold:o,offset:a}=
|
|
118
|
-
`)for(o=
|
|
119
|
-
`)for(o=
|
|
120
|
-
`&&!(a==="\r"&&
|
|
121
|
-
`)&&(n+=i>o?
|
|
122
|
-
`||i==="\r")&&!(i==="\r"&&t
|
|
117
|
+
`){let{fold:o,offset:a}=FS(e,i);n+=o,i=a}else if(r==="\\"){let o=e[++i],a=VS[o];if(a)n+=a;else if(o===`
|
|
118
|
+
`)for(o=e[i+1];o===" "||o===" ";)o=e[++i+1];else if(o==="\r"&&e[i+1]===`
|
|
119
|
+
`)for(o=e[++i+1];o===" "||o===" ";)o=e[++i+1];else if(o==="x"||o==="u"||o==="U"){let s={x:2,u:4,U:8}[o];n+=BS(e,i+1,s,t),i+=s}else{let s=e.substr(i-1,2);t(i-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`),n+=s}}else if(r===" "||r===" "){let o=i,a=e[i+1];for(;a===" "||a===" ";)a=e[++i+1];a!==`
|
|
120
|
+
`&&!(a==="\r"&&e[i+2]===`
|
|
121
|
+
`)&&(n+=i>o?e.slice(o,i+1):r)}else n+=r}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function FS(e,t){let n="",i=e[t+1];for(;(i===" "||i===" "||i===`
|
|
122
|
+
`||i==="\r")&&!(i==="\r"&&e[t+2]!==`
|
|
123
123
|
`);)i===`
|
|
124
124
|
`&&(n+=`
|
|
125
|
-
`),
|
|
126
|
-
`,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function
|
|
125
|
+
`),t+=1,i=e[t+1];return n||(n=" "),{fold:n,offset:t}}var VS={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
126
|
+
`,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function BS(e,t,n,i){let r=e.substr(t,n),a=r.length===n&&/^[0-9a-fA-F]+$/.test(r)?parseInt(r,16):NaN;if(isNaN(a)){let s=e.substr(t-2,n+2);return i(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`),s}return String.fromCodePoint(a)}xv.resolveFlowScalar=LS});var Ov=x(Iv=>{"use strict";var Ct=D(),Sv=Y(),KS=cu(),HS=lu();function JS(e,t,n,i){let{value:r,type:o,comment:a,range:s}=t.type==="block-scalar"?KS.resolveBlockScalar(e,t,i):HS.resolveFlowScalar(t,e.options.strict,i),c=n?e.directives.tagName(n.source,d=>i(n,"TAG_RESOLVE_FAILED",d)):null,u;e.options.stringKeys&&e.atKey?u=e.schema[Ct.SCALAR]:c?u=WS(e.schema,r,c,n,i):t.type==="scalar"?u=GS(e,r,t,i):u=e.schema[Ct.SCALAR];let l;try{let d=u.resolve(r,f=>i(n??t,"TAG_RESOLVE_FAILED",f),e.options);l=Ct.isScalar(d)?d:new Sv.Scalar(d)}catch(d){let f=d instanceof Error?d.message:String(d);i(n??t,"TAG_RESOLVE_FAILED",f),l=new Sv.Scalar(r)}return l.range=s,l.source=r,o&&(l.type=o),c&&(l.tag=c),u.format&&(l.format=u.format),a&&(l.comment=a),l}function WS(e,t,n,i,r){if(n==="!")return e[Ct.SCALAR];let o=[];for(let s of e.tags)if(!s.collection&&s.tag===n)if(s.default&&s.test)o.push(s);else return s;for(let s of o)if(s.test?.test(t))return s;let a=e.knownTags[n];return a&&!a.collection?(e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(r(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[Ct.SCALAR])}function GS({atKey:e,directives:t,schema:n},i,r,o){let a=n.tags.find(s=>(s.default===!0||e&&s.default==="key")&&s.test?.test(i))||n[Ct.SCALAR];if(n.compat){let s=n.compat.find(c=>c.default&&c.test?.test(i))??n[Ct.SCALAR];if(a.tag!==s.tag){let c=t.tagString(a.tag),u=t.tagString(s.tag),l=`Value may be parsed as either ${c} or ${u}`;o(r,"TAG_RESOLVE_FAILED",l,!0)}}return a}Iv.composeScalar=JS});var Ev=x(Pv=>{"use strict";function YS(e,t,n){if(t){n??(n=t.length);for(let i=n-1;i>=0;--i){let r=t[i];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}for(r=t[++i];r?.type==="space";)e+=r.source.length,r=t[++i];break}}return e}Pv.emptyScalarPosition=YS});var zv=x(fu=>{"use strict";var XS=tn(),QS=D(),eI=$v(),Av=Ov(),tI=ir(),rI=Ev(),nI={composeNode:Tv,composeEmptyNode:du};function Tv(e,t,n,i){let r=e.atKey,{spaceBefore:o,comment:a,anchor:s,tag:c}=n,u,l=!0;switch(t.type){case"alias":u=iI(e,t,i),(s||c)&&i(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":u=Av.composeScalar(e,t,c,i),s&&(u.anchor=s.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{u=eI.composeCollection(nI,e,t,n,i),s&&(u.anchor=s.source.substring(1))}catch(d){let f=d instanceof Error?d.message:String(d);i(t,"RESOURCE_EXHAUSTION",f)}break;default:{let d=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;i(t,"UNEXPECTED_TOKEN",d),l=!1}}return u??(u=du(e,t.offset,void 0,null,n,i)),s&&u.anchor===""&&i(s,"BAD_ALIAS","Anchor cannot be an empty string"),r&&e.options.stringKeys&&(!QS.isScalar(u)||typeof u.value!="string"||u.tag&&u.tag!=="tag:yaml.org,2002:str")&&i(c??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),o&&(u.spaceBefore=!0),a&&(t.type==="scalar"&&t.source===""?u.comment=a:u.commentBefore=a),e.options.keepSourceTokens&&l&&(u.srcToken=t),u}function du(e,t,n,i,{spaceBefore:r,comment:o,anchor:a,tag:s,end:c},u){let l={type:"scalar",offset:rI.emptyScalarPosition(t,n,i),indent:-1,source:""},d=Av.composeScalar(e,l,s,u);return a&&(d.anchor=a.source.substring(1),d.anchor===""&&u(a,"BAD_ALIAS","Anchor cannot be an empty string")),r&&(d.spaceBefore=!0),o&&(d.comment=o,d.range[2]=c),d}function iI({options:e},{offset:t,source:n,end:i},r){let o=new XS.Alias(n.substring(1));o.source===""&&r(t,"BAD_ALIAS","Alias cannot be an empty string"),o.source.endsWith(":")&&r(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let a=t+n.length,s=tI.resolveEnd(i,a,e.strict,r);return o.range=[t,a,s.offset],s.comment&&(o.comment=s.comment),o}fu.composeEmptyNode=du;fu.composeNode=Tv});var Nv=x(jv=>{"use strict";var oI=bn(),Cv=zv(),aI=ir(),sI=kn();function cI(e,t,{offset:n,start:i,value:r,end:o},a){let s=Object.assign({_directives:t},e),c=new oI.Document(void 0,s),u={atKey:!1,atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},l=sI.resolveProps(i,{indicator:"doc-start",next:r??o?.[0],offset:n,onError:a,parentIndent:0,startOnNewline:!0});l.found&&(c.directives.docStart=!0,r&&(r.type==="block-map"||r.type==="block-seq")&&!l.hasNewline&&a(l.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=r?Cv.composeNode(u,r,l,a):Cv.composeEmptyNode(u,l.end,i,null,l,a);let d=c.contents.range[2],f=aI.resolveEnd(o,d,!1,a);return f.comment&&(c.comment=f.comment),c.range=[n,d,f.offset],c}jv.composeDoc=cI});var pu=x(Rv=>{"use strict";var uI=Ke("process"),lI=Qs(),dI=bn(),xn=wn(),Dv=D(),fI=Nv(),mI=ir();function Sn(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function Uv(e){let t="",n=!1,i=!1;for(let r=0;r<e.length;++r){let o=e[r];switch(o[0]){case"#":t+=(t===""?"":i?`
|
|
127
127
|
|
|
128
128
|
`:`
|
|
129
|
-
`)+(o.substring(1)||" "),n=!0,i=!1;break;case"%":
|
|
130
|
-
${i}`:i;else if(r||
|
|
129
|
+
`)+(o.substring(1)||" "),n=!0,i=!1;break;case"%":e[r+1]?.[0]!=="#"&&(r+=1),n=!1;break;default:n||(i=!0),n=!1}}return{comment:t,afterEmptyLine:i}}var mu=class{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,i,r,o)=>{let a=Sn(n);o?this.warnings.push(new xn.YAMLWarning(a,i,r)):this.errors.push(new xn.YAMLParseError(a,i,r))},this.directives=new lI.Directives({version:t.version||"1.2"}),this.options=t}decorate(t,n){let{comment:i,afterEmptyLine:r}=Uv(this.prelude);if(i){let o=t.contents;if(n)t.comment=t.comment?`${t.comment}
|
|
130
|
+
${i}`:i;else if(r||t.directives.docStart||!o)t.commentBefore=i;else if(Dv.isCollection(o)&&!o.flow&&o.items.length>0){let a=o.items[0];Dv.isPair(a)&&(a=a.key);let s=a.commentBefore;a.commentBefore=s?`${i}
|
|
131
131
|
${s}`:i}else{let a=o.commentBefore;o.commentBefore=a?`${i}
|
|
132
|
-
${a}`:i}}n?(Array.prototype.push.apply(
|
|
133
|
-
${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new
|
|
132
|
+
${a}`:i}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Uv(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,i=-1){for(let r of t)yield*this.next(r);yield*this.end(n,i)}*next(t){switch(uI.env.LOG_STREAM&&console.dir(t,{depth:null}),t.type){case"directive":this.directives.add(t.source,(n,i,r)=>{let o=Sn(t);o[0]+=n,this.onError(o,"BAD_DIRECTIVE",i,r)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{let n=fI.composeDoc(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{let n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,i=new xn.YAMLParseError(Sn(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(i):this.doc.errors.push(i);break}case"doc-end":{if(!this.doc){let i="Unexpected doc-end without preceding document";this.errors.push(new xn.YAMLParseError(Sn(t),"UNEXPECTED_TOKEN",i));break}this.doc.directives.docEnd=!0;let n=mI.resolveEnd(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){let i=this.doc.comment;this.doc.comment=i?`${i}
|
|
133
|
+
${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new xn.YAMLParseError(Sn(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){let i=Object.assign({_directives:this.directives},this.options),r=new dI.Document(void 0,i);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),r.range=[0,n,n],this.decorate(r,!1),yield r}}};Rv.Composer=mu});var Mv=x(bo=>{"use strict";var pI=cu(),gI=lu(),hI=wn(),Lv=sn();function vI(e,t=!0,n){if(e){let i=(r,o,a)=>{let s=typeof r=="number"?r:Array.isArray(r)?r[0]:r.offset;if(n)n(s,o,a);else throw new hI.YAMLParseError([s,s+1],o,a)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return gI.resolveFlowScalar(e,t,i);case"block-scalar":return pI.resolveBlockScalar({options:{strict:t}},e,i)}}return null}function yI(e,t){let{implicitKey:n=!1,indent:i,inFlow:r=!1,offset:o=-1,type:a="PLAIN"}=t,s=Lv.stringifyString({type:a,value:e},{implicitKey:n,indent:i>0?" ".repeat(i):"",inFlow:r,options:{blockQuote:!0,lineWidth:-1}}),c=t.end??[{type:"newline",offset:-1,indent:i,source:`
|
|
134
134
|
`}];switch(s[0]){case"|":case">":{let u=s.indexOf(`
|
|
135
135
|
`),l=s.substring(0,u),d=s.substring(u+1)+`
|
|
136
|
-
`,f=[{type:"block-scalar-header",offset:o,indent:i,source:l}];return
|
|
137
|
-
`}),{type:"block-scalar",offset:o,indent:i,props:f,source:d}}case'"':return{type:"double-quoted-scalar",offset:o,indent:i,source:s,end:c};case"'":return{type:"single-quoted-scalar",offset:o,indent:i,source:s,end:c};default:return{type:"scalar",offset:o,indent:i,source:s,end:c}}}function
|
|
138
|
-
`),i=
|
|
139
|
-
`;if(
|
|
140
|
-
`});for(let c of Object.keys(
|
|
141
|
-
`};delete
|
|
136
|
+
`,f=[{type:"block-scalar-header",offset:o,indent:i,source:l}];return Zv(f,c)||f.push({type:"newline",offset:-1,indent:i,source:`
|
|
137
|
+
`}),{type:"block-scalar",offset:o,indent:i,props:f,source:d}}case'"':return{type:"double-quoted-scalar",offset:o,indent:i,source:s,end:c};case"'":return{type:"single-quoted-scalar",offset:o,indent:i,source:s,end:c};default:return{type:"scalar",offset:o,indent:i,source:s,end:c}}}function bI(e,t,n={}){let{afterKey:i=!1,implicitKey:r=!1,inFlow:o=!1,type:a}=n,s="indent"in e?e.indent:null;if(i&&typeof s=="number"&&(s+=2),!a)switch(e.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{let u=e.props[0];if(u.type!=="block-scalar-header")throw new Error("Invalid block scalar header");a=u.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}let c=Lv.stringifyString({type:a,value:t},{implicitKey:r||s===null,indent:s!==null&&s>0?" ".repeat(s):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}});switch(c[0]){case"|":case">":_I(e,c);break;case'"':gu(e,c,"double-quoted-scalar");break;case"'":gu(e,c,"single-quoted-scalar");break;default:gu(e,c,"scalar")}}function _I(e,t){let n=t.indexOf(`
|
|
138
|
+
`),i=t.substring(0,n),r=t.substring(n+1)+`
|
|
139
|
+
`;if(e.type==="block-scalar"){let o=e.props[0];if(o.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o.source=i,e.source=r}else{let{offset:o}=e,a="indent"in e?e.indent:-1,s=[{type:"block-scalar-header",offset:o,indent:a,source:i}];Zv(s,"end"in e?e.end:void 0)||s.push({type:"newline",offset:-1,indent:a,source:`
|
|
140
|
+
`});for(let c of Object.keys(e))c!=="type"&&c!=="offset"&&delete e[c];Object.assign(e,{type:"block-scalar",indent:a,props:s,source:r})}}function Zv(e,t){if(t)for(let n of t)switch(n.type){case"space":case"comment":e.push(n);break;case"newline":return e.push(n),!0}return!1}function gu(e,t,n){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=n,e.source=t;break;case"block-scalar":{let i=e.props.slice(1),r=t.length;e.props[0].type==="block-scalar-header"&&(r-=e.props[0].source.length);for(let o of i)o.offset+=r;delete e.props,Object.assign(e,{type:n,source:t,end:i});break}case"block-map":case"block-seq":{let r={type:"newline",offset:e.offset+t.length,indent:e.indent,source:`
|
|
141
|
+
`};delete e.items,Object.assign(e,{type:n,source:t,end:[r]});break}default:{let i="indent"in e?e.indent:-1,r="end"in e&&Array.isArray(e.end)?e.end.filter(o=>o.type==="space"||o.type==="comment"||o.type==="newline"):[];for(let o of Object.keys(e))o!=="type"&&o!=="offset"&&delete e[o];Object.assign(e,{type:n,indent:i,source:t,end:r})}}}bo.createScalarToken=yI;bo.resolveAsScalar=vI;bo.setScalarValue=bI});var Fv=x(qv=>{"use strict";var $I=e=>"type"in e?$o(e):_o(e);function $o(e){switch(e.type){case"block-scalar":{let t="";for(let n of e.props)t+=$o(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(let n of e.items)t+=_o(n);return t}case"flow-collection":{let t=e.start.source;for(let n of e.items)t+=_o(n);for(let n of e.end)t+=n.source;return t}case"document":{let t=_o(e);if(e.end)for(let n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(let n of e.end)t+=n.source;return t}}}function _o({start:e,key:t,sep:n,value:i}){let r="";for(let o of e)r+=o.source;if(t&&(r+=$o(t)),n)for(let o of n)r+=o.source;return i&&(r+=$o(i)),r}qv.stringify=$I});var Hv=x(Kv=>{"use strict";var hu=Symbol("break visit"),wI=Symbol("skip children"),Vv=Symbol("remove item");function jt(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),Bv(Object.freeze([]),e,t)}jt.BREAK=hu;jt.SKIP=wI;jt.REMOVE=Vv;jt.itemAtPath=(e,t)=>{let n=e;for(let[i,r]of t){let o=n?.[i];if(o&&"items"in o)n=o.items[r];else return}return n};jt.parentCollection=(e,t)=>{let n=jt.itemAtPath(e,t.slice(0,-1)),i=t[t.length-1][0],r=n?.[i];if(r&&"items"in r)return r;throw new Error("Parent collection not found")};function Bv(e,t,n){let i=n(t,e);if(typeof i=="symbol")return i;for(let r of["key","value"]){let o=t[r];if(o&&"items"in o){for(let a=0;a<o.items.length;++a){let s=Bv(Object.freeze(e.concat([[r,a]])),o.items[a],n);if(typeof s=="number")a=s-1;else{if(s===hu)return hu;s===Vv&&(o.items.splice(a,1),a-=1)}}typeof i=="function"&&r==="key"&&(i=i(t,e))}}return typeof i=="function"?i(t,e):i}Kv.visit=jt});var wo=x(pe=>{"use strict";var vu=Mv(),kI=Fv(),xI=Hv(),yu="\uFEFF",bu="",_u="",$u="",SI=e=>!!e&&"items"in e,II=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function OI(e){switch(e){case yu:return"<BOM>";case bu:return"<DOC>";case _u:return"<FLOW_END>";case $u:return"<SCALAR>";default:return JSON.stringify(e)}}function PI(e){switch(e){case yu:return"byte-order-mark";case bu:return"doc-mode";case _u:return"flow-error-end";case $u:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
|
142
142
|
`:case`\r
|
|
143
|
-
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(
|
|
144
|
-
`:case"\r":case" ":return!0;default:return!1}}var
|
|
145
|
-
\r `),
|
|
146
|
-
`?!0:n==="\r"?this.buffer[
|
|
147
|
-
`:!1}charAt(
|
|
148
|
-
`||!r&&!this.atEnd)return
|
|
149
|
-
`||i>=this.indentNext||!n&&!this.atEnd?
|
|
150
|
-
`,this.pos),this.lineEndPos=
|
|
143
|
+
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}pe.createScalarToken=vu.createScalarToken;pe.resolveAsScalar=vu.resolveAsScalar;pe.setScalarValue=vu.setScalarValue;pe.stringify=kI.stringify;pe.visit=xI.visit;pe.BOM=yu;pe.DOCUMENT=bu;pe.FLOW_END=_u;pe.SCALAR=$u;pe.isCollection=SI;pe.isScalar=II;pe.prettyToken=OI;pe.tokenType=PI});var xu=x(Wv=>{"use strict";var In=wo();function Ce(e){switch(e){case void 0:case" ":case`
|
|
144
|
+
`:case"\r":case" ":return!0;default:return!1}}var Jv=new Set("0123456789ABCDEFabcdef"),EI=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),ko=new Set(",[]{}"),AI=new Set(` ,[]{}
|
|
145
|
+
\r `),wu=e=>!e||AI.has(e),ku=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!n;let i=this.next??"stream";for(;i&&(n||this.hasChars(1));)i=yield*this.parseNext(i)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
|
|
146
|
+
`?!0:n==="\r"?this.buffer[t+1]===`
|
|
147
|
+
`:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let n=this.buffer[t];if(this.indentNext>0){let i=0;for(;n===" ";)n=this.buffer[++i+t];if(n==="\r"){let r=this.buffer[i+t+1];if(r===`
|
|
148
|
+
`||!r&&!this.atEnd)return t+i+1}return n===`
|
|
149
|
+
`||i>=this.indentNext||!n&&!this.atEnd?t+i:-1}if(n==="-"||n==="."){let i=this.buffer.substr(t,3);if((i==="---"||i==="...")&&Ce(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
|
|
150
|
+
`,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===In.BOM&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length,i=t.indexOf("#");for(;i!==-1;){let o=t[i-1];if(o===" "||o===" "){n=i-1;break}else i=t.indexOf("#",i+1)}for(;;){let o=t[n-1];if(o===" "||o===" ")n-=1;else break}let r=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-r),this.pushNewline(),"stream"}if(this.atLineEnd()){let n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield In.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let n=this.peek(3);if((n==="---"||n==="...")&&Ce(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,n==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Ce(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&Ce(n)){let i=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=i,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(wu),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,i=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=i=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);let r=this.getLine();if(r===null)return this.setNext("flow");if((i!==-1&&i<this.indentNext&&r[0]!=="#"||i===0&&(r.startsWith("---")||r.startsWith("..."))&&Ce(r[3]))&&!(i===this.indentNext-1&&this.flowLevel===1&&(r[0]==="]"||r[0]==="}")))return this.flowLevel=0,yield In.FLOW_END,yield*this.parseLineStart();let o=0;for(;r[o]===",";)o+=yield*this.pushCount(1),o+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(o+=yield*this.pushIndicators(),r[o]){case void 0:return"flow";case"#":return yield*this.pushCount(r.length-o),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(wu),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let a=this.charAt(1);if(this.flowKey||Ce(a)||a===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let t=this.charAt(0),n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let o=0;for(;this.buffer[n-1-o]==="\\";)o+=1;if(o%2===0)break;n=this.buffer.indexOf('"',n+1)}let i=this.buffer.substring(0,n),r=i.indexOf(`
|
|
151
151
|
`,this.pos);if(r!==-1){for(;r!==-1;){let o=this.continueScalar(r+1);if(o===-1)break;r=i.indexOf(`
|
|
152
|
-
`,o)}r!==-1&&(n=r-(i[r-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let
|
|
153
|
-
`:
|
|
154
|
-
`)break}default:break e}if(!i&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let o=this.continueScalar(
|
|
155
|
-
`,o)}while(
|
|
156
|
-
`;)i=this.buffer[++r];
|
|
157
|
-
`&&o>=this.pos&&o+1+n>s)
|
|
152
|
+
`,o)}r!==-1&&(n=r-(i[r-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){let n=this.buffer[++t];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>Ce(n)||n==="#")}*parseBlockScalar(){let t=this.pos-1,n=0,i;e:for(let o=this.pos;i=this.buffer[o];++o)switch(i){case" ":n+=1;break;case`
|
|
153
|
+
`:t=o,n=0;break;case"\r":{let a=this.buffer[o+1];if(!a&&!this.atEnd)return this.setNext("block-scalar");if(a===`
|
|
154
|
+
`)break}default:break e}if(!i&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let o=this.continueScalar(t+1);if(o===-1)break;t=this.buffer.indexOf(`
|
|
155
|
+
`,o)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let r=t+1;for(i=this.buffer[r];i===" ";)i=this.buffer[++r];if(i===" "){for(;i===" "||i===" "||i==="\r"||i===`
|
|
156
|
+
`;)i=this.buffer[++r];t=r-1}else if(!this.blockScalarKeep)do{let o=t-1,a=this.buffer[o];a==="\r"&&(a=this.buffer[--o]);let s=o;for(;a===" ";)a=this.buffer[--o];if(a===`
|
|
157
|
+
`&&o>=this.pos&&o+1+n>s)t=o;else break}while(!0);return yield In.SCALAR,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let t=this.flowLevel>0,n=this.pos-1,i=this.pos-1,r;for(;r=this.buffer[++i];)if(r===":"){let o=this.buffer[i+1];if(Ce(o)||t&&ko.has(o))break;n=i}else if(Ce(r)){let o=this.buffer[i+1];if(r==="\r"&&(o===`
|
|
158
158
|
`?(i+=1,r=`
|
|
159
|
-
`,o=this.buffer[i+1]):n=i),o==="#"||
|
|
160
|
-
`){let a=this.continueScalar(i+1);if(a===-1)break;i=Math.max(i,a-2)}}else{if(
|
|
161
|
-
`?yield*this.pushCount(1):
|
|
162
|
-
`?yield*this.pushCount(2):0}*pushSpaces(
|
|
159
|
+
`,o=this.buffer[i+1]):n=i),o==="#"||t&&ko.has(o))break;if(r===`
|
|
160
|
+
`){let a=this.continueScalar(i+1);if(a===-1)break;i=Math.max(i,a-2)}}else{if(t&&ko.has(r))break;n=i}return!r&&!this.atEnd?this.setNext("plain-scalar"):(yield In.SCALAR,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){let i=this.buffer.slice(this.pos,t);return i?(yield i,this.pos+=i.length,i.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(wu))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let t=this.flowLevel>0,n=this.charAt(1);if(Ce(n)||t&&ko.has(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!Ce(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(EI.has(n))n=this.buffer[++t];else if(n==="%"&&Jv.has(this.buffer[t+1])&&Jv.has(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){let t=this.buffer[this.pos];return t===`
|
|
161
|
+
`?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
|
|
162
|
+
`?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,i;do i=this.buffer[++n];while(i===" "||t&&i===" ");let r=n-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=n),r}*pushUntil(t){let n=this.pos,i=this.buffer[n];for(;!t(i);)i=this.buffer[++n];return yield*this.pushToIndex(n,!1)}};Wv.Lexer=ku});var Iu=x(Gv=>{"use strict";var Su=class{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,i=this.lineStarts.length;for(;n<i;){let o=n+i>>1;this.lineStarts[o]<t?n=o+1:i=o}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};let r=this.lineStarts[n-1];return{line:n,col:t-r+1}}}};Gv.LineCounter=Su});var Pu=x(ty=>{"use strict";var TI=Ke("process"),Yv=wo(),zI=xu();function ft(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function Xv(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function ey(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function xo(e){switch(e.type){case"document":return e.start;case"block-map":{let t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function or(e){if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function Qv(e){if(e.start.type==="flow-seq-start")for(let t of e.items)t.sep&&!t.value&&!ft(t.start,"explicit-key-ind")&&!ft(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,ey(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}var Ou=class{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new zI.Lexer,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let i of this.lexer.lex(t,n))yield*this.next(i);n||(yield*this.end())}*next(t){if(this.source=t,TI.env.LOG_TOKENS&&console.log("|",Yv.prettyToken(t)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}let n=Yv.tokenType(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{let i=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:i,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let t=this.peek(1);if(this.type==="doc-end"&&t?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){let n=t??this.stack.pop();if(!n)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield n;else{let i=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in i?i.indent:0:n.type==="flow-collection"&&i.type==="document"&&(n.indent=0),n.type==="flow-collection"&&Qv(n),i.type){case"document":i.value=n;break;case"block-scalar":i.props.push(n);break;case"block-map":{let r=i.items[i.items.length-1];if(r.value){i.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(r.sep)r.value=n;else{Object.assign(r,{key:n,sep:[]}),this.onKeyLine=!r.explicitKey;return}break}case"block-seq":{let r=i.items[i.items.length-1];r.value?i.items.push({start:[],value:n}):r.value=n;break}case"flow-collection":{let r=i.items[i.items.length-1];!r||r.value?i.items.push({start:[],key:n,sep:[]}):r.sep?r.value=n:Object.assign(r,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((i.type==="document"||i.type==="block-map"||i.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){let r=n.items[n.items.length-1];r&&!r.sep&&!r.value&&r.start.length>0&&Xv(r.start)===-1&&(n.indent===0||r.start.every(o=>o.type!=="comment"||o.indent<n.indent))&&(i.type==="document"?i.end=r.start:i.items.push({start:r.start}),n.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{Xv(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}let n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){let n=xo(this.peek(2)),i=or(n),r;t.end?(r=t.end,r.push(this.sourceToken),delete t.end):r=[this.sourceToken];let o={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
|
|
163
163
|
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
164
|
-
`,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(
|
|
164
|
+
`,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){let n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){let i="end"in n.value?n.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){let r=t.items[t.items.length-2]?.value?.end;if(Array.isArray(r)){Array.prototype.push.apply(r,n.start),r.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){let i=!this.onKeyLine&&this.indent===t.indent,r=i&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind",o=[];if(r&&n.sep&&!n.value){let a=[];for(let s=0;s<n.sep.length;++s){let c=n.sep[s];switch(c.type){case"newline":a.push(s);break;case"space":break;case"comment":c.indent>t.indent&&(a.length=0);break;default:a.length=0}}a.length>=2&&(o=n.sep.splice(a[1]))}switch(this.type){case"anchor":case"tag":r||n.value?(o.push(this.sourceToken),t.items.push({start:o}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):r||n.value?(o.push(this.sourceToken),t.items.push({start:o,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(ft(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]});else if(ey(n.key)&&!ft(n.sep,"newline")){let a=or(n.start),s=n.key,c=n.sep;c.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:s,sep:c}]})}else o.length>0?n.sep=n.sep.concat(o,this.sourceToken):n.sep.push(this.sourceToken);else if(ft(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{let a=or(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||r?t.items.push({start:o,key:null,sep:[this.sourceToken]}):ft(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let a=this.flowScalar(this.type);r||n.value?(t.items.push({start:o,key:a,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(a):(Object.assign(n,{key:a,sep:[]}),this.onKeyLine=!0);return}default:{let a=this.startBlockValue(t);if(a){if(a.type==="block-seq"){if(!n.explicitKey&&n.sep&&!ft(n.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else i&&t.items.push({start:o});this.stack.push(a);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){let n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){let i="end"in n.value?n.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){let r=t.items[t.items.length-2]?.value?.end;if(Array.isArray(r)){Array.prototype.push.apply(r,n.start),r.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||ft(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){let i=this.startBlockValue(t);if(i){this.stack.push(i);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){let n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let i;do yield*this.pop(),i=this.peek(1);while(i?.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let r=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:r,sep:[]}):n.sep?this.stack.push(r):Object.assign(n,{key:r,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}let i=this.startBlockValue(t);i?this.stack.push(i):(yield*this.pop(),yield*this.step())}else{let i=this.peek(2);if(i.type==="block-map"&&(this.type==="map-value-ind"&&i.indent===t.indent||this.type==="newline"&&!i.items[i.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&i.type!=="flow-collection"){let r=xo(i),o=or(r);Qv(t);let a=t.end.splice(1,t.end.length);a.push(this.sourceToken);let s={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:o,key:t,sep:a}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
|
|
165
165
|
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
166
|
-
`,n)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let n=vo(e),i=rr(n);return i.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let n=vo(e),i=rr(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,n){return this.type!=="comment"||this.indent<=n?!1:e.every(i=>i.type==="newline"||i.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};Wv.Parser=$u});var ey=x(In=>{"use strict";var Gv=cu(),II=vn(),Sn=_n(),OI=ac(),PI=D(),AI=_u(),Yv=wu();function Xv(t){let e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new AI.LineCounter||null,prettyErrors:e}}function EI(t,e={}){let{lineCounter:n,prettyErrors:i}=Xv(e),r=new Yv.Parser(n?.addNewLine),o=new Gv.Composer(e),a=Array.from(o.compose(r.parse(t)));if(i&&n)for(let s of a)s.errors.forEach(Sn.prettifyError(t,n)),s.warnings.forEach(Sn.prettifyError(t,n));return a.length>0?a:Object.assign([],{empty:!0},o.streamInfo())}function Qv(t,e={}){let{lineCounter:n,prettyErrors:i}=Xv(e),r=new Yv.Parser(n?.addNewLine),o=new Gv.Composer(e),a=null;for(let s of o.compose(r.parse(t),!0,t.length))if(!a)a=s;else if(a.options.logLevel!=="silent"){a.errors.push(new Sn.YAMLParseError(s.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&n&&(a.errors.forEach(Sn.prettifyError(t,n)),a.warnings.forEach(Sn.prettifyError(t,n))),a}function TI(t,e,n){let i;typeof e=="function"?i=e:n===void 0&&e&&typeof e=="object"&&(n=e);let r=Qv(t,n);if(!r)return null;if(r.warnings.forEach(o=>OI.warn(r.options.logLevel,o)),r.errors.length>0){if(r.options.logLevel!=="silent")throw r.errors[0];r.errors=[]}return r.toJS(Object.assign({reviver:i},n))}function zI(t,e,n){let i=null;if(typeof e=="function"||Array.isArray(e)?i=e:n===void 0&&e&&(n=e),typeof n=="string"&&(n=n.length),typeof n=="number"){let r=Math.round(n);n=r<1?void 0:r>8?{indent:8}:{indent:r}}if(t===void 0){let{keepUndefined:r}=n??e??{};if(!r)return}return PI.isDocument(t)&&!i?t.toString(n):new II.Document(t,i,n).toString(n)}In.parse=TI;In.parseAllDocuments=EI;In.parseDocument=Qv;In.stringify=zI});var On=x(R=>{"use strict";var CI=cu(),jI=vn(),NI=qc(),ku=_n(),DI=Qr(),lt=D(),UI=ot(),RI=Y(),LI=st(),ZI=ct(),MI=go(),qI=yu(),FI=_u(),VI=wu(),yo=ey(),ty=Wr();R.Composer=CI.Composer;R.Document=jI.Document;R.Schema=NI.Schema;R.YAMLError=ku.YAMLError;R.YAMLParseError=ku.YAMLParseError;R.YAMLWarning=ku.YAMLWarning;R.Alias=DI.Alias;R.isAlias=lt.isAlias;R.isCollection=lt.isCollection;R.isDocument=lt.isDocument;R.isMap=lt.isMap;R.isNode=lt.isNode;R.isPair=lt.isPair;R.isScalar=lt.isScalar;R.isSeq=lt.isSeq;R.Pair=UI.Pair;R.Scalar=RI.Scalar;R.YAMLMap=LI.YAMLMap;R.YAMLSeq=ZI.YAMLSeq;R.CST=MI;R.Lexer=qI.Lexer;R.LineCounter=FI.LineCounter;R.Parser=VI.Parser;R.parse=yo.parse;R.parseAllDocuments=yo.parseAllDocuments;R.parseDocument=yo.parseDocument;R.stringify=yo.stringify;R.visit=ty.visit;R.visitAsync=ty.visitAsync});var Hp=Mr(Jp(),1),{program:ME,createCommand:qE,createArgument:FE,createOption:VE,CommanderError:BE,InvalidArgumentError:KE,InvalidOptionArgumentError:JE,Command:Wp,Argument:HE,Option:WE,Help:GE}=Hp.default;import{readFile as SE}from"node:fs/promises";import{fileURLToPath as IE}from"node:url";import{dirname as OE,join as PE}from"node:path";var je=class extends Error{constructor(n,i,r){super(n);this.status=i;this.name="CliError",this.code=r?.code,this.details=r?.details}code;details};function Xe(t,e){let n=new URLSearchParams;for(let[r,o]of Object.entries(e))o&&n.set(r,o);let i=n.toString();return i?`${t}?${i}`:t}function Fr(t){let e=null;async function n(){let a=await fetch(`${t.apiUrl}/auth/cli/exchange`,{method:"POST",headers:{Authorization:`Bearer ${t.token}`,"Content-Type":"application/json"}});if(!a.ok){let c=(await a.json().catch(()=>null))?.error;throw new je(c?.message??a.statusText,a.status,{code:c?.code,details:c?.details})}return e=await a.json(),e}async function i(){if(!t.token.startsWith("mk_"))return t.token;let a=e?Date.parse(e.expiresAt):0;return(!e||a-Date.now()<6e4)&&await n(),e.accessToken}async function r(a,s,c){let u=await i(),l=await fetch(`${t.apiUrl}${s}`,{method:a,headers:{Authorization:`Bearer ${u}`,"Content-Type":"application/json"},body:c?JSON.stringify(c):void 0});if(!l.ok){let d=await l.json().catch(()=>null),f=d&&typeof d=="object"&&d.error,p=l.statusText,y,h;if(typeof f=="string")p=f;else if(f&&typeof f=="object")p=f.message??p,y=f.code,h=f.details;else if(d&&typeof d=="object"&&Array.isArray(d.errors)){let I=d.errors?.[0];I&&typeof I=="object"&&"message"in I&&(p=String(I.message)),h=d}throw new je(p,l.status,{code:y,details:h})}if(l.status!==204)return l.json()}async function o(a,s){let c=await i(),u=await fetch(`${t.apiUrl}${s}`,{method:a,headers:{Authorization:`Bearer ${c}`}});if(!u.ok)throw new je(u.statusText,u.status);return u.text()}return{exchangeCliToken:n,bootstrap:()=>r("POST","/builder/context/bootstrap"),listProducts:()=>r("GET","/products"),createProduct:a=>r("POST","/products",a),initProduct:a=>r("POST","/products/init",a),updateProduct:(a,s,c)=>r("PATCH",Xe(`/products/${a}`,{env:c?.env}),s),createPlan:(a,s,c)=>r("POST",Xe(`/products/${a}/plans`,{env:c?.env}),s),updatePlan:(a,s,c,u)=>r("PATCH",Xe(`/products/${a}/plans/${s}`,{env:u?.env}),c),deletePlan:(a,s,c)=>r("DELETE",Xe(`/products/${a}/plans/${s}`,{env:c?.env})),getProduct:(a,s)=>r("GET",Xe(`/products/${a}`,{env:s?.env})),listEnvironments:a=>r("GET",`/products/${a}/environments`),createEnvironment:(a,s)=>r("POST",`/products/${a}/environments`,s),getProductConfig:(a,s)=>r("GET",Xe(`/products/${a}/config`,{format:"json",env:s?.env,state:s?.state})),getProductConfigYaml:(a,s)=>o("GET",Xe(`/products/${a}/config`,{format:"yaml",env:s?.env,state:s?.state})),getProductAttempts:(a,s)=>r("GET",Xe(`/products/${a}/config-attempts`,{env:s?.env})),updateProductConfigDraft:(a,s,c)=>r("PATCH",`/products/${a}/config/draft`,{spec:s,dryRun:c?.dryRun===!0,env:c?.env,branch:c?.branch,source:c?.source,baseDraftHash:c?.baseDraftHash}),updateProductConfig:(a,s,c)=>r("PATCH",`/products/${a}/config/draft`,{spec:s,dryRun:c?.dryRun===!0,env:c?.env,branch:c?.branch,source:c?.source,baseDraftHash:c?.baseDraftHash}),validateProductConfigDraft:(a,s)=>r("POST",`/products/${a}/config/draft/validate`,{env:s?.env}),previewProductConfigDraft:(a,s)=>r("POST",`/products/${a}/config/draft/preview`,{env:s?.env}),resetProductConfigDraft:(a,s)=>r("DELETE",`/products/${a}/config/draft`,{env:s?.env}),applyProductConfig:(a,s)=>r("POST",`/products/${a}/config/apply`,{spec:s?.spec,dryRun:s?.dryRun===!0,env:s?.env,branch:s?.branch,source:s?.source,draftHash:s?.draftHash}),compileProduct:(a,s)=>r("POST",`/products/${a}/compile`,zs(s)),managementCompileSelf:a=>r("POST","/management/compile",zs(a)),managementCompile:(a,s)=>r("POST",`/management/products/${a}/compile`,zs(s)),managementListProducts:async()=>{let a=await r("GET","/management/products");return Array.isArray(a)?a:a.data},isMakerToken:()=>t.token.startsWith("mk_")}}function zs(t){let e={};return t?.branch&&(e.branch=t.branch),t?.dryRun&&(e.dryRun=!0),t?.env&&(e.env=t.env),Object.keys(e).length>0?e:void 0}import{existsSync as yi,mkdirSync as ew,readFileSync as Yp,writeFileSync as Ns}from"node:fs";import{homedir as tw}from"node:os";import{join as Ds}from"node:path";var Gp="https://core.farthershore.com";var Br=Ds(tw(),".farthershore"),js=Ds(Br,"config.json"),Vr=Ds(Br,"credentials.json");function Us(t){yi(t)||ew(t,{recursive:!0,mode:448})}var Cs={apiUrl:Gp,defaultFormat:"table"};function $e(){if(Us(Br),!yi(js))return Cs;try{let t=JSON.parse(Yp(js,"utf-8"));return{...Cs,...t}}catch{return Cs}}function Qe(t){Us(Br);let e=$e();Ns(js,JSON.stringify({...e,...t},null,2)+`
|
|
167
|
-
`)}function
|
|
168
|
-
`,{mode:384})}function
|
|
166
|
+
`,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let n=xo(t),i=or(n);return i.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let n=xo(t),i=or(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(i=>i.type==="newline"||i.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};ty.Parser=Ou});var ay=x(Pn=>{"use strict";var ry=pu(),CI=bn(),On=wn(),jI=fc(),NI=D(),DI=Iu(),ny=Pu();function iy(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new DI.LineCounter||null,prettyErrors:t}}function UI(e,t={}){let{lineCounter:n,prettyErrors:i}=iy(t),r=new ny.Parser(n?.addNewLine),o=new ry.Composer(t),a=Array.from(o.compose(r.parse(e)));if(i&&n)for(let s of a)s.errors.forEach(On.prettifyError(e,n)),s.warnings.forEach(On.prettifyError(e,n));return a.length>0?a:Object.assign([],{empty:!0},o.streamInfo())}function oy(e,t={}){let{lineCounter:n,prettyErrors:i}=iy(t),r=new ny.Parser(n?.addNewLine),o=new ry.Composer(t),a=null;for(let s of o.compose(r.parse(e),!0,e.length))if(!a)a=s;else if(a.options.logLevel!=="silent"){a.errors.push(new On.YAMLParseError(s.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&n&&(a.errors.forEach(On.prettifyError(e,n)),a.warnings.forEach(On.prettifyError(e,n))),a}function RI(e,t,n){let i;typeof t=="function"?i=t:n===void 0&&t&&typeof t=="object"&&(n=t);let r=oy(e,n);if(!r)return null;if(r.warnings.forEach(o=>jI.warn(r.options.logLevel,o)),r.errors.length>0){if(r.options.logLevel!=="silent")throw r.errors[0];r.errors=[]}return r.toJS(Object.assign({reviver:i},n))}function LI(e,t,n){let i=null;if(typeof t=="function"||Array.isArray(t)?i=t:n===void 0&&t&&(n=t),typeof n=="string"&&(n=n.length),typeof n=="number"){let r=Math.round(n);n=r<1?void 0:r>8?{indent:8}:{indent:r}}if(e===void 0){let{keepUndefined:r}=n??t??{};if(!r)return}return NI.isDocument(e)&&!i?e.toString(n):new CI.Document(e,i,n).toString(n)}Pn.parse=RI;Pn.parseAllDocuments=UI;Pn.parseDocument=oy;Pn.stringify=LI});var En=x(R=>{"use strict";var ZI=pu(),MI=bn(),qI=Jc(),Eu=wn(),FI=tn(),mt=D(),VI=ct(),BI=Y(),KI=lt(),HI=dt(),JI=wo(),WI=xu(),GI=Iu(),YI=Pu(),So=ay(),sy=Yr();R.Composer=ZI.Composer;R.Document=MI.Document;R.Schema=qI.Schema;R.YAMLError=Eu.YAMLError;R.YAMLParseError=Eu.YAMLParseError;R.YAMLWarning=Eu.YAMLWarning;R.Alias=FI.Alias;R.isAlias=mt.isAlias;R.isCollection=mt.isCollection;R.isDocument=mt.isDocument;R.isMap=mt.isMap;R.isNode=mt.isNode;R.isPair=mt.isPair;R.isScalar=mt.isScalar;R.isSeq=mt.isSeq;R.Pair=VI.Pair;R.Scalar=BI.Scalar;R.YAMLMap=KI.YAMLMap;R.YAMLSeq=HI.YAMLSeq;R.CST=JI;R.Lexer=WI.Lexer;R.LineCounter=GI.LineCounter;R.Parser=YI.Parser;R.parse=So.parse;R.parseAllDocuments=So.parseAllDocuments;R.parseDocument=So.parseDocument;R.stringify=So.stringify;R.visit=sy.visit;R.visitAsync=sy.visitAsync});var eg=Fr(Qp(),1),{program:JA,createCommand:WA,createArgument:GA,createOption:YA,CommanderError:XA,InvalidArgumentError:QA,InvalidOptionArgumentError:eT,Command:tg,Argument:tT,Option:rT,Help:nT}=eg.default;import{readFile as zA}from"node:fs/promises";import{fileURLToPath as CA}from"node:url";import{dirname as jA,join as NA}from"node:path";var ue=class extends Error{constructor(n,i,r){super(n);this.status=i;this.name="CliError",this.code=r?.code,this.details=r?.details}code;details};function tt(e,t){let n=new URLSearchParams;for(let[r,o]of Object.entries(t))o&&n.set(r,o);let i=n.toString();return i?`${e}?${i}`:e}function Br(e){let t=null;async function n(){let a=await fetch(`${e.apiUrl}/auth/cli/exchange`,{method:"POST",headers:{Authorization:`Bearer ${e.token}`,"Content-Type":"application/json"}});if(!a.ok){let c=(await a.json().catch(()=>null))?.error;throw new ue(c?.message??a.statusText,a.status,{code:c?.code,details:c?.details})}return t=await a.json(),t}async function i(){if(!e.token.startsWith("mk_"))return e.token;let a=t?Date.parse(t.expiresAt):0;return(!t||a-Date.now()<6e4)&&await n(),t.accessToken}async function r(a,s,c){let u=await i(),l=await fetch(`${e.apiUrl}${s}`,{method:a,headers:{Authorization:`Bearer ${u}`,"Content-Type":"application/json"},body:c?JSON.stringify(c):void 0});if(!l.ok){let d=await l.json().catch(()=>null),f=d&&typeof d=="object"&&d.error,p=l.statusText,y,h;if(typeof f=="string")p=f;else if(f&&typeof f=="object")p=f.message??p,y=f.code,h=f.details;else if(d&&typeof d=="object"&&Array.isArray(d.errors)){let I=d.errors?.[0];I&&typeof I=="object"&&"message"in I&&(p=String(I.message)),h=d}throw new ue(p,l.status,{code:y,details:h})}if(l.status!==204)return l.json()}async function o(a,s){let c=await i(),u=await fetch(`${e.apiUrl}${s}`,{method:a,headers:{Authorization:`Bearer ${c}`}});if(!u.ok)throw new ue(u.statusText,u.status);return u.text()}return{exchangeCliToken:n,bootstrap:()=>r("POST","/builder/context/bootstrap"),listProducts:()=>r("GET","/products"),createProduct:a=>r("POST","/products",a),initProduct:a=>r("POST","/products/init",a),updateProduct:(a,s,c)=>r("PATCH",tt(`/products/${a}`,{env:c?.env}),s),createPlan:(a,s,c)=>r("POST",tt(`/products/${a}/plans`,{env:c?.env}),s),updatePlan:(a,s,c,u)=>r("PATCH",tt(`/products/${a}/plans/${s}`,{env:u?.env}),c),deletePlan:(a,s,c)=>r("DELETE",tt(`/products/${a}/plans/${s}`,{env:c?.env})),getProduct:(a,s)=>r("GET",tt(`/products/${a}`,{env:s?.env})),listEnvironments:a=>r("GET",`/products/${a}/environments`),createEnvironment:(a,s)=>r("POST",`/products/${a}/environments`,s),issuePersonaBootstrapKey:async(a,s,c)=>{let u=await fetch(`${e.apiUrl}/portal/products/${a}/environments/${s}/test/bootstrap-key`,{method:"POST",headers:{Authorization:`Bearer ${e.token}`,"Content-Type":"application/json"},body:JSON.stringify(c??{})});if(!u.ok){let d=(await u.json().catch(()=>null))?.error;throw new ue(d?.message??u.statusText,u.status,{code:d?.code,details:d?.details})}return u.json()},listPersonas:async(a,s)=>{let c=await fetch(`${e.apiUrl}/portal/products/${a}/environments/${s}/test/personas`,{method:"GET",headers:{Authorization:`Bearer ${e.token}`}});if(!c.ok){let l=(await c.json().catch(()=>null))?.error;throw new ue(l?.message??c.statusText,c.status,{code:l?.code,details:l?.details})}return c.json()},rotatePersona:async(a,s,c)=>{let u=await fetch(`${e.apiUrl}/portal/products/${a}/environments/${s}/test/personas/${c}/rotate`,{method:"POST",headers:{Authorization:`Bearer ${e.token}`,"Content-Type":"application/json"}});if(!u.ok){let d=(await u.json().catch(()=>null))?.error;throw new ue(d?.message??u.statusText,u.status,{code:d?.code,details:d?.details})}return u.json()},revokePersona:async(a,s,c)=>{let u=await fetch(`${e.apiUrl}/portal/products/${a}/environments/${s}/test/personas/${c}`,{method:"DELETE",headers:{Authorization:`Bearer ${e.token}`}});if(!u.ok){let d=(await u.json().catch(()=>null))?.error;throw new ue(d?.message??u.statusText,u.status,{code:d?.code,details:d?.details})}return u.json()},exchangePersonaSession:async a=>{let s=await fetch(`${e.apiUrl}/portal/auth/persona-session`,{method:"POST",headers:{"Content-Type":"application/json","X-Portal-Host":a.portalHost},body:JSON.stringify({apiKey:a.apiKey})});if(!s.ok){let u=(await s.json().catch(()=>null))?.error;throw new ue(u?.message??s.statusText,s.status,{code:u?.code,details:u?.details})}return s.json()},getProductConfig:(a,s)=>r("GET",tt(`/products/${a}/config`,{format:"json",env:s?.env,state:s?.state})),getProductConfigYaml:(a,s)=>o("GET",tt(`/products/${a}/config`,{format:"yaml",env:s?.env,state:s?.state})),getProductAttempts:(a,s)=>r("GET",tt(`/products/${a}/config-attempts`,{env:s?.env})),updateProductConfigDraft:(a,s,c)=>r("PATCH",`/products/${a}/config/draft`,{spec:s,dryRun:c?.dryRun===!0,env:c?.env,branch:c?.branch,source:c?.source,baseDraftHash:c?.baseDraftHash}),updateProductConfig:(a,s,c)=>r("PATCH",`/products/${a}/config/draft`,{spec:s,dryRun:c?.dryRun===!0,env:c?.env,branch:c?.branch,source:c?.source,baseDraftHash:c?.baseDraftHash}),validateProductConfigDraft:(a,s)=>r("POST",`/products/${a}/config/draft/validate`,{env:s?.env}),previewProductConfigDraft:(a,s)=>r("POST",`/products/${a}/config/draft/preview`,{env:s?.env}),resetProductConfigDraft:(a,s)=>r("DELETE",`/products/${a}/config/draft`,{env:s?.env}),applyProductConfig:(a,s)=>r("POST",`/products/${a}/config/apply`,{spec:s?.spec,dryRun:s?.dryRun===!0,env:s?.env,branch:s?.branch,source:s?.source,draftHash:s?.draftHash}),compileProduct:(a,s)=>r("POST",`/products/${a}/compile`,Rs(s)),managementCompileSelf:a=>r("POST","/management/compile",Rs(a)),managementCompile:(a,s)=>r("POST",`/management/products/${a}/compile`,Rs(s)),managementListProducts:async()=>{let a=await r("GET","/management/products");return Array.isArray(a)?a:a.data},isMakerToken:()=>e.token.startsWith("mk_")}}function Rs(e){let t={};return e?.branch&&(t.branch=e.branch),e?.dryRun&&(t.dryRun=!0),e?.env&&(t.env=e.env),Object.keys(t).length>0?t:void 0}import{existsSync as Si,mkdirSync as sw,readFileSync as ng,writeFileSync as Ms}from"node:fs";import{homedir as cw}from"node:os";import{join as qs}from"node:path";var rg="https://core.farthershore.com";var Hr=qs(cw(),".farthershore"),Zs=qs(Hr,"config.json"),Kr=qs(Hr,"credentials.json");function Fs(e){Si(e)||sw(e,{recursive:!0,mode:448})}var Ls={apiUrl:rg,defaultFormat:"table"};function be(){if(Fs(Hr),!Si(Zs))return Ls;try{let e=JSON.parse(ng(Zs,"utf-8"));return{...Ls,...e}}catch{return Ls}}function rt(e){Fs(Hr);let t=be();Ms(Zs,JSON.stringify({...t,...e},null,2)+`
|
|
167
|
+
`)}function ig(){if(!Si(Kr))return null;try{return JSON.parse(ng(Kr,"utf-8"))}catch{return null}}function Vs(e){Fs(Hr),Ms(Kr,JSON.stringify(e,null,2)+`
|
|
168
|
+
`,{mode:384})}function og(){Si(Kr)&&Ms(Kr,"{}")}function Ii(e){if(e)return e;let t=process.env.FARTHERSHORE_TOKEN;if(t)return t;let n=ig();if(n?.token)return n.token;throw new ue("Not authenticated. Run `farthershore set-key` or set FARTHERSHORE_TOKEN environment variable.")}import*as yg from"node:readline/promises";var ag=(e=0)=>t=>`\x1B[${t+e}m`,sg=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,cg=(e=0)=>(t,n,i)=>`\x1B[${38+e};2;${t};${n};${i}m`,K={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},vT=Object.keys(K.modifier),uw=Object.keys(K.color),lw=Object.keys(K.bgColor),yT=[...uw,...lw];function dw(){let e=new Map;for(let[t,n]of Object.entries(K)){for(let[i,r]of Object.entries(n))K[i]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},n[i]=K[i],e.set(r[0],r[1]);Object.defineProperty(K,t,{value:n,enumerable:!1})}return Object.defineProperty(K,"codes",{value:e,enumerable:!1}),K.color.close="\x1B[39m",K.bgColor.close="\x1B[49m",K.color.ansi=ag(),K.color.ansi256=sg(),K.color.ansi16m=cg(),K.bgColor.ansi=ag(10),K.bgColor.ansi256=sg(10),K.bgColor.ansi16m=cg(10),Object.defineProperties(K,{rgbToAnsi256:{value(t,n,i){return t===n&&n===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)},enumerable:!1},hexToRgb:{value(t){let n=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!n)return[0,0,0];let[i]=n;i.length===3&&(i=[...i].map(o=>o+o).join(""));let r=Number.parseInt(i,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:t=>K.rgbToAnsi256(...K.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let n,i,r;if(t>=232)n=((t-232)*10+8)/255,i=n,r=n;else{t-=16;let s=t%36;n=Math.floor(t/36)/5,i=Math.floor(s/6)/5,r=s%6/5}let o=Math.max(n,i,r)*2;if(o===0)return 30;let a=30+(Math.round(r)<<2|Math.round(i)<<1|Math.round(n));return o===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(t,n,i)=>K.ansi256ToAnsi(K.rgbToAnsi256(t,n,i)),enumerable:!1},hexToAnsi:{value:t=>K.ansi256ToAnsi(K.hexToAnsi256(t)),enumerable:!1}}),K}var fw=dw(),Ae=fw;import Bs from"node:process";import mw from"node:os";import ug from"node:tty";function xe(e,t=globalThis.Deno?globalThis.Deno.args:Bs.argv){let n=e.startsWith("-")?"":e.length===1?"-":"--",i=t.indexOf(n+e),r=t.indexOf("--");return i!==-1&&(r===-1||i<r)}var{env:H}=Bs,Oi;xe("no-color")||xe("no-colors")||xe("color=false")||xe("color=never")?Oi=0:(xe("color")||xe("colors")||xe("color=true")||xe("color=always"))&&(Oi=1);function pw(){if("FORCE_COLOR"in H)return H.FORCE_COLOR==="true"?1:H.FORCE_COLOR==="false"?0:H.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(H.FORCE_COLOR,10),3)}function gw(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function hw(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let i=pw();i!==void 0&&(Oi=i);let r=n?Oi:i;if(r===0)return 0;if(n){if(xe("color=16m")||xe("color=full")||xe("color=truecolor"))return 3;if(xe("color=256"))return 2}if("TF_BUILD"in H&&"AGENT_NAME"in H)return 1;if(e&&!t&&r===void 0)return 0;let o=r||0;if(H.TERM==="dumb")return o;if(Bs.platform==="win32"){let a=mw.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in H)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(a=>a in H)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in H)||H.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in H)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(H.TEAMCITY_VERSION)?1:0;if(H.COLORTERM==="truecolor"||H.TERM==="xterm-kitty"||H.TERM==="xterm-ghostty"||H.TERM==="wezterm")return 3;if("TERM_PROGRAM"in H){let a=Number.parseInt((H.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(H.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(H.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(H.TERM)||"COLORTERM"in H?1:o}function lg(e,t={}){let n=hw(e,{streamIsTTY:e&&e.isTTY,...t});return gw(n)}var vw={stdout:lg({isTTY:ug.isatty(1)}),stderr:lg({isTTY:ug.isatty(2)})},dg=vw;function fg(e,t,n){let i=e.indexOf(t);if(i===-1)return e;let r=t.length,o=0,a="";do a+=e.slice(o,i)+t+n,o=i+r,i=e.indexOf(t,o);while(i!==-1);return a+=e.slice(o),a}function mg(e,t,n,i){let r=0,o="";do{let a=e[i-1]==="\r";o+=e.slice(r,a?i-1:i)+t+(a?`\r
|
|
169
169
|
`:`
|
|
170
|
-
`)+n,r=i+1,i=
|
|
171
|
-
`,r)}while(i!==-1);return o+=
|
|
172
|
-
`);return o!==-1&&(
|
|
170
|
+
`)+n,r=i+1,i=e.indexOf(`
|
|
171
|
+
`,r)}while(i!==-1);return o+=e.slice(r),o}var{stdout:pg,stderr:gg}=dg,Ks=Symbol("GENERATOR"),Kt=Symbol("STYLER"),Jr=Symbol("IS_EMPTY"),hg=["ansi","ansi","ansi256","ansi16m"],Ht=Object.create(null),yw=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let n=pg?pg.level:0;e.level=t.level===void 0?n:t.level};var bw=e=>{let t=(...n)=>n.join(" ");return yw(t,e),Object.setPrototypeOf(t,Wr.prototype),t};function Wr(e){return bw(e)}Object.setPrototypeOf(Wr.prototype,Function.prototype);for(let[e,t]of Object.entries(Ae))Ht[e]={get(){let n=Pi(this,Js(t.open,t.close,this[Kt]),this[Jr]);return Object.defineProperty(this,e,{value:n}),n}};Ht.visible={get(){let e=Pi(this,this[Kt],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Hs=(e,t,n,...i)=>e==="rgb"?t==="ansi16m"?Ae[n].ansi16m(...i):t==="ansi256"?Ae[n].ansi256(Ae.rgbToAnsi256(...i)):Ae[n].ansi(Ae.rgbToAnsi(...i)):e==="hex"?Hs("rgb",t,n,...Ae.hexToRgb(...i)):Ae[n][e](...i),_w=["rgb","hex","ansi256"];for(let e of _w){Ht[e]={get(){let{level:n}=this;return function(...i){let r=Js(Hs(e,hg[n],"color",...i),Ae.color.close,this[Kt]);return Pi(this,r,this[Jr])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);Ht[t]={get(){let{level:n}=this;return function(...i){let r=Js(Hs(e,hg[n],"bgColor",...i),Ae.bgColor.close,this[Kt]);return Pi(this,r,this[Jr])}}}}var $w=Object.defineProperties(()=>{},{...Ht,level:{enumerable:!0,get(){return this[Ks].level},set(e){this[Ks].level=e}}}),Js=(e,t,n)=>{let i,r;return n===void 0?(i=e,r=t):(i=n.openAll+e,r=t+n.closeAll),{open:e,close:t,openAll:i,closeAll:r,parent:n}},Pi=(e,t,n)=>{let i=(...r)=>ww(i,r.length===1?""+r[0]:r.join(" "));return Object.setPrototypeOf(i,$w),i[Ks]=e,i[Kt]=t,i[Jr]=n,i},ww=(e,t)=>{if(e.level<=0||!t)return e[Jr]?"":t;let n=e[Kt];if(n===void 0)return t;let{openAll:i,closeAll:r}=n;if(t.includes("\x1B"))for(;n!==void 0;)t=fg(t,n.close,n.open),n=n.parent;let o=t.indexOf(`
|
|
172
|
+
`);return o!==-1&&(t=mg(t,r,i,o)),i+t+r};Object.defineProperties(Wr.prototype,Ht);var kw=Wr(),PT=Wr({level:gg?gg.level:0});var Jt=kw;function J(e){return JSON.stringify(e,null,2)}function ee(e){console.log(Jt.green(`\u2713 ${e}`))}function W(e){console.error(Jt.red(`\u2717 ${e}`))}function Te(e){console.warn(Jt.yellow(`\u26A0 ${e}`))}function Pt(e){console.log(Jt.dim(e))}function Gr(e){console.log(Jt.bold(e))}function xw(){return process.stdout.isTTY===!0}function nt(e){return e==="json"||e==="table"?e:xw()?"table":"json"}function bg(e){e.command("auth").description("Manage authentication").addHelpText("after",`
|
|
173
173
|
Agent notes:
|
|
174
174
|
Prefer FARTHERSHORE_TOKEN in CI/agent environments. Use auth set-key for local persistent credentials.
|
|
175
175
|
|
|
@@ -180,12 +180,12 @@ Examples:
|
|
|
180
180
|
Examples:
|
|
181
181
|
farthershore auth set-key mk_xxx
|
|
182
182
|
farthershore auth set-key "$FARTHERSHORE_TOKEN"
|
|
183
|
-
`).action(async n=>{await
|
|
183
|
+
`).action(async n=>{await vg(Ws(e),n)}),e.command("set-key [token]").description("Set your API token (interactive or pass as argument)").action(async n=>{await vg(Ws(e),n)}),e.command("logout").description("Clear stored credentials").action(()=>{og(),ee("Credentials cleared.")}),e.command("whoami").description("Show current authentication context").action(async()=>{let n=e.opts().format,i=nt(n),r=Ws(e);try{let o=Ii(),a=Br({apiUrl:r,token:o}),s=o.startsWith("mk_")?await a.exchangeCliToken():null,c=s?null:await a.bootstrap(),u=process.env.FARTHERSHORE_TOKEN?"env:FARTHERSHORE_TOKEN":"credentials-file";if(s){let l={authenticated:!0,authKind:"maker",organizationId:s.organizationId,productId:s.productId,scopes:s.scopes,role:s.role??null,expiresAt:s.expiresAt,apiUrl:r,authSource:u};i==="json"?console.log(J(l)):(Gr("Current Context"),console.log(" Auth: maker token"),console.log(` Organization: ${s.organizationId}`),console.log(` API URL: ${r}`));return}if(i==="json"){console.log(J({authenticated:!0,authKind:"builder",organization:{id:c.activeOrganization.id,name:c.activeOrganization.name??null,slug:c.activeOrganization.slug??null},user:{id:c.user.id},apiUrl:r,authSource:u}));return}Gr("Current Context"),console.log(` Organization: ${c.activeOrganization.name??c.activeOrganization.id}`),console.log(` API URL: ${r}`),u==="env:FARTHERSHORE_TOKEN"?Pt(" Auth: FARTHERSHORE_TOKEN env var"):Pt(" Auth: ~/.farthershore/credentials.json")}catch{i==="json"?console.log(J({authenticated:!1})):W("Not authenticated. Run `farthershore set-key` or set FARTHERSHORE_TOKEN."),process.exitCode=1}}),e.command("set-url <url>").description("Override the API base URL (for staging/testing)").action(n=>{rt({apiUrl:n}),ee(`API URL set to ${n}`)}),e.command("reset-url").description("Reset the API URL to production default").action(()=>{rt({apiUrl:"https://core.farthershore.com"}),ee("API URL reset to https://core.farthershore.com")})}function Ws(e){let t=be();return e.opts().apiUrl??process.env.FARTHERSHORE_API_URL??t.apiUrl}async function vg(e,t){let n=t?.trim();if(!n){if(!process.stdin.isTTY){W("No token provided. Pass it as an argument: farthershore auth set-key <token>"),process.exitCode=1;return}console.log(`Set your FartherShore API token
|
|
184
184
|
`),console.log(` Create a token at https://farthershore.com/settings/tokens
|
|
185
|
-
`);let i=fg.createInterface({input:process.stdin,output:process.stdout});n=(await i.question("Token: ")).trim(),i.close()}if(!n){H("No token provided."),process.exitCode=1;return}try{let i=Fr({apiUrl:t,token:n});if(n.startsWith("mk_")){let o=await i.exchangeCliToken();Rs({token:n,orgId:o.organizationId,cliAccessToken:o.accessToken,cliAccessTokenExpiresAt:o.expiresAt}),ee("Authenticated"),console.log(` Organization: ${o.organizationId}`);return}let r=await i.bootstrap();Rs({token:n,orgId:r.activeOrganization.id,userId:r.user.id}),ee("Authenticated"),console.log(` Organization: ${r.activeOrganization.name??r.activeOrganization.id}`)}catch{H("Invalid token. Check it and try again."),process.exitCode=1}}function pg(t,e){t.command("init <name>").description("Create a new product with a GitHub repo for agent-first configuration").option("--base-url <url>","Backend API base URL").option("--description <desc>","Product description").option("--display-name <name>","Display name").action(async(n,i)=>{let o=await e().initProduct({name:n,baseUrl:i.baseUrl,description:i.description,displayName:i.displayName}),a=t.opts().format;if(et(a)==="json"){console.log(J(o));return}ee(`Created product "${o.product.name}" (DRAFT)`),console.log(),o.repo&&(console.log(` Repository: ${o.repo.htmlUrl}`),console.log(` Clone: git clone ${o.repo.cloneUrl}`),console.log()),console.log(" Next steps:"),console.log(" 1. Clone the repository"),console.log(" 2. Read AGENTS.md for the full configuration reference"),console.log(" 3. Edit product.yaml \u2014 add your base URL, plans, and meters"),console.log(" 4. Push to main \u2014 a valid config goes live automatically"),console.log(),o.agent.agentsMdUrl&&console.log(` Docs: ${o.agent.agentsMdUrl}`)})}var Op=Mr(On(),1);import{readFileSync as mA,existsSync as pA}from"node:fs";import{execSync as gA}from"node:child_process";import{resolve as hA}from"node:path";var m={};Ve(m,{$brand:()=>bo,$input:()=>Fd,$output:()=>qd,NEVER:()=>xu,TimePrecision:()=>Jd,ZodAny:()=>Um,ZodArray:()=>Mm,ZodBase64:()=>Ka,ZodBase64URL:()=>Ja,ZodBigInt:()=>zr,ZodBigIntFormat:()=>Ga,ZodBoolean:()=>Tr,ZodCIDRv4:()=>Va,ZodCIDRv6:()=>Ba,ZodCUID:()=>Ua,ZodCUID2:()=>Ra,ZodCatch:()=>up,ZodCodec:()=>is,ZodCustom:()=>oi,ZodCustomStringFormat:()=>Ar,ZodDate:()=>ei,ZodDefault:()=>np,ZodDiscriminatedUnion:()=>Fm,ZodE164:()=>Ha,ZodEmail:()=>ja,ZodEmoji:()=>Na,ZodEnum:()=>Or,ZodError:()=>y0,ZodExactOptional:()=>ep,ZodFile:()=>Xm,ZodFirstPartyTypeKind:()=>$p,ZodFunction:()=>yp,ZodGUID:()=>Wn,ZodIPv4:()=>qa,ZodIPv6:()=>Fa,ZodISODate:()=>Pa,ZodISODateTime:()=>Oa,ZodISODuration:()=>Ea,ZodISOTime:()=>Aa,ZodIntersection:()=>Vm,ZodIssueCode:()=>_0,ZodJWT:()=>Wa,ZodKSUID:()=>Ma,ZodLazy:()=>gp,ZodLiteral:()=>Ym,ZodMAC:()=>Em,ZodMap:()=>Wm,ZodNaN:()=>dp,ZodNanoID:()=>Da,ZodNever:()=>Lm,ZodNonOptional:()=>rs,ZodNull:()=>Nm,ZodNullable:()=>rp,ZodNumber:()=>Er,ZodNumberFormat:()=>Lt,ZodObject:()=>ri,ZodOptional:()=>ts,ZodPipe:()=>ns,ZodPrefault:()=>op,ZodPromise:()=>vp,ZodReadonly:()=>fp,ZodRealError:()=>he,ZodRecord:()=>ii,ZodSet:()=>Gm,ZodString:()=>Pr,ZodStringFormat:()=>F,ZodSuccess:()=>cp,ZodSymbol:()=>Cm,ZodTemplateLiteral:()=>pp,ZodTransform:()=>Qm,ZodTuple:()=>Km,ZodType:()=>j,ZodULID:()=>La,ZodURL:()=>Qn,ZodUUID:()=>Me,ZodUndefined:()=>jm,ZodUnion:()=>ni,ZodUnknown:()=>Rm,ZodVoid:()=>Zm,ZodXID:()=>Za,ZodXor:()=>qm,_ZodString:()=>Ca,_default:()=>ip,_function:()=>j_,any:()=>f_,array:()=>ti,base64:()=>Wb,base64url:()=>Gb,bigint:()=>s_,boolean:()=>zm,catch:()=>lp,check:()=>N_,cidrv4:()=>Jb,cidrv6:()=>Hb,clone:()=>ue,codec:()=>T_,coerce:()=>wp,config:()=>G,core:()=>Ge,cuid:()=>Lb,cuid2:()=>Zb,custom:()=>D_,date:()=>p_,decode:()=>km,decodeAsync:()=>Sm,describe:()=>U_,discriminatedUnion:()=>__,e164:()=>Yb,email:()=>Ab,emoji:()=>Ub,encode:()=>wm,encodeAsync:()=>xm,endsWith:()=>vr,enum:()=>Qa,exactOptional:()=>tp,file:()=>O_,flattenError:()=>Dn,float32:()=>n_,float64:()=>i_,formatError:()=>Un,fromJSONSchema:()=>V_,function:()=>j_,getErrorMap:()=>w0,globalRegistry:()=>oe,gt:()=>Le,gte:()=>le,guid:()=>Eb,hash:()=>r_,hex:()=>t_,hostname:()=>e_,httpUrl:()=>Db,includes:()=>gr,instanceof:()=>L_,int:()=>za,int32:()=>o_,int64:()=>c_,intersection:()=>Bm,ipv4:()=>Vb,ipv6:()=>Kb,iso:()=>Ir,json:()=>M_,jwt:()=>Xb,keyof:()=>g_,ksuid:()=>Fb,lazy:()=>hp,length:()=>Ut,literal:()=>I_,locales:()=>Bn,looseObject:()=>y_,looseRecord:()=>w_,lowercase:()=>mr,lt:()=>Re,lte:()=>be,mac:()=>Bb,map:()=>k_,maxLength:()=>Dt,maxSize:()=>vt,meta:()=>R_,mime:()=>yr,minLength:()=>We,minSize:()=>Ze,multipleOf:()=>ht,nan:()=>E_,nanoid:()=>Rb,nativeEnum:()=>S_,negative:()=>va,never:()=>Ya,nonnegative:()=>ba,nonoptional:()=>sp,nonpositive:()=>ya,normalize:()=>br,null:()=>Dm,nullable:()=>Yn,nullish:()=>P_,number:()=>Tm,object:()=>h_,optional:()=>Gn,overwrite:()=>ze,parse:()=>ym,parseAsync:()=>bm,partialRecord:()=>$_,pipe:()=>Xn,positive:()=>ha,prefault:()=>ap,preprocess:()=>q_,prettifyError:()=>Du,promise:()=>C_,property:()=>_a,readonly:()=>mp,record:()=>Hm,refine:()=>bp,regex:()=>fr,regexes:()=>Se,registry:()=>Wo,safeDecode:()=>Om,safeDecodeAsync:()=>Am,safeEncode:()=>Im,safeEncodeAsync:()=>Pm,safeParse:()=>_m,safeParseAsync:()=>$m,set:()=>x_,setErrorMap:()=>$0,size:()=>Nt,slugify:()=>kr,startsWith:()=>hr,strictObject:()=>v_,string:()=>Ta,stringFormat:()=>Qb,stringbool:()=>Z_,success:()=>A_,superRefine:()=>_p,symbol:()=>l_,templateLiteral:()=>z_,toJSONSchema:()=>xa,toLowerCase:()=>$r,toUpperCase:()=>wr,transform:()=>es,treeifyError:()=>Nu,trim:()=>_r,tuple:()=>Jm,uint32:()=>a_,uint64:()=>u_,ulid:()=>Mb,undefined:()=>d_,union:()=>Xa,unknown:()=>Rt,uppercase:()=>pr,url:()=>Nb,util:()=>w,uuid:()=>Tb,uuidv4:()=>zb,uuidv6:()=>Cb,uuidv7:()=>jb,void:()=>m_,xid:()=>qb,xor:()=>b_});var Ge={};Ve(Ge,{$ZodAny:()=>ld,$ZodArray:()=>gd,$ZodAsyncError:()=>Te,$ZodBase64:()=>ed,$ZodBase64URL:()=>td,$ZodBigInt:()=>qo,$ZodBigIntFormat:()=>ad,$ZodBoolean:()=>Mn,$ZodCIDRv4:()=>Yl,$ZodCIDRv6:()=>Xl,$ZodCUID:()=>Ll,$ZodCUID2:()=>Zl,$ZodCatch:()=>Cd,$ZodCheck:()=>V,$ZodCheckBigIntFormat:()=>gl,$ZodCheckEndsWith:()=>Ol,$ZodCheckGreaterThan:()=>No,$ZodCheckIncludes:()=>Sl,$ZodCheckLengthEquals:()=>$l,$ZodCheckLessThan:()=>jo,$ZodCheckLowerCase:()=>kl,$ZodCheckMaxLength:()=>bl,$ZodCheckMaxSize:()=>hl,$ZodCheckMimeType:()=>Al,$ZodCheckMinLength:()=>_l,$ZodCheckMinSize:()=>vl,$ZodCheckMultipleOf:()=>ml,$ZodCheckNumberFormat:()=>pl,$ZodCheckOverwrite:()=>El,$ZodCheckProperty:()=>Pl,$ZodCheckRegex:()=>wl,$ZodCheckSizeEquals:()=>yl,$ZodCheckStartsWith:()=>Il,$ZodCheckStringFormat:()=>lr,$ZodCheckUpperCase:()=>xl,$ZodCodec:()=>Fn,$ZodCustom:()=>Md,$ZodCustomStringFormat:()=>id,$ZodDate:()=>pd,$ZodDefault:()=>Ad,$ZodDiscriminatedUnion:()=>yd,$ZodE164:()=>rd,$ZodEmail:()=>Nl,$ZodEmoji:()=>Ul,$ZodEncodeError:()=>dt,$ZodEnum:()=>kd,$ZodError:()=>Nn,$ZodExactOptional:()=>Od,$ZodFile:()=>Sd,$ZodFunction:()=>Rd,$ZodGUID:()=>Cl,$ZodIPv4:()=>Hl,$ZodIPv6:()=>Wl,$ZodISODate:()=>Bl,$ZodISODateTime:()=>Vl,$ZodISODuration:()=>Jl,$ZodISOTime:()=>Kl,$ZodIntersection:()=>bd,$ZodJWT:()=>nd,$ZodKSUID:()=>Fl,$ZodLazy:()=>Zd,$ZodLiteral:()=>xd,$ZodMAC:()=>Gl,$ZodMap:()=>$d,$ZodNaN:()=>jd,$ZodNanoID:()=>Rl,$ZodNever:()=>fd,$ZodNonOptional:()=>Td,$ZodNull:()=>ud,$ZodNullable:()=>Pd,$ZodNumber:()=>Mo,$ZodNumberFormat:()=>od,$ZodObject:()=>Py,$ZodObjectJIT:()=>hd,$ZodOptional:()=>Vo,$ZodPipe:()=>Nd,$ZodPrefault:()=>Ed,$ZodPromise:()=>Ld,$ZodReadonly:()=>Dd,$ZodRealError:()=>ge,$ZodRecord:()=>_d,$ZodRegistry:()=>Ho,$ZodSet:()=>wd,$ZodString:()=>jt,$ZodStringFormat:()=>q,$ZodSuccess:()=>zd,$ZodSymbol:()=>sd,$ZodTemplateLiteral:()=>Ud,$ZodTransform:()=>Id,$ZodTuple:()=>Fo,$ZodType:()=>z,$ZodULID:()=>Ml,$ZodURL:()=>Dl,$ZodUUID:()=>jl,$ZodUndefined:()=>cd,$ZodUnion:()=>qn,$ZodUnknown:()=>dd,$ZodVoid:()=>md,$ZodXID:()=>ql,$ZodXor:()=>vd,$brand:()=>bo,$constructor:()=>g,$input:()=>Fd,$output:()=>qd,Doc:()=>Zn,JSONSchema:()=>Ob,JSONSchemaGenerator:()=>Sa,NEVER:()=>xu,TimePrecision:()=>Jd,_any:()=>gf,_array:()=>wf,_base64:()=>fa,_base64url:()=>ma,_bigint:()=>cf,_boolean:()=>af,_catch:()=>l0,_check:()=>Ib,_cidrv4:()=>la,_cidrv6:()=>da,_coercedBigint:()=>uf,_coercedBoolean:()=>sf,_coercedDate:()=>_f,_coercedNumber:()=>Qd,_coercedString:()=>Bd,_cuid:()=>na,_cuid2:()=>ia,_custom:()=>xf,_date:()=>bf,_decode:()=>So,_decodeAsync:()=>Oo,_default:()=>s0,_discriminatedUnion:()=>WP,_e164:()=>pa,_email:()=>Go,_emoji:()=>ta,_encode:()=>xo,_encodeAsync:()=>Io,_endsWith:()=>vr,_enum:()=>t0,_file:()=>kf,_float32:()=>tf,_float64:()=>rf,_gt:()=>Le,_gte:()=>le,_guid:()=>Kn,_includes:()=>gr,_int:()=>ef,_int32:()=>nf,_int64:()=>lf,_intersection:()=>GP,_ipv4:()=>ca,_ipv6:()=>ua,_isoDate:()=>Wd,_isoDateTime:()=>Hd,_isoDuration:()=>Yd,_isoTime:()=>Gd,_jwt:()=>ga,_ksuid:()=>sa,_lazy:()=>p0,_length:()=>Ut,_literal:()=>n0,_lowercase:()=>mr,_lt:()=>Re,_lte:()=>be,_mac:()=>Kd,_map:()=>QP,_max:()=>be,_maxLength:()=>Dt,_maxSize:()=>vt,_mime:()=>yr,_min:()=>le,_minLength:()=>We,_minSize:()=>Ze,_multipleOf:()=>ht,_nan:()=>$f,_nanoid:()=>ra,_nativeEnum:()=>r0,_negative:()=>va,_never:()=>vf,_nonnegative:()=>ba,_nonoptional:()=>c0,_nonpositive:()=>ya,_normalize:()=>br,_null:()=>pf,_nullable:()=>a0,_number:()=>Xd,_optional:()=>o0,_overwrite:()=>ze,_parse:()=>ar,_parseAsync:()=>sr,_pipe:()=>d0,_positive:()=>ha,_promise:()=>g0,_property:()=>_a,_readonly:()=>f0,_record:()=>XP,_refine:()=>Sf,_regex:()=>fr,_safeDecode:()=>Ao,_safeDecodeAsync:()=>To,_safeEncode:()=>Po,_safeEncodeAsync:()=>Eo,_safeParse:()=>cr,_safeParseAsync:()=>ur,_set:()=>e0,_size:()=>Nt,_slugify:()=>kr,_startsWith:()=>hr,_string:()=>Vd,_stringFormat:()=>xr,_stringbool:()=>Af,_success:()=>u0,_superRefine:()=>If,_symbol:()=>ff,_templateLiteral:()=>m0,_toLowerCase:()=>$r,_toUpperCase:()=>wr,_transform:()=>i0,_trim:()=>_r,_tuple:()=>YP,_uint32:()=>of,_uint64:()=>df,_ulid:()=>oa,_undefined:()=>mf,_union:()=>JP,_unknown:()=>hf,_uppercase:()=>pr,_url:()=>Jn,_uuid:()=>Yo,_uuidv4:()=>Xo,_uuidv6:()=>Qo,_uuidv7:()=>ea,_void:()=>yf,_xid:()=>aa,_xor:()=>HP,clone:()=>ue,config:()=>G,createStandardJSONSchemaMethod:()=>Sr,createToJSONSchemaMethod:()=>Ef,decode:()=>yO,decodeAsync:()=>_O,describe:()=>Of,encode:()=>vO,encodeAsync:()=>bO,extractDefs:()=>bt,finalize:()=>_t,flattenError:()=>Dn,formatError:()=>Un,globalConfig:()=>Pn,globalRegistry:()=>oe,initializeContext:()=>yt,isValidBase64:()=>Ql,isValidBase64URL:()=>xy,isValidJWT:()=>Sy,locales:()=>Bn,meta:()=>Pf,parse:()=>wo,parseAsync:()=>ko,prettifyError:()=>Du,process:()=>L,regexes:()=>Se,registry:()=>Wo,safeDecode:()=>wO,safeDecodeAsync:()=>xO,safeEncode:()=>$O,safeEncodeAsync:()=>kO,safeParse:()=>Uu,safeParseAsync:()=>Ru,toDotPath:()=>ay,toJSONSchema:()=>xa,treeifyError:()=>Nu,util:()=>w,version:()=>Tl});var xu=Object.freeze({status:"aborted"});function g(t,e,n){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(t))return;s._zod.traits.add(t),e(s,c);let u=a.prototype,l=Object.keys(u);for(let d=0;d<l.length;d++){let f=l[d];f in s||(s[f]=u[f].bind(s))}}let r=n?.Parent??Object;class o extends r{}Object.defineProperty(o,"name",{value:t});function a(s){var c;let u=n?.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=>n?.Parent&&s instanceof n.Parent?!0:s?._zod?.traits?.has(t)}),Object.defineProperty(a,"name",{value:t}),a}var bo=Symbol("zod_brand"),Te=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},dt=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}},Pn={};function G(t){return t&&Object.assign(Pn,t),Pn}var w={};Ve(w,{BIGINT_FORMAT_RANGES:()=>ju,Class:()=>Iu,NUMBER_FORMAT_RANGES:()=>Cu,aborted:()=>gt,allowsEval:()=>Au,assert:()=>WI,assertEqual:()=>BI,assertIs:()=>JI,assertNever:()=>HI,assertNotEqual:()=>KI,assignProp:()=>mt,base64ToUint8Array:()=>ny,base64urlToUint8Array:()=>fO,cached:()=>ir,captureStackTrace:()=>$o,cleanEnum:()=>dO,cleanRegex:()=>Tn,clone:()=>ue,cloneDef:()=>YI,createTransparentProxy:()=>nO,defineLazy:()=>N,esc:()=>_o,escapeRegex:()=>xe,extend:()=>aO,finalizeIssue:()=>pe,floatSafeRemainder:()=>Ou,getElementAtPath:()=>XI,getEnumValues:()=>En,getLengthableOrigin:()=>jn,getParsedType:()=>rO,getSizableOrigin:()=>Cn,hexToUint8Array:()=>pO,isObject:()=>zt,isPlainObject:()=>pt,issue:()=>or,joinValues:()=>v,jsonStringifyReplacer:()=>nr,merge:()=>cO,mergeDefs:()=>He,normalizeParams:()=>k,nullish:()=>ft,numKeys:()=>tO,objectClone:()=>GI,omit:()=>oO,optionalKeys:()=>zu,parsedType:()=>$,partial:()=>uO,pick:()=>iO,prefixIssues:()=>ye,primitiveTypes:()=>Tu,promiseAllObject:()=>QI,propertyKeyTypes:()=>zn,randomString:()=>eO,required:()=>lO,safeExtend:()=>sO,shallowClone:()=>Eu,slugify:()=>Pu,stringifyPrimitive:()=>_,uint8ArrayToBase64:()=>iy,uint8ArrayToBase64url:()=>mO,uint8ArrayToHex:()=>gO,unwrapMessage:()=>An});function BI(t){return t}function KI(t){return t}function JI(t){}function HI(t){throw new Error("Unexpected value in exhaustive check")}function WI(t){}function En(t){let e=Object.values(t).filter(i=>typeof i=="number");return Object.entries(t).filter(([i,r])=>e.indexOf(+i)===-1).map(([i,r])=>r)}function v(t,e="|"){return t.map(n=>_(n)).join(e)}function nr(t,e){return typeof e=="bigint"?e.toString():e}function ir(t){return{get value(){{let n=t();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function ft(t){return t==null}function Tn(t){let e=t.startsWith("^")?1:0,n=t.endsWith("$")?t.length-1:t.length;return t.slice(e,n)}function Ou(t,e){let n=(t.toString().split(".")[1]||"").length,i=e.toString(),r=(i.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(i)){let c=i.match(/\d?e-(\d?)/);c?.[1]&&(r=Number.parseInt(c[1]))}let o=n>r?n:r,a=Number.parseInt(t.toFixed(o).replace(".","")),s=Number.parseInt(e.toFixed(o).replace(".",""));return a%s/10**o}var ry=Symbol("evaluating");function N(t,e,n){let i;Object.defineProperty(t,e,{get(){if(i!==ry)return i===void 0&&(i=ry,i=n()),i},set(r){Object.defineProperty(t,e,{value:r})},configurable:!0})}function GI(t){return Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t))}function mt(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0})}function He(...t){let e={};for(let n of t){let i=Object.getOwnPropertyDescriptors(n);Object.assign(e,i)}return Object.defineProperties({},e)}function YI(t){return He(t._zod.def)}function XI(t,e){return e?e.reduce((n,i)=>n?.[i],t):t}function QI(t){let e=Object.keys(t),n=e.map(i=>t[i]);return Promise.all(n).then(i=>{let r={};for(let o=0;o<e.length;o++)r[e[o]]=i[o];return r})}function eO(t=10){let e="abcdefghijklmnopqrstuvwxyz",n="";for(let i=0;i<t;i++)n+=e[Math.floor(Math.random()*e.length)];return n}function _o(t){return JSON.stringify(t)}function Pu(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var $o="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function zt(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}var Au=ir(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});function pt(t){if(zt(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let n=e.prototype;return!(zt(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Eu(t){return pt(t)?{...t}:Array.isArray(t)?[...t]:t}function tO(t){let e=0;for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}var rO=t=>{let e=typeof t;switch(e){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(t)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(t)?"array":t===null?"null":t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?"promise":typeof Map<"u"&&t instanceof Map?"map":typeof Set<"u"&&t instanceof Set?"set":typeof Date<"u"&&t instanceof Date?"date":typeof File<"u"&&t instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${e}`)}},zn=new Set(["string","number","symbol"]),Tu=new Set(["string","number","bigint","boolean","symbol","undefined"]);function xe(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ue(t,e,n){let i=new t._zod.constr(e??t._zod.def);return(!e||n?.parent)&&(i._zod.parent=t),i}function k(t){let e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function nO(t){let e;return new Proxy({},{get(n,i,r){return e??(e=t()),Reflect.get(e,i,r)},set(n,i,r,o){return e??(e=t()),Reflect.set(e,i,r,o)},has(n,i){return e??(e=t()),Reflect.has(e,i)},deleteProperty(n,i){return e??(e=t()),Reflect.deleteProperty(e,i)},ownKeys(n){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(n,i){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,i)},defineProperty(n,i,r){return e??(e=t()),Reflect.defineProperty(e,i,r)}})}function _(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function zu(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}var Cu={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]},ju={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function iO(t,e){let n=t._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=He(t._zod.def,{get shape(){let a={};for(let s in e){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);e[s]&&(a[s]=n.shape[s])}return mt(this,"shape",a),a},checks:[]});return ue(t,o)}function oO(t,e){let n=t._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=He(t._zod.def,{get shape(){let a={...t._zod.def.shape};for(let s in e){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);e[s]&&delete a[s]}return mt(this,"shape",a),a},checks:[]});return ue(t,o)}function aO(t,e){if(!pt(e))throw new Error("Invalid input to extend: expected a plain object");let n=t._zod.def.checks;if(n&&n.length>0){let o=t._zod.def.shape;for(let a in e)if(Object.getOwnPropertyDescriptor(o,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let r=He(t._zod.def,{get shape(){let o={...t._zod.def.shape,...e};return mt(this,"shape",o),o}});return ue(t,r)}function sO(t,e){if(!pt(e))throw new Error("Invalid input to safeExtend: expected a plain object");let n=He(t._zod.def,{get shape(){let i={...t._zod.def.shape,...e};return mt(this,"shape",i),i}});return ue(t,n)}function cO(t,e){let n=He(t._zod.def,{get shape(){let i={...t._zod.def.shape,...e._zod.def.shape};return mt(this,"shape",i),i},get catchall(){return e._zod.def.catchall},checks:[]});return ue(t,n)}function uO(t,e,n){let r=e._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=He(e._zod.def,{get shape(){let s=e._zod.def.shape,c={...s};if(n)for(let u in n){if(!(u in s))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(c[u]=t?new t({type:"optional",innerType:s[u]}):s[u])}else for(let u in s)c[u]=t?new t({type:"optional",innerType:s[u]}):s[u];return mt(this,"shape",c),c},checks:[]});return ue(e,a)}function lO(t,e,n){let i=He(e._zod.def,{get shape(){let r=e._zod.def.shape,o={...r};if(n)for(let a in n){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(o[a]=new t({type:"nonoptional",innerType:r[a]}))}else for(let a in r)o[a]=new t({type:"nonoptional",innerType:r[a]});return mt(this,"shape",o),o}});return ue(e,i)}function gt(t,e=0){if(t.aborted===!0)return!0;for(let n=e;n<t.issues.length;n++)if(t.issues[n]?.continue!==!0)return!0;return!1}function ye(t,e){return e.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(t),n})}function An(t){return typeof t=="string"?t:t?.message}function pe(t,e,n){let i={...t,path:t.path??[]};if(!t.message){let r=An(t.inst?._zod.def?.error?.(t))??An(e?.error?.(t))??An(n.customError?.(t))??An(n.localeError?.(t))??"Invalid input";i.message=r}return delete i.inst,delete i.continue,e?.reportInput||delete i.input,i}function Cn(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function jn(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function $(t){let e=typeof t;switch(e){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";let n=t;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return e}function or(...t){let[e,n,i]=t;return typeof e=="string"?{message:e,code:"custom",input:n,inst:i}:{...e}}function dO(t){return Object.entries(t).filter(([e,n])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function ny(t){let e=atob(t),n=new Uint8Array(e.length);for(let i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return n}function iy(t){let e="";for(let n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return btoa(e)}function fO(t){let e=t.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-e.length%4)%4);return ny(e+n)}function mO(t){return iy(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function pO(t){let e=t.replace(/^0x/,"");if(e.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(e.length/2);for(let i=0;i<e.length;i+=2)n[i/2]=Number.parseInt(e.slice(i,i+2),16);return n}function gO(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}var Iu=class{constructor(...e){}};var oy=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),t.message=JSON.stringify(e,nr,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},Nn=g("$ZodError",oy),ge=g("$ZodError",oy,{Parent:Error});function Dn(t,e=n=>n.message){let n={},i=[];for(let r of t.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(e(r))):i.push(e(r));return{formErrors:i,fieldErrors:n}}function Un(t,e=n=>n.message){let n={_errors:[]},i=r=>{for(let o of r.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(a=>i({issues:a}));else if(o.code==="invalid_key")i({issues:o.issues});else if(o.code==="invalid_element")i({issues:o.issues});else if(o.path.length===0)n._errors.push(e(o));else{let a=n,s=0;for(;s<o.path.length;){let c=o.path[s];s===o.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(e(o))):a[c]=a[c]||{_errors:[]},a=a[c],s++}}};return i(t),n}function Nu(t,e=n=>n.message){let n={errors:[]},i=(r,o=[])=>{var a,s;for(let c of r.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(u=>i({issues:u},c.path));else if(c.code==="invalid_key")i({issues:c.issues},c.path);else if(c.code==="invalid_element")i({issues:c.issues},c.path);else{let u=[...o,...c.path];if(u.length===0){n.errors.push(e(c));continue}let l=n,d=0;for(;d<u.length;){let f=u[d],p=d===u.length-1;typeof f=="string"?(l.properties??(l.properties={}),(a=l.properties)[f]??(a[f]={errors:[]}),l=l.properties[f]):(l.items??(l.items=[]),(s=l.items)[f]??(s[f]={errors:[]}),l=l.items[f]),p&&l.errors.push(e(c)),d++}}};return i(t),n}function ay(t){let e=[],n=t.map(i=>typeof i=="object"?i.key:i);for(let i of n)typeof i=="number"?e.push(`[${i}]`):typeof i=="symbol"?e.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?e.push(`[${JSON.stringify(i)}]`):(e.length&&e.push("."),e.push(i));return e.join("")}function Du(t){let e=[],n=[...t.issues].sort((i,r)=>(i.path??[]).length-(r.path??[]).length);for(let i of n)e.push(`\u2716 ${i.message}`),i.path?.length&&e.push(` \u2192 at ${ay(i.path)}`);return e.join(`
|
|
186
|
-
`)}var ar=t=>(e,n,i,r)=>{let o=i?Object.assign(i,{async:!1}):{async:!1},a=e._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new Te;if(a.issues.length){let s=new(r?.Err??t)(a.issues.map(c=>pe(c,o,G())));throw $o(s,r?.callee),s}return a.value},wo=ar(ge),sr=t=>async(e,n,i,r)=>{let o=i?Object.assign(i,{async:!0}):{async:!0},a=e._zod.run({value:n,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(r?.Err??t)(a.issues.map(c=>pe(c,o,G())));throw $o(s,r?.callee),s}return a.value},ko=sr(ge),cr=t=>(e,n,i)=>{let r=i?{...i,async:!1}:{async:!1},o=e._zod.run({value:n,issues:[]},r);if(o instanceof Promise)throw new Te;return o.issues.length?{success:!1,error:new(t??Nn)(o.issues.map(a=>pe(a,r,G())))}:{success:!0,data:o.value}},Uu=cr(ge),ur=t=>async(e,n,i)=>{let r=i?Object.assign(i,{async:!0}):{async:!0},o=e._zod.run({value:n,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new t(o.issues.map(a=>pe(a,r,G())))}:{success:!0,data:o.value}},Ru=ur(ge),xo=t=>(e,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return ar(t)(e,n,r)},vO=xo(ge),So=t=>(e,n,i)=>ar(t)(e,n,i),yO=So(ge),Io=t=>async(e,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return sr(t)(e,n,r)},bO=Io(ge),Oo=t=>async(e,n,i)=>sr(t)(e,n,i),_O=Oo(ge),Po=t=>(e,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return cr(t)(e,n,r)},$O=Po(ge),Ao=t=>(e,n,i)=>cr(t)(e,n,i),wO=Ao(ge),Eo=t=>async(e,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return ur(t)(e,n,r)},kO=Eo(ge),To=t=>async(e,n,i)=>ur(t)(e,n,i),xO=To(ge);var Se={};Ve(Se,{base64:()=>el,base64url:()=>zo,bigint:()=>al,boolean:()=>cl,browserEmail:()=>zO,cidrv4:()=>Xu,cidrv6:()=>Qu,cuid:()=>Lu,cuid2:()=>Zu,date:()=>rl,datetime:()=>il,domain:()=>NO,duration:()=>Bu,e164:()=>tl,email:()=>Ju,emoji:()=>Hu,extendedDuration:()=>SO,guid:()=>Ku,hex:()=>DO,hostname:()=>jO,html5Email:()=>AO,idnEmail:()=>TO,integer:()=>sl,ipv4:()=>Wu,ipv6:()=>Gu,ksuid:()=>Fu,lowercase:()=>dl,mac:()=>Yu,md5_base64:()=>RO,md5_base64url:()=>LO,md5_hex:()=>UO,nanoid:()=>Vu,null:()=>ul,number:()=>Co,rfc5322Email:()=>EO,sha1_base64:()=>MO,sha1_base64url:()=>qO,sha1_hex:()=>ZO,sha256_base64:()=>VO,sha256_base64url:()=>BO,sha256_hex:()=>FO,sha384_base64:()=>JO,sha384_base64url:()=>HO,sha384_hex:()=>KO,sha512_base64:()=>GO,sha512_base64url:()=>YO,sha512_hex:()=>WO,string:()=>ol,time:()=>nl,ulid:()=>Mu,undefined:()=>ll,unicodeEmail:()=>sy,uppercase:()=>fl,uuid:()=>Ct,uuid4:()=>IO,uuid6:()=>OO,uuid7:()=>PO,xid:()=>qu});var Lu=/^[cC][^\s-]{8,}$/,Zu=/^[0-9a-z]+$/,Mu=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,qu=/^[0-9a-vA-V]{20}$/,Fu=/^[A-Za-z0-9]{27}$/,Vu=/^[a-zA-Z0-9_-]{21}$/,Bu=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,SO=/^[-+]?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)?)??$/,Ku=/^([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})$/,Ct=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[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)$/,IO=Ct(4),OO=Ct(6),PO=Ct(7),Ju=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,AO=/^[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])?)*$/,EO=/^(([^<>()\[\]\\.,;:\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,}))$/,sy=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,TO=sy,zO=/^[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])?)*$/,CO="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Hu(){return new RegExp(CO,"u")}var Wu=/^(?:(?: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])$/,Gu=/^(([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}|:))$/,Yu=t=>{let e=xe(t??":");return new RegExp(`^(?:[0-9A-F]{2}${e}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${e}){5}[0-9a-f]{2}$`)},Xu=/^((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])$/,Qu=/^(([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])$/,el=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,zo=/^[A-Za-z0-9_-]*$/,jO=/^(?=.{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])?)*\.?$/,NO=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,tl=/^\+[1-9]\d{6,14}$/,cy="(?:(?:\\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])))",rl=new RegExp(`^${cy}$`);function uy(t){let e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function nl(t){return new RegExp(`^${uy(t)}$`)}function il(t){let e=uy({precision:t.precision}),n=["Z"];t.local&&n.push(""),t.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${e}(?:${n.join("|")})`;return new RegExp(`^${cy}T(?:${i})$`)}var ol=t=>{let e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},al=/^-?\d+n?$/,sl=/^-?\d+$/,Co=/^-?\d+(?:\.\d+)?$/,cl=/^(?:true|false)$/i,ul=/^null$/i;var ll=/^undefined$/i;var dl=/^[^A-Z]*$/,fl=/^[^a-z]*$/,DO=/^[0-9a-fA-F]*$/;function Rn(t,e){return new RegExp(`^[A-Za-z0-9+/]{${t}}${e}$`)}function Ln(t){return new RegExp(`^[A-Za-z0-9_-]{${t}}$`)}var UO=/^[0-9a-fA-F]{32}$/,RO=Rn(22,"=="),LO=Ln(22),ZO=/^[0-9a-fA-F]{40}$/,MO=Rn(27,"="),qO=Ln(27),FO=/^[0-9a-fA-F]{64}$/,VO=Rn(43,"="),BO=Ln(43),KO=/^[0-9a-fA-F]{96}$/,JO=Rn(64,""),HO=Ln(64),WO=/^[0-9a-fA-F]{128}$/,GO=Rn(86,"=="),YO=Ln(86);var V=g("$ZodCheck",(t,e)=>{var n;t._zod??(t._zod={}),t._zod.def=e,(n=t._zod).onattach??(n.onattach=[])}),dy={number:"number",bigint:"bigint",object:"date"},jo=g("$ZodCheckLessThan",(t,e)=>{V.init(t,e);let n=dy[typeof e.value];t._zod.onattach.push(i=>{let r=i._zod.bag,o=(e.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value<o&&(e.inclusive?r.maximum=e.value:r.exclusiveMaximum=e.value)}),t._zod.check=i=>{(e.inclusive?i.value<=e.value:i.value<e.value)||i.issues.push({origin:n,code:"too_big",maximum:typeof e.value=="object"?e.value.getTime():e.value,input:i.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),No=g("$ZodCheckGreaterThan",(t,e)=>{V.init(t,e);let n=dy[typeof e.value];t._zod.onattach.push(i=>{let r=i._zod.bag,o=(e.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>o&&(e.inclusive?r.minimum=e.value:r.exclusiveMinimum=e.value)}),t._zod.check=i=>{(e.inclusive?i.value>=e.value:i.value>e.value)||i.issues.push({origin:n,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:i.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),ml=g("$ZodCheckMultipleOf",(t,e)=>{V.init(t,e),t._zod.onattach.push(n=>{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=e.value)}),t._zod.check=n=>{if(typeof n.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%e.value===BigInt(0):Ou(n.value,e.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:e.value,input:n.value,inst:t,continue:!e.abort})}}),pl=g("$ZodCheckNumberFormat",(t,e)=>{V.init(t,e),e.format=e.format||"float64";let n=e.format?.includes("int"),i=n?"int":"number",[r,o]=Cu[e.format];t._zod.onattach.push(a=>{let s=a._zod.bag;s.format=e.format,s.minimum=r,s.maximum=o,n&&(s.pattern=sl)}),t._zod.check=a=>{let s=a.value;if(n){if(!Number.isInteger(s)){a.issues.push({expected:i,format:e.format,code:"invalid_type",continue:!1,input:s,inst:t});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:t,origin:i,inclusive:!0,continue:!e.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:i,inclusive:!0,continue:!e.abort});return}}s<r&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:r,inclusive:!0,inst:t,continue:!e.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:!0,inst:t,continue:!e.abort})}}),gl=g("$ZodCheckBigIntFormat",(t,e)=>{V.init(t,e);let[n,i]=ju[e.format];t._zod.onattach.push(r=>{let o=r._zod.bag;o.format=e.format,o.minimum=n,o.maximum=i}),t._zod.check=r=>{let o=r.value;o<n&&r.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:!0,inst:t,continue:!e.abort}),o>i&&r.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:!0,inst:t,continue:!e.abort})}}),hl=g("$ZodCheckMaxSize",(t,e)=>{var n;V.init(t,e),(n=t._zod.def).when??(n.when=i=>{let r=i.value;return!ft(r)&&r.size!==void 0}),t._zod.onattach.push(i=>{let r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<r&&(i._zod.bag.maximum=e.maximum)}),t._zod.check=i=>{let r=i.value;r.size<=e.maximum||i.issues.push({origin:Cn(r),code:"too_big",maximum:e.maximum,inclusive:!0,input:r,inst:t,continue:!e.abort})}}),vl=g("$ZodCheckMinSize",(t,e)=>{var n;V.init(t,e),(n=t._zod.def).when??(n.when=i=>{let r=i.value;return!ft(r)&&r.size!==void 0}),t._zod.onattach.push(i=>{let r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>r&&(i._zod.bag.minimum=e.minimum)}),t._zod.check=i=>{let r=i.value;r.size>=e.minimum||i.issues.push({origin:Cn(r),code:"too_small",minimum:e.minimum,inclusive:!0,input:r,inst:t,continue:!e.abort})}}),yl=g("$ZodCheckSizeEquals",(t,e)=>{var n;V.init(t,e),(n=t._zod.def).when??(n.when=i=>{let r=i.value;return!ft(r)&&r.size!==void 0}),t._zod.onattach.push(i=>{let r=i._zod.bag;r.minimum=e.size,r.maximum=e.size,r.size=e.size}),t._zod.check=i=>{let r=i.value,o=r.size;if(o===e.size)return;let a=o>e.size;i.issues.push({origin:Cn(r),...a?{code:"too_big",maximum:e.size}:{code:"too_small",minimum:e.size},inclusive:!0,exact:!0,input:i.value,inst:t,continue:!e.abort})}}),bl=g("$ZodCheckMaxLength",(t,e)=>{var n;V.init(t,e),(n=t._zod.def).when??(n.when=i=>{let r=i.value;return!ft(r)&&r.length!==void 0}),t._zod.onattach.push(i=>{let r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<r&&(i._zod.bag.maximum=e.maximum)}),t._zod.check=i=>{let r=i.value;if(r.length<=e.maximum)return;let a=jn(r);i.issues.push({origin:a,code:"too_big",maximum:e.maximum,inclusive:!0,input:r,inst:t,continue:!e.abort})}}),_l=g("$ZodCheckMinLength",(t,e)=>{var n;V.init(t,e),(n=t._zod.def).when??(n.when=i=>{let r=i.value;return!ft(r)&&r.length!==void 0}),t._zod.onattach.push(i=>{let r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>r&&(i._zod.bag.minimum=e.minimum)}),t._zod.check=i=>{let r=i.value;if(r.length>=e.minimum)return;let a=jn(r);i.issues.push({origin:a,code:"too_small",minimum:e.minimum,inclusive:!0,input:r,inst:t,continue:!e.abort})}}),$l=g("$ZodCheckLengthEquals",(t,e)=>{var n;V.init(t,e),(n=t._zod.def).when??(n.when=i=>{let r=i.value;return!ft(r)&&r.length!==void 0}),t._zod.onattach.push(i=>{let r=i._zod.bag;r.minimum=e.length,r.maximum=e.length,r.length=e.length}),t._zod.check=i=>{let r=i.value,o=r.length;if(o===e.length)return;let a=jn(r),s=o>e.length;i.issues.push({origin:a,...s?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:i.value,inst:t,continue:!e.abort})}}),lr=g("$ZodCheckStringFormat",(t,e)=>{var n,i;V.init(t,e),t._zod.onattach.push(r=>{let o=r._zod.bag;o.format=e.format,e.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(e.pattern))}),e.pattern?(n=t._zod).check??(n.check=r=>{e.pattern.lastIndex=0,!e.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:e.format,input:r.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(i=t._zod).check??(i.check=()=>{})}),wl=g("$ZodCheckRegex",(t,e)=>{lr.init(t,e),t._zod.check=n=>{e.pattern.lastIndex=0,!e.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),kl=g("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=dl),lr.init(t,e)}),xl=g("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=fl),lr.init(t,e)}),Sl=g("$ZodCheckIncludes",(t,e)=>{V.init(t,e);let n=xe(e.includes),i=new RegExp(typeof e.position=="number"?`^.{${e.position}}${n}`:n);e.pattern=i,t._zod.onattach.push(r=>{let o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),t._zod.check=r=>{r.value.includes(e.includes,e.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:r.value,inst:t,continue:!e.abort})}}),Il=g("$ZodCheckStartsWith",(t,e)=>{V.init(t,e);let n=new RegExp(`^${xe(e.prefix)}.*`);e.pattern??(e.pattern=n),t._zod.onattach.push(i=>{let r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),t._zod.check=i=>{i.value.startsWith(e.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:i.value,inst:t,continue:!e.abort})}}),Ol=g("$ZodCheckEndsWith",(t,e)=>{V.init(t,e);let n=new RegExp(`.*${xe(e.suffix)}$`);e.pattern??(e.pattern=n),t._zod.onattach.push(i=>{let r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),t._zod.check=i=>{i.value.endsWith(e.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:i.value,inst:t,continue:!e.abort})}});function ly(t,e,n){t.issues.length&&e.issues.push(...ye(n,t.issues))}var Pl=g("$ZodCheckProperty",(t,e)=>{V.init(t,e),t._zod.check=n=>{let i=e.schema._zod.run({value:n.value[e.property],issues:[]},{});if(i instanceof Promise)return i.then(r=>ly(r,n,e.property));ly(i,n,e.property)}}),Al=g("$ZodCheckMimeType",(t,e)=>{V.init(t,e);let n=new Set(e.mime);t._zod.onattach.push(i=>{i._zod.bag.mime=e.mime}),t._zod.check=i=>{n.has(i.value.type)||i.issues.push({code:"invalid_value",values:e.mime,input:i.value.type,inst:t,continue:!e.abort})}}),El=g("$ZodCheckOverwrite",(t,e)=>{V.init(t,e),t._zod.check=n=>{n.value=e.tx(n.value)}});var Zn=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let i=e.split(`
|
|
187
|
-
`).filter(a=>a),r=Math.min(...i.map(a=>a.length-a.trimStart().length)),o=i.map(a=>a.slice(r)).map(a=>" ".repeat(this.indent*2)+a);for(let a of o)this.content.push(a)}compile(){let
|
|
188
|
-
`))}};var Tl={major:4,minor:3,patch:6};var z=g("$ZodType",(t,e)=>{var n;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=Tl;let i=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&i.unshift(t);for(let r of i)for(let o of r._zod.onattach)o(t);if(i.length===0)(n=t._zod).deferred??(n.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let r=(a,s,c)=>{let u=gt(a),l;for(let d of s){if(d._zod.def.when){if(!d._zod.def.when(a))continue}else if(u)continue;let f=a.issues.length,p=d._zod.check(a);if(p instanceof Promise&&c?.async===!1)throw new Te;if(l||p instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await p,a.issues.length!==f&&(u||(u=gt(a,f)))});else{if(a.issues.length===f)continue;u||(u=gt(a,f))}}return l?l.then(()=>a):a},o=(a,s,c)=>{if(gt(a))return a.aborted=!0,a;let u=r(s,i,c);if(u instanceof Promise){if(c.async===!1)throw new Te;return u.then(l=>t._zod.parse(l,c))}return t._zod.parse(u,c)};t._zod.run=(a,s)=>{if(s.skipChecks)return t._zod.parse(a,s);if(s.direction==="backward"){let u=t._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=t._zod.parse(a,s);if(c instanceof Promise){if(s.async===!1)throw new Te;return c.then(u=>r(u,i,s))}return r(c,i,s)}}N(t,"~standard",()=>({validate:r=>{try{let o=Uu(t,r);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return Ru(t,r).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),jt=g("$ZodString",(t,e)=>{z.init(t,e),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??ol(t._zod.bag),t._zod.parse=(n,i)=>{if(e.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:t}),n}}),q=g("$ZodStringFormat",(t,e)=>{lr.init(t,e),jt.init(t,e)}),Cl=g("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=Ku),q.init(t,e)}),jl=g("$ZodUUID",(t,e)=>{if(e.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(i===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=Ct(i))}else e.pattern??(e.pattern=Ct());q.init(t,e)}),Nl=g("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=Ju),q.init(t,e)}),Dl=g("$ZodURL",(t,e)=>{q.init(t,e),t._zod.check=n=>{try{let i=n.value.trim(),r=new URL(i);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(r.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:n.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:n.value,inst:t,continue:!e.abort})),e.normalize?n.value=r.href:n.value=i;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:t,continue:!e.abort})}}}),Ul=g("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=Hu()),q.init(t,e)}),Rl=g("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=Vu),q.init(t,e)}),Ll=g("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=Lu),q.init(t,e)}),Zl=g("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=Zu),q.init(t,e)}),Ml=g("$ZodULID",(t,e)=>{e.pattern??(e.pattern=Mu),q.init(t,e)}),ql=g("$ZodXID",(t,e)=>{e.pattern??(e.pattern=qu),q.init(t,e)}),Fl=g("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=Fu),q.init(t,e)}),Vl=g("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=il(e)),q.init(t,e)}),Bl=g("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=rl),q.init(t,e)}),Kl=g("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=nl(e)),q.init(t,e)}),Jl=g("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=Bu),q.init(t,e)}),Hl=g("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=Wu),q.init(t,e),t._zod.bag.format="ipv4"}),Wl=g("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=Gu),q.init(t,e),t._zod.bag.format="ipv6",t._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:t,continue:!e.abort})}}}),Gl=g("$ZodMAC",(t,e)=>{e.pattern??(e.pattern=Yu(e.delimiter)),q.init(t,e),t._zod.bag.format="mac"}),Yl=g("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=Xu),q.init(t,e)}),Xl=g("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=Qu),q.init(t,e),t._zod.check=n=>{let i=n.value.split("/");try{if(i.length!==2)throw new Error;let[r,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://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:t,continue:!e.abort})}}});function Ql(t){if(t==="")return!0;if(t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}var ed=g("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=el),q.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=n=>{Ql(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:t,continue:!e.abort})}});function xy(t){if(!zo.test(t))return!1;let e=t.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=e.padEnd(Math.ceil(e.length/4)*4,"=");return Ql(n)}var td=g("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=zo),q.init(t,e),t._zod.bag.contentEncoding="base64url",t._zod.check=n=>{xy(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:t,continue:!e.abort})}}),rd=g("$ZodE164",(t,e)=>{e.pattern??(e.pattern=tl),q.init(t,e)});function Sy(t,e=null){try{let n=t.split(".");if(n.length!==3)return!1;let[i]=n;if(!i)return!1;let r=JSON.parse(atob(i));return!("typ"in r&&r?.typ!=="JWT"||!r.alg||e&&(!("alg"in r)||r.alg!==e))}catch{return!1}}var nd=g("$ZodJWT",(t,e)=>{q.init(t,e),t._zod.check=n=>{Sy(n.value,e.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:t,continue:!e.abort})}}),id=g("$ZodCustomStringFormat",(t,e)=>{q.init(t,e),t._zod.check=n=>{e.fn(n.value)||n.issues.push({code:"invalid_format",format:e.format,input:n.value,inst:t,continue:!e.abort})}}),Mo=g("$ZodNumber",(t,e)=>{z.init(t,e),t._zod.pattern=t._zod.bag.pattern??Co,t._zod.parse=(n,i)=>{if(e.coerce)try{n.value=Number(n.value)}catch{}let r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;let o=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:t,...o?{received:o}:{}}),n}}),od=g("$ZodNumberFormat",(t,e)=>{pl.init(t,e),Mo.init(t,e)}),Mn=g("$ZodBoolean",(t,e)=>{z.init(t,e),t._zod.pattern=cl,t._zod.parse=(n,i)=>{if(e.coerce)try{n.value=!!n.value}catch{}let r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:t}),n}}),qo=g("$ZodBigInt",(t,e)=>{z.init(t,e),t._zod.pattern=al,t._zod.parse=(n,i)=>{if(e.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:t}),n}}),ad=g("$ZodBigIntFormat",(t,e)=>{gl.init(t,e),qo.init(t,e)}),sd=g("$ZodSymbol",(t,e)=>{z.init(t,e),t._zod.parse=(n,i)=>{let r=n.value;return typeof r=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:t}),n}}),cd=g("$ZodUndefined",(t,e)=>{z.init(t,e),t._zod.pattern=ll,t._zod.values=new Set([void 0]),t._zod.optin="optional",t._zod.optout="optional",t._zod.parse=(n,i)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:t}),n}}),ud=g("$ZodNull",(t,e)=>{z.init(t,e),t._zod.pattern=ul,t._zod.values=new Set([null]),t._zod.parse=(n,i)=>{let r=n.value;return r===null||n.issues.push({expected:"null",code:"invalid_type",input:r,inst:t}),n}}),ld=g("$ZodAny",(t,e)=>{z.init(t,e),t._zod.parse=n=>n}),dd=g("$ZodUnknown",(t,e)=>{z.init(t,e),t._zod.parse=n=>n}),fd=g("$ZodNever",(t,e)=>{z.init(t,e),t._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:t}),n)}),md=g("$ZodVoid",(t,e)=>{z.init(t,e),t._zod.parse=(n,i)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"void",code:"invalid_type",input:r,inst:t}),n}}),pd=g("$ZodDate",(t,e)=>{z.init(t,e),t._zod.parse=(n,i)=>{if(e.coerce)try{n.value=new Date(n.value)}catch{}let r=n.value,o=r instanceof Date;return o&&!Number.isNaN(r.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:r,...o?{received:"Invalid Date"}:{},inst:t}),n}});function my(t,e,n){t.issues.length&&e.issues.push(...ye(n,t.issues)),e.value[n]=t.value}var gd=g("$ZodArray",(t,e)=>{z.init(t,e),t._zod.parse=(n,i)=>{let r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:t}),n;n.value=Array(r.length);let o=[];for(let a=0;a<r.length;a++){let s=r[a],c=e.element._zod.run({value:s,issues:[]},i);c instanceof Promise?o.push(c.then(u=>my(u,n,a))):my(c,n,a)}return o.length?Promise.all(o).then(()=>n):n}});function Zo(t,e,n,i,r){if(t.issues.length){if(r&&!(n in i))return;e.issues.push(...ye(n,t.issues))}t.value===void 0?n in i&&(e.value[n]=void 0):e.value[n]=t.value}function Iy(t){let e=Object.keys(t.shape);for(let i of e)if(!t.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);let n=zu(t.shape);return{...t,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(n)}}function Oy(t,e,n,i,r,o){let a=[],s=r.keySet,c=r.catchall._zod,u=c.def.type,l=c.optout==="optional";for(let d in e){if(s.has(d))continue;if(u==="never"){a.push(d);continue}let f=c.run({value:e[d],issues:[]},i);f instanceof Promise?t.push(f.then(p=>Zo(p,n,d,e,l))):Zo(f,n,d,e,l)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:e,inst:o}),t.length?Promise.all(t).then(()=>n):n}var Py=g("$ZodObject",(t,e)=>{if(z.init(t,e),!Object.getOwnPropertyDescriptor(e,"shape")?.get){let s=e.shape;Object.defineProperty(e,"shape",{get:()=>{let c={...s};return Object.defineProperty(e,"shape",{value:c}),c}})}let i=ir(()=>Iy(e));N(t._zod,"propValues",()=>{let s=e.shape,c={};for(let u in s){let l=s[u]._zod;if(l.values){c[u]??(c[u]=new Set);for(let d of l.values)c[u].add(d)}}return c});let r=zt,o=e.catchall,a;t._zod.parse=(s,c)=>{a??(a=i.value);let u=s.value;if(!r(u))return s.issues.push({expected:"object",code:"invalid_type",input:u,inst:t}),s;s.value={};let l=[],d=a.shape;for(let f of a.keys){let p=d[f],y=p._zod.optout==="optional",h=p._zod.run({value:u[f],issues:[]},c);h instanceof Promise?l.push(h.then(b=>Zo(b,s,f,u,y))):Zo(h,s,f,u,y)}return o?Oy(l,u,s,c,i.value,t):l.length?Promise.all(l).then(()=>s):s}}),hd=g("$ZodObjectJIT",(t,e)=>{Py.init(t,e);let n=t._zod.parse,i=ir(()=>Iy(e)),r=f=>{let p=new Zn(["shape","payload","ctx"]),y=i.value,h=O=>{let P=_o(O);return`shape[${P}]._zod.run({ value: input[${P}], issues: [] }, ctx)`};p.write("const input = payload.value;");let b=Object.create(null),I=0;for(let O of y.keys)b[O]=`key_${I++}`;p.write("const newResult = {};");for(let O of y.keys){let P=b[O],T=_o(O),M=f[O]?._zod?.optout==="optional";p.write(`const ${P} = ${h(O)};`),M?p.write(`
|
|
185
|
+
`);let i=yg.createInterface({input:process.stdin,output:process.stdout});n=(await i.question("Token: ")).trim(),i.close()}if(!n){W("No token provided."),process.exitCode=1;return}try{let i=Br({apiUrl:e,token:n});if(n.startsWith("mk_")){let o=await i.exchangeCliToken();Vs({token:n,orgId:o.organizationId,cliAccessToken:o.accessToken,cliAccessTokenExpiresAt:o.expiresAt}),ee("Authenticated"),console.log(` Organization: ${o.organizationId}`);return}let r=await i.bootstrap();Vs({token:n,orgId:r.activeOrganization.id,userId:r.user.id}),ee("Authenticated"),console.log(` Organization: ${r.activeOrganization.name??r.activeOrganization.id}`)}catch{W("Invalid token. Check it and try again."),process.exitCode=1}}function _g(e,t){e.command("init <name>").description("Create a new product with a GitHub repo for agent-first configuration").option("--base-url <url>","Backend API base URL").option("--description <desc>","Product description").option("--display-name <name>","Display name").action(async(n,i)=>{let o=await t().initProduct({name:n,baseUrl:i.baseUrl,description:i.description,displayName:i.displayName}),a=e.opts().format;if(nt(a)==="json"){console.log(J(o));return}ee(`Created product "${o.product.name}" (DRAFT)`),console.log(),o.repo&&(console.log(` Repository: ${o.repo.htmlUrl}`),console.log(` Clone: git clone ${o.repo.cloneUrl}`),console.log()),console.log(" Next steps:"),console.log(" 1. Clone the repository"),console.log(" 2. Read AGENTS.md for the full configuration reference"),console.log(" 3. Edit product.yaml \u2014 add your base URL, plans, and meters"),console.log(" 4. Push to main \u2014 a valid config goes live automatically"),console.log(),o.agent.agentsMdUrl&&console.log(` Docs: ${o.agent.agentsMdUrl}`)})}var Cp=Fr(En(),1);import{readFileSync as _E,existsSync as $E}from"node:fs";import{execSync as wE}from"node:child_process";import{resolve as kE}from"node:path";var m={};He(m,{$brand:()=>Io,$input:()=>Wd,$output:()=>Jd,NEVER:()=>Au,TimePrecision:()=>Qd,ZodAny:()=>Fm,ZodArray:()=>Hm,ZodBase64:()=>Qa,ZodBase64URL:()=>es,ZodBigInt:()=>Nr,ZodBigIntFormat:()=>ns,ZodBoolean:()=>jr,ZodCIDRv4:()=>Ya,ZodCIDRv6:()=>Xa,ZodCUID:()=>Va,ZodCUID2:()=>Ba,ZodCatch:()=>gp,ZodCodec:()=>ds,ZodCustom:()=>si,ZodCustomStringFormat:()=>zr,ZodDate:()=>ri,ZodDefault:()=>up,ZodDiscriminatedUnion:()=>Wm,ZodE164:()=>ts,ZodEmail:()=>Ma,ZodEmoji:()=>qa,ZodEnum:()=>Ar,ZodError:()=>S0,ZodExactOptional:()=>ap,ZodFile:()=>ip,ZodFirstPartyTypeKind:()=>Op,ZodFunction:()=>xp,ZodGUID:()=>Yn,ZodIPv4:()=>Wa,ZodIPv6:()=>Ga,ZodISODate:()=>Na,ZodISODateTime:()=>ja,ZodISODuration:()=>Ua,ZodISOTime:()=>Da,ZodIntersection:()=>Gm,ZodIssueCode:()=>O0,ZodJWT:()=>rs,ZodKSUID:()=>Ja,ZodLazy:()=>$p,ZodLiteral:()=>np,ZodMAC:()=>Dm,ZodMap:()=>tp,ZodNaN:()=>vp,ZodNanoID:()=>Fa,ZodNever:()=>Bm,ZodNonOptional:()=>us,ZodNull:()=>Mm,ZodNullable:()=>cp,ZodNumber:()=>Cr,ZodNumberFormat:()=>qt,ZodObject:()=>ii,ZodOptional:()=>cs,ZodPipe:()=>ls,ZodPrefault:()=>dp,ZodPromise:()=>kp,ZodReadonly:()=>yp,ZodRealError:()=>ve,ZodRecord:()=>ai,ZodSet:()=>rp,ZodString:()=>Tr,ZodStringFormat:()=>V,ZodSuccess:()=>pp,ZodSymbol:()=>Lm,ZodTemplateLiteral:()=>_p,ZodTransform:()=>op,ZodTuple:()=>Xm,ZodType:()=>j,ZodULID:()=>Ka,ZodURL:()=>ti,ZodUUID:()=>Ve,ZodUndefined:()=>Zm,ZodUnion:()=>oi,ZodUnknown:()=>Vm,ZodVoid:()=>Km,ZodXID:()=>Ha,ZodXor:()=>Jm,_ZodString:()=>Za,_default:()=>lp,_function:()=>Z_,any:()=>y_,array:()=>ni,base64:()=>t_,base64url:()=>r_,bigint:()=>m_,boolean:()=>Rm,catch:()=>hp,check:()=>M_,cidrv4:()=>Qb,cidrv6:()=>e_,clone:()=>le,codec:()=>U_,coerce:()=>Pp,config:()=>G,core:()=>Qe,cuid:()=>Bb,cuid2:()=>Kb,custom:()=>q_,date:()=>__,decode:()=>Em,decodeAsync:()=>Tm,describe:()=>F_,discriminatedUnion:()=>I_,e164:()=>n_,email:()=>Nb,emoji:()=>Fb,encode:()=>Pm,encodeAsync:()=>Am,endsWith:()=>_r,enum:()=>as,exactOptional:()=>sp,file:()=>C_,flattenError:()=>Rn,float32:()=>u_,float64:()=>l_,formatError:()=>Ln,fromJSONSchema:()=>G_,function:()=>Z_,getErrorMap:()=>E0,globalRegistry:()=>ae,gt:()=>qe,gte:()=>de,guid:()=>Db,hash:()=>c_,hex:()=>s_,hostname:()=>a_,httpUrl:()=>qb,includes:()=>yr,instanceof:()=>B_,int:()=>La,int32:()=>d_,int64:()=>p_,intersection:()=>Ym,ipv4:()=>Gb,ipv6:()=>Xb,iso:()=>Er,json:()=>H_,jwt:()=>i_,keyof:()=>$_,ksuid:()=>Wb,lazy:()=>wp,length:()=>Zt,literal:()=>z_,locales:()=>Hn,looseObject:()=>x_,looseRecord:()=>P_,lowercase:()=>hr,lt:()=>Me,lte:()=>$e,mac:()=>Yb,map:()=>E_,maxLength:()=>Lt,maxSize:()=>_t,meta:()=>V_,mime:()=>$r,minLength:()=>Xe,minSize:()=>Fe,multipleOf:()=>bt,nan:()=>D_,nanoid:()=>Vb,nativeEnum:()=>T_,negative:()=>xa,never:()=>is,nonnegative:()=>Ia,nonoptional:()=>mp,nonpositive:()=>Sa,normalize:()=>wr,null:()=>qm,nullable:()=>Qn,nullish:()=>j_,number:()=>Um,object:()=>w_,optional:()=>Xn,overwrite:()=>Ne,parse:()=>xm,parseAsync:()=>Sm,partialRecord:()=>O_,pipe:()=>ei,positive:()=>ka,prefault:()=>fp,preprocess:()=>J_,prettifyError:()=>qu,promise:()=>L_,property:()=>Oa,readonly:()=>bp,record:()=>ep,refine:()=>Sp,regex:()=>gr,regexes:()=>Oe,registry:()=>ra,safeDecode:()=>Cm,safeDecodeAsync:()=>Nm,safeEncode:()=>zm,safeEncodeAsync:()=>jm,safeParse:()=>Im,safeParseAsync:()=>Om,set:()=>A_,setErrorMap:()=>P0,size:()=>Rt,slugify:()=>Ir,startsWith:()=>br,strictObject:()=>k_,string:()=>Ra,stringFormat:()=>o_,stringbool:()=>K_,success:()=>N_,superRefine:()=>Ip,symbol:()=>h_,templateLiteral:()=>R_,toJSONSchema:()=>Ta,toLowerCase:()=>xr,toUpperCase:()=>Sr,transform:()=>ss,treeifyError:()=>Mu,trim:()=>kr,tuple:()=>Qm,uint32:()=>f_,uint64:()=>g_,ulid:()=>Hb,undefined:()=>v_,union:()=>os,unknown:()=>Mt,uppercase:()=>vr,url:()=>Mb,util:()=>w,uuid:()=>Ub,uuidv4:()=>Rb,uuidv6:()=>Lb,uuidv7:()=>Zb,void:()=>b_,xid:()=>Jb,xor:()=>S_});var Qe={};He(Qe,{$ZodAny:()=>hd,$ZodArray:()=>$d,$ZodAsyncError:()=>je,$ZodBase64:()=>ad,$ZodBase64URL:()=>sd,$ZodBigInt:()=>Wo,$ZodBigIntFormat:()=>fd,$ZodBoolean:()=>Fn,$ZodCIDRv4:()=>nd,$ZodCIDRv6:()=>id,$ZodCUID:()=>Bl,$ZodCUID2:()=>Kl,$ZodCatch:()=>Ld,$ZodCheck:()=>B,$ZodCheckBigIntFormat:()=>$l,$ZodCheckEndsWith:()=>Cl,$ZodCheckGreaterThan:()=>qo,$ZodCheckIncludes:()=>Tl,$ZodCheckLengthEquals:()=>Ol,$ZodCheckLessThan:()=>Mo,$ZodCheckLowerCase:()=>El,$ZodCheckMaxLength:()=>Sl,$ZodCheckMaxSize:()=>wl,$ZodCheckMimeType:()=>Nl,$ZodCheckMinLength:()=>Il,$ZodCheckMinSize:()=>kl,$ZodCheckMultipleOf:()=>bl,$ZodCheckNumberFormat:()=>_l,$ZodCheckOverwrite:()=>Dl,$ZodCheckProperty:()=>jl,$ZodCheckRegex:()=>Pl,$ZodCheckSizeEquals:()=>xl,$ZodCheckStartsWith:()=>zl,$ZodCheckStringFormat:()=>mr,$ZodCheckUpperCase:()=>Al,$ZodCodec:()=>Bn,$ZodCustom:()=>Hd,$ZodCustomStringFormat:()=>ld,$ZodDate:()=>_d,$ZodDefault:()=>Nd,$ZodDiscriminatedUnion:()=>xd,$ZodE164:()=>cd,$ZodEmail:()=>Ml,$ZodEmoji:()=>Fl,$ZodEncodeError:()=>pt,$ZodEnum:()=>Ed,$ZodError:()=>Un,$ZodExactOptional:()=>Cd,$ZodFile:()=>Td,$ZodFunction:()=>Vd,$ZodGUID:()=>Ll,$ZodIPv4:()=>ed,$ZodIPv6:()=>td,$ZodISODate:()=>Yl,$ZodISODateTime:()=>Gl,$ZodISODuration:()=>Ql,$ZodISOTime:()=>Xl,$ZodIntersection:()=>Sd,$ZodJWT:()=>ud,$ZodKSUID:()=>Wl,$ZodLazy:()=>Kd,$ZodLiteral:()=>Ad,$ZodMAC:()=>rd,$ZodMap:()=>Od,$ZodNaN:()=>Zd,$ZodNanoID:()=>Vl,$ZodNever:()=>yd,$ZodNonOptional:()=>Ud,$ZodNull:()=>gd,$ZodNullable:()=>jd,$ZodNumber:()=>Jo,$ZodNumberFormat:()=>dd,$ZodObject:()=>jy,$ZodObjectJIT:()=>wd,$ZodOptional:()=>Yo,$ZodPipe:()=>Md,$ZodPrefault:()=>Dd,$ZodPromise:()=>Bd,$ZodReadonly:()=>qd,$ZodRealError:()=>he,$ZodRecord:()=>Id,$ZodRegistry:()=>ta,$ZodSet:()=>Pd,$ZodString:()=>Ut,$ZodStringFormat:()=>F,$ZodSuccess:()=>Rd,$ZodSymbol:()=>md,$ZodTemplateLiteral:()=>Fd,$ZodTransform:()=>zd,$ZodTuple:()=>Go,$ZodType:()=>z,$ZodULID:()=>Hl,$ZodURL:()=>ql,$ZodUUID:()=>Zl,$ZodUndefined:()=>pd,$ZodUnion:()=>Vn,$ZodUnknown:()=>vd,$ZodVoid:()=>bd,$ZodXID:()=>Jl,$ZodXor:()=>kd,$brand:()=>Io,$constructor:()=>g,$input:()=>Wd,$output:()=>Jd,Doc:()=>qn,JSONSchema:()=>Cb,JSONSchemaGenerator:()=>za,NEVER:()=>Au,TimePrecision:()=>Qd,_any:()=>$f,_array:()=>Pf,_base64:()=>ba,_base64url:()=>_a,_bigint:()=>pf,_boolean:()=>ff,_catch:()=>v0,_check:()=>zb,_cidrv4:()=>va,_cidrv6:()=>ya,_coercedBigint:()=>gf,_coercedBoolean:()=>mf,_coercedDate:()=>If,_coercedNumber:()=>af,_coercedString:()=>Yd,_cuid:()=>la,_cuid2:()=>da,_custom:()=>Af,_date:()=>Sf,_decode:()=>zo,_decodeAsync:()=>jo,_default:()=>p0,_discriminatedUnion:()=>r0,_e164:()=>$a,_email:()=>na,_emoji:()=>ca,_encode:()=>To,_encodeAsync:()=>Co,_endsWith:()=>_r,_enum:()=>c0,_file:()=>Ef,_float32:()=>cf,_float64:()=>uf,_gt:()=>qe,_gte:()=>de,_guid:()=>Jn,_includes:()=>yr,_int:()=>sf,_int32:()=>lf,_int64:()=>hf,_intersection:()=>n0,_ipv4:()=>ga,_ipv6:()=>ha,_isoDate:()=>tf,_isoDateTime:()=>ef,_isoDuration:()=>nf,_isoTime:()=>rf,_jwt:()=>wa,_ksuid:()=>pa,_lazy:()=>$0,_length:()=>Zt,_literal:()=>l0,_lowercase:()=>hr,_lt:()=>Me,_lte:()=>$e,_mac:()=>Xd,_map:()=>a0,_max:()=>$e,_maxLength:()=>Lt,_maxSize:()=>_t,_mime:()=>$r,_min:()=>de,_minLength:()=>Xe,_minSize:()=>Fe,_multipleOf:()=>bt,_nan:()=>Of,_nanoid:()=>ua,_nativeEnum:()=>u0,_negative:()=>xa,_never:()=>kf,_nonnegative:()=>Ia,_nonoptional:()=>g0,_nonpositive:()=>Sa,_normalize:()=>wr,_null:()=>_f,_nullable:()=>m0,_number:()=>of,_optional:()=>f0,_overwrite:()=>Ne,_parse:()=>ur,_parseAsync:()=>lr,_pipe:()=>y0,_positive:()=>ka,_promise:()=>w0,_property:()=>Oa,_readonly:()=>b0,_record:()=>o0,_refine:()=>Tf,_regex:()=>gr,_safeDecode:()=>Do,_safeDecodeAsync:()=>Ro,_safeEncode:()=>No,_safeEncodeAsync:()=>Uo,_safeParse:()=>dr,_safeParseAsync:()=>fr,_set:()=>s0,_size:()=>Rt,_slugify:()=>Ir,_startsWith:()=>br,_string:()=>Gd,_stringFormat:()=>Or,_stringbool:()=>Nf,_success:()=>h0,_superRefine:()=>zf,_symbol:()=>yf,_templateLiteral:()=>_0,_toLowerCase:()=>xr,_toUpperCase:()=>Sr,_transform:()=>d0,_trim:()=>kr,_tuple:()=>i0,_uint32:()=>df,_uint64:()=>vf,_ulid:()=>fa,_undefined:()=>bf,_union:()=>e0,_unknown:()=>wf,_uppercase:()=>vr,_url:()=>Wn,_uuid:()=>ia,_uuidv4:()=>oa,_uuidv6:()=>aa,_uuidv7:()=>sa,_void:()=>xf,_xid:()=>ma,_xor:()=>t0,clone:()=>le,config:()=>G,createStandardJSONSchemaMethod:()=>Pr,createToJSONSchemaMethod:()=>Df,decode:()=>SO,decodeAsync:()=>OO,describe:()=>Cf,encode:()=>xO,encodeAsync:()=>IO,extractDefs:()=>wt,finalize:()=>kt,flattenError:()=>Rn,formatError:()=>Ln,globalConfig:()=>An,globalRegistry:()=>ae,initializeContext:()=>$t,isValidBase64:()=>od,isValidBase64URL:()=>Ay,isValidJWT:()=>Ty,locales:()=>Hn,meta:()=>jf,parse:()=>Eo,parseAsync:()=>Ao,prettifyError:()=>qu,process:()=>L,regexes:()=>Oe,registry:()=>ra,safeDecode:()=>EO,safeDecodeAsync:()=>TO,safeEncode:()=>PO,safeEncodeAsync:()=>AO,safeParse:()=>Fu,safeParseAsync:()=>Vu,toDotPath:()=>fy,toJSONSchema:()=>Ta,treeifyError:()=>Mu,util:()=>w,version:()=>Ul});var Au=Object.freeze({status:"aborted"});function g(e,t,n){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 d=0;d<l.length;d++){let f=l[d];f in s||(s[f]=u[f].bind(s))}}let r=n?.Parent??Object;class o extends r{}Object.defineProperty(o,"name",{value:e});function a(s){var c;let u=n?.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=>n?.Parent&&s instanceof n.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var Io=Symbol("zod_brand"),je=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},pt=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},An={};function G(e){return e&&Object.assign(An,e),An}var w={};He(w,{BIGINT_FORMAT_RANGES:()=>Zu,Class:()=>zu,NUMBER_FORMAT_RANGES:()=>Lu,aborted:()=>yt,allowsEval:()=>Nu,assert:()=>rO,assertEqual:()=>XI,assertIs:()=>eO,assertNever:()=>tO,assertNotEqual:()=>QI,assignProp:()=>ht,base64ToUint8Array:()=>uy,base64urlToUint8Array:()=>bO,cached:()=>sr,captureStackTrace:()=>Po,cleanEnum:()=>yO,cleanRegex:()=>Cn,clone:()=>le,cloneDef:()=>iO,createTransparentProxy:()=>lO,defineLazy:()=>N,esc:()=>Oo,escapeRegex:()=>Ie,extend:()=>mO,finalizeIssue:()=>ge,floatSafeRemainder:()=>Cu,getElementAtPath:()=>oO,getEnumValues:()=>zn,getLengthableOrigin:()=>Dn,getParsedType:()=>uO,getSizableOrigin:()=>Nn,hexToUint8Array:()=>$O,isObject:()=>Nt,isPlainObject:()=>vt,issue:()=>cr,joinValues:()=>v,jsonStringifyReplacer:()=>ar,merge:()=>gO,mergeDefs:()=>Ye,normalizeParams:()=>k,nullish:()=>gt,numKeys:()=>cO,objectClone:()=>nO,omit:()=>fO,optionalKeys:()=>Ru,parsedType:()=>$,partial:()=>hO,pick:()=>dO,prefixIssues:()=>_e,primitiveTypes:()=>Uu,promiseAllObject:()=>aO,propertyKeyTypes:()=>jn,randomString:()=>sO,required:()=>vO,safeExtend:()=>pO,shallowClone:()=>Du,slugify:()=>ju,stringifyPrimitive:()=>_,uint8ArrayToBase64:()=>ly,uint8ArrayToBase64url:()=>_O,uint8ArrayToHex:()=>wO,unwrapMessage:()=>Tn});function XI(e){return e}function QI(e){return e}function eO(e){}function tO(e){throw new Error("Unexpected value in exhaustive check")}function rO(e){}function zn(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,r])=>t.indexOf(+i)===-1).map(([i,r])=>r)}function v(e,t="|"){return e.map(n=>_(n)).join(t)}function ar(e,t){return typeof t=="bigint"?t.toString():t}function sr(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function gt(e){return e==null}function Cn(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Cu(e,t){let n=(e.toString().split(".")[1]||"").length,i=t.toString(),r=(i.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(i)){let c=i.match(/\d?e-(\d?)/);c?.[1]&&(r=Number.parseInt(c[1]))}let o=n>r?n:r,a=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return a%s/10**o}var cy=Symbol("evaluating");function N(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==cy)return i===void 0&&(i=cy,i=n()),i},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function nO(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function ht(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Ye(...e){let t={};for(let n of e){let i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}function iO(e){return Ye(e._zod.def)}function oO(e,t){return t?t.reduce((n,i)=>n?.[i],e):e}function aO(e){let t=Object.keys(e),n=t.map(i=>e[i]);return Promise.all(n).then(i=>{let r={};for(let o=0;o<t.length;o++)r[t[o]]=i[o];return r})}function sO(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let i=0;i<e;i++)n+=t[Math.floor(Math.random()*t.length)];return n}function Oo(e){return JSON.stringify(e)}function ju(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Po="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Nt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Nu=sr(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function vt(e){if(Nt(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(Nt(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Du(e){return vt(e)?{...e}:Array.isArray(e)?[...e]:e}function cO(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var uO=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}`)}},jn=new Set(["string","number","symbol"]),Uu=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ie(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function le(e,t,n){let i=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(i._zod.parent=e),i}function k(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 lO(e){let t;return new Proxy({},{get(n,i,r){return t??(t=e()),Reflect.get(t,i,r)},set(n,i,r,o){return t??(t=e()),Reflect.set(t,i,r,o)},has(n,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(n,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(n,i,r){return t??(t=e()),Reflect.defineProperty(t,i,r)}})}function _(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Ru(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var Lu={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]},Zu={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function dO(e,t){let n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=Ye(e._zod.def,{get shape(){let a={};for(let s in t){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=n.shape[s])}return ht(this,"shape",a),a},checks:[]});return le(e,o)}function fO(e,t){let n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=Ye(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s in t){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s]}return ht(this,"shape",a),a},checks:[]});return le(e,o)}function mO(e,t){if(!vt(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.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 r=Ye(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return ht(this,"shape",o),o}});return le(e,r)}function pO(e,t){if(!vt(t))throw new Error("Invalid input to safeExtend: expected a plain object");let n=Ye(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return ht(this,"shape",i),i}});return le(e,n)}function gO(e,t){let n=Ye(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t._zod.def.shape};return ht(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return le(e,n)}function hO(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=Ye(t._zod.def,{get shape(){let s=t._zod.def.shape,c={...s};if(n)for(let u in n){if(!(u in s))throw new Error(`Unrecognized key: "${u}"`);n[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 ht(this,"shape",c),c},checks:[]});return le(t,a)}function vO(e,t,n){let i=Ye(t._zod.def,{get shape(){let r=t._zod.def.shape,o={...r};if(n)for(let a in n){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(o[a]=new e({type:"nonoptional",innerType:r[a]}))}else for(let a in r)o[a]=new e({type:"nonoptional",innerType:r[a]});return ht(this,"shape",o),o}});return le(t,i)}function yt(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function _e(e,t){return t.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function Tn(e){return typeof e=="string"?e:e?.message}function ge(e,t,n){let i={...e,path:e.path??[]};if(!e.message){let r=Tn(e.inst?._zod.def?.error?.(e))??Tn(t?.error?.(e))??Tn(n.customError?.(e))??Tn(n.localeError?.(e))??"Invalid input";i.message=r}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function Nn(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Dn(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function $(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function cr(...e){let[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}function yO(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function uy(e){let t=atob(e),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}function ly(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function bO(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return uy(t+n)}function _O(e){return ly(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function $O(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)n[i/2]=Number.parseInt(t.slice(i,i+2),16);return n}function wO(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var zu=class{constructor(...t){}};var dy=(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,ar,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Un=g("$ZodError",dy),he=g("$ZodError",dy,{Parent:Error});function Rn(e,t=n=>n.message){let n={},i=[];for(let r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):i.push(t(r));return{formErrors:i,fieldErrors:n}}function Ln(e,t=n=>n.message){let n={_errors:[]},i=r=>{for(let o of r.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(a=>i({issues:a}));else if(o.code==="invalid_key")i({issues:o.issues});else if(o.code==="invalid_element")i({issues:o.issues});else if(o.path.length===0)n._errors.push(t(o));else{let a=n,s=0;for(;s<o.path.length;){let c=o.path[s];s===o.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(t(o))):a[c]=a[c]||{_errors:[]},a=a[c],s++}}};return i(e),n}function Mu(e,t=n=>n.message){let n={errors:[]},i=(r,o=[])=>{var a,s;for(let c of r.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(u=>i({issues:u},c.path));else if(c.code==="invalid_key")i({issues:c.issues},c.path);else if(c.code==="invalid_element")i({issues:c.issues},c.path);else{let u=[...o,...c.path];if(u.length===0){n.errors.push(t(c));continue}let l=n,d=0;for(;d<u.length;){let f=u[d],p=d===u.length-1;typeof f=="string"?(l.properties??(l.properties={}),(a=l.properties)[f]??(a[f]={errors:[]}),l=l.properties[f]):(l.items??(l.items=[]),(s=l.items)[f]??(s[f]={errors:[]}),l=l.items[f]),p&&l.errors.push(t(c)),d++}}};return i(e),n}function fy(e){let t=[],n=e.map(i=>typeof i=="object"?i.key:i);for(let i of n)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 qu(e){let t=[],n=[...e.issues].sort((i,r)=>(i.path??[]).length-(r.path??[]).length);for(let i of n)t.push(`\u2716 ${i.message}`),i.path?.length&&t.push(` \u2192 at ${fy(i.path)}`);return t.join(`
|
|
186
|
+
`)}var ur=e=>(t,n,i,r)=>{let o=i?Object.assign(i,{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new je;if(a.issues.length){let s=new(r?.Err??e)(a.issues.map(c=>ge(c,o,G())));throw Po(s,r?.callee),s}return a.value},Eo=ur(he),lr=e=>async(t,n,i,r)=>{let o=i?Object.assign(i,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(r?.Err??e)(a.issues.map(c=>ge(c,o,G())));throw Po(s,r?.callee),s}return a.value},Ao=lr(he),dr=e=>(t,n,i)=>{let r=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},r);if(o instanceof Promise)throw new je;return o.issues.length?{success:!1,error:new(e??Un)(o.issues.map(a=>ge(a,r,G())))}:{success:!0,data:o.value}},Fu=dr(he),fr=e=>async(t,n,i)=>{let r=i?Object.assign(i,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(a=>ge(a,r,G())))}:{success:!0,data:o.value}},Vu=fr(he),To=e=>(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return ur(e)(t,n,r)},xO=To(he),zo=e=>(t,n,i)=>ur(e)(t,n,i),SO=zo(he),Co=e=>async(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return lr(e)(t,n,r)},IO=Co(he),jo=e=>async(t,n,i)=>lr(e)(t,n,i),OO=jo(he),No=e=>(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return dr(e)(t,n,r)},PO=No(he),Do=e=>(t,n,i)=>dr(e)(t,n,i),EO=Do(he),Uo=e=>async(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return fr(e)(t,n,r)},AO=Uo(he),Ro=e=>async(t,n,i)=>fr(e)(t,n,i),TO=Ro(he);var Oe={};He(Oe,{base64:()=>al,base64url:()=>Lo,bigint:()=>fl,boolean:()=>pl,browserEmail:()=>LO,cidrv4:()=>il,cidrv6:()=>ol,cuid:()=>Bu,cuid2:()=>Ku,date:()=>cl,datetime:()=>ll,domain:()=>qO,duration:()=>Yu,e164:()=>sl,email:()=>Qu,emoji:()=>el,extendedDuration:()=>zO,guid:()=>Xu,hex:()=>FO,hostname:()=>MO,html5Email:()=>DO,idnEmail:()=>RO,integer:()=>ml,ipv4:()=>tl,ipv6:()=>rl,ksuid:()=>Wu,lowercase:()=>vl,mac:()=>nl,md5_base64:()=>BO,md5_base64url:()=>KO,md5_hex:()=>VO,nanoid:()=>Gu,null:()=>gl,number:()=>Zo,rfc5322Email:()=>UO,sha1_base64:()=>JO,sha1_base64url:()=>WO,sha1_hex:()=>HO,sha256_base64:()=>YO,sha256_base64url:()=>XO,sha256_hex:()=>GO,sha384_base64:()=>eP,sha384_base64url:()=>tP,sha384_hex:()=>QO,sha512_base64:()=>nP,sha512_base64url:()=>iP,sha512_hex:()=>rP,string:()=>dl,time:()=>ul,ulid:()=>Hu,undefined:()=>hl,unicodeEmail:()=>my,uppercase:()=>yl,uuid:()=>Dt,uuid4:()=>CO,uuid6:()=>jO,uuid7:()=>NO,xid:()=>Ju});var Bu=/^[cC][^\s-]{8,}$/,Ku=/^[0-9a-z]+$/,Hu=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Ju=/^[0-9a-vA-V]{20}$/,Wu=/^[A-Za-z0-9]{27}$/,Gu=/^[a-zA-Z0-9_-]{21}$/,Yu=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,zO=/^[-+]?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)?)??$/,Xu=/^([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})$/,Dt=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)$/,CO=Dt(4),jO=Dt(6),NO=Dt(7),Qu=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,DO=/^[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])?)*$/,UO=/^(([^<>()\[\]\\.,;:\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,}))$/,my=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,RO=my,LO=/^[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])?)*$/,ZO="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function el(){return new RegExp(ZO,"u")}var tl=/^(?:(?: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])$/,rl=/^(([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}|:))$/,nl=e=>{let t=Ie(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},il=/^((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])$/,ol=/^(([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])$/,al=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Lo=/^[A-Za-z0-9_-]*$/,MO=/^(?=.{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])?)*\.?$/,qO=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,sl=/^\+[1-9]\d{6,14}$/,py="(?:(?:\\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])))",cl=new RegExp(`^${py}$`);function gy(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 ul(e){return new RegExp(`^${gy(e)}$`)}function ll(e){let t=gy({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${t}(?:${n.join("|")})`;return new RegExp(`^${py}T(?:${i})$`)}var dl=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},fl=/^-?\d+n?$/,ml=/^-?\d+$/,Zo=/^-?\d+(?:\.\d+)?$/,pl=/^(?:true|false)$/i,gl=/^null$/i;var hl=/^undefined$/i;var vl=/^[^A-Z]*$/,yl=/^[^a-z]*$/,FO=/^[0-9a-fA-F]*$/;function Zn(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Mn(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var VO=/^[0-9a-fA-F]{32}$/,BO=Zn(22,"=="),KO=Mn(22),HO=/^[0-9a-fA-F]{40}$/,JO=Zn(27,"="),WO=Mn(27),GO=/^[0-9a-fA-F]{64}$/,YO=Zn(43,"="),XO=Mn(43),QO=/^[0-9a-fA-F]{96}$/,eP=Zn(64,""),tP=Mn(64),rP=/^[0-9a-fA-F]{128}$/,nP=Zn(86,"=="),iP=Mn(86);var B=g("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),vy={number:"number",bigint:"bigint",object:"date"},Mo=g("$ZodCheckLessThan",(e,t)=>{B.init(e,t);let n=vy[typeof t.value];e._zod.onattach.push(i=>{let r=i._zod.bag,o=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),qo=g("$ZodCheckGreaterThan",(e,t)=>{B.init(e,t);let n=vy[typeof t.value];e._zod.onattach.push(i=>{let r=i._zod.bag,o=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),bl=g("$ZodCheckMultipleOf",(e,t)=>{B.init(e,t),e._zod.onattach.push(n=>{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Cu(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),_l=g("$ZodCheckNumberFormat",(e,t)=>{B.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),i=n?"int":"number",[r,o]=Lu[t.format];e._zod.onattach.push(a=>{let s=a._zod.bag;s.format=t.format,s.minimum=r,s.maximum=o,n&&(s.pattern=ml)}),e._zod.check=a=>{let s=a.value;if(n){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<r&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:r,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})}}),$l=g("$ZodCheckBigIntFormat",(e,t)=>{B.init(e,t);let[n,i]=Zu[t.format];e._zod.onattach.push(r=>{let o=r._zod.bag;o.format=t.format,o.minimum=n,o.maximum=i}),e._zod.check=r=>{let o=r.value;o<n&&r.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),o>i&&r.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),wl=g("$ZodCheckMaxSize",(e,t)=>{var n;B.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!gt(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{let r=i.value;r.size<=t.maximum||i.issues.push({origin:Nn(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),kl=g("$ZodCheckMinSize",(e,t)=>{var n;B.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!gt(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{let r=i.value;r.size>=t.minimum||i.issues.push({origin:Nn(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),xl=g("$ZodCheckSizeEquals",(e,t)=>{var n;B.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!gt(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=i=>{let r=i.value,o=r.size;if(o===t.size)return;let a=o>t.size;i.issues.push({origin:Nn(r),...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})}}),Sl=g("$ZodCheckMaxLength",(e,t)=>{var n;B.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!gt(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{let r=i.value;if(r.length<=t.maximum)return;let a=Dn(r);i.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Il=g("$ZodCheckMinLength",(e,t)=>{var n;B.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!gt(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{let r=i.value;if(r.length>=t.minimum)return;let a=Dn(r);i.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ol=g("$ZodCheckLengthEquals",(e,t)=>{var n;B.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!gt(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=i=>{let r=i.value,o=r.length;if(o===t.length)return;let a=Dn(r),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})}}),mr=g("$ZodCheckStringFormat",(e,t)=>{var n,i;B.init(e,t),e._zod.onattach.push(r=>{let o=r._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),Pl=g("$ZodCheckRegex",(e,t)=>{mr.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),El=g("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=vl),mr.init(e,t)}),Al=g("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=yl),mr.init(e,t)}),Tl=g("$ZodCheckIncludes",(e,t)=>{B.init(e,t);let n=Ie(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(r=>{let o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),zl=g("$ZodCheckStartsWith",(e,t)=>{B.init(e,t);let n=new RegExp(`^${Ie(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{let r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),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})}}),Cl=g("$ZodCheckEndsWith",(e,t)=>{B.init(e,t);let n=new RegExp(`.*${Ie(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{let r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),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 hy(e,t,n){e.issues.length&&t.issues.push(..._e(n,e.issues))}var jl=g("$ZodCheckProperty",(e,t)=>{B.init(e,t),e._zod.check=n=>{let i=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(r=>hy(r,n,t.property));hy(i,n,t.property)}}),Nl=g("$ZodCheckMimeType",(e,t)=>{B.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{n.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),Dl=g("$ZodCheckOverwrite",(e,t)=>{B.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var qn=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(`
|
|
187
|
+
`).filter(a=>a),r=Math.min(...i.map(a=>a.length-a.trimStart().length)),o=i.map(a=>a.slice(r)).map(a=>" ".repeat(this.indent*2)+a);for(let a of o)this.content.push(a)}compile(){let t=Function,n=this?.args,r=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...n,r.join(`
|
|
188
|
+
`))}};var Ul={major:4,minor:3,patch:6};var z=g("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Ul;let i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let r of i)for(let o of r._zod.onattach)o(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let r=(a,s,c)=>{let u=yt(a),l;for(let d of s){if(d._zod.def.when){if(!d._zod.def.when(a))continue}else if(u)continue;let f=a.issues.length,p=d._zod.check(a);if(p instanceof Promise&&c?.async===!1)throw new je;if(l||p instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await p,a.issues.length!==f&&(u||(u=yt(a,f)))});else{if(a.issues.length===f)continue;u||(u=yt(a,f))}}return l?l.then(()=>a):a},o=(a,s,c)=>{if(yt(a))return a.aborted=!0,a;let u=r(s,i,c);if(u instanceof Promise){if(c.async===!1)throw new je;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 je;return c.then(u=>r(u,i,s))}return r(c,i,s)}}N(e,"~standard",()=>({validate:r=>{try{let o=Fu(e,r);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return Vu(e,r).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),Ut=g("$ZodString",(e,t)=>{z.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??dl(e._zod.bag),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),F=g("$ZodStringFormat",(e,t)=>{mr.init(e,t),Ut.init(e,t)}),Ll=g("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Xu),F.init(e,t)}),Zl=g("$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=Dt(i))}else t.pattern??(t.pattern=Dt());F.init(e,t)}),Ml=g("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Qu),F.init(e,t)}),ql=g("$ZodURL",(e,t)=>{F.init(e,t),e._zod.check=n=>{try{let i=n.value.trim(),r=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=r.href:n.value=i;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Fl=g("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=el()),F.init(e,t)}),Vl=g("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Gu),F.init(e,t)}),Bl=g("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Bu),F.init(e,t)}),Kl=g("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Ku),F.init(e,t)}),Hl=g("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Hu),F.init(e,t)}),Jl=g("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Ju),F.init(e,t)}),Wl=g("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Wu),F.init(e,t)}),Gl=g("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=ll(t)),F.init(e,t)}),Yl=g("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=cl),F.init(e,t)}),Xl=g("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=ul(t)),F.init(e,t)}),Ql=g("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Yu),F.init(e,t)}),ed=g("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=tl),F.init(e,t),e._zod.bag.format="ipv4"}),td=g("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=rl),F.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),rd=g("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=nl(t.delimiter)),F.init(e,t),e._zod.bag.format="mac"}),nd=g("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=il),F.init(e,t)}),id=g("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=ol),F.init(e,t),e._zod.check=n=>{let i=n.value.split("/");try{if(i.length!==2)throw new Error;let[r,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://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function od(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var ad=g("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=al),F.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{od(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Ay(e){if(!Lo.test(e))return!1;let t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return od(n)}var sd=g("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Lo),F.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Ay(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),cd=g("$ZodE164",(e,t)=>{t.pattern??(t.pattern=sl),F.init(e,t)});function Ty(e,t=null){try{let n=e.split(".");if(n.length!==3)return!1;let[i]=n;if(!i)return!1;let r=JSON.parse(atob(i));return!("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}var ud=g("$ZodJWT",(e,t)=>{F.init(e,t),e._zod.check=n=>{Ty(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),ld=g("$ZodCustomStringFormat",(e,t)=>{F.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),Jo=g("$ZodNumber",(e,t)=>{z.init(e,t),e._zod.pattern=e._zod.bag.pattern??Zo,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;let o=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...o?{received:o}:{}}),n}}),dd=g("$ZodNumberFormat",(e,t)=>{_l.init(e,t),Jo.init(e,t)}),Fn=g("$ZodBoolean",(e,t)=>{z.init(e,t),e._zod.pattern=pl,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=!!n.value}catch{}let r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),Wo=g("$ZodBigInt",(e,t)=>{z.init(e,t),e._zod.pattern=fl,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),fd=g("$ZodBigIntFormat",(e,t)=>{$l.init(e,t),Wo.init(e,t)}),md=g("$ZodSymbol",(e,t)=>{z.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return typeof r=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),n}}),pd=g("$ZodUndefined",(e,t)=>{z.init(e,t),e._zod.pattern=hl,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,i)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),n}}),gd=g("$ZodNull",(e,t)=>{z.init(e,t),e._zod.pattern=gl,e._zod.values=new Set([null]),e._zod.parse=(n,i)=>{let r=n.value;return r===null||n.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),n}}),hd=g("$ZodAny",(e,t)=>{z.init(e,t),e._zod.parse=n=>n}),vd=g("$ZodUnknown",(e,t)=>{z.init(e,t),e._zod.parse=n=>n}),yd=g("$ZodNever",(e,t)=>{z.init(e,t),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),bd=g("$ZodVoid",(e,t)=>{z.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),n}}),_d=g("$ZodDate",(e,t)=>{z.init(e,t),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let r=n.value,o=r instanceof Date;return o&&!Number.isNaN(r.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:r,...o?{received:"Invalid Date"}:{},inst:e}),n}});function by(e,t,n){e.issues.length&&t.issues.push(..._e(n,e.issues)),t.value[n]=e.value}var $d=g("$ZodArray",(e,t)=>{z.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);let o=[];for(let a=0;a<r.length;a++){let s=r[a],c=t.element._zod.run({value:s,issues:[]},i);c instanceof Promise?o.push(c.then(u=>by(u,n,a))):by(c,n,a)}return o.length?Promise.all(o).then(()=>n):n}});function Ho(e,t,n,i,r){if(e.issues.length){if(r&&!(n in i))return;t.issues.push(..._e(n,e.issues))}e.value===void 0?n in i&&(t.value[n]=void 0):t.value[n]=e.value}function zy(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 n=Ru(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Cy(e,t,n,i,r,o){let a=[],s=r.keySet,c=r.catchall._zod,u=c.def.type,l=c.optout==="optional";for(let d in t){if(s.has(d))continue;if(u==="never"){a.push(d);continue}let f=c.run({value:t[d],issues:[]},i);f instanceof Promise?e.push(f.then(p=>Ho(p,n,d,t,l))):Ho(f,n,d,t,l)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}var jy=g("$ZodObject",(e,t)=>{if(z.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=sr(()=>zy(t));N(e._zod,"propValues",()=>{let s=t.shape,c={};for(let u in s){let l=s[u]._zod;if(l.values){c[u]??(c[u]=new Set);for(let d of l.values)c[u].add(d)}}return c});let r=Nt,o=t.catchall,a;e._zod.parse=(s,c)=>{a??(a=i.value);let u=s.value;if(!r(u))return s.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),s;s.value={};let l=[],d=a.shape;for(let f of a.keys){let p=d[f],y=p._zod.optout==="optional",h=p._zod.run({value:u[f],issues:[]},c);h instanceof Promise?l.push(h.then(b=>Ho(b,s,f,u,y))):Ho(h,s,f,u,y)}return o?Cy(l,u,s,c,i.value,e):l.length?Promise.all(l).then(()=>s):s}}),wd=g("$ZodObjectJIT",(e,t)=>{jy.init(e,t);let n=e._zod.parse,i=sr(()=>zy(t)),r=f=>{let p=new qn(["shape","payload","ctx"]),y=i.value,h=O=>{let P=Oo(O);return`shape[${P}]._zod.run({ value: input[${P}], issues: [] }, ctx)`};p.write("const input = payload.value;");let b=Object.create(null),I=0;for(let O of y.keys)b[O]=`key_${I++}`;p.write("const newResult = {};");for(let O of y.keys){let P=b[O],T=Oo(O),q=f[O]?._zod?.optout==="optional";p.write(`const ${P} = ${h(O)};`),q?p.write(`
|
|
189
189
|
if (${P}.issues.length) {
|
|
190
190
|
if (${T} in input) {
|
|
191
191
|
payload.issues = payload.issues.concat(${P}.issues.map(iss => ({
|
|
@@ -219,10 +219,10 @@ Examples:
|
|
|
219
219
|
newResult[${T}] = ${P}.value;
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
-
`)}p.write("payload.value = newResult;"),p.write("return payload;");let E=p.compile();return(O,P)=>E(f,O,P)},o,a=zt,s=!Pn.jitless,u=s&&Au.value,l=e.catchall,d;t._zod.parse=(f,p)=>{d??(d=i.value);let y=f.value;return a(y)?s&&u&&p?.async===!1&&p.jitless!==!0?(o||(o=r(e.shape)),f=o(f,p),l?Oy([],y,f,p,d,t):f):n(f,p):(f.issues.push({expected:"object",code:"invalid_type",input:y,inst:t}),f)}});function py(t,e,n,i){for(let o of t)if(o.issues.length===0)return e.value=o.value,e;let r=t.filter(o=>!gt(o));return r.length===1?(e.value=r[0].value,r[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:n,errors:t.map(o=>o.issues.map(a=>pe(a,i,G())))}),e)}var qn=g("$ZodUnion",(t,e)=>{z.init(t,e),N(t._zod,"optin",()=>e.options.some(r=>r._zod.optin==="optional")?"optional":void 0),N(t._zod,"optout",()=>e.options.some(r=>r._zod.optout==="optional")?"optional":void 0),N(t._zod,"values",()=>{if(e.options.every(r=>r._zod.values))return new Set(e.options.flatMap(r=>Array.from(r._zod.values)))}),N(t._zod,"pattern",()=>{if(e.options.every(r=>r._zod.pattern)){let r=e.options.map(o=>o._zod.pattern);return new RegExp(`^(${r.map(o=>Tn(o.source)).join("|")})$`)}});let n=e.options.length===1,i=e.options[0]._zod.run;t._zod.parse=(r,o)=>{if(n)return i(r,o);let a=!1,s=[];for(let c of e.options){let u=c._zod.run({value:r.value,issues:[]},o);if(u instanceof Promise)s.push(u),a=!0;else{if(u.issues.length===0)return u;s.push(u)}}return a?Promise.all(s).then(c=>py(c,r,t,o)):py(s,r,t,o)}});function gy(t,e,n,i){let r=t.filter(o=>o.issues.length===0);return r.length===1?(e.value=r[0].value,e):(r.length===0?e.issues.push({code:"invalid_union",input:e.value,inst:n,errors:t.map(o=>o.issues.map(a=>pe(a,i,G())))}):e.issues.push({code:"invalid_union",input:e.value,inst:n,errors:[],inclusive:!1}),e)}var vd=g("$ZodXor",(t,e)=>{qn.init(t,e),e.inclusive=!1;let n=e.options.length===1,i=e.options[0]._zod.run;t._zod.parse=(r,o)=>{if(n)return i(r,o);let a=!1,s=[];for(let c of e.options){let u=c._zod.run({value:r.value,issues:[]},o);u instanceof Promise?(s.push(u),a=!0):s.push(u)}return a?Promise.all(s).then(c=>gy(c,r,t,o)):gy(s,r,t,o)}}),yd=g("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,qn.init(t,e);let n=t._zod.parse;N(t._zod,"propValues",()=>{let r={};for(let o of e.options){let a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(o)}"`);for(let[s,c]of Object.entries(a)){r[s]||(r[s]=new Set);for(let u of c)r[s].add(u)}}return r});let i=ir(()=>{let r=e.options,o=new Map;for(let a of r){let s=a._zod.propValues?.[e.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${e.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});t._zod.parse=(r,o)=>{let a=r.value;if(!zt(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:t}),r;let s=i.value.get(a?.[e.discriminator]);return s?s._zod.run(r,o):e.unionFallback?n(r,o):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,input:a,path:[e.discriminator],inst:t}),r)}}),bd=g("$ZodIntersection",(t,e)=>{z.init(t,e),t._zod.parse=(n,i)=>{let r=n.value,o=e.left._zod.run({value:r,issues:[]},i),a=e.right._zod.run({value:r,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([c,u])=>hy(n,c,u)):hy(n,o,a)}});function zl(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&e instanceof Date&&+t==+e)return{valid:!0,data:t};if(pt(t)&&pt(e)){let n=Object.keys(e),i=Object.keys(t).filter(o=>n.indexOf(o)!==-1),r={...t,...e};for(let o of i){let a=zl(t[o],e[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r[o]=a.data}return{valid:!0,data:r}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let i=0;i<t.length;i++){let r=t[i],o=e[i],a=zl(r,o);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function hy(t,e,n){let i=new Map,r;for(let s of e.issues)if(s.code==="unrecognized_keys"){r??(r=s);for(let c of s.keys)i.has(c)||i.set(c,{}),i.get(c).l=!0}else t.issues.push(s);for(let s of n.issues)if(s.code==="unrecognized_keys")for(let c of s.keys)i.has(c)||i.set(c,{}),i.get(c).r=!0;else t.issues.push(s);let o=[...i].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(o.length&&r&&t.issues.push({...r,keys:o}),gt(t))return t;let a=zl(e.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return t.value=a.data,t}var Fo=g("$ZodTuple",(t,e)=>{z.init(t,e);let n=e.items;t._zod.parse=(i,r)=>{let o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:t,expected:"tuple",code:"invalid_type"}),i;i.value=[];let a=[],s=[...n].reverse().findIndex(l=>l._zod.optin!=="optional"),c=s===-1?0:n.length-s;if(!e.rest){let l=o.length>n.length,d=o.length<c-1;if(l||d)return i.issues.push({...l?{code:"too_big",maximum:n.length,inclusive:!0}:{code:"too_small",minimum:n.length},input:o,inst:t,origin:"array"}),i}let u=-1;for(let l of n){if(u++,u>=o.length&&u>=c)continue;let d=l._zod.run({value:o[u],issues:[]},r);d instanceof Promise?a.push(d.then(f=>Do(f,i,u))):Do(d,i,u)}if(e.rest){let l=o.slice(n.length);for(let d of l){u++;let f=e.rest._zod.run({value:d,issues:[]},r);f instanceof Promise?a.push(f.then(p=>Do(p,i,u))):Do(f,i,u)}}return a.length?Promise.all(a).then(()=>i):i}});function Do(t,e,n){t.issues.length&&e.issues.push(...ye(n,t.issues)),e.value[n]=t.value}var _d=g("$ZodRecord",(t,e)=>{z.init(t,e),t._zod.parse=(n,i)=>{let r=n.value;if(!pt(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:t}),n;let o=[],a=e.keyType._zod.values;if(a){n.value={};let s=new Set;for(let u of a)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){s.add(typeof u=="number"?u.toString():u);let l=e.valueType._zod.run({value:r[u],issues:[]},i);l instanceof Promise?o.push(l.then(d=>{d.issues.length&&n.issues.push(...ye(u,d.issues)),n.value[u]=d.value})):(l.issues.length&&n.issues.push(...ye(u,l.issues)),n.value[u]=l.value)}let c;for(let u in r)s.has(u)||(c=c??[],c.push(u));c&&c.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:t,keys:c})}else{n.value={};for(let s of Reflect.ownKeys(r)){if(s==="__proto__")continue;let c=e.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"&&Co.test(s)&&c.issues.length){let d=e.keyType._zod.run({value:Number(s),issues:[]},i);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(c=d)}if(c.issues.length){e.mode==="loose"?n.value[s]=r[s]:n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(d=>pe(d,i,G())),input:s,path:[s],inst:t});continue}let l=e.valueType._zod.run({value:r[s],issues:[]},i);l instanceof Promise?o.push(l.then(d=>{d.issues.length&&n.issues.push(...ye(s,d.issues)),n.value[c.value]=d.value})):(l.issues.length&&n.issues.push(...ye(s,l.issues)),n.value[c.value]=l.value)}}return o.length?Promise.all(o).then(()=>n):n}}),$d=g("$ZodMap",(t,e)=>{z.init(t,e),t._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:r,inst:t}),n;let o=[];n.value=new Map;for(let[a,s]of r){let c=e.keyType._zod.run({value:a,issues:[]},i),u=e.valueType._zod.run({value:s,issues:[]},i);c instanceof Promise||u instanceof Promise?o.push(Promise.all([c,u]).then(([l,d])=>{vy(l,d,n,a,r,t,i)})):vy(c,u,n,a,r,t,i)}return o.length?Promise.all(o).then(()=>n):n}});function vy(t,e,n,i,r,o,a){t.issues.length&&(zn.has(typeof i)?n.issues.push(...ye(i,t.issues)):n.issues.push({code:"invalid_key",origin:"map",input:r,inst:o,issues:t.issues.map(s=>pe(s,a,G()))})),e.issues.length&&(zn.has(typeof i)?n.issues.push(...ye(i,e.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:o,key:i,issues:e.issues.map(s=>pe(s,a,G()))})),n.value.set(t.value,e.value)}var wd=g("$ZodSet",(t,e)=>{z.init(t,e),t._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:t,expected:"set",code:"invalid_type"}),n;let o=[];n.value=new Set;for(let a of r){let s=e.valueType._zod.run({value:a,issues:[]},i);s instanceof Promise?o.push(s.then(c=>yy(c,n))):yy(s,n)}return o.length?Promise.all(o).then(()=>n):n}});function yy(t,e){t.issues.length&&e.issues.push(...t.issues),e.value.add(t.value)}var kd=g("$ZodEnum",(t,e)=>{z.init(t,e);let n=En(e.entries),i=new Set(n);t._zod.values=i,t._zod.pattern=new RegExp(`^(${n.filter(r=>zn.has(typeof r)).map(r=>typeof r=="string"?xe(r):r.toString()).join("|")})$`),t._zod.parse=(r,o)=>{let a=r.value;return i.has(a)||r.issues.push({code:"invalid_value",values:n,input:a,inst:t}),r}}),xd=g("$ZodLiteral",(t,e)=>{if(z.init(t,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");let n=new Set(e.values);t._zod.values=n,t._zod.pattern=new RegExp(`^(${e.values.map(i=>typeof i=="string"?xe(i):i?xe(i.toString()):String(i)).join("|")})$`),t._zod.parse=(i,r)=>{let o=i.value;return n.has(o)||i.issues.push({code:"invalid_value",values:e.values,input:o,inst:t}),i}}),Sd=g("$ZodFile",(t,e)=>{z.init(t,e),t._zod.parse=(n,i)=>{let r=n.value;return r instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:r,inst:t}),n}}),Id=g("$ZodTransform",(t,e)=>{z.init(t,e),t._zod.parse=(n,i)=>{if(i.direction==="backward")throw new dt(t.constructor.name);let r=e.transform(n.value,n);if(i.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(n.value=a,n));if(r instanceof Promise)throw new Te;return n.value=r,n}});function by(t,e){return t.issues.length&&e===void 0?{issues:[],value:void 0}:t}var Vo=g("$ZodOptional",(t,e)=>{z.init(t,e),t._zod.optin="optional",t._zod.optout="optional",N(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),N(t._zod,"pattern",()=>{let n=e.innerType._zod.pattern;return n?new RegExp(`^(${Tn(n.source)})?$`):void 0}),t._zod.parse=(n,i)=>{if(e.innerType._zod.optin==="optional"){let r=e.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>by(o,n.value)):by(r,n.value)}return n.value===void 0?n:e.innerType._zod.run(n,i)}}),Od=g("$ZodExactOptional",(t,e)=>{Vo.init(t,e),N(t._zod,"values",()=>e.innerType._zod.values),N(t._zod,"pattern",()=>e.innerType._zod.pattern),t._zod.parse=(n,i)=>e.innerType._zod.run(n,i)}),Pd=g("$ZodNullable",(t,e)=>{z.init(t,e),N(t._zod,"optin",()=>e.innerType._zod.optin),N(t._zod,"optout",()=>e.innerType._zod.optout),N(t._zod,"pattern",()=>{let n=e.innerType._zod.pattern;return n?new RegExp(`^(${Tn(n.source)}|null)$`):void 0}),N(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(n,i)=>n.value===null?n:e.innerType._zod.run(n,i)}),Ad=g("$ZodDefault",(t,e)=>{z.init(t,e),t._zod.optin="optional",N(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(n,i)=>{if(i.direction==="backward")return e.innerType._zod.run(n,i);if(n.value===void 0)return n.value=e.defaultValue,n;let r=e.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>_y(o,e)):_y(r,e)}});function _y(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}var Ed=g("$ZodPrefault",(t,e)=>{z.init(t,e),t._zod.optin="optional",N(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(n,i)=>(i.direction==="backward"||n.value===void 0&&(n.value=e.defaultValue),e.innerType._zod.run(n,i))}),Td=g("$ZodNonOptional",(t,e)=>{z.init(t,e),N(t._zod,"values",()=>{let n=e.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),t._zod.parse=(n,i)=>{let r=e.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>$y(o,t)):$y(r,t)}});function $y(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}var zd=g("$ZodSuccess",(t,e)=>{z.init(t,e),t._zod.parse=(n,i)=>{if(i.direction==="backward")throw new dt("ZodSuccess");let r=e.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.issues.length===0,n)):(n.value=r.issues.length===0,n)}}),Cd=g("$ZodCatch",(t,e)=>{z.init(t,e),N(t._zod,"optin",()=>e.innerType._zod.optin),N(t._zod,"optout",()=>e.innerType._zod.optout),N(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(n,i)=>{if(i.direction==="backward")return e.innerType._zod.run(n,i);let r=e.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.value,o.issues.length&&(n.value=e.catchValue({...n,error:{issues:o.issues.map(a=>pe(a,i,G()))},input:n.value}),n.issues=[]),n)):(n.value=r.value,r.issues.length&&(n.value=e.catchValue({...n,error:{issues:r.issues.map(o=>pe(o,i,G()))},input:n.value}),n.issues=[]),n)}}),jd=g("$ZodNaN",(t,e)=>{z.init(t,e),t._zod.parse=(n,i)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:t,expected:"nan",code:"invalid_type"}),n)}),Nd=g("$ZodPipe",(t,e)=>{z.init(t,e),N(t._zod,"values",()=>e.in._zod.values),N(t._zod,"optin",()=>e.in._zod.optin),N(t._zod,"optout",()=>e.out._zod.optout),N(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(n,i)=>{if(i.direction==="backward"){let o=e.out._zod.run(n,i);return o instanceof Promise?o.then(a=>Uo(a,e.in,i)):Uo(o,e.in,i)}let r=e.in._zod.run(n,i);return r instanceof Promise?r.then(o=>Uo(o,e.out,i)):Uo(r,e.out,i)}});function Uo(t,e,n){return t.issues.length?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues},n)}var Fn=g("$ZodCodec",(t,e)=>{z.init(t,e),N(t._zod,"values",()=>e.in._zod.values),N(t._zod,"optin",()=>e.in._zod.optin),N(t._zod,"optout",()=>e.out._zod.optout),N(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(n,i)=>{if((i.direction||"forward")==="forward"){let o=e.in._zod.run(n,i);return o instanceof Promise?o.then(a=>Ro(a,e,i)):Ro(o,e,i)}else{let o=e.out._zod.run(n,i);return o instanceof Promise?o.then(a=>Ro(a,e,i)):Ro(o,e,i)}}});function Ro(t,e,n){if(t.issues.length)return t.aborted=!0,t;if((n.direction||"forward")==="forward"){let r=e.transform(t.value,t);return r instanceof Promise?r.then(o=>Lo(t,o,e.out,n)):Lo(t,r,e.out,n)}else{let r=e.reverseTransform(t.value,t);return r instanceof Promise?r.then(o=>Lo(t,o,e.in,n)):Lo(t,r,e.in,n)}}function Lo(t,e,n,i){return t.issues.length?(t.aborted=!0,t):n._zod.run({value:e,issues:t.issues},i)}var Dd=g("$ZodReadonly",(t,e)=>{z.init(t,e),N(t._zod,"propValues",()=>e.innerType._zod.propValues),N(t._zod,"values",()=>e.innerType._zod.values),N(t._zod,"optin",()=>e.innerType?._zod?.optin),N(t._zod,"optout",()=>e.innerType?._zod?.optout),t._zod.parse=(n,i)=>{if(i.direction==="backward")return e.innerType._zod.run(n,i);let r=e.innerType._zod.run(n,i);return r instanceof Promise?r.then(wy):wy(r)}});function wy(t){return t.value=Object.freeze(t.value),t}var Ud=g("$ZodTemplateLiteral",(t,e)=>{z.init(t,e);let n=[];for(let i of e.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 r=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let o=r.startsWith("^")?1:0,a=r.endsWith("$")?r.length-1:r.length;n.push(r.slice(o,a))}else if(i===null||Tu.has(typeof i))n.push(xe(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);t._zod.pattern=new RegExp(`^${n.join("")}$`),t._zod.parse=(i,r)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:t,expected:"string",code:"invalid_type"}),i):(t._zod.pattern.lastIndex=0,t._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:t,code:"invalid_format",format:e.format??"template_literal",pattern:t._zod.pattern.source}),i)}),Rd=g("$ZodFunction",(t,e)=>(z.init(t,e),t._def=e,t._zod.def=e,t.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...i){let r=t._def.input?wo(t._def.input,i):i,o=Reflect.apply(n,this,r);return t._def.output?wo(t._def.output,o):o}},t.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){let r=t._def.input?await ko(t._def.input,i):i,o=await Reflect.apply(n,this,r);return t._def.output?await ko(t._def.output,o):o}},t._zod.parse=(n,i)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:t}),n):(t._def.output&&t._def.output._zod.def.type==="promise"?n.value=t.implementAsync(n.value):n.value=t.implement(n.value),n),t.input=(...n)=>{let i=t.constructor;return Array.isArray(n[0])?new i({type:"function",input:new Fo({type:"tuple",items:n[0],rest:n[1]}),output:t._def.output}):new i({type:"function",input:n[0],output:t._def.output})},t.output=n=>{let i=t.constructor;return new i({type:"function",input:t._def.input,output:n})},t)),Ld=g("$ZodPromise",(t,e)=>{z.init(t,e),t._zod.parse=(n,i)=>Promise.resolve(n.value).then(r=>e.innerType._zod.run({value:r,issues:[]},i))}),Zd=g("$ZodLazy",(t,e)=>{z.init(t,e),N(t._zod,"innerType",()=>e.getter()),N(t._zod,"pattern",()=>t._zod.innerType?._zod?.pattern),N(t._zod,"propValues",()=>t._zod.innerType?._zod?.propValues),N(t._zod,"optin",()=>t._zod.innerType?._zod?.optin??void 0),N(t._zod,"optout",()=>t._zod.innerType?._zod?.optout??void 0),t._zod.parse=(n,i)=>t._zod.innerType._zod.run(n,i)}),Md=g("$ZodCustom",(t,e)=>{V.init(t,e),z.init(t,e),t._zod.parse=(n,i)=>n,t._zod.check=n=>{let i=n.value,r=e.fn(i);if(r instanceof Promise)return r.then(o=>ky(o,n,i,t));ky(r,n,i,t)}});function ky(t,e,n,i){if(!t){let r={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(r.params=i._zod.def.params),e.issues.push(or(r))}}var Bn={};Ve(Bn,{ar:()=>Ay,az:()=>Ey,be:()=>zy,bg:()=>Cy,ca:()=>jy,cs:()=>Ny,da:()=>Dy,de:()=>Uy,en:()=>Bo,eo:()=>Ry,es:()=>Ly,fa:()=>Zy,fi:()=>My,fr:()=>qy,frCA:()=>Fy,he:()=>Vy,hu:()=>By,hy:()=>Jy,id:()=>Hy,is:()=>Wy,it:()=>Gy,ja:()=>Yy,ka:()=>Xy,kh:()=>Qy,km:()=>Ko,ko:()=>eb,lt:()=>rb,mk:()=>nb,ms:()=>ib,nl:()=>ob,no:()=>ab,ota:()=>sb,pl:()=>ub,ps:()=>cb,pt:()=>lb,ru:()=>fb,sl:()=>mb,sv:()=>pb,ta:()=>gb,th:()=>hb,tr:()=>vb,ua:()=>yb,uk:()=>Jo,ur:()=>bb,uz:()=>_b,vi:()=>$b,yo:()=>xb,zhCN:()=>wb,zhTW:()=>kb});var QO=()=>{let t={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 e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.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 ${r.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 r.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 ${_(r.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: ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.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 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.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 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;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 "${r.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}`:`${n[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${r.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${r.keys.length>1?"\u0629":""}: ${v(r.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.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 ${r.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function Ay(){return{localeError:QO()}}var eP=()=>{let t={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 e(r){return t[r]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${r.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${s}`}case"invalid_value":return r.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${_(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${r.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${r.keys.length>1?"lar":""}: ${v(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${r.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function Ey(){return{localeError:eP()}}function Ty(t,e,n,i){let r=Math.abs(t),o=r%10,a=r%100;return a>=11&&a<=19?i:o===1?e:o>=2&&o<=4?n:i}var tP=()=>{let t={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 e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${r.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 r.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 ${_(r.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 ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);if(a){let s=Number(r.maximum),c=Ty(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 ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${r.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 ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);if(a){let s=Number(r.minimum),c=Ty(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 ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${r.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 ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${r.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${v(r.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${r.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 ${r.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function zy(){return{localeError:tP()}}var rP=()=>{let t={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 e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${r.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 r.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${_(r.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 ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${r.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 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${r.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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} ${n[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${r.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u043E\u0432\u0435":""}: ${v(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${r.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 ${r.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function Cy(){return{localeError:rP()}}var nP=()=>{let t={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${r.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${s}`}case"invalid_value":return r.values.length===1?`Valor inv\xE0lid: s'esperava ${_(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${v(r.values," o ")}`;case"too_big":{let o=r.inclusive?"com a m\xE0xim":"menys de",a=e(r.origin);return a?`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xE9s ${o} ${r.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"com a m\xEDnim":"m\xE9s de",a=e(r.origin);return a?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${o} ${r.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${v(r.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${r.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${r.origin}`;default:return"Entrada inv\xE0lida"}}};function jy(){return{localeError:nP()}}var iP=()=>{let t={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 e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${r.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${s}`}case"invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${_(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${r.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${v(r.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${r.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${r.origin}`;default:return"Neplatn\xFD vstup"}}};function Ny(){return{localeError:iP()}}var oP=()=>{let t={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function e(r){return t[r]??null}let n={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldigt input: forventede instanceof ${r.expected}, fik ${s}`:`Ugyldigt input: forventede ${o}, fik ${s}`}case"invalid_value":return r.values.length===1?`Ugyldig v\xE6rdi: forventede ${_(r.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin),s=i[r.origin]??r.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${o} ${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin),s=i[r.origin]??r.origin;return a?`For lille: forventede ${s} ${a.verb} ${o} ${r.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} havde ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${v(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${r.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${r.origin}`;default:return"Ugyldigt input"}}};function Dy(){return{localeError:oP()}}var aP=()=>{let t={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 e(r){return t[r]??null}let n={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${r.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${s}`}case"invalid_value":return r.values.length===1?`Ung\xFCltige Eingabe: erwartet ${_(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);return a?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ist`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ist`}case"invalid_format":{let o=r;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: ${n[o.format]??r.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${v(r.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${r.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${r.origin}`;default:return"Ung\xFCltige Eingabe"}}};function Uy(){return{localeError:aP()}}var sP=()=>{let t={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 e(r){return t[r]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return`Invalid input: expected ${o}, received ${s}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${_(r.values[0])}`:`Invalid option: expected one of ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);return a?`Too big: expected ${r.origin??"value"} to have ${o}${r.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`Too small: expected ${r.origin} to have ${o}${r.minimum.toString()} ${a.unit}`:`Too small: expected ${r.origin} to be ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${r.divisor}`;case"unrecognized_keys":return`Unrecognized key${r.keys.length>1?"s":""}: ${v(r.keys,", ")}`;case"invalid_key":return`Invalid key in ${r.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${r.origin}`;default:return"Invalid input"}}};function Bo(){return{localeError:sP()}}var cP=()=>{let t={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${r.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${s}`}case"invalid_value":return r.values.length===1?`Nevalida enigo: atendi\u011Dis ${_(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);return a?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${o}${r.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${o}${r.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${r.origin} estu ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${r.divisor}`;case"unrecognized_keys":return`Nekonata${r.keys.length>1?"j":""} \u015Dlosilo${r.keys.length>1?"j":""}: ${v(r.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${r.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${r.origin}`;default:return"Nevalida enigo"}}};function Ry(){return{localeError:cP()}}var uP=()=>{let t={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${r.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${s}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: se esperaba ${_(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin),s=i[r.origin]??r.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${o}${r.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin),s=i[r.origin]??r.origin;return a?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${o}${r.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${v(r.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${i[r.origin]??r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${i[r.origin]??r.origin}`;default:return"Entrada inv\xE1lida"}}};function Ly(){return{localeError:uP()}}var lP=()=>{let t={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 e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${r.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 r.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${_(r.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 ${v(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=r;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`:`${n[o.format]??r.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 ${r.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${r.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${v(r.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${r.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 ${r.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function Zy(){return{localeError:lP()}}var dP=()=>{let t={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 e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Virheellinen tyyppi: odotettiin instanceof ${r.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${s}`}case"invalid_value":return r.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${_(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${o}${r.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${o}${r.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${v(r.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function My(){return{localeError:dP()}}var fP=()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function e(r){return t[r]??null}let n={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={nan:"NaN",number:"nombre",array:"tableau"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : instanceof ${r.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${s} re\xE7u`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : ${_(r.values[0])} attendu`:`Option invalide : une valeur parmi ${v(r.values,"|")} attendue`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);return a?`Trop grand : ${r.origin??"valeur"} doit ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${r.origin??"valeur"} doit \xEAtre ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`Trop petit : ${r.origin} doit ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : ${r.origin} doit \xEAtre ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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}`:`${n[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${v(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function qy(){return{localeError:fP()}}var mP=()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : attendu instanceof ${r.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${s}`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : attendu ${_(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u2264":"<",a=e(r.origin);return a?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${o}${r.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"\u2265":">",a=e(r.origin);return a?`Trop petit : attendu que ${r.origin} ait ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${r.origin} soit ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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}`:`${n[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${v(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function Fy(){return{localeError:mP()}}var pP=()=>{let t={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"}},e={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"}},n=u=>u?t[u]:void 0,i=u=>{let l=n(u);return l?l.label:u??t.unknown.label},r=u=>`\u05D4${i(u)}`,o=u=>(n(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?e[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,d=c[l??""]??i(l),f=$(u.input),p=c[f]??t[f]?.label??f;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 ${p}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`}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 ${_(u.values[0])}`;let l=u.values.map(p=>_(p));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 d=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 ${d}`}case"too_big":{let l=a(u.origin),d=r(u.origin??"value");if(u.origin==="string")return`${l?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \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 y=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: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${y}`}if(u.origin==="array"||u.origin==="set"){let y=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",h=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: ${d} ${y} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let f=u.inclusive?"<=":"<",p=o(u.origin??"value");return l?.unit?`${l.longLabel} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${u.maximum.toString()} ${l.unit}`:`${l?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${u.maximum.toString()}`}case"too_small":{let l=a(u.origin),d=r(u.origin??"value");if(u.origin==="string")return`${l?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \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 y=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: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${y}`}if(u.origin==="array"||u.origin==="set"){let y=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let b=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${y} \u05DC\u05D4\u05DB\u05D9\u05DC ${b}`}let h=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: ${d} ${y} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let f=u.inclusive?">=":">",p=o(u.origin??"value");return l?.unit?`${l.shortLabel} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${u.minimum.toString()} ${l.unit}`:`${l?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${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 d=s[l.format],f=d?.label??l.format,y=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${f} \u05DC\u05D0 ${y}`}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"}: ${v(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${r(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function Vy(){return{localeError:pP()}}var gP=()=>{let t={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${r.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return r.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${_(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);return a?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${r.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${r.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${o}${r.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} t\xFAl kicsi ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${r.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>1?"s":""}: ${v(r.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${r.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${r.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function By(){return{localeError:gP()}}function Ky(t,e,n){return Math.abs(t)===1?e:n}function dr(t){if(!t)return"";let e=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=t[t.length-1];return t+(e.includes(n)?"\u0576":"\u0568")}var hP=()=>{let t={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 e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.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 ${r.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 r.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 ${_(r.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 ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);if(a){let s=Number(r.maximum),c=Ky(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 ${dr(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${r.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 ${dr(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);if(a){let s=Number(r.minimum),c=Ky(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 ${dr(r.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${r.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 ${dr(r.origin)} \u056C\u056B\u0576\u056B ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.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 ${r.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${r.keys.length>1?"\u0576\u0565\u0580":""}. ${v(r.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${dr(r.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 ${dr(r.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function Jy(){return{localeError:hP()}}var vP=()=>{let t={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function e(r){return t[r]??null}let n={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak valid: diharapkan instanceof ${r.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${o}, diterima ${s}`}case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${_(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);return a?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${o}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`Terlalu kecil: diharapkan ${r.origin} memiliki ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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}`:`${n[o.format]??r.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${v(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`;default:return"Input tidak valid"}}};function Hy(){return{localeError:vP()}}var yP=()=>{let t={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 e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${r.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${o}`}case"invalid_value":return r.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${_(r.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} hafi ${o}${r.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} s\xE9 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} hafi ${o}${r.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} s\xE9 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${r.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${r.keys.length>1?"ir lyklar":"ur lykill"}: ${v(r.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${r.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${r.origin}`;default:return"Rangt gildi"}}};function Wy(){return{localeError:yP()}}var bP=()=>{let t={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function e(r){return t[r]??null}let n={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Input non valido: atteso instanceof ${r.expected}, ricevuto ${s}`:`Input non valido: atteso ${o}, ricevuto ${s}`}case"invalid_value":return r.values.length===1?`Input non valido: atteso ${_(r.values[0])}`:`Opzione non valida: atteso uno tra ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);return a?`Troppo grande: ${r.origin??"valore"} deve avere ${o}${r.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`Troppo piccolo: ${r.origin} deve avere ${o}${r.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${r.origin} deve essere ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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}`:`Invalid ${n[o.format]??r.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case"unrecognized_keys":return`Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${v(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`;default:return"Input non valido"}}};function Gy(){return{localeError:bP()}}var _P=()=>{let t={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 e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${r.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 r.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${_(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${v(r.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=r.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=e(r.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${a.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=r.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=e(r.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${a.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=r;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${n[o.format]??r.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${r.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${r.keys.length>1?"\u7FA4":""}: ${v(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function Yy(){return{localeError:_P()}}var $P=()=>{let t={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 e(r){return t[r]??null}let n={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 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.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 ${r.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 r.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 ${_(r.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 ${v(r.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.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 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${o}${r.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 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.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 ${r.origin} ${a.verb} ${o}${r.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 ${r.origin} \u10D8\u10E7\u10DD\u10E1 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 ${n[o.format]??r.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 ${r.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${r.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${v(r.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${r.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 ${r.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function Xy(){return{localeError:$P()}}var wP=()=>{let t={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 e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.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 ${r.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 r.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 ${_(r.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 ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${v(r.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 ${r.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 ${r.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 Ko(){return{localeError:wP()}}function Qy(){return Ko()}var kP=()=>{let t={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 e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${r.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 r.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${_(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${v(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=e(r.origin),c=s?.unit??"\uC694\uC18C";return s?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${c} ${o}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${o}${a}`}case"too_small":{let o=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=e(r.origin),c=s?.unit??"\uC694\uC18C";return s?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${c} ${o}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${o}${a}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${r.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${v(r.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${r.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${r.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function eb(){return{localeError:kP()}}var Vn=t=>t.charAt(0).toUpperCase()+t.slice(1);function tb(t){let e=Math.abs(t),n=e%10,i=e%100;return i>=11&&i<=19||n===0?"many":n===1?"one":"few"}var xP=()=>{let t={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 e(r,o,a,s){let c=t[r]??null;return c===null?c:{unit:c.unit[o],verb:c.verb[s][a?"inclusive":"notInclusive"]}}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${r.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${o}`}case"invalid_value":return r.values.length===1?`Privalo b\u016Bti ${_(r.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${v(r.values,"|")} pasirinkim\u0173`;case"too_big":{let o=i[r.origin]??r.origin,a=e(r.origin,tb(Number(r.maximum)),r.inclusive??!1,"smaller");if(a?.verb)return`${Vn(o??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.maximum.toString()} ${a.unit??"element\u0173"}`;let s=r.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Vn(o??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${r.maximum.toString()} ${a?.unit}`}case"too_small":{let o=i[r.origin]??r.origin,a=e(r.origin,tb(Number(r.minimum)),r.inclusive??!1,"bigger");if(a?.verb)return`${Vn(o??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.minimum.toString()} ${a.unit??"element\u0173"}`;let s=r.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Vn(o??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${r.minimum.toString()} ${a?.unit}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${r.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${r.keys.length>1?"i":"as"} rakt${r.keys.length>1?"ai":"as"}: ${v(r.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let o=i[r.origin]??r.origin;return`${Vn(o??r.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function rb(){return{localeError:xP()}}var SP=()=>{let t={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 e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${r.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 r.values.length===1?`Invalid input: expected ${_(r.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 ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.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 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.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 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`${r.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"}: ${v(r.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${r.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 ${r.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function nb(){return{localeError:SP()}}var IP=()=>{let t={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function e(r){return t[r]??null}let n={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak sah: dijangka instanceof ${r.expected}, diterima ${s}`:`Input tidak sah: dijangka ${o}, diterima ${s}`}case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${_(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);return a?`Terlalu besar: dijangka ${r.origin??"nilai"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`Terlalu kecil: dijangka ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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}`:`${n[o.format]??r.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${v(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`;default:return"Input tidak sah"}}};function ib(){return{localeError:IP()}}var OP=()=>{let t={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function e(r){return t[r]??null}let n={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ongeldige invoer: verwacht instanceof ${r.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${o}, ontving ${s}`}case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${_(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin),s=r.origin==="date"?"laat":r.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} is`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin),s=r.origin==="date"?"vroeg":r.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${r.origin} ${o}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: verwacht dat ${r.origin} ${o}${r.minimum.toString()} is`}case"invalid_format":{let o=r;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: ${n[o.format]??r.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${r.keys.length>1?"s":""}: ${v(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`;default:return"Ongeldige invoer"}}};function ob(){return{localeError:OP()}}var PP=()=>{let t={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 e(r){return t[r]??null}let n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldig input: forventet instanceof ${r.expected}, fikk ${s}`:`Ugyldig input: forventet ${o}, fikk ${s}`}case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${_(r.values[0])}`:`Ugyldig valg: forventet en av ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);return a?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${v(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}};function ab(){return{localeError:PP()}}var AP=()=>{let t={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 e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`F\xE2sit giren: umulan instanceof ${r.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${s}`}case"invalid_value":return r.values.length===1?`F\xE2sit giren: umulan ${_(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);return a?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${r.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${r.keys.length>1?"s":""}: ${v(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${r.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function sb(){return{localeError:AP()}}var EP=()=>{let t={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 e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${r.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 r.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${_(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${v(r.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} \u0648\u064A`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=r;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`:`${n[o.format]??r.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${r.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${r.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${v(r.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${r.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 ${r.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function cb(){return{localeError:EP()}}var TP=()=>{let t={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 e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${r.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${s}`}case"invalid_value":return r.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${_(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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) ${n[o.format]??r.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${v(r.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${r.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${r.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function ub(){return{localeError:TP()}}var zP=()=>{let t={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Tipo inv\xE1lido: esperado instanceof ${r.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${s}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: esperado ${_(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);return a?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${o}${r.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`Muito pequeno: esperado que ${r.origin} tivesse ${o}${r.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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}`:`${n[o.format]??r.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${v(r.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${r.origin}`;default:return"Campo inv\xE1lido"}}};function lb(){return{localeError:zP()}}function db(t,e,n,i){let r=Math.abs(t),o=r%10,a=r%100;return a>=11&&a<=19?i:o===1?e:o>=2&&o<=4?n:i}var CP=()=>{let t={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 e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${r.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 r.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${_(r.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 ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);if(a){let s=Number(r.maximum),c=db(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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);if(a){let s=Number(r.minimum),c=db(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 ${r.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.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 ${r.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${r.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0438":""}: ${v(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${r.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 ${r.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 fb(){return{localeError:CP()}}var jP=()=>{let t={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${r.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${s}`}case"invalid_value":return r.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${_(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${o}${r.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${o}${r.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${v(r.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${r.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`;default:return"Neveljaven vnos"}}};function mb(){return{localeError:jP()}}var NP=()=>{let t={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 e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${r.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${s}`}case"invalid_value":return r.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${_(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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) ${n[o.format]??r.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${v(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${r.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function pb(){return{localeError:NP()}}var DP=()=>{let t={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 e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.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 ${r.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 r.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 ${_(r.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 ${v(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.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 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.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 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.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 ${r.origin} ${o}${r.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 ${r.origin} ${o}${r.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${r.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${r.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${v(r.keys,", ")}`;case"invalid_key":return`${r.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`${r.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 gb(){return{localeError:DP()}}var UP=()=>{let t={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 e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.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 ${r.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 r.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${_(r.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 ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=e(r.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=e(r.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;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: ${n[o.format]??r.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 ${r.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: ${v(r.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.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 ${r.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function hb(){return{localeError:UP()}}var RP=()=>{let t={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 e(r){return t[r]??null}let n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${r.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${s}`}case"invalid_value":return r.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${_(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${o}${r.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${r.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${r.keys.length>1?"lar":""}: ${v(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${r.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function vb(){return{localeError:RP()}}var LP=()=>{let t={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 e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.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 ${r.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 r.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 ${_(r.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 ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${o}${r.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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.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 ${r.origin} ${a.verb} ${o}${r.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 ${r.origin} \u0431\u0443\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0456":""}: ${v(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${r.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 ${r.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 Jo(){return{localeError:LP()}}function yb(){return Jo()}var ZP=()=>{let t={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 e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${r.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 r.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${_(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${v(r.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${r.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: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${r.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${o}${r.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u0627 ${o}${r.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${r.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${r.keys.length>1?"\u0632":""}: ${v(r.keys,"\u060C ")}`;case"invalid_key":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function bb(){return{localeError:ZP()}}var MP=()=>{let t={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"}};function e(r){return t[r]??null}let n={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${r.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${s}`}case"invalid_value":return r.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${_(r.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);return a?`Juda katta: kutilgan ${r.origin??"qiymat"} ${o}${r.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${r.origin??"qiymat"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`Juda kichik: kutilgan ${r.origin} ${o}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${r.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${r.keys.length>1?"lar":""}: ${v(r.keys,", ")}`;case"invalid_key":return`${r.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${r.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function _b(){return{localeError:MP()}}var qP=()=>{let t={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 e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${r.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 r.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${_(r.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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}`:`${n[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${v(r.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.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 ${r.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function $b(){return{localeError:qP()}}var FP=()=>{let t={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 e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${r.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 r.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${_(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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${n[o.format]??r.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${r.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${v(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${r.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function wb(){return{localeError:FP()}}var VP=()=>{let t={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 e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${r.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 r.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${_(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${r.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${r.keys.length>1?"\u5011":""}\uFF1A${v(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function kb(){return{localeError:VP()}}var BP=()=>{let t={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 e(r){return t[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${r.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 r.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${_(r.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=e(r.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin??"iye"} ${a.verb} ${o}${r.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${r.maximum}`}case"too_small":{let o=r.inclusive?">=":">",a=e(r.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin} ${a.verb} ${o}${r.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${r.minimum}`}case"invalid_format":{let o=r;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: ${n[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${v(r.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${r.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 ${r.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function xb(){return{localeError:BP()}}var Sb,qd=Symbol("ZodOutput"),Fd=Symbol("ZodInput"),Ho=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...n){let i=n[0];return this._map.set(e,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let n=this._map.get(e);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(e),this}get(e){let n=e._zod.parent;if(n){let i={...this.get(n)??{}};delete i.id;let r={...i,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Wo(){return new Ho}(Sb=globalThis).__zod_globalRegistry??(Sb.__zod_globalRegistry=Wo());var oe=globalThis.__zod_globalRegistry;function Vd(t,e){return new t({type:"string",...k(e)})}function Bd(t,e){return new t({type:"string",coerce:!0,...k(e)})}function Go(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...k(e)})}function Kn(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...k(e)})}function Yo(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...k(e)})}function Xo(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...k(e)})}function Qo(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...k(e)})}function ea(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...k(e)})}function Jn(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...k(e)})}function ta(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...k(e)})}function ra(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...k(e)})}function na(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...k(e)})}function ia(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...k(e)})}function oa(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...k(e)})}function aa(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...k(e)})}function sa(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...k(e)})}function ca(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...k(e)})}function ua(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...k(e)})}function Kd(t,e){return new t({type:"string",format:"mac",check:"string_format",abort:!1,...k(e)})}function la(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...k(e)})}function da(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...k(e)})}function fa(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...k(e)})}function ma(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...k(e)})}function pa(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...k(e)})}function ga(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...k(e)})}var Jd={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Hd(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...k(e)})}function Wd(t,e){return new t({type:"string",format:"date",check:"string_format",...k(e)})}function Gd(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...k(e)})}function Yd(t,e){return new t({type:"string",format:"duration",check:"string_format",...k(e)})}function Xd(t,e){return new t({type:"number",checks:[],...k(e)})}function Qd(t,e){return new t({type:"number",coerce:!0,checks:[],...k(e)})}function ef(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...k(e)})}function tf(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float32",...k(e)})}function rf(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float64",...k(e)})}function nf(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"int32",...k(e)})}function of(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"uint32",...k(e)})}function af(t,e){return new t({type:"boolean",...k(e)})}function sf(t,e){return new t({type:"boolean",coerce:!0,...k(e)})}function cf(t,e){return new t({type:"bigint",...k(e)})}function uf(t,e){return new t({type:"bigint",coerce:!0,...k(e)})}function lf(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...k(e)})}function df(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...k(e)})}function ff(t,e){return new t({type:"symbol",...k(e)})}function mf(t,e){return new t({type:"undefined",...k(e)})}function pf(t,e){return new t({type:"null",...k(e)})}function gf(t){return new t({type:"any"})}function hf(t){return new t({type:"unknown"})}function vf(t,e){return new t({type:"never",...k(e)})}function yf(t,e){return new t({type:"void",...k(e)})}function bf(t,e){return new t({type:"date",...k(e)})}function _f(t,e){return new t({type:"date",coerce:!0,...k(e)})}function $f(t,e){return new t({type:"nan",...k(e)})}function Re(t,e){return new jo({check:"less_than",...k(e),value:t,inclusive:!1})}function be(t,e){return new jo({check:"less_than",...k(e),value:t,inclusive:!0})}function Le(t,e){return new No({check:"greater_than",...k(e),value:t,inclusive:!1})}function le(t,e){return new No({check:"greater_than",...k(e),value:t,inclusive:!0})}function ha(t){return Le(0,t)}function va(t){return Re(0,t)}function ya(t){return be(0,t)}function ba(t){return le(0,t)}function ht(t,e){return new ml({check:"multiple_of",...k(e),value:t})}function vt(t,e){return new hl({check:"max_size",...k(e),maximum:t})}function Ze(t,e){return new vl({check:"min_size",...k(e),minimum:t})}function Nt(t,e){return new yl({check:"size_equals",...k(e),size:t})}function Dt(t,e){return new bl({check:"max_length",...k(e),maximum:t})}function We(t,e){return new _l({check:"min_length",...k(e),minimum:t})}function Ut(t,e){return new $l({check:"length_equals",...k(e),length:t})}function fr(t,e){return new wl({check:"string_format",format:"regex",...k(e),pattern:t})}function mr(t){return new kl({check:"string_format",format:"lowercase",...k(t)})}function pr(t){return new xl({check:"string_format",format:"uppercase",...k(t)})}function gr(t,e){return new Sl({check:"string_format",format:"includes",...k(e),includes:t})}function hr(t,e){return new Il({check:"string_format",format:"starts_with",...k(e),prefix:t})}function vr(t,e){return new Ol({check:"string_format",format:"ends_with",...k(e),suffix:t})}function _a(t,e,n){return new Pl({check:"property",property:t,schema:e,...k(n)})}function yr(t,e){return new Al({check:"mime_type",mime:t,...k(e)})}function ze(t){return new El({check:"overwrite",tx:t})}function br(t){return ze(e=>e.normalize(t))}function _r(){return ze(t=>t.trim())}function $r(){return ze(t=>t.toLowerCase())}function wr(){return ze(t=>t.toUpperCase())}function kr(){return ze(t=>Pu(t))}function wf(t,e,n){return new t({type:"array",element:e,...k(n)})}function JP(t,e,n){return new t({type:"union",options:e,...k(n)})}function HP(t,e,n){return new t({type:"union",options:e,inclusive:!1,...k(n)})}function WP(t,e,n,i){return new t({type:"union",options:n,discriminator:e,...k(i)})}function GP(t,e,n){return new t({type:"intersection",left:e,right:n})}function YP(t,e,n,i){let r=n instanceof z,o=r?i:n,a=r?n:null;return new t({type:"tuple",items:e,rest:a,...k(o)})}function XP(t,e,n,i){return new t({type:"record",keyType:e,valueType:n,...k(i)})}function QP(t,e,n,i){return new t({type:"map",keyType:e,valueType:n,...k(i)})}function e0(t,e,n){return new t({type:"set",valueType:e,...k(n)})}function t0(t,e,n){let i=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new t({type:"enum",entries:i,...k(n)})}function r0(t,e,n){return new t({type:"enum",entries:e,...k(n)})}function n0(t,e,n){return new t({type:"literal",values:Array.isArray(e)?e:[e],...k(n)})}function kf(t,e){return new t({type:"file",...k(e)})}function i0(t,e){return new t({type:"transform",transform:e})}function o0(t,e){return new t({type:"optional",innerType:e})}function a0(t,e){return new t({type:"nullable",innerType:e})}function s0(t,e,n){return new t({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():Eu(n)}})}function c0(t,e,n){return new t({type:"nonoptional",innerType:e,...k(n)})}function u0(t,e){return new t({type:"success",innerType:e})}function l0(t,e,n){return new t({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}function d0(t,e,n){return new t({type:"pipe",in:e,out:n})}function f0(t,e){return new t({type:"readonly",innerType:e})}function m0(t,e,n){return new t({type:"template_literal",parts:e,...k(n)})}function p0(t,e){return new t({type:"lazy",getter:e})}function g0(t,e){return new t({type:"promise",innerType:e})}function xf(t,e,n){let i=k(n);return i.abort??(i.abort=!0),new t({type:"custom",check:"custom",fn:e,...i})}function Sf(t,e,n){return new t({type:"custom",check:"custom",fn:e,...k(n)})}function If(t){let e=Ib(n=>(n.addIssue=i=>{if(typeof i=="string")n.issues.push(or(i,n.value,e._zod.def));else{let r=i;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=e),r.continue??(r.continue=!e._zod.def.abort),n.issues.push(or(r))}},t(n.value,n)));return e}function Ib(t,e){let n=new V({check:"custom",...k(e)});return n._zod.check=t,n}function Of(t){let e=new V({check:"describe"});return e._zod.onattach=[n=>{let i=oe.get(n)??{};oe.add(n,{...i,description:t})}],e._zod.check=()=>{},e}function Pf(t){let e=new V({check:"meta"});return e._zod.onattach=[n=>{let i=oe.get(n)??{};oe.add(n,{...i,...t})}],e._zod.check=()=>{},e}function Af(t,e){let n=k(e),i=n.truthy??["true","1","yes","on","y","enabled"],r=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(i=i.map(p=>typeof p=="string"?p.toLowerCase():p),r=r.map(p=>typeof p=="string"?p.toLowerCase():p));let o=new Set(i),a=new Set(r),s=t.Codec??Fn,c=t.Boolean??Mn,u=t.String??jt,l=new u({type:"string",error:n.error}),d=new c({type:"boolean",error:n.error}),f=new s({type:"pipe",in:l,out:d,transform:((p,y)=>{let h=p;return n.case!=="sensitive"&&(h=h.toLowerCase()),o.has(h)?!0:a.has(h)?!1:(y.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:y.value,inst:f,continue:!1}),{})}),reverseTransform:((p,y)=>p===!0?i[0]||"true":r[0]||"false"),error:n.error});return f}function xr(t,e,n,i={}){let r=k(i),o={...k(i),check:"string_format",type:"string",format:e,fn:typeof n=="function"?n:s=>n.test(s),...r};return n instanceof RegExp&&(o.pattern=n),new t(o)}function yt(t){let e=t?.target??"draft-2020-12";return e==="draft-4"&&(e="draft-04"),e==="draft-7"&&(e="draft-07"),{processors:t.processors??{},metadataRegistry:t?.metadata??oe,target:e,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0}}function L(t,e,n={path:[],schemaPath:[]}){var i;let r=t._zod.def,o=e.seen.get(t);if(o)return o.count++,n.schemaPath.includes(t)&&(o.cycle=n.path),o.schema;let a={schema:{},count:1,cycle:void 0,path:n.path};e.seen.set(t,a);let s=t._zod.toJSONSchema?.();if(s)a.schema=s;else{let l={...n,schemaPath:[...n.schemaPath,t],path:n.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,a.schema,l);else{let f=a.schema,p=e.processors[r.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);p(t,e,f,l)}let d=t._zod.parent;d&&(a.ref||(a.ref=d),L(d,e,l),e.seen.get(d).isParent=!0)}let c=e.metadataRegistry.get(t);return c&&Object.assign(a.schema,c),e.io==="input"&&de(t)&&(delete a.schema.examples,delete a.schema.default),e.io==="input"&&a.schema._prefault&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,e.seen.get(t).schema}function bt(t,e){let n=t.seen.get(e);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=new Map;for(let a of t.seen.entries()){let s=t.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 r=a=>{let s=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){let d=t.external.registry.get(a[0])?.id,f=t.external.uri??(y=>y);if(d)return{ref:f(d)};let p=a[1].defId??a[1].schema.id??`schema${t.counter++}`;return a[1].defId=p,{defId:p,ref:`${f("__shared")}#/${s}/${p}`}}if(a[1]===n)return{ref:"#"};let u=`#/${s}/`,l=a[1].schema.id??`__schema${t.counter++}`;return{defId:l,ref:u+l}},o=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:c,defId:u}=r(a);s.def={...s.schema},u&&(s.defId=u);let l=s.schema;for(let d in l)delete l[d];l.$ref=c};if(t.cycles==="throw")for(let a of t.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
|
|
222
|
+
`)}p.write("payload.value = newResult;"),p.write("return payload;");let A=p.compile();return(O,P)=>A(f,O,P)},o,a=Nt,s=!An.jitless,u=s&&Nu.value,l=t.catchall,d;e._zod.parse=(f,p)=>{d??(d=i.value);let y=f.value;return a(y)?s&&u&&p?.async===!1&&p.jitless!==!0?(o||(o=r(t.shape)),f=o(f,p),l?Cy([],y,f,p,d,e):f):n(f,p):(f.issues.push({expected:"object",code:"invalid_type",input:y,inst:e}),f)}});function _y(e,t,n,i){for(let o of e)if(o.issues.length===0)return t.value=o.value,t;let r=e.filter(o=>!yt(o));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(a=>ge(a,i,G())))}),t)}var Vn=g("$ZodUnion",(e,t)=>{z.init(e,t),N(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),N(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),N(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),N(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){let r=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${r.map(o=>Cn(o.source)).join("|")})$`)}});let n=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(r,o)=>{if(n)return i(r,o);let a=!1,s=[];for(let c of t.options){let u=c._zod.run({value:r.value,issues:[]},o);if(u instanceof Promise)s.push(u),a=!0;else{if(u.issues.length===0)return u;s.push(u)}}return a?Promise.all(s).then(c=>_y(c,r,e,o)):_y(s,r,e,o)}});function $y(e,t,n,i){let r=e.filter(o=>o.issues.length===0);return r.length===1?(t.value=r[0].value,t):(r.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(a=>ge(a,i,G())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t)}var kd=g("$ZodXor",(e,t)=>{Vn.init(e,t),t.inclusive=!1;let n=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(r,o)=>{if(n)return i(r,o);let a=!1,s=[];for(let c of t.options){let u=c._zod.run({value:r.value,issues:[]},o);u instanceof Promise?(s.push(u),a=!0):s.push(u)}return a?Promise.all(s).then(c=>$y(c,r,e,o)):$y(s,r,e,o)}}),xd=g("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Vn.init(e,t);let n=e._zod.parse;N(e._zod,"propValues",()=>{let r={};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)){r[s]||(r[s]=new Set);for(let u of c)r[s].add(u)}}return r});let i=sr(()=>{let r=t.options,o=new Map;for(let a of r){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=(r,o)=>{let a=r.value;if(!Nt(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;let s=i.value.get(a?.[t.discriminator]);return s?s._zod.run(r,o):t.unionFallback?n(r,o):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),r)}}),Sd=g("$ZodIntersection",(e,t)=>{z.init(e,t),e._zod.parse=(n,i)=>{let r=n.value,o=t.left._zod.run({value:r,issues:[]},i),a=t.right._zod.run({value:r,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([c,u])=>wy(n,c,u)):wy(n,o,a)}});function Rl(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(vt(e)&&vt(t)){let n=Object.keys(t),i=Object.keys(e).filter(o=>n.indexOf(o)!==-1),r={...e,...t};for(let o of i){let a=Rl(e[o],t[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r[o]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let i=0;i<e.length;i++){let r=e[i],o=t[i],a=Rl(r,o);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function wy(e,t,n){let i=new Map,r;for(let s of t.issues)if(s.code==="unrecognized_keys"){r??(r=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 n.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&&r&&e.issues.push({...r,keys:o}),yt(e))return e;let a=Rl(t.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var Go=g("$ZodTuple",(e,t)=>{z.init(e,t);let n=t.items;e._zod.parse=(i,r)=>{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=[...n].reverse().findIndex(l=>l._zod.optin!=="optional"),c=s===-1?0:n.length-s;if(!t.rest){let l=o.length>n.length,d=o.length<c-1;if(l||d)return i.issues.push({...l?{code:"too_big",maximum:n.length,inclusive:!0}:{code:"too_small",minimum:n.length},input:o,inst:e,origin:"array"}),i}let u=-1;for(let l of n){if(u++,u>=o.length&&u>=c)continue;let d=l._zod.run({value:o[u],issues:[]},r);d instanceof Promise?a.push(d.then(f=>Fo(f,i,u))):Fo(d,i,u)}if(t.rest){let l=o.slice(n.length);for(let d of l){u++;let f=t.rest._zod.run({value:d,issues:[]},r);f instanceof Promise?a.push(f.then(p=>Fo(p,i,u))):Fo(f,i,u)}}return a.length?Promise.all(a).then(()=>i):i}});function Fo(e,t,n){e.issues.length&&t.issues.push(..._e(n,e.issues)),t.value[n]=e.value}var Id=g("$ZodRecord",(e,t)=>{z.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!vt(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;let o=[],a=t.keyType._zod.values;if(a){n.value={};let s=new Set;for(let u of a)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){s.add(typeof u=="number"?u.toString():u);let l=t.valueType._zod.run({value:r[u],issues:[]},i);l instanceof Promise?o.push(l.then(d=>{d.issues.length&&n.issues.push(..._e(u,d.issues)),n.value[u]=d.value})):(l.issues.length&&n.issues.push(..._e(u,l.issues)),n.value[u]=l.value)}let c;for(let u in r)s.has(u)||(c=c??[],c.push(u));c&&c.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:c})}else{n.value={};for(let s of Reflect.ownKeys(r)){if(s==="__proto__")continue;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"&&Zo.test(s)&&c.issues.length){let d=t.keyType._zod.run({value:Number(s),issues:[]},i);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(c=d)}if(c.issues.length){t.mode==="loose"?n.value[s]=r[s]:n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(d=>ge(d,i,G())),input:s,path:[s],inst:e});continue}let l=t.valueType._zod.run({value:r[s],issues:[]},i);l instanceof Promise?o.push(l.then(d=>{d.issues.length&&n.issues.push(..._e(s,d.issues)),n.value[c.value]=d.value})):(l.issues.length&&n.issues.push(..._e(s,l.issues)),n.value[c.value]=l.value)}}return o.length?Promise.all(o).then(()=>n):n}}),Od=g("$ZodMap",(e,t)=>{z.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),n;let o=[];n.value=new Map;for(let[a,s]of r){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,d])=>{ky(l,d,n,a,r,e,i)})):ky(c,u,n,a,r,e,i)}return o.length?Promise.all(o).then(()=>n):n}});function ky(e,t,n,i,r,o,a){e.issues.length&&(jn.has(typeof i)?n.issues.push(..._e(i,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:r,inst:o,issues:e.issues.map(s=>ge(s,a,G()))})),t.issues.length&&(jn.has(typeof i)?n.issues.push(..._e(i,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:o,key:i,issues:t.issues.map(s=>ge(s,a,G()))})),n.value.set(e.value,t.value)}var Pd=g("$ZodSet",(e,t)=>{z.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),n;let o=[];n.value=new Set;for(let a of r){let s=t.valueType._zod.run({value:a,issues:[]},i);s instanceof Promise?o.push(s.then(c=>xy(c,n))):xy(s,n)}return o.length?Promise.all(o).then(()=>n):n}});function xy(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Ed=g("$ZodEnum",(e,t)=>{z.init(e,t);let n=zn(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(r=>jn.has(typeof r)).map(r=>typeof r=="string"?Ie(r):r.toString()).join("|")})$`),e._zod.parse=(r,o)=>{let a=r.value;return i.has(a)||r.issues.push({code:"invalid_value",values:n,input:a,inst:e}),r}}),Ad=g("$ZodLiteral",(e,t)=>{if(z.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?Ie(i):i?Ie(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,r)=>{let o=i.value;return n.has(o)||i.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),i}}),Td=g("$ZodFile",(e,t)=>{z.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return r instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),n}}),zd=g("$ZodTransform",(e,t)=>{z.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new pt(e.constructor.name);let r=t.transform(n.value,n);if(i.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(n.value=a,n));if(r instanceof Promise)throw new je;return n.value=r,n}});function Sy(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var Yo=g("$ZodOptional",(e,t)=>{z.init(e,t),e._zod.optin="optional",e._zod.optout="optional",N(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),N(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${Cn(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>{if(t.innerType._zod.optin==="optional"){let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>Sy(o,n.value)):Sy(r,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,i)}}),Cd=g("$ZodExactOptional",(e,t)=>{Yo.init(e,t),N(e._zod,"values",()=>t.innerType._zod.values),N(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,i)=>t.innerType._zod.run(n,i)}),jd=g("$ZodNullable",(e,t)=>{z.init(e,t),N(e._zod,"optin",()=>t.innerType._zod.optin),N(e._zod,"optout",()=>t.innerType._zod.optout),N(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${Cn(n.source)}|null)$`):void 0}),N(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i)}),Nd=g("$ZodDefault",(e,t)=>{z.init(e,t),e._zod.optin="optional",N(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);if(n.value===void 0)return n.value=t.defaultValue,n;let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>Iy(o,t)):Iy(r,t)}});function Iy(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Dd=g("$ZodPrefault",(e,t)=>{z.init(e,t),e._zod.optin="optional",N(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>(i.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,i))}),Ud=g("$ZodNonOptional",(e,t)=>{z.init(e,t),N(e._zod,"values",()=>{let n=t.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>Oy(o,e)):Oy(r,e)}});function Oy(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 Rd=g("$ZodSuccess",(e,t)=>{z.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new pt("ZodSuccess");let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.issues.length===0,n)):(n.value=r.issues.length===0,n)}}),Ld=g("$ZodCatch",(e,t)=>{z.init(e,t),N(e._zod,"optin",()=>t.innerType._zod.optin),N(e._zod,"optout",()=>t.innerType._zod.optout),N(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(a=>ge(a,i,G()))},input:n.value}),n.issues=[]),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(o=>ge(o,i,G()))},input:n.value}),n.issues=[]),n)}}),Zd=g("$ZodNaN",(e,t)=>{z.init(e,t),e._zod.parse=(n,i)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),Md=g("$ZodPipe",(e,t)=>{z.init(e,t),N(e._zod,"values",()=>t.in._zod.values),N(e._zod,"optin",()=>t.in._zod.optin),N(e._zod,"optout",()=>t.out._zod.optout),N(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if(i.direction==="backward"){let o=t.out._zod.run(n,i);return o instanceof Promise?o.then(a=>Vo(a,t.in,i)):Vo(o,t.in,i)}let r=t.in._zod.run(n,i);return r instanceof Promise?r.then(o=>Vo(o,t.out,i)):Vo(r,t.out,i)}});function Vo(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var Bn=g("$ZodCodec",(e,t)=>{z.init(e,t),N(e._zod,"values",()=>t.in._zod.values),N(e._zod,"optin",()=>t.in._zod.optin),N(e._zod,"optout",()=>t.out._zod.optout),N(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if((i.direction||"forward")==="forward"){let o=t.in._zod.run(n,i);return o instanceof Promise?o.then(a=>Bo(a,t,i)):Bo(o,t,i)}else{let o=t.out._zod.run(n,i);return o instanceof Promise?o.then(a=>Bo(a,t,i)):Bo(o,t,i)}}});function Bo(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let r=t.transform(e.value,e);return r instanceof Promise?r.then(o=>Ko(e,o,t.out,n)):Ko(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(o=>Ko(e,o,t.in,n)):Ko(e,r,t.in,n)}}function Ko(e,t,n,i){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},i)}var qd=g("$ZodReadonly",(e,t)=>{z.init(e,t),N(e._zod,"propValues",()=>t.innerType._zod.propValues),N(e._zod,"values",()=>t.innerType._zod.values),N(e._zod,"optin",()=>t.innerType?._zod?.optin),N(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(Py):Py(r)}});function Py(e){return e.value=Object.freeze(e.value),e}var Fd=g("$ZodTemplateLiteral",(e,t)=>{z.init(e,t);let n=[];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 r=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let o=r.startsWith("^")?1:0,a=r.endsWith("$")?r.length-1:r.length;n.push(r.slice(o,a))}else if(i===null||Uu.has(typeof i))n.push(Ie(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(i,r)=>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)}),Vd=g("$ZodFunction",(e,t)=>(z.init(e,t),e._def=t,e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...i){let r=e._def.input?Eo(e._def.input,i):i,o=Reflect.apply(n,this,r);return e._def.output?Eo(e._def.output,o):o}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){let r=e._def.input?await Ao(e._def.input,i):i,o=await Reflect.apply(n,this,r);return e._def.output?await Ao(e._def.output,o):o}},e._zod.parse=(n,i)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let i=e.constructor;return Array.isArray(n[0])?new i({type:"function",input:new Go({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new i({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let i=e.constructor;return new i({type:"function",input:e._def.input,output:n})},e)),Bd=g("$ZodPromise",(e,t)=>{z.init(e,t),e._zod.parse=(n,i)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]},i))}),Kd=g("$ZodLazy",(e,t)=>{z.init(e,t),N(e._zod,"innerType",()=>t.getter()),N(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),N(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),N(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),N(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,i)=>e._zod.innerType._zod.run(n,i)}),Hd=g("$ZodCustom",(e,t)=>{B.init(e,t),z.init(e,t),e._zod.parse=(n,i)=>n,e._zod.check=n=>{let i=n.value,r=t.fn(i);if(r instanceof Promise)return r.then(o=>Ey(o,n,i,e));Ey(r,n,i,e)}});function Ey(e,t,n,i){if(!e){let r={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(r.params=i._zod.def.params),t.issues.push(cr(r))}}var Hn={};He(Hn,{ar:()=>Ny,az:()=>Dy,be:()=>Ry,bg:()=>Ly,ca:()=>Zy,cs:()=>My,da:()=>qy,de:()=>Fy,en:()=>Xo,eo:()=>Vy,es:()=>By,fa:()=>Ky,fi:()=>Hy,fr:()=>Jy,frCA:()=>Wy,he:()=>Gy,hu:()=>Yy,hy:()=>Qy,id:()=>eb,is:()=>tb,it:()=>rb,ja:()=>nb,ka:()=>ib,kh:()=>ob,km:()=>Qo,ko:()=>ab,lt:()=>cb,mk:()=>ub,ms:()=>lb,nl:()=>db,no:()=>fb,ota:()=>mb,pl:()=>gb,ps:()=>pb,pt:()=>hb,ru:()=>yb,sl:()=>bb,sv:()=>_b,ta:()=>$b,th:()=>wb,tr:()=>kb,ua:()=>xb,uk:()=>ea,ur:()=>Sb,uz:()=>Ib,vi:()=>Ob,yo:()=>Ab,zhCN:()=>Pb,zhTW:()=>Eb});var aP=()=>{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(r){return e[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.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 ${r.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 r.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 ${_(r.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: ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.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 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.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 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;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 "${r.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}`:`${n[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${r.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${r.keys.length>1?"\u0629":""}: ${v(r.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.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 ${r.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function Ny(){return{localeError:aP()}}var sP=()=>{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(r){return e[r]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${r.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${s}`}case"invalid_value":return r.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${_(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${r.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${r.keys.length>1?"lar":""}: ${v(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${r.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function Dy(){return{localeError:sP()}}function Uy(e,t,n,i){let r=Math.abs(e),o=r%10,a=r%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?n:i}var cP=()=>{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(r){return e[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${r.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 r.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 ${_(r.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 ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),c=Uy(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 ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${r.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 ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),c=Uy(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 ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${r.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 ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${r.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${v(r.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${r.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 ${r.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function Ry(){return{localeError:cP()}}var uP=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(r){return e[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${r.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 r.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${_(r.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 ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${r.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 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${r.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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} ${n[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${r.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u043E\u0432\u0435":""}: ${v(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${r.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 ${r.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function Ly(){return{localeError:uP()}}var lP=()=>{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(r){return e[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${r.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${s}`}case"invalid_value":return r.values.length===1?`Valor inv\xE0lid: s'esperava ${_(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${v(r.values," o ")}`;case"too_big":{let o=r.inclusive?"com a m\xE0xim":"menys de",a=t(r.origin);return a?`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xE9s ${o} ${r.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(r.origin);return a?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${o} ${r.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${v(r.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${r.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${r.origin}`;default:return"Entrada inv\xE0lida"}}};function Zy(){return{localeError:lP()}}var dP=()=>{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(r){return e[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${r.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${s}`}case"invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${_(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${r.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${v(r.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${r.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${r.origin}`;default:return"Neplatn\xFD vstup"}}};function My(){return{localeError:dP()}}var fP=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(r){return e[r]??null}let n={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldigt input: forventede instanceof ${r.expected}, fik ${s}`:`Ugyldigt input: forventede ${o}, fik ${s}`}case"invalid_value":return r.values.length===1?`Ugyldig v\xE6rdi: forventede ${_(r.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin),s=i[r.origin]??r.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${o} ${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin),s=i[r.origin]??r.origin;return a?`For lille: forventede ${s} ${a.verb} ${o} ${r.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} havde ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${v(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${r.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${r.origin}`;default:return"Ugyldigt input"}}};function qy(){return{localeError:fP()}}var mP=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(r){return e[r]??null}let n={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${r.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${s}`}case"invalid_value":return r.values.length===1?`Ung\xFCltige Eingabe: erwartet ${_(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ist`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ist`}case"invalid_format":{let o=r;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: ${n[o.format]??r.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${v(r.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${r.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${r.origin}`;default:return"Ung\xFCltige Eingabe"}}};function Fy(){return{localeError:mP()}}var pP=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(r){return e[r]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return`Invalid input: expected ${o}, received ${s}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${_(r.values[0])}`:`Invalid option: expected one of ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Too big: expected ${r.origin??"value"} to have ${o}${r.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Too small: expected ${r.origin} to have ${o}${r.minimum.toString()} ${a.unit}`:`Too small: expected ${r.origin} to be ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${r.divisor}`;case"unrecognized_keys":return`Unrecognized key${r.keys.length>1?"s":""}: ${v(r.keys,", ")}`;case"invalid_key":return`Invalid key in ${r.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${r.origin}`;default:return"Invalid input"}}};function Xo(){return{localeError:pP()}}var gP=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(r){return e[r]??null}let n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${r.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${s}`}case"invalid_value":return r.values.length===1?`Nevalida enigo: atendi\u011Dis ${_(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${o}${r.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${o}${r.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${r.origin} estu ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${r.divisor}`;case"unrecognized_keys":return`Nekonata${r.keys.length>1?"j":""} \u015Dlosilo${r.keys.length>1?"j":""}: ${v(r.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${r.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${r.origin}`;default:return"Nevalida enigo"}}};function Vy(){return{localeError:gP()}}var hP=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(r){return e[r]??null}let n={regex:"entrada",email:"direcci\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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${r.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${s}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: se esperaba ${_(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin),s=i[r.origin]??r.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${o}${r.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin),s=i[r.origin]??r.origin;return a?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${o}${r.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${v(r.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${i[r.origin]??r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${i[r.origin]??r.origin}`;default:return"Entrada inv\xE1lida"}}};function By(){return{localeError:hP()}}var vP=()=>{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(r){return e[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${r.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 r.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${_(r.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 ${v(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=r;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`:`${n[o.format]??r.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 ${r.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${r.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${v(r.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${r.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 ${r.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function Ky(){return{localeError:vP()}}var yP=()=>{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(r){return e[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Virheellinen tyyppi: odotettiin instanceof ${r.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${s}`}case"invalid_value":return r.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${_(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${o}${r.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${o}${r.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${v(r.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function Hy(){return{localeError:yP()}}var bP=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let n={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={nan:"NaN",number:"nombre",array:"tableau"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : instanceof ${r.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${s} re\xE7u`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : ${_(r.values[0])} attendu`:`Option invalide : une valeur parmi ${v(r.values,"|")} attendue`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Trop grand : ${r.origin??"valeur"} doit ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${r.origin??"valeur"} doit \xEAtre ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Trop petit : ${r.origin} doit ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : ${r.origin} doit \xEAtre ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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}`:`${n[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${v(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function Jy(){return{localeError:bP()}}var _P=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : attendu instanceof ${r.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${s}`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : attendu ${_(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u2264":"<",a=t(r.origin);return a?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${o}${r.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"\u2265":">",a=t(r.origin);return a?`Trop petit : attendu que ${r.origin} ait ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${r.origin} soit ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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}`:`${n[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${v(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function Wy(){return{localeError:_P()}}var $P=()=>{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"}},n=u=>u?e[u]:void 0,i=u=>{let l=n(u);return l?l.label:u??e.unknown.label},r=u=>`\u05D4${i(u)}`,o=u=>(n(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,d=c[l??""]??i(l),f=$(u.input),p=c[f]??e[f]?.label??f;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 ${p}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`}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 ${_(u.values[0])}`;let l=u.values.map(p=>_(p));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 d=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 ${d}`}case"too_big":{let l=a(u.origin),d=r(u.origin??"value");if(u.origin==="string")return`${l?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \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 y=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: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${y}`}if(u.origin==="array"||u.origin==="set"){let y=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",h=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: ${d} ${y} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let f=u.inclusive?"<=":"<",p=o(u.origin??"value");return l?.unit?`${l.longLabel} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${u.maximum.toString()} ${l.unit}`:`${l?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${u.maximum.toString()}`}case"too_small":{let l=a(u.origin),d=r(u.origin??"value");if(u.origin==="string")return`${l?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \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 y=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: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${y}`}if(u.origin==="array"||u.origin==="set"){let y=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let b=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${y} \u05DC\u05D4\u05DB\u05D9\u05DC ${b}`}let h=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: ${d} ${y} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let f=u.inclusive?">=":">",p=o(u.origin??"value");return l?.unit?`${l.shortLabel} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${u.minimum.toString()} ${l.unit}`:`${l?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${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 d=s[l.format],f=d?.label??l.format,y=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${f} \u05DC\u05D0 ${y}`}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"}: ${v(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${r(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function Gy(){return{localeError:$P()}}var wP=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(r){return e[r]??null}let n={regex:"bemenet",email:"email c\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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${r.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return r.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${_(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${r.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${r.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${o}${r.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} t\xFAl kicsi ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${r.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>1?"s":""}: ${v(r.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${r.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${r.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function Yy(){return{localeError:wP()}}function Xy(e,t,n){return Math.abs(e)===1?t:n}function pr(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=e[e.length-1];return e+(t.includes(n)?"\u0576":"\u0568")}var kP=()=>{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(r){return e[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.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 ${r.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 r.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 ${_(r.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 ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),c=Xy(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 ${pr(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${r.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 ${pr(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),c=Xy(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 ${pr(r.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${r.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 ${pr(r.origin)} \u056C\u056B\u0576\u056B ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.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 ${r.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${r.keys.length>1?"\u0576\u0565\u0580":""}. ${v(r.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${pr(r.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 ${pr(r.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function Qy(){return{localeError:kP()}}var xP=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(r){return e[r]??null}let n={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak valid: diharapkan instanceof ${r.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${o}, diterima ${s}`}case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${_(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${o}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: diharapkan ${r.origin} memiliki ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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}`:`${n[o.format]??r.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${v(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`;default:return"Input tidak valid"}}};function eb(){return{localeError:xP()}}var SP=()=>{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(r){return e[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${r.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${o}`}case"invalid_value":return r.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${_(r.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} hafi ${o}${r.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} s\xE9 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} hafi ${o}${r.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} s\xE9 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${r.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${r.keys.length>1?"ir lyklar":"ur lykill"}: ${v(r.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${r.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${r.origin}`;default:return"Rangt gildi"}}};function tb(){return{localeError:SP()}}var IP=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(r){return e[r]??null}let n={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Input non valido: atteso instanceof ${r.expected}, ricevuto ${s}`:`Input non valido: atteso ${o}, ricevuto ${s}`}case"invalid_value":return r.values.length===1?`Input non valido: atteso ${_(r.values[0])}`:`Opzione non valida: atteso uno tra ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Troppo grande: ${r.origin??"valore"} deve avere ${o}${r.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Troppo piccolo: ${r.origin} deve avere ${o}${r.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${r.origin} deve essere ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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}`:`Invalid ${n[o.format]??r.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case"unrecognized_keys":return`Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${v(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`;default:return"Input non valido"}}};function rb(){return{localeError:IP()}}var OP=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(r){return e[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${r.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 r.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${_(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${v(r.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=r.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(r.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${a.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=r.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(r.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${a.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=r;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${n[o.format]??r.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${r.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${r.keys.length>1?"\u7FA4":""}: ${v(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function nb(){return{localeError:OP()}}var PP=()=>{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(r){return e[r]??null}let n={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 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.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 ${r.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 r.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 ${_(r.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 ${v(r.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.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 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${o}${r.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 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.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 ${r.origin} ${a.verb} ${o}${r.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 ${r.origin} \u10D8\u10E7\u10DD\u10E1 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 ${n[o.format]??r.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 ${r.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${r.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${v(r.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${r.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 ${r.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function ib(){return{localeError:PP()}}var EP=()=>{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(r){return e[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.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 ${r.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 r.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 ${_(r.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 ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${v(r.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 ${r.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 ${r.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 Qo(){return{localeError:EP()}}function ob(){return Qo()}var AP=()=>{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(r){return e[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${r.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 r.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${_(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${v(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(r.origin),c=s?.unit??"\uC694\uC18C";return s?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${c} ${o}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${o}${a}`}case"too_small":{let o=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(r.origin),c=s?.unit??"\uC694\uC18C";return s?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${c} ${o}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${o}${a}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${r.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${v(r.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${r.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${r.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function ab(){return{localeError:AP()}}var Kn=e=>e.charAt(0).toUpperCase()+e.slice(1);function sb(e){let t=Math.abs(e),n=t%10,i=t%100;return i>=11&&i<=19||n===0?"many":n===1?"one":"few"}var TP=()=>{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(r,o,a,s){let c=e[r]??null;return c===null?c:{unit:c.unit[o],verb:c.verb[s][a?"inclusive":"notInclusive"]}}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${r.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${o}`}case"invalid_value":return r.values.length===1?`Privalo b\u016Bti ${_(r.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${v(r.values,"|")} pasirinkim\u0173`;case"too_big":{let o=i[r.origin]??r.origin,a=t(r.origin,sb(Number(r.maximum)),r.inclusive??!1,"smaller");if(a?.verb)return`${Kn(o??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.maximum.toString()} ${a.unit??"element\u0173"}`;let s=r.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Kn(o??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${r.maximum.toString()} ${a?.unit}`}case"too_small":{let o=i[r.origin]??r.origin,a=t(r.origin,sb(Number(r.minimum)),r.inclusive??!1,"bigger");if(a?.verb)return`${Kn(o??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.minimum.toString()} ${a.unit??"element\u0173"}`;let s=r.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Kn(o??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${r.minimum.toString()} ${a?.unit}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${r.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${r.keys.length>1?"i":"as"} rakt${r.keys.length>1?"ai":"as"}: ${v(r.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let o=i[r.origin]??r.origin;return`${Kn(o??r.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function cb(){return{localeError:TP()}}var zP=()=>{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(r){return e[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${r.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 r.values.length===1?`Invalid input: expected ${_(r.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 ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.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 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.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 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`${r.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"}: ${v(r.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${r.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 ${r.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function ub(){return{localeError:zP()}}var CP=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(r){return e[r]??null}let n={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak sah: dijangka instanceof ${r.expected}, diterima ${s}`:`Input tidak sah: dijangka ${o}, diterima ${s}`}case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${_(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: dijangka ${r.origin??"nilai"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: dijangka ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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}`:`${n[o.format]??r.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${v(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`;default:return"Input tidak sah"}}};function lb(){return{localeError:CP()}}var jP=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(r){return e[r]??null}let n={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ongeldige invoer: verwacht instanceof ${r.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${o}, ontving ${s}`}case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${_(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin),s=r.origin==="date"?"laat":r.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} is`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin),s=r.origin==="date"?"vroeg":r.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${r.origin} ${o}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: verwacht dat ${r.origin} ${o}${r.minimum.toString()} is`}case"invalid_format":{let o=r;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: ${n[o.format]??r.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${r.keys.length>1?"s":""}: ${v(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`;default:return"Ongeldige invoer"}}};function db(){return{localeError:jP()}}var NP=()=>{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(r){return e[r]??null}let n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldig input: forventet instanceof ${r.expected}, fikk ${s}`:`Ugyldig input: forventet ${o}, fikk ${s}`}case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${_(r.values[0])}`:`Ugyldig valg: forventet en av ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${v(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}};function fb(){return{localeError:NP()}}var DP=()=>{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(r){return e[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`F\xE2sit giren: umulan instanceof ${r.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${s}`}case"invalid_value":return r.values.length===1?`F\xE2sit giren: umulan ${_(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${r.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${r.keys.length>1?"s":""}: ${v(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${r.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function mb(){return{localeError:DP()}}var UP=()=>{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(r){return e[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${r.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 r.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${_(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${v(r.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} \u0648\u064A`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=r;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`:`${n[o.format]??r.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${r.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${r.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${v(r.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${r.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 ${r.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function pb(){return{localeError:UP()}}var RP=()=>{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(r){return e[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${r.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${s}`}case"invalid_value":return r.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${_(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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) ${n[o.format]??r.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${v(r.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${r.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${r.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function gb(){return{localeError:RP()}}var LP=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(r){return e[r]??null}let n={regex:"padr\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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Tipo inv\xE1lido: esperado instanceof ${r.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${s}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: esperado ${_(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${o}${r.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Muito pequeno: esperado que ${r.origin} tivesse ${o}${r.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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}`:`${n[o.format]??r.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${v(r.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${r.origin}`;default:return"Campo inv\xE1lido"}}};function hb(){return{localeError:LP()}}function vb(e,t,n,i){let r=Math.abs(e),o=r%10,a=r%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?n:i}var ZP=()=>{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(r){return e[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${r.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 r.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${_(r.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 ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),c=vb(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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),c=vb(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 ${r.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.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 ${r.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${r.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0438":""}: ${v(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${r.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 ${r.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 yb(){return{localeError:ZP()}}var MP=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(r){return e[r]??null}let n={regex:"vnos",email:"e-po\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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${r.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${s}`}case"invalid_value":return r.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${_(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${o}${r.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${o}${r.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${v(r.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${r.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`;default:return"Neveljaven vnos"}}};function bb(){return{localeError:MP()}}var qP=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(r){return e[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${r.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${s}`}case"invalid_value":return r.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${_(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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) ${n[o.format]??r.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${v(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${r.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function _b(){return{localeError:qP()}}var FP=()=>{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(r){return e[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.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 ${r.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 r.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 ${_(r.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 ${v(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.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 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.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 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.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 ${r.origin} ${o}${r.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 ${r.origin} ${o}${r.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${r.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${r.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${v(r.keys,", ")}`;case"invalid_key":return`${r.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`${r.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 $b(){return{localeError:FP()}}var VP=()=>{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(r){return e[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.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 ${r.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 r.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${_(r.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 ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;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: ${n[o.format]??r.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 ${r.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: ${v(r.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.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 ${r.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function wb(){return{localeError:VP()}}var BP=()=>{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(r){return e[r]??null}let n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${r.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${s}`}case"invalid_value":return r.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${_(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${o}${r.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${r.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${r.keys.length>1?"lar":""}: ${v(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${r.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function kb(){return{localeError:BP()}}var KP=()=>{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(r){return e[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.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 ${r.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 r.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 ${_(r.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 ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${o}${r.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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.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 ${r.origin} ${a.verb} ${o}${r.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 ${r.origin} \u0431\u0443\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0456":""}: ${v(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${r.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 ${r.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 ea(){return{localeError:KP()}}function xb(){return ea()}var HP=()=>{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(r){return e[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${r.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 r.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${_(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${v(r.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${r.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: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${r.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${o}${r.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u0627 ${o}${r.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${r.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${r.keys.length>1?"\u0632":""}: ${v(r.keys,"\u060C ")}`;case"invalid_key":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function Sb(){return{localeError:HP()}}var JP=()=>{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"}};function t(r){return e[r]??null}let n={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${r.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${s}`}case"invalid_value":return r.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${_(r.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Juda katta: kutilgan ${r.origin??"qiymat"} ${o}${r.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${r.origin??"qiymat"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Juda kichik: kutilgan ${r.origin} ${o}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${r.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${r.keys.length>1?"lar":""}: ${v(r.keys,", ")}`;case"invalid_key":return`${r.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${r.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function Ib(){return{localeError:JP()}}var WP=()=>{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(r){return e[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${r.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 r.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${_(r.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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}`:`${n[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${v(r.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.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 ${r.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function Ob(){return{localeError:WP()}}var GP=()=>{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(r){return e[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${r.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 r.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${_(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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${n[o.format]??r.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${r.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${v(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${r.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function Pb(){return{localeError:GP()}}var YP=()=>{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(r){return e[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${r.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 r.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${_(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${r.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${r.keys.length>1?"\u5011":""}\uFF1A${v(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function Eb(){return{localeError:YP()}}var XP=()=>{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(r){return e[r]??null}let n={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 r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${r.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 r.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${_(r.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${v(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin??"iye"} ${a.verb} ${o}${r.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${r.maximum}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin} ${a.verb} ${o}${r.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${r.minimum}`}case"invalid_format":{let o=r;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: ${n[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${v(r.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${r.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 ${r.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function Ab(){return{localeError:XP()}}var Tb,Jd=Symbol("ZodOutput"),Wd=Symbol("ZodInput"),ta=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let i=n[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 n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let i={...this.get(n)??{}};delete i.id;let r={...i,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function ra(){return new ta}(Tb=globalThis).__zod_globalRegistry??(Tb.__zod_globalRegistry=ra());var ae=globalThis.__zod_globalRegistry;function Gd(e,t){return new e({type:"string",...k(t)})}function Yd(e,t){return new e({type:"string",coerce:!0,...k(t)})}function na(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...k(t)})}function Jn(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...k(t)})}function ia(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...k(t)})}function oa(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...k(t)})}function aa(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...k(t)})}function sa(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...k(t)})}function Wn(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...k(t)})}function ca(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...k(t)})}function ua(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...k(t)})}function la(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...k(t)})}function da(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...k(t)})}function fa(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...k(t)})}function ma(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...k(t)})}function pa(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...k(t)})}function ga(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...k(t)})}function ha(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...k(t)})}function Xd(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...k(t)})}function va(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...k(t)})}function ya(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...k(t)})}function ba(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...k(t)})}function _a(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...k(t)})}function $a(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...k(t)})}function wa(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...k(t)})}var Qd={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function ef(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...k(t)})}function tf(e,t){return new e({type:"string",format:"date",check:"string_format",...k(t)})}function rf(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...k(t)})}function nf(e,t){return new e({type:"string",format:"duration",check:"string_format",...k(t)})}function of(e,t){return new e({type:"number",checks:[],...k(t)})}function af(e,t){return new e({type:"number",coerce:!0,checks:[],...k(t)})}function sf(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...k(t)})}function cf(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...k(t)})}function uf(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...k(t)})}function lf(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...k(t)})}function df(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...k(t)})}function ff(e,t){return new e({type:"boolean",...k(t)})}function mf(e,t){return new e({type:"boolean",coerce:!0,...k(t)})}function pf(e,t){return new e({type:"bigint",...k(t)})}function gf(e,t){return new e({type:"bigint",coerce:!0,...k(t)})}function hf(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...k(t)})}function vf(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...k(t)})}function yf(e,t){return new e({type:"symbol",...k(t)})}function bf(e,t){return new e({type:"undefined",...k(t)})}function _f(e,t){return new e({type:"null",...k(t)})}function $f(e){return new e({type:"any"})}function wf(e){return new e({type:"unknown"})}function kf(e,t){return new e({type:"never",...k(t)})}function xf(e,t){return new e({type:"void",...k(t)})}function Sf(e,t){return new e({type:"date",...k(t)})}function If(e,t){return new e({type:"date",coerce:!0,...k(t)})}function Of(e,t){return new e({type:"nan",...k(t)})}function Me(e,t){return new Mo({check:"less_than",...k(t),value:e,inclusive:!1})}function $e(e,t){return new Mo({check:"less_than",...k(t),value:e,inclusive:!0})}function qe(e,t){return new qo({check:"greater_than",...k(t),value:e,inclusive:!1})}function de(e,t){return new qo({check:"greater_than",...k(t),value:e,inclusive:!0})}function ka(e){return qe(0,e)}function xa(e){return Me(0,e)}function Sa(e){return $e(0,e)}function Ia(e){return de(0,e)}function bt(e,t){return new bl({check:"multiple_of",...k(t),value:e})}function _t(e,t){return new wl({check:"max_size",...k(t),maximum:e})}function Fe(e,t){return new kl({check:"min_size",...k(t),minimum:e})}function Rt(e,t){return new xl({check:"size_equals",...k(t),size:e})}function Lt(e,t){return new Sl({check:"max_length",...k(t),maximum:e})}function Xe(e,t){return new Il({check:"min_length",...k(t),minimum:e})}function Zt(e,t){return new Ol({check:"length_equals",...k(t),length:e})}function gr(e,t){return new Pl({check:"string_format",format:"regex",...k(t),pattern:e})}function hr(e){return new El({check:"string_format",format:"lowercase",...k(e)})}function vr(e){return new Al({check:"string_format",format:"uppercase",...k(e)})}function yr(e,t){return new Tl({check:"string_format",format:"includes",...k(t),includes:e})}function br(e,t){return new zl({check:"string_format",format:"starts_with",...k(t),prefix:e})}function _r(e,t){return new Cl({check:"string_format",format:"ends_with",...k(t),suffix:e})}function Oa(e,t,n){return new jl({check:"property",property:e,schema:t,...k(n)})}function $r(e,t){return new Nl({check:"mime_type",mime:e,...k(t)})}function Ne(e){return new Dl({check:"overwrite",tx:e})}function wr(e){return Ne(t=>t.normalize(e))}function kr(){return Ne(e=>e.trim())}function xr(){return Ne(e=>e.toLowerCase())}function Sr(){return Ne(e=>e.toUpperCase())}function Ir(){return Ne(e=>ju(e))}function Pf(e,t,n){return new e({type:"array",element:t,...k(n)})}function e0(e,t,n){return new e({type:"union",options:t,...k(n)})}function t0(e,t,n){return new e({type:"union",options:t,inclusive:!1,...k(n)})}function r0(e,t,n,i){return new e({type:"union",options:n,discriminator:t,...k(i)})}function n0(e,t,n){return new e({type:"intersection",left:t,right:n})}function i0(e,t,n,i){let r=n instanceof z,o=r?i:n,a=r?n:null;return new e({type:"tuple",items:t,rest:a,...k(o)})}function o0(e,t,n,i){return new e({type:"record",keyType:t,valueType:n,...k(i)})}function a0(e,t,n,i){return new e({type:"map",keyType:t,valueType:n,...k(i)})}function s0(e,t,n){return new e({type:"set",valueType:t,...k(n)})}function c0(e,t,n){let i=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:i,...k(n)})}function u0(e,t,n){return new e({type:"enum",entries:t,...k(n)})}function l0(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...k(n)})}function Ef(e,t){return new e({type:"file",...k(t)})}function d0(e,t){return new e({type:"transform",transform:t})}function f0(e,t){return new e({type:"optional",innerType:t})}function m0(e,t){return new e({type:"nullable",innerType:t})}function p0(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():Du(n)}})}function g0(e,t,n){return new e({type:"nonoptional",innerType:t,...k(n)})}function h0(e,t){return new e({type:"success",innerType:t})}function v0(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function y0(e,t,n){return new e({type:"pipe",in:t,out:n})}function b0(e,t){return new e({type:"readonly",innerType:t})}function _0(e,t,n){return new e({type:"template_literal",parts:t,...k(n)})}function $0(e,t){return new e({type:"lazy",getter:t})}function w0(e,t){return new e({type:"promise",innerType:t})}function Af(e,t,n){let i=k(n);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function Tf(e,t,n){return new e({type:"custom",check:"custom",fn:t,...k(n)})}function zf(e){let t=zb(n=>(n.addIssue=i=>{if(typeof i=="string")n.issues.push(cr(i,n.value,t._zod.def));else{let r=i;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),n.issues.push(cr(r))}},e(n.value,n)));return t}function zb(e,t){let n=new B({check:"custom",...k(t)});return n._zod.check=e,n}function Cf(e){let t=new B({check:"describe"});return t._zod.onattach=[n=>{let i=ae.get(n)??{};ae.add(n,{...i,description:e})}],t._zod.check=()=>{},t}function jf(e){let t=new B({check:"meta"});return t._zod.onattach=[n=>{let i=ae.get(n)??{};ae.add(n,{...i,...e})}],t._zod.check=()=>{},t}function Nf(e,t){let n=k(t),i=n.truthy??["true","1","yes","on","y","enabled"],r=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(i=i.map(p=>typeof p=="string"?p.toLowerCase():p),r=r.map(p=>typeof p=="string"?p.toLowerCase():p));let o=new Set(i),a=new Set(r),s=e.Codec??Bn,c=e.Boolean??Fn,u=e.String??Ut,l=new u({type:"string",error:n.error}),d=new c({type:"boolean",error:n.error}),f=new s({type:"pipe",in:l,out:d,transform:((p,y)=>{let h=p;return n.case!=="sensitive"&&(h=h.toLowerCase()),o.has(h)?!0:a.has(h)?!1:(y.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:y.value,inst:f,continue:!1}),{})}),reverseTransform:((p,y)=>p===!0?i[0]||"true":r[0]||"false"),error:n.error});return f}function Or(e,t,n,i={}){let r=k(i),o={...k(i),check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:s=>n.test(s),...r};return n instanceof RegExp&&(o.pattern=n),new e(o)}function $t(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??ae,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function L(e,t,n={path:[],schemaPath:[]}){var i;let r=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;let a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let l={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,l);else{let f=a.schema,p=t.processors[r.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);p(e,t,f,l)}let d=e._zod.parent;d&&(a.ref||(a.ref=d),L(d,t,l),t.seen.get(d).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),t.io==="input"&&fe(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function wt(e,t){let n=e.seen.get(t);if(!n)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 r=a=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(a[0])?.id,f=e.external.uri??(y=>y);if(d)return{ref:f(d)};let p=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=p,{defId:p,ref:`${f("__shared")}#/${s}/${p}`}}if(a[1]===n)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}=r(a);s.def={...s.schema},u&&(s.defId=u);let l=s.schema;for(let d in l)delete l[d];l.$ref=c};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
|
|
223
223
|
|
|
224
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of t.seen.entries()){let s=a[1];if(e===a[0]){o(a);continue}if(t.external){let u=t.external.registry.get(a[0])?.id;if(e!==a[0]&&u){o(a);continue}}if(t.metadataRegistry.get(a[0])?.id){o(a);continue}if(s.cycle){o(a);continue}if(s.count>1&&t.reused==="ref"){o(a);continue}}}function _t(t,e){let n=t.seen.get(e);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=a=>{let s=t.seen.get(a);if(s.ref===null)return;let c=s.def??s.schema,u={...c},l=s.ref;if(s.ref=null,l){i(l);let f=t.seen.get(l),p=f.schema;if(p.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(p)):Object.assign(c,p),Object.assign(c,u),a._zod.parent===l)for(let h in c)h==="$ref"||h==="allOf"||h in u||delete c[h];if(p.$ref&&f.def)for(let h in c)h==="$ref"||h==="allOf"||h in f.def&&JSON.stringify(c[h])===JSON.stringify(f.def[h])&&delete c[h]}let d=a._zod.parent;if(d&&d!==l){i(d);let f=t.seen.get(d);if(f?.schema.$ref&&(c.$ref=f.schema.$ref,f.def))for(let p in c)p==="$ref"||p==="allOf"||p in f.def&&JSON.stringify(c[p])===JSON.stringify(f.def[p])&&delete c[p]}t.override({zodSchema:a,jsonSchema:c,path:s.path??[]})};for(let a of[...t.seen.entries()].reverse())i(a[0]);let r={};if(t.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){let a=t.external.registry.get(e)?.id;if(!a)throw new Error("Schema is missing an `id` property");r.$id=t.external.uri(a)}Object.assign(r,n.def??n.schema);let o=t.external?.defs??{};for(let a of t.seen.entries()){let s=a[1];s.def&&s.defId&&(o[s.defId]=s.def)}t.external||Object.keys(o).length>0&&(t.target==="draft-2020-12"?r.$defs=o:r.definitions=o);try{let a=JSON.parse(JSON.stringify(r));return Object.defineProperty(a,"~standard",{value:{...e["~standard"],jsonSchema:{input:Sr(e,"input",t.processors),output:Sr(e,"output",t.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function de(t,e){let n=e??{seen:new Set};if(n.seen.has(t))return!1;n.seen.add(t);let i=t._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return de(i.element,n);if(i.type==="set")return de(i.valueType,n);if(i.type==="lazy")return de(i.getter(),n);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return de(i.innerType,n);if(i.type==="intersection")return de(i.left,n)||de(i.right,n);if(i.type==="record"||i.type==="map")return de(i.keyType,n)||de(i.valueType,n);if(i.type==="pipe")return de(i.in,n)||de(i.out,n);if(i.type==="object"){for(let r in i.shape)if(de(i.shape[r],n))return!0;return!1}if(i.type==="union"){for(let r of i.options)if(de(r,n))return!0;return!1}if(i.type==="tuple"){for(let r of i.items)if(de(r,n))return!0;return!!(i.rest&&de(i.rest,n))}return!1}var Ef=(t,e={})=>n=>{let i=yt({...n,processors:e});return L(t,i),bt(i,t),_t(i,t)},Sr=(t,e,n={})=>i=>{let{libraryOptions:r,target:o}=i??{},a=yt({...r??{},target:o,io:e,processors:n});return L(t,a),bt(a,t),_t(a,t)};var h0={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Tf=(t,e,n,i)=>{let r=n;r.type="string";let{minimum:o,maximum:a,format:s,patterns:c,contentEncoding:u}=t._zod.bag;if(typeof o=="number"&&(r.minLength=o),typeof a=="number"&&(r.maxLength=a),s&&(r.format=h0[s]??s,r.format===""&&delete r.format,s==="time"&&delete r.format),u&&(r.contentEncoding=u),c&&c.size>0){let l=[...c];l.length===1?r.pattern=l[0].source:l.length>1&&(r.allOf=[...l.map(d=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},zf=(t,e,n,i)=>{let r=n,{minimum:o,maximum:a,format:s,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:l}=t._zod.bag;typeof s=="string"&&s.includes("int")?r.type="integer":r.type="number",typeof l=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(r.minimum=l,r.exclusiveMinimum=!0):r.exclusiveMinimum=l),typeof o=="number"&&(r.minimum=o,typeof l=="number"&&e.target!=="draft-04"&&(l>=o?delete r.minimum:delete r.exclusiveMinimum)),typeof u=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(r.maximum=u,r.exclusiveMaximum=!0):r.exclusiveMaximum=u),typeof a=="number"&&(r.maximum=a,typeof u=="number"&&e.target!=="draft-04"&&(u<=a?delete r.maximum:delete r.exclusiveMaximum)),typeof c=="number"&&(r.multipleOf=c)},Cf=(t,e,n,i)=>{n.type="boolean"},jf=(t,e,n,i)=>{if(e.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Nf=(t,e,n,i)=>{if(e.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Df=(t,e,n,i)=>{e.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},Uf=(t,e,n,i)=>{if(e.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Rf=(t,e,n,i)=>{if(e.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Lf=(t,e,n,i)=>{n.not={}},Zf=(t,e,n,i)=>{},Mf=(t,e,n,i)=>{},qf=(t,e,n,i)=>{if(e.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Ff=(t,e,n,i)=>{let r=t._zod.def,o=En(r.entries);o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),n.enum=o},Vf=(t,e,n,i)=>{let r=t._zod.def,o=[];for(let a of r.values)if(a===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(e.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];n.type=a===null?"null":typeof a,e.target==="draft-04"||e.target==="openapi-3.0"?n.enum=[a]:n.const=a}else o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),o.every(a=>typeof a=="boolean")&&(n.type="boolean"),o.every(a=>a===null)&&(n.type="null"),n.enum=o},Bf=(t,e,n,i)=>{if(e.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Kf=(t,e,n,i)=>{let r=n,o=t._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=o.source},Jf=(t,e,n,i)=>{let r=n,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:c}=t._zod.bag;a!==void 0&&(o.minLength=a),s!==void 0&&(o.maxLength=s),c?c.length===1?(o.contentMediaType=c[0],Object.assign(r,o)):(Object.assign(r,o),r.anyOf=c.map(u=>({contentMediaType:u}))):Object.assign(r,o)},Hf=(t,e,n,i)=>{n.type="boolean"},Wf=(t,e,n,i)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Gf=(t,e,n,i)=>{if(e.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Yf=(t,e,n,i)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Xf=(t,e,n,i)=>{if(e.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Qf=(t,e,n,i)=>{if(e.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},em=(t,e,n,i)=>{let r=n,o=t._zod.def,{minimum:a,maximum:s}=t._zod.bag;typeof a=="number"&&(r.minItems=a),typeof s=="number"&&(r.maxItems=s),r.type="array",r.items=L(o.element,e,{...i,path:[...i.path,"items"]})},tm=(t,e,n,i)=>{let r=n,o=t._zod.def;r.type="object",r.properties={};let a=o.shape;for(let u in a)r.properties[u]=L(a[u],e,{...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 e.io==="input"?l.optin===void 0:l.optout===void 0}));c.size>0&&(r.required=Array.from(c)),o.catchall?._zod.def.type==="never"?r.additionalProperties=!1:o.catchall?o.catchall&&(r.additionalProperties=L(o.catchall,e,{...i,path:[...i.path,"additionalProperties"]})):e.io==="output"&&(r.additionalProperties=!1)},wa=(t,e,n,i)=>{let r=t._zod.def,o=r.inclusive===!1,a=r.options.map((s,c)=>L(s,e,{...i,path:[...i.path,o?"oneOf":"anyOf",c]}));o?n.oneOf=a:n.anyOf=a},rm=(t,e,n,i)=>{let r=t._zod.def,o=L(r.left,e,{...i,path:[...i.path,"allOf",0]}),a=L(r.right,e,{...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]];n.allOf=c},nm=(t,e,n,i)=>{let r=n,o=t._zod.def;r.type="array";let a=e.target==="draft-2020-12"?"prefixItems":"items",s=e.target==="draft-2020-12"||e.target==="openapi-3.0"?"items":"additionalItems",c=o.items.map((f,p)=>L(f,e,{...i,path:[...i.path,a,p]})),u=o.rest?L(o.rest,e,{...i,path:[...i.path,s,...e.target==="openapi-3.0"?[o.items.length]:[]]}):null;e.target==="draft-2020-12"?(r.prefixItems=c,u&&(r.items=u)):e.target==="openapi-3.0"?(r.items={anyOf:c},u&&r.items.anyOf.push(u),r.minItems=c.length,u||(r.maxItems=c.length)):(r.items=c,u&&(r.additionalItems=u));let{minimum:l,maximum:d}=t._zod.bag;typeof l=="number"&&(r.minItems=l),typeof d=="number"&&(r.maxItems=d)},im=(t,e,n,i)=>{let r=n,o=t._zod.def;r.type="object";let a=o.keyType,c=a._zod.bag?.patterns;if(o.mode==="loose"&&c&&c.size>0){let l=L(o.valueType,e,{...i,path:[...i.path,"patternProperties","*"]});r.patternProperties={};for(let d of c)r.patternProperties[d.source]=l}else(e.target==="draft-07"||e.target==="draft-2020-12")&&(r.propertyNames=L(o.keyType,e,{...i,path:[...i.path,"propertyNames"]})),r.additionalProperties=L(o.valueType,e,{...i,path:[...i.path,"additionalProperties"]});let u=a._zod.values;if(u){let l=[...u].filter(d=>typeof d=="string"||typeof d=="number");l.length>0&&(r.required=l)}},om=(t,e,n,i)=>{let r=t._zod.def,o=L(r.innerType,e,i),a=e.seen.get(t);e.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},am=(t,e,n,i)=>{let r=t._zod.def;L(r.innerType,e,i);let o=e.seen.get(t);o.ref=r.innerType},sm=(t,e,n,i)=>{let r=t._zod.def;L(r.innerType,e,i);let o=e.seen.get(t);o.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},cm=(t,e,n,i)=>{let r=t._zod.def;L(r.innerType,e,i);let o=e.seen.get(t);o.ref=r.innerType,e.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},um=(t,e,n,i)=>{let r=t._zod.def;L(r.innerType,e,i);let o=e.seen.get(t);o.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},lm=(t,e,n,i)=>{let r=t._zod.def,o=e.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;L(o,e,i);let a=e.seen.get(t);a.ref=o},dm=(t,e,n,i)=>{let r=t._zod.def;L(r.innerType,e,i);let o=e.seen.get(t);o.ref=r.innerType,n.readOnly=!0},fm=(t,e,n,i)=>{let r=t._zod.def;L(r.innerType,e,i);let o=e.seen.get(t);o.ref=r.innerType},ka=(t,e,n,i)=>{let r=t._zod.def;L(r.innerType,e,i);let o=e.seen.get(t);o.ref=r.innerType},mm=(t,e,n,i)=>{let r=t._zod.innerType;L(r,e,i);let o=e.seen.get(t);o.ref=r},$a={string:Tf,number:zf,boolean:Cf,bigint:jf,symbol:Nf,null:Df,undefined:Uf,void:Rf,never:Lf,any:Zf,unknown:Mf,date:qf,enum:Ff,literal:Vf,nan:Bf,template_literal:Kf,file:Jf,success:Hf,custom:Wf,function:Gf,transform:Yf,map:Xf,set:Qf,array:em,object:tm,union:wa,intersection:rm,tuple:nm,record:im,nullable:om,nonoptional:am,default:sm,prefault:cm,catch:um,pipe:lm,readonly:dm,promise:fm,optional:ka,lazy:mm};function xa(t,e){if("_idmap"in t){let i=t,r=yt({...e,processors:$a}),o={};for(let c of i._idmap.entries()){let[u,l]=c;L(l,r)}let a={},s={registry:i,uri:e?.uri,defs:o};r.external=s;for(let c of i._idmap.entries()){let[u,l]=c;bt(r,l),a[u]=_t(r,l)}if(Object.keys(o).length>0){let c=r.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:o}}return{schemas:a}}let n=yt({...e,processors:$a});return L(t,n),bt(n,t),_t(n,t)}var Sa=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(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let n=e?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=yt({processors:$a,target:n,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,n={path:[],schemaPath:[]}){return L(e,this.ctx,n)}emit(e,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),bt(this.ctx,e);let i=_t(this.ctx,e),{"~standard":r,...o}=i;return o}};var Ob={};var Hn={};Ve(Hn,{ZodAny:()=>Um,ZodArray:()=>Mm,ZodBase64:()=>Ka,ZodBase64URL:()=>Ja,ZodBigInt:()=>zr,ZodBigIntFormat:()=>Ga,ZodBoolean:()=>Tr,ZodCIDRv4:()=>Va,ZodCIDRv6:()=>Ba,ZodCUID:()=>Ua,ZodCUID2:()=>Ra,ZodCatch:()=>up,ZodCodec:()=>is,ZodCustom:()=>oi,ZodCustomStringFormat:()=>Ar,ZodDate:()=>ei,ZodDefault:()=>np,ZodDiscriminatedUnion:()=>Fm,ZodE164:()=>Ha,ZodEmail:()=>ja,ZodEmoji:()=>Na,ZodEnum:()=>Or,ZodExactOptional:()=>ep,ZodFile:()=>Xm,ZodFunction:()=>yp,ZodGUID:()=>Wn,ZodIPv4:()=>qa,ZodIPv6:()=>Fa,ZodIntersection:()=>Vm,ZodJWT:()=>Wa,ZodKSUID:()=>Ma,ZodLazy:()=>gp,ZodLiteral:()=>Ym,ZodMAC:()=>Em,ZodMap:()=>Wm,ZodNaN:()=>dp,ZodNanoID:()=>Da,ZodNever:()=>Lm,ZodNonOptional:()=>rs,ZodNull:()=>Nm,ZodNullable:()=>rp,ZodNumber:()=>Er,ZodNumberFormat:()=>Lt,ZodObject:()=>ri,ZodOptional:()=>ts,ZodPipe:()=>ns,ZodPrefault:()=>op,ZodPromise:()=>vp,ZodReadonly:()=>fp,ZodRecord:()=>ii,ZodSet:()=>Gm,ZodString:()=>Pr,ZodStringFormat:()=>F,ZodSuccess:()=>cp,ZodSymbol:()=>Cm,ZodTemplateLiteral:()=>pp,ZodTransform:()=>Qm,ZodTuple:()=>Km,ZodType:()=>j,ZodULID:()=>La,ZodURL:()=>Qn,ZodUUID:()=>Me,ZodUndefined:()=>jm,ZodUnion:()=>ni,ZodUnknown:()=>Rm,ZodVoid:()=>Zm,ZodXID:()=>Za,ZodXor:()=>qm,_ZodString:()=>Ca,_default:()=>ip,_function:()=>j_,any:()=>f_,array:()=>ti,base64:()=>Wb,base64url:()=>Gb,bigint:()=>s_,boolean:()=>zm,catch:()=>lp,check:()=>N_,cidrv4:()=>Jb,cidrv6:()=>Hb,codec:()=>T_,cuid:()=>Lb,cuid2:()=>Zb,custom:()=>D_,date:()=>p_,describe:()=>U_,discriminatedUnion:()=>__,e164:()=>Yb,email:()=>Ab,emoji:()=>Ub,enum:()=>Qa,exactOptional:()=>tp,file:()=>O_,float32:()=>n_,float64:()=>i_,function:()=>j_,guid:()=>Eb,hash:()=>r_,hex:()=>t_,hostname:()=>e_,httpUrl:()=>Db,instanceof:()=>L_,int:()=>za,int32:()=>o_,int64:()=>c_,intersection:()=>Bm,ipv4:()=>Vb,ipv6:()=>Kb,json:()=>M_,jwt:()=>Xb,keyof:()=>g_,ksuid:()=>Fb,lazy:()=>hp,literal:()=>I_,looseObject:()=>y_,looseRecord:()=>w_,mac:()=>Bb,map:()=>k_,meta:()=>R_,nan:()=>E_,nanoid:()=>Rb,nativeEnum:()=>S_,never:()=>Ya,nonoptional:()=>sp,null:()=>Dm,nullable:()=>Yn,nullish:()=>P_,number:()=>Tm,object:()=>h_,optional:()=>Gn,partialRecord:()=>$_,pipe:()=>Xn,prefault:()=>ap,preprocess:()=>q_,promise:()=>C_,readonly:()=>mp,record:()=>Hm,refine:()=>bp,set:()=>x_,strictObject:()=>v_,string:()=>Ta,stringFormat:()=>Qb,stringbool:()=>Z_,success:()=>A_,superRefine:()=>_p,symbol:()=>l_,templateLiteral:()=>z_,transform:()=>es,tuple:()=>Jm,uint32:()=>a_,uint64:()=>u_,ulid:()=>Mb,undefined:()=>d_,union:()=>Xa,unknown:()=>Rt,url:()=>Nb,uuid:()=>Tb,uuidv4:()=>zb,uuidv6:()=>Cb,uuidv7:()=>jb,void:()=>m_,xid:()=>qb,xor:()=>b_});var Ia={};Ve(Ia,{endsWith:()=>vr,gt:()=>Le,gte:()=>le,includes:()=>gr,length:()=>Ut,lowercase:()=>mr,lt:()=>Re,lte:()=>be,maxLength:()=>Dt,maxSize:()=>vt,mime:()=>yr,minLength:()=>We,minSize:()=>Ze,multipleOf:()=>ht,negative:()=>va,nonnegative:()=>ba,nonpositive:()=>ya,normalize:()=>br,overwrite:()=>ze,positive:()=>ha,property:()=>_a,regex:()=>fr,size:()=>Nt,slugify:()=>kr,startsWith:()=>hr,toLowerCase:()=>$r,toUpperCase:()=>wr,trim:()=>_r,uppercase:()=>pr});var Ir={};Ve(Ir,{ZodISODate:()=>Pa,ZodISODateTime:()=>Oa,ZodISODuration:()=>Ea,ZodISOTime:()=>Aa,date:()=>gm,datetime:()=>pm,duration:()=>vm,time:()=>hm});var Oa=g("ZodISODateTime",(t,e)=>{Vl.init(t,e),F.init(t,e)});function pm(t){return Hd(Oa,t)}var Pa=g("ZodISODate",(t,e)=>{Bl.init(t,e),F.init(t,e)});function gm(t){return Wd(Pa,t)}var Aa=g("ZodISOTime",(t,e)=>{Kl.init(t,e),F.init(t,e)});function hm(t){return Gd(Aa,t)}var Ea=g("ZodISODuration",(t,e)=>{Jl.init(t,e),F.init(t,e)});function vm(t){return Yd(Ea,t)}var Pb=(t,e)=>{Nn.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:n=>Un(t,n)},flatten:{value:n=>Dn(t,n)},addIssue:{value:n=>{t.issues.push(n),t.message=JSON.stringify(t.issues,nr,2)}},addIssues:{value:n=>{t.issues.push(...n),t.message=JSON.stringify(t.issues,nr,2)}},isEmpty:{get(){return t.issues.length===0}}})},y0=g("ZodError",Pb),he=g("ZodError",Pb,{Parent:Error});var ym=ar(he),bm=sr(he),_m=cr(he),$m=ur(he),wm=xo(he),km=So(he),xm=Io(he),Sm=Oo(he),Im=Po(he),Om=Ao(he),Pm=Eo(he),Am=To(he);var j=g("ZodType",(t,e)=>(z.init(t,e),Object.assign(t["~standard"],{jsonSchema:{input:Sr(t,"input"),output:Sr(t,"output")}}),t.toJSONSchema=Ef(t,{}),t.def=e,t.type=e.type,Object.defineProperty(t,"_def",{value:e}),t.check=(...n)=>t.clone(w.mergeDefs(e,{checks:[...e.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0}),t.with=t.check,t.clone=(n,i)=>ue(t,n,i),t.brand=()=>t,t.register=((n,i)=>(n.add(t,i),t)),t.parse=(n,i)=>ym(t,n,i,{callee:t.parse}),t.safeParse=(n,i)=>_m(t,n,i),t.parseAsync=async(n,i)=>bm(t,n,i,{callee:t.parseAsync}),t.safeParseAsync=async(n,i)=>$m(t,n,i),t.spa=t.safeParseAsync,t.encode=(n,i)=>wm(t,n,i),t.decode=(n,i)=>km(t,n,i),t.encodeAsync=async(n,i)=>xm(t,n,i),t.decodeAsync=async(n,i)=>Sm(t,n,i),t.safeEncode=(n,i)=>Im(t,n,i),t.safeDecode=(n,i)=>Om(t,n,i),t.safeEncodeAsync=async(n,i)=>Pm(t,n,i),t.safeDecodeAsync=async(n,i)=>Am(t,n,i),t.refine=(n,i)=>t.check(bp(n,i)),t.superRefine=n=>t.check(_p(n)),t.overwrite=n=>t.check(ze(n)),t.optional=()=>Gn(t),t.exactOptional=()=>tp(t),t.nullable=()=>Yn(t),t.nullish=()=>Gn(Yn(t)),t.nonoptional=n=>sp(t,n),t.array=()=>ti(t),t.or=n=>Xa([t,n]),t.and=n=>Bm(t,n),t.transform=n=>Xn(t,es(n)),t.default=n=>ip(t,n),t.prefault=n=>ap(t,n),t.catch=n=>lp(t,n),t.pipe=n=>Xn(t,n),t.readonly=()=>mp(t),t.describe=n=>{let i=t.clone();return oe.add(i,{description:n}),i},Object.defineProperty(t,"description",{get(){return oe.get(t)?.description},configurable:!0}),t.meta=(...n)=>{if(n.length===0)return oe.get(t);let i=t.clone();return oe.add(i,n[0]),i},t.isOptional=()=>t.safeParse(void 0).success,t.isNullable=()=>t.safeParse(null).success,t.apply=n=>n(t),t)),Ca=g("_ZodString",(t,e)=>{jt.init(t,e),j.init(t,e),t._zod.processJSONSchema=(i,r,o)=>Tf(t,i,r,o);let n=t._zod.bag;t.format=n.format??null,t.minLength=n.minimum??null,t.maxLength=n.maximum??null,t.regex=(...i)=>t.check(fr(...i)),t.includes=(...i)=>t.check(gr(...i)),t.startsWith=(...i)=>t.check(hr(...i)),t.endsWith=(...i)=>t.check(vr(...i)),t.min=(...i)=>t.check(We(...i)),t.max=(...i)=>t.check(Dt(...i)),t.length=(...i)=>t.check(Ut(...i)),t.nonempty=(...i)=>t.check(We(1,...i)),t.lowercase=i=>t.check(mr(i)),t.uppercase=i=>t.check(pr(i)),t.trim=()=>t.check(_r()),t.normalize=(...i)=>t.check(br(...i)),t.toLowerCase=()=>t.check($r()),t.toUpperCase=()=>t.check(wr()),t.slugify=()=>t.check(kr())}),Pr=g("ZodString",(t,e)=>{jt.init(t,e),Ca.init(t,e),t.email=n=>t.check(Go(ja,n)),t.url=n=>t.check(Jn(Qn,n)),t.jwt=n=>t.check(ga(Wa,n)),t.emoji=n=>t.check(ta(Na,n)),t.guid=n=>t.check(Kn(Wn,n)),t.uuid=n=>t.check(Yo(Me,n)),t.uuidv4=n=>t.check(Xo(Me,n)),t.uuidv6=n=>t.check(Qo(Me,n)),t.uuidv7=n=>t.check(ea(Me,n)),t.nanoid=n=>t.check(ra(Da,n)),t.guid=n=>t.check(Kn(Wn,n)),t.cuid=n=>t.check(na(Ua,n)),t.cuid2=n=>t.check(ia(Ra,n)),t.ulid=n=>t.check(oa(La,n)),t.base64=n=>t.check(fa(Ka,n)),t.base64url=n=>t.check(ma(Ja,n)),t.xid=n=>t.check(aa(Za,n)),t.ksuid=n=>t.check(sa(Ma,n)),t.ipv4=n=>t.check(ca(qa,n)),t.ipv6=n=>t.check(ua(Fa,n)),t.cidrv4=n=>t.check(la(Va,n)),t.cidrv6=n=>t.check(da(Ba,n)),t.e164=n=>t.check(pa(Ha,n)),t.datetime=n=>t.check(pm(n)),t.date=n=>t.check(gm(n)),t.time=n=>t.check(hm(n)),t.duration=n=>t.check(vm(n))});function Ta(t){return Vd(Pr,t)}var F=g("ZodStringFormat",(t,e)=>{q.init(t,e),Ca.init(t,e)}),ja=g("ZodEmail",(t,e)=>{Nl.init(t,e),F.init(t,e)});function Ab(t){return Go(ja,t)}var Wn=g("ZodGUID",(t,e)=>{Cl.init(t,e),F.init(t,e)});function Eb(t){return Kn(Wn,t)}var Me=g("ZodUUID",(t,e)=>{jl.init(t,e),F.init(t,e)});function Tb(t){return Yo(Me,t)}function zb(t){return Xo(Me,t)}function Cb(t){return Qo(Me,t)}function jb(t){return ea(Me,t)}var Qn=g("ZodURL",(t,e)=>{Dl.init(t,e),F.init(t,e)});function Nb(t){return Jn(Qn,t)}function Db(t){return Jn(Qn,{protocol:/^https?$/,hostname:Se.domain,...w.normalizeParams(t)})}var Na=g("ZodEmoji",(t,e)=>{Ul.init(t,e),F.init(t,e)});function Ub(t){return ta(Na,t)}var Da=g("ZodNanoID",(t,e)=>{Rl.init(t,e),F.init(t,e)});function Rb(t){return ra(Da,t)}var Ua=g("ZodCUID",(t,e)=>{Ll.init(t,e),F.init(t,e)});function Lb(t){return na(Ua,t)}var Ra=g("ZodCUID2",(t,e)=>{Zl.init(t,e),F.init(t,e)});function Zb(t){return ia(Ra,t)}var La=g("ZodULID",(t,e)=>{Ml.init(t,e),F.init(t,e)});function Mb(t){return oa(La,t)}var Za=g("ZodXID",(t,e)=>{ql.init(t,e),F.init(t,e)});function qb(t){return aa(Za,t)}var Ma=g("ZodKSUID",(t,e)=>{Fl.init(t,e),F.init(t,e)});function Fb(t){return sa(Ma,t)}var qa=g("ZodIPv4",(t,e)=>{Hl.init(t,e),F.init(t,e)});function Vb(t){return ca(qa,t)}var Em=g("ZodMAC",(t,e)=>{Gl.init(t,e),F.init(t,e)});function Bb(t){return Kd(Em,t)}var Fa=g("ZodIPv6",(t,e)=>{Wl.init(t,e),F.init(t,e)});function Kb(t){return ua(Fa,t)}var Va=g("ZodCIDRv4",(t,e)=>{Yl.init(t,e),F.init(t,e)});function Jb(t){return la(Va,t)}var Ba=g("ZodCIDRv6",(t,e)=>{Xl.init(t,e),F.init(t,e)});function Hb(t){return da(Ba,t)}var Ka=g("ZodBase64",(t,e)=>{ed.init(t,e),F.init(t,e)});function Wb(t){return fa(Ka,t)}var Ja=g("ZodBase64URL",(t,e)=>{td.init(t,e),F.init(t,e)});function Gb(t){return ma(Ja,t)}var Ha=g("ZodE164",(t,e)=>{rd.init(t,e),F.init(t,e)});function Yb(t){return pa(Ha,t)}var Wa=g("ZodJWT",(t,e)=>{nd.init(t,e),F.init(t,e)});function Xb(t){return ga(Wa,t)}var Ar=g("ZodCustomStringFormat",(t,e)=>{id.init(t,e),F.init(t,e)});function Qb(t,e,n={}){return xr(Ar,t,e,n)}function e_(t){return xr(Ar,"hostname",Se.hostname,t)}function t_(t){return xr(Ar,"hex",Se.hex,t)}function r_(t,e){let n=e?.enc??"hex",i=`${t}_${n}`,r=Se[i];if(!r)throw new Error(`Unrecognized hash format: ${i}`);return xr(Ar,i,r,e)}var Er=g("ZodNumber",(t,e)=>{Mo.init(t,e),j.init(t,e),t._zod.processJSONSchema=(i,r,o)=>zf(t,i,r,o),t.gt=(i,r)=>t.check(Le(i,r)),t.gte=(i,r)=>t.check(le(i,r)),t.min=(i,r)=>t.check(le(i,r)),t.lt=(i,r)=>t.check(Re(i,r)),t.lte=(i,r)=>t.check(be(i,r)),t.max=(i,r)=>t.check(be(i,r)),t.int=i=>t.check(za(i)),t.safe=i=>t.check(za(i)),t.positive=i=>t.check(Le(0,i)),t.nonnegative=i=>t.check(le(0,i)),t.negative=i=>t.check(Re(0,i)),t.nonpositive=i=>t.check(be(0,i)),t.multipleOf=(i,r)=>t.check(ht(i,r)),t.step=(i,r)=>t.check(ht(i,r)),t.finite=()=>t;let n=t._zod.bag;t.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),t.isFinite=!0,t.format=n.format??null});function Tm(t){return Xd(Er,t)}var Lt=g("ZodNumberFormat",(t,e)=>{od.init(t,e),Er.init(t,e)});function za(t){return ef(Lt,t)}function n_(t){return tf(Lt,t)}function i_(t){return rf(Lt,t)}function o_(t){return nf(Lt,t)}function a_(t){return of(Lt,t)}var Tr=g("ZodBoolean",(t,e)=>{Mn.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>Cf(t,n,i,r)});function zm(t){return af(Tr,t)}var zr=g("ZodBigInt",(t,e)=>{qo.init(t,e),j.init(t,e),t._zod.processJSONSchema=(i,r,o)=>jf(t,i,r,o),t.gte=(i,r)=>t.check(le(i,r)),t.min=(i,r)=>t.check(le(i,r)),t.gt=(i,r)=>t.check(Le(i,r)),t.gte=(i,r)=>t.check(le(i,r)),t.min=(i,r)=>t.check(le(i,r)),t.lt=(i,r)=>t.check(Re(i,r)),t.lte=(i,r)=>t.check(be(i,r)),t.max=(i,r)=>t.check(be(i,r)),t.positive=i=>t.check(Le(BigInt(0),i)),t.negative=i=>t.check(Re(BigInt(0),i)),t.nonpositive=i=>t.check(be(BigInt(0),i)),t.nonnegative=i=>t.check(le(BigInt(0),i)),t.multipleOf=(i,r)=>t.check(ht(i,r));let n=t._zod.bag;t.minValue=n.minimum??null,t.maxValue=n.maximum??null,t.format=n.format??null});function s_(t){return cf(zr,t)}var Ga=g("ZodBigIntFormat",(t,e)=>{ad.init(t,e),zr.init(t,e)});function c_(t){return lf(Ga,t)}function u_(t){return df(Ga,t)}var Cm=g("ZodSymbol",(t,e)=>{sd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>Nf(t,n,i,r)});function l_(t){return ff(Cm,t)}var jm=g("ZodUndefined",(t,e)=>{cd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>Uf(t,n,i,r)});function d_(t){return mf(jm,t)}var Nm=g("ZodNull",(t,e)=>{ud.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>Df(t,n,i,r)});function Dm(t){return pf(Nm,t)}var Um=g("ZodAny",(t,e)=>{ld.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>Zf(t,n,i,r)});function f_(){return gf(Um)}var Rm=g("ZodUnknown",(t,e)=>{dd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>Mf(t,n,i,r)});function Rt(){return hf(Rm)}var Lm=g("ZodNever",(t,e)=>{fd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>Lf(t,n,i,r)});function Ya(t){return vf(Lm,t)}var Zm=g("ZodVoid",(t,e)=>{md.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>Rf(t,n,i,r)});function m_(t){return yf(Zm,t)}var ei=g("ZodDate",(t,e)=>{pd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(i,r,o)=>qf(t,i,r,o),t.min=(i,r)=>t.check(le(i,r)),t.max=(i,r)=>t.check(be(i,r));let n=t._zod.bag;t.minDate=n.minimum?new Date(n.minimum):null,t.maxDate=n.maximum?new Date(n.maximum):null});function p_(t){return bf(ei,t)}var Mm=g("ZodArray",(t,e)=>{gd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>em(t,n,i,r),t.element=e.element,t.min=(n,i)=>t.check(We(n,i)),t.nonempty=n=>t.check(We(1,n)),t.max=(n,i)=>t.check(Dt(n,i)),t.length=(n,i)=>t.check(Ut(n,i)),t.unwrap=()=>t.element});function ti(t,e){return wf(Mm,t,e)}function g_(t){let e=t._zod.def.shape;return Qa(Object.keys(e))}var ri=g("ZodObject",(t,e)=>{hd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>tm(t,n,i,r),w.defineLazy(t,"shape",()=>e.shape),t.keyof=()=>Qa(Object.keys(t._zod.def.shape)),t.catchall=n=>t.clone({...t._zod.def,catchall:n}),t.passthrough=()=>t.clone({...t._zod.def,catchall:Rt()}),t.loose=()=>t.clone({...t._zod.def,catchall:Rt()}),t.strict=()=>t.clone({...t._zod.def,catchall:Ya()}),t.strip=()=>t.clone({...t._zod.def,catchall:void 0}),t.extend=n=>w.extend(t,n),t.safeExtend=n=>w.safeExtend(t,n),t.merge=n=>w.merge(t,n),t.pick=n=>w.pick(t,n),t.omit=n=>w.omit(t,n),t.partial=(...n)=>w.partial(ts,t,n[0]),t.required=(...n)=>w.required(rs,t,n[0])});function h_(t,e){let n={type:"object",shape:t??{},...w.normalizeParams(e)};return new ri(n)}function v_(t,e){return new ri({type:"object",shape:t,catchall:Ya(),...w.normalizeParams(e)})}function y_(t,e){return new ri({type:"object",shape:t,catchall:Rt(),...w.normalizeParams(e)})}var ni=g("ZodUnion",(t,e)=>{qn.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>wa(t,n,i,r),t.options=e.options});function Xa(t,e){return new ni({type:"union",options:t,...w.normalizeParams(e)})}var qm=g("ZodXor",(t,e)=>{ni.init(t,e),vd.init(t,e),t._zod.processJSONSchema=(n,i,r)=>wa(t,n,i,r),t.options=e.options});function b_(t,e){return new qm({type:"union",options:t,inclusive:!1,...w.normalizeParams(e)})}var Fm=g("ZodDiscriminatedUnion",(t,e)=>{ni.init(t,e),yd.init(t,e)});function __(t,e,n){return new Fm({type:"union",options:e,discriminator:t,...w.normalizeParams(n)})}var Vm=g("ZodIntersection",(t,e)=>{bd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>rm(t,n,i,r)});function Bm(t,e){return new Vm({type:"intersection",left:t,right:e})}var Km=g("ZodTuple",(t,e)=>{Fo.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>nm(t,n,i,r),t.rest=n=>t.clone({...t._zod.def,rest:n})});function Jm(t,e,n){let i=e instanceof z,r=i?n:e,o=i?e:null;return new Km({type:"tuple",items:t,rest:o,...w.normalizeParams(r)})}var ii=g("ZodRecord",(t,e)=>{_d.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>im(t,n,i,r),t.keyType=e.keyType,t.valueType=e.valueType});function Hm(t,e,n){return new ii({type:"record",keyType:t,valueType:e,...w.normalizeParams(n)})}function $_(t,e,n){let i=ue(t);return i._zod.values=void 0,new ii({type:"record",keyType:i,valueType:e,...w.normalizeParams(n)})}function w_(t,e,n){return new ii({type:"record",keyType:t,valueType:e,mode:"loose",...w.normalizeParams(n)})}var Wm=g("ZodMap",(t,e)=>{$d.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>Xf(t,n,i,r),t.keyType=e.keyType,t.valueType=e.valueType,t.min=(...n)=>t.check(Ze(...n)),t.nonempty=n=>t.check(Ze(1,n)),t.max=(...n)=>t.check(vt(...n)),t.size=(...n)=>t.check(Nt(...n))});function k_(t,e,n){return new Wm({type:"map",keyType:t,valueType:e,...w.normalizeParams(n)})}var Gm=g("ZodSet",(t,e)=>{wd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>Qf(t,n,i,r),t.min=(...n)=>t.check(Ze(...n)),t.nonempty=n=>t.check(Ze(1,n)),t.max=(...n)=>t.check(vt(...n)),t.size=(...n)=>t.check(Nt(...n))});function x_(t,e){return new Gm({type:"set",valueType:t,...w.normalizeParams(e)})}var Or=g("ZodEnum",(t,e)=>{kd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(i,r,o)=>Ff(t,i,r,o),t.enum=e.entries,t.options=Object.values(e.entries);let n=new Set(Object.keys(e.entries));t.extract=(i,r)=>{let o={};for(let a of i)if(n.has(a))o[a]=e.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Or({...e,checks:[],...w.normalizeParams(r),entries:o})},t.exclude=(i,r)=>{let o={...e.entries};for(let a of i)if(n.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new Or({...e,checks:[],...w.normalizeParams(r),entries:o})}});function Qa(t,e){let n=Array.isArray(t)?Object.fromEntries(t.map(i=>[i,i])):t;return new Or({type:"enum",entries:n,...w.normalizeParams(e)})}function S_(t,e){return new Or({type:"enum",entries:t,...w.normalizeParams(e)})}var Ym=g("ZodLiteral",(t,e)=>{xd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>Vf(t,n,i,r),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function I_(t,e){return new Ym({type:"literal",values:Array.isArray(t)?t:[t],...w.normalizeParams(e)})}var Xm=g("ZodFile",(t,e)=>{Sd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>Jf(t,n,i,r),t.min=(n,i)=>t.check(Ze(n,i)),t.max=(n,i)=>t.check(vt(n,i)),t.mime=(n,i)=>t.check(yr(Array.isArray(n)?n:[n],i))});function O_(t){return kf(Xm,t)}var Qm=g("ZodTransform",(t,e)=>{Id.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>Yf(t,n,i,r),t._zod.parse=(n,i)=>{if(i.direction==="backward")throw new dt(t.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(w.issue(o,n.value,e));else{let a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=t),n.issues.push(w.issue(a))}};let r=e.transform(n.value,n);return r instanceof Promise?r.then(o=>(n.value=o,n)):(n.value=r,n)}});function es(t){return new Qm({type:"transform",transform:t})}var ts=g("ZodOptional",(t,e)=>{Vo.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>ka(t,n,i,r),t.unwrap=()=>t._zod.def.innerType});function Gn(t){return new ts({type:"optional",innerType:t})}var ep=g("ZodExactOptional",(t,e)=>{Od.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>ka(t,n,i,r),t.unwrap=()=>t._zod.def.innerType});function tp(t){return new ep({type:"optional",innerType:t})}var rp=g("ZodNullable",(t,e)=>{Pd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>om(t,n,i,r),t.unwrap=()=>t._zod.def.innerType});function Yn(t){return new rp({type:"nullable",innerType:t})}function P_(t){return Gn(Yn(t))}var np=g("ZodDefault",(t,e)=>{Ad.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>sm(t,n,i,r),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function ip(t,e){return new np({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():w.shallowClone(e)}})}var op=g("ZodPrefault",(t,e)=>{Ed.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>cm(t,n,i,r),t.unwrap=()=>t._zod.def.innerType});function ap(t,e){return new op({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():w.shallowClone(e)}})}var rs=g("ZodNonOptional",(t,e)=>{Td.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>am(t,n,i,r),t.unwrap=()=>t._zod.def.innerType});function sp(t,e){return new rs({type:"nonoptional",innerType:t,...w.normalizeParams(e)})}var cp=g("ZodSuccess",(t,e)=>{zd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>Hf(t,n,i,r),t.unwrap=()=>t._zod.def.innerType});function A_(t){return new cp({type:"success",innerType:t})}var up=g("ZodCatch",(t,e)=>{Cd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>um(t,n,i,r),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function lp(t,e){return new up({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}var dp=g("ZodNaN",(t,e)=>{jd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>Bf(t,n,i,r)});function E_(t){return $f(dp,t)}var ns=g("ZodPipe",(t,e)=>{Nd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>lm(t,n,i,r),t.in=e.in,t.out=e.out});function Xn(t,e){return new ns({type:"pipe",in:t,out:e})}var is=g("ZodCodec",(t,e)=>{ns.init(t,e),Fn.init(t,e)});function T_(t,e,n){return new is({type:"pipe",in:t,out:e,transform:n.decode,reverseTransform:n.encode})}var fp=g("ZodReadonly",(t,e)=>{Dd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>dm(t,n,i,r),t.unwrap=()=>t._zod.def.innerType});function mp(t){return new fp({type:"readonly",innerType:t})}var pp=g("ZodTemplateLiteral",(t,e)=>{Ud.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>Kf(t,n,i,r)});function z_(t,e){return new pp({type:"template_literal",parts:t,...w.normalizeParams(e)})}var gp=g("ZodLazy",(t,e)=>{Zd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>mm(t,n,i,r),t.unwrap=()=>t._zod.def.getter()});function hp(t){return new gp({type:"lazy",getter:t})}var vp=g("ZodPromise",(t,e)=>{Ld.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>fm(t,n,i,r),t.unwrap=()=>t._zod.def.innerType});function C_(t){return new vp({type:"promise",innerType:t})}var yp=g("ZodFunction",(t,e)=>{Rd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>Gf(t,n,i,r)});function j_(t){return new yp({type:"function",input:Array.isArray(t?.input)?Jm(t?.input):t?.input??ti(Rt()),output:t?.output??Rt()})}var oi=g("ZodCustom",(t,e)=>{Md.init(t,e),j.init(t,e),t._zod.processJSONSchema=(n,i,r)=>Wf(t,n,i,r)});function N_(t){let e=new V({check:"custom"});return e._zod.check=t,e}function D_(t,e){return xf(oi,t??(()=>!0),e)}function bp(t,e={}){return Sf(oi,t,e)}function _p(t){return If(t)}var U_=Of,R_=Pf;function L_(t,e={}){let n=new oi({type:"custom",check:"custom",fn:i=>i instanceof t,abort:!0,...w.normalizeParams(e)});return n._zod.bag.Class=t,n._zod.check=i=>{i.value instanceof t||i.issues.push({code:"invalid_type",expected:t.name,input:i.value,inst:n,path:[...n._zod.def.path??[]]})},n}var Z_=(...t)=>Af({Codec:is,Boolean:Tr,String:Pr},...t);function M_(t){let e=hp(()=>Xa([Ta(t),Tm(),zm(),Dm(),ti(e),Hm(Ta(),e)]));return e}function q_(t,e){return Xn(es(t),e)}var _0={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 $0(t){G({customError:t})}function w0(){return G().customError}var $p;$p||($p={});var S={...Hn,...Ia,iso:Ir},k0=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 x0(t,e){let n=t.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":e??"draft-2020-12"}function S0(t,e){if(!t.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=t.slice(1).split("/").filter(Boolean);if(n.length===0)return e.rootSchema;let i=e.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===i){let r=n[1];if(!r||!e.defs[r])throw new Error(`Reference not found: ${t}`);return e.defs[r]}throw new Error(`Reference not found: ${t}`)}function F_(t,e){if(t.not!==void 0){if(typeof t.not=="object"&&Object.keys(t.not).length===0)return S.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(t.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(t.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(t.if!==void 0||t.then!==void 0||t.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(t.dependentSchemas!==void 0||t.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(t.$ref){let r=t.$ref;if(e.refs.has(r))return e.refs.get(r);if(e.processing.has(r))return S.lazy(()=>{if(!e.refs.has(r))throw new Error(`Circular reference not resolved: ${r}`);return e.refs.get(r)});e.processing.add(r);let o=S0(r,e),a=se(o,e);return e.refs.set(r,a),e.processing.delete(r),a}if(t.enum!==void 0){let r=t.enum;if(e.version==="openapi-3.0"&&t.nullable===!0&&r.length===1&&r[0]===null)return S.null();if(r.length===0)return S.never();if(r.length===1)return S.literal(r[0]);if(r.every(a=>typeof a=="string"))return S.enum(r);let o=r.map(a=>S.literal(a));return o.length<2?o[0]:S.union([o[0],o[1],...o.slice(2)])}if(t.const!==void 0)return S.literal(t.const);let n=t.type;if(Array.isArray(n)){let r=n.map(o=>{let a={...t,type:o};return F_(a,e)});return r.length===0?S.never():r.length===1?r[0]:S.union(r)}if(!n)return S.any();let i;switch(n){case"string":{let r=S.string();if(t.format){let o=t.format;o==="email"?r=r.check(S.email()):o==="uri"||o==="uri-reference"?r=r.check(S.url()):o==="uuid"||o==="guid"?r=r.check(S.uuid()):o==="date-time"?r=r.check(S.iso.datetime()):o==="date"?r=r.check(S.iso.date()):o==="time"?r=r.check(S.iso.time()):o==="duration"?r=r.check(S.iso.duration()):o==="ipv4"?r=r.check(S.ipv4()):o==="ipv6"?r=r.check(S.ipv6()):o==="mac"?r=r.check(S.mac()):o==="cidr"?r=r.check(S.cidrv4()):o==="cidr-v6"?r=r.check(S.cidrv6()):o==="base64"?r=r.check(S.base64()):o==="base64url"?r=r.check(S.base64url()):o==="e164"?r=r.check(S.e164()):o==="jwt"?r=r.check(S.jwt()):o==="emoji"?r=r.check(S.emoji()):o==="nanoid"?r=r.check(S.nanoid()):o==="cuid"?r=r.check(S.cuid()):o==="cuid2"?r=r.check(S.cuid2()):o==="ulid"?r=r.check(S.ulid()):o==="xid"?r=r.check(S.xid()):o==="ksuid"&&(r=r.check(S.ksuid()))}typeof t.minLength=="number"&&(r=r.min(t.minLength)),typeof t.maxLength=="number"&&(r=r.max(t.maxLength)),t.pattern&&(r=r.regex(new RegExp(t.pattern))),i=r;break}case"number":case"integer":{let r=n==="integer"?S.number().int():S.number();typeof t.minimum=="number"&&(r=r.min(t.minimum)),typeof t.maximum=="number"&&(r=r.max(t.maximum)),typeof t.exclusiveMinimum=="number"?r=r.gt(t.exclusiveMinimum):t.exclusiveMinimum===!0&&typeof t.minimum=="number"&&(r=r.gt(t.minimum)),typeof t.exclusiveMaximum=="number"?r=r.lt(t.exclusiveMaximum):t.exclusiveMaximum===!0&&typeof t.maximum=="number"&&(r=r.lt(t.maximum)),typeof t.multipleOf=="number"&&(r=r.multipleOf(t.multipleOf)),i=r;break}case"boolean":{i=S.boolean();break}case"null":{i=S.null();break}case"object":{let r={},o=t.properties||{},a=new Set(t.required||[]);for(let[c,u]of Object.entries(o)){let l=se(u,e);r[c]=a.has(c)?l:l.optional()}if(t.propertyNames){let c=se(t.propertyNames,e),u=t.additionalProperties&&typeof t.additionalProperties=="object"?se(t.additionalProperties,e):S.any();if(Object.keys(r).length===0){i=S.record(c,u);break}let l=S.object(r).passthrough(),d=S.looseRecord(c,u);i=S.intersection(l,d);break}if(t.patternProperties){let c=t.patternProperties,u=Object.keys(c),l=[];for(let f of u){let p=se(c[f],e),y=S.string().regex(new RegExp(f));l.push(S.looseRecord(y,p))}let d=[];if(Object.keys(r).length>0&&d.push(S.object(r).passthrough()),d.push(...l),d.length===0)i=S.object({}).passthrough();else if(d.length===1)i=d[0];else{let f=S.intersection(d[0],d[1]);for(let p=2;p<d.length;p++)f=S.intersection(f,d[p]);i=f}break}let s=S.object(r);t.additionalProperties===!1?i=s.strict():typeof t.additionalProperties=="object"?i=s.catchall(se(t.additionalProperties,e)):i=s.passthrough();break}case"array":{let r=t.prefixItems,o=t.items;if(r&&Array.isArray(r)){let a=r.map(c=>se(c,e)),s=o&&typeof o=="object"&&!Array.isArray(o)?se(o,e):void 0;s?i=S.tuple(a).rest(s):i=S.tuple(a),typeof t.minItems=="number"&&(i=i.check(S.minLength(t.minItems))),typeof t.maxItems=="number"&&(i=i.check(S.maxLength(t.maxItems)))}else if(Array.isArray(o)){let a=o.map(c=>se(c,e)),s=t.additionalItems&&typeof t.additionalItems=="object"?se(t.additionalItems,e):void 0;s?i=S.tuple(a).rest(s):i=S.tuple(a),typeof t.minItems=="number"&&(i=i.check(S.minLength(t.minItems))),typeof t.maxItems=="number"&&(i=i.check(S.maxLength(t.maxItems)))}else if(o!==void 0){let a=se(o,e),s=S.array(a);typeof t.minItems=="number"&&(s=s.min(t.minItems)),typeof t.maxItems=="number"&&(s=s.max(t.maxItems)),i=s}else i=S.array(S.any());break}default:throw new Error(`Unsupported type: ${n}`)}return t.description&&(i=i.describe(t.description)),t.default!==void 0&&(i=i.default(t.default)),i}function se(t,e){if(typeof t=="boolean")return t?S.any():S.never();let n=F_(t,e),i=t.type||t.enum!==void 0||t.const!==void 0;if(t.anyOf&&Array.isArray(t.anyOf)){let s=t.anyOf.map(u=>se(u,e)),c=S.union(s);n=i?S.intersection(n,c):c}if(t.oneOf&&Array.isArray(t.oneOf)){let s=t.oneOf.map(u=>se(u,e)),c=S.xor(s);n=i?S.intersection(n,c):c}if(t.allOf&&Array.isArray(t.allOf))if(t.allOf.length===0)n=i?n:S.any();else{let s=i?n:se(t.allOf[0],e),c=i?0:1;for(let u=c;u<t.allOf.length;u++)s=S.intersection(s,se(t.allOf[u],e));n=s}t.nullable===!0&&e.version==="openapi-3.0"&&(n=S.nullable(n)),t.readOnly===!0&&(n=S.readonly(n));let r={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of o)s in t&&(r[s]=t[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in t&&(r[s]=t[s]);for(let s of Object.keys(t))k0.has(s)||(r[s]=t[s]);return Object.keys(r).length>0&&e.registry.add(n,r),n}function V_(t,e){if(typeof t=="boolean")return t?S.any():S.never();let n=x0(t,e?.defaultTarget),i=t.$defs||t.definitions||{},r={version:n,defs:i,refs:new Map,processing:new Set,rootSchema:t,registry:e?.registry??oe};return se(t,r)}var wp={};Ve(wp,{bigint:()=>A0,boolean:()=>P0,date:()=>E0,number:()=>O0,string:()=>I0});function I0(t){return Bd(Pr,t)}function O0(t){return Qd(Er,t)}function P0(t){return sf(Tr,t)}function A0(t){return uf(zr,t)}function E0(t){return _f(ei,t)}G(Bo());var T0=m.string().min(1),z0=m.object({type:m.literal("named"),name:m.enum(["second","minute","hour","day","week","month"])}),C0=m.object({type:m.literal("custom"),seconds:m.number().int().positive(),label:m.string().optional()}),j0=m.discriminatedUnion("type",[z0,C0]),ai=m.preprocess(t=>{if(!t||typeof t!="object")return t;let e=t;return e.dimension||!e.meter?t:{...e,dimension:e.meter}},m.object({dimension:T0,window:j0,capacity:m.number().nonnegative(),enforcement:m.enum(["enforce","track"]).optional()})),UN=m.array(ai).max(20);var B_=["subscription.created","subscription.updated","subscription.canceled","payment.succeeded","payment.failed","rate_limit.exceeded","entitlement.changed","usage.threshold_reached"],os=m.enum(B_);var VN=m.object({subdomain:m.string().min(1).max(63).regex(/^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/,"Subdomain must be lowercase alphanumeric with optional hyphens")}),N0=m.object({key:m.string().min(1).max(64).regex(/^[a-z0-9_]+$/,"Meter key must be lowercase alphanumeric with underscores"),display:m.string().min(1).max(100),type:m.enum(["built-in","custom"]).default("custom"),unit:m.string().max(20).optional()}),D0=m.enum(["free_trial","flat_subscription","included_usage","subscription_overage","pay_as_you_go","prepaid_credits"]),Ce=m.enum(["preserve_current_period","switch_immediately","switch_immediately_prorate","new_subscribers_only"]),U0=m.object({default:Ce.default("preserve_current_period"),proration:m.enum(["none","prorate","credit"]).default("none"),when:m.object({price_increase:Ce.optional(),price_decrease:Ce.optional(),feature_added:Ce.optional(),feature_removed:Ce.optional(),limit_increased:Ce.optional(),limit_reduced:Ce.optional(),credit_increased:Ce.optional(),credit_reduced:Ce.optional(),rating_changed:Ce.optional(),strategy_changed:Ce.optional()}).strict().default({price_increase:"preserve_current_period",price_decrease:"switch_immediately",feature_added:"switch_immediately",feature_removed:"preserve_current_period",limit_increased:"switch_immediately",limit_reduced:"preserve_current_period",credit_increased:"switch_immediately",credit_reduced:"preserve_current_period",rating_changed:"preserve_current_period",strategy_changed:"preserve_current_period"}),allowImmediatePriceIncrease:m.boolean().default(!1),allowImmediateEntitlementReduction:m.boolean().default(!1)}).strict().superRefine((t,e)=>{let n=new Set(["switch_immediately","switch_immediately_prorate"]);n.has(t.when.price_increase??t.default)&&!t.allowImmediatePriceIncrease&&e.addIssue({code:"custom",path:["when","price_increase"],message:"price_increase cannot switch immediately without allowImmediatePriceIncrease: true"});for(let i of["feature_removed","limit_reduced","credit_reduced"])n.has(t.when[i]??t.default)&&!t.allowImmediateEntitlementReduction&&e.addIssue({code:"custom",path:["when",i],message:`${i} cannot switch immediately without allowImmediateEntitlementReduction: true`})}),J_=m.string().min(1).max(64).regex(/^[a-z0-9_]+$/,"Usage measure must be lowercase alphanumeric with underscores"),R0=m.enum(["pass_through","markup","fixed_margin","customer_rate"]),L0=m.object({source:m.literal("fixed"),rates:m.record(m.string().min(1),m.record(J_,m.number().int().nonnegative()))}),Z0=m.object({source:m.literal("provider_catalog"),catalog:m.string().min(1).max(100),pricePolicy:R0.default("pass_through"),markupPercent:m.number().nonnegative().max(1e4).optional(),marginMicros:m.number().int().nonnegative().optional()}),M0=m.object({source:m.literal("upstream_reported"),amountField:m.string().min(1).max(500),currencyField:m.string().min(1).max(500).optional()}),q0=m.object({source:m.literal("external_rate_api"),resolver:m.string().min(1).max(100),configRef:m.string().min(1).max(200).optional()}),F0=m.object({source:m.literal("custom"),resolver:m.string().min(1).max(100),configRef:m.string().min(1).max(200).optional()}),V0=m.discriminatedUnion("source",[L0,Z0,M0,q0,F0]),B0=m.object({selector:m.string().min(1).max(100).optional(),measures:m.array(J_).min(1).max(20),rating:V0.optional()}),K0=m.object({meters:m.record(m.string().min(1).max(64).regex(/^[a-z0-9_]+$/),B0)}),J0=m.object({method:m.enum(["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","*"]).default("*"),path:m.string().min(1).max(500)}),H0=m.object({routes:m.array(J0).min(1).max(50).default([])}),W0=m.record(m.string().min(1).max(100).regex(/^[a-z0-9_.:-]+$/),H0),G0=m.object({upToAmount:m.number().int().positive().nullable(),unitPrice:m.number().nonnegative(),flatPrice:m.number().nonnegative().optional()}),xp=m.object({dimension:m.string().min(1),includedUnits:m.number().int().nonnegative().default(0),overagePerUnitMicrocents:m.number().int().nonnegative().default(0),tiers:m.array(G0).optional(),pricingMode:m.enum(["graduated","volume"]).optional()}),kp={monthlyPriceCents:m.number().int().nonnegative().default(0),billingInterval:m.enum(["month","year"]).default("month"),trialDays:m.number().int().nonnegative().optional(),monthlyBudgetCents:m.number().int().positive().optional(),stripePriceId:m.string().min(1).optional()},Y0=m.object({expr:m.string().min(1).max(1e3)}),K_=m.object({upTo:m.number().positive().nullable(),unitAmountMicros:m.number().int().nonnegative()}),X0=m.discriminatedUnion("kind",[m.object({kind:m.literal("flat"),amountMicros:m.number().int().nonnegative()}),m.object({kind:m.literal("per_unit"),unitAmountMicros:m.number().int().nonnegative(),unit:m.string().max(20).optional()}),m.object({kind:m.literal("graduated"),intraRequest:m.boolean().default(!1),tiers:m.array(K_).min(1)}),m.object({kind:m.literal("volume_retroactive"),tiers:m.array(K_).min(1)}),m.object({kind:m.literal("formula"),expr:m.string().min(1).max(1e3)})]),Q0=m.discriminatedUnion("kind",[m.object({kind:m.literal("percentage"),basisPoints:m.number().int().positive().max(1e4),appliesToDimensions:m.array(m.string().min(1)).optional()}),m.object({kind:m.literal("fixed_micros"),amountMicros:m.number().int().nonnegative(),appliesToDimensions:m.array(m.string().min(1)).optional()})]),eA=m.object({minimumMonthlySpendMicros:m.number().int().nonnegative().optional(),includedCreditMicros:m.number().int().nonnegative().optional()}).refine(t=>t.minimumMonthlySpendMicros!==void 0||t.includedCreditMicros!==void 0,{message:"commitments must declare at least one of minimumMonthlySpendMicros or includedCreditMicros"}),tA=m.object({mode:m.literal("builder_attested"),header:m.string().min(1).max(100).optional(),signatureHeader:m.string().min(1).max(100).optional(),schema:m.record(m.string(),m.enum(["int","float","string","boolean"]))}),rA=m.object({dimension:m.string().min(1),unit:m.string().max(20).optional(),measure:Y0,price:X0}),Sp=m.discriminatedUnion("model",[m.object({model:m.literal("flat_rate"),...kp}),m.object({model:m.literal("included_usage"),...kp}),m.object({model:m.literal("pay_as_you_go"),...kp}),m.object({model:m.literal("configurable_usage"),billingInterval:m.enum(["month","year"]).default("month"),trialDays:m.number().int().nonnegative().optional(),rateCard:m.array(rA).min(1),discounts:m.array(Q0).default([]),commitments:eA.optional(),reporting:tA.optional(),stripePriceId:m.string().min(1).optional()})]),nA=m.enum(["NONE","PRORATE","CREDIT"]).default("NONE"),iA=m.object({id:m.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"Variant id must be lowercase alphanumeric with hyphens/underscores"),label:m.string().max(200).optional(),rolloutPercent:m.number().int().min(0).max(100),assignmentSeed:m.string().min(1).max(100).default("default"),prorationOnRollback:nA,pricing:Sp.optional(),limits:m.array(ai).max(20).optional(),featureGates:m.record(m.string(),m.boolean()).optional(),overageBehavior:m.enum(["block","allow_and_bill"]).optional(),meteredDimensions:m.array(xp).optional()}),oA=m.object({key:m.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"Plan key must be lowercase alphanumeric with hyphens/underscores"),name:m.string().min(1).max(100),description:m.string().max(500).optional(),details:m.array(m.string().max(200)).max(10).optional(),pricing:Sp.default({model:"flat_rate",monthlyPriceCents:0,billingInterval:"month"}),free:m.boolean().default(!1),price:m.object({monthly:m.number().int().nonnegative().optional(),yearly:m.number().int().nonnegative().optional(),currency:m.string().length(3).default("USD")}).strict().optional(),credits:m.object({monthlyIncludedMicros:m.number().int().nonnegative().optional()}).strict().optional(),usage:m.object({meters:m.array(m.string().min(1).max(64)).default([])}).strict().optional(),features:m.array(m.string().min(1).max(100)).default([]),limits:m.array(ai).max(20).default([]),featureGates:m.record(m.string(),m.boolean()).optional(),overageBehavior:m.enum(["block","allow_and_bill"]).default("block"),selfServeEnabled:m.boolean().default(!0),meteredDimensions:m.array(xp).optional(),legacy:m.boolean().optional().default(!1),variants:m.array(iA).max(4).optional(),archive:m.object({at:m.string().datetime().optional(),transitionTo:m.string().optional(),strategy:m.enum(["auto","explicit","block"]).default("auto")}).optional()}),aA=/^\$\{[A-Z][A-Z0-9_]{0,127}\}$/,H_=m.string().min(3).max(200).refine(t=>aA.test(t),{message:"secret must use ${VAR} interpolation syntax (e.g. ${WEBHOOK_SECRET}); raw secrets in YAML are rejected. Define the env var in the per-product secret store and reference it here."}),W_=m.object({maxAttempts:m.number().int().min(1).max(20).default(5),backoff:m.enum(["exponential","fixed"]).default("exponential")}),sA=m.object({id:m.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"Webhook endpoint id must be lowercase alphanumeric with hyphens/underscores"),url:m.string().url("webhooks.endpoints[].url must be a valid URL"),secret:H_,events:m.array(os).min(1,"webhooks.endpoints[].events must subscribe to \u2265 1 event"),enabled:m.boolean().default(!0),retryPolicy:W_.default({maxAttempts:5,backoff:"exponential"})}),cA=m.object({endpoints:m.array(sA).max(50).default([])}),uA=m.object({pricing:Sp.optional(),limits:m.array(ai).max(20).optional(),featureGates:m.record(m.string(),m.boolean()).optional(),overageBehavior:m.enum(["block","allow_and_bill"]).optional(),selfServeEnabled:m.boolean().optional(),meteredDimensions:m.array(xp).optional(),legacy:m.boolean().optional()}).strict(),lA=m.object({url:m.string().url().optional(),secret:H_.optional(),events:m.array(os).optional(),enabled:m.boolean().optional(),retryPolicy:W_.partial().optional()}).strict(),dA=m.object({plans:m.record(m.string(),uA).optional(),webhooks:m.object({endpoints:m.record(m.string(),lA).optional()}).strict().optional()}).strict(),fA=m.record(m.string().min(1).max(64),dA),Cr=m.object({product:m.object({name:m.string().min(1).max(100),displayName:m.string().max(200).optional(),description:m.string().max(2e3).optional(),baseUrl:m.string().url("baseUrl must be a valid URL"),sandboxBaseUrl:m.string().url("sandboxBaseUrl must be a valid URL").optional(),visibility:m.enum(["public","private"]).default("public"),logoUrl:m.string().url().optional(),primaryColor:m.string().regex(/^#[0-9a-fA-F]{6}$/).optional(),envBranchPrefix:m.string().max(50).nullable().optional()}),gateway:m.object({authHeader:m.string().min(1).max(100).default("x-api-key"),upstreamAuth:m.object({type:m.enum(["none","static_bearer"]),token:m.string().optional()}).default({type:"none"})}),metering:m.object({meters:m.array(N0).max(10).default([]),billOn4xx:m.boolean().default(!1)}).default({meters:[],billOn4xx:!1}),usage:K0.optional(),usagePricing:m.never({error:"usagePricing is not supported. Define usage.meters.<key>.rating instead."}).optional(),features:W0.optional(),billing:m.object({strategy:D0,gracePeriodDays:m.number().int().nonnegative().default(3),subscriberChangePolicy:U0.default({default:"preserve_current_period",proration:"none",when:{price_increase:"preserve_current_period",price_decrease:"switch_immediately",feature_added:"switch_immediately",feature_removed:"preserve_current_period",limit_increased:"switch_immediately",limit_reduced:"preserve_current_period",credit_increased:"switch_immediately",credit_reduced:"preserve_current_period",rating_changed:"preserve_current_period",strategy_changed:"preserve_current_period"},allowImmediatePriceIncrease:!1,allowImmediateEntitlementReduction:!1})}),plans:m.array(oA).max(4).default([]),webhooks:cA.optional(),environments:fA.optional()}).superRefine((t,e)=>{t.usagePricing!==void 0&&e.addIssue({code:"custom",path:["usagePricing"],message:"usagePricing is not supported. Define usage.meters.<key>.rating instead."}),t.plans.filter(r=>r.free).length>1&&e.addIssue({code:"custom",path:["plans"],message:"Only one free plan is allowed per product"});let i=new Map;for(let r=0;r<t.plans.length;r+=1){let o=t.plans[r],a=o.price?.monthly??("monthlyPriceCents"in o.pricing?o.pricing.monthlyPriceCents:void 0),s=o.price?.yearly!==void 0?"year":o.pricing.billingInterval,c=o.price?.currency??"USD";if(o.free){((a??0)!==0||(o.price?.yearly??0)!==0)&&e.addIssue({code:"custom",path:["plans",r,"price"],message:"Free plans must have zero price"}),o.limits.some(l=>!l.enforcement||l.enforcement==="enforce")||e.addIssue({code:"custom",path:["plans",r,"limits"],message:"Free plans must include at least one hard enforced limit"});continue}if(a!==void 0&&a>0){let u=`${c}:${s}:${a}`,l=i.get(u);l?e.addIssue({code:"custom",path:["plans",r,"price"],message:`Paid plan price duplicates plan "${l}" (${u})`}):i.set(u,o.key)}for(let u of o.usage?.meters??[])t.usage&&!t.usage.meters[u]&&e.addIssue({code:"custom",path:["plans",r,"usage","meters"],message:`Unknown usage meter "${u}"`});for(let u of o.features)t.features&&!t.features[u]&&e.addIssue({code:"custom",path:["plans",r,"features"],message:`Unknown feature "${u}"`})}}),BN=m.object({product:Cr.shape.product}),KN=m.object({gateway:Cr.shape.gateway}),JN=m.object({metering:Cr.shape.metering}),HN=m.object({plans:Cr.shape.plans});function G_(t){switch(t){case"free_trial":case"flat_subscription":return["flat_rate"];case"included_usage":case"subscription_overage":case"prepaid_credits":return["included_usage","configurable_usage"];case"pay_as_you_go":return["pay_as_you_go","configurable_usage"]}}var Ip=!!process.env.CI||!!process.env.GITHUB_ACTIONS;function vA(){for(let t of["main","master"])try{let e=gA(`git show ${t}:product.yaml 2>/dev/null`,{encoding:"utf-8",stdio:["pipe","pipe","pipe"]});return Op.default.parse(e).product?.name??null}catch{continue}return null}function si(t){let e=Cr.safeParse(t);if(!e.success)return{valid:!1,errors:e.error.issues.map(r=>yA(r,t)),warnings:[]};let n=bA(e.data),i=_A(e.data);return i.length>0?{valid:!1,errors:[`Duplicate plan keys: ${i.join(", ")}`],warnings:n}:{valid:!0,errors:[],warnings:n}}function yA(t,e){let n=t.path;if(n.length>=2&&n[0]==="plans"&&typeof n[1]=="number"){let o=(e?.plans??[])[n[1]],a=o?.key??o?.name??`#${n[1]}`,s=n.slice(2).join(".");return s?`Plan "${a}": ${s} \u2014 ${t.message}`:`Plan "${a}": ${t.message}`}return`${n.length>0?n.join("."):"(root)"}: ${t.message}`}function bA(t){let e=[];return t.plans.length===0?e.push("No plans declared \u2014 product cannot accept signups yet"):t.plans.some(i=>("monthlyPriceCents"in i.pricing?i.pricing.monthlyPriceCents:void 0)===0)||e.push("No free plan \u2014 consider adding one for developer adoption"),(!t.product.displayName||t.product.displayName===t.product.name)&&e.push("product.displayName not set \u2014 using product.name on the pricing page"),e}function _A(t){let e=new Set,n=new Set;for(let i of t.plans)e.has(i.key)?n.add(i.key):e.add(i.key);return[...n]}function jr(t){if(!pA(t))return{ok:!1,reason:"missing",message:t};try{let e=mA(t,"utf-8");return{ok:!0,spec:Op.default.parse(e)}}catch(e){return{ok:!1,reason:"parse",message:e instanceof Error?e.message:String(e)}}}function $A(t){if(Ip){for(let e of t.errors)console.log(`::error file=product.yaml::${e}`);for(let e of t.warnings)console.log(`::warning file=product.yaml::${e}`)}if(t.errors.length===0){ee("product.yaml is valid");for(let e of t.warnings)Pe(e);return}H(`product.yaml has ${t.errors.length} error(s):
|
|
225
|
-
`);for(let
|
|
224
|
+
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 kt(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=a=>{let s=e.seen.get(a);if(s.ref===null)return;let c=s.def??s.schema,u={...c},l=s.ref;if(s.ref=null,l){i(l);let f=e.seen.get(l),p=f.schema;if(p.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(p)):Object.assign(c,p),Object.assign(c,u),a._zod.parent===l)for(let h in c)h==="$ref"||h==="allOf"||h in u||delete c[h];if(p.$ref&&f.def)for(let h in c)h==="$ref"||h==="allOf"||h in f.def&&JSON.stringify(c[h])===JSON.stringify(f.def[h])&&delete c[h]}let d=a._zod.parent;if(d&&d!==l){i(d);let f=e.seen.get(d);if(f?.schema.$ref&&(c.$ref=f.schema.$ref,f.def))for(let p in c)p==="$ref"||p==="allOf"||p in f.def&&JSON.stringify(c[p])===JSON.stringify(f.def[p])&&delete c[p]}e.override({zodSchema:a,jsonSchema:c,path:s.path??[]})};for(let a of[...e.seen.entries()].reverse())i(a[0]);let r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(a)}Object.assign(r,n.def??n.schema);let o=e.external?.defs??{};for(let a of e.seen.entries()){let s=a[1];s.def&&s.defId&&(o[s.defId]=s.def)}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?r.$defs=o:r.definitions=o);try{let a=JSON.parse(JSON.stringify(r));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:Pr(t,"input",e.processors),output:Pr(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function fe(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return fe(i.element,n);if(i.type==="set")return fe(i.valueType,n);if(i.type==="lazy")return fe(i.getter(),n);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return fe(i.innerType,n);if(i.type==="intersection")return fe(i.left,n)||fe(i.right,n);if(i.type==="record"||i.type==="map")return fe(i.keyType,n)||fe(i.valueType,n);if(i.type==="pipe")return fe(i.in,n)||fe(i.out,n);if(i.type==="object"){for(let r in i.shape)if(fe(i.shape[r],n))return!0;return!1}if(i.type==="union"){for(let r of i.options)if(fe(r,n))return!0;return!1}if(i.type==="tuple"){for(let r of i.items)if(fe(r,n))return!0;return!!(i.rest&&fe(i.rest,n))}return!1}var Df=(e,t={})=>n=>{let i=$t({...n,processors:t});return L(e,i),wt(i,e),kt(i,e)},Pr=(e,t,n={})=>i=>{let{libraryOptions:r,target:o}=i??{},a=$t({...r??{},target:o,io:t,processors:n});return L(e,a),wt(a,e),kt(a,e)};var k0={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Uf=(e,t,n,i)=>{let r=n;r.type="string";let{minimum:o,maximum:a,format:s,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof o=="number"&&(r.minLength=o),typeof a=="number"&&(r.maxLength=a),s&&(r.format=k0[s]??s,r.format===""&&delete r.format,s==="time"&&delete r.format),u&&(r.contentEncoding=u),c&&c.size>0){let l=[...c];l.length===1?r.pattern=l[0].source:l.length>1&&(r.allOf=[...l.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},Rf=(e,t,n,i)=>{let r=n,{minimum:o,maximum:a,format:s,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:l}=e._zod.bag;typeof s=="string"&&s.includes("int")?r.type="integer":r.type="number",typeof l=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.minimum=l,r.exclusiveMinimum=!0):r.exclusiveMinimum=l),typeof o=="number"&&(r.minimum=o,typeof l=="number"&&t.target!=="draft-04"&&(l>=o?delete r.minimum:delete r.exclusiveMinimum)),typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.maximum=u,r.exclusiveMaximum=!0):r.exclusiveMaximum=u),typeof a=="number"&&(r.maximum=a,typeof u=="number"&&t.target!=="draft-04"&&(u<=a?delete r.maximum:delete r.exclusiveMaximum)),typeof c=="number"&&(r.multipleOf=c)},Lf=(e,t,n,i)=>{n.type="boolean"},Zf=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Mf=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},qf=(e,t,n,i)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},Ff=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Vf=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Bf=(e,t,n,i)=>{n.not={}},Kf=(e,t,n,i)=>{},Hf=(e,t,n,i)=>{},Jf=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Wf=(e,t,n,i)=>{let r=e._zod.def,o=zn(r.entries);o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),n.enum=o},Gf=(e,t,n,i)=>{let r=e._zod.def,o=[];for(let a of r.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];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a}else o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),o.every(a=>typeof a=="boolean")&&(n.type="boolean"),o.every(a=>a===null)&&(n.type="null"),n.enum=o},Yf=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Xf=(e,t,n,i)=>{let r=n,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=o.source},Qf=(e,t,n,i)=>{let r=n,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(r,o)):(Object.assign(r,o),r.anyOf=c.map(u=>({contentMediaType:u}))):Object.assign(r,o)},em=(e,t,n,i)=>{n.type="boolean"},tm=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},rm=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},nm=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},im=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},om=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},am=(e,t,n,i)=>{let r=n,o=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;typeof a=="number"&&(r.minItems=a),typeof s=="number"&&(r.maxItems=s),r.type="array",r.items=L(o.element,t,{...i,path:[...i.path,"items"]})},sm=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="object",r.properties={};let a=o.shape;for(let u in a)r.properties[u]=L(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&&(r.required=Array.from(c)),o.catchall?._zod.def.type==="never"?r.additionalProperties=!1:o.catchall?o.catchall&&(r.additionalProperties=L(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},Ea=(e,t,n,i)=>{let r=e._zod.def,o=r.inclusive===!1,a=r.options.map((s,c)=>L(s,t,{...i,path:[...i.path,o?"oneOf":"anyOf",c]}));o?n.oneOf=a:n.anyOf=a},cm=(e,t,n,i)=>{let r=e._zod.def,o=L(r.left,t,{...i,path:[...i.path,"allOf",0]}),a=L(r.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]];n.allOf=c},um=(e,t,n,i)=>{let r=n,o=e._zod.def;r.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((f,p)=>L(f,t,{...i,path:[...i.path,a,p]})),u=o.rest?L(o.rest,t,{...i,path:[...i.path,s,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=c,u&&(r.items=u)):t.target==="openapi-3.0"?(r.items={anyOf:c},u&&r.items.anyOf.push(u),r.minItems=c.length,u||(r.maxItems=c.length)):(r.items=c,u&&(r.additionalItems=u));let{minimum:l,maximum:d}=e._zod.bag;typeof l=="number"&&(r.minItems=l),typeof d=="number"&&(r.maxItems=d)},lm=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="object";let a=o.keyType,c=a._zod.bag?.patterns;if(o.mode==="loose"&&c&&c.size>0){let l=L(o.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});r.patternProperties={};for(let d of c)r.patternProperties[d.source]=l}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=L(o.keyType,t,{...i,path:[...i.path,"propertyNames"]})),r.additionalProperties=L(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]});let u=a._zod.values;if(u){let l=[...u].filter(d=>typeof d=="string"||typeof d=="number");l.length>0&&(r.required=l)}},dm=(e,t,n,i)=>{let r=e._zod.def,o=L(r.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},fm=(e,t,n,i)=>{let r=e._zod.def;L(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},mm=(e,t,n,i)=>{let r=e._zod.def;L(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},pm=(e,t,n,i)=>{let r=e._zod.def;L(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},gm=(e,t,n,i)=>{let r=e._zod.def;L(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},hm=(e,t,n,i)=>{let r=e._zod.def,o=t.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;L(o,t,i);let a=t.seen.get(e);a.ref=o},vm=(e,t,n,i)=>{let r=e._zod.def;L(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,n.readOnly=!0},ym=(e,t,n,i)=>{let r=e._zod.def;L(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},Aa=(e,t,n,i)=>{let r=e._zod.def;L(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},bm=(e,t,n,i)=>{let r=e._zod.innerType;L(r,t,i);let o=t.seen.get(e);o.ref=r},Pa={string:Uf,number:Rf,boolean:Lf,bigint:Zf,symbol:Mf,null:qf,undefined:Ff,void:Vf,never:Bf,any:Kf,unknown:Hf,date:Jf,enum:Wf,literal:Gf,nan:Yf,template_literal:Xf,file:Qf,success:em,custom:tm,function:rm,transform:nm,map:im,set:om,array:am,object:sm,union:Ea,intersection:cm,tuple:um,record:lm,nullable:dm,nonoptional:fm,default:mm,prefault:pm,catch:gm,pipe:hm,readonly:vm,promise:ym,optional:Aa,lazy:bm};function Ta(e,t){if("_idmap"in e){let i=e,r=$t({...t,processors:Pa}),o={};for(let c of i._idmap.entries()){let[u,l]=c;L(l,r)}let a={},s={registry:i,uri:t?.uri,defs:o};r.external=s;for(let c of i._idmap.entries()){let[u,l]=c;wt(r,l),a[u]=kt(r,l)}if(Object.keys(o).length>0){let c=r.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:o}}return{schemas:a}}let n=$t({...t,processors:Pa});return L(e,n),wt(n,e),kt(n,e)}var za=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 n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=$t({processors:Pa,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return L(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),wt(this.ctx,t);let i=kt(this.ctx,t),{"~standard":r,...o}=i;return o}};var Cb={};var Gn={};He(Gn,{ZodAny:()=>Fm,ZodArray:()=>Hm,ZodBase64:()=>Qa,ZodBase64URL:()=>es,ZodBigInt:()=>Nr,ZodBigIntFormat:()=>ns,ZodBoolean:()=>jr,ZodCIDRv4:()=>Ya,ZodCIDRv6:()=>Xa,ZodCUID:()=>Va,ZodCUID2:()=>Ba,ZodCatch:()=>gp,ZodCodec:()=>ds,ZodCustom:()=>si,ZodCustomStringFormat:()=>zr,ZodDate:()=>ri,ZodDefault:()=>up,ZodDiscriminatedUnion:()=>Wm,ZodE164:()=>ts,ZodEmail:()=>Ma,ZodEmoji:()=>qa,ZodEnum:()=>Ar,ZodExactOptional:()=>ap,ZodFile:()=>ip,ZodFunction:()=>xp,ZodGUID:()=>Yn,ZodIPv4:()=>Wa,ZodIPv6:()=>Ga,ZodIntersection:()=>Gm,ZodJWT:()=>rs,ZodKSUID:()=>Ja,ZodLazy:()=>$p,ZodLiteral:()=>np,ZodMAC:()=>Dm,ZodMap:()=>tp,ZodNaN:()=>vp,ZodNanoID:()=>Fa,ZodNever:()=>Bm,ZodNonOptional:()=>us,ZodNull:()=>Mm,ZodNullable:()=>cp,ZodNumber:()=>Cr,ZodNumberFormat:()=>qt,ZodObject:()=>ii,ZodOptional:()=>cs,ZodPipe:()=>ls,ZodPrefault:()=>dp,ZodPromise:()=>kp,ZodReadonly:()=>yp,ZodRecord:()=>ai,ZodSet:()=>rp,ZodString:()=>Tr,ZodStringFormat:()=>V,ZodSuccess:()=>pp,ZodSymbol:()=>Lm,ZodTemplateLiteral:()=>_p,ZodTransform:()=>op,ZodTuple:()=>Xm,ZodType:()=>j,ZodULID:()=>Ka,ZodURL:()=>ti,ZodUUID:()=>Ve,ZodUndefined:()=>Zm,ZodUnion:()=>oi,ZodUnknown:()=>Vm,ZodVoid:()=>Km,ZodXID:()=>Ha,ZodXor:()=>Jm,_ZodString:()=>Za,_default:()=>lp,_function:()=>Z_,any:()=>y_,array:()=>ni,base64:()=>t_,base64url:()=>r_,bigint:()=>m_,boolean:()=>Rm,catch:()=>hp,check:()=>M_,cidrv4:()=>Qb,cidrv6:()=>e_,codec:()=>U_,cuid:()=>Bb,cuid2:()=>Kb,custom:()=>q_,date:()=>__,describe:()=>F_,discriminatedUnion:()=>I_,e164:()=>n_,email:()=>Nb,emoji:()=>Fb,enum:()=>as,exactOptional:()=>sp,file:()=>C_,float32:()=>u_,float64:()=>l_,function:()=>Z_,guid:()=>Db,hash:()=>c_,hex:()=>s_,hostname:()=>a_,httpUrl:()=>qb,instanceof:()=>B_,int:()=>La,int32:()=>d_,int64:()=>p_,intersection:()=>Ym,ipv4:()=>Gb,ipv6:()=>Xb,json:()=>H_,jwt:()=>i_,keyof:()=>$_,ksuid:()=>Wb,lazy:()=>wp,literal:()=>z_,looseObject:()=>x_,looseRecord:()=>P_,mac:()=>Yb,map:()=>E_,meta:()=>V_,nan:()=>D_,nanoid:()=>Vb,nativeEnum:()=>T_,never:()=>is,nonoptional:()=>mp,null:()=>qm,nullable:()=>Qn,nullish:()=>j_,number:()=>Um,object:()=>w_,optional:()=>Xn,partialRecord:()=>O_,pipe:()=>ei,prefault:()=>fp,preprocess:()=>J_,promise:()=>L_,readonly:()=>bp,record:()=>ep,refine:()=>Sp,set:()=>A_,strictObject:()=>k_,string:()=>Ra,stringFormat:()=>o_,stringbool:()=>K_,success:()=>N_,superRefine:()=>Ip,symbol:()=>h_,templateLiteral:()=>R_,transform:()=>ss,tuple:()=>Qm,uint32:()=>f_,uint64:()=>g_,ulid:()=>Hb,undefined:()=>v_,union:()=>os,unknown:()=>Mt,url:()=>Mb,uuid:()=>Ub,uuidv4:()=>Rb,uuidv6:()=>Lb,uuidv7:()=>Zb,void:()=>b_,xid:()=>Jb,xor:()=>S_});var Ca={};He(Ca,{endsWith:()=>_r,gt:()=>qe,gte:()=>de,includes:()=>yr,length:()=>Zt,lowercase:()=>hr,lt:()=>Me,lte:()=>$e,maxLength:()=>Lt,maxSize:()=>_t,mime:()=>$r,minLength:()=>Xe,minSize:()=>Fe,multipleOf:()=>bt,negative:()=>xa,nonnegative:()=>Ia,nonpositive:()=>Sa,normalize:()=>wr,overwrite:()=>Ne,positive:()=>ka,property:()=>Oa,regex:()=>gr,size:()=>Rt,slugify:()=>Ir,startsWith:()=>br,toLowerCase:()=>xr,toUpperCase:()=>Sr,trim:()=>kr,uppercase:()=>vr});var Er={};He(Er,{ZodISODate:()=>Na,ZodISODateTime:()=>ja,ZodISODuration:()=>Ua,ZodISOTime:()=>Da,date:()=>$m,datetime:()=>_m,duration:()=>km,time:()=>wm});var ja=g("ZodISODateTime",(e,t)=>{Gl.init(e,t),V.init(e,t)});function _m(e){return ef(ja,e)}var Na=g("ZodISODate",(e,t)=>{Yl.init(e,t),V.init(e,t)});function $m(e){return tf(Na,e)}var Da=g("ZodISOTime",(e,t)=>{Xl.init(e,t),V.init(e,t)});function wm(e){return rf(Da,e)}var Ua=g("ZodISODuration",(e,t)=>{Ql.init(e,t),V.init(e,t)});function km(e){return nf(Ua,e)}var jb=(e,t)=>{Un.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Ln(e,n)},flatten:{value:n=>Rn(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,ar,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,ar,2)}},isEmpty:{get(){return e.issues.length===0}}})},S0=g("ZodError",jb),ve=g("ZodError",jb,{Parent:Error});var xm=ur(ve),Sm=lr(ve),Im=dr(ve),Om=fr(ve),Pm=To(ve),Em=zo(ve),Am=Co(ve),Tm=jo(ve),zm=No(ve),Cm=Do(ve),jm=Uo(ve),Nm=Ro(ve);var j=g("ZodType",(e,t)=>(z.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Pr(e,"input"),output:Pr(e,"output")}}),e.toJSONSchema=Df(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(w.mergeDefs(t,{checks:[...t.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0}),e.with=e.check,e.clone=(n,i)=>le(e,n,i),e.brand=()=>e,e.register=((n,i)=>(n.add(e,i),e)),e.parse=(n,i)=>xm(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>Im(e,n,i),e.parseAsync=async(n,i)=>Sm(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>Om(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>Pm(e,n,i),e.decode=(n,i)=>Em(e,n,i),e.encodeAsync=async(n,i)=>Am(e,n,i),e.decodeAsync=async(n,i)=>Tm(e,n,i),e.safeEncode=(n,i)=>zm(e,n,i),e.safeDecode=(n,i)=>Cm(e,n,i),e.safeEncodeAsync=async(n,i)=>jm(e,n,i),e.safeDecodeAsync=async(n,i)=>Nm(e,n,i),e.refine=(n,i)=>e.check(Sp(n,i)),e.superRefine=n=>e.check(Ip(n)),e.overwrite=n=>e.check(Ne(n)),e.optional=()=>Xn(e),e.exactOptional=()=>sp(e),e.nullable=()=>Qn(e),e.nullish=()=>Xn(Qn(e)),e.nonoptional=n=>mp(e,n),e.array=()=>ni(e),e.or=n=>os([e,n]),e.and=n=>Ym(e,n),e.transform=n=>ei(e,ss(n)),e.default=n=>lp(e,n),e.prefault=n=>fp(e,n),e.catch=n=>hp(e,n),e.pipe=n=>ei(e,n),e.readonly=()=>bp(e),e.describe=n=>{let i=e.clone();return ae.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){return ae.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return ae.get(e);let i=e.clone();return ae.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),Za=g("_ZodString",(e,t)=>{Ut.init(e,t),j.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Uf(e,i,r,o);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...i)=>e.check(gr(...i)),e.includes=(...i)=>e.check(yr(...i)),e.startsWith=(...i)=>e.check(br(...i)),e.endsWith=(...i)=>e.check(_r(...i)),e.min=(...i)=>e.check(Xe(...i)),e.max=(...i)=>e.check(Lt(...i)),e.length=(...i)=>e.check(Zt(...i)),e.nonempty=(...i)=>e.check(Xe(1,...i)),e.lowercase=i=>e.check(hr(i)),e.uppercase=i=>e.check(vr(i)),e.trim=()=>e.check(kr()),e.normalize=(...i)=>e.check(wr(...i)),e.toLowerCase=()=>e.check(xr()),e.toUpperCase=()=>e.check(Sr()),e.slugify=()=>e.check(Ir())}),Tr=g("ZodString",(e,t)=>{Ut.init(e,t),Za.init(e,t),e.email=n=>e.check(na(Ma,n)),e.url=n=>e.check(Wn(ti,n)),e.jwt=n=>e.check(wa(rs,n)),e.emoji=n=>e.check(ca(qa,n)),e.guid=n=>e.check(Jn(Yn,n)),e.uuid=n=>e.check(ia(Ve,n)),e.uuidv4=n=>e.check(oa(Ve,n)),e.uuidv6=n=>e.check(aa(Ve,n)),e.uuidv7=n=>e.check(sa(Ve,n)),e.nanoid=n=>e.check(ua(Fa,n)),e.guid=n=>e.check(Jn(Yn,n)),e.cuid=n=>e.check(la(Va,n)),e.cuid2=n=>e.check(da(Ba,n)),e.ulid=n=>e.check(fa(Ka,n)),e.base64=n=>e.check(ba(Qa,n)),e.base64url=n=>e.check(_a(es,n)),e.xid=n=>e.check(ma(Ha,n)),e.ksuid=n=>e.check(pa(Ja,n)),e.ipv4=n=>e.check(ga(Wa,n)),e.ipv6=n=>e.check(ha(Ga,n)),e.cidrv4=n=>e.check(va(Ya,n)),e.cidrv6=n=>e.check(ya(Xa,n)),e.e164=n=>e.check($a(ts,n)),e.datetime=n=>e.check(_m(n)),e.date=n=>e.check($m(n)),e.time=n=>e.check(wm(n)),e.duration=n=>e.check(km(n))});function Ra(e){return Gd(Tr,e)}var V=g("ZodStringFormat",(e,t)=>{F.init(e,t),Za.init(e,t)}),Ma=g("ZodEmail",(e,t)=>{Ml.init(e,t),V.init(e,t)});function Nb(e){return na(Ma,e)}var Yn=g("ZodGUID",(e,t)=>{Ll.init(e,t),V.init(e,t)});function Db(e){return Jn(Yn,e)}var Ve=g("ZodUUID",(e,t)=>{Zl.init(e,t),V.init(e,t)});function Ub(e){return ia(Ve,e)}function Rb(e){return oa(Ve,e)}function Lb(e){return aa(Ve,e)}function Zb(e){return sa(Ve,e)}var ti=g("ZodURL",(e,t)=>{ql.init(e,t),V.init(e,t)});function Mb(e){return Wn(ti,e)}function qb(e){return Wn(ti,{protocol:/^https?$/,hostname:Oe.domain,...w.normalizeParams(e)})}var qa=g("ZodEmoji",(e,t)=>{Fl.init(e,t),V.init(e,t)});function Fb(e){return ca(qa,e)}var Fa=g("ZodNanoID",(e,t)=>{Vl.init(e,t),V.init(e,t)});function Vb(e){return ua(Fa,e)}var Va=g("ZodCUID",(e,t)=>{Bl.init(e,t),V.init(e,t)});function Bb(e){return la(Va,e)}var Ba=g("ZodCUID2",(e,t)=>{Kl.init(e,t),V.init(e,t)});function Kb(e){return da(Ba,e)}var Ka=g("ZodULID",(e,t)=>{Hl.init(e,t),V.init(e,t)});function Hb(e){return fa(Ka,e)}var Ha=g("ZodXID",(e,t)=>{Jl.init(e,t),V.init(e,t)});function Jb(e){return ma(Ha,e)}var Ja=g("ZodKSUID",(e,t)=>{Wl.init(e,t),V.init(e,t)});function Wb(e){return pa(Ja,e)}var Wa=g("ZodIPv4",(e,t)=>{ed.init(e,t),V.init(e,t)});function Gb(e){return ga(Wa,e)}var Dm=g("ZodMAC",(e,t)=>{rd.init(e,t),V.init(e,t)});function Yb(e){return Xd(Dm,e)}var Ga=g("ZodIPv6",(e,t)=>{td.init(e,t),V.init(e,t)});function Xb(e){return ha(Ga,e)}var Ya=g("ZodCIDRv4",(e,t)=>{nd.init(e,t),V.init(e,t)});function Qb(e){return va(Ya,e)}var Xa=g("ZodCIDRv6",(e,t)=>{id.init(e,t),V.init(e,t)});function e_(e){return ya(Xa,e)}var Qa=g("ZodBase64",(e,t)=>{ad.init(e,t),V.init(e,t)});function t_(e){return ba(Qa,e)}var es=g("ZodBase64URL",(e,t)=>{sd.init(e,t),V.init(e,t)});function r_(e){return _a(es,e)}var ts=g("ZodE164",(e,t)=>{cd.init(e,t),V.init(e,t)});function n_(e){return $a(ts,e)}var rs=g("ZodJWT",(e,t)=>{ud.init(e,t),V.init(e,t)});function i_(e){return wa(rs,e)}var zr=g("ZodCustomStringFormat",(e,t)=>{ld.init(e,t),V.init(e,t)});function o_(e,t,n={}){return Or(zr,e,t,n)}function a_(e){return Or(zr,"hostname",Oe.hostname,e)}function s_(e){return Or(zr,"hex",Oe.hex,e)}function c_(e,t){let n=t?.enc??"hex",i=`${e}_${n}`,r=Oe[i];if(!r)throw new Error(`Unrecognized hash format: ${i}`);return Or(zr,i,r,t)}var Cr=g("ZodNumber",(e,t)=>{Jo.init(e,t),j.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Rf(e,i,r,o),e.gt=(i,r)=>e.check(qe(i,r)),e.gte=(i,r)=>e.check(de(i,r)),e.min=(i,r)=>e.check(de(i,r)),e.lt=(i,r)=>e.check(Me(i,r)),e.lte=(i,r)=>e.check($e(i,r)),e.max=(i,r)=>e.check($e(i,r)),e.int=i=>e.check(La(i)),e.safe=i=>e.check(La(i)),e.positive=i=>e.check(qe(0,i)),e.nonnegative=i=>e.check(de(0,i)),e.negative=i=>e.check(Me(0,i)),e.nonpositive=i=>e.check($e(0,i)),e.multipleOf=(i,r)=>e.check(bt(i,r)),e.step=(i,r)=>e.check(bt(i,r)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Um(e){return of(Cr,e)}var qt=g("ZodNumberFormat",(e,t)=>{dd.init(e,t),Cr.init(e,t)});function La(e){return sf(qt,e)}function u_(e){return cf(qt,e)}function l_(e){return uf(qt,e)}function d_(e){return lf(qt,e)}function f_(e){return df(qt,e)}var jr=g("ZodBoolean",(e,t)=>{Fn.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Lf(e,n,i,r)});function Rm(e){return ff(jr,e)}var Nr=g("ZodBigInt",(e,t)=>{Wo.init(e,t),j.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Zf(e,i,r,o),e.gte=(i,r)=>e.check(de(i,r)),e.min=(i,r)=>e.check(de(i,r)),e.gt=(i,r)=>e.check(qe(i,r)),e.gte=(i,r)=>e.check(de(i,r)),e.min=(i,r)=>e.check(de(i,r)),e.lt=(i,r)=>e.check(Me(i,r)),e.lte=(i,r)=>e.check($e(i,r)),e.max=(i,r)=>e.check($e(i,r)),e.positive=i=>e.check(qe(BigInt(0),i)),e.negative=i=>e.check(Me(BigInt(0),i)),e.nonpositive=i=>e.check($e(BigInt(0),i)),e.nonnegative=i=>e.check(de(BigInt(0),i)),e.multipleOf=(i,r)=>e.check(bt(i,r));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function m_(e){return pf(Nr,e)}var ns=g("ZodBigIntFormat",(e,t)=>{fd.init(e,t),Nr.init(e,t)});function p_(e){return hf(ns,e)}function g_(e){return vf(ns,e)}var Lm=g("ZodSymbol",(e,t)=>{md.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Mf(e,n,i,r)});function h_(e){return yf(Lm,e)}var Zm=g("ZodUndefined",(e,t)=>{pd.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ff(e,n,i,r)});function v_(e){return bf(Zm,e)}var Mm=g("ZodNull",(e,t)=>{gd.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>qf(e,n,i,r)});function qm(e){return _f(Mm,e)}var Fm=g("ZodAny",(e,t)=>{hd.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Kf(e,n,i,r)});function y_(){return $f(Fm)}var Vm=g("ZodUnknown",(e,t)=>{vd.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Hf(e,n,i,r)});function Mt(){return wf(Vm)}var Bm=g("ZodNever",(e,t)=>{yd.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Bf(e,n,i,r)});function is(e){return kf(Bm,e)}var Km=g("ZodVoid",(e,t)=>{bd.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Vf(e,n,i,r)});function b_(e){return xf(Km,e)}var ri=g("ZodDate",(e,t)=>{_d.init(e,t),j.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Jf(e,i,r,o),e.min=(i,r)=>e.check(de(i,r)),e.max=(i,r)=>e.check($e(i,r));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function __(e){return Sf(ri,e)}var Hm=g("ZodArray",(e,t)=>{$d.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>am(e,n,i,r),e.element=t.element,e.min=(n,i)=>e.check(Xe(n,i)),e.nonempty=n=>e.check(Xe(1,n)),e.max=(n,i)=>e.check(Lt(n,i)),e.length=(n,i)=>e.check(Zt(n,i)),e.unwrap=()=>e.element});function ni(e,t){return Pf(Hm,e,t)}function $_(e){let t=e._zod.def.shape;return as(Object.keys(t))}var ii=g("ZodObject",(e,t)=>{wd.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>sm(e,n,i,r),w.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>as(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Mt()}),e.loose=()=>e.clone({...e._zod.def,catchall:Mt()}),e.strict=()=>e.clone({...e._zod.def,catchall:is()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>w.extend(e,n),e.safeExtend=n=>w.safeExtend(e,n),e.merge=n=>w.merge(e,n),e.pick=n=>w.pick(e,n),e.omit=n=>w.omit(e,n),e.partial=(...n)=>w.partial(cs,e,n[0]),e.required=(...n)=>w.required(us,e,n[0])});function w_(e,t){let n={type:"object",shape:e??{},...w.normalizeParams(t)};return new ii(n)}function k_(e,t){return new ii({type:"object",shape:e,catchall:is(),...w.normalizeParams(t)})}function x_(e,t){return new ii({type:"object",shape:e,catchall:Mt(),...w.normalizeParams(t)})}var oi=g("ZodUnion",(e,t)=>{Vn.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ea(e,n,i,r),e.options=t.options});function os(e,t){return new oi({type:"union",options:e,...w.normalizeParams(t)})}var Jm=g("ZodXor",(e,t)=>{oi.init(e,t),kd.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ea(e,n,i,r),e.options=t.options});function S_(e,t){return new Jm({type:"union",options:e,inclusive:!1,...w.normalizeParams(t)})}var Wm=g("ZodDiscriminatedUnion",(e,t)=>{oi.init(e,t),xd.init(e,t)});function I_(e,t,n){return new Wm({type:"union",options:t,discriminator:e,...w.normalizeParams(n)})}var Gm=g("ZodIntersection",(e,t)=>{Sd.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>cm(e,n,i,r)});function Ym(e,t){return new Gm({type:"intersection",left:e,right:t})}var Xm=g("ZodTuple",(e,t)=>{Go.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>um(e,n,i,r),e.rest=n=>e.clone({...e._zod.def,rest:n})});function Qm(e,t,n){let i=t instanceof z,r=i?n:t,o=i?t:null;return new Xm({type:"tuple",items:e,rest:o,...w.normalizeParams(r)})}var ai=g("ZodRecord",(e,t)=>{Id.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>lm(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType});function ep(e,t,n){return new ai({type:"record",keyType:e,valueType:t,...w.normalizeParams(n)})}function O_(e,t,n){let i=le(e);return i._zod.values=void 0,new ai({type:"record",keyType:i,valueType:t,...w.normalizeParams(n)})}function P_(e,t,n){return new ai({type:"record",keyType:e,valueType:t,mode:"loose",...w.normalizeParams(n)})}var tp=g("ZodMap",(e,t)=>{Od.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>im(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(Fe(...n)),e.nonempty=n=>e.check(Fe(1,n)),e.max=(...n)=>e.check(_t(...n)),e.size=(...n)=>e.check(Rt(...n))});function E_(e,t,n){return new tp({type:"map",keyType:e,valueType:t,...w.normalizeParams(n)})}var rp=g("ZodSet",(e,t)=>{Pd.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>om(e,n,i,r),e.min=(...n)=>e.check(Fe(...n)),e.nonempty=n=>e.check(Fe(1,n)),e.max=(...n)=>e.check(_t(...n)),e.size=(...n)=>e.check(Rt(...n))});function A_(e,t){return new rp({type:"set",valueType:e,...w.normalizeParams(t)})}var Ar=g("ZodEnum",(e,t)=>{Ed.init(e,t),j.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Wf(e,i,r,o),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(i,r)=>{let o={};for(let a of i)if(n.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Ar({...t,checks:[],...w.normalizeParams(r),entries:o})},e.exclude=(i,r)=>{let o={...t.entries};for(let a of i)if(n.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new Ar({...t,checks:[],...w.normalizeParams(r),entries:o})}});function as(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Ar({type:"enum",entries:n,...w.normalizeParams(t)})}function T_(e,t){return new Ar({type:"enum",entries:e,...w.normalizeParams(t)})}var np=g("ZodLiteral",(e,t)=>{Ad.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Gf(e,n,i,r),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 z_(e,t){return new np({type:"literal",values:Array.isArray(e)?e:[e],...w.normalizeParams(t)})}var ip=g("ZodFile",(e,t)=>{Td.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Qf(e,n,i,r),e.min=(n,i)=>e.check(Fe(n,i)),e.max=(n,i)=>e.check(_t(n,i)),e.mime=(n,i)=>e.check($r(Array.isArray(n)?n:[n],i))});function C_(e){return Ef(ip,e)}var op=g("ZodTransform",(e,t)=>{zd.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>nm(e,n,i,r),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new pt(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(w.issue(o,n.value,t));else{let a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(w.issue(a))}};let r=t.transform(n.value,n);return r instanceof Promise?r.then(o=>(n.value=o,n)):(n.value=r,n)}});function ss(e){return new op({type:"transform",transform:e})}var cs=g("ZodOptional",(e,t)=>{Yo.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Aa(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function Xn(e){return new cs({type:"optional",innerType:e})}var ap=g("ZodExactOptional",(e,t)=>{Cd.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Aa(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function sp(e){return new ap({type:"optional",innerType:e})}var cp=g("ZodNullable",(e,t)=>{jd.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>dm(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function Qn(e){return new cp({type:"nullable",innerType:e})}function j_(e){return Xn(Qn(e))}var up=g("ZodDefault",(e,t)=>{Nd.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>mm(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function lp(e,t){return new up({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():w.shallowClone(t)}})}var dp=g("ZodPrefault",(e,t)=>{Dd.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>pm(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function fp(e,t){return new dp({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():w.shallowClone(t)}})}var us=g("ZodNonOptional",(e,t)=>{Ud.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>fm(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function mp(e,t){return new us({type:"nonoptional",innerType:e,...w.normalizeParams(t)})}var pp=g("ZodSuccess",(e,t)=>{Rd.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>em(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function N_(e){return new pp({type:"success",innerType:e})}var gp=g("ZodCatch",(e,t)=>{Ld.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>gm(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function hp(e,t){return new gp({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var vp=g("ZodNaN",(e,t)=>{Zd.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Yf(e,n,i,r)});function D_(e){return Of(vp,e)}var ls=g("ZodPipe",(e,t)=>{Md.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>hm(e,n,i,r),e.in=t.in,e.out=t.out});function ei(e,t){return new ls({type:"pipe",in:e,out:t})}var ds=g("ZodCodec",(e,t)=>{ls.init(e,t),Bn.init(e,t)});function U_(e,t,n){return new ds({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}var yp=g("ZodReadonly",(e,t)=>{qd.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>vm(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function bp(e){return new yp({type:"readonly",innerType:e})}var _p=g("ZodTemplateLiteral",(e,t)=>{Fd.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Xf(e,n,i,r)});function R_(e,t){return new _p({type:"template_literal",parts:e,...w.normalizeParams(t)})}var $p=g("ZodLazy",(e,t)=>{Kd.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>bm(e,n,i,r),e.unwrap=()=>e._zod.def.getter()});function wp(e){return new $p({type:"lazy",getter:e})}var kp=g("ZodPromise",(e,t)=>{Bd.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ym(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function L_(e){return new kp({type:"promise",innerType:e})}var xp=g("ZodFunction",(e,t)=>{Vd.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>rm(e,n,i,r)});function Z_(e){return new xp({type:"function",input:Array.isArray(e?.input)?Qm(e?.input):e?.input??ni(Mt()),output:e?.output??Mt()})}var si=g("ZodCustom",(e,t)=>{Hd.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>tm(e,n,i,r)});function M_(e){let t=new B({check:"custom"});return t._zod.check=e,t}function q_(e,t){return Af(si,e??(()=>!0),t)}function Sp(e,t={}){return Tf(si,e,t)}function Ip(e){return zf(e)}var F_=Cf,V_=jf;function B_(e,t={}){let n=new si({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...w.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=i=>{i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:n,path:[...n._zod.def.path??[]]})},n}var K_=(...e)=>Nf({Codec:ds,Boolean:jr,String:Tr},...e);function H_(e){let t=wp(()=>os([Ra(e),Um(),Rm(),qm(),ni(t),ep(Ra(),t)]));return t}function J_(e,t){return ei(ss(e),t)}var O0={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 P0(e){G({customError:e})}function E0(){return G().customError}var Op;Op||(Op={});var S={...Gn,...Ca,iso:Er},A0=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 T0(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function z0(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let i=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===i){let r=n[1];if(!r||!t.defs[r])throw new Error(`Reference not found: ${e}`);return t.defs[r]}throw new Error(`Reference not found: ${e}`)}function W_(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return S.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 r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return S.lazy(()=>{if(!t.refs.has(r))throw new Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);let o=z0(r,t),a=se(o,t);return t.refs.set(r,a),t.processing.delete(r),a}if(e.enum!==void 0){let r=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&r.length===1&&r[0]===null)return S.null();if(r.length===0)return S.never();if(r.length===1)return S.literal(r[0]);if(r.every(a=>typeof a=="string"))return S.enum(r);let o=r.map(a=>S.literal(a));return o.length<2?o[0]:S.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return S.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(o=>{let a={...e,type:o};return W_(a,t)});return r.length===0?S.never():r.length===1?r[0]:S.union(r)}if(!n)return S.any();let i;switch(n){case"string":{let r=S.string();if(e.format){let o=e.format;o==="email"?r=r.check(S.email()):o==="uri"||o==="uri-reference"?r=r.check(S.url()):o==="uuid"||o==="guid"?r=r.check(S.uuid()):o==="date-time"?r=r.check(S.iso.datetime()):o==="date"?r=r.check(S.iso.date()):o==="time"?r=r.check(S.iso.time()):o==="duration"?r=r.check(S.iso.duration()):o==="ipv4"?r=r.check(S.ipv4()):o==="ipv6"?r=r.check(S.ipv6()):o==="mac"?r=r.check(S.mac()):o==="cidr"?r=r.check(S.cidrv4()):o==="cidr-v6"?r=r.check(S.cidrv6()):o==="base64"?r=r.check(S.base64()):o==="base64url"?r=r.check(S.base64url()):o==="e164"?r=r.check(S.e164()):o==="jwt"?r=r.check(S.jwt()):o==="emoji"?r=r.check(S.emoji()):o==="nanoid"?r=r.check(S.nanoid()):o==="cuid"?r=r.check(S.cuid()):o==="cuid2"?r=r.check(S.cuid2()):o==="ulid"?r=r.check(S.ulid()):o==="xid"?r=r.check(S.xid()):o==="ksuid"&&(r=r.check(S.ksuid()))}typeof e.minLength=="number"&&(r=r.min(e.minLength)),typeof e.maxLength=="number"&&(r=r.max(e.maxLength)),e.pattern&&(r=r.regex(new RegExp(e.pattern))),i=r;break}case"number":case"integer":{let r=n==="integer"?S.number().int():S.number();typeof e.minimum=="number"&&(r=r.min(e.minimum)),typeof e.maximum=="number"&&(r=r.max(e.maximum)),typeof e.exclusiveMinimum=="number"?r=r.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(r=r.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?r=r.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(r=r.lt(e.maximum)),typeof e.multipleOf=="number"&&(r=r.multipleOf(e.multipleOf)),i=r;break}case"boolean":{i=S.boolean();break}case"null":{i=S.null();break}case"object":{let r={},o=e.properties||{},a=new Set(e.required||[]);for(let[c,u]of Object.entries(o)){let l=se(u,t);r[c]=a.has(c)?l:l.optional()}if(e.propertyNames){let c=se(e.propertyNames,t),u=e.additionalProperties&&typeof e.additionalProperties=="object"?se(e.additionalProperties,t):S.any();if(Object.keys(r).length===0){i=S.record(c,u);break}let l=S.object(r).passthrough(),d=S.looseRecord(c,u);i=S.intersection(l,d);break}if(e.patternProperties){let c=e.patternProperties,u=Object.keys(c),l=[];for(let f of u){let p=se(c[f],t),y=S.string().regex(new RegExp(f));l.push(S.looseRecord(y,p))}let d=[];if(Object.keys(r).length>0&&d.push(S.object(r).passthrough()),d.push(...l),d.length===0)i=S.object({}).passthrough();else if(d.length===1)i=d[0];else{let f=S.intersection(d[0],d[1]);for(let p=2;p<d.length;p++)f=S.intersection(f,d[p]);i=f}break}let s=S.object(r);e.additionalProperties===!1?i=s.strict():typeof e.additionalProperties=="object"?i=s.catchall(se(e.additionalProperties,t)):i=s.passthrough();break}case"array":{let r=e.prefixItems,o=e.items;if(r&&Array.isArray(r)){let a=r.map(c=>se(c,t)),s=o&&typeof o=="object"&&!Array.isArray(o)?se(o,t):void 0;s?i=S.tuple(a).rest(s):i=S.tuple(a),typeof e.minItems=="number"&&(i=i.check(S.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(S.maxLength(e.maxItems)))}else if(Array.isArray(o)){let a=o.map(c=>se(c,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?se(e.additionalItems,t):void 0;s?i=S.tuple(a).rest(s):i=S.tuple(a),typeof e.minItems=="number"&&(i=i.check(S.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(S.maxLength(e.maxItems)))}else if(o!==void 0){let a=se(o,t),s=S.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),i=s}else i=S.array(S.any());break}default:throw new Error(`Unsupported type: ${n}`)}return e.description&&(i=i.describe(e.description)),e.default!==void 0&&(i=i.default(e.default)),i}function se(e,t){if(typeof e=="boolean")return e?S.any():S.never();let n=W_(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=>se(u,t)),c=S.union(s);n=i?S.intersection(n,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(u=>se(u,t)),c=S.xor(s);n=i?S.intersection(n,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=i?n:S.any();else{let s=i?n:se(e.allOf[0],t),c=i?0:1;for(let u=c;u<e.allOf.length;u++)s=S.intersection(s,se(e.allOf[u],t));n=s}e.nullable===!0&&t.version==="openapi-3.0"&&(n=S.nullable(n)),e.readOnly===!0&&(n=S.readonly(n));let r={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of o)s in e&&(r[s]=e[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in e&&(r[s]=e[s]);for(let s of Object.keys(e))A0.has(s)||(r[s]=e[s]);return Object.keys(r).length>0&&t.registry.add(n,r),n}function G_(e,t){if(typeof e=="boolean")return e?S.any():S.never();let n=T0(e,t?.defaultTarget),i=e.$defs||e.definitions||{},r={version:n,defs:i,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??ae};return se(e,r)}var Pp={};He(Pp,{bigint:()=>D0,boolean:()=>N0,date:()=>U0,number:()=>j0,string:()=>C0});function C0(e){return Yd(Tr,e)}function j0(e){return af(Cr,e)}function N0(e){return mf(jr,e)}function D0(e){return gf(Nr,e)}function U0(e){return If(ri,e)}G(Xo());var R0=m.string().min(1),L0=m.object({type:m.literal("named"),name:m.enum(["second","minute","hour","day","week","month"])}),Z0=m.object({type:m.literal("custom"),seconds:m.number().int().positive(),label:m.string().optional()}),M0=m.discriminatedUnion("type",[L0,Z0]),ci=m.preprocess(e=>{if(!e||typeof e!="object")return e;let t=e;return t.dimension||!t.meter?e:{...t,dimension:t.meter}},m.object({dimension:R0,window:M0,capacity:m.number().nonnegative(),enforcement:m.enum(["enforce","track"]).optional()})),VN=m.array(ci).max(20);var Y_=["subscription.created","subscription.updated","subscription.canceled","payment.succeeded","payment.failed","rate_limit.exceeded","entitlement.changed","usage.threshold_reached"],fs=m.enum(Y_);var YN=m.object({subdomain:m.string().min(1).max(63).regex(/^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/,"Subdomain must be lowercase alphanumeric with optional hyphens")}),q0=m.object({key:m.string().min(1).max(64).regex(/^[a-z0-9_]+$/,"Meter key must be lowercase alphanumeric with underscores"),display:m.string().min(1).max(100),type:m.enum(["built-in","custom"]).default("custom"),unit:m.string().max(20).optional()}),F0=m.enum(["free_trial","flat_subscription","included_usage","subscription_overage","pay_as_you_go","prepaid_credits"]),De=m.enum(["preserve_current_period","switch_immediately","switch_immediately_prorate","new_subscribers_only"]),V0=m.object({default:De.default("preserve_current_period"),proration:m.enum(["none","prorate","credit"]).default("none"),when:m.object({price_increase:De.optional(),price_decrease:De.optional(),feature_added:De.optional(),feature_removed:De.optional(),limit_increased:De.optional(),limit_reduced:De.optional(),credit_increased:De.optional(),credit_reduced:De.optional(),rating_changed:De.optional(),strategy_changed:De.optional()}).strict().default({price_increase:"preserve_current_period",price_decrease:"switch_immediately",feature_added:"switch_immediately",feature_removed:"preserve_current_period",limit_increased:"switch_immediately",limit_reduced:"preserve_current_period",credit_increased:"switch_immediately",credit_reduced:"preserve_current_period",rating_changed:"preserve_current_period",strategy_changed:"preserve_current_period"}),allowImmediatePriceIncrease:m.boolean().default(!1),allowImmediateEntitlementReduction:m.boolean().default(!1)}).strict().superRefine((e,t)=>{let n=new Set(["switch_immediately","switch_immediately_prorate"]);n.has(e.when.price_increase??e.default)&&!e.allowImmediatePriceIncrease&&t.addIssue({code:"custom",path:["when","price_increase"],message:"price_increase cannot switch immediately without allowImmediatePriceIncrease: true"});for(let i of["feature_removed","limit_reduced","credit_reduced"])n.has(e.when[i]??e.default)&&!e.allowImmediateEntitlementReduction&&t.addIssue({code:"custom",path:["when",i],message:`${i} cannot switch immediately without allowImmediateEntitlementReduction: true`})}),Q_=m.string().min(1).max(64).regex(/^[a-z0-9_]+$/,"Usage measure must be lowercase alphanumeric with underscores"),B0=m.enum(["pass_through","markup","fixed_margin","customer_rate"]),K0=m.object({source:m.literal("fixed"),rates:m.record(m.string().min(1),m.record(Q_,m.number().int().nonnegative()))}),H0=m.object({source:m.literal("provider_catalog"),catalog:m.string().min(1).max(100),pricePolicy:B0.default("pass_through"),markupPercent:m.number().nonnegative().max(1e4).optional(),marginMicros:m.number().int().nonnegative().optional()}),J0=m.object({source:m.literal("upstream_reported"),amountField:m.string().min(1).max(500),currencyField:m.string().min(1).max(500).optional()}),W0=m.object({source:m.literal("external_rate_api"),resolver:m.string().min(1).max(100),configRef:m.string().min(1).max(200).optional()}),G0=m.object({source:m.literal("custom"),resolver:m.string().min(1).max(100),configRef:m.string().min(1).max(200).optional()}),Y0=m.discriminatedUnion("source",[K0,H0,J0,W0,G0]),X0=m.object({selector:m.string().min(1).max(100).optional(),measures:m.array(Q_).min(1).max(20),rating:Y0.optional()}),Q0=m.object({meters:m.record(m.string().min(1).max(64).regex(/^[a-z0-9_]+$/),X0)}),eE=m.object({method:m.enum(["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","*"]).default("*"),path:m.string().min(1).max(500)}),tE=m.object({routes:m.array(eE).min(1).max(50).default([])}),rE=m.record(m.string().min(1).max(100).regex(/^[a-z0-9_.:-]+$/),tE),nE=m.object({upToAmount:m.number().int().positive().nullable(),unitPrice:m.number().nonnegative(),flatPrice:m.number().nonnegative().optional()}),Ap=m.object({dimension:m.string().min(1),includedUnits:m.number().int().nonnegative().default(0),overagePerUnitMicrocents:m.number().int().nonnegative().default(0),tiers:m.array(nE).optional(),pricingMode:m.enum(["graduated","volume"]).optional()}),Ep={monthlyPriceCents:m.number().int().nonnegative().default(0),billingInterval:m.enum(["month","year"]).default("month"),trialDays:m.number().int().nonnegative().optional(),monthlyBudgetCents:m.number().int().positive().optional(),stripePriceId:m.string().min(1).optional()},iE=m.object({expr:m.string().min(1).max(1e3)}),X_=m.object({upTo:m.number().positive().nullable(),unitAmountMicros:m.number().int().nonnegative()}),oE=m.discriminatedUnion("kind",[m.object({kind:m.literal("flat"),amountMicros:m.number().int().nonnegative()}),m.object({kind:m.literal("per_unit"),unitAmountMicros:m.number().int().nonnegative(),unit:m.string().max(20).optional()}),m.object({kind:m.literal("graduated"),intraRequest:m.boolean().default(!1),tiers:m.array(X_).min(1)}),m.object({kind:m.literal("volume_retroactive"),tiers:m.array(X_).min(1)}),m.object({kind:m.literal("formula"),expr:m.string().min(1).max(1e3)})]),aE=m.discriminatedUnion("kind",[m.object({kind:m.literal("percentage"),basisPoints:m.number().int().positive().max(1e4),appliesToDimensions:m.array(m.string().min(1)).optional()}),m.object({kind:m.literal("fixed_micros"),amountMicros:m.number().int().nonnegative(),appliesToDimensions:m.array(m.string().min(1)).optional()})]),sE=m.object({minimumMonthlySpendMicros:m.number().int().nonnegative().optional(),includedCreditMicros:m.number().int().nonnegative().optional()}).refine(e=>e.minimumMonthlySpendMicros!==void 0||e.includedCreditMicros!==void 0,{message:"commitments must declare at least one of minimumMonthlySpendMicros or includedCreditMicros"}),cE=m.object({mode:m.literal("builder_attested"),header:m.string().min(1).max(100).optional(),signatureHeader:m.string().min(1).max(100).optional(),schema:m.record(m.string(),m.enum(["int","float","string","boolean"]))}),uE=m.object({dimension:m.string().min(1),unit:m.string().max(20).optional(),measure:iE,price:oE}),Tp=m.discriminatedUnion("model",[m.object({model:m.literal("flat_rate"),...Ep}),m.object({model:m.literal("included_usage"),...Ep}),m.object({model:m.literal("pay_as_you_go"),...Ep}),m.object({model:m.literal("configurable_usage"),billingInterval:m.enum(["month","year"]).default("month"),trialDays:m.number().int().nonnegative().optional(),rateCard:m.array(uE).min(1),discounts:m.array(aE).default([]),commitments:sE.optional(),reporting:cE.optional(),stripePriceId:m.string().min(1).optional()})]),lE=m.enum(["NONE","PRORATE","CREDIT"]).default("NONE"),dE=m.object({id:m.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"Variant id must be lowercase alphanumeric with hyphens/underscores"),label:m.string().max(200).optional(),rolloutPercent:m.number().int().min(0).max(100),assignmentSeed:m.string().min(1).max(100).default("default"),prorationOnRollback:lE,pricing:Tp.optional(),limits:m.array(ci).max(20).optional(),featureGates:m.record(m.string(),m.boolean()).optional(),overageBehavior:m.enum(["block","allow_and_bill"]).optional(),meteredDimensions:m.array(Ap).optional()}),fE=m.object({key:m.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"Plan key must be lowercase alphanumeric with hyphens/underscores"),name:m.string().min(1).max(100),description:m.string().max(500).optional(),details:m.array(m.string().max(200)).max(10).optional(),pricing:Tp.default({model:"flat_rate",monthlyPriceCents:0,billingInterval:"month"}),free:m.boolean().default(!1),price:m.object({monthly:m.number().int().nonnegative().optional(),yearly:m.number().int().nonnegative().optional(),currency:m.string().length(3).default("USD")}).strict().optional(),credits:m.object({monthlyIncludedMicros:m.number().int().nonnegative().optional()}).strict().optional(),usage:m.object({meters:m.array(m.string().min(1).max(64)).default([])}).strict().optional(),features:m.array(m.string().min(1).max(100)).default([]),limits:m.array(ci).max(20).default([]),featureGates:m.record(m.string(),m.boolean()).optional(),overageBehavior:m.enum(["block","allow_and_bill"]).default("block"),selfServeEnabled:m.boolean().default(!0),meteredDimensions:m.array(Ap).optional(),legacy:m.boolean().optional().default(!1),variants:m.array(dE).max(4).optional(),archive:m.object({at:m.string().datetime().optional(),transitionTo:m.string().optional(),strategy:m.enum(["auto","explicit","block"]).default("auto")}).optional()}),mE=/^\$\{[A-Z][A-Z0-9_]{0,127}\}$/,e$=m.string().min(3).max(200).refine(e=>mE.test(e),{message:"secret must use ${VAR} interpolation syntax (e.g. ${WEBHOOK_SECRET}); raw secrets in YAML are rejected. Define the env var in the per-product secret store and reference it here."}),t$=m.object({maxAttempts:m.number().int().min(1).max(20).default(5),backoff:m.enum(["exponential","fixed"]).default("exponential")}),pE=m.object({id:m.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"Webhook endpoint id must be lowercase alphanumeric with hyphens/underscores"),url:m.string().url("webhooks.endpoints[].url must be a valid URL"),secret:e$,events:m.array(fs).min(1,"webhooks.endpoints[].events must subscribe to \u2265 1 event"),enabled:m.boolean().default(!0),retryPolicy:t$.default({maxAttempts:5,backoff:"exponential"})}),gE=m.object({endpoints:m.array(pE).max(50).default([])}),hE=m.object({pricing:Tp.optional(),limits:m.array(ci).max(20).optional(),featureGates:m.record(m.string(),m.boolean()).optional(),overageBehavior:m.enum(["block","allow_and_bill"]).optional(),selfServeEnabled:m.boolean().optional(),meteredDimensions:m.array(Ap).optional(),legacy:m.boolean().optional()}).strict(),vE=m.object({url:m.string().url().optional(),secret:e$.optional(),events:m.array(fs).optional(),enabled:m.boolean().optional(),retryPolicy:t$.partial().optional()}).strict(),yE=m.object({plans:m.record(m.string(),hE).optional(),webhooks:m.object({endpoints:m.record(m.string(),vE).optional()}).strict().optional()}).strict(),bE=m.record(m.string().min(1).max(64),yE),Dr=m.object({product:m.object({name:m.string().min(1).max(100),displayName:m.string().max(200).optional(),description:m.string().max(2e3).optional(),baseUrl:m.string().url("baseUrl must be a valid URL"),sandboxBaseUrl:m.string().url("sandboxBaseUrl must be a valid URL").optional(),visibility:m.enum(["public","private"]).default("public"),logoUrl:m.string().url().optional(),primaryColor:m.string().regex(/^#[0-9a-fA-F]{6}$/).optional(),envBranchPrefix:m.string().max(50).nullable().optional()}),gateway:m.object({authHeader:m.string().min(1).max(100).default("x-api-key"),upstreamAuth:m.object({type:m.enum(["none","static_bearer"]),token:m.string().optional()}).default({type:"none"})}),metering:m.object({meters:m.array(q0).max(10).default([]),billOn4xx:m.boolean().default(!1)}).default({meters:[],billOn4xx:!1}),usage:Q0.optional(),usagePricing:m.never({error:"usagePricing is not supported. Define usage.meters.<key>.rating instead."}).optional(),features:rE.optional(),billing:m.object({strategy:F0,gracePeriodDays:m.number().int().nonnegative().default(3),subscriberChangePolicy:V0.default({default:"preserve_current_period",proration:"none",when:{price_increase:"preserve_current_period",price_decrease:"switch_immediately",feature_added:"switch_immediately",feature_removed:"preserve_current_period",limit_increased:"switch_immediately",limit_reduced:"preserve_current_period",credit_increased:"switch_immediately",credit_reduced:"preserve_current_period",rating_changed:"preserve_current_period",strategy_changed:"preserve_current_period"},allowImmediatePriceIncrease:!1,allowImmediateEntitlementReduction:!1})}),plans:m.array(fE).max(4).default([]),webhooks:gE.optional(),environments:bE.optional()}).superRefine((e,t)=>{e.usagePricing!==void 0&&t.addIssue({code:"custom",path:["usagePricing"],message:"usagePricing is not supported. Define usage.meters.<key>.rating instead."}),e.plans.filter(r=>r.free).length>1&&t.addIssue({code:"custom",path:["plans"],message:"Only one free plan is allowed per product"});let i=new Map;for(let r=0;r<e.plans.length;r+=1){let o=e.plans[r],a=o.price?.monthly??("monthlyPriceCents"in o.pricing?o.pricing.monthlyPriceCents:void 0),s=o.price?.yearly!==void 0?"year":o.pricing.billingInterval,c=o.price?.currency??"USD";if(o.free){((a??0)!==0||(o.price?.yearly??0)!==0)&&t.addIssue({code:"custom",path:["plans",r,"price"],message:"Free plans must have zero price"}),o.limits.some(l=>!l.enforcement||l.enforcement==="enforce")||t.addIssue({code:"custom",path:["plans",r,"limits"],message:"Free plans must include at least one hard enforced limit"});continue}if(a!==void 0&&a>0){let u=`${c}:${s}:${a}`,l=i.get(u);l?t.addIssue({code:"custom",path:["plans",r,"price"],message:`Paid plan price duplicates plan "${l}" (${u})`}):i.set(u,o.key)}for(let u of o.usage?.meters??[])e.usage&&!e.usage.meters[u]&&t.addIssue({code:"custom",path:["plans",r,"usage","meters"],message:`Unknown usage meter "${u}"`});for(let u of o.features)e.features&&!e.features[u]&&t.addIssue({code:"custom",path:["plans",r,"features"],message:`Unknown feature "${u}"`})}}),XN=m.object({product:Dr.shape.product}),QN=m.object({gateway:Dr.shape.gateway}),e1=m.object({metering:Dr.shape.metering}),t1=m.object({plans:Dr.shape.plans});function r$(e){switch(e){case"free_trial":case"flat_subscription":return["flat_rate"];case"included_usage":case"subscription_overage":case"prepaid_credits":return["included_usage","configurable_usage"];case"pay_as_you_go":return["pay_as_you_go","configurable_usage"]}}var zp=!!process.env.CI||!!process.env.GITHUB_ACTIONS;function xE(){for(let e of["main","master"])try{let t=wE(`git show ${e}:product.yaml 2>/dev/null`,{encoding:"utf-8",stdio:["pipe","pipe","pipe"]});return Cp.default.parse(t).product?.name??null}catch{continue}return null}function ui(e){let t=Dr.safeParse(e);if(!t.success)return{valid:!1,errors:t.error.issues.map(r=>SE(r,e)),warnings:[]};let n=IE(t.data),i=OE(t.data);return i.length>0?{valid:!1,errors:[`Duplicate plan keys: ${i.join(", ")}`],warnings:n}:{valid:!0,errors:[],warnings:n}}function SE(e,t){let n=e.path;if(n.length>=2&&n[0]==="plans"&&typeof n[1]=="number"){let o=(t?.plans??[])[n[1]],a=o?.key??o?.name??`#${n[1]}`,s=n.slice(2).join(".");return s?`Plan "${a}": ${s} \u2014 ${e.message}`:`Plan "${a}": ${e.message}`}return`${n.length>0?n.join("."):"(root)"}: ${e.message}`}function IE(e){let t=[];return e.plans.length===0?t.push("No plans declared \u2014 product cannot accept signups yet"):e.plans.some(i=>("monthlyPriceCents"in i.pricing?i.pricing.monthlyPriceCents:void 0)===0)||t.push("No free plan \u2014 consider adding one for developer adoption"),(!e.product.displayName||e.product.displayName===e.product.name)&&t.push("product.displayName not set \u2014 using product.name on the pricing page"),t}function OE(e){let t=new Set,n=new Set;for(let i of e.plans)t.has(i.key)?n.add(i.key):t.add(i.key);return[...n]}function Ur(e){if(!$E(e))return{ok:!1,reason:"missing",message:e};try{let t=_E(e,"utf-8");return{ok:!0,spec:Cp.default.parse(t)}}catch(t){return{ok:!1,reason:"parse",message:t instanceof Error?t.message:String(t)}}}function PE(e){if(zp){for(let t of e.errors)console.log(`::error file=product.yaml::${t}`);for(let t of e.warnings)console.log(`::warning file=product.yaml::${t}`)}if(e.errors.length===0){ee("product.yaml is valid");for(let t of e.warnings)Te(t);return}W(`product.yaml has ${e.errors.length} error(s):
|
|
225
|
+
`);for(let t of e.errors)console.log(` \u2022 ${t}`);if(e.warnings.length>0){console.log();for(let t of e.warnings)Te(t)}process.exitCode=1}function n$(e){e.command("validate [file]").description("Validate a local product.yaml file without API calls").addHelpText("after",`
|
|
226
226
|
Agent notes:
|
|
227
227
|
Use validate before committing product.yaml changes. This is local schema validation only.
|
|
228
228
|
Use apply --dry-run for remote compiler validation against pushed branch state.
|
|
@@ -231,12 +231,12 @@ Examples:
|
|
|
231
231
|
farthershore validate
|
|
232
232
|
farthershore validate product.yaml
|
|
233
233
|
farthershore apply --dry-run --format json
|
|
234
|
-
`).action(e=>{let n=hA(e??"product.yaml"),i=jr(n);if(!i.ok){i.reason==="missing"?(Ip&&console.log(`::error file=product.yaml::File not found: ${i.message}`),H(`File not found: ${i.message}`)):(Ip&&console.log(`::error file=product.yaml::YAML parse error: ${i.message}`),H(`Failed to parse YAML: ${i.message}`)),process.exitCode=1;return}let r=si(i.spec),o=i.spec?.product?.name;if(o){let a=vA();a&&a!==o&&(r.errors.push(`product.name "${o}" differs from main branch "${a}" \u2014 product name must not change`),r.valid=!1)}$A(r)})}var g$=Mr(On(),1);import{execSync as FA}from"node:child_process";import{readFileSync as VA,existsSync as us}from"node:fs";import{resolve as ls}from"node:path";var wA=new Set(["production","prod","main"]);function ci(t){return et(t.opts().format)}function W(t,e,n){if(ci(t)==="json"){console.log(J(n));return}ee(e)}async function Zt(t,e){let n=$e();if(e){if(e.length===36)return e;let r=(await t.listProducts()).find(o=>o.id===e||o.name.toLowerCase()===e.toLowerCase());if(r)return r.id}if(n.activeProductId)return n.activeProductId;throw new Error("No product selected. Pass --product <id-or-name> or run `farthershore product create` first.")}function Nr(t){let e=t?.trim();if(e)return wA.has(e.toLowerCase())?null:e}function Dr(t,e){let n=Nr(e);if(n!==void 0)return{name:n,production:n===null};let i=Nr(process.env.FARTHERSHORE_ENV);if(i!==void 0)return{name:i,production:i===null};let o=$e().activeEnvironmentsByProductId?.[t],a=Nr(o);return a!==void 0?{name:a,production:a===null}:{name:null,production:!0}}function as(t){return t.production?void 0:t.name??void 0}function kA(t,e){let n=t.opts();return e??n.env}async function Z(t,e,n,i){let r=await Zt(e,n),o=Dr(r,kA(t,i));return{productId:r,environment:o,env:as(o)}}function X_(t,e){let n=$e();Qe({activeEnvironmentsByProductId:{...n.activeEnvironmentsByProductId??{},[t]:e}})}function Q_(t){let n={...$e().activeEnvironmentsByProductId??{}};delete n[t],Qe({activeEnvironmentsByProductId:n})}async function e$(t,e,n){let i=await t.getProductConfig(e,{env:n,state:"accepted"});if(!i.acceptedConfig||typeof i.acceptedConfig!="object"||Array.isArray(i.acceptedConfig))throw new Error("Product has no accepted internal config yet.");return i.acceptedConfig}async function re(t,e,n){let i=await t.getProductConfig(e,{env:n,state:"draft"}),r=i.draftConfig??i.config;if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Product has no draft or accepted internal config yet.");return r}function ui(t){return Array.isArray(t.plans)||(t.plans=[]),t.plans}function ne(t,e){let n=t[e];if(n&&typeof n=="object"&&!Array.isArray(n))return n;let i={};return t[e]=i,i}function Ur(t,e){Array.isArray(t[e])||(t[e]=[]);let n=t[e],i=n.filter(r=>typeof r=="string");return i.length!==n.length&&(t[e]=i),t[e]}function li(t,e){let n=ui(t).find(i=>i.key===e);if(!n)throw new Error(`Plan "${e}" not found`);return n}async function ve(t,e,n,i,r){let o=await e.updateProductConfigDraft(n,i,{dryRun:r?.dryRun,env:r?.env}),a=Dr(n,r?.env);return W(t,r?.message??"Product config updated",{ok:!0,productId:n,environment:a,state:"draft",dryRun:r?.dryRun===!0,...typeof o=="object"&&o?o:{}}),o}var Ap=Mr(On(),1);import{execSync as t$}from"node:child_process";import{existsSync as xA}from"node:fs";import{resolve as Pp}from"node:path";var d$=!!process.env.CI||!!process.env.GITHUB_ACTIONS,SA="preserve_current_period",IA={price_increase:"preserve_current_period",price_decrease:"switch_immediately",feature_added:"switch_immediately",feature_removed:"preserve_current_period",limit_increased:"switch_immediately",limit_reduced:"preserve_current_period",credit_increased:"switch_immediately",credit_reduced:"preserve_current_period",rating_changed:"preserve_current_period",strategy_changed:"preserve_current_period",plan_removed:"preserve_current_period",plan_added:"switch_immediately"};function di(t){let e=ce(t.fromSpec),n=ce(t.toSpec),i=DA(n),r=[],o=[],a=[],s=n$(e),c=n$(n);s!==c&&r.push(Ie(i,{kind:"strategy_changed",from:s,to:c,message:`Product strategy changes from ${s??"unset"} to ${c??"unset"}`}));let u=Ep(e),l=Ep(n);for(let[f,p]of u){let y=l.get(f);if(!y){r.push(Ie(i,{kind:"plan_removed",planKey:f,from:f,to:null,message:`Plan "${f}" was removed`}));continue}OA(f,p,y,i,r)}for(let f of l.keys())u.has(f)||r.push(Ie(i,{kind:"plan_added",planKey:f,from:null,to:f,message:`Plan "${f}" was added`}));TA(e,n,i,r);for(let f of r)f.kind==="plan_removed"&&f.subscriberAction!=="new_subscribers_only"&&(UA(n,f.planKey)||o.push(`Plan "${f.planKey}": removed plan must define archive.transitionTo or use new_subscribers_only`)),f.requiresAcknowledgment&&!NA(i,f)&&o.push(jA(f.kind));r.length===0&&a.push("No billing-affecting changes detected");let d=RA(r,o);return{valid:o.length===0,from:t.fromLabel??"from",to:t.toLabel??"product.yaml",strategy:{from:s,to:c},policy:i,changes:r,errors:o,warnings:a,agentHints:d}}function f$(t){t.command("plan-transition").description("Preview billing-affecting product.yaml changes and the subscriber transition policy they imply. Designed for agents and CI before apply.").option("--from <file>","Base product.yaml to compare from").option("--to <file>","Proposed product.yaml to compare to","product.yaml").option("--from-git <ref>","Read base product.yaml from a git ref, e.g. main:product.yaml").option("--format <format>","Output format: table or json","table").action(e=>{let n=Pp(e.to),i=jr(n);if(!i.ok){l$(`Could not read proposed product.yaml: ${i.message}`);return}let r=si(i.spec);if(!r.valid){qA(r.errors,e.format);return}let o=LA(e);if(!o.ok){l$(o.message);return}let a=di({fromSpec:o.spec,toSpec:i.spec,fromLabel:o.label,toLabel:e.to});if(e.format==="json"?console.log(J(a)):MA(a),d$){for(let s of a.errors)console.log(`::error file=product.yaml::${s}`);for(let s of a.warnings)console.log(`::warning file=product.yaml::${s}`)}a.valid||(process.exitCode=1)})}function OA(t,e,n,i,r){let o=i$(e),a=i$(n);a>o?r.push(Ie(i,{kind:"price_increase",planKey:t,from:o,to:a,message:`Plan "${t}" price increases from ${o} to ${a}`})):a<o&&r.push(Ie(i,{kind:"price_decrease",planKey:t,from:o,to:a,message:`Plan "${t}" price decreases from ${o} to ${a}`})),PA(t,"feature",o$(e),o$(n),i,r),AA(t,e,n,i,r),EA(t,e,n,i,r)}function PA(t,e,n,i,r,o){for(let a of i)n.has(a)||o.push(Ie(r,{kind:"feature_added",planKey:t,feature:a,from:null,to:a,message:`Plan "${t}" adds ${e} "${a}"`}));for(let a of n)i.has(a)||o.push(Ie(r,{kind:"feature_removed",planKey:t,feature:a,from:a,to:null,message:`Plan "${t}" removes ${e} "${a}"`}))}function AA(t,e,n,i,r){let o=a$(e),a=a$(n);for(let[s,c]of a){let u=o.get(s);u!==void 0&&(c>u?r.push(Ie(i,{kind:"limit_increased",planKey:t,meter:s,from:u,to:c,message:`Plan "${t}" limit for "${s}" increases from ${u} to ${c}`})):c<u&&r.push(Ie(i,{kind:"limit_reduced",planKey:t,meter:s,from:u,to:c,message:`Plan "${t}" limit for "${s}" reduces from ${u} to ${c}`})))}}function EA(t,e,n,i,r){let o=s$(e),a=s$(n);a>o?r.push(Ie(i,{kind:"credit_increased",planKey:t,from:o,to:a,message:`Plan "${t}" credits increase from ${o} to ${a}`})):a<o&&r.push(Ie(i,{kind:"credit_reduced",planKey:t,from:o,to:a,message:`Plan "${t}" credits reduce from ${o} to ${a}`}))}function TA(t,e,n,i){let r=c$(t),o=c$(e);for(let[a,s]of o){let c=r.get(a);c!==void 0&&ss(c)!==ss(s)&&i.push(Ie(n,{kind:"rating_changed",meter:a,from:c,to:s,message:`Meter "${a}" rating changed`}))}}function Ie(t,e){let n=zA(t,e.kind);return{...e,subscriberAction:n,requiresAcknowledgment:CA(e.kind,n)}}function zA(t,e){return t.when[e]??t.default}function CA(t,e){return e!=="switch_immediately"&&e!=="switch_immediately_prorate"?!1:t==="price_increase"||t==="feature_removed"||t==="limit_reduced"||t==="credit_reduced"}function jA(t){return t==="price_increase"?"Immediate price increases require billing.subscriberChangePolicy.allowImmediatePriceIncrease: true":`Immediate ${t} requires billing.subscriberChangePolicy.allowImmediateEntitlementReduction: true`}function NA(t,e){return e.requiresAcknowledgment?e.kind==="price_increase"?t.allowImmediatePriceIncrease:t.allowImmediateEntitlementReduction:!0}function DA(t){let e=ce(t.billing),n=ce(e.subscriberChangePolicy),i=ce(n.when),r=r$(n.default)??SA;return{default:r,proration:typeof n.proration=="string"?n.proration:"none",allowImmediatePriceIncrease:n.allowImmediatePriceIncrease===!0,allowImmediateEntitlementReduction:n.allowImmediateEntitlementReduction===!0,when:Object.fromEntries(Object.entries(IA).map(([o,a])=>[o,r$(i[o])??a??r]))}}function r$(t){if(t==="preserve_current_period"||t==="switch_immediately"||t==="switch_immediately_prorate"||t==="new_subscribers_only")return t}function n$(t){let e=ce(t.billing);return typeof e.strategy=="string"?e.strategy:void 0}function Ep(t){let e=Array.isArray(t.plans)?t.plans:[],n=new Map;for(let i of e){let r=ce(i);typeof r.key=="string"&&n.set(r.key,r)}return n}function i$(t){let e=ce(t.price),n=ce(t.pricing);return typeof e.monthly=="number"?e.monthly:typeof n.monthlyPriceCents=="number"?n.monthlyPriceCents:0}function o$(t){let e=Array.isArray(t.features)?t.features:[],n=ce(t.featureGates),i=e.filter(r=>typeof r=="string");for(let[r,o]of Object.entries(n))o===!0&&i.push(r);return new Set(i)}function a$(t){let e=Array.isArray(t.limits)?t.limits:[],n=new Map;for(let i of e){let r=ce(i),o=u$(r.meter)??u$(r.dimension);!o||typeof r.capacity!="number"||n.set(o,r.capacity)}return n}function s$(t){let e=ce(t.credits);return typeof e.monthlyIncludedMicros=="number"?e.monthlyIncludedMicros:0}function c$(t){let e=ce(t.usage),n=ce(e.meters),i=new Map;for(let[r,o]of Object.entries(n)){let a=ce(o).rating;a!==void 0&&i.set(r,a)}return i}function UA(t,e){if(!e)return;let n=Ep(t).get(e),i=ce(n?.archive);return typeof i.transitionTo=="string"?i.transitionTo:void 0}function ce(t){return t&&typeof t=="object"&&!Array.isArray(t)?t:{}}function u$(t){return typeof t=="string"?t:void 0}function ss(t){return Array.isArray(t)?`[${t.map(ss).join(",")}]`:t&&typeof t=="object"?`{${Object.entries(t).sort(([e],[n])=>e.localeCompare(n)).map(([e,n])=>`${JSON.stringify(e)}:${ss(n)}`).join(",")}}`:JSON.stringify(t)}function RA(t,e){let n=[];return e.length>0&&n.push("Fix errors before running farthershore apply."),t.some(i=>i.kind==="plan_removed")&&n.push("For removed plans with active subscribers, add archive.transitionTo or set the relevant policy to new_subscribers_only."),t.some(i=>i.requiresAcknowledgment)&&n.push("Avoid immediate harmful changes unless the YAML explicitly acknowledges them."),t.length>0&&n.push("New subscribers use the proposed product.yaml immediately; listed subscriberAction values apply to existing subscribers."),n}function LA(t){if(t.fromGit)try{let e=t$(`git show ${ZA(t.fromGit)}`,{encoding:"utf-8",stdio:["pipe","pipe","pipe"]});return{ok:!0,spec:Ap.default.parse(e),label:t.fromGit}}catch{return{ok:!1,message:`Could not read ${t.fromGit} from git`}}if(t.from){let e=Pp(t.from),n=jr(e);return n.ok?{ok:!0,spec:n.spec,label:t.from}:{ok:!1,message:n.message}}for(let e of["main:product.yaml","master:product.yaml"])try{let n=t$(`git show ${e}`,{encoding:"utf-8",stdio:["pipe","pipe","pipe"]});return{ok:!0,spec:Ap.default.parse(n),label:e}}catch{continue}return xA(Pp("product.yaml"))?{ok:!1,message:"No base product.yaml found. Pass --from old-product.yaml or --from-git main:product.yaml."}:{ok:!1,message:"No product.yaml found. Pass --to product.yaml."}}function ZA(t){return`'${t.replaceAll("'","'\\''")}'`}function MA(t){if(Hr(`Plan transition: ${t.from} \u2192 ${t.to}`),console.log(`Strategy: ${t.strategy.from??"unset"} \u2192 ${t.strategy.to??"unset"}`),console.log(`Default existing-subscriber action: ${t.policy.default}`),t.changes.length===0)ee("No billing-affecting changes detected");else for(let e of t.changes){let n=e.requiresAcknowledgment?" requires acknowledgment":"";console.log(` \u2022 ${e.message} \u2192 ${e.subscriberAction}${n}`)}for(let e of t.warnings)Pe(e);for(let e of t.errors)H(e);for(let e of t.agentHints)St(`hint: ${e}`)}function qA(t,e){if(e==="json")console.log(J({valid:!1,errors:t}));else{H("Proposed product.yaml is invalid");for(let n of t)console.log(` \u2022 ${n}`)}process.exitCode=1}function l$(t){d$&&console.log(`::error file=product.yaml::${t}`),H(t),process.exitCode=1}var Rr=!!process.env.CI||!!process.env.GITHUB_ACTIONS,ds="product.yaml";function BA(t){if(t)return t;let e=process.env.GITHUB_HEAD_REF;if(e)return e;let n=process.env.GITHUB_REF_NAME;if(n)return n;try{let i=FA("git rev-parse --abbrev-ref HEAD",{encoding:"utf-8",stdio:["pipe","pipe","pipe"]}).trim();return i&&i!=="HEAD"?i:void 0}catch{return}}function h$(){let t=ls(ds);if(!us(t))return null;try{return g$.default.parse(VA(t,"utf-8")).product?.name??null}catch{return null}}function KA(t,e=ds){let n=ls(e);if(!us(n))return null;let i=jr(n);if(!i.ok)return JA(i,t),null;let r=si(i.spec);if(!r.valid)return HA(r,t),null;if(t!=="json"){ee("Local product.yaml passed validation");for(let o of r.warnings)Pe(o);St(`Remote validation will use ${e} as the proposal.`)}return i}function JA(t,e){let n=t.reason==="parse"?`Local product.yaml failed to parse; remote validation was not started.
|
|
235
|
-
${
|
|
236
|
-
${
|
|
237
|
-
`);for(let n of
|
|
238
|
-
`)}return
|
|
239
|
-
`);for(let i of
|
|
234
|
+
`).action(t=>{let n=kE(t??"product.yaml"),i=Ur(n);if(!i.ok){i.reason==="missing"?(zp&&console.log(`::error file=product.yaml::File not found: ${i.message}`),W(`File not found: ${i.message}`)):(zp&&console.log(`::error file=product.yaml::YAML parse error: ${i.message}`),W(`Failed to parse YAML: ${i.message}`)),process.exitCode=1;return}let r=ui(i.spec),o=i.spec?.product?.name;if(o){let a=xE();a&&a!==o&&(r.errors.push(`product.name "${o}" differs from main branch "${a}" \u2014 product name must not change`),r.valid=!1)}PE(r)})}var $$=Fr(En(),1);import{execSync as WE}from"node:child_process";import{readFileSync as GE,existsSync as gs}from"node:fs";import{resolve as hs}from"node:path";var EE=new Set(["production","prod","main"]);function li(e){return nt(e.opts().format)}function Z(e,t,n){if(li(e)==="json"){console.log(J(n));return}ee(t)}async function we(e,t){let n=be();if(t){if(t.length===36)return t;let r=(await e.listProducts()).find(o=>o.id===t||o.name.toLowerCase()===t.toLowerCase());if(r)return r.id}if(n.activeProductId)return n.activeProductId;throw new Error("No product selected. Pass --product <id-or-name> or run `farthershore product create` first.")}function Rr(e){let t=e?.trim();if(t)return EE.has(t.toLowerCase())?null:t}function Pe(e,t){let n=Rr(t);if(n!==void 0)return{name:n,production:n===null};let i=Rr(process.env.FARTHERSHORE_ENV);if(i!==void 0)return{name:i,production:i===null};let o=be().activeEnvironmentsByProductId?.[e],a=Rr(o);return a!==void 0?{name:a,production:a===null}:{name:null,production:!0}}function Be(e){return e.production?void 0:e.name??void 0}function Ft(e,t){let n=e.opts();return t??n.env}async function M(e,t,n,i){let r=await we(t,n),o=Pe(r,Ft(e,i));return{productId:r,environment:o,env:Be(o)}}function i$(e,t){let n=be();rt({activeEnvironmentsByProductId:{...n.activeEnvironmentsByProductId??{},[e]:t}})}function o$(e){let n={...be().activeEnvironmentsByProductId??{}};delete n[e],rt({activeEnvironmentsByProductId:n})}async function a$(e,t,n){let i=await e.getProductConfig(t,{env:n,state:"accepted"});if(!i.acceptedConfig||typeof i.acceptedConfig!="object"||Array.isArray(i.acceptedConfig))throw new Error("Product has no accepted internal config yet.");return i.acceptedConfig}async function re(e,t,n){let i=await e.getProductConfig(t,{env:n,state:"draft"}),r=i.draftConfig??i.config;if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Product has no draft or accepted internal config yet.");return r}function di(e){return Array.isArray(e.plans)||(e.plans=[]),e.plans}function ne(e,t){let n=e[t];if(n&&typeof n=="object"&&!Array.isArray(n))return n;let i={};return e[t]=i,i}function Lr(e,t){Array.isArray(e[t])||(e[t]=[]);let n=e[t],i=n.filter(r=>typeof r=="string");return i.length!==n.length&&(e[t]=i),e[t]}function fi(e,t){let n=di(e).find(i=>i.key===t);if(!n)throw new Error(`Plan "${t}" not found`);return n}async function ye(e,t,n,i,r){let o=await t.updateProductConfigDraft(n,i,{dryRun:r?.dryRun,env:r?.env}),a=Pe(n,r?.env);return Z(e,r?.message??"Product config updated",{ok:!0,productId:n,environment:a,state:"draft",dryRun:r?.dryRun===!0,...typeof o=="object"&&o?o:{}}),o}var Np=Fr(En(),1);import{execSync as s$}from"node:child_process";import{existsSync as AE}from"node:fs";import{resolve as jp}from"node:path";var v$=!!process.env.CI||!!process.env.GITHUB_ACTIONS,TE="preserve_current_period",zE={price_increase:"preserve_current_period",price_decrease:"switch_immediately",feature_added:"switch_immediately",feature_removed:"preserve_current_period",limit_increased:"switch_immediately",limit_reduced:"preserve_current_period",credit_increased:"switch_immediately",credit_reduced:"preserve_current_period",rating_changed:"preserve_current_period",strategy_changed:"preserve_current_period",plan_removed:"preserve_current_period",plan_added:"switch_immediately"};function mi(e){let t=ce(e.fromSpec),n=ce(e.toSpec),i=qE(n),r=[],o=[],a=[],s=u$(t),c=u$(n);s!==c&&r.push(Ee(i,{kind:"strategy_changed",from:s,to:c,message:`Product strategy changes from ${s??"unset"} to ${c??"unset"}`}));let u=Dp(t),l=Dp(n);for(let[f,p]of u){let y=l.get(f);if(!y){r.push(Ee(i,{kind:"plan_removed",planKey:f,from:f,to:null,message:`Plan "${f}" was removed`}));continue}CE(f,p,y,i,r)}for(let f of l.keys())u.has(f)||r.push(Ee(i,{kind:"plan_added",planKey:f,from:null,to:f,message:`Plan "${f}" was added`}));UE(t,n,i,r);for(let f of r)f.kind==="plan_removed"&&f.subscriberAction!=="new_subscribers_only"&&(FE(n,f.planKey)||o.push(`Plan "${f.planKey}": removed plan must define archive.transitionTo or use new_subscribers_only`)),f.requiresAcknowledgment&&!ME(i,f)&&o.push(ZE(f.kind));r.length===0&&a.push("No billing-affecting changes detected");let d=VE(r,o);return{valid:o.length===0,from:e.fromLabel??"from",to:e.toLabel??"product.yaml",strategy:{from:s,to:c},policy:i,changes:r,errors:o,warnings:a,agentHints:d}}function y$(e){e.command("plan-transition").description("Preview billing-affecting product.yaml changes and the subscriber transition policy they imply. Designed for agents and CI before apply.").option("--from <file>","Base product.yaml to compare from").option("--to <file>","Proposed product.yaml to compare to","product.yaml").option("--from-git <ref>","Read base product.yaml from a git ref, e.g. main:product.yaml").option("--format <format>","Output format: table or json","table").action(t=>{let n=jp(t.to),i=Ur(n);if(!i.ok){h$(`Could not read proposed product.yaml: ${i.message}`);return}let r=ui(i.spec);if(!r.valid){JE(r.errors,t.format);return}let o=BE(t);if(!o.ok){h$(o.message);return}let a=mi({fromSpec:o.spec,toSpec:i.spec,fromLabel:o.label,toLabel:t.to});if(t.format==="json"?console.log(J(a)):HE(a),v$){for(let s of a.errors)console.log(`::error file=product.yaml::${s}`);for(let s of a.warnings)console.log(`::warning file=product.yaml::${s}`)}a.valid||(process.exitCode=1)})}function CE(e,t,n,i,r){let o=l$(t),a=l$(n);a>o?r.push(Ee(i,{kind:"price_increase",planKey:e,from:o,to:a,message:`Plan "${e}" price increases from ${o} to ${a}`})):a<o&&r.push(Ee(i,{kind:"price_decrease",planKey:e,from:o,to:a,message:`Plan "${e}" price decreases from ${o} to ${a}`})),jE(e,"feature",d$(t),d$(n),i,r),NE(e,t,n,i,r),DE(e,t,n,i,r)}function jE(e,t,n,i,r,o){for(let a of i)n.has(a)||o.push(Ee(r,{kind:"feature_added",planKey:e,feature:a,from:null,to:a,message:`Plan "${e}" adds ${t} "${a}"`}));for(let a of n)i.has(a)||o.push(Ee(r,{kind:"feature_removed",planKey:e,feature:a,from:a,to:null,message:`Plan "${e}" removes ${t} "${a}"`}))}function NE(e,t,n,i,r){let o=f$(t),a=f$(n);for(let[s,c]of a){let u=o.get(s);u!==void 0&&(c>u?r.push(Ee(i,{kind:"limit_increased",planKey:e,meter:s,from:u,to:c,message:`Plan "${e}" limit for "${s}" increases from ${u} to ${c}`})):c<u&&r.push(Ee(i,{kind:"limit_reduced",planKey:e,meter:s,from:u,to:c,message:`Plan "${e}" limit for "${s}" reduces from ${u} to ${c}`})))}}function DE(e,t,n,i,r){let o=m$(t),a=m$(n);a>o?r.push(Ee(i,{kind:"credit_increased",planKey:e,from:o,to:a,message:`Plan "${e}" credits increase from ${o} to ${a}`})):a<o&&r.push(Ee(i,{kind:"credit_reduced",planKey:e,from:o,to:a,message:`Plan "${e}" credits reduce from ${o} to ${a}`}))}function UE(e,t,n,i){let r=p$(e),o=p$(t);for(let[a,s]of o){let c=r.get(a);c!==void 0&&ms(c)!==ms(s)&&i.push(Ee(n,{kind:"rating_changed",meter:a,from:c,to:s,message:`Meter "${a}" rating changed`}))}}function Ee(e,t){let n=RE(e,t.kind);return{...t,subscriberAction:n,requiresAcknowledgment:LE(t.kind,n)}}function RE(e,t){return e.when[t]??e.default}function LE(e,t){return t!=="switch_immediately"&&t!=="switch_immediately_prorate"?!1:e==="price_increase"||e==="feature_removed"||e==="limit_reduced"||e==="credit_reduced"}function ZE(e){return e==="price_increase"?"Immediate price increases require billing.subscriberChangePolicy.allowImmediatePriceIncrease: true":`Immediate ${e} requires billing.subscriberChangePolicy.allowImmediateEntitlementReduction: true`}function ME(e,t){return t.requiresAcknowledgment?t.kind==="price_increase"?e.allowImmediatePriceIncrease:e.allowImmediateEntitlementReduction:!0}function qE(e){let t=ce(e.billing),n=ce(t.subscriberChangePolicy),i=ce(n.when),r=c$(n.default)??TE;return{default:r,proration:typeof n.proration=="string"?n.proration:"none",allowImmediatePriceIncrease:n.allowImmediatePriceIncrease===!0,allowImmediateEntitlementReduction:n.allowImmediateEntitlementReduction===!0,when:Object.fromEntries(Object.entries(zE).map(([o,a])=>[o,c$(i[o])??a??r]))}}function c$(e){if(e==="preserve_current_period"||e==="switch_immediately"||e==="switch_immediately_prorate"||e==="new_subscribers_only")return e}function u$(e){let t=ce(e.billing);return typeof t.strategy=="string"?t.strategy:void 0}function Dp(e){let t=Array.isArray(e.plans)?e.plans:[],n=new Map;for(let i of t){let r=ce(i);typeof r.key=="string"&&n.set(r.key,r)}return n}function l$(e){let t=ce(e.price),n=ce(e.pricing);return typeof t.monthly=="number"?t.monthly:typeof n.monthlyPriceCents=="number"?n.monthlyPriceCents:0}function d$(e){let t=Array.isArray(e.features)?e.features:[],n=ce(e.featureGates),i=t.filter(r=>typeof r=="string");for(let[r,o]of Object.entries(n))o===!0&&i.push(r);return new Set(i)}function f$(e){let t=Array.isArray(e.limits)?e.limits:[],n=new Map;for(let i of t){let r=ce(i),o=g$(r.meter)??g$(r.dimension);!o||typeof r.capacity!="number"||n.set(o,r.capacity)}return n}function m$(e){let t=ce(e.credits);return typeof t.monthlyIncludedMicros=="number"?t.monthlyIncludedMicros:0}function p$(e){let t=ce(e.usage),n=ce(t.meters),i=new Map;for(let[r,o]of Object.entries(n)){let a=ce(o).rating;a!==void 0&&i.set(r,a)}return i}function FE(e,t){if(!t)return;let n=Dp(e).get(t),i=ce(n?.archive);return typeof i.transitionTo=="string"?i.transitionTo:void 0}function ce(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function g$(e){return typeof e=="string"?e:void 0}function ms(e){return Array.isArray(e)?`[${e.map(ms).join(",")}]`:e&&typeof e=="object"?`{${Object.entries(e).sort(([t],[n])=>t.localeCompare(n)).map(([t,n])=>`${JSON.stringify(t)}:${ms(n)}`).join(",")}}`:JSON.stringify(e)}function VE(e,t){let n=[];return t.length>0&&n.push("Fix errors before running farthershore apply."),e.some(i=>i.kind==="plan_removed")&&n.push("For removed plans with active subscribers, add archive.transitionTo or set the relevant policy to new_subscribers_only."),e.some(i=>i.requiresAcknowledgment)&&n.push("Avoid immediate harmful changes unless the YAML explicitly acknowledges them."),e.length>0&&n.push("New subscribers use the proposed product.yaml immediately; listed subscriberAction values apply to existing subscribers."),n}function BE(e){if(e.fromGit)try{let t=s$(`git show ${KE(e.fromGit)}`,{encoding:"utf-8",stdio:["pipe","pipe","pipe"]});return{ok:!0,spec:Np.default.parse(t),label:e.fromGit}}catch{return{ok:!1,message:`Could not read ${e.fromGit} from git`}}if(e.from){let t=jp(e.from),n=Ur(t);return n.ok?{ok:!0,spec:n.spec,label:e.from}:{ok:!1,message:n.message}}for(let t of["main:product.yaml","master:product.yaml"])try{let n=s$(`git show ${t}`,{encoding:"utf-8",stdio:["pipe","pipe","pipe"]});return{ok:!0,spec:Np.default.parse(n),label:t}}catch{continue}return AE(jp("product.yaml"))?{ok:!1,message:"No base product.yaml found. Pass --from old-product.yaml or --from-git main:product.yaml."}:{ok:!1,message:"No product.yaml found. Pass --to product.yaml."}}function KE(e){return`'${e.replaceAll("'","'\\''")}'`}function HE(e){if(Gr(`Plan transition: ${e.from} \u2192 ${e.to}`),console.log(`Strategy: ${e.strategy.from??"unset"} \u2192 ${e.strategy.to??"unset"}`),console.log(`Default existing-subscriber action: ${e.policy.default}`),e.changes.length===0)ee("No billing-affecting changes detected");else for(let t of e.changes){let n=t.requiresAcknowledgment?" requires acknowledgment":"";console.log(` \u2022 ${t.message} \u2192 ${t.subscriberAction}${n}`)}for(let t of e.warnings)Te(t);for(let t of e.errors)W(t);for(let t of e.agentHints)Pt(`hint: ${t}`)}function JE(e,t){if(t==="json")console.log(J({valid:!1,errors:e}));else{W("Proposed product.yaml is invalid");for(let n of e)console.log(` \u2022 ${n}`)}process.exitCode=1}function h$(e){v$&&console.log(`::error file=product.yaml::${e}`),W(e),process.exitCode=1}var Zr=!!process.env.CI||!!process.env.GITHUB_ACTIONS,vs="product.yaml";function YE(e){if(e)return e;let t=process.env.GITHUB_HEAD_REF;if(t)return t;let n=process.env.GITHUB_REF_NAME;if(n)return n;try{let i=WE("git rev-parse --abbrev-ref HEAD",{encoding:"utf-8",stdio:["pipe","pipe","pipe"]}).trim();return i&&i!=="HEAD"?i:void 0}catch{return}}function w$(){let e=hs(vs);if(!gs(e))return null;try{return $$.default.parse(GE(e,"utf-8")).product?.name??null}catch{return null}}function XE(e,t=vs){let n=hs(t);if(!gs(n))return null;let i=Ur(n);if(!i.ok)return QE(i,e),null;let r=ui(i.spec);if(!r.valid)return eA(r,e),null;if(e!=="json"){ee("Local product.yaml passed validation");for(let o of r.warnings)Te(o);Pt(`Remote validation will use ${t} as the proposal.`)}return i}function QE(e,t){let n=e.reason==="parse"?`Local product.yaml failed to parse; remote validation was not started.
|
|
235
|
+
${e.message}`:`Local product.yaml could not be read; remote validation was not started.
|
|
236
|
+
${e.message}`;Zr&&console.log(`::error file=product.yaml::${n}`),t==="json"?k$([{message:n}],[]):W(n),process.exitCode=1}function eA(e,t){if(Zr){for(let n of e.errors)console.log(`::error file=product.yaml::${n}`);for(let n of e.warnings)console.log(`::warning file=product.yaml::${n}`)}if(t==="json")k$(e.errors.map(n=>({message:n})),e.warnings.map(n=>({message:n})));else{W(`Local product.yaml failed validation; remote validation was not started.
|
|
237
|
+
`);for(let n of e.errors)console.log(` \u2022 ${n}`);e.warnings.length>0&&console.log();for(let n of e.warnings)Te(n)}process.exitCode=1}function k$(e,t){console.log(J({ok:!1,success:!1,phase:"local_validation",errors:e,warnings:t,nextActions:["Fix product.yaml and run apply again"]}))}function b$(e){let t=hs(vs);if(!gs(t))return!1;if(!e)return!0;let n=w$();return typeof n=="string"&&n.toLowerCase()===e.toLowerCase()}async function tA(e,t){let n=t??w$();if(!n)return be().activeProductId??null;if(n.length===36&&/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(n))return n;try{return(await e.listProducts()).find(o=>o.name===n||o.name.toLowerCase()===n.toLowerCase())?.id??null}catch(i){let r=i instanceof Error?i.message:String(i);process.stderr.write(`Warning: Failed to resolve product slug: ${r}
|
|
238
|
+
`)}return be().activeProductId??null}function rA(e,t){return{...e?{branch:e}:{},...t?{dryRun:!0}:{}}}function ps(e){let t=e.code?`[${e.code}] `:"",n=e.planKey?`(plan: ${e.planKey}) `:"";return`${t}${n}${e.message}`}function nA(e,t){let n=e.ok!==!1;if(Zr){for(let i of e.errors??[])console.log(`::error file=product.yaml::${ps(i)}`);for(let i of e.warnings??[])console.log(`::warning file=product.yaml::${ps(i)}`)}if(t==="json"){console.log(J({ok:n,success:n,...e,errors:e.errors??[],warnings:e.warnings??[],nextActions:n?[e.dryRun?"Run farthershore apply --format json to publish this proposal":"Product config published"]:["Fix errors and run farthershore apply --dry-run --format json"]})),n||(process.exitCode=1);return}if(n){ee(e.dryRun?"Remote config dry-run passed":"Product config published");for(let i of e.warnings??[])Te(ps(i))}else{W(`Remote config validation failed
|
|
239
|
+
`);for(let i of e.errors??[])console.log(` \u2022 ${ps(i)}`);process.exitCode=1}}function x$(e,t){e.command("apply [product]").description("Publish the shared server draft, or submit a product.yaml proposal with --to. Core publishes only after schema, transition-safety, and compiler dry-run checks pass.").option("--branch <branch>","Override the branch used for env-scoped compilation (default: auto-detected)").option("--env <environment>","Environment name or production").option("--to <file>","Publish this product.yaml proposal instead of the stored draft").option("--save-draft","When used with --to, stage the file as the shared draft before publishing").option("--dry-run","Run remote compile without publishing product state").addHelpText("after",`
|
|
240
240
|
Agent notes:
|
|
241
241
|
apply without --to publishes the shared server draft as one product release.
|
|
242
242
|
apply --to product.yaml submits that file as a one-off proposal; add --save-draft to also stage it.
|
|
@@ -251,8 +251,8 @@ Examples:
|
|
|
251
251
|
farthershore apply my-weather-api --dry-run --format json
|
|
252
252
|
farthershore apply my-weather-api --env preview --dry-run --format json
|
|
253
253
|
farthershore apply my-weather-api --branch feature/billing-change --dry-run --format json
|
|
254
|
-
`).action(async(n,i)=>{let r=
|
|
255
|
-
Run from inside a product repo, or pass the slug: farthershore apply my-api`;
|
|
254
|
+
`).action(async(n,i)=>{let r=t(),o=e.opts(),a=i.env??o.env,s=o.format==="json"?"json":"table",c=typeof i.to=="string"||b$(n);if(i.to&&!gs(hs(i.to))){W(`Product YAML file not found: ${i.to}`),process.exitCode=1;return}if(!i.to&&c&&!b$(n)){W("No matching product.yaml found. Run from a product repo or pass the matching product name."),process.exitCode=1;return}let u=c?XE(s,i.to??vs):null;if(c&&!u?.ok)return;let l=await tA(r,n);if(!l){let y=n?`Product "${n}" not found. Check the name and try again.`:`No product specified and no product.yaml found.
|
|
255
|
+
Run from inside a product repo, or pass the slug: farthershore apply my-api`;W(y),process.exitCode=1;return}let d=Pe(l,a),f=Be(d),p=f?void 0:YE(i.branch);p&&Zr&&console.log(`::notice::Applying branch '${p}'`),f&&Zr&&console.log(`::notice::Applying environment '${f}'`);try{let y=u?.ok?u.spec:void 0,h=await iA(r,l,f,y);y!==void 0&&i.saveDraft&&!i.dryRun&&await r.updateProductConfigDraft(l,y,{env:f,source:"CLI"});let b=await r.applyProductConfig(l,{spec:y,...rA(p,i.dryRun),env:f,source:"CLI"});nA({...b,transitionPreview:h},s)}catch(y){let h=y instanceof Error?y.message:"Compilation check failed";if(Zr&&console.log(`::error::${h}`),s==="json"){let b=y&&typeof y=="object"&&"details"in y?y.details??{}:{};console.log(J({ok:!1,success:!1,errors:_$(b.errors,h),warnings:_$(b.warnings),nextActions:["Fix product.yaml and run farthershore apply --dry-run --format json"]}))}else W(h);process.exitCode=1}})}async function iA(e,t,n,i){try{let r=await e.getProductConfig(t,{env:n,state:"accepted"}),o=await e.getProductConfig(t,{env:n,state:"draft"});return r.acceptedConfig?mi({fromSpec:r.acceptedConfig,toSpec:i??o.draftConfig,fromLabel:"acceptedProductSpec",toLabel:i?"product.yaml":"draftProductSpec"}):void 0}catch{return}}function _$(e,t){return Array.isArray(e)?e.map(n=>n&&typeof n=="object"&&"message"in n?n:{message:String(n)}):t?[{message:t}]:[]}var oA=new Set(["preserve_current_period","switch_immediately","switch_immediately_prorate","new_subscribers_only"]),aA=new Set(["strategy_changed","price_increase","price_decrease","feature_added","feature_removed","limit_increased","limit_reduced","credit_increased","credit_reduced","rating_changed","plan_added","plan_removed"]);function ys(e){if(oA.has(e))return e;throw new Error(`Invalid subscriber action "${e}". Use preserve_current_period, switch_immediately, switch_immediately_prorate, or new_subscribers_only.`)}function sA(e){if(aA.has(e))return e;throw new Error(`Invalid transition change kind "${e}".`)}function S$(e){switch(e){case"at-renewal":return"preserve_current_period";case"immediate":return"switch_immediately";case"immediate-prorate":return"switch_immediately_prorate";case"grandfather":return"new_subscribers_only";default:throw new Error(`Invalid --existing-subscribers value "${e}". Use at-renewal, immediate, immediate-prorate, or grandfather.`)}}function Up(e,t){let n=I$(e);t.defaultAction!==void 0&&(n.default=ys(t.defaultAction)),t.proration!==void 0&&(n.proration=t.proration),t.ackPriceIncrease&&(n.allowImmediatePriceIncrease=!0),t.ackEntitlementReduction&&(n.allowImmediateEntitlementReduction=!0);for(let i of t.when??[]){let{kind:r,action:o}=cA(i);Rp(e,r,o,t)}}function Rp(e,t,n,i={}){lA(t,n,i);let r=I$(e),o=ne(r,"when");o[t]=n,i.ackPriceIncrease&&(r.allowImmediatePriceIncrease=!0),i.ackEntitlementReduction&&(r.allowImmediateEntitlementReduction=!0)}function cA(e){let t=e.indexOf("=");if(t===-1)throw new Error("--when must be formatted as change_kind=subscriber_action");return{kind:sA(e.slice(0,t)),action:ys(e.slice(t+1))}}function uA(e,t){return t!=="switch_immediately"&&t!=="switch_immediately_prorate"?null:e==="price_increase"?"price":e==="feature_removed"||e==="limit_reduced"||e==="credit_reduced"?"entitlement":null}function lA(e,t,n){let i=uA(e,t);if(i==="price"&&!n.ackPriceIncrease)throw new Error("Immediate price increases require --ack-price-increase.");if(i==="entitlement"&&!n.ackEntitlementReduction)throw new Error("Immediate feature removals, limit reductions, or credit reductions require --ack-entitlement-reduction.")}function I$(e){let t=ne(e,"billing"),n=ne(t,"subscriberChangePolicy");return typeof n.default!="string"&&(n.default="preserve_current_period"),typeof n.proration!="string"&&(n.proration="none"),ne(n,"when"),n}function O$(e,t){let n=e.command("billing").description("Manage product-level billing strategy and transition policy").addHelpText("after",`
|
|
256
256
|
Agent notes:
|
|
257
257
|
Billing strategy is product-level for paid plans. Paid plans should not mix strategies.
|
|
258
258
|
Strategies: free_trial, flat_subscription, included_usage, subscription_overage, pay_as_you_go, prepaid_credits.
|
|
@@ -271,19 +271,19 @@ Examples:
|
|
|
271
271
|
`);i.command("get").option("--product <product>","Product id or name").option("--env <environment>","Environment name or production").addHelpText("after",`
|
|
272
272
|
Example:
|
|
273
273
|
farthershore billing strategy get --format json
|
|
274
|
-
`).action(async o=>{let a=
|
|
274
|
+
`).action(async o=>{let a=t(),{productId:s,env:c,environment:u}=await M(e,a,o.product,o.env),l=await a.getProductConfig(s,{env:c,state:"draft"});Z(e,"Billing strategy loaded",{ok:!0,productId:s,environment:u,strategy:l.draftConfig?.billing?.strategy??l.config?.billing?.strategy??null})}),i.command("set <strategy>").option("--product <product>","Product id or name").option("--env <environment>","Environment name or production").option("--transition <action>","Default subscriber transition action: preserve_current_period, switch_immediately, switch_immediately_prorate, new_subscribers_only","preserve_current_period").option("--proration <mode>","Proration mode","none").option("--dry-run","Validate without mutating").addHelpText("after",`
|
|
275
275
|
Examples:
|
|
276
276
|
farthershore billing strategy set prepaid_credits --transition preserve_current_period --format json
|
|
277
277
|
farthershore billing strategy set pay_as_you_go --dry-run --format json
|
|
278
|
-
`).action(async(o,a)=>{let s=
|
|
278
|
+
`).action(async(o,a)=>{let s=t(),c=await M(e,s,a.product,a.env),u=await re(s,c.productId,c.env),l=ne(u,"billing");l.strategy=o,Up(u,{defaultAction:ys(a.transition),proration:a.proration}),await ye(e,s,c.productId,u,{dryRun:a.dryRun,env:c.env,message:"Billing strategy updated"})}),n.command("policy").description("Set subscriber change policy defaults").addHelpText("after",`
|
|
279
279
|
Example:
|
|
280
280
|
farthershore billing policy set --default preserve_current_period --proration none --format json
|
|
281
281
|
farthershore billing policy set --when price_decrease=switch_immediately --when feature_added=switch_immediately --format json
|
|
282
282
|
farthershore billing policy set --when price_increase=switch_immediately --ack-price-increase --format json
|
|
283
|
-
`).command("set").option("--product <product>","Product id or name").option("--env <environment>","Environment name or production").option("--default <action>","Default subscriber action: preserve_current_period, switch_immediately, switch_immediately_prorate, new_subscribers_only").option("--proration <mode>","Proration mode","none").option("--when <change=action>","Set per-change policy; repeatable. Example: price_increase=preserve_current_period",
|
|
283
|
+
`).command("set").option("--product <product>","Product id or name").option("--env <environment>","Environment name or production").option("--default <action>","Default subscriber action: preserve_current_period, switch_immediately, switch_immediately_prorate, new_subscribers_only").option("--proration <mode>","Proration mode","none").option("--when <change=action>","Set per-change policy; repeatable. Example: price_increase=preserve_current_period",dA,[]).option("--ack-price-increase","Allow immediate price increases when explicitly requested").option("--ack-entitlement-reduction","Allow immediate feature removals, limit reductions, or credit reductions when explicitly requested").option("--dry-run","Validate without mutating").addHelpText("after",`
|
|
284
284
|
Example:
|
|
285
285
|
farthershore billing policy set --default preserve_current_period --proration none --format json
|
|
286
|
-
`).action(async o=>{let a=
|
|
286
|
+
`).action(async o=>{let a=t(),s=await M(e,a,o.product,o.env),c=await re(a,s.productId,s.env);ne(c,"billing"),Up(c,{defaultAction:o.default,proration:o.proration,when:o.when,ackPriceIncrease:o.ackPriceIncrease,ackEntitlementReduction:o.ackEntitlementReduction}),await ye(e,a,s.productId,c,{dryRun:o.dryRun,env:s.env,message:"Billing policy updated"})})}function dA(e,t){return t.push(e),t}function P$(e,t){let n=e.command("draft").description("Inspect, validate, diff, or reset the shared product draft").addHelpText("after",`
|
|
287
287
|
Agent notes:
|
|
288
288
|
CLI, MCP, and UI mutation commands stage changes in a shared server draft.
|
|
289
289
|
farthershore apply publishes the draft as one product release.
|
|
@@ -293,7 +293,7 @@ Examples:
|
|
|
293
293
|
farthershore draft validate --format json
|
|
294
294
|
farthershore draft diff --format json
|
|
295
295
|
farthershore draft reset --format json
|
|
296
|
-
`);n.command("status").option("--product <product>","Product id or name").option("--env <environment>","Environment name or production").action(async i=>{let r=
|
|
296
|
+
`);n.command("status").option("--product <product>","Product id or name").option("--env <environment>","Environment name or production").action(async i=>{let r=t(),o=await M(e,r,i.product,i.env),a=await r.getProductConfig(o.productId,{env:o.env,state:"draft"});Z(e,"Draft status loaded",{ok:!0,productId:o.productId,environment:o.environment,...typeof a=="object"&&a?a:{}})}),n.command("validate").option("--product <product>","Product id or name").option("--env <environment>","Environment name or production").action(async i=>{let r=t(),o=await M(e,r,i.product,i.env),a=await r.validateProductConfigDraft(o.productId,{env:o.env});Z(e,"Draft validation completed",{ok:!0,productId:o.productId,environment:o.environment,...typeof a=="object"&&a?a:{}})}),n.command("diff").option("--product <product>","Product id or name").option("--env <environment>","Environment name or production").action(async i=>{let r=t(),o=await M(e,r,i.product,i.env),[a,s]=await Promise.all([r.getProductConfig(o.productId,{env:o.env,state:"accepted"}),r.getProductConfig(o.productId,{env:o.env,state:"draft"})]),c=a,u=s,l={ok:!0,productId:o.productId,environment:o.environment,acceptedConfigHash:c.acceptedConfigHash??null,draftHash:u.draftHash??null,draftStatus:u.draftStatus??null,changed:(c.acceptedConfigHash??null)!==(u.draftHash??null),acceptedConfig:u.acceptedConfig,draftConfig:u.draftConfig};li(e)==="json"?console.log(J(l)):Z(e,"Draft diff loaded",l)}),n.command("reset").option("--product <product>","Product id or name").option("--env <environment>","Environment name or production").action(async i=>{let r=t(),o=await M(e,r,i.product,i.env),a=await r.resetProductConfigDraft(o.productId,{env:o.env});Z(e,"Draft reset",{ok:!0,productId:o.productId,environment:o.environment,...typeof a=="object"&&a?a:{}})})}import{spawn as fA}from"node:child_process";var pi="Product id or name",gi="--product <product>";function E$(e,t){let n=e.command("env").description("Select and manage product environments for scoped commands").addHelpText("after",`
|
|
297
297
|
Agent notes:
|
|
298
298
|
Use --env <name> on any product-context command for a one-off scope.
|
|
299
299
|
Use env use <name> to persist an environment for the selected product.
|
|
@@ -305,11 +305,11 @@ Examples:
|
|
|
305
305
|
farthershore env use preview --format json
|
|
306
306
|
farthershore plan list --env preview --format json
|
|
307
307
|
farthershore env run preview -- plan add pro --price-monthly 2900 --format json
|
|
308
|
-
`);n.command("list").option(
|
|
308
|
+
`);n.command("list").option(gi,pi).action(async i=>{let r=t(),o=await we(r,i.product),a=await r.listEnvironments(o);Z(e,"Environments loaded",{ok:!0,productId:o,environments:a})}),n.command("create <name>").requiredOption("--branch <branch>","Git branch for this environment").option(gi,pi).action(async(i,r)=>{let o=t(),a=await we(o,r.product),s=await o.createEnvironment(a,{name:i,branch:r.branch});Z(e,`Environment "${i}" saved`,{ok:!0,productId:a,environment:{name:i,production:!1},result:s})}),n.command("use <name>").option(gi,pi).action(async(i,r)=>{let o=t(),a=await we(o,r.product),s=Rr(i)??null;i$(a,s),Z(e,"Environment selected",{ok:!0,productId:a,environment:{name:s,production:s===null}})}),n.command("current").option(gi,pi).action(async i=>{let r=t(),o=await we(r,i.product),a=e.opts(),s=Pe(o,a.env);Z(e,"Environment loaded",{ok:!0,productId:o,environment:s})}),n.command("clear").option(gi,pi).action(async i=>{let r=t(),o=await we(r,i.product);o$(o),Z(e,"Environment cleared",{ok:!0,productId:o,environment:{name:null,production:!0}})}),n.command("run <name>").allowUnknownOption(!0).allowExcessArguments(!0).description("Run another farthershore command with FARTHERSHORE_ENV set").addHelpText("after",`
|
|
309
309
|
Examples:
|
|
310
310
|
farthershore env run preview -- plan list --format json
|
|
311
311
|
farthershore env run production -- apply --dry-run --format json
|
|
312
|
-
`).action(async(i,r)=>{let o=r.args;if(o.length===0){console.log(J({ok:!1,errors:["Pass a command after --, for example: env run preview -- plan list"]})),process.exitCode=1;return}let a=
|
|
312
|
+
`).action(async(i,r)=>{let o=r.args;if(o.length===0){console.log(J({ok:!1,errors:["Pass a command after --, for example: env run preview -- plan list"]})),process.exitCode=1;return}let a=Rr(i);await mA(o,a===null?"production":a??i)})}async function mA(e,t){let n=fA(process.execPath,[process.argv[1],...e],{stdio:"inherit",env:{...process.env,FARTHERSHORE_ENV:t}});await new Promise(i=>{n.on("exit",r=>{process.exitCode=r??1,i()})})}function A$(e,t){let n=e.command("feature").description("Manage route-bound product features").addHelpText("after",`
|
|
313
313
|
Agent notes:
|
|
314
314
|
Features gate routes. Add a feature with one or more METHOD:/path routes, then bind it to plans.
|
|
315
315
|
Use METHOD:* only when the feature should cover all methods for a path.
|
|
@@ -322,17 +322,17 @@ Examples:
|
|
|
322
322
|
`);n.command("list").option("--product <product>","Product id or name").option("--env <environment>","Environment name or production").addHelpText("after",`
|
|
323
323
|
Example:
|
|
324
324
|
farthershore feature list --format json
|
|
325
|
-
`).action(async i=>{let r=
|
|
325
|
+
`).action(async i=>{let r=t(),o=await M(e,r,i.product,i.env),a=await re(r,o.productId,o.env);Z(e,"Features loaded",{ok:!0,productId:o.productId,environment:o.environment,features:ne(a,"features")})}),n.command("add <key>").option("--product <product>","Product id or name").option("--env <environment>","Environment name or production").option("--route <route>","Route binding METHOD:/path; repeatable",pA,[]).option("--dry-run","Validate without mutating").addHelpText("after",`
|
|
326
326
|
Examples:
|
|
327
327
|
farthershore feature add chat_completions --route POST:/v1/chat/completions --format json
|
|
328
328
|
farthershore feature add weather_read --route GET:/v1/weather --route GET:/v1/forecast --dry-run --format json
|
|
329
|
-
`).action(async(i,r)=>{let o=
|
|
329
|
+
`).action(async(i,r)=>{let o=t(),a=await M(e,o,r.product,r.env),s=await re(o,a.productId,a.env),c=ne(s,"features");c[i]={routes:r.route.map(gA)},await ye(e,o,a.productId,s,{dryRun:r.dryRun,env:a.env,message:`Feature "${i}" saved`})}),n.command("bind <key>").requiredOption("--plan <plan>","Plan key").option("--product <product>","Product id or name").option("--env <environment>","Environment name or production").option("--dry-run","Validate without mutating").addHelpText("after",`
|
|
330
330
|
Example:
|
|
331
331
|
farthershore feature bind chat_completions --plan pro --format json
|
|
332
|
-
`).action(async(i,r)=>{let o=
|
|
332
|
+
`).action(async(i,r)=>{let o=t(),a=await M(e,o,r.product,r.env),s=await re(o,a.productId,a.env),c=fi(s,r.plan),u=Lr(c,"features");u.includes(i)||u.push(i),await ye(e,o,a.productId,s,{dryRun:r.dryRun,env:a.env,message:`Feature "${i}" bound to "${r.plan}"`})}),n.command("unbind <key>").requiredOption("--plan <plan>","Plan key").option("--product <product>","Product id or name").option("--env <environment>","Environment name or production").option("--dry-run","Validate without mutating").addHelpText("after",`
|
|
333
333
|
Example:
|
|
334
334
|
farthershore feature unbind chat_completions --plan starter --format json
|
|
335
|
-
`).action(async(i,r)=>{let o=
|
|
335
|
+
`).action(async(i,r)=>{let o=t(),a=await M(e,o,r.product,r.env),s=await re(o,a.productId,a.env),c=fi(s,r.plan);c.features=Lr(c,"features").filter(u=>u!==i),await ye(e,o,a.productId,s,{dryRun:r.dryRun,env:a.env,message:`Feature "${i}" unbound from "${r.plan}"`})})}function pA(e,t){return t.push(e),t}function gA(e){let t=e.indexOf(":");return t===-1?{method:"*",path:e}:{method:e.slice(0,t).toUpperCase(),path:e.slice(t+1)}}function z$(e,t){let n=e.command("meter").description("Manage product usage meters and rating sources").addHelpText("after",`
|
|
336
336
|
Agent notes:
|
|
337
337
|
Meters define what usage is measured. Plans reference meters; plans do not define provider-specific rates.
|
|
338
338
|
Rating sources: fixed, provider_catalog, upstream_reported, external_rate_api, custom.
|
|
@@ -345,16 +345,16 @@ Examples:
|
|
|
345
345
|
`);n.command("list").option("--product <product>","Product id or name").option("--env <environment>","Environment name or production").addHelpText("after",`
|
|
346
346
|
Example:
|
|
347
347
|
farthershore meter list --format json
|
|
348
|
-
`).action(async i=>{let r=
|
|
348
|
+
`).action(async i=>{let r=t(),o=await M(e,r,i.product,i.env),a=await re(r,o.productId,o.env),s=ne(a,"usage");Z(e,"Meters loaded",{ok:!0,productId:o.productId,environment:o.environment,meters:ne(s,"meters")})}),n.command("add <key>").option("--product <product>","Product id or name").option("--env <environment>","Environment name or production").option("--selector <field>","Selector field, for example model").option("--measure <measure>","Measure name; repeatable",hA,[]).option("--rating <source>","Rating source: fixed, provider_catalog, upstream_reported, external_rate_api, custom","fixed").option("--catalog <catalog>","Catalog key for provider_catalog rating").option("--resolver <resolver>","Resolver id for external/custom rating").option("--amount-field <path>","Amount field for upstream_reported rating").option("--currency-field <path>","Currency field for upstream_reported rating").option("--dry-run","Validate without mutating").addHelpText("after",`
|
|
349
349
|
Examples:
|
|
350
350
|
farthershore meter add ai_tokens --selector model --measure input_tokens --measure output_tokens --rating provider_catalog --catalog llm_models --format json
|
|
351
351
|
farthershore meter add requests --measure count --rating fixed --dry-run --format json
|
|
352
352
|
farthershore meter add upstream_cost --measure cost_micros --rating upstream_reported --amount-field usage.cost_micros --format json
|
|
353
|
-
`).action(async(i,r)=>{let o=
|
|
353
|
+
`).action(async(i,r)=>{let o=t(),a=await M(e,o,r.product,r.env),s=await re(o,a.productId,a.env),c=ne(s,"usage"),u=ne(c,"meters");u[i]={...r.selector?{selector:r.selector}:{},measures:r.measure.length>0?r.measure:["count"],rating:T$(r)},await ye(e,o,a.productId,s,{dryRun:r.dryRun,env:a.env,message:`Meter "${i}" saved`})}),n.command("rating set <key>").option("--product <product>","Product id or name").option("--env <environment>","Environment name or production").requiredOption("--rating <source>","Rating source: fixed, provider_catalog, upstream_reported, external_rate_api, custom").option("--catalog <catalog>","Catalog key for provider_catalog rating").option("--resolver <resolver>","Resolver id for external/custom rating").option("--amount-field <path>","Amount field for upstream_reported rating").option("--currency-field <path>","Currency field for upstream_reported rating").option("--dry-run","Validate without mutating").addHelpText("after",`
|
|
354
354
|
Examples:
|
|
355
355
|
farthershore meter rating set ai_tokens --rating provider_catalog --catalog llm_models --format json
|
|
356
356
|
farthershore meter rating set upstream_cost --rating upstream_reported --amount-field usage.cost_micros --dry-run --format json
|
|
357
|
-
`).action(async(i,r)=>{let o=
|
|
357
|
+
`).action(async(i,r)=>{let o=t(),a=await M(e,o,r.product,r.env),s=await re(o,a.productId,a.env),c=ne(s,"usage"),l=ne(c,"meters")[i];if(!l||typeof l!="object"||Array.isArray(l))throw new Error(`Meter "${i}" not found`);l.rating=T$(r),await ye(e,o,a.productId,s,{dryRun:r.dryRun,env:a.env,message:`Meter "${i}" rating saved`})})}function hA(e,t){return t.push(e),t}function T$(e){return e.rating==="provider_catalog"?{source:e.rating,catalog:e.catalog??"default",pricePolicy:"pass_through"}:e.rating==="upstream_reported"?{source:e.rating,amountField:e.amountField??"usage.cost_micros",...e.currencyField?{currencyField:e.currencyField}:{}}:e.rating==="external_rate_api"||e.rating==="custom"?{source:e.rating,resolver:e.resolver??"default"}:{source:"fixed",rates:{}}}var xt="Product id or name",St="Environment name or production",Vt="Validate without mutating",It="--product <product>",Ot="--env <environment>",Mr="--existing-subscribers <mode>",Lp="How existing subscribers move: at-renewal, immediate, immediate-prorate, grandfather";function C$(e,t){let n=e.command("plan").description("Manage free and paid plans in the accepted product config").addHelpText("after",`
|
|
358
358
|
Agent notes:
|
|
359
359
|
Plans are keyed by plan name/key, not by usage type.
|
|
360
360
|
Only one free plan is allowed. Free plans should include a hard enforced limit.
|
|
@@ -368,37 +368,55 @@ Examples:
|
|
|
368
368
|
farthershore plan set-price pro --monthly 4900 --existing-subscribers at-renewal --format json
|
|
369
369
|
farthershore plan set-price pro --monthly 4900 --existing-subscribers immediate --ack-price-increase --format json
|
|
370
370
|
farthershore plan list --format json
|
|
371
|
-
`);n.command("list").option(
|
|
371
|
+
`);n.command("list").option(It,xt).option(Ot,St).addHelpText("after",`
|
|
372
372
|
Example:
|
|
373
373
|
farthershore plan list --format json
|
|
374
|
-
`).action(async i=>{let r=
|
|
374
|
+
`).action(async i=>{let r=t(),o=await M(e,r,i.product,i.env),a=await re(r,o.productId,o.env);Z(e,"Plans loaded",{ok:!0,productId:o.productId,environment:o.environment,plans:di(a)})}),n.command("add <key>").option(It,xt).option(Ot,St).option("--name <name>","Plan display name").option("--free","Create a free hard-limited plan").option("--price-monthly <cents>","Monthly price in cents",bs).option("--credits-monthly-micros <micros>","Monthly included credits",bs).option("--meter <meter>","Included meter; repeatable",Zp,[]).option("--feature <feature>","Enabled feature; repeatable",Zp,[]).option("--limit <limit>","Limit meter:window:capacity:enforcement; repeatable",Zp,[]).option("--dry-run",Vt).addHelpText("after",`
|
|
375
375
|
Examples:
|
|
376
376
|
farthershore plan add free --free --limit ai_tokens:month:100000:enforce --feature chat_completions --format json
|
|
377
377
|
farthershore plan add pro --price-monthly 2900 --credits-monthly-micros 500000000 --meter ai_tokens --feature chat_completions --format json
|
|
378
378
|
farthershore plan add starter --price-monthly 900 --meter requests --feature weather_read --dry-run --format json
|
|
379
|
-
`).action(async(i,r)=>{let o=
|
|
379
|
+
`).action(async(i,r)=>{let o=t(),a=await M(e,o,r.product,r.env),s=await re(o,a.productId,a.env),c=di(s),u=c.findIndex(d=>d.key===i),l=vA(i,r,_A(s));u===-1?c.push(l):c[u]={...c[u],...l},await ye(e,o,a.productId,s,{dryRun:r.dryRun,env:a.env,message:`Plan "${i}" saved`})}),n.command("set-price <key>").option(It,xt).option(Ot,St).requiredOption("--monthly <cents>","Monthly price in cents",bs).option("--currency <currency>","Currency","USD").option(Mr,Lp).option("--ack-price-increase","Required when an immediate price increase is intentional").option("--dry-run",Vt).addHelpText("after",`
|
|
380
380
|
Example:
|
|
381
381
|
farthershore plan set-price pro --monthly 4900 --dry-run --format json
|
|
382
382
|
farthershore plan set-price pro --monthly 4900 --existing-subscribers at-renewal --format json
|
|
383
383
|
farthershore plan set-price pro --monthly 4900 --existing-subscribers immediate --ack-price-increase --format json
|
|
384
|
-
`).action(async(i,r)=>{await
|
|
384
|
+
`).action(async(i,r)=>{await hi(e,t(),r.product,r.env,i,r.dryRun,(o,a)=>{let s=$A(o),c=r.monthly>s?"price_increase":r.monthly<s?"price_decrease":void 0;qr(a,c,r),o.free=!1,o.price={monthly:r.monthly,currency:r.currency},o.pricing={model:"flat_rate",monthlyPriceCents:r.monthly,billingInterval:"month"}})}),n.command("set-limit <key>").option(It,xt).option(Ot,St).requiredOption("--limit <limit>","Limit meter:window:capacity:enforcement").option(Mr,Lp).option("--ack-entitlement-reduction","Required when an immediate limit reduction is intentional").option("--dry-run",Vt).addHelpText("after",`
|
|
385
385
|
Examples:
|
|
386
386
|
farthershore plan set-limit free --limit ai_tokens:month:100000:enforce --format json
|
|
387
387
|
farthershore plan set-limit pro --limit ai_tokens:month:1000000:track --dry-run --format json
|
|
388
388
|
farthershore plan set-limit pro --limit ai_tokens:month:500000:enforce --existing-subscribers at-renewal --format json
|
|
389
|
-
`).action(async(i,r)=>{await
|
|
389
|
+
`).action(async(i,r)=>{await hi(e,t(),r.product,r.env,i,r.dryRun,(o,a)=>{let s=j$(r.limit),c=Array.isArray(o.limits)?o.limits:[],u=kA(c,xA(s)),l=typeof s.capacity=="number"?s.capacity:void 0,d=u!==void 0&&l!==void 0?l>u?"limit_increased":l<u?"limit_reduced":void 0:void 0;qr(a,d,r);let f=c.findIndex(p=>p.meter===s.meter||p.dimension===s.meter);f===-1?c.push(s):c[f]=s,o.limits=c})}),n.command("set-credits <key>").option(It,xt).option(Ot,St).requiredOption("--monthly-micros <micros>","Monthly included credits",bs).option(Mr,Lp).option("--ack-entitlement-reduction","Required when an immediate credit reduction is intentional").option("--dry-run",Vt).addHelpText("after",`
|
|
390
390
|
Example:
|
|
391
391
|
farthershore plan set-credits pro --monthly-micros 500000000 --format json
|
|
392
|
-
`).action(async(i,r)=>{await
|
|
392
|
+
`).action(async(i,r)=>{await hi(e,t(),r.product,r.env,i,r.dryRun,(o,a)=>{let s=wA(o),c=r.monthlyMicros>s?"credit_increased":r.monthlyMicros<s?"credit_reduced":void 0;qr(a,c,r),o.credits={monthlyIncludedMicros:r.monthlyMicros}})}),n.command("add-feature <key>").argument("<feature>").option(It,xt).option(Ot,St).option(Mr,"How existing subscribers receive this feature: at-renewal, immediate, immediate-prorate, grandfather").option("--dry-run",Vt).addHelpText("after",`
|
|
393
393
|
Example:
|
|
394
394
|
farthershore plan add-feature pro chat_completions --format json
|
|
395
|
-
`).action(async(i,r,o)=>{await
|
|
395
|
+
`).action(async(i,r,o)=>{await hi(e,t(),o.product,o.env,i,o.dryRun,(a,s)=>{qr(s,"feature_added",o);let c=Lr(a,"features");c.includes(r)||c.push(r)})}),n.command("remove-feature <key>").argument("<feature>").option(It,xt).option(Ot,St).option(Mr,"How existing subscribers lose this feature: at-renewal, immediate, immediate-prorate, grandfather").option("--ack-entitlement-reduction","Required when an immediate feature removal is intentional").option("--dry-run",Vt).addHelpText("after",`
|
|
396
396
|
Example:
|
|
397
397
|
farthershore plan remove-feature starter chat_completions --dry-run --format json
|
|
398
|
-
`).action(async(i,r,o)=>{await
|
|
398
|
+
`).action(async(i,r,o)=>{await hi(e,t(),o.product,o.env,i,o.dryRun,(a,s)=>{qr(s,"feature_removed",o),a.features=Lr(a,"features").filter(c=>c!==r)})}),n.command("remove <key>").option(It,xt).option(Ot,St).option(Mr,"Use grandfather to keep existing subscribers on old compiled plans").option("--dry-run",Vt).addHelpText("after",`
|
|
399
399
|
Example:
|
|
400
400
|
farthershore plan remove starter --dry-run --format json
|
|
401
|
-
`).action(async(i,r)=>{let o=
|
|
401
|
+
`).action(async(i,r)=>{let o=t(),a=await M(e,o,r.product,r.env),s=await re(o,a.productId,a.env);qr(s,"plan_removed",r),s.plans=di(s).filter(c=>c.key!==i),await ye(e,o,a.productId,s,{dryRun:r.dryRun,env:a.env,message:`Plan "${i}" removed`})})}function vA(e,t,n){let i=t.free?0:t.priceMonthly??0,r=yA(n,t.free,t.meter.length>0),o={key:e,name:t.name??SA(e),free:t.free===!0,price:{monthly:i,currency:"USD"},pricing:{model:r,monthlyPriceCents:i,billingInterval:"month"},usage:{meters:t.meter},features:t.feature,limits:t.limit.map(j$)};return t.creditsMonthlyMicros!==void 0&&(o.credits={monthlyIncludedMicros:t.creditsMonthlyMicros}),o}function yA(e,t,n){let i=bA(e);return(t||n)&&i.includes("included_usage")?"included_usage":!n&&i.includes("flat_rate")?"flat_rate":i.includes("included_usage")?"included_usage":i.includes("pay_as_you_go")?"pay_as_you_go":i.includes("configurable_usage")?"configurable_usage":"flat_rate"}function bA(e){let n=r$(e);if(n&&n.length>0)return n;switch(e){case"free_trial":case"flat_subscription":return["flat_rate"];case"included_usage":case"subscription_overage":case"prepaid_credits":return["included_usage","configurable_usage"];case"pay_as_you_go":return["pay_as_you_go","configurable_usage"];default:return["flat_rate"]}}function _A(e){let t=e.billing;if(typeof t=="object"&&t!==null&&!Array.isArray(t)){let n=t.strategy;if(typeof n=="string")return n}return"flat_subscription"}async function hi(e,t,n,i,r,o,a){let s=await M(e,t,n,i),c=await re(t,s.productId,s.env);a(fi(c,r),c),await ye(e,t,s.productId,c,{dryRun:o,env:s.env,message:`Plan "${r}" updated`})}function qr(e,t,n){!t||!n.existingSubscribers||Rp(e,t,S$(n.existingSubscribers),{ackPriceIncrease:n.ackPriceIncrease,ackEntitlementReduction:n.ackEntitlementReduction})}function $A(e){let t=e.price;if(t&&typeof t=="object"&&!Array.isArray(t)){let i=t.monthly;if(typeof i=="number")return i}let n=e.pricing;if(n&&typeof n=="object"&&!Array.isArray(n)){let i=n.monthlyPriceCents;if(typeof i=="number")return i}return 0}function wA(e){let t=e.credits;if(!t||typeof t!="object"||Array.isArray(t))return 0;let n=t.monthlyIncludedMicros;return typeof n=="number"?n:0}function kA(e,t){let n=e.find(i=>i.meter===t||i.dimension===t);return typeof n?.capacity=="number"?n.capacity:void 0}function j$(e){let[t,n,i,r]=e.split(":");if(!t||!n||!i)throw new Error("Limit must be meter:window:capacity[:enforce|track]");return{dimension:t,window:{type:"named",name:n},capacity:Number(i),enforcement:r??"enforce"}}function xA(e){return typeof e.dimension=="string"?e.dimension:typeof e.meter=="string"?e.meter:""}function Zp(e,t){return t.push(e),t}function bs(e){let t=Number.parseInt(e,10);if(!Number.isFinite(t))throw new Error(`Invalid integer: ${e}`);return t}function SA(e){return e.split(/[-_]/).filter(Boolean).map(t=>t.slice(0,1).toUpperCase()+t.slice(1)).join(" ")}var vi="--product <product>",yi="Product id or name",bi="--env <environment>",_i="Non-production environment name";function IA(e){if(!e||typeof e!="object")return[];let t=e;return Array.isArray(t.data)?t.data:Array.isArray(t.environments)?t.environments:[]}async function $i(e,t,n){let i=await e.listEnvironments(t),r=IA(i).find(o=>o.name.toLowerCase()===n.toLowerCase());if(!r)throw new Error(`Environment "${n}" not found. Run \`farthershore env list --product ${t}\`.`);return r}function N$(e,t){let n=e.command("persona").description("Mint and test-login ephemeral environment personas").addHelpText("after",`
|
|
402
|
+
Agent notes:
|
|
403
|
+
Persona commands are for non-production environments only.
|
|
404
|
+
bootstrap requires persona.issue permission because it returns a one-time fsk_test key.
|
|
405
|
+
Omitted --scope means all route scopes enabled by the selected plan, not unrestricted access.
|
|
406
|
+
login exchanges an fsk_test key for a short-lived persona session JWT and does not store it.
|
|
407
|
+
|
|
408
|
+
Examples:
|
|
409
|
+
farthershore env create preview --branch env/preview --format json
|
|
410
|
+
farthershore persona bootstrap --env preview --format json
|
|
411
|
+
farthershore persona login --env preview --api-key "$FSK_TEST_KEY" --format json
|
|
412
|
+
`);n.command("bootstrap").description("Mint a one-time fsk_test key for the selected environment").option(vi,yi).option(bi,_i).option("--plan <planKey>","Plan key to bind the test persona to").option("--compiled-plan <id>","Compiled plan id to bind directly").option("--scope <scope...>","Optional route scope subset, e.g. read:/v1/foo write:/v1/bar").option("--display-name <name>","Display name for the test persona").addHelpText("after",`
|
|
413
|
+
Example:
|
|
414
|
+
farthershore persona bootstrap --product weather-api --env preview --plan free --format json
|
|
415
|
+
farthershore persona bootstrap --env preview --plan pro --scope read:/v1/weather --format json
|
|
416
|
+
`).action(async i=>{let r=t(),o=await we(r,i.product),a=Pe(o,Ft(e,i.env)),s=Be(a);if(!s)throw new Error("Persona bootstrap requires a non-production --env.");let c=await $i(r,o,s),u=await r.issuePersonaBootstrapKey(o,c.id,{planKey:i.plan,compiledPlanId:i.compiledPlan,scopes:i.scope,displayName:i.displayName});Z(e,"Persona bootstrap key minted",{ok:!0,productId:o,environment:a,portalHost:c.portalHostname??null,result:u})}),n.command("list").description("List test personas for the selected environment").option(vi,yi).option(bi,_i).action(async i=>{let r=t(),o=await we(r,i.product),a=Pe(o,Ft(e,i.env)),s=Be(a);if(!s)throw new Error("Persona list requires a non-production --env.");let c=await $i(r,o,s),u=await r.listPersonas(o,c.id);Z(e,"Test personas",{ok:!0,productId:o,environment:a,result:u})}),n.command("rotate").description("Rotate a test persona key and return the new key once").requiredOption("--persona <id>","Persona id").option(vi,yi).option(bi,_i).action(async i=>{let r=t(),o=await we(r,i.product),a=Pe(o,Ft(e,i.env)),s=Be(a);if(!s)throw new Error("Persona rotate requires a non-production --env.");let c=await $i(r,o,s),u=await r.rotatePersona(o,c.id,i.persona);Z(e,"Persona key rotated",{ok:!0,productId:o,environment:a,result:u})}),n.command("revoke").description("Revoke a test persona key").requiredOption("--persona <id>","Persona id").option(vi,yi).option(bi,_i).action(async i=>{let r=t(),o=await we(r,i.product),a=Pe(o,Ft(e,i.env)),s=Be(a);if(!s)throw new Error("Persona revoke requires a non-production --env.");let c=await $i(r,o,s),u=await r.revokePersona(o,c.id,i.persona);Z(e,"Persona revoked",{ok:!0,productId:o,environment:a,result:u})}),n.command("login").description("Exchange an fsk_test key for a short-lived persona session").option(vi,yi).option(bi,_i).requiredOption("--api-key <key>","fsk_test key to exchange").option("--portal-host <host>","Override environment portal host for the session exchange").addHelpText("after",`
|
|
417
|
+
Example:
|
|
418
|
+
farthershore persona login --env preview --api-key "$FSK_TEST_KEY" --format json
|
|
419
|
+
`).action(async i=>{let r=t(),o=await we(r,i.product),a=Pe(o,Ft(e,i.env)),s=Be(a);if(!s)throw new Error("Persona login requires a non-production --env.");let c=await $i(r,o,s),u=i.portalHost??c.portalHostname??c.runtimeHostname;if(!u)throw new Error(`Environment "${s}" has no portal hostname.`);let l=await r.exchangePersonaSession({apiKey:i.apiKey,portalHost:u});Z(e,"Persona session exchanged",{ok:!0,productId:o,environment:a,portalHost:u,result:l})})}function D$(e,t){let n=e.command("product").description("Manage products and inspect the latest accepted internal product config").addHelpText("after",`
|
|
402
420
|
Agent notes:
|
|
403
421
|
Product commands use core APIs, not local files. After product create, the product is selected in ~/.farthershore/config.json.
|
|
404
422
|
GitHub default-branch edits publish proposals. CLI, MCP, and UI commands stage a shared server draft until apply publishes it.
|
|
@@ -419,18 +437,18 @@ Next commands:
|
|
|
419
437
|
farthershore meter add --help
|
|
420
438
|
farthershore feature add --help
|
|
421
439
|
farthershore plan add --help
|
|
422
|
-
`).action(async(i,r)=>{if(r.dryRun){
|
|
440
|
+
`).action(async(i,r)=>{if(r.dryRun){Z(e,"Product create dry run",{ok:!0,dryRun:!0,proposal:{name:i,baseUrl:r.baseUrl,description:r.description,displayName:r.displayName,billingStrategy:r.strategy,subscriberChangePolicy:{default:"preserve_current_period",proration:"none"}},nextActions:["Run without --dry-run to create the product"]});return}let a=await t().initProduct({name:i,baseUrl:r.baseUrl,description:r.description,displayName:r.displayName,billingStrategy:r.strategy,subscriberChangePolicy:{default:"preserve_current_period",proration:"none"}});rt({activeProductId:a.product.id,activeProductName:a.product.name}),Z(e,`Created product "${a.product.name}"`,{ok:!0,productId:a.product.id,product:a.product,repo:a.repo,githubSyncStatus:a.product.acceptedProductSpecGithubSyncStatus??null,nextActions:["Add meters, features, and plans","Run farthershore apply --dry-run --format json"]})}),n.command("status").description("Show selected product status").option("--product <product>","Product id or name").option("--env <environment>","Environment name or production").addHelpText("after",`
|
|
423
441
|
Example:
|
|
424
442
|
farthershore product status --format json
|
|
425
|
-
`).action(async i=>{let r=
|
|
443
|
+
`).action(async i=>{let r=t(),{productId:o,env:a,environment:s}=await M(e,r,i.product,i.env),c=await r.getProductConfig(o,{env:a,state:"draft"});Z(e,"Product status loaded",{ok:!0,productId:o,environment:s,...typeof c=="object"&&c?c:{}})}),n.command("config").description("Show accepted or draft internal product config as json or yaml").option("--product <product>","Product id or name").option("--env <environment>","Environment name or production").option("--state <state>","Config state: accepted or draft","accepted").option("--format <format>","Output format: json or yaml").addHelpText("after",`
|
|
426
444
|
Examples:
|
|
427
445
|
farthershore product config --format json
|
|
428
446
|
farthershore product config --state draft --format json
|
|
429
447
|
farthershore product config --format yaml
|
|
430
|
-
`).action(async i=>{let r=
|
|
448
|
+
`).action(async i=>{let r=t(),{productId:o,env:a}=await M(e,r,i.product,i.env),s=i.format??li(e),c=i.state==="draft"?"draft":"accepted";if(s==="yaml"){console.log(await r.getProductConfigYaml(o,{env:a,state:c}));return}console.log(J(await r.getProductConfig(o,{env:a,state:c})))}),n.command("attempts").description("Show rejected product config attempts").option("--product <product>","Product id or name").option("--env <environment>","Environment name or production").addHelpText("after",`
|
|
431
449
|
Example:
|
|
432
450
|
farthershore product attempts --format json
|
|
433
|
-
`).action(async i=>{let r=
|
|
451
|
+
`).action(async i=>{let r=t(),{productId:o,env:a}=await M(e,r,i.product,i.env);console.log(J(await r.getProductAttempts(o,{env:a})))})}var U$=Fr(En(),1);import{existsSync as OA,readFileSync as PA}from"node:fs";import{resolve as EA}from"node:path";function R$(e,t){e.command("transition").description("Preview subscriber impact for product config changes").addHelpText("after",`
|
|
434
452
|
Agent notes:
|
|
435
453
|
New subscribers use accepted config immediately. Existing subscribers follow billing.subscriberChangePolicy.
|
|
436
454
|
Preview before price, feature, limit, credit, rating, or strategy changes.
|
|
@@ -446,13 +464,14 @@ Examples:
|
|
|
446
464
|
|
|
447
465
|
Output includes:
|
|
448
466
|
ok, productId, transitionPreview, errors, warnings, nextActions
|
|
449
|
-
`).action(async i=>{let r=
|
|
467
|
+
`).action(async i=>{let r=t(),o=await M(e,r,i.product,i.env),a=await a$(r,o.productId,o.env),s=AA(i.to)??await re(r,o.productId,o.env),c=mi({fromSpec:a,toSpec:s,fromLabel:"acceptedProductSpec",toLabel:i.to??"draftProductSpec"}),u=e.opts();if((i.format??nt(u.format))==="json"){console.log(J({ok:c.valid,productId:o.productId,environment:o.environment,transitionPreview:c,errors:c.errors,warnings:c.warnings,nextActions:c.agentHints})),c.valid||(process.exitCode=1);return}c.valid?ee("Transition preview passed"):W("Transition preview failed");for(let d of c.changes)console.log(` \u2022 ${d.message} -> ${d.subscriberAction}`);for(let d of c.warnings)Te(d);for(let d of c.errors)W(d);c.valid||(process.exitCode=1)})}function AA(e){let t=EA(e??"product.yaml");return OA(t)?U$.default.parse(PA(t,"utf-8")):null}var TA={UNAUTHORIZED:"Token is invalid or revoked. Run `farthershore set-key` to update it.",FORBIDDEN:"Your token doesn't have access to this resource. Check the org / product scope.",INVALID_ACCESS_KEY:"Token format is wrong. Generate a new one at https://farthershore.com/settings/tokens.",MAKER_TOKEN_REVOKED:"This maker token was revoked. Mint a new one in the product settings.",MAKER_TOKEN_NO_PRODUCT:"Maker token is not bound to a product. Re-create it from the product page.",STRIPE_NOT_CONFIGURED:"Stripe isn't connected on this product. Connect it in the dashboard before running billing operations.",STRIPE_BALANCE_OUTSTANDING:"Customer has an outstanding balance. Resolve the invoice in Stripe before retrying.",CHECKOUT_SESSION_FAILED:"Stripe rejected the checkout request. Check that the plan exists and Stripe credentials are valid.",PRODUCT_NOT_FOUND:"Check the product slug. Run `farthershore` (no args) for a list of products you can see.",PRODUCT_REPO_NOT_LINKED:"Link a GitHub repo to this product before running `apply`.",PRODUCT_YAML_NOT_FOUND:"No product.yaml on the target branch. Push a config file before running `apply`.",YAML_PARSE_ERROR:"product.yaml is not valid YAML. Run `farthershore validate` locally to see the parse error.",GITHUB_NOT_CONNECTED:"Connect GitHub on the org page before running `init` (it provisions the repo).",BRANCH_NO_MATCHING_ENV:"The current branch isn't mapped to an environment. Add a branch rule in product settings or pass --branch explicitly.",PLAN_NOT_FOUND:"Plan key doesn't exist on this product. Check `plans:` in product.yaml.",PLAN_HAS_ACTIVE_SUBSCRIPTIONS:"Plan has active subscribers and can't be deleted. Migrate them to another plan first.",PLAN_SLUG_CONFLICT:"Another plan already uses this key. Pick a unique key in product.yaml.",SLUG_CONFLICT:"This product slug is taken. Pick a different name.",SLUG_BLOCKED:"This slug is reserved or blocked. Pick a different name.",SLUG_RESERVED:"This slug is reserved by Farther Shore. Pick a different name.",SLUG_INVALID_FORMAT:"Slug must be lowercase letters, digits, and hyphens (no leading/trailing hyphen).",RATE_LIMIT_EXCEEDED:"You've hit the rate limit. Wait a moment and retry.",VALIDATION_ERROR:"Request is malformed. The `details` field has the field-level errors.",CONFLICT:"The resource is in a state that conflicts with the request. Inspect `details` to learn more."};function L$(e){if(e)return TA[e]}var DA=jA(CA(import.meta.url)),UA=JSON.parse(await zA(NA(DA,"..","package.json"),"utf-8")),ie=new tg;ie.name("farthershore").description("FartherShore CLI \u2014 agent-friendly commands to create, configure, validate, and launch API products").version(UA.version).option("--token <token>","Override auth token").option("--api-url <url>","Override API base URL").option("--env <environment>","Environment scope for product commands. Use production/prod/main for production").option("--format <format>","Output format. Use --format json for stable machine-readable agent output").addHelpText("after",`
|
|
450
468
|
Agent discovery:
|
|
451
469
|
Start with:
|
|
452
470
|
farthershore --help
|
|
453
471
|
farthershore product --help
|
|
454
472
|
farthershore draft --help
|
|
455
473
|
farthershore env --help
|
|
474
|
+
farthershore persona --help
|
|
456
475
|
farthershore meter add --help
|
|
457
476
|
farthershore feature add --help
|
|
458
477
|
farthershore plan add --help
|
|
@@ -464,6 +483,8 @@ Agent end-to-end API workflow:
|
|
|
464
483
|
farthershore product create weather-api --base-url https://api.example.com --strategy prepaid_credits --format json
|
|
465
484
|
farthershore env create preview --branch env/preview --format json
|
|
466
485
|
farthershore env use preview --format json
|
|
486
|
+
farthershore persona bootstrap --env preview --format json
|
|
487
|
+
farthershore persona login --env preview --api-key "$FSK_TEST_KEY" --format json
|
|
467
488
|
farthershore meter add ai_tokens --selector model --measure input_tokens --measure output_tokens --rating provider_catalog --catalog llm_models --format json
|
|
468
489
|
farthershore --env preview plan list --format json
|
|
469
490
|
farthershore env run preview -- plan add pro --price-monthly 2900 --format json
|
|
@@ -480,7 +501,7 @@ Useful constants:
|
|
|
480
501
|
Billing strategies: free_trial, flat_subscription, included_usage, subscription_overage, pay_as_you_go, prepaid_credits
|
|
481
502
|
Rating sources: fixed, provider_catalog, upstream_reported, external_rate_api, custom
|
|
482
503
|
Transition actions: preserve_current_period, switch_immediately, switch_immediately_prorate, new_subscribers_only
|
|
483
|
-
`);function
|
|
484
|
-
`);let n=
|
|
485
|
-
`)}async function
|
|
486
|
-
`),process.exitCode=1)}}}
|
|
504
|
+
`);function Ue(){let e=be(),t=ie.opts(),n=Ii(t.token),i=t.apiUrl??process.env.FARTHERSHORE_API_URL??e.apiUrl;return Br({apiUrl:i,token:n})}bg(ie);_g(ie,Ue);D$(ie,Ue);P$(ie,Ue);E$(ie,Ue);N$(ie,Ue);O$(ie,Ue);z$(ie,Ue);A$(ie,Ue);C$(ie,Ue);R$(ie,Ue);n$(ie);y$(ie);x$(ie,Ue);ie.exitOverride();function RA(e){let t=e.code?` [${e.code}]`:"";process.stderr.write(`Error${t}: ${e.message}
|
|
505
|
+
`);let n=L$(e.code);n&&process.stderr.write(`Hint: ${n}
|
|
506
|
+
`)}async function LA(){try{await ie.parseAsync(process.argv)}catch(e){if(e instanceof ue)RA(e),process.exitCode=1;else if(e instanceof Error){let t=e.code;t==="commander.helpDisplayed"||t==="commander.version"||e.message!=="(outputHelp)"&&(process.stderr.write(`Error: ${e.message}
|
|
507
|
+
`),process.exitCode=1)}}}LA();
|