@zenku/cli-node 0.1.34 → 0.1.35

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/zenku-bundle.cjs +201 -152
package/zenku-bundle.cjs CHANGED
@@ -1,159 +1,159 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var GD=Object.create;var _a=Object.defineProperty;var JD=Object.getOwnPropertyDescriptor;var KD=Object.getOwnPropertyNames;var HD=Object.getPrototypeOf,YD=Object.prototype.hasOwnProperty;var ot=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Xe=(e,t)=>{for(var n in t)_a(e,n,{get:t[n],enumerable:!0})},XD=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of KD(t))!YD.call(e,r)&&r!==n&&_a(e,r,{get:()=>t[r],enumerable:!(i=JD(t,r))||i.enumerable});return e};var ce=(e,t,n)=>(n=e!=null?GD(HD(e)):{},XD(t||!e||!e.__esModule?_a(n,"default",{value:e,enumerable:!0}):n,e));var Ur=ot(wa=>{var Zn=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}},xa=class extends Zn{constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};wa.CommanderError=Zn;wa.InvalidArgumentError=xa});var Ln=ot(Ca=>{var{InvalidArgumentError:QD}=Ur(),ka=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.endsWith("...")&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_collectValue(t,n){return n===this.defaultValue||!Array.isArray(n)?[t]:(n.push(t),n)}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 QD(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(n,i):n},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function ey(e){let t=e.name()+(e.variadic===!0?"...":"");return e.required?"<"+t+">":"["+t+"]"}Ca.Argument=ka;Ca.humanReadableArgName=ey});var Ea=ot(Sa=>{var{humanReadableArgName:ty}=Ln(),Ia=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=>ty(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=[];if(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){let i=`(${n.join(", ")})`;return t.description?`${t.description} ${i}`:i}return 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}formatItemList(t,n,i){return n.length===0?[]:[i.styleTitle(t),...n,""]}groupItems(t,n,i){let r=new Map;return t.forEach(o=>{let a=i(o);r.has(a)||r.set(a,[])}),n.forEach(o=>{let a=i(o);r.has(a)||r.set(a,[]),r.get(a).push(o)}),r}formatHelp(t,n){let i=n.padWidth(t,n),r=n.helpWidth??80;function o(d,p){return n.formatItem(d,i,p,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 u=n.visibleArguments(t).map(d=>o(n.styleArgumentTerm(n.argumentTerm(d)),n.styleArgumentDescription(n.argumentDescription(d))));if(a=a.concat(this.formatItemList("Arguments:",u,n)),this.groupItems(t.options,n.visibleOptions(t),d=>d.helpGroupHeading??"Options:").forEach((d,p)=>{let f=d.map(g=>o(n.styleOptionTerm(n.optionTerm(g)),n.styleOptionDescription(n.optionDescription(g))));a=a.concat(this.formatItemList(p,f,n))}),n.showGlobalOptions){let d=n.visibleGlobalOptions(t).map(p=>o(n.styleOptionTerm(n.optionTerm(p)),n.styleOptionDescription(n.optionDescription(p))));a=a.concat(this.formatItemList("Global Options:",d,n))}return this.groupItems(t.commands,n.visibleCommands(t),d=>d.helpGroup()||"Commands:").forEach((d,p)=>{let f=d.map(g=>o(n.styleSubcommandTerm(n.subcommandTerm(g)),n.styleSubcommandDescription(n.subcommandDescription(g))));a=a.concat(this.formatItemList(p,f,n))}),a.join(`
3
- `)}displayWidth(t){return _m(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)),u=2,l=(this.helpWidth??80)-n-u-2,d;return l<this.minWidthToWrap||r.preformatted(i)?d=i:d=r.boxWrap(i,l).replace(/\n/g,`
4
- `+" ".repeat(n+u)),a+s+" ".repeat(u)+d.replace(/\n/g,`
5
- ${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 u=[s.shift()],c=this.displayWidth(u[0]);s.forEach(l=>{let d=this.displayWidth(l);if(c+d<=n){u.push(l),c+=d;return}o.push(u.join(""));let p=l.trimStart();u=[p],c=this.displayWidth(p)}),o.push(u.join(""))}),o.join(`
6
- `)}};function _m(e){let t=/\x1b\[\d*(;\d*)*m/g;return e.replace(t,"")}Sa.Help=Ia;Sa.stripColor=_m});var Pa=ot(za=>{var{InvalidArgumentError:ry}=Ur(),Fa=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=ny(t);this.short=i.shortFlag,this.long=i.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(t,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}_collectValue(t,n){return n===this.defaultValue||!Array.isArray(n)?[t]:(n.push(t),n)}choices(t){return this.argChoices=t.slice(),this.parseArg=(n,i)=>{if(!this.argChoices.includes(n))throw new ry(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(n,i):n},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?xm(this.name().replace(/^no-/,"")):xm(this.name())}helpGroup(t){return this.helpGroupHeading=t,this}is(t){return this.short===t||this.long===t}isBoolean(){return!this.required&&!this.optional&&!this.negate}},Oa=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 xm(e){return e.split("-").reduce((t,n)=>t+n[0].toUpperCase()+n.slice(1))}function ny(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}
2
+ "use strict";var vb=Object.create;var Ws=Object.defineProperty;var Db=Object.getOwnPropertyDescriptor;var yb=Object.getOwnPropertyNames;var bb=Object.getPrototypeOf,$b=Object.prototype.hasOwnProperty;var ut=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),tt=(e,t)=>{for(var n in t)Ws(e,n,{get:t[n],enumerable:!0})},_b=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of yb(t))!$b.call(e,r)&&r!==n&&Ws(e,r,{get:()=>t[r],enumerable:!(i=Db(t,r))||i.enumerable});return e};var ce=(e,t,n)=>(n=e!=null?vb(bb(e)):{},_b(t||!e||!e.__esModule?Ws(n,"default",{value:e,enumerable:!0}):n,e));var Kr=ut(Js=>{var ii=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}},Gs=class extends ii{constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};Js.CommanderError=ii;Js.InvalidArgumentError=Gs});var oi=ut(Hs=>{var{InvalidArgumentError:xb}=Kr(),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.endsWith("...")&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_collectValue(t,n){return n===this.defaultValue||!Array.isArray(n)?[t]:(n.push(t),n)}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 xb(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(n,i):n},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function wb(e){let t=e.name()+(e.variadic===!0?"...":"");return e.required?"<"+t+">":"["+t+"]"}Hs.Argument=Ks;Hs.humanReadableArgName=wb});var Qs=ut(Xs=>{var{humanReadableArgName:kb}=oi(),Ys=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=>kb(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=[];if(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){let i=`(${n.join(", ")})`;return t.description?`${t.description} ${i}`:i}return 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}formatItemList(t,n,i){return n.length===0?[]:[i.styleTitle(t),...n,""]}groupItems(t,n,i){let r=new Map;return t.forEach(o=>{let s=i(o);r.has(s)||r.set(s,[])}),n.forEach(o=>{let s=i(o);r.has(s)||r.set(s,[]),r.get(s).push(o)}),r}formatHelp(t,n){let i=n.padWidth(t,n),r=n.helpWidth??80;function o(d,p){return n.formatItem(d,i,p,n)}let s=[`${n.styleTitle("Usage:")} ${n.styleUsage(n.commandUsage(t))}`,""],a=n.commandDescription(t);a.length>0&&(s=s.concat([n.boxWrap(n.styleCommandDescription(a),r),""]));let u=n.visibleArguments(t).map(d=>o(n.styleArgumentTerm(n.argumentTerm(d)),n.styleArgumentDescription(n.argumentDescription(d))));if(s=s.concat(this.formatItemList("Arguments:",u,n)),this.groupItems(t.options,n.visibleOptions(t),d=>d.helpGroupHeading??"Options:").forEach((d,p)=>{let m=d.map(D=>o(n.styleOptionTerm(n.optionTerm(D)),n.styleOptionDescription(n.optionDescription(D))));s=s.concat(this.formatItemList(p,m,n))}),n.showGlobalOptions){let d=n.visibleGlobalOptions(t).map(p=>o(n.styleOptionTerm(n.optionTerm(p)),n.styleOptionDescription(n.optionDescription(p))));s=s.concat(this.formatItemList("Global Options:",d,n))}return this.groupItems(t.commands,n.visibleCommands(t),d=>d.helpGroup()||"Commands:").forEach((d,p)=>{let m=d.map(D=>o(n.styleSubcommandTerm(n.subcommandTerm(D)),n.styleSubcommandDescription(n.subcommandDescription(D))));s=s.concat(this.formatItemList(p,m,n))}),s.join(`
3
+ `)}displayWidth(t){return uf(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 s=" ".repeat(2);if(!i)return s+t;let a=t.padEnd(n+t.length-r.displayWidth(t)),u=2,l=(this.helpWidth??80)-n-u-2,d;return l<this.minWidthToWrap||r.preformatted(i)?d=i:d=r.boxWrap(i,l).replace(/\n/g,`
4
+ `+" ".repeat(n+u)),s+a+" ".repeat(u)+d.replace(/\n/g,`
5
+ ${s}`)}boxWrap(t,n){if(n<this.minWidthToWrap)return t;let i=t.split(/\r\n|\n/),r=/[\s]*[^\s]+/g,o=[];return i.forEach(s=>{let a=s.match(r);if(a===null){o.push("");return}let u=[a.shift()],c=this.displayWidth(u[0]);a.forEach(l=>{let d=this.displayWidth(l);if(c+d<=n){u.push(l),c+=d;return}o.push(u.join(""));let p=l.trimStart();u=[p],c=this.displayWidth(p)}),o.push(u.join(""))}),o.join(`
6
+ `)}};function uf(e){let t=/\x1b\[\d*(;\d*)*m/g;return e.replace(t,"")}Xs.Help=Ys;Xs.stripColor=uf});var na=ut(ra=>{var{InvalidArgumentError:Sb}=Kr(),ea=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=Cb(t);this.short=i.shortFlag,this.long=i.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(t,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}_collectValue(t,n){return n===this.defaultValue||!Array.isArray(n)?[t]:(n.push(t),n)}choices(t){return this.argChoices=t.slice(),this.parseArg=(n,i)=>{if(!this.argChoices.includes(n))throw new Sb(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(n,i):n},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?cf(this.name().replace(/^no-/,"")):cf(this.name())}helpGroup(t){return this.helpGroupHeading=t,this}is(t){return this.short===t||this.long===t}isBoolean(){return!this.required&&!this.optional&&!this.negate}},ta=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 cf(e){return e.split("-").reduce((t,n)=>t+n[0].toUpperCase()+n.slice(1))}function Cb(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 s=o[0],a=`option creation failed due to '${s}' in option flags '${e}'`;throw/^-[^-][^-]/.test(s)?new Error(`${a}
7
7
  - a short flag is a single dash and a single character
8
8
  - either use a single dash and a single character (for a short flag)
9
- - or use a double dash for a long option (and can have two, like '--ws, --workspace')`):i.test(a)?new Error(`${s}
10
- - too many short flags`):r.test(a)?new Error(`${s}
11
- - too many long flags`):new Error(`${s}
12
- - 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}}za.Option=Fa;za.DualOptions=Oa});var km=ot(wm=>{function iy(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 oy(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=iy(e,a),u=Math.max(e.length,a.length);(u-s)/u>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?`
9
+ - or use a double dash for a long option (and can have two, like '--ws, --workspace')`):i.test(s)?new Error(`${a}
10
+ - too many short flags`):r.test(s)?new Error(`${a}
11
+ - too many long flags`):new Error(`${a}
12
+ - 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}}ra.Option=ea;ra.DualOptions=ta});var df=ut(lf=>{function Ib(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 Eb(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(s=>s.slice(2)));let i=[],r=3,o=.4;return t.forEach(s=>{if(s.length<=1)return;let a=Ib(e,s),u=Math.max(e.length,s.length);(u-a)/u>o&&(a<r?(r=a,i=[s]):a===r&&i.push(s))}),i.sort((s,a)=>s.localeCompare(a)),n&&(i=i.map(s=>`--${s}`)),i.length>1?`
13
13
  (Did you mean one of ${i.join(", ")}?)`:i.length===1?`
14
- (Did you mean ${i[0]}?)`:""}wm.suggestSimilar=oy});var Em=ot(Na=>{var ay=require("node:events").EventEmitter,Aa=require("node:child_process"),at=require("node:path"),Mn=require("node:fs"),Z=require("node:process"),{Argument:sy,humanReadableArgName:uy}=Ln(),{CommanderError:Ta}=Ur(),{Help:cy,stripColor:ly}=Ea(),{Option:Cm,DualOptions:dy}=Pa(),{suggestSimilar:Im}=km(),ja=class e extends ay{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=>Z.stdout.write(n),writeErr:n=>Z.stderr.write(n),outputError:(n,i)=>i(n),getOutHelpWidth:()=>Z.stdout.isTTY?Z.stdout.columns:void 0,getErrHelpWidth:()=>Z.stderr.isTTY?Z.stderr.columns:void 0,getOutHasColors:()=>Ua()??(Z.stdout.isTTY&&Z.stdout.hasColors?.()),getErrHasColors:()=>Ua()??(Z.stderr.isTTY&&Z.stderr.hasColors?.()),stripColor:n=>ly(n)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(t){return this._outputConfiguration=t._outputConfiguration,this._helpOption=t._helpOption,this._helpCommand=t._helpCommand,this._helpConfiguration=t._helpConfiguration,this._exitCallback=t._exitCallback,this._storeOptionsAsProperties=t._storeOptionsAsProperties,this._combineFlagAndOptionalValue=t._combineFlagAndOptionalValue,this._allowExcessArguments=t._allowExcessArguments,this._enablePositionalOptions=t._enablePositionalOptions,this._showHelpAfterError=t._showHelpAfterError,this._showSuggestionAfterError=t._showSuggestionAfterError,this}_getCommandAndAncestors(){let t=[];for(let 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(/([^ ]+) *(.*)/),u=this.createCommand(a);return r&&(u.description(r),u._executableHandler=!0),o.isDefault&&(this._defaultCommandName=u._name),u._hidden=!!(o.noHelp||o.hidden),u._executableFile=o.executableFile||null,s&&u.arguments(s),this._registerCommand(u),u.parent=this,u.copyInheritedSettings(this),r?this:u}createCommand(t){return new e(t)}createHelp(){return Object.assign(new cy,this.configureHelp())}configureHelp(t){return t===void 0?this._helpConfiguration:(this._helpConfiguration=t,this)}configureOutput(t){return t===void 0?this._outputConfiguration:(this._outputConfiguration={...this._outputConfiguration,...t},this)}showHelpAfterError(t=!0){return typeof t!="string"&&(t=!!t),this._showHelpAfterError=t,this}showSuggestionAfterError(t=!0){return this._showSuggestionAfterError=!!t,this}addCommand(t,n){if(!t._name)throw new Error(`Command passed to .addCommand() must have a name
15
- - specify the name in Command constructor or using .name()`);return 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 sy(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?.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,t&&this._defaultCommandGroup&&this._initCommandGroup(this._getHelpCommand()),this;let i=t??"help [command]",[,r,o]=i.match(/([^ ]+) *(.*)/),a=n??"display help for command",s=this.createCommand(r);return s.helpOption(!1),o&&s.arguments(o),a&&s.description(a),this._addImplicitHelpCommand=!0,this._helpCommand=s,(t||n)&&this._initCommandGroup(s),this}addHelpCommand(t,n){return typeof t!="object"?(this.helpCommand(t,n),this):(this._addImplicitHelpCommand=!0,this._helpCommand=t,this._initCommandGroup(t),this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(this._helpCommand===void 0&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(t,n){let i=["preSubcommand","preAction","postAction"];if(!i.includes(t))throw new Error(`Unexpected value for event passed to hook : '${t}'.
16
- Expecting one of '${i.join("', '")}'`);return this._lifeCycleHooks[t]?this._lifeCycleHooks[t].push(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 Ta(t,n,i)),Z.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 Cm(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}'
17
- - already used by option '${n.flags}'`)}this._initOptionGroup(t),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._initCommandGroup(t),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 u=this.getOptionValue(i);o!==null&&t.parseArg?o=this._callParseArg(t,o,u,a):o!==null&&t.variadic&&(o=t._collectValue(o,u)),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 Cm)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=(u,c)=>{let l=s.exec(u);return l?l[0]:c},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){Z.versions?.electron&&(n.from="electron");let r=Z.execArgv??[];(r.includes("-e")||r.includes("--eval")||r.includes("-p")||r.includes("--print"))&&(n.from="eval")}t===void 0&&(t=Z.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":Z.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.
18
- - either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(t,n,i){if(Mn.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
14
+ (Did you mean ${i[0]}?)`:""}lf.suggestSimilar=Eb});var hf=ut(ua=>{var Fb=require("node:events").EventEmitter,ia=require("node:child_process"),ct=require("node:path"),si=require("node:fs"),M=require("node:process"),{Argument:Ob,humanReadableArgName:zb}=oi(),{CommanderError:oa}=Kr(),{Help:Pb,stripColor:Ab}=Qs(),{Option:pf,DualOptions:Tb}=na(),{suggestSimilar:mf}=df(),sa=class e extends Fb{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=>M.stdout.write(n),writeErr:n=>M.stderr.write(n),outputError:(n,i)=>i(n),getOutHelpWidth:()=>M.stdout.isTTY?M.stdout.columns:void 0,getErrHelpWidth:()=>M.stderr.isTTY?M.stderr.columns:void 0,getOutHasColors:()=>aa()??(M.stdout.isTTY&&M.stdout.hasColors?.()),getErrHasColors:()=>aa()??(M.stderr.isTTY&&M.stderr.hasColors?.()),stripColor:n=>Ab(n)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(t){return this._outputConfiguration=t._outputConfiguration,this._helpOption=t._helpOption,this._helpCommand=t._helpCommand,this._helpConfiguration=t._helpConfiguration,this._exitCallback=t._exitCallback,this._storeOptionsAsProperties=t._storeOptionsAsProperties,this._combineFlagAndOptionalValue=t._combineFlagAndOptionalValue,this._allowExcessArguments=t._allowExcessArguments,this._enablePositionalOptions=t._enablePositionalOptions,this._showHelpAfterError=t._showHelpAfterError,this._showSuggestionAfterError=t._showSuggestionAfterError,this}_getCommandAndAncestors(){let t=[];for(let 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[,s,a]=t.match(/([^ ]+) *(.*)/),u=this.createCommand(s);return r&&(u.description(r),u._executableHandler=!0),o.isDefault&&(this._defaultCommandName=u._name),u._hidden=!!(o.noHelp||o.hidden),u._executableFile=o.executableFile||null,a&&u.arguments(a),this._registerCommand(u),u.parent=this,u.copyInheritedSettings(this),r?this:u}createCommand(t){return new e(t)}createHelp(){return Object.assign(new Pb,this.configureHelp())}configureHelp(t){return t===void 0?this._helpConfiguration:(this._helpConfiguration=t,this)}configureOutput(t){return t===void 0?this._outputConfiguration:(this._outputConfiguration={...this._outputConfiguration,...t},this)}showHelpAfterError(t=!0){return typeof t!="string"&&(t=!!t),this._showHelpAfterError=t,this}showSuggestionAfterError(t=!0){return this._showSuggestionAfterError=!!t,this}addCommand(t,n){if(!t._name)throw new Error(`Command passed to .addCommand() must have a name
15
+ - specify the name in Command constructor or using .name()`);return 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 Ob(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?.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,t&&this._defaultCommandGroup&&this._initCommandGroup(this._getHelpCommand()),this;let i=t??"help [command]",[,r,o]=i.match(/([^ ]+) *(.*)/),s=n??"display help for command",a=this.createCommand(r);return a.helpOption(!1),o&&a.arguments(o),s&&a.description(s),this._addImplicitHelpCommand=!0,this._helpCommand=a,(t||n)&&this._initCommandGroup(a),this}addHelpCommand(t,n){return typeof t!="object"?(this.helpCommand(t,n),this):(this._addImplicitHelpCommand=!0,this._helpCommand=t,this._initCommandGroup(t),this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(this._helpCommand===void 0&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(t,n){let i=["preSubcommand","preAction","postAction"];if(!i.includes(t))throw new Error(`Unexpected value for event passed to hook : '${t}'.
16
+ Expecting one of '${i.join("', '")}'`);return this._lifeCycleHooks[t]?this._lifeCycleHooks[t].push(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 oa(t,n,i)),M.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 pf(t,n)}_callParseArg(t,n,i,r){try{return t.parseArg(n,i)}catch(o){if(o.code==="commander.invalidArgument"){let s=`${r} ${o.message}`;this.error(s,{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}'
17
+ - already used by option '${n.flags}'`)}this._initOptionGroup(t),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._initCommandGroup(t),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,s,a)=>{o==null&&t.presetArg!==void 0&&(o=t.presetArg);let u=this.getOptionValue(i);o!==null&&t.parseArg?o=this._callParseArg(t,o,u,s):o!==null&&t.variadic&&(o=t._collectValue(o,u)),o==null&&(t.negate?o=!1:t.isBoolean()||t.optional?o=!0:o=""),this.setOptionValueWithSource(i,o,a)};return this.on("option:"+n,o=>{let s=`error: option '${t.flags}' argument '${o}' is invalid.`;r(o,s,"cli")}),t.envVar&&this.on("optionEnv:"+n,o=>{let s=`error: option '${t.flags}' value '${o}' from env '${t.envVar}' is invalid.`;r(o,s,"env")}),this}_optionEx(t,n,i,r,o){if(typeof n=="object"&&n instanceof pf)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let s=this.createOption(n,i);if(s.makeOptionMandatory(!!t.mandatory),typeof r=="function")s.default(o).argParser(r);else if(r instanceof RegExp){let a=r;r=(u,c)=>{let l=a.exec(u);return l?l[0]:c},s.default(o).argParser(r)}else s.default(r);return this.addOption(s)}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){M.versions?.electron&&(n.from="electron");let r=M.execArgv??[];(r.includes("-e")||r.includes("--eval")||r.includes("-p")||r.includes("--print"))&&(n.from="eval")}t===void 0&&(t=M.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":M.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.
18
+ - either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(t,n,i){if(si.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
19
19
  - if '${i}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
20
20
  - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
21
- - ${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 p=at.resolve(l,d);if(Mn.existsSync(p))return p;if(r.includes(at.extname(d)))return;let f=r.find(g=>Mn.existsSync(`${p}${g}`));if(f)return`${p}${f}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let a=t._executableFile||`${this._name}-${t._name}`,s=this._executableDir||"";if(this._scriptPath){let l;try{l=Mn.realpathSync(this._scriptPath)}catch{l=this._scriptPath}s=at.resolve(at.dirname(l),s)}if(s){let l=o(s,a);if(!l&&!t._executableFile&&this._scriptPath){let d=at.basename(this._scriptPath,at.extname(this._scriptPath));d!==this._name&&(l=o(s,`${d}-${t._name}`))}a=l||a}i=r.includes(at.extname(a));let u;Z.platform!=="win32"?i?(n.unshift(a),n=Sm(Z.execArgv).concat(n),u=Aa.spawn(Z.argv[0],n,{stdio:"inherit"})):u=Aa.spawn(a,n,{stdio:"inherit"}):(this._checkForMissingExecutable(a,s,t._name),n.unshift(a),n=Sm(Z.execArgv).concat(n),u=Aa.spawn(Z.execPath,n,{stdio:"inherit"})),u.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(d=>{Z.on(d,()=>{u.killed===!1&&u.exitCode===null&&u.kill(d)})});let c=this._exitCallback;u.on("close",l=>{l=l??1,c?c(new Ta(l,"commander.executeSubCommandAsync","(close)")):Z.exit(l)}),u.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(!c)Z.exit(1);else{let d=new Ta(1,"commander.executeSubCommandAsync","(error)");d.nestedError=l,c(d)}}),this.runningCommand=u}_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?.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?.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;function o(l){return l.length>1&&l[0]==="-"}let a=l=>/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(l)?!this._getCommandAndAncestors().some(d=>d.options.map(p=>p.short).some(p=>/^-\d$/.test(p))):!1,s=null,u=null,c=0;for(;c<t.length||u;){let l=u??t[c++];if(u=null,l==="--"){r===i&&r.push(l),r.push(...t.slice(c));break}if(s&&(!o(l)||a(l))){this.emit(`option:${s.name()}`,l);continue}if(s=null,o(l)){let d=this._findOption(l);if(d){if(d.required){let p=t[c++];p===void 0&&this.optionMissingArgument(d),this.emit(`option:${d.name()}`,p)}else if(d.optional){let p=null;c<t.length&&(!o(t[c])||a(t[c]))&&(p=t[c++]),this.emit(`option:${d.name()}`,p)}else this.emit(`option:${d.name()}`);s=d.variadic?d:null;continue}}if(l.length>2&&l[0]==="-"&&l[1]!=="-"){let d=this._findOption(`-${l[1]}`);if(d){d.required||d.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${d.name()}`,l.slice(2)):(this.emit(`option:${d.name()}`),u=`-${l.slice(2)}`);continue}}if(/^--[^=]+=/.test(l)){let d=l.indexOf("="),p=this._findOption(l.slice(0,d));if(p&&(p.required||p.optional)){this.emit(`option:${p.name()}`,l.slice(d+1));continue}}if(r===n&&o(l)&&!(this.commands.length===0&&a(l))&&(r=i),(this._enablePositionalOptions||this._passThroughOptions)&&n.length===0&&i.length===0){if(this._findCommand(l)){n.push(l),i.push(...t.slice(c));break}else if(this._getHelpCommand()&&l===this._getHelpCommand().name()){n.push(l,...t.slice(c));break}else if(this._defaultCommandName){i.push(l,...t.slice(c));break}}if(this._passThroughOptions){r.push(l,...t.slice(c));break}r.push(l)}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}
21
+ - ${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 p=ct.resolve(l,d);if(si.existsSync(p))return p;if(r.includes(ct.extname(d)))return;let m=r.find(D=>si.existsSync(`${p}${D}`));if(m)return`${p}${m}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let s=t._executableFile||`${this._name}-${t._name}`,a=this._executableDir||"";if(this._scriptPath){let l;try{l=si.realpathSync(this._scriptPath)}catch{l=this._scriptPath}a=ct.resolve(ct.dirname(l),a)}if(a){let l=o(a,s);if(!l&&!t._executableFile&&this._scriptPath){let d=ct.basename(this._scriptPath,ct.extname(this._scriptPath));d!==this._name&&(l=o(a,`${d}-${t._name}`))}s=l||s}i=r.includes(ct.extname(s));let u;M.platform!=="win32"?i?(n.unshift(s),n=ff(M.execArgv).concat(n),u=ia.spawn(M.argv[0],n,{stdio:"inherit"})):u=ia.spawn(s,n,{stdio:"inherit"}):(this._checkForMissingExecutable(s,a,t._name),n.unshift(s),n=ff(M.execArgv).concat(n),u=ia.spawn(M.execPath,n,{stdio:"inherit"})),u.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(d=>{M.on(d,()=>{u.killed===!1&&u.exitCode===null&&u.kill(d)})});let c=this._exitCallback;u.on("close",l=>{l=l??1,c?c(new oa(l,"commander.executeSubCommandAsync","(close)")):M.exit(l)}),u.on("error",l=>{if(l.code==="ENOENT")this._checkForMissingExecutable(s,a,t._name);else if(l.code==="EACCES")throw new Error(`'${s}' not executable`);if(!c)M.exit(1);else{let d=new oa(1,"commander.executeSubCommandAsync","(error)");d.nestedError=l,c(d)}}),this.runningCommand=u}_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 s=r;if(r!==null&&i.parseArg){let a=`error: command-argument value '${r}' is invalid for argument '${i.name()}'.`;s=this._callParseArg(i,r,o,a)}return s};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((s,a)=>t(i,a,s),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?.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(s=>{r.push({hookedCommand:o,callback:s})})}),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 s;return s=this._chainOrCallHooks(s,"preAction"),s=this._chainOrCall(s,()=>this._actionHandler(this.processedArgs)),this.parent&&(s=this._chainOrCall(s,()=>{this.parent.emit(o,t,n)})),s=this._chainOrCallHooks(s,"postAction"),s}if(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;function o(l){return l.length>1&&l[0]==="-"}let s=l=>/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(l)?!this._getCommandAndAncestors().some(d=>d.options.map(p=>p.short).some(p=>/^-\d$/.test(p))):!1,a=null,u=null,c=0;for(;c<t.length||u;){let l=u??t[c++];if(u=null,l==="--"){r===i&&r.push(l),r.push(...t.slice(c));break}if(a&&(!o(l)||s(l))){this.emit(`option:${a.name()}`,l);continue}if(a=null,o(l)){let d=this._findOption(l);if(d){if(d.required){let p=t[c++];p===void 0&&this.optionMissingArgument(d),this.emit(`option:${d.name()}`,p)}else if(d.optional){let p=null;c<t.length&&(!o(t[c])||s(t[c]))&&(p=t[c++]),this.emit(`option:${d.name()}`,p)}else this.emit(`option:${d.name()}`);a=d.variadic?d:null;continue}}if(l.length>2&&l[0]==="-"&&l[1]!=="-"){let d=this._findOption(`-${l[1]}`);if(d){d.required||d.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${d.name()}`,l.slice(2)):(this.emit(`option:${d.name()}`),u=`-${l.slice(2)}`);continue}}if(/^--[^=]+=/.test(l)){let d=l.indexOf("="),p=this._findOption(l.slice(0,d));if(p&&(p.required||p.optional)){this.emit(`option:${p.name()}`,l.slice(d+1));continue}}if(r===n&&o(l)&&!(this.commands.length===0&&s(l))&&(r=i),(this._enablePositionalOptions||this._passThroughOptions)&&n.length===0&&i.length===0){if(this._findCommand(l)){n.push(l),i.push(...t.slice(c));break}else if(this._getHelpCommand()&&l===this._getHelpCommand().name()){n.push(l,...t.slice(c));break}else if(this._defaultCommandName){i.push(l,...t.slice(c));break}}if(this._passThroughOptions){r.push(l,...t.slice(c));break}r.push(l)}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}
22
22
  `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
23
23
  `):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
24
- `),this.outputHelp({error:!0}));let i=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 Z.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()}`,Z.env[t.envVar]):this.emit(`optionEnv:${t.name()}`))}})}_parseOptionsImplied(){let t=new dy(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(),u=this.getOptionValue(s),c=this.options.find(d=>d.negate&&s===d.attributeName()),l=this.options.find(d=>!d.negate&&s===d.attributeName());return c&&(c.presetArg===void 0&&u===!1||c.presetArg!==void 0&&u===c.presetArg)?c:l||a},r=a=>{let s=i(a),u=s.attributeName();return this.getOptionValueSource(u)==="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=Im(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=Im(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}
25
- `),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=>uy(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)}helpGroup(t){return t===void 0?this._helpGroupHeading??"":(this._helpGroupHeading=t,this)}commandsGroup(t){return t===void 0?this._defaultCommandGroup??"":(this._defaultCommandGroup=t,this)}optionsGroup(t){return t===void 0?this._defaultOptionGroup??"":(this._defaultOptionGroup=t,this)}_initOptionGroup(t){this._defaultOptionGroup&&!t.helpGroupHeading&&t.helpGroup(this._defaultOptionGroup)}_initCommandGroup(t){this._defaultCommandGroup&&!t.helpGroup()&&t.helpGroup(this._defaultCommandGroup)}nameFromFilename(t){return this._name=at.basename(t,at.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===null&&(this._helpOption=void 0),this._defaultOptionGroup&&this._initOptionGroup(this._getHelpOption())):this._helpOption=null,this):(this._helpOption=this.createOption(t??"-h, --help",n??"display help for command"),(t||n)&&this._initOptionGroup(this._helpOption),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(t){return this._helpOption=t,this._initOptionGroup(t),this}help(t){this.outputHelp(t);let n=Number(Z.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.
26
- 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}
27
- `)}),this}_outputHelpIfRequested(t){let n=this._getHelpOption();n&&t.find(r=>n.is(r))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function Sm(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 Ua(){if(Z.env.NO_COLOR||Z.env.FORCE_COLOR==="0"||Z.env.FORCE_COLOR==="false")return!1;if(Z.env.FORCE_COLOR||Z.env.CLICOLOR_FORCE!==void 0)return!0}Na.Command=ja;Na.useColor=Ua});var Pm=ot(Ue=>{var{Argument:Fm}=Ln(),{Command:Ra}=Em(),{CommanderError:py,InvalidArgumentError:Om}=Ur(),{Help:my}=Ea(),{Option:zm}=Pa();Ue.program=new Ra;Ue.createCommand=e=>new Ra(e);Ue.createOption=(e,t)=>new zm(e,t);Ue.createArgument=(e,t)=>new Fm(e,t);Ue.Command=Ra;Ue.Option=zm;Ue.Argument=Fm;Ue.Help=my;Ue.CommanderError=py;Ue.InvalidArgumentError=Om;Ue.InvalidOptionArgumentError=Om});var Vd=ot((v1,Pg)=>{"use strict";var qd={to(e,t){return t?`\x1B[${t+1};${e+1}H`:`\x1B[${e+1}G`},move(e,t){let n="";return e<0?n+=`\x1B[${-e}D`:e>0&&(n+=`\x1B[${e}C`),t<0?n+=`\x1B[${-t}A`:t>0&&(n+=`\x1B[${t}B`),n},up:(e=1)=>`\x1B[${e}A`,down:(e=1)=>`\x1B[${e}B`,forward:(e=1)=>`\x1B[${e}C`,backward:(e=1)=>`\x1B[${e}D`,nextLine:(e=1)=>"\x1B[E".repeat(e),prevLine:(e=1)=>"\x1B[F".repeat(e),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},p$={up:(e=1)=>"\x1B[S".repeat(e),down:(e=1)=>"\x1B[T".repeat(e)},m$={screen:"\x1B[2J",up:(e=1)=>"\x1B[1J".repeat(e),down:(e=1)=>"\x1B[J".repeat(e),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines(e){let t="";for(let n=0;n<e;n++)t+=this.line+(n<e-1?qd.up():"");return e&&(t+=qd.left),t}};Pg.exports={cursor:qd,scroll:p$,erase:m$,beep:"\x07"}});var Gd=ot((D1,Wd)=>{var Ao=process||{},Ag=Ao.argv||[],Po=Ao.env||{},f$=!(Po.NO_COLOR||Ag.includes("--no-color"))&&(!!Po.FORCE_COLOR||Ag.includes("--color")||Ao.platform==="win32"||(Ao.stdout||{}).isTTY&&Po.TERM!=="dumb"||!!Po.CI),h$=(e,t,n=e)=>i=>{let r=""+i,o=r.indexOf(t,e.length);return~o?e+g$(r,t,n,o)+t:e+r+t},g$=(e,t,n,i)=>{let r="",o=0;do r+=e.substring(o,i)+n,o=i+t.length,i=e.indexOf(t,o);while(~i);return r+e.substring(o)},Tg=(e=f$)=>{let t=e?h$:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};Wd.exports=Tg();Wd.exports.createColors=Tg});var Am=ce(Pm(),1),{program:uw,createCommand:cw,createArgument:lw,createOption:dw,CommanderError:pw,InvalidArgumentError:mw,InvalidOptionArgumentError:fw,Command:z,Argument:hw,Option:gw,Help:vw}=Am.default;var RD=require("node:fs"),va=require("node:path"),BD=require("node:url");var Cg=require("node:http"),Dn=require("node:crypto");var lt=require("node:fs"),Oo=require("node:path"),kg=require("node:os");var T={};Xe(T,{$brand:()=>qn,$input:()=>oc,$output:()=>ic,NEVER:()=>Ba,TimePrecision:()=>cc,ZodAny:()=>Xl,ZodArray:()=>rd,ZodBase64:()=>Do,ZodBase64URL:()=>yo,ZodBigInt:()=>_r,ZodBigIntFormat:()=>_o,ZodBoolean:()=>$r,ZodCIDRv4:()=>go,ZodCIDRv6:()=>vo,ZodCUID:()=>uo,ZodCUID2:()=>co,ZodCatch:()=>wd,ZodCodec:()=>Fo,ZodCustom:()=>gn,ZodCustomStringFormat:()=>yr,ZodDate:()=>dn,ZodDefault:()=>Dd,ZodDiscriminatedUnion:()=>id,ZodE164:()=>bo,ZodEmail:()=>oo,ZodEmoji:()=>ao,ZodEnum:()=>vr,ZodError:()=>Z0,ZodExactOptional:()=>hd,ZodFile:()=>md,ZodFirstPartyTypeKind:()=>jd,ZodFunction:()=>Pd,ZodGUID:()=>an,ZodIPv4:()=>fo,ZodIPv6:()=>ho,ZodISODate:()=>Qi,ZodISODateTime:()=>Xi,ZodISODuration:()=>to,ZodISOTime:()=>eo,ZodIntersection:()=>od,ZodIssueCode:()=>M0,ZodJWT:()=>$o,ZodKSUID:()=>mo,ZodLazy:()=>Fd,ZodLiteral:()=>pd,ZodMAC:()=>Vl,ZodMap:()=>ld,ZodNaN:()=>Cd,ZodNanoID:()=>so,ZodNever:()=>ed,ZodNonOptional:()=>So,ZodNull:()=>Hl,ZodNullable:()=>vd,ZodNumber:()=>br,ZodNumberFormat:()=>jt,ZodObject:()=>mn,ZodOptional:()=>Io,ZodPipe:()=>Eo,ZodPrefault:()=>bd,ZodPromise:()=>zd,ZodReadonly:()=>Id,ZodRealError:()=>xe,ZodRecord:()=>hn,ZodSet:()=>dd,ZodString:()=>Dr,ZodStringFormat:()=>J,ZodSuccess:()=>xd,ZodSymbol:()=>Jl,ZodTemplateLiteral:()=>Ed,ZodTransform:()=>fd,ZodTuple:()=>sd,ZodType:()=>A,ZodULID:()=>lo,ZodURL:()=>ln,ZodUUID:()=>rt,ZodUndefined:()=>Kl,ZodUnion:()=>fn,ZodUnknown:()=>Ql,ZodVoid:()=>td,ZodXID:()=>po,ZodXor:()=>nd,_ZodString:()=>io,_default:()=>yd,_function:()=>fg,any:()=>Wh,array:()=>pn,base64:()=>Eh,base64url:()=>Fh,bigint:()=>Zh,boolean:()=>Gl,catch:()=>kd,check:()=>hg,cidrv4:()=>Ih,cidrv6:()=>Sh,clone:()=>ve,codec:()=>dg,coerce:()=>Ud,config:()=>ie,core:()=>ct,cuid:()=>yh,cuid2:()=>bh,custom:()=>gg,date:()=>Jh,decode:()=>Nl,decodeAsync:()=>Bl,describe:()=>vg,discriminatedUnion:()=>eg,e164:()=>Oh,email:()=>ch,emoji:()=>vh,encode:()=>Ul,encodeAsync:()=>Rl,endsWith:()=>sr,enum:()=>ko,exactOptional:()=>gd,file:()=>sg,flattenError:()=>Wr,float32:()=>Uh,float64:()=>Nh,formatError:()=>Gr,fromJSONSchema:()=>wg,function:()=>fg,getErrorMap:()=>V0,globalRegistry:()=>de,gt:()=>et,gte:()=>De,guid:()=>lh,hash:()=>jh,hex:()=>Th,hostname:()=>Ah,httpUrl:()=>gh,includes:()=>or,instanceof:()=>yg,int:()=>no,int32:()=>Rh,int64:()=>Lh,intersection:()=>ad,ipv4:()=>wh,ipv6:()=>Ch,iso:()=>gr,json:()=>$g,jwt:()=>zh,keyof:()=>Kh,ksuid:()=>xh,lazy:()=>Od,length:()=>At,literal:()=>ag,locales:()=>tn,looseObject:()=>Xh,looseRecord:()=>rg,lowercase:()=>nr,lt:()=>Qe,lte:()=>Fe,mac:()=>kh,map:()=>ng,maxLength:()=>Pt,maxSize:()=>$t,meta:()=>Dg,mime:()=>ur,minLength:()=>ut,minSize:()=>tt,multipleOf:()=>bt,nan:()=>lg,nanoid:()=>Dh,nativeEnum:()=>og,negative:()=>Li,never:()=>xo,nonnegative:()=>qi,nonoptional:()=>_d,nonpositive:()=>Mi,normalize:()=>cr,null:()=>Yl,nullable:()=>un,nullish:()=>ug,number:()=>Wl,object:()=>Hh,optional:()=>sn,overwrite:()=>qe,parse:()=>Pl,parseAsync:()=>Al,partialRecord:()=>tg,pipe:()=>cn,positive:()=>Zi,prefault:()=>$d,preprocess:()=>_g,prettifyError:()=>Xa,promise:()=>mg,property:()=>Vi,readonly:()=>Sd,record:()=>cd,refine:()=>Ad,regex:()=>rr,regexes:()=>Re,registry:()=>bi,safeDecode:()=>Ll,safeDecodeAsync:()=>ql,safeEncode:()=>Zl,safeEncodeAsync:()=>Ml,safeParse:()=>Tl,safeParseAsync:()=>jl,set:()=>ig,setErrorMap:()=>q0,size:()=>zt,slugify:()=>mr,startsWith:()=>ar,strictObject:()=>Yh,string:()=>ro,stringFormat:()=>Ph,stringbool:()=>bg,success:()=>cg,superRefine:()=>Td,symbol:()=>qh,templateLiteral:()=>pg,toJSONSchema:()=>Ki,toLowerCase:()=>dr,toUpperCase:()=>pr,transform:()=>Co,treeifyError:()=>Ya,trim:()=>lr,tuple:()=>ud,uint32:()=>Bh,uint64:()=>Mh,ulid:()=>$h,undefined:()=>Vh,union:()=>wo,unknown:()=>Tt,uppercase:()=>ir,url:()=>hh,util:()=>$,uuid:()=>dh,uuidv4:()=>ph,uuidv6:()=>mh,uuidv7:()=>fh,void:()=>Gh,xid:()=>_h,xor:()=>Qh});var ct={};Xe(ct,{$ZodAny:()=>Cu,$ZodArray:()=>Ou,$ZodAsyncError:()=>Me,$ZodBase64:()=>gu,$ZodBase64URL:()=>vu,$ZodBigInt:()=>mi,$ZodBigIntFormat:()=>_u,$ZodBoolean:()=>Yr,$ZodCIDRv4:()=>mu,$ZodCIDRv6:()=>fu,$ZodCUID:()=>tu,$ZodCUID2:()=>ru,$ZodCatch:()=>Ku,$ZodCheck:()=>Y,$ZodCheckBigIntFormat:()=>Os,$ZodCheckEndsWith:()=>Ms,$ZodCheckGreaterThan:()=>ai,$ZodCheckIncludes:()=>Zs,$ZodCheckLengthEquals:()=>Us,$ZodCheckLessThan:()=>oi,$ZodCheckLowerCase:()=>Rs,$ZodCheckMaxLength:()=>Ts,$ZodCheckMaxSize:()=>zs,$ZodCheckMimeType:()=>Vs,$ZodCheckMinLength:()=>js,$ZodCheckMinSize:()=>Ps,$ZodCheckMultipleOf:()=>Es,$ZodCheckNumberFormat:()=>Fs,$ZodCheckOverwrite:()=>Ws,$ZodCheckProperty:()=>qs,$ZodCheckRegex:()=>Ns,$ZodCheckSizeEquals:()=>As,$ZodCheckStartsWith:()=>Ls,$ZodCheckStringFormat:()=>er,$ZodCheckUpperCase:()=>Bs,$ZodCodec:()=>Qr,$ZodCustom:()=>nc,$ZodCustomStringFormat:()=>bu,$ZodDate:()=>Fu,$ZodDefault:()=>Vu,$ZodDiscriminatedUnion:()=>Au,$ZodE164:()=>Du,$ZodEmail:()=>Ys,$ZodEmoji:()=>Qs,$ZodEncodeError:()=>ht,$ZodEnum:()=>Ru,$ZodError:()=>Vr,$ZodExactOptional:()=>Mu,$ZodFile:()=>Zu,$ZodFunction:()=>ec,$ZodGUID:()=>Ks,$ZodIPv4:()=>lu,$ZodIPv6:()=>du,$ZodISODate:()=>su,$ZodISODateTime:()=>au,$ZodISODuration:()=>cu,$ZodISOTime:()=>uu,$ZodIntersection:()=>Tu,$ZodJWT:()=>yu,$ZodKSUID:()=>ou,$ZodLazy:()=>rc,$ZodLiteral:()=>Bu,$ZodMAC:()=>pu,$ZodMap:()=>Uu,$ZodNaN:()=>Hu,$ZodNanoID:()=>eu,$ZodNever:()=>Su,$ZodNonOptional:()=>Gu,$ZodNull:()=>ku,$ZodNullable:()=>qu,$ZodNumber:()=>pi,$ZodNumberFormat:()=>$u,$ZodObject:()=>uf,$ZodObjectJIT:()=>zu,$ZodOptional:()=>hi,$ZodPipe:()=>Yu,$ZodPrefault:()=>Wu,$ZodPromise:()=>tc,$ZodReadonly:()=>Xu,$ZodRealError:()=>_e,$ZodRecord:()=>ju,$ZodRegistry:()=>yi,$ZodSet:()=>Nu,$ZodString:()=>Ot,$ZodStringFormat:()=>G,$ZodSuccess:()=>Ju,$ZodSymbol:()=>xu,$ZodTemplateLiteral:()=>Qu,$ZodTransform:()=>Lu,$ZodTuple:()=>fi,$ZodType:()=>F,$ZodULID:()=>nu,$ZodURL:()=>Xs,$ZodUUID:()=>Hs,$ZodUndefined:()=>wu,$ZodUnion:()=>Xr,$ZodUnknown:()=>Iu,$ZodVoid:()=>Eu,$ZodXID:()=>iu,$ZodXor:()=>Pu,$brand:()=>qn,$constructor:()=>m,$input:()=>oc,$output:()=>ic,Doc:()=>Hr,JSONSchema:()=>sh,JSONSchemaGenerator:()=>Hi,NEVER:()=>Ba,TimePrecision:()=>cc,_any:()=>Fc,_array:()=>Uc,_base64:()=>Ui,_base64url:()=>Ni,_bigint:()=>xc,_boolean:()=>$c,_catch:()=>P0,_check:()=>ah,_cidrv4:()=>Ti,_cidrv6:()=>ji,_coercedBigint:()=>wc,_coercedBoolean:()=>_c,_coercedDate:()=>Tc,_coercedNumber:()=>hc,_coercedString:()=>sc,_cuid:()=>Si,_cuid2:()=>Ei,_custom:()=>Rc,_date:()=>Ac,_decode:()=>Hn,_decodeAsync:()=>Xn,_default:()=>F0,_discriminatedUnion:()=>D0,_e164:()=>Ri,_email:()=>$i,_emoji:()=>Ci,_encode:()=>Kn,_encodeAsync:()=>Yn,_endsWith:()=>sr,_enum:()=>w0,_file:()=>Nc,_float32:()=>vc,_float64:()=>Dc,_gt:()=>et,_gte:()=>De,_guid:()=>rn,_includes:()=>or,_int:()=>gc,_int32:()=>yc,_int64:()=>kc,_intersection:()=>y0,_ipv4:()=>Pi,_ipv6:()=>Ai,_isoDate:()=>dc,_isoDateTime:()=>lc,_isoDuration:()=>mc,_isoTime:()=>pc,_jwt:()=>Bi,_ksuid:()=>zi,_lazy:()=>U0,_length:()=>At,_literal:()=>C0,_lowercase:()=>nr,_lt:()=>Qe,_lte:()=>Fe,_mac:()=>uc,_map:()=>_0,_max:()=>Fe,_maxLength:()=>Pt,_maxSize:()=>$t,_mime:()=>ur,_min:()=>De,_minLength:()=>ut,_minSize:()=>tt,_multipleOf:()=>bt,_nan:()=>jc,_nanoid:()=>Ii,_nativeEnum:()=>k0,_negative:()=>Li,_never:()=>zc,_nonnegative:()=>qi,_nonoptional:()=>O0,_nonpositive:()=>Mi,_normalize:()=>cr,_null:()=>Ec,_nullable:()=>E0,_number:()=>fc,_optional:()=>S0,_overwrite:()=>qe,_parse:()=>Ht,_parseAsync:()=>Yt,_pipe:()=>A0,_positive:()=>Zi,_promise:()=>N0,_property:()=>Vi,_readonly:()=>T0,_record:()=>$0,_refine:()=>Bc,_regex:()=>rr,_safeDecode:()=>ei,_safeDecodeAsync:()=>ri,_safeEncode:()=>Qn,_safeEncodeAsync:()=>ti,_safeParse:()=>Xt,_safeParseAsync:()=>Qt,_set:()=>x0,_size:()=>zt,_slugify:()=>mr,_startsWith:()=>ar,_string:()=>ac,_stringFormat:()=>fr,_stringbool:()=>qc,_success:()=>z0,_superRefine:()=>Zc,_symbol:()=>Ic,_templateLiteral:()=>j0,_toLowerCase:()=>dr,_toUpperCase:()=>pr,_transform:()=>I0,_trim:()=>lr,_tuple:()=>b0,_uint32:()=>bc,_uint64:()=>Cc,_ulid:()=>Fi,_undefined:()=>Sc,_union:()=>g0,_unknown:()=>Oc,_uppercase:()=>ir,_url:()=>nn,_uuid:()=>_i,_uuidv4:()=>xi,_uuidv6:()=>wi,_uuidv7:()=>ki,_void:()=>Pc,_xid:()=>Oi,_xor:()=>v0,clone:()=>ve,config:()=>ie,createStandardJSONSchemaMethod:()=>hr,createToJSONSchemaMethod:()=>Vc,decode:()=>Zy,decodeAsync:()=>My,describe:()=>Lc,encode:()=>By,encodeAsync:()=>Ly,extractDefs:()=>xt,finalize:()=>wt,flattenError:()=>Wr,formatError:()=>Gr,globalConfig:()=>Nr,globalRegistry:()=>de,initializeContext:()=>_t,isValidBase64:()=>hu,isValidBase64URL:()=>nf,isValidJWT:()=>of,locales:()=>tn,meta:()=>Mc,parse:()=>Gn,parseAsync:()=>Jn,prettifyError:()=>Xa,process:()=>V,regexes:()=>Re,registry:()=>bi,safeDecode:()=>Vy,safeDecodeAsync:()=>Gy,safeEncode:()=>qy,safeEncodeAsync:()=>Wy,safeParse:()=>Qa,safeParseAsync:()=>es,toDotPath:()=>Rm,toJSONSchema:()=>Ki,treeifyError:()=>Ya,util:()=>$,version:()=>Gs});var Ba=Object.freeze({status:"aborted"});function m(e,t,n){function i(s,u){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:u,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,u);let c=a.prototype,l=Object.keys(c);for(let d=0;d<l.length;d++){let p=l[d];p in s||(s[p]=c[p].bind(s))}}let r=n?.Parent??Object;class o extends r{}Object.defineProperty(o,"name",{value:e});function a(s){var u;let c=n?.Parent?new o:this;i(c,s),(u=c._zod).deferred??(u.deferred=[]);for(let l of c._zod.deferred)l();return c}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 qn=Symbol("zod_brand"),Me=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},ht=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Nr={};function ie(e){return e&&Object.assign(Nr,e),Nr}var $={};Xe($,{BIGINT_FORMAT_RANGES:()=>Ha,Class:()=>La,NUMBER_FORMAT_RANGES:()=>Ka,aborted:()=>yt,allowsEval:()=>Va,assert:()=>Dy,assertEqual:()=>fy,assertIs:()=>gy,assertNever:()=>vy,assertNotEqual:()=>hy,assignProp:()=>vt,base64ToUint8Array:()=>jm,base64urlToUint8Array:()=>Ty,cached:()=>Jt,captureStackTrace:()=>Wn,cleanEnum:()=>Ay,cleanRegex:()=>Zr,clone:()=>ve,cloneDef:()=>by,createTransparentProxy:()=>Cy,defineLazy:()=>U,esc:()=>Vn,escapeRegex:()=>Ne,extend:()=>Ey,finalizeIssue:()=>$e,floatSafeRemainder:()=>Ma,getElementAtPath:()=>$y,getEnumValues:()=>Br,getLengthableOrigin:()=>qr,getParsedType:()=>ky,getSizableOrigin:()=>Mr,hexToUint8Array:()=>Uy,isObject:()=>Et,isPlainObject:()=>Dt,issue:()=>Kt,joinValues:()=>h,jsonStringifyReplacer:()=>Gt,merge:()=>Oy,mergeDefs:()=>st,normalizeParams:()=>_,nullish:()=>gt,numKeys:()=>wy,objectClone:()=>yy,omit:()=>Sy,optionalKeys:()=>Ja,parsedType:()=>b,partial:()=>zy,pick:()=>Iy,prefixIssues:()=>Ee,primitiveTypes:()=>Ga,promiseAllObject:()=>_y,propertyKeyTypes:()=>Lr,randomString:()=>xy,required:()=>Py,safeExtend:()=>Fy,shallowClone:()=>Wa,slugify:()=>qa,stringifyPrimitive:()=>D,uint8ArrayToBase64:()=>Um,uint8ArrayToBase64url:()=>jy,uint8ArrayToHex:()=>Ny,unwrapMessage:()=>Rr});function fy(e){return e}function hy(e){return e}function gy(e){}function vy(e){throw new Error("Unexpected value in exhaustive check")}function Dy(e){}function Br(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 h(e,t="|"){return e.map(n=>D(n)).join(t)}function Gt(e,t){return typeof t=="bigint"?t.toString():t}function Jt(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 Zr(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Ma(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 u=i.match(/\d?e-(\d?)/);u?.[1]&&(r=Number.parseInt(u[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 Tm=Symbol("evaluating");function U(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==Tm)return i===void 0&&(i=Tm,i=n()),i},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function yy(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function vt(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function st(...e){let t={};for(let n of e){let i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}function by(e){return st(e._zod.def)}function $y(e,t){return t?t.reduce((n,i)=>n?.[i],e):e}function _y(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 xy(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let i=0;i<e;i++)n+=t[Math.floor(Math.random()*t.length)];return n}function Vn(e){return JSON.stringify(e)}function qa(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Wn="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Et(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Va=Jt(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Dt(e){if(Et(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(Et(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Wa(e){return Dt(e)?{...e}:Array.isArray(e)?[...e]:e}function wy(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var ky=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}`)}},Lr=new Set(["string","number","symbol"]),Ga=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ne(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ve(e,t,n){let i=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(i._zod.parent=e),i}function _(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 Cy(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 D(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Ja(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var Ka={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]},Ha={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Iy(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=st(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 vt(this,"shape",a),a},checks:[]});return ve(e,o)}function Sy(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=st(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 vt(this,"shape",a),a},checks:[]});return ve(e,o)}function Ey(e,t){if(!Dt(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=st(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return vt(this,"shape",o),o}});return ve(e,r)}function Fy(e,t){if(!Dt(t))throw new Error("Invalid input to safeExtend: expected a plain object");let n=st(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return vt(this,"shape",i),i}});return ve(e,n)}function Oy(e,t){let n=st(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t._zod.def.shape};return vt(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return ve(e,n)}function zy(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=st(t._zod.def,{get shape(){let s=t._zod.def.shape,u={...s};if(n)for(let c in n){if(!(c in s))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(u[c]=e?new e({type:"optional",innerType:s[c]}):s[c])}else for(let c in s)u[c]=e?new e({type:"optional",innerType:s[c]}):s[c];return vt(this,"shape",u),u},checks:[]});return ve(t,a)}function Py(e,t,n){let i=st(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 vt(this,"shape",o),o}});return ve(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 Ee(e,t){return t.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function Rr(e){return typeof e=="string"?e:e?.message}function $e(e,t,n){let i={...e,path:e.path??[]};if(!e.message){let r=Rr(e.inst?._zod.def?.error?.(e))??Rr(t?.error?.(e))??Rr(n.customError?.(e))??Rr(n.localeError?.(e))??"Invalid input";i.message=r}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function Mr(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function qr(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function b(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function Kt(...e){let[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}function Ay(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function jm(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 Um(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function Ty(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return jm(t+n)}function jy(e){return Um(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Uy(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 Ny(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var La=class{constructor(...t){}};var Nm=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Gt,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Vr=m("$ZodError",Nm),_e=m("$ZodError",Nm,{Parent:Error});function Wr(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 Gr(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 u=o.path[s];s===o.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(t(o))):a[u]=a[u]||{_errors:[]},a=a[u],s++}}};return i(e),n}function Ya(e,t=n=>n.message){let n={errors:[]},i=(r,o=[])=>{var a,s;for(let u of r.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(c=>i({issues:c},u.path));else if(u.code==="invalid_key")i({issues:u.issues},u.path);else if(u.code==="invalid_element")i({issues:u.issues},u.path);else{let c=[...o,...u.path];if(c.length===0){n.errors.push(t(u));continue}let l=n,d=0;for(;d<c.length;){let p=c[d],f=d===c.length-1;typeof p=="string"?(l.properties??(l.properties={}),(a=l.properties)[p]??(a[p]={errors:[]}),l=l.properties[p]):(l.items??(l.items=[]),(s=l.items)[p]??(s[p]={errors:[]}),l=l.items[p]),f&&l.errors.push(t(u)),d++}}};return i(e),n}function Rm(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 Xa(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 ${Rm(i.path)}`);return t.join(`
28
- `)}var Ht=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 Me;if(a.issues.length){let s=new(r?.Err??e)(a.issues.map(u=>$e(u,o,ie())));throw Wn(s,r?.callee),s}return a.value},Gn=Ht(_e),Yt=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(u=>$e(u,o,ie())));throw Wn(s,r?.callee),s}return a.value},Jn=Yt(_e),Xt=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 Me;return o.issues.length?{success:!1,error:new(e??Vr)(o.issues.map(a=>$e(a,r,ie())))}:{success:!0,data:o.value}},Qa=Xt(_e),Qt=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=>$e(a,r,ie())))}:{success:!0,data:o.value}},es=Qt(_e),Kn=e=>(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Ht(e)(t,n,r)},By=Kn(_e),Hn=e=>(t,n,i)=>Ht(e)(t,n,i),Zy=Hn(_e),Yn=e=>async(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Yt(e)(t,n,r)},Ly=Yn(_e),Xn=e=>async(t,n,i)=>Yt(e)(t,n,i),My=Xn(_e),Qn=e=>(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Xt(e)(t,n,r)},qy=Qn(_e),ei=e=>(t,n,i)=>Xt(e)(t,n,i),Vy=ei(_e),ti=e=>async(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Qt(e)(t,n,r)},Wy=ti(_e),ri=e=>async(t,n,i)=>Qt(e)(t,n,i),Gy=ri(_e);var Re={};Xe(Re,{base64:()=>gs,base64url:()=>ni,bigint:()=>_s,boolean:()=>ws,browserEmail:()=>tb,cidrv4:()=>fs,cidrv6:()=>hs,cuid:()=>ts,cuid2:()=>rs,date:()=>Ds,datetime:()=>bs,domain:()=>ib,duration:()=>ss,e164:()=>vs,email:()=>cs,emoji:()=>ls,extendedDuration:()=>Jy,guid:()=>us,hex:()=>ob,hostname:()=>nb,html5Email:()=>Xy,idnEmail:()=>eb,integer:()=>xs,ipv4:()=>ds,ipv6:()=>ps,ksuid:()=>os,lowercase:()=>Is,mac:()=>ms,md5_base64:()=>sb,md5_base64url:()=>ub,md5_hex:()=>ab,nanoid:()=>as,null:()=>ks,number:()=>ii,rfc5322Email:()=>Qy,sha1_base64:()=>lb,sha1_base64url:()=>db,sha1_hex:()=>cb,sha256_base64:()=>mb,sha256_base64url:()=>fb,sha256_hex:()=>pb,sha384_base64:()=>gb,sha384_base64url:()=>vb,sha384_hex:()=>hb,sha512_base64:()=>yb,sha512_base64url:()=>bb,sha512_hex:()=>Db,string:()=>$s,time:()=>ys,ulid:()=>ns,undefined:()=>Cs,unicodeEmail:()=>Bm,uppercase:()=>Ss,uuid:()=>Ft,uuid4:()=>Ky,uuid6:()=>Hy,uuid7:()=>Yy,xid:()=>is});var ts=/^[cC][^\s-]{8,}$/,rs=/^[0-9a-z]+$/,ns=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,is=/^[0-9a-vA-V]{20}$/,os=/^[A-Za-z0-9]{27}$/,as=/^[a-zA-Z0-9_-]{21}$/,ss=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Jy=/^[-+]?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)?)??$/,us=/^([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})$/,Ft=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)$/,Ky=Ft(4),Hy=Ft(6),Yy=Ft(7),cs=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Xy=/^[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])?)*$/,Qy=/^(([^<>()\[\]\\.,;:\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,}))$/,Bm=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,eb=Bm,tb=/^[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])?)*$/,rb="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function ls(){return new RegExp(rb,"u")}var ds=/^(?:(?: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])$/,ps=/^(([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}|:))$/,ms=e=>{let t=Ne(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},fs=/^((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])$/,hs=/^(([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])$/,gs=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ni=/^[A-Za-z0-9_-]*$/,nb=/^(?=.{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])?)*\.?$/,ib=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,vs=/^\+[1-9]\d{6,14}$/,Zm="(?:(?:\\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])))",Ds=new RegExp(`^${Zm}$`);function Lm(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 ys(e){return new RegExp(`^${Lm(e)}$`)}function bs(e){let t=Lm({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(`^${Zm}T(?:${i})$`)}var $s=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},_s=/^-?\d+n?$/,xs=/^-?\d+$/,ii=/^-?\d+(?:\.\d+)?$/,ws=/^(?:true|false)$/i,ks=/^null$/i;var Cs=/^undefined$/i;var Is=/^[^A-Z]*$/,Ss=/^[^a-z]*$/,ob=/^[0-9a-fA-F]*$/;function Jr(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Kr(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var ab=/^[0-9a-fA-F]{32}$/,sb=Jr(22,"=="),ub=Kr(22),cb=/^[0-9a-fA-F]{40}$/,lb=Jr(27,"="),db=Kr(27),pb=/^[0-9a-fA-F]{64}$/,mb=Jr(43,"="),fb=Kr(43),hb=/^[0-9a-fA-F]{96}$/,gb=Jr(64,""),vb=Kr(64),Db=/^[0-9a-fA-F]{128}$/,yb=Jr(86,"=="),bb=Kr(86);var Y=m("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),qm={number:"number",bigint:"bigint",object:"date"},oi=m("$ZodCheckLessThan",(e,t)=>{Y.init(e,t);let n=qm[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})}}),ai=m("$ZodCheckGreaterThan",(e,t)=>{Y.init(e,t);let n=qm[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})}}),Es=m("$ZodCheckMultipleOf",(e,t)=>{Y.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):Ma(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})}}),Fs=m("$ZodCheckNumberFormat",(e,t)=>{Y.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),i=n?"int":"number",[r,o]=Ka[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=xs)}),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})}}),Os=m("$ZodCheckBigIntFormat",(e,t)=>{Y.init(e,t);let[n,i]=Ha[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})}}),zs=m("$ZodCheckMaxSize",(e,t)=>{var n;Y.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:Mr(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ps=m("$ZodCheckMinSize",(e,t)=>{var n;Y.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:Mr(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),As=m("$ZodCheckSizeEquals",(e,t)=>{var n;Y.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:Mr(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})}}),Ts=m("$ZodCheckMaxLength",(e,t)=>{var n;Y.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=qr(r);i.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),js=m("$ZodCheckMinLength",(e,t)=>{var n;Y.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=qr(r);i.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Us=m("$ZodCheckLengthEquals",(e,t)=>{var n;Y.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=qr(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})}}),er=m("$ZodCheckStringFormat",(e,t)=>{var n,i;Y.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=()=>{})}),Ns=m("$ZodCheckRegex",(e,t)=>{er.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})}}),Rs=m("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Is),er.init(e,t)}),Bs=m("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Ss),er.init(e,t)}),Zs=m("$ZodCheckIncludes",(e,t)=>{Y.init(e,t);let n=Ne(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})}}),Ls=m("$ZodCheckStartsWith",(e,t)=>{Y.init(e,t);let n=new RegExp(`^${Ne(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})}}),Ms=m("$ZodCheckEndsWith",(e,t)=>{Y.init(e,t);let n=new RegExp(`.*${Ne(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 Mm(e,t,n){e.issues.length&&t.issues.push(...Ee(n,e.issues))}var qs=m("$ZodCheckProperty",(e,t)=>{Y.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=>Mm(r,n,t.property));Mm(i,n,t.property)}}),Vs=m("$ZodCheckMimeType",(e,t)=>{Y.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})}}),Ws=m("$ZodCheckOverwrite",(e,t)=>{Y.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var Hr=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(`
29
- `).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(`
30
- `))}};var Gs={major:4,minor:3,patch:6};var F=m("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Gs;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,u)=>{let c=yt(a),l;for(let d of s){if(d._zod.def.when){if(!d._zod.def.when(a))continue}else if(c)continue;let p=a.issues.length,f=d._zod.check(a);if(f instanceof Promise&&u?.async===!1)throw new Me;if(l||f instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await f,a.issues.length!==p&&(c||(c=yt(a,p)))});else{if(a.issues.length===p)continue;c||(c=yt(a,p))}}return l?l.then(()=>a):a},o=(a,s,u)=>{if(yt(a))return a.aborted=!0,a;let c=r(s,i,u);if(c instanceof Promise){if(u.async===!1)throw new Me;return c.then(l=>e._zod.parse(l,u))}return e._zod.parse(c,u)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){let c=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return c instanceof Promise?c.then(l=>o(l,a,s)):o(c,a,s)}let u=e._zod.parse(a,s);if(u instanceof Promise){if(s.async===!1)throw new Me;return u.then(c=>r(c,i,s))}return r(u,i,s)}}U(e,"~standard",()=>({validate:r=>{try{let o=Qa(e,r);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return es(e,r).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),Ot=m("$ZodString",(e,t)=>{F.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??$s(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}}),G=m("$ZodStringFormat",(e,t)=>{er.init(e,t),Ot.init(e,t)}),Ks=m("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=us),G.init(e,t)}),Hs=m("$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=Ft(i))}else t.pattern??(t.pattern=Ft());G.init(e,t)}),Ys=m("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=cs),G.init(e,t)}),Xs=m("$ZodURL",(e,t)=>{G.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})}}}),Qs=m("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=ls()),G.init(e,t)}),eu=m("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=as),G.init(e,t)}),tu=m("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=ts),G.init(e,t)}),ru=m("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=rs),G.init(e,t)}),nu=m("$ZodULID",(e,t)=>{t.pattern??(t.pattern=ns),G.init(e,t)}),iu=m("$ZodXID",(e,t)=>{t.pattern??(t.pattern=is),G.init(e,t)}),ou=m("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=os),G.init(e,t)}),au=m("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=bs(t)),G.init(e,t)}),su=m("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Ds),G.init(e,t)}),uu=m("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=ys(t)),G.init(e,t)}),cu=m("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=ss),G.init(e,t)}),lu=m("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=ds),G.init(e,t),e._zod.bag.format="ipv4"}),du=m("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=ps),G.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})}}}),pu=m("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=ms(t.delimiter)),G.init(e,t),e._zod.bag.format="mac"}),mu=m("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=fs),G.init(e,t)}),fu=m("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=hs),G.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 hu(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var gu=m("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=gs),G.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{hu(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function nf(e){if(!ni.test(e))return!1;let t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return hu(n)}var vu=m("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ni),G.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{nf(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Du=m("$ZodE164",(e,t)=>{t.pattern??(t.pattern=vs),G.init(e,t)});function of(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 yu=m("$ZodJWT",(e,t)=>{G.init(e,t),e._zod.check=n=>{of(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),bu=m("$ZodCustomStringFormat",(e,t)=>{G.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})}}),pi=m("$ZodNumber",(e,t)=>{F.init(e,t),e._zod.pattern=e._zod.bag.pattern??ii,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}}),$u=m("$ZodNumberFormat",(e,t)=>{Fs.init(e,t),pi.init(e,t)}),Yr=m("$ZodBoolean",(e,t)=>{F.init(e,t),e._zod.pattern=ws,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}}),mi=m("$ZodBigInt",(e,t)=>{F.init(e,t),e._zod.pattern=_s,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}}),_u=m("$ZodBigIntFormat",(e,t)=>{Os.init(e,t),mi.init(e,t)}),xu=m("$ZodSymbol",(e,t)=>{F.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}}),wu=m("$ZodUndefined",(e,t)=>{F.init(e,t),e._zod.pattern=Cs,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}}),ku=m("$ZodNull",(e,t)=>{F.init(e,t),e._zod.pattern=ks,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}}),Cu=m("$ZodAny",(e,t)=>{F.init(e,t),e._zod.parse=n=>n}),Iu=m("$ZodUnknown",(e,t)=>{F.init(e,t),e._zod.parse=n=>n}),Su=m("$ZodNever",(e,t)=>{F.init(e,t),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),Eu=m("$ZodVoid",(e,t)=>{F.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}}),Fu=m("$ZodDate",(e,t)=>{F.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 Wm(e,t,n){e.issues.length&&t.issues.push(...Ee(n,e.issues)),t.value[n]=e.value}var Ou=m("$ZodArray",(e,t)=>{F.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],u=t.element._zod.run({value:s,issues:[]},i);u instanceof Promise?o.push(u.then(c=>Wm(c,n,a))):Wm(u,n,a)}return o.length?Promise.all(o).then(()=>n):n}});function di(e,t,n,i,r){if(e.issues.length){if(r&&!(n in i))return;t.issues.push(...Ee(n,e.issues))}e.value===void 0?n in i&&(t.value[n]=void 0):t.value[n]=e.value}function af(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=Ja(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function sf(e,t,n,i,r,o){let a=[],s=r.keySet,u=r.catchall._zod,c=u.def.type,l=u.optout==="optional";for(let d in t){if(s.has(d))continue;if(c==="never"){a.push(d);continue}let p=u.run({value:t[d],issues:[]},i);p instanceof Promise?e.push(p.then(f=>di(f,n,d,t,l))):di(p,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 uf=m("$ZodObject",(e,t)=>{if(F.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let u={...s};return Object.defineProperty(t,"shape",{value:u}),u}})}let i=Jt(()=>af(t));U(e._zod,"propValues",()=>{let s=t.shape,u={};for(let c in s){let l=s[c]._zod;if(l.values){u[c]??(u[c]=new Set);for(let d of l.values)u[c].add(d)}}return u});let r=Et,o=t.catchall,a;e._zod.parse=(s,u)=>{a??(a=i.value);let c=s.value;if(!r(c))return s.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),s;s.value={};let l=[],d=a.shape;for(let p of a.keys){let f=d[p],g=f._zod.optout==="optional",x=f._zod.run({value:c[p],issues:[]},u);x instanceof Promise?l.push(x.then(S=>di(S,s,p,c,g))):di(x,s,p,c,g)}return o?sf(l,c,s,u,i.value,e):l.length?Promise.all(l).then(()=>s):s}}),zu=m("$ZodObjectJIT",(e,t)=>{uf.init(e,t);let n=e._zod.parse,i=Jt(()=>af(t)),r=p=>{let f=new Hr(["shape","payload","ctx"]),g=i.value,x=O=>{let W=Vn(O);return`shape[${W}]._zod.run({ value: input[${W}], issues: [] }, ctx)`};f.write("const input = payload.value;");let S=Object.create(null),N=0;for(let O of g.keys)S[O]=`key_${N++}`;f.write("const newResult = {};");for(let O of g.keys){let W=S[O],ge=Vn(O),Rn=p[O]?._zod?.optout==="optional";f.write(`const ${W} = ${x(O)};`),Rn?f.write(`
31
- if (${W}.issues.length) {
32
- if (${ge} in input) {
33
- payload.issues = payload.issues.concat(${W}.issues.map(iss => ({
24
+ `),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 M.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()}`,M.env[t.envVar]):this.emit(`optionEnv:${t.name()}`))}})}_parseOptionsImplied(){let t=new Tb(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=s=>{let a=s.attributeName(),u=this.getOptionValue(a),c=this.options.find(d=>d.negate&&a===d.attributeName()),l=this.options.find(d=>!d.negate&&a===d.attributeName());return c&&(c.presetArg===void 0&&u===!1||c.presetArg!==void 0&&u===c.presetArg)?c:l||s},r=s=>{let a=i(s),u=a.attributeName();return this.getOptionValueSource(u)==="env"?`environment variable '${a.envVar}'`:`option '${a.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 s=o.createHelp().visibleOptions(o).filter(a=>a.long).map(a=>a.long);r=r.concat(s),o=o.parent}while(o&&!o._enablePositionalOptions);n=mf(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=mf(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}
25
+ `),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=>zb(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)}helpGroup(t){return t===void 0?this._helpGroupHeading??"":(this._helpGroupHeading=t,this)}commandsGroup(t){return t===void 0?this._defaultCommandGroup??"":(this._defaultCommandGroup=t,this)}optionsGroup(t){return t===void 0?this._defaultOptionGroup??"":(this._defaultOptionGroup=t,this)}_initOptionGroup(t){this._defaultOptionGroup&&!t.helpGroupHeading&&t.helpGroup(this._defaultOptionGroup)}_initCommandGroup(t){this._defaultCommandGroup&&!t.helpGroup()&&t.helpGroup(this._defaultCommandGroup)}nameFromFilename(t){return this._name=ct.basename(t,ct.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=a=>this._outputConfiguration.writeErr(a),r=this._outputConfiguration.getErrHasColors(),o=this._outputConfiguration.getErrHelpWidth()):(i=a=>this._outputConfiguration.writeOut(a),r=this._outputConfiguration.getOutHasColors(),o=this._outputConfiguration.getOutHelpWidth()),{error:n,write:a=>(r||(a=this._outputConfiguration.stripColor(a)),i(a)),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(s=>s.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(s=>s.emit("afterAllHelp",r))}helpOption(t,n){return typeof t=="boolean"?(t?(this._helpOption===null&&(this._helpOption=void 0),this._defaultOptionGroup&&this._initOptionGroup(this._getHelpOption())):this._helpOption=null,this):(this._helpOption=this.createOption(t??"-h, --help",n??"display help for command"),(t||n)&&this._initOptionGroup(this._helpOption),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(t){return this._helpOption=t,this._initOptionGroup(t),this}help(t){this.outputHelp(t);let n=Number(M.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.
26
+ Expecting one of '${i.join("', '")}'`);let r=`${t}Help`;return this.on(r,o=>{let s;typeof n=="function"?s=n({error:o.error,command:o.command}):s=n,s&&o.write(`${s}
27
+ `)}),this}_outputHelpIfRequested(t){let n=this._getHelpOption();n&&t.find(r=>n.is(r))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function ff(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 aa(){if(M.env.NO_COLOR||M.env.FORCE_COLOR==="0"||M.env.FORCE_COLOR==="false")return!1;if(M.env.FORCE_COLOR||M.env.CLICOLOR_FORCE!==void 0)return!0}ua.Command=sa;ua.useColor=aa});var yf=ut(Be=>{var{Argument:gf}=oi(),{Command:ca}=hf(),{CommanderError:jb,InvalidArgumentError:vf}=Kr(),{Help:Ub}=Qs(),{Option:Df}=na();Be.program=new ca;Be.createCommand=e=>new ca(e);Be.createOption=(e,t)=>new Df(e,t);Be.createArgument=(e,t)=>new gf(e,t);Be.Command=ca;Be.Option=Df;Be.Argument=gf;Be.Help=Ub;Be.CommanderError=jb;Be.InvalidArgumentError=vf;Be.InvalidOptionArgumentError=vf});var fp=ut((IC,Dv)=>{"use strict";var mp={to(e,t){return t?`\x1B[${t+1};${e+1}H`:`\x1B[${e+1}G`},move(e,t){let n="";return e<0?n+=`\x1B[${-e}D`:e>0&&(n+=`\x1B[${e}C`),t<0?n+=`\x1B[${-t}A`:t>0&&(n+=`\x1B[${t}B`),n},up:(e=1)=>`\x1B[${e}A`,down:(e=1)=>`\x1B[${e}B`,forward:(e=1)=>`\x1B[${e}C`,backward:(e=1)=>`\x1B[${e}D`,nextLine:(e=1)=>"\x1B[E".repeat(e),prevLine:(e=1)=>"\x1B[F".repeat(e),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},j_={up:(e=1)=>"\x1B[S".repeat(e),down:(e=1)=>"\x1B[T".repeat(e)},U_={screen:"\x1B[2J",up:(e=1)=>"\x1B[1J".repeat(e),down:(e=1)=>"\x1B[J".repeat(e),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines(e){let t="";for(let n=0;n<e;n++)t+=this.line+(n<e-1?mp.up():"");return e&&(t+=mp.left),t}};Dv.exports={cursor:mp,scroll:j_,erase:U_,beep:"\x07"}});var gp=ut((EC,hp)=>{var Yo=process||{},yv=Yo.argv||[],Ho=Yo.env||{},N_=!(Ho.NO_COLOR||yv.includes("--no-color"))&&(!!Ho.FORCE_COLOR||yv.includes("--color")||Yo.platform==="win32"||(Yo.stdout||{}).isTTY&&Ho.TERM!=="dumb"||!!Ho.CI),R_=(e,t,n=e)=>i=>{let r=""+i,o=r.indexOf(t,e.length);return~o?e+B_(r,t,n,o)+t:e+r+t},B_=(e,t,n,i)=>{let r="",o=0;do r+=e.substring(o,i)+n,o=i+t.length,i=e.indexOf(t,o);while(~i);return r+e.substring(o)},bv=(e=N_)=>{let t=e?R_:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};hp.exports=bv();hp.exports.createColors=bv});var bf=ce(yf(),1),{program:yS,createCommand:bS,createArgument:$S,createOption:_S,CommanderError:xS,InvalidArgumentError:wS,InvalidOptionArgumentError:kS,Command:O,Argument:SS,Option:CS,Help:IS}=bf.default;var cb=require("node:fs"),Ls=require("node:path"),lb=require("node:url");var dv=require("node:http"),On=require("node:crypto");var mt=require("node:fs"),Jo=require("node:path"),lv=require("node:os");var S={};tt(S,{$brand:()=>ai,$input:()=>Ec,$output:()=>Ic,NEVER:()=>la,TimePrecision:()=>Pc,ZodAny:()=>_d,ZodArray:()=>Sd,ZodBase64:()=>To,ZodBase64URL:()=>jo,ZodBigInt:()=>zr,ZodBigIntFormat:()=>Ro,ZodBoolean:()=>Or,ZodCIDRv4:()=>Po,ZodCIDRv6:()=>Ao,ZodCUID:()=>So,ZodCUID2:()=>Co,ZodCatch:()=>Jd,ZodCodec:()=>Go,ZodCustom:()=>In,ZodCustomStringFormat:()=>Er,ZodDate:()=>xn,ZodDefault:()=>Zd,ZodDiscriminatedUnion:()=>Id,ZodE164:()=>Uo,ZodEmail:()=>xo,ZodEmoji:()=>wo,ZodEnum:()=>Cr,ZodError:()=>d_,ZodExactOptional:()=>Rd,ZodFile:()=>Ud,ZodFirstPartyTypeKind:()=>sp,ZodFunction:()=>np,ZodGUID:()=>Dn,ZodIPv4:()=>Oo,ZodIPv6:()=>zo,ZodISODate:()=>vo,ZodISODateTime:()=>go,ZodISODuration:()=>yo,ZodISOTime:()=>Do,ZodIntersection:()=>Ed,ZodIssueCode:()=>m_,ZodJWT:()=>No,ZodKSUID:()=>Fo,ZodLazy:()=>ep,ZodLiteral:()=>jd,ZodMAC:()=>hd,ZodMap:()=>Ad,ZodNaN:()=>Hd,ZodNanoID:()=>ko,ZodNever:()=>wd,ZodNonOptional:()=>Vo,ZodNull:()=>bd,ZodNullable:()=>Ld,ZodNumber:()=>Fr,ZodNumberFormat:()=>Vt,ZodObject:()=>kn,ZodOptional:()=>qo,ZodPipe:()=>Wo,ZodPrefault:()=>qd,ZodPromise:()=>rp,ZodReadonly:()=>Yd,ZodRealError:()=>we,ZodRecord:()=>Cn,ZodSet:()=>Td,ZodString:()=>Ir,ZodStringFormat:()=>K,ZodSuccess:()=>Gd,ZodSymbol:()=>Dd,ZodTemplateLiteral:()=>Qd,ZodTransform:()=>Nd,ZodTuple:()=>Od,ZodType:()=>j,ZodULID:()=>Io,ZodURL:()=>_n,ZodUUID:()=>ot,ZodUndefined:()=>yd,ZodUnion:()=>Sn,ZodUnknown:()=>xd,ZodVoid:()=>kd,ZodXID:()=>Eo,ZodXor:()=>Cd,_ZodString:()=>_o,_default:()=>Md,_function:()=>Qg,any:()=>Og,array:()=>wn,base64:()=>fg,base64url:()=>hg,bigint:()=>Sg,boolean:()=>vd,catch:()=>Kd,check:()=>ev,cidrv4:()=>pg,cidrv6:()=>mg,clone:()=>De,codec:()=>Hg,coerce:()=>ap,config:()=>oe,core:()=>pt,cuid:()=>ig,cuid2:()=>og,custom:()=>tv,date:()=>Pg,decode:()=>ud,decodeAsync:()=>ld,describe:()=>rv,discriminatedUnion:()=>Rg,e164:()=>gg,email:()=>Jh,emoji:()=>rg,encode:()=>ad,encodeAsync:()=>cd,endsWith:()=>vr,enum:()=>Zo,exactOptional:()=>Bd,file:()=>Wg,flattenError:()=>on,float32:()=>_g,float64:()=>xg,formatError:()=>sn,fromJSONSchema:()=>cv,function:()=>Qg,getErrorMap:()=>h_,globalRegistry:()=>pe,gt:()=>nt,gte:()=>ye,guid:()=>Kh,hash:()=>$g,hex:()=>bg,hostname:()=>yg,httpUrl:()=>tg,includes:()=>hr,instanceof:()=>iv,int:()=>$o,int32:()=>wg,int64:()=>Cg,intersection:()=>Fd,ipv4:()=>cg,ipv6:()=>dg,iso:()=>Sr,json:()=>sv,jwt:()=>vg,keyof:()=>Ag,ksuid:()=>ug,lazy:()=>tp,length:()=>Mt,literal:()=>Vg,locales:()=>fn,looseObject:()=>Ug,looseRecord:()=>Lg,lowercase:()=>mr,lt:()=>rt,lte:()=>Oe,mac:()=>lg,map:()=>Zg,maxLength:()=>Zt,maxSize:()=>St,meta:()=>nv,mime:()=>Dr,minLength:()=>dt,minSize:()=>it,multipleOf:()=>kt,nan:()=>Kg,nanoid:()=>ng,nativeEnum:()=>qg,negative:()=>oo,never:()=>Bo,nonnegative:()=>ao,nonoptional:()=>Wd,nonpositive:()=>so,normalize:()=>yr,null:()=>$d,nullable:()=>bn,nullish:()=>Gg,number:()=>gd,object:()=>Tg,optional:()=>yn,overwrite:()=>Ge,parse:()=>nd,parseAsync:()=>id,partialRecord:()=>Bg,pipe:()=>$n,positive:()=>io,prefault:()=>Vd,preprocess:()=>av,prettifyError:()=>_a,promise:()=>Xg,property:()=>uo,readonly:()=>Xd,record:()=>Pd,refine:()=>ip,regex:()=>pr,regexes:()=>Ze,registry:()=>Ui,safeDecode:()=>pd,safeDecodeAsync:()=>fd,safeEncode:()=>dd,safeEncodeAsync:()=>md,safeParse:()=>od,safeParseAsync:()=>sd,set:()=>Mg,setErrorMap:()=>f_,size:()=>Lt,slugify:()=>xr,startsWith:()=>gr,strictObject:()=>jg,string:()=>bo,stringFormat:()=>Dg,stringbool:()=>ov,success:()=>Jg,superRefine:()=>op,symbol:()=>Eg,templateLiteral:()=>Yg,toJSONSchema:()=>mo,toLowerCase:()=>$r,toUpperCase:()=>_r,transform:()=>Mo,treeifyError:()=>$a,trim:()=>br,tuple:()=>zd,uint32:()=>kg,uint64:()=>Ig,ulid:()=>sg,undefined:()=>Fg,union:()=>Lo,unknown:()=>qt,uppercase:()=>fr,url:()=>eg,util:()=>$,uuid:()=>Hh,uuidv4:()=>Yh,uuidv6:()=>Xh,uuidv7:()=>Qh,void:()=>zg,xid:()=>ag,xor:()=>Ng});var pt={};tt(pt,{$ZodAny:()=>Hu,$ZodArray:()=>tc,$ZodAsyncError:()=>We,$ZodBase64:()=>Bu,$ZodBase64URL:()=>Lu,$ZodBigInt:()=>Fi,$ZodBigIntFormat:()=>Wu,$ZodBoolean:()=>ln,$ZodCIDRv4:()=>Uu,$ZodCIDRv6:()=>Nu,$ZodCUID:()=>ku,$ZodCUID2:()=>Su,$ZodCatch:()=>yc,$ZodCheck:()=>X,$ZodCheckBigIntFormat:()=>tu,$ZodCheckEndsWith:()=>mu,$ZodCheckGreaterThan:()=>xi,$ZodCheckIncludes:()=>du,$ZodCheckLengthEquals:()=>au,$ZodCheckLessThan:()=>_i,$ZodCheckLowerCase:()=>cu,$ZodCheckMaxLength:()=>ou,$ZodCheckMaxSize:()=>ru,$ZodCheckMimeType:()=>hu,$ZodCheckMinLength:()=>su,$ZodCheckMinSize:()=>nu,$ZodCheckMultipleOf:()=>Qa,$ZodCheckNumberFormat:()=>eu,$ZodCheckOverwrite:()=>gu,$ZodCheckProperty:()=>fu,$ZodCheckRegex:()=>uu,$ZodCheckSizeEquals:()=>iu,$ZodCheckStartsWith:()=>pu,$ZodCheckStringFormat:()=>lr,$ZodCheckUpperCase:()=>lu,$ZodCodec:()=>pn,$ZodCustom:()=>Cc,$ZodCustomStringFormat:()=>qu,$ZodDate:()=>ec,$ZodDefault:()=>hc,$ZodDiscriminatedUnion:()=>ic,$ZodE164:()=>Zu,$ZodEmail:()=>$u,$ZodEmoji:()=>xu,$ZodEncodeError:()=>bt,$ZodEnum:()=>cc,$ZodError:()=>nn,$ZodExactOptional:()=>mc,$ZodFile:()=>dc,$ZodFunction:()=>wc,$ZodGUID:()=>yu,$ZodIPv4:()=>Au,$ZodIPv6:()=>Tu,$ZodISODate:()=>Ou,$ZodISODateTime:()=>Fu,$ZodISODuration:()=>Pu,$ZodISOTime:()=>zu,$ZodIntersection:()=>oc,$ZodJWT:()=>Mu,$ZodKSUID:()=>Eu,$ZodLazy:()=>Sc,$ZodLiteral:()=>lc,$ZodMAC:()=>ju,$ZodMap:()=>ac,$ZodNaN:()=>bc,$ZodNanoID:()=>wu,$ZodNever:()=>Xu,$ZodNonOptional:()=>vc,$ZodNull:()=>Ku,$ZodNullable:()=>fc,$ZodNumber:()=>Ei,$ZodNumberFormat:()=>Vu,$ZodObject:()=>Gf,$ZodObjectJIT:()=>rc,$ZodOptional:()=>zi,$ZodPipe:()=>$c,$ZodPrefault:()=>gc,$ZodPromise:()=>kc,$ZodReadonly:()=>_c,$ZodRealError:()=>xe,$ZodRecord:()=>sc,$ZodRegistry:()=>ji,$ZodSet:()=>uc,$ZodString:()=>Bt,$ZodStringFormat:()=>J,$ZodSuccess:()=>Dc,$ZodSymbol:()=>Gu,$ZodTemplateLiteral:()=>xc,$ZodTransform:()=>pc,$ZodTuple:()=>Oi,$ZodType:()=>z,$ZodULID:()=>Cu,$ZodURL:()=>_u,$ZodUUID:()=>bu,$ZodUndefined:()=>Ju,$ZodUnion:()=>dn,$ZodUnknown:()=>Yu,$ZodVoid:()=>Qu,$ZodXID:()=>Iu,$ZodXor:()=>nc,$brand:()=>ai,$constructor:()=>f,$input:()=>Ec,$output:()=>Ic,Doc:()=>cn,JSONSchema:()=>Wh,JSONSchemaGenerator:()=>fo,NEVER:()=>la,TimePrecision:()=>Pc,_any:()=>el,_array:()=>al,_base64:()=>eo,_base64url:()=>to,_bigint:()=>Gc,_boolean:()=>Vc,_catch:()=>n_,_check:()=>Vh,_cidrv4:()=>Xi,_cidrv6:()=>Qi,_coercedBigint:()=>Jc,_coercedBoolean:()=>Wc,_coercedDate:()=>ol,_coercedNumber:()=>Rc,_coercedString:()=>Oc,_cuid:()=>Vi,_cuid2:()=>Wi,_custom:()=>cl,_date:()=>il,_decode:()=>mi,_decodeAsync:()=>hi,_default:()=>e_,_discriminatedUnion:()=>Z$,_e164:()=>ro,_email:()=>Ni,_emoji:()=>Mi,_encode:()=>pi,_encodeAsync:()=>fi,_endsWith:()=>vr,_enum:()=>J$,_file:()=>ul,_float32:()=>Lc,_float64:()=>Zc,_gt:()=>nt,_gte:()=>ye,_guid:()=>hn,_includes:()=>hr,_int:()=>Bc,_int32:()=>Mc,_int64:()=>Kc,_intersection:()=>M$,_ipv4:()=>Hi,_ipv6:()=>Yi,_isoDate:()=>Tc,_isoDateTime:()=>Ac,_isoDuration:()=>Uc,_isoTime:()=>jc,_jwt:()=>no,_ksuid:()=>Ki,_lazy:()=>a_,_length:()=>Mt,_literal:()=>H$,_lowercase:()=>mr,_lt:()=>rt,_lte:()=>Oe,_mac:()=>zc,_map:()=>W$,_max:()=>Oe,_maxLength:()=>Zt,_maxSize:()=>St,_mime:()=>Dr,_min:()=>ye,_minLength:()=>dt,_minSize:()=>it,_multipleOf:()=>kt,_nan:()=>sl,_nanoid:()=>qi,_nativeEnum:()=>K$,_negative:()=>oo,_never:()=>rl,_nonnegative:()=>ao,_nonoptional:()=>t_,_nonpositive:()=>so,_normalize:()=>yr,_null:()=>Qc,_nullable:()=>Q$,_number:()=>Nc,_optional:()=>X$,_overwrite:()=>Ge,_parse:()=>sr,_parseAsync:()=>ar,_pipe:()=>i_,_positive:()=>io,_promise:()=>u_,_property:()=>uo,_readonly:()=>o_,_record:()=>V$,_refine:()=>ll,_regex:()=>pr,_safeDecode:()=>vi,_safeDecodeAsync:()=>yi,_safeEncode:()=>gi,_safeEncodeAsync:()=>Di,_safeParse:()=>ur,_safeParseAsync:()=>cr,_set:()=>G$,_size:()=>Lt,_slugify:()=>xr,_startsWith:()=>gr,_string:()=>Fc,_stringFormat:()=>wr,_stringbool:()=>fl,_success:()=>r_,_superRefine:()=>dl,_symbol:()=>Yc,_templateLiteral:()=>s_,_toLowerCase:()=>$r,_toUpperCase:()=>_r,_transform:()=>Y$,_trim:()=>br,_tuple:()=>q$,_uint32:()=>qc,_uint64:()=>Hc,_ulid:()=>Gi,_undefined:()=>Xc,_union:()=>B$,_unknown:()=>tl,_uppercase:()=>fr,_url:()=>gn,_uuid:()=>Ri,_uuidv4:()=>Bi,_uuidv6:()=>Li,_uuidv7:()=>Zi,_void:()=>nl,_xid:()=>Ji,_xor:()=>L$,clone:()=>De,config:()=>oe,createStandardJSONSchemaMethod:()=>kr,createToJSONSchemaMethod:()=>hl,decode:()=>d0,decodeAsync:()=>m0,describe:()=>pl,encode:()=>l0,encodeAsync:()=>p0,extractDefs:()=>It,finalize:()=>Et,flattenError:()=>on,formatError:()=>sn,globalConfig:()=>Hr,globalRegistry:()=>pe,initializeContext:()=>Ct,isValidBase64:()=>Ru,isValidBase64URL:()=>Mf,isValidJWT:()=>qf,locales:()=>fn,meta:()=>ml,parse:()=>li,parseAsync:()=>di,prettifyError:()=>_a,process:()=>V,regexes:()=>Ze,registry:()=>Ui,safeDecode:()=>h0,safeDecodeAsync:()=>v0,safeEncode:()=>f0,safeEncodeAsync:()=>g0,safeParse:()=>xa,safeParseAsync:()=>wa,toDotPath:()=>kf,toJSONSchema:()=>mo,treeifyError:()=>$a,util:()=>$,version:()=>vu});var la=Object.freeze({status:"aborted"});function f(e,t,n){function i(a,u){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:u,constr:s,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,u);let c=s.prototype,l=Object.keys(c);for(let d=0;d<l.length;d++){let p=l[d];p in a||(a[p]=c[p].bind(a))}}let r=n?.Parent??Object;class o extends r{}Object.defineProperty(o,"name",{value:e});function s(a){var u;let c=n?.Parent?new o:this;i(c,a),(u=c._zod).deferred??(u.deferred=[]);for(let l of c._zod.deferred)l();return c}return Object.defineProperty(s,"init",{value:i}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>n?.Parent&&a instanceof n.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}var ai=Symbol("zod_brand"),We=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},bt=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Hr={};function oe(e){return e&&Object.assign(Hr,e),Hr}var $={};tt($,{BIGINT_FORMAT_RANGES:()=>ba,Class:()=>pa,NUMBER_FORMAT_RANGES:()=>ya,aborted:()=>wt,allowsEval:()=>ha,assert:()=>Zb,assertEqual:()=>Nb,assertIs:()=>Bb,assertNever:()=>Lb,assertNotEqual:()=>Rb,assignProp:()=>_t,base64ToUint8Array:()=>_f,base64urlToUint8Array:()=>o0,cached:()=>ir,captureStackTrace:()=>ci,cleanEnum:()=>i0,cleanRegex:()=>Qr,clone:()=>De,cloneDef:()=>qb,createTransparentProxy:()=>Hb,defineLazy:()=>N,esc:()=>ui,escapeRegex:()=>Le,extend:()=>Qb,finalizeIssue:()=>_e,floatSafeRemainder:()=>ma,getElementAtPath:()=>Vb,getEnumValues:()=>Xr,getLengthableOrigin:()=>rn,getParsedType:()=>Kb,getSizableOrigin:()=>tn,hexToUint8Array:()=>a0,isObject:()=>Nt,isPlainObject:()=>xt,issue:()=>or,joinValues:()=>h,jsonStringifyReplacer:()=>nr,merge:()=>t0,mergeDefs:()=>lt,normalizeParams:()=>_,nullish:()=>$t,numKeys:()=>Jb,objectClone:()=>Mb,omit:()=>Xb,optionalKeys:()=>Da,parsedType:()=>b,partial:()=>r0,pick:()=>Yb,prefixIssues:()=>Fe,primitiveTypes:()=>va,promiseAllObject:()=>Wb,propertyKeyTypes:()=>en,randomString:()=>Gb,required:()=>n0,safeExtend:()=>e0,shallowClone:()=>ga,slugify:()=>fa,stringifyPrimitive:()=>y,uint8ArrayToBase64:()=>xf,uint8ArrayToBase64url:()=>s0,uint8ArrayToHex:()=>u0,unwrapMessage:()=>Yr});function Nb(e){return e}function Rb(e){return e}function Bb(e){}function Lb(e){throw new Error("Unexpected value in exhaustive check")}function Zb(e){}function Xr(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 h(e,t="|"){return e.map(n=>y(n)).join(t)}function nr(e,t){return typeof t=="bigint"?t.toString():t}function ir(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function $t(e){return e==null}function Qr(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function ma(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 u=i.match(/\d?e-(\d?)/);u?.[1]&&(r=Number.parseInt(u[1]))}let o=n>r?n:r,s=Number.parseInt(e.toFixed(o).replace(".","")),a=Number.parseInt(t.toFixed(o).replace(".",""));return s%a/10**o}var $f=Symbol("evaluating");function N(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==$f)return i===void 0&&(i=$f,i=n()),i},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function Mb(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function _t(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function lt(...e){let t={};for(let n of e){let i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}function qb(e){return lt(e._zod.def)}function Vb(e,t){return t?t.reduce((n,i)=>n?.[i],e):e}function Wb(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 Gb(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let i=0;i<e;i++)n+=t[Math.floor(Math.random()*t.length)];return n}function ui(e){return JSON.stringify(e)}function fa(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var ci="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Nt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var ha=ir(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function xt(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 ga(e){return xt(e)?{...e}:Array.isArray(e)?[...e]:e}function Jb(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var Kb=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}`)}},en=new Set(["string","number","symbol"]),va=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Le(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function De(e,t,n){let i=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(i._zod.parent=e),i}function _(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 Hb(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 y(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Da(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var ya={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]},ba={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Yb(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=lt(e._zod.def,{get shape(){let s={};for(let a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(s[a]=n.shape[a])}return _t(this,"shape",s),s},checks:[]});return De(e,o)}function Xb(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=lt(e._zod.def,{get shape(){let s={...e._zod.def.shape};for(let a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete s[a]}return _t(this,"shape",s),s},checks:[]});return De(e,o)}function Qb(e,t){if(!xt(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 s in t)if(Object.getOwnPropertyDescriptor(o,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let r=lt(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return _t(this,"shape",o),o}});return De(e,r)}function e0(e,t){if(!xt(t))throw new Error("Invalid input to safeExtend: expected a plain object");let n=lt(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return _t(this,"shape",i),i}});return De(e,n)}function t0(e,t){let n=lt(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t._zod.def.shape};return _t(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return De(e,n)}function r0(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 s=lt(t._zod.def,{get shape(){let a=t._zod.def.shape,u={...a};if(n)for(let c in n){if(!(c in a))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(u[c]=e?new e({type:"optional",innerType:a[c]}):a[c])}else for(let c in a)u[c]=e?new e({type:"optional",innerType:a[c]}):a[c];return _t(this,"shape",u),u},checks:[]});return De(t,s)}function n0(e,t,n){let i=lt(t._zod.def,{get shape(){let r=t._zod.def.shape,o={...r};if(n)for(let s in n){if(!(s in o))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(o[s]=new e({type:"nonoptional",innerType:r[s]}))}else for(let s in r)o[s]=new e({type:"nonoptional",innerType:r[s]});return _t(this,"shape",o),o}});return De(t,i)}function wt(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 Fe(e,t){return t.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function Yr(e){return typeof e=="string"?e:e?.message}function _e(e,t,n){let i={...e,path:e.path??[]};if(!e.message){let r=Yr(e.inst?._zod.def?.error?.(e))??Yr(t?.error?.(e))??Yr(n.customError?.(e))??Yr(n.localeError?.(e))??"Invalid input";i.message=r}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function tn(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function rn(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function b(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function or(...e){let[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}function i0(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function _f(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 xf(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function o0(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return _f(t+n)}function s0(e){return xf(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function a0(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 u0(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var pa=class{constructor(...t){}};var wf=(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,nr,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},nn=f("$ZodError",wf),xe=f("$ZodError",wf,{Parent:Error});function on(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 sn(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(s=>i({issues:s}));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 s=n,a=0;for(;a<o.path.length;){let u=o.path[a];a===o.path.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(t(o))):s[u]=s[u]||{_errors:[]},s=s[u],a++}}};return i(e),n}function $a(e,t=n=>n.message){let n={errors:[]},i=(r,o=[])=>{var s,a;for(let u of r.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(c=>i({issues:c},u.path));else if(u.code==="invalid_key")i({issues:u.issues},u.path);else if(u.code==="invalid_element")i({issues:u.issues},u.path);else{let c=[...o,...u.path];if(c.length===0){n.errors.push(t(u));continue}let l=n,d=0;for(;d<c.length;){let p=c[d],m=d===c.length-1;typeof p=="string"?(l.properties??(l.properties={}),(s=l.properties)[p]??(s[p]={errors:[]}),l=l.properties[p]):(l.items??(l.items=[]),(a=l.items)[p]??(a[p]={errors:[]}),l=l.items[p]),m&&l.errors.push(t(u)),d++}}};return i(e),n}function kf(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 _a(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 ${kf(i.path)}`);return t.join(`
28
+ `)}var sr=e=>(t,n,i,r)=>{let o=i?Object.assign(i,{async:!1}):{async:!1},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new We;if(s.issues.length){let a=new(r?.Err??e)(s.issues.map(u=>_e(u,o,oe())));throw ci(a,r?.callee),a}return s.value},li=sr(xe),ar=e=>async(t,n,i,r)=>{let o=i?Object.assign(i,{async:!0}):{async:!0},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let a=new(r?.Err??e)(s.issues.map(u=>_e(u,o,oe())));throw ci(a,r?.callee),a}return s.value},di=ar(xe),ur=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 We;return o.issues.length?{success:!1,error:new(e??nn)(o.issues.map(s=>_e(s,r,oe())))}:{success:!0,data:o.value}},xa=ur(xe),cr=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(s=>_e(s,r,oe())))}:{success:!0,data:o.value}},wa=cr(xe),pi=e=>(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return sr(e)(t,n,r)},l0=pi(xe),mi=e=>(t,n,i)=>sr(e)(t,n,i),d0=mi(xe),fi=e=>async(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return ar(e)(t,n,r)},p0=fi(xe),hi=e=>async(t,n,i)=>ar(e)(t,n,i),m0=hi(xe),gi=e=>(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return ur(e)(t,n,r)},f0=gi(xe),vi=e=>(t,n,i)=>ur(e)(t,n,i),h0=vi(xe),Di=e=>async(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return cr(e)(t,n,r)},g0=Di(xe),yi=e=>async(t,n,i)=>cr(e)(t,n,i),v0=yi(xe);var Ze={};tt(Ze,{base64:()=>Ba,base64url:()=>bi,bigint:()=>Wa,boolean:()=>Ja,browserEmail:()=>k0,cidrv4:()=>Na,cidrv6:()=>Ra,cuid:()=>ka,cuid2:()=>Sa,date:()=>Za,datetime:()=>qa,domain:()=>I0,duration:()=>Oa,e164:()=>La,email:()=>Pa,emoji:()=>Aa,extendedDuration:()=>D0,guid:()=>za,hex:()=>E0,hostname:()=>C0,html5Email:()=>_0,idnEmail:()=>w0,integer:()=>Ga,ipv4:()=>Ta,ipv6:()=>ja,ksuid:()=>Ea,lowercase:()=>Ya,mac:()=>Ua,md5_base64:()=>O0,md5_base64url:()=>z0,md5_hex:()=>F0,nanoid:()=>Fa,null:()=>Ka,number:()=>$i,rfc5322Email:()=>x0,sha1_base64:()=>A0,sha1_base64url:()=>T0,sha1_hex:()=>P0,sha256_base64:()=>U0,sha256_base64url:()=>N0,sha256_hex:()=>j0,sha384_base64:()=>B0,sha384_base64url:()=>L0,sha384_hex:()=>R0,sha512_base64:()=>M0,sha512_base64url:()=>q0,sha512_hex:()=>Z0,string:()=>Va,time:()=>Ma,ulid:()=>Ca,undefined:()=>Ha,unicodeEmail:()=>Sf,uppercase:()=>Xa,uuid:()=>Rt,uuid4:()=>y0,uuid6:()=>b0,uuid7:()=>$0,xid:()=>Ia});var ka=/^[cC][^\s-]{8,}$/,Sa=/^[0-9a-z]+$/,Ca=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Ia=/^[0-9a-vA-V]{20}$/,Ea=/^[A-Za-z0-9]{27}$/,Fa=/^[a-zA-Z0-9_-]{21}$/,Oa=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,D0=/^[-+]?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)?)??$/,za=/^([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})$/,Rt=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)$/,y0=Rt(4),b0=Rt(6),$0=Rt(7),Pa=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,_0=/^[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])?)*$/,x0=/^(([^<>()\[\]\\.,;:\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,}))$/,Sf=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,w0=Sf,k0=/^[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])?)*$/,S0="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Aa(){return new RegExp(S0,"u")}var Ta=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ja=/^(([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}|:))$/,Ua=e=>{let t=Le(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Na=/^((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])$/,Ra=/^(([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])$/,Ba=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,bi=/^[A-Za-z0-9_-]*$/,C0=/^(?=.{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])?)*\.?$/,I0=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,La=/^\+[1-9]\d{6,14}$/,Cf="(?:(?:\\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])))",Za=new RegExp(`^${Cf}$`);function If(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 Ma(e){return new RegExp(`^${If(e)}$`)}function qa(e){let t=If({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(`^${Cf}T(?:${i})$`)}var Va=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Wa=/^-?\d+n?$/,Ga=/^-?\d+$/,$i=/^-?\d+(?:\.\d+)?$/,Ja=/^(?:true|false)$/i,Ka=/^null$/i;var Ha=/^undefined$/i;var Ya=/^[^A-Z]*$/,Xa=/^[^a-z]*$/,E0=/^[0-9a-fA-F]*$/;function an(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function un(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var F0=/^[0-9a-fA-F]{32}$/,O0=an(22,"=="),z0=un(22),P0=/^[0-9a-fA-F]{40}$/,A0=an(27,"="),T0=un(27),j0=/^[0-9a-fA-F]{64}$/,U0=an(43,"="),N0=un(43),R0=/^[0-9a-fA-F]{96}$/,B0=an(64,""),L0=un(64),Z0=/^[0-9a-fA-F]{128}$/,M0=an(86,"=="),q0=un(86);var X=f("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Ff={number:"number",bigint:"bigint",object:"date"},_i=f("$ZodCheckLessThan",(e,t)=>{X.init(e,t);let n=Ff[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})}}),xi=f("$ZodCheckGreaterThan",(e,t)=>{X.init(e,t);let n=Ff[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})}}),Qa=f("$ZodCheckMultipleOf",(e,t)=>{X.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):ma(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})}}),eu=f("$ZodCheckNumberFormat",(e,t)=>{X.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),i=n?"int":"number",[r,o]=ya[t.format];e._zod.onattach.push(s=>{let a=s._zod.bag;a.format=t.format,a.minimum=r,a.maximum=o,n&&(a.pattern=Ga)}),e._zod.check=s=>{let a=s.value;if(n){if(!Number.isInteger(a)){s.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?s.issues.push({input:a,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}):s.issues.push({input:a,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}}a<r&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),a>o&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),tu=f("$ZodCheckBigIntFormat",(e,t)=>{X.init(e,t);let[n,i]=ba[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})}}),ru=f("$ZodCheckMaxSize",(e,t)=>{var n;X.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!$t(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:tn(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),nu=f("$ZodCheckMinSize",(e,t)=>{var n;X.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!$t(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:tn(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),iu=f("$ZodCheckSizeEquals",(e,t)=>{var n;X.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!$t(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 s=o>t.size;i.issues.push({origin:tn(r),...s?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),ou=f("$ZodCheckMaxLength",(e,t)=>{var n;X.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!$t(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 s=rn(r);i.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),su=f("$ZodCheckMinLength",(e,t)=>{var n;X.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!$t(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 s=rn(r);i.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),au=f("$ZodCheckLengthEquals",(e,t)=>{var n;X.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!$t(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 s=rn(r),a=o>t.length;i.issues.push({origin:s,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),lr=f("$ZodCheckStringFormat",(e,t)=>{var n,i;X.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=()=>{})}),uu=f("$ZodCheckRegex",(e,t)=>{lr.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})}}),cu=f("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Ya),lr.init(e,t)}),lu=f("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Xa),lr.init(e,t)}),du=f("$ZodCheckIncludes",(e,t)=>{X.init(e,t);let n=Le(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})}}),pu=f("$ZodCheckStartsWith",(e,t)=>{X.init(e,t);let n=new RegExp(`^${Le(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})}}),mu=f("$ZodCheckEndsWith",(e,t)=>{X.init(e,t);let n=new RegExp(`.*${Le(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 Ef(e,t,n){e.issues.length&&t.issues.push(...Fe(n,e.issues))}var fu=f("$ZodCheckProperty",(e,t)=>{X.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=>Ef(r,n,t.property));Ef(i,n,t.property)}}),hu=f("$ZodCheckMimeType",(e,t)=>{X.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})}}),gu=f("$ZodCheckOverwrite",(e,t)=>{X.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var cn=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(`
29
+ `).filter(s=>s),r=Math.min(...i.map(s=>s.length-s.trimStart().length)),o=i.map(s=>s.slice(r)).map(s=>" ".repeat(this.indent*2)+s);for(let s of o)this.content.push(s)}compile(){let t=Function,n=this?.args,r=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...n,r.join(`
30
+ `))}};var vu={major:4,minor:3,patch:6};var z=f("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=vu;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=(s,a,u)=>{let c=wt(s),l;for(let d of a){if(d._zod.def.when){if(!d._zod.def.when(s))continue}else if(c)continue;let p=s.issues.length,m=d._zod.check(s);if(m instanceof Promise&&u?.async===!1)throw new We;if(l||m instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await m,s.issues.length!==p&&(c||(c=wt(s,p)))});else{if(s.issues.length===p)continue;c||(c=wt(s,p))}}return l?l.then(()=>s):s},o=(s,a,u)=>{if(wt(s))return s.aborted=!0,s;let c=r(a,i,u);if(c instanceof Promise){if(u.async===!1)throw new We;return c.then(l=>e._zod.parse(l,u))}return e._zod.parse(c,u)};e._zod.run=(s,a)=>{if(a.skipChecks)return e._zod.parse(s,a);if(a.direction==="backward"){let c=e._zod.parse({value:s.value,issues:[]},{...a,skipChecks:!0});return c instanceof Promise?c.then(l=>o(l,s,a)):o(c,s,a)}let u=e._zod.parse(s,a);if(u instanceof Promise){if(a.async===!1)throw new We;return u.then(c=>r(c,i,a))}return r(u,i,a)}}N(e,"~standard",()=>({validate:r=>{try{let o=xa(e,r);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return wa(e,r).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),Bt=f("$ZodString",(e,t)=>{z.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Va(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}}),J=f("$ZodStringFormat",(e,t)=>{lr.init(e,t),Bt.init(e,t)}),yu=f("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=za),J.init(e,t)}),bu=f("$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=Rt(i))}else t.pattern??(t.pattern=Rt());J.init(e,t)}),$u=f("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Pa),J.init(e,t)}),_u=f("$ZodURL",(e,t)=>{J.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})}}}),xu=f("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Aa()),J.init(e,t)}),wu=f("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Fa),J.init(e,t)}),ku=f("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=ka),J.init(e,t)}),Su=f("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Sa),J.init(e,t)}),Cu=f("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Ca),J.init(e,t)}),Iu=f("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Ia),J.init(e,t)}),Eu=f("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Ea),J.init(e,t)}),Fu=f("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=qa(t)),J.init(e,t)}),Ou=f("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Za),J.init(e,t)}),zu=f("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Ma(t)),J.init(e,t)}),Pu=f("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Oa),J.init(e,t)}),Au=f("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Ta),J.init(e,t),e._zod.bag.format="ipv4"}),Tu=f("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=ja),J.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})}}}),ju=f("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Ua(t.delimiter)),J.init(e,t),e._zod.bag.format="mac"}),Uu=f("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Na),J.init(e,t)}),Nu=f("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Ra),J.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 s=Number(o);if(`${s}`!==o)throw new Error;if(s<0||s>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 Ru(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Bu=f("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Ba),J.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Ru(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Mf(e){if(!bi.test(e))return!1;let t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Ru(n)}var Lu=f("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=bi),J.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Mf(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Zu=f("$ZodE164",(e,t)=>{t.pattern??(t.pattern=La),J.init(e,t)});function qf(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 Mu=f("$ZodJWT",(e,t)=>{J.init(e,t),e._zod.check=n=>{qf(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),qu=f("$ZodCustomStringFormat",(e,t)=>{J.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})}}),Ei=f("$ZodNumber",(e,t)=>{z.init(e,t),e._zod.pattern=e._zod.bag.pattern??$i,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}}),Vu=f("$ZodNumberFormat",(e,t)=>{eu.init(e,t),Ei.init(e,t)}),ln=f("$ZodBoolean",(e,t)=>{z.init(e,t),e._zod.pattern=Ja,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}}),Fi=f("$ZodBigInt",(e,t)=>{z.init(e,t),e._zod.pattern=Wa,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}}),Wu=f("$ZodBigIntFormat",(e,t)=>{tu.init(e,t),Fi.init(e,t)}),Gu=f("$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}}),Ju=f("$ZodUndefined",(e,t)=>{z.init(e,t),e._zod.pattern=Ha,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}}),Ku=f("$ZodNull",(e,t)=>{z.init(e,t),e._zod.pattern=Ka,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}}),Hu=f("$ZodAny",(e,t)=>{z.init(e,t),e._zod.parse=n=>n}),Yu=f("$ZodUnknown",(e,t)=>{z.init(e,t),e._zod.parse=n=>n}),Xu=f("$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)}),Qu=f("$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}}),ec=f("$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 zf(e,t,n){e.issues.length&&t.issues.push(...Fe(n,e.issues)),t.value[n]=e.value}var tc=f("$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 s=0;s<r.length;s++){let a=r[s],u=t.element._zod.run({value:a,issues:[]},i);u instanceof Promise?o.push(u.then(c=>zf(c,n,s))):zf(u,n,s)}return o.length?Promise.all(o).then(()=>n):n}});function Ii(e,t,n,i,r){if(e.issues.length){if(r&&!(n in i))return;t.issues.push(...Fe(n,e.issues))}e.value===void 0?n in i&&(t.value[n]=void 0):t.value[n]=e.value}function Vf(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=Da(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Wf(e,t,n,i,r,o){let s=[],a=r.keySet,u=r.catchall._zod,c=u.def.type,l=u.optout==="optional";for(let d in t){if(a.has(d))continue;if(c==="never"){s.push(d);continue}let p=u.run({value:t[d],issues:[]},i);p instanceof Promise?e.push(p.then(m=>Ii(m,n,d,t,l))):Ii(p,n,d,t,l)}return s.length&&n.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}var Gf=f("$ZodObject",(e,t)=>{if(z.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let a=t.shape;Object.defineProperty(t,"shape",{get:()=>{let u={...a};return Object.defineProperty(t,"shape",{value:u}),u}})}let i=ir(()=>Vf(t));N(e._zod,"propValues",()=>{let a=t.shape,u={};for(let c in a){let l=a[c]._zod;if(l.values){u[c]??(u[c]=new Set);for(let d of l.values)u[c].add(d)}}return u});let r=Nt,o=t.catchall,s;e._zod.parse=(a,u)=>{s??(s=i.value);let c=a.value;if(!r(c))return a.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),a;a.value={};let l=[],d=s.shape;for(let p of s.keys){let m=d[p],D=m._zod.optout==="optional",x=m._zod.run({value:c[p],issues:[]},u);x instanceof Promise?l.push(x.then(F=>Ii(F,a,p,c,D))):Ii(x,a,p,c,D)}return o?Wf(l,c,a,u,i.value,e):l.length?Promise.all(l).then(()=>a):a}}),rc=f("$ZodObjectJIT",(e,t)=>{Gf.init(e,t);let n=e._zod.parse,i=ir(()=>Vf(t)),r=p=>{let m=new cn(["shape","payload","ctx"]),D=i.value,x=P=>{let G=ui(P);return`shape[${G}]._zod.run({ value: input[${G}], issues: [] }, ctx)`};m.write("const input = payload.value;");let F=Object.create(null),R=0;for(let P of D.keys)F[P]=`key_${R++}`;m.write("const newResult = {};");for(let P of D.keys){let G=F[P],ve=ui(P),ri=p[P]?._zod?.optout==="optional";m.write(`const ${G} = ${x(P)};`),ri?m.write(`
31
+ if (${G}.issues.length) {
32
+ if (${ve} in input) {
33
+ payload.issues = payload.issues.concat(${G}.issues.map(iss => ({
34
34
  ...iss,
35
- path: iss.path ? [${ge}, ...iss.path] : [${ge}]
35
+ path: iss.path ? [${ve}, ...iss.path] : [${ve}]
36
36
  })));
37
37
  }
38
38
  }
39
39
 
40
- if (${W}.value === undefined) {
41
- if (${ge} in input) {
42
- newResult[${ge}] = undefined;
40
+ if (${G}.value === undefined) {
41
+ if (${ve} in input) {
42
+ newResult[${ve}] = undefined;
43
43
  }
44
44
  } else {
45
- newResult[${ge}] = ${W}.value;
45
+ newResult[${ve}] = ${G}.value;
46
46
  }
47
47
 
48
- `):f.write(`
49
- if (${W}.issues.length) {
50
- payload.issues = payload.issues.concat(${W}.issues.map(iss => ({
48
+ `):m.write(`
49
+ if (${G}.issues.length) {
50
+ payload.issues = payload.issues.concat(${G}.issues.map(iss => ({
51
51
  ...iss,
52
- path: iss.path ? [${ge}, ...iss.path] : [${ge}]
52
+ path: iss.path ? [${ve}, ...iss.path] : [${ve}]
53
53
  })));
54
54
  }
55
55
 
56
- if (${W}.value === undefined) {
57
- if (${ge} in input) {
58
- newResult[${ge}] = undefined;
56
+ if (${G}.value === undefined) {
57
+ if (${ve} in input) {
58
+ newResult[${ve}] = undefined;
59
59
  }
60
60
  } else {
61
- newResult[${ge}] = ${W}.value;
61
+ newResult[${ve}] = ${G}.value;
62
62
  }
63
63
 
64
- `)}f.write("payload.value = newResult;"),f.write("return payload;");let H=f.compile();return(O,W)=>H(p,O,W)},o,a=Et,s=!Nr.jitless,c=s&&Va.value,l=t.catchall,d;e._zod.parse=(p,f)=>{d??(d=i.value);let g=p.value;return a(g)?s&&c&&f?.async===!1&&f.jitless!==!0?(o||(o=r(t.shape)),p=o(p,f),l?sf([],g,p,f,d,e):p):n(p,f):(p.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),p)}});function Gm(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=>$e(a,i,ie())))}),t)}var Xr=m("$ZodUnion",(e,t)=>{F.init(e,t),U(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),U(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),U(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),U(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=>Zr(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 u of t.options){let c=u._zod.run({value:r.value,issues:[]},o);if(c instanceof Promise)s.push(c),a=!0;else{if(c.issues.length===0)return c;s.push(c)}}return a?Promise.all(s).then(u=>Gm(u,r,e,o)):Gm(s,r,e,o)}});function Jm(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=>$e(a,i,ie())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t)}var Pu=m("$ZodXor",(e,t)=>{Xr.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 u of t.options){let c=u._zod.run({value:r.value,issues:[]},o);c instanceof Promise?(s.push(c),a=!0):s.push(c)}return a?Promise.all(s).then(u=>Jm(u,r,e,o)):Jm(s,r,e,o)}}),Au=m("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Xr.init(e,t);let n=e._zod.parse;U(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,u]of Object.entries(a)){r[s]||(r[s]=new Set);for(let c of u)r[s].add(c)}}return r});let i=Jt(()=>{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 u of s){if(o.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);o.set(u,a)}}return o});e._zod.parse=(r,o)=>{let a=r.value;if(!Et(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)}}),Tu=m("$ZodIntersection",(e,t)=>{F.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(([u,c])=>Km(n,u,c)):Km(n,o,a)}});function Js(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Dt(e)&&Dt(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=Js(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=Js(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 Km(e,t,n){let i=new Map,r;for(let s of t.issues)if(s.code==="unrecognized_keys"){r??(r=s);for(let u of s.keys)i.has(u)||i.set(u,{}),i.get(u).l=!0}else e.issues.push(s);for(let s of n.issues)if(s.code==="unrecognized_keys")for(let u of s.keys)i.has(u)||i.set(u,{}),i.get(u).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=Js(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 fi=m("$ZodTuple",(e,t)=>{F.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"),u=s===-1?0:n.length-s;if(!t.rest){let l=o.length>n.length,d=o.length<u-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 c=-1;for(let l of n){if(c++,c>=o.length&&c>=u)continue;let d=l._zod.run({value:o[c],issues:[]},r);d instanceof Promise?a.push(d.then(p=>si(p,i,c))):si(d,i,c)}if(t.rest){let l=o.slice(n.length);for(let d of l){c++;let p=t.rest._zod.run({value:d,issues:[]},r);p instanceof Promise?a.push(p.then(f=>si(f,i,c))):si(p,i,c)}}return a.length?Promise.all(a).then(()=>i):i}});function si(e,t,n){e.issues.length&&t.issues.push(...Ee(n,e.issues)),t.value[n]=e.value}var ju=m("$ZodRecord",(e,t)=>{F.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!Dt(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 c of a)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){s.add(typeof c=="number"?c.toString():c);let l=t.valueType._zod.run({value:r[c],issues:[]},i);l instanceof Promise?o.push(l.then(d=>{d.issues.length&&n.issues.push(...Ee(c,d.issues)),n.value[c]=d.value})):(l.issues.length&&n.issues.push(...Ee(c,l.issues)),n.value[c]=l.value)}let u;for(let c in r)s.has(c)||(u=u??[],u.push(c));u&&u.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:u})}else{n.value={};for(let s of Reflect.ownKeys(r)){if(s==="__proto__")continue;let u=t.keyType._zod.run({value:s,issues:[]},i);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&ii.test(s)&&u.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&&(u=d)}if(u.issues.length){t.mode==="loose"?n.value[s]=r[s]:n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(d=>$e(d,i,ie())),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(...Ee(s,d.issues)),n.value[u.value]=d.value})):(l.issues.length&&n.issues.push(...Ee(s,l.issues)),n.value[u.value]=l.value)}}return o.length?Promise.all(o).then(()=>n):n}}),Uu=m("$ZodMap",(e,t)=>{F.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 u=t.keyType._zod.run({value:a,issues:[]},i),c=t.valueType._zod.run({value:s,issues:[]},i);u instanceof Promise||c instanceof Promise?o.push(Promise.all([u,c]).then(([l,d])=>{Hm(l,d,n,a,r,e,i)})):Hm(u,c,n,a,r,e,i)}return o.length?Promise.all(o).then(()=>n):n}});function Hm(e,t,n,i,r,o,a){e.issues.length&&(Lr.has(typeof i)?n.issues.push(...Ee(i,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:r,inst:o,issues:e.issues.map(s=>$e(s,a,ie()))})),t.issues.length&&(Lr.has(typeof i)?n.issues.push(...Ee(i,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:o,key:i,issues:t.issues.map(s=>$e(s,a,ie()))})),n.value.set(e.value,t.value)}var Nu=m("$ZodSet",(e,t)=>{F.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(u=>Ym(u,n))):Ym(s,n)}return o.length?Promise.all(o).then(()=>n):n}});function Ym(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Ru=m("$ZodEnum",(e,t)=>{F.init(e,t);let n=Br(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(r=>Lr.has(typeof r)).map(r=>typeof r=="string"?Ne(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}}),Bu=m("$ZodLiteral",(e,t)=>{if(F.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"?Ne(i):i?Ne(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}}),Zu=m("$ZodFile",(e,t)=>{F.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}}),Lu=m("$ZodTransform",(e,t)=>{F.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new ht(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 Me;return n.value=r,n}});function Xm(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var hi=m("$ZodOptional",(e,t)=>{F.init(e,t),e._zod.optin="optional",e._zod.optout="optional",U(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),U(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${Zr(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=>Xm(o,n.value)):Xm(r,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,i)}}),Mu=m("$ZodExactOptional",(e,t)=>{hi.init(e,t),U(e._zod,"values",()=>t.innerType._zod.values),U(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,i)=>t.innerType._zod.run(n,i)}),qu=m("$ZodNullable",(e,t)=>{F.init(e,t),U(e._zod,"optin",()=>t.innerType._zod.optin),U(e._zod,"optout",()=>t.innerType._zod.optout),U(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${Zr(n.source)}|null)$`):void 0}),U(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)}),Vu=m("$ZodDefault",(e,t)=>{F.init(e,t),e._zod.optin="optional",U(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=>Qm(o,t)):Qm(r,t)}});function Qm(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Wu=m("$ZodPrefault",(e,t)=>{F.init(e,t),e._zod.optin="optional",U(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))}),Gu=m("$ZodNonOptional",(e,t)=>{F.init(e,t),U(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=>ef(o,e)):ef(r,e)}});function ef(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 Ju=m("$ZodSuccess",(e,t)=>{F.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new ht("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)}}),Ku=m("$ZodCatch",(e,t)=>{F.init(e,t),U(e._zod,"optin",()=>t.innerType._zod.optin),U(e._zod,"optout",()=>t.innerType._zod.optout),U(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=>$e(a,i,ie()))},input:n.value}),n.issues=[]),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(o=>$e(o,i,ie()))},input:n.value}),n.issues=[]),n)}}),Hu=m("$ZodNaN",(e,t)=>{F.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)}),Yu=m("$ZodPipe",(e,t)=>{F.init(e,t),U(e._zod,"values",()=>t.in._zod.values),U(e._zod,"optin",()=>t.in._zod.optin),U(e._zod,"optout",()=>t.out._zod.optout),U(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=>ui(a,t.in,i)):ui(o,t.in,i)}let r=t.in._zod.run(n,i);return r instanceof Promise?r.then(o=>ui(o,t.out,i)):ui(r,t.out,i)}});function ui(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var Qr=m("$ZodCodec",(e,t)=>{F.init(e,t),U(e._zod,"values",()=>t.in._zod.values),U(e._zod,"optin",()=>t.in._zod.optin),U(e._zod,"optout",()=>t.out._zod.optout),U(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=>ci(a,t,i)):ci(o,t,i)}else{let o=t.out._zod.run(n,i);return o instanceof Promise?o.then(a=>ci(a,t,i)):ci(o,t,i)}}});function ci(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=>li(e,o,t.out,n)):li(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(o=>li(e,o,t.in,n)):li(e,r,t.in,n)}}function li(e,t,n,i){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},i)}var Xu=m("$ZodReadonly",(e,t)=>{F.init(e,t),U(e._zod,"propValues",()=>t.innerType._zod.propValues),U(e._zod,"values",()=>t.innerType._zod.values),U(e._zod,"optin",()=>t.innerType?._zod?.optin),U(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(tf):tf(r)}});function tf(e){return e.value=Object.freeze(e.value),e}var Qu=m("$ZodTemplateLiteral",(e,t)=>{F.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||Ga.has(typeof i))n.push(Ne(`${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)}),ec=m("$ZodFunction",(e,t)=>(F.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?Gn(e._def.input,i):i,o=Reflect.apply(n,this,r);return e._def.output?Gn(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 Jn(e._def.input,i):i,o=await Reflect.apply(n,this,r);return e._def.output?await Jn(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 fi({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)),tc=m("$ZodPromise",(e,t)=>{F.init(e,t),e._zod.parse=(n,i)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]},i))}),rc=m("$ZodLazy",(e,t)=>{F.init(e,t),U(e._zod,"innerType",()=>t.getter()),U(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),U(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),U(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),U(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,i)=>e._zod.innerType._zod.run(n,i)}),nc=m("$ZodCustom",(e,t)=>{Y.init(e,t),F.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=>rf(o,n,i,e));rf(r,n,i,e)}});function rf(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(Kt(r))}}var tn={};Xe(tn,{ar:()=>cf,az:()=>lf,be:()=>pf,bg:()=>mf,ca:()=>ff,cs:()=>hf,da:()=>gf,de:()=>vf,en:()=>gi,eo:()=>Df,es:()=>yf,fa:()=>bf,fi:()=>$f,fr:()=>_f,frCA:()=>xf,he:()=>wf,hu:()=>kf,hy:()=>If,id:()=>Sf,is:()=>Ef,it:()=>Ff,ja:()=>Of,ka:()=>zf,kh:()=>Pf,km:()=>vi,ko:()=>Af,lt:()=>jf,mk:()=>Uf,ms:()=>Nf,nl:()=>Rf,no:()=>Bf,ota:()=>Zf,pl:()=>Mf,ps:()=>Lf,pt:()=>qf,ru:()=>Wf,sl:()=>Gf,sv:()=>Jf,ta:()=>Kf,th:()=>Hf,tr:()=>Yf,ua:()=>Xf,uk:()=>Di,ur:()=>Qf,uz:()=>eh,vi:()=>th,yo:()=>ih,zhCN:()=>rh,zhTW:()=>nh});var _b=()=>{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=b(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 ${D(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: ${h(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":""}: ${h(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 cf(){return{localeError:_b()}}var xb=()=>{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=b(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 ${D(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${h(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":""}: ${h(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 lf(){return{localeError:xb()}}function df(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 wb=()=>{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=b(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 ${D(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 ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),u=df(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()} ${u}`}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),u=df(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()} ${u}`}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"}: ${h(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 pf(){return{localeError:wb()}}var kb=()=>{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=b(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 ${D(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 ${h(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":""}: ${h(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 mf(){return{localeError:kb()}}var Cb=()=>{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=b(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 ${D(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${h(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":""}: ${h(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 ff(){return{localeError:Cb()}}var Ib=()=>{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=b(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 ${D(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${h(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: ${h(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 hf(){return{localeError:Ib()}}var Sb=()=>{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=b(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 ${D(r.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${h(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"}: ${h(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 gf(){return{localeError:Sb()}}var Eb=()=>{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=b(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 ${D(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${h(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"}: ${h(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 vf(){return{localeError:Eb()}}var Fb=()=>{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=b(r.input),s=i[a]??a;return`Invalid input: expected ${o}, received ${s}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${D(r.values[0])}`:`Invalid option: expected one of ${h(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":""}: ${h(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 gi(){return{localeError:Fb()}}var Ob=()=>{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=b(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 ${D(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${h(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":""}: ${h(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 Df(){return{localeError:Ob()}}var zb=()=>{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=b(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 ${D(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${h(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":""}: ${h(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 yf(){return{localeError:zb()}}var Pb=()=>{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=b(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 ${D(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 ${h(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: ${h(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 bf(){return{localeError:Pb()}}var Ab=()=>{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=b(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 ${D(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${h(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"}: ${h(r.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function $f(){return{localeError:Ab()}}var Tb=()=>{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=b(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 : ${D(r.values[0])} attendu`:`Option invalide : une valeur parmi ${h(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":""} : ${h(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 _f(){return{localeError:Tb()}}var jb=()=>{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=b(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 ${D(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${h(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":""} : ${h(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 xf(){return{localeError:jb()}}var Ub=()=>{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=c=>c?e[c]:void 0,i=c=>{let l=n(c);return l?l.label:c??e.unknown.label},r=c=>`\u05D4${i(c)}`,o=c=>(n(c)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=c=>c?t[c]??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"}},u={nan:"NaN"};return c=>{switch(c.code){case"invalid_type":{let l=c.expected,d=u[l??""]??i(l),p=b(c.input),f=u[p]??e[p]?.label??p;return/^[A-Z]/.test(c.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${c.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${f}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${f}`}case"invalid_value":{if(c.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 ${D(c.values[0])}`;let l=c.values.map(f=>D(f));if(c.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(c.origin),d=r(c.origin??"value");if(c.origin==="string")return`${l?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.maximum.toString()} ${l?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(c.origin==="number"){let g=c.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${c.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}`}if(c.origin==="array"||c.origin==="set"){let g=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",x=c.inclusive?`${c.maximum} ${l?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${c.maximum} ${l?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${x}`.trim()}let p=c.inclusive?"<=":"<",f=o(c.origin??"value");return l?.unit?`${l.longLabel} \u05DE\u05D3\u05D9: ${d} ${f} ${p}${c.maximum.toString()} ${l.unit}`:`${l?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${f} ${p}${c.maximum.toString()}`}case"too_small":{let l=a(c.origin),d=r(c.origin??"value");if(c.origin==="string")return`${l?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.minimum.toString()} ${l?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(c.origin==="number"){let g=c.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${c.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}`}if(c.origin==="array"||c.origin==="set"){let g=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(c.minimum===1&&c.inclusive){let S=(c.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${S}`}let x=c.inclusive?`${c.minimum} ${l?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${c.minimum} ${l?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${x}`.trim()}let p=c.inclusive?">=":">",f=o(c.origin??"value");return l?.unit?`${l.shortLabel} \u05DE\u05D3\u05D9: ${d} ${f} ${p}${c.minimum.toString()} ${l.unit}`:`${l?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${f} ${p}${c.minimum.toString()}`}case"invalid_format":{let l=c;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],p=d?.label??l.format,g=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${p} \u05DC\u05D0 ${g}`}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 ${c.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${c.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${c.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${h(c.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(c.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function wf(){return{localeError:Ub()}}var Nb=()=>{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=b(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 ${D(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${h(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":""}: ${h(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 kf(){return{localeError:Nb()}}function Cf(e,t,n){return Math.abs(e)===1?t:n}function tr(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 Rb=()=>{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=b(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 ${D(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 ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),u=Cf(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 ${tr(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${r.maximum.toString()} ${u}`}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 ${tr(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),u=Cf(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 ${tr(r.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${r.minimum.toString()} ${u}`}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 ${tr(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":""}. ${h(r.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${tr(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 ${tr(r.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function If(){return{localeError:Rb()}}var Bb=()=>{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=b(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 ${D(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${h(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":""}: ${h(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`;default:return"Input tidak valid"}}};function Sf(){return{localeError:Bb()}}var Zb=()=>{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=b(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 ${D(r.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${h(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"}: ${h(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 Ef(){return{localeError:Zb()}}var Lb=()=>{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=b(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 ${D(r.values[0])}`:`Opzione non valida: atteso uno tra ${h(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"}: ${h(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`;default:return"Input non valido"}}};function Ff(){return{localeError:Lb()}}var Mb=()=>{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=b(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: ${D(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${h(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":""}: ${h(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 Of(){return{localeError:Mb()}}var qb=()=>{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=b(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 ${D(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 ${h(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"}: ${h(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 zf(){return{localeError:qb()}}var Vb=()=>{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=b(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 ${D(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 ${h(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 ${h(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 vi(){return{localeError:Vb()}}function Pf(){return vi()}var Wb=()=>{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=b(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 ${D(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${h(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),u=s?.unit??"\uC694\uC18C";return s?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${u} ${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),u=s?.unit??"\uC694\uC18C";return s?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${u} ${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: ${h(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 Af(){return{localeError:Wb()}}var en=e=>e.charAt(0).toUpperCase()+e.slice(1);function Tf(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 Gb=()=>{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 u=e[r]??null;return u===null?u:{unit:u.unit[o],verb:u.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=b(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 ${D(r.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${h(r.values,"|")} pasirinkim\u0173`;case"too_big":{let o=i[r.origin]??r.origin,a=t(r.origin,Tf(Number(r.maximum)),r.inclusive??!1,"smaller");if(a?.verb)return`${en(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`${en(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,Tf(Number(r.minimum)),r.inclusive??!1,"bigger");if(a?.verb)return`${en(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`${en(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"}: ${h(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`${en(o??r.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function jf(){return{localeError:Gb()}}var Jb=()=>{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=b(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 ${D(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 ${h(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"}: ${h(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 Uf(){return{localeError:Jb()}}var Kb=()=>{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=b(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 ${D(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${h(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: ${h(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`;default:return"Input tidak sah"}}};function Nf(){return{localeError:Kb()}}var Hb=()=>{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=b(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 ${D(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${h(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":""}: ${h(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`;default:return"Ongeldige invoer"}}};function Rf(){return{localeError:Hb()}}var Yb=()=>{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=b(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 ${D(r.values[0])}`:`Ugyldig valg: forventet en av ${h(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"}: ${h(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 Bf(){return{localeError:Yb()}}var Xb=()=>{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=b(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 ${D(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${h(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":""}: ${h(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 Zf(){return{localeError:Xb()}}var Qb=()=>{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=b(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 ${D(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${h(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"}: ${h(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 Lf(){return{localeError:Qb()}}var e0=()=>{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=b(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 ${D(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${h(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":""}: ${h(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 Mf(){return{localeError:e0()}}var t0=()=>{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=b(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 ${D(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${h(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":""}: ${h(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 qf(){return{localeError:t0()}}function Vf(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 r0=()=>{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=b(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 ${D(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 ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),u=Vf(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()} ${u}`}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),u=Vf(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()} ${u}`}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":""}: ${h(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 Wf(){return{localeError:r0()}}var n0=()=>{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=b(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 ${D(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${h(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"}: ${h(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 Gf(){return{localeError:n0()}}var i0=()=>{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=b(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 ${D(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${h(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"}: ${h(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 Jf(){return{localeError:i0()}}var o0=()=>{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=b(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 ${D(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 ${h(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":""}: ${h(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 Kf(){return{localeError:o0()}}var a0=()=>{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=b(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 ${D(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 ${h(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: ${h(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 Hf(){return{localeError:a0()}}var s0=()=>{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=b(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 ${D(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${h(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":""}: ${h(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 Yf(){return{localeError:s0()}}var u0=()=>{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=b(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 ${D(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 ${h(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":""}: ${h(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 Di(){return{localeError:u0()}}function Xf(){return Di()}var c0=()=>{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=b(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: ${D(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${h(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":""}: ${h(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 Qf(){return{localeError:c0()}}var l0=()=>{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=b(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 ${D(r.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${h(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":""}: ${h(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 eh(){return{localeError:l0()}}var d0=()=>{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=b(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 ${D(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 ${h(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: ${h(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 th(){return{localeError:d0()}}var p0=()=>{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=b(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 ${D(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${h(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): ${h(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 rh(){return{localeError:p0()}}var m0=()=>{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=b(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 ${D(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${h(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${h(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 nh(){return{localeError:m0()}}var f0=()=>{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=b(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 ${D(r.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${h(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: ${h(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 ih(){return{localeError:f0()}}var oh,ic=Symbol("ZodOutput"),oc=Symbol("ZodInput"),yi=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 bi(){return new yi}(oh=globalThis).__zod_globalRegistry??(oh.__zod_globalRegistry=bi());var de=globalThis.__zod_globalRegistry;function ac(e,t){return new e({type:"string",..._(t)})}function sc(e,t){return new e({type:"string",coerce:!0,..._(t)})}function $i(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,..._(t)})}function rn(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,..._(t)})}function _i(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,..._(t)})}function xi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",..._(t)})}function wi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",..._(t)})}function ki(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",..._(t)})}function nn(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,..._(t)})}function Ci(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,..._(t)})}function Ii(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,..._(t)})}function Si(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,..._(t)})}function Ei(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,..._(t)})}function Fi(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,..._(t)})}function Oi(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,..._(t)})}function zi(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,..._(t)})}function Pi(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,..._(t)})}function Ai(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,..._(t)})}function uc(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,..._(t)})}function Ti(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,..._(t)})}function ji(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,..._(t)})}function Ui(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,..._(t)})}function Ni(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,..._(t)})}function Ri(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,..._(t)})}function Bi(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,..._(t)})}var cc={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function lc(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,..._(t)})}function dc(e,t){return new e({type:"string",format:"date",check:"string_format",..._(t)})}function pc(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,..._(t)})}function mc(e,t){return new e({type:"string",format:"duration",check:"string_format",..._(t)})}function fc(e,t){return new e({type:"number",checks:[],..._(t)})}function hc(e,t){return new e({type:"number",coerce:!0,checks:[],..._(t)})}function gc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",..._(t)})}function vc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",..._(t)})}function Dc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",..._(t)})}function yc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",..._(t)})}function bc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",..._(t)})}function $c(e,t){return new e({type:"boolean",..._(t)})}function _c(e,t){return new e({type:"boolean",coerce:!0,..._(t)})}function xc(e,t){return new e({type:"bigint",..._(t)})}function wc(e,t){return new e({type:"bigint",coerce:!0,..._(t)})}function kc(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",..._(t)})}function Cc(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",..._(t)})}function Ic(e,t){return new e({type:"symbol",..._(t)})}function Sc(e,t){return new e({type:"undefined",..._(t)})}function Ec(e,t){return new e({type:"null",..._(t)})}function Fc(e){return new e({type:"any"})}function Oc(e){return new e({type:"unknown"})}function zc(e,t){return new e({type:"never",..._(t)})}function Pc(e,t){return new e({type:"void",..._(t)})}function Ac(e,t){return new e({type:"date",..._(t)})}function Tc(e,t){return new e({type:"date",coerce:!0,..._(t)})}function jc(e,t){return new e({type:"nan",..._(t)})}function Qe(e,t){return new oi({check:"less_than",..._(t),value:e,inclusive:!1})}function Fe(e,t){return new oi({check:"less_than",..._(t),value:e,inclusive:!0})}function et(e,t){return new ai({check:"greater_than",..._(t),value:e,inclusive:!1})}function De(e,t){return new ai({check:"greater_than",..._(t),value:e,inclusive:!0})}function Zi(e){return et(0,e)}function Li(e){return Qe(0,e)}function Mi(e){return Fe(0,e)}function qi(e){return De(0,e)}function bt(e,t){return new Es({check:"multiple_of",..._(t),value:e})}function $t(e,t){return new zs({check:"max_size",..._(t),maximum:e})}function tt(e,t){return new Ps({check:"min_size",..._(t),minimum:e})}function zt(e,t){return new As({check:"size_equals",..._(t),size:e})}function Pt(e,t){return new Ts({check:"max_length",..._(t),maximum:e})}function ut(e,t){return new js({check:"min_length",..._(t),minimum:e})}function At(e,t){return new Us({check:"length_equals",..._(t),length:e})}function rr(e,t){return new Ns({check:"string_format",format:"regex",..._(t),pattern:e})}function nr(e){return new Rs({check:"string_format",format:"lowercase",..._(e)})}function ir(e){return new Bs({check:"string_format",format:"uppercase",..._(e)})}function or(e,t){return new Zs({check:"string_format",format:"includes",..._(t),includes:e})}function ar(e,t){return new Ls({check:"string_format",format:"starts_with",..._(t),prefix:e})}function sr(e,t){return new Ms({check:"string_format",format:"ends_with",..._(t),suffix:e})}function Vi(e,t,n){return new qs({check:"property",property:e,schema:t,..._(n)})}function ur(e,t){return new Vs({check:"mime_type",mime:e,..._(t)})}function qe(e){return new Ws({check:"overwrite",tx:e})}function cr(e){return qe(t=>t.normalize(e))}function lr(){return qe(e=>e.trim())}function dr(){return qe(e=>e.toLowerCase())}function pr(){return qe(e=>e.toUpperCase())}function mr(){return qe(e=>qa(e))}function Uc(e,t,n){return new e({type:"array",element:t,..._(n)})}function g0(e,t,n){return new e({type:"union",options:t,..._(n)})}function v0(e,t,n){return new e({type:"union",options:t,inclusive:!1,..._(n)})}function D0(e,t,n,i){return new e({type:"union",options:n,discriminator:t,..._(i)})}function y0(e,t,n){return new e({type:"intersection",left:t,right:n})}function b0(e,t,n,i){let r=n instanceof F,o=r?i:n,a=r?n:null;return new e({type:"tuple",items:t,rest:a,..._(o)})}function $0(e,t,n,i){return new e({type:"record",keyType:t,valueType:n,..._(i)})}function _0(e,t,n,i){return new e({type:"map",keyType:t,valueType:n,..._(i)})}function x0(e,t,n){return new e({type:"set",valueType:t,..._(n)})}function w0(e,t,n){let i=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:i,..._(n)})}function k0(e,t,n){return new e({type:"enum",entries:t,..._(n)})}function C0(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],..._(n)})}function Nc(e,t){return new e({type:"file",..._(t)})}function I0(e,t){return new e({type:"transform",transform:t})}function S0(e,t){return new e({type:"optional",innerType:t})}function E0(e,t){return new e({type:"nullable",innerType:t})}function F0(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():Wa(n)}})}function O0(e,t,n){return new e({type:"nonoptional",innerType:t,..._(n)})}function z0(e,t){return new e({type:"success",innerType:t})}function P0(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function A0(e,t,n){return new e({type:"pipe",in:t,out:n})}function T0(e,t){return new e({type:"readonly",innerType:t})}function j0(e,t,n){return new e({type:"template_literal",parts:t,..._(n)})}function U0(e,t){return new e({type:"lazy",getter:t})}function N0(e,t){return new e({type:"promise",innerType:t})}function Rc(e,t,n){let i=_(n);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function Bc(e,t,n){return new e({type:"custom",check:"custom",fn:t,..._(n)})}function Zc(e){let t=ah(n=>(n.addIssue=i=>{if(typeof i=="string")n.issues.push(Kt(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(Kt(r))}},e(n.value,n)));return t}function ah(e,t){let n=new Y({check:"custom",..._(t)});return n._zod.check=e,n}function Lc(e){let t=new Y({check:"describe"});return t._zod.onattach=[n=>{let i=de.get(n)??{};de.add(n,{...i,description:e})}],t._zod.check=()=>{},t}function Mc(e){let t=new Y({check:"meta"});return t._zod.onattach=[n=>{let i=de.get(n)??{};de.add(n,{...i,...e})}],t._zod.check=()=>{},t}function qc(e,t){let n=_(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(f=>typeof f=="string"?f.toLowerCase():f),r=r.map(f=>typeof f=="string"?f.toLowerCase():f));let o=new Set(i),a=new Set(r),s=e.Codec??Qr,u=e.Boolean??Yr,c=e.String??Ot,l=new c({type:"string",error:n.error}),d=new u({type:"boolean",error:n.error}),p=new s({type:"pipe",in:l,out:d,transform:((f,g)=>{let x=f;return n.case!=="sensitive"&&(x=x.toLowerCase()),o.has(x)?!0:a.has(x)?!1:(g.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:g.value,inst:p,continue:!1}),{})}),reverseTransform:((f,g)=>f===!0?i[0]||"true":r[0]||"false"),error:n.error});return p}function fr(e,t,n,i={}){let r=_(i),o={..._(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??de,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 V(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 p=a.schema,f=t.processors[r.type];if(!f)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);f(e,t,p,l)}let d=e._zod.parent;d&&(a.ref||(a.ref=d),V(d,t,l),t.seen.get(d).isParent=!0)}let u=t.metadataRegistry.get(e);return u&&Object.assign(a.schema,u),t.io==="input"&&ye(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 xt(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 u=i.get(s);if(u&&u!==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,p=e.external.uri??(g=>g);if(d)return{ref:p(d)};let f=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=f,{defId:f,ref:`${p("__shared")}#/${s}/${f}`}}if(a[1]===n)return{ref:"#"};let c=`#/${s}/`,l=a[1].schema.id??`__schema${e.counter++}`;return{defId:l,ref:c+l}},o=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:u,defId:c}=r(a);s.def={...s.schema},c&&(s.defId=c);let l=s.schema;for(let d in l)delete l[d];l.$ref=u};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>
64
+ `)}m.write("payload.value = newResult;"),m.write("return payload;");let Y=m.compile();return(P,G)=>Y(p,P,G)},o,s=Nt,a=!Hr.jitless,c=a&&ha.value,l=t.catchall,d;e._zod.parse=(p,m)=>{d??(d=i.value);let D=p.value;return s(D)?a&&c&&m?.async===!1&&m.jitless!==!0?(o||(o=r(t.shape)),p=o(p,m),l?Wf([],D,p,m,d,e):p):n(p,m):(p.issues.push({expected:"object",code:"invalid_type",input:D,inst:e}),p)}});function Pf(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=>!wt(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(s=>_e(s,i,oe())))}),t)}var dn=f("$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=>Qr(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 s=!1,a=[];for(let u of t.options){let c=u._zod.run({value:r.value,issues:[]},o);if(c instanceof Promise)a.push(c),s=!0;else{if(c.issues.length===0)return c;a.push(c)}}return s?Promise.all(a).then(u=>Pf(u,r,e,o)):Pf(a,r,e,o)}});function Af(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(s=>_e(s,i,oe())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t)}var nc=f("$ZodXor",(e,t)=>{dn.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 s=!1,a=[];for(let u of t.options){let c=u._zod.run({value:r.value,issues:[]},o);c instanceof Promise?(a.push(c),s=!0):a.push(c)}return s?Promise.all(a).then(u=>Af(u,r,e,o)):Af(a,r,e,o)}}),ic=f("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,dn.init(e,t);let n=e._zod.parse;N(e._zod,"propValues",()=>{let r={};for(let o of t.options){let s=o._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[a,u]of Object.entries(s)){r[a]||(r[a]=new Set);for(let c of u)r[a].add(c)}}return r});let i=ir(()=>{let r=t.options,o=new Map;for(let s of r){let a=s._zod.propValues?.[t.discriminator];if(!a||a.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(let u of a){if(o.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);o.set(u,s)}}return o});e._zod.parse=(r,o)=>{let s=r.value;if(!Nt(s))return r.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),r;let a=i.value.get(s?.[t.discriminator]);return a?a._zod.run(r,o):t.unionFallback?n(r,o):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:s,path:[t.discriminator],inst:e}),r)}}),oc=f("$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),s=t.right._zod.run({value:r,issues:[]},i);return o instanceof Promise||s instanceof Promise?Promise.all([o,s]).then(([u,c])=>Tf(n,u,c)):Tf(n,o,s)}});function Du(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(xt(e)&&xt(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 s=Du(e[o],t[o]);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};r[o]=s.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],s=Du(r,o);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Tf(e,t,n){let i=new Map,r;for(let a of t.issues)if(a.code==="unrecognized_keys"){r??(r=a);for(let u of a.keys)i.has(u)||i.set(u,{}),i.get(u).l=!0}else e.issues.push(a);for(let a of n.issues)if(a.code==="unrecognized_keys")for(let u of a.keys)i.has(u)||i.set(u,{}),i.get(u).r=!0;else e.issues.push(a);let o=[...i].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(o.length&&r&&e.issues.push({...r,keys:o}),wt(e))return e;let s=Du(t.value,n.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}var Oi=f("$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 s=[],a=[...n].reverse().findIndex(l=>l._zod.optin!=="optional"),u=a===-1?0:n.length-a;if(!t.rest){let l=o.length>n.length,d=o.length<u-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 c=-1;for(let l of n){if(c++,c>=o.length&&c>=u)continue;let d=l._zod.run({value:o[c],issues:[]},r);d instanceof Promise?s.push(d.then(p=>wi(p,i,c))):wi(d,i,c)}if(t.rest){let l=o.slice(n.length);for(let d of l){c++;let p=t.rest._zod.run({value:d,issues:[]},r);p instanceof Promise?s.push(p.then(m=>wi(m,i,c))):wi(p,i,c)}}return s.length?Promise.all(s).then(()=>i):i}});function wi(e,t,n){e.issues.length&&t.issues.push(...Fe(n,e.issues)),t.value[n]=e.value}var sc=f("$ZodRecord",(e,t)=>{z.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!xt(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;let o=[],s=t.keyType._zod.values;if(s){n.value={};let a=new Set;for(let c of s)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){a.add(typeof c=="number"?c.toString():c);let l=t.valueType._zod.run({value:r[c],issues:[]},i);l instanceof Promise?o.push(l.then(d=>{d.issues.length&&n.issues.push(...Fe(c,d.issues)),n.value[c]=d.value})):(l.issues.length&&n.issues.push(...Fe(c,l.issues)),n.value[c]=l.value)}let u;for(let c in r)a.has(c)||(u=u??[],u.push(c));u&&u.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:u})}else{n.value={};for(let a of Reflect.ownKeys(r)){if(a==="__proto__")continue;let u=t.keyType._zod.run({value:a,issues:[]},i);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&$i.test(a)&&u.issues.length){let d=t.keyType._zod.run({value:Number(a),issues:[]},i);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(u=d)}if(u.issues.length){t.mode==="loose"?n.value[a]=r[a]:n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(d=>_e(d,i,oe())),input:a,path:[a],inst:e});continue}let l=t.valueType._zod.run({value:r[a],issues:[]},i);l instanceof Promise?o.push(l.then(d=>{d.issues.length&&n.issues.push(...Fe(a,d.issues)),n.value[u.value]=d.value})):(l.issues.length&&n.issues.push(...Fe(a,l.issues)),n.value[u.value]=l.value)}}return o.length?Promise.all(o).then(()=>n):n}}),ac=f("$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[s,a]of r){let u=t.keyType._zod.run({value:s,issues:[]},i),c=t.valueType._zod.run({value:a,issues:[]},i);u instanceof Promise||c instanceof Promise?o.push(Promise.all([u,c]).then(([l,d])=>{jf(l,d,n,s,r,e,i)})):jf(u,c,n,s,r,e,i)}return o.length?Promise.all(o).then(()=>n):n}});function jf(e,t,n,i,r,o,s){e.issues.length&&(en.has(typeof i)?n.issues.push(...Fe(i,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:r,inst:o,issues:e.issues.map(a=>_e(a,s,oe()))})),t.issues.length&&(en.has(typeof i)?n.issues.push(...Fe(i,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:o,key:i,issues:t.issues.map(a=>_e(a,s,oe()))})),n.value.set(e.value,t.value)}var uc=f("$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 s of r){let a=t.valueType._zod.run({value:s,issues:[]},i);a instanceof Promise?o.push(a.then(u=>Uf(u,n))):Uf(a,n)}return o.length?Promise.all(o).then(()=>n):n}});function Uf(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var cc=f("$ZodEnum",(e,t)=>{z.init(e,t);let n=Xr(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(r=>en.has(typeof r)).map(r=>typeof r=="string"?Le(r):r.toString()).join("|")})$`),e._zod.parse=(r,o)=>{let s=r.value;return i.has(s)||r.issues.push({code:"invalid_value",values:n,input:s,inst:e}),r}}),lc=f("$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"?Le(i):i?Le(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}}),dc=f("$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}}),pc=f("$ZodTransform",(e,t)=>{z.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new bt(e.constructor.name);let r=t.transform(n.value,n);if(i.async)return(r instanceof Promise?r:Promise.resolve(r)).then(s=>(n.value=s,n));if(r instanceof Promise)throw new We;return n.value=r,n}});function Nf(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var zi=f("$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(`^(${Qr(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=>Nf(o,n.value)):Nf(r,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,i)}}),mc=f("$ZodExactOptional",(e,t)=>{zi.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)}),fc=f("$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(`^(${Qr(n.source)}|null)$`):void 0}),N(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i)}),hc=f("$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=>Rf(o,t)):Rf(r,t)}});function Rf(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var gc=f("$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))}),vc=f("$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=>Bf(o,e)):Bf(r,e)}});function Bf(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 Dc=f("$ZodSuccess",(e,t)=>{z.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new bt("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)}}),yc=f("$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(s=>_e(s,i,oe()))},input:n.value}),n.issues=[]),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(o=>_e(o,i,oe()))},input:n.value}),n.issues=[]),n)}}),bc=f("$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)}),$c=f("$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(s=>ki(s,t.in,i)):ki(o,t.in,i)}let r=t.in._zod.run(n,i);return r instanceof Promise?r.then(o=>ki(o,t.out,i)):ki(r,t.out,i)}});function ki(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var pn=f("$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(s=>Si(s,t,i)):Si(o,t,i)}else{let o=t.out._zod.run(n,i);return o instanceof Promise?o.then(s=>Si(s,t,i)):Si(o,t,i)}}});function Si(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=>Ci(e,o,t.out,n)):Ci(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(o=>Ci(e,o,t.in,n)):Ci(e,r,t.in,n)}}function Ci(e,t,n,i){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},i)}var _c=f("$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(Lf):Lf(r)}});function Lf(e){return e.value=Object.freeze(e.value),e}var xc=f("$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,s=r.endsWith("$")?r.length-1:r.length;n.push(r.slice(o,s))}else if(i===null||va.has(typeof i))n.push(Le(`${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)}),wc=f("$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?li(e._def.input,i):i,o=Reflect.apply(n,this,r);return e._def.output?li(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 di(e._def.input,i):i,o=await Reflect.apply(n,this,r);return e._def.output?await di(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 Oi({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)),kc=f("$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))}),Sc=f("$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)}),Cc=f("$ZodCustom",(e,t)=>{X.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=>Zf(o,n,i,e));Zf(r,n,i,e)}});function Zf(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(or(r))}}var fn={};tt(fn,{ar:()=>Jf,az:()=>Kf,be:()=>Yf,bg:()=>Xf,ca:()=>Qf,cs:()=>eh,da:()=>th,de:()=>rh,en:()=>Pi,eo:()=>nh,es:()=>ih,fa:()=>oh,fi:()=>sh,fr:()=>ah,frCA:()=>uh,he:()=>ch,hu:()=>lh,hy:()=>ph,id:()=>mh,is:()=>fh,it:()=>hh,ja:()=>gh,ka:()=>vh,kh:()=>Dh,km:()=>Ai,ko:()=>yh,lt:()=>$h,mk:()=>_h,ms:()=>xh,nl:()=>wh,no:()=>kh,ota:()=>Sh,pl:()=>Ih,ps:()=>Ch,pt:()=>Eh,ru:()=>Oh,sl:()=>zh,sv:()=>Ph,ta:()=>Ah,th:()=>Th,tr:()=>jh,ua:()=>Uh,uk:()=>Ti,ur:()=>Nh,uz:()=>Rh,vi:()=>Bh,yo:()=>Mh,zhCN:()=>Lh,zhTW:()=>Zh});var W0=()=>{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,s=b(r.input),a=i[s]??s;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 ${a}`:`\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 ${a}`}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 ${y(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: ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?` \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()} ${s.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?">=":">",s=t(r.origin);return s?`\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()} ${s.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":""}: ${h(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 Jf(){return{localeError:W0()}}var G0=()=>{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,s=b(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${r.expected}, daxil olan ${a}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${a}`}case"invalid_value":return r.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${y(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()} ${s.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?">=":">",s=t(r.origin);return s?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()} ${s.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":""}: ${h(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 Kf(){return{localeError:G0()}}function Hf(e,t,n,i){let r=Math.abs(e),o=r%10,s=r%100;return s>=11&&s<=19?i:o===1?t:o>=2&&o<=4?n:i}var J0=()=>{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,s=b(r.input),a=i[s]??s;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 ${a}`:`\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 ${a}`}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 ${y(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 ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);if(s){let a=Number(r.maximum),u=Hf(a,s.unit.one,s.unit.few,s.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 ${s.verb} ${o}${r.maximum.toString()} ${u}`}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?">=":">",s=t(r.origin);if(s){let a=Number(r.minimum),u=Hf(a,s.unit.one,s.unit.few,s.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 ${s.verb} ${o}${r.minimum.toString()} ${u}`}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"}: ${h(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 Yf(){return{localeError:J0()}}var K0=()=>{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,s=b(r.input),a=i[s]??s;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 ${a}`:`\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 ${a}`}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 ${y(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 ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`\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()} ${s.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?">=":">",s=t(r.origin);return s?`\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()} ${s.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 s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${s} ${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":""}: ${h(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 Xf(){return{localeError:K0()}}var H0=()=>{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,s=b(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${r.expected}, s'ha rebut ${a}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${a}`}case"invalid_value":return r.values.length===1?`Valor inv\xE0lid: s'esperava ${y(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${h(r.values," o ")}`;case"too_big":{let o=r.inclusive?"com a m\xE0xim":"menys de",s=t(r.origin);return s?`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xE9s ${o} ${r.maximum.toString()} ${s.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",s=t(r.origin);return s?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${o} ${r.minimum.toString()} ${s.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":""}: ${h(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 Qf(){return{localeError:H0()}}var Y0=()=>{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,s=b(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${r.expected}, obdr\u017Eeno ${a}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${a}`}case"invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${y(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.maximum.toString()} ${s.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?">=":">",s=t(r.origin);return s?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.minimum.toString()} ${s.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: ${h(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 eh(){return{localeError:Y0()}}var X0=()=>{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,s=b(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Ugyldigt input: forventede instanceof ${r.expected}, fik ${a}`:`Ugyldigt input: forventede ${o}, fik ${a}`}case"invalid_value":return r.values.length===1?`Ugyldig v\xE6rdi: forventede ${y(r.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin),a=i[r.origin]??r.origin;return s?`For stor: forventede ${a??"value"} ${s.verb} ${o} ${r.maximum.toString()} ${s.unit??"elementer"}`:`For stor: forventede ${a??"value"} havde ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",s=t(r.origin),a=i[r.origin]??r.origin;return s?`For lille: forventede ${a} ${s.verb} ${o} ${r.minimum.toString()} ${s.unit}`:`For lille: forventede ${a} 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"}: ${h(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 th(){return{localeError:X0()}}var Q0=()=>{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,s=b(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${r.expected}, erhalten ${a}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${a}`}case"invalid_value":return r.values.length===1?`Ung\xFCltige Eingabe: erwartet ${y(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ${s.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ist`}case"too_small":{let o=r.inclusive?">=":">",s=t(r.origin);return s?`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ${s.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"}: ${h(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 rh(){return{localeError:Q0()}}var e$=()=>{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,s=b(r.input),a=i[s]??s;return`Invalid input: expected ${o}, received ${a}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${y(r.values[0])}`:`Invalid option: expected one of ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Too big: expected ${r.origin??"value"} to have ${o}${r.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",s=t(r.origin);return s?`Too small: expected ${r.origin} to have ${o}${r.minimum.toString()} ${s.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":""}: ${h(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 Pi(){return{localeError:e$()}}var t$=()=>{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,s=b(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${r.expected}, ricevi\u011Dis ${a}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${a}`}case"invalid_value":return r.values.length===1?`Nevalida enigo: atendi\u011Dis ${y(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${o}${r.maximum.toString()} ${s.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",s=t(r.origin);return s?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${o}${r.minimum.toString()} ${s.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":""}: ${h(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 nh(){return{localeError:t$()}}var r$=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(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,s=b(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${r.expected}, recibido ${a}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${a}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: se esperaba ${y(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin),a=i[r.origin]??r.origin;return s?`Demasiado grande: se esperaba que ${a??"valor"} tuviera ${o}${r.maximum.toString()} ${s.unit??"elementos"}`:`Demasiado grande: se esperaba que ${a??"valor"} fuera ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",s=t(r.origin),a=i[r.origin]??r.origin;return s?`Demasiado peque\xF1o: se esperaba que ${a} tuviera ${o}${r.minimum.toString()} ${s.unit}`:`Demasiado peque\xF1o: se esperaba que ${a} 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":""}: ${h(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 ih(){return{localeError:r$()}}var n$=()=>{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,s=b(r.input),a=i[s]??s;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 ${a} \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 ${a} \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 ${y(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 ${h(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${s.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?">=":">",s=t(r.origin);return s?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${s.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: ${h(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 oh(){return{localeError:n$()}}var i$=()=>{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,s=b(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Virheellinen tyyppi: odotettiin instanceof ${r.expected}, oli ${a}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${a}`}case"invalid_value":return r.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${y(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Liian suuri: ${s.subject} t\xE4ytyy olla ${o}${r.maximum.toString()} ${s.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",s=t(r.origin);return s?`Liian pieni: ${s.subject} t\xE4ytyy olla ${o}${r.minimum.toString()} ${s.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"}: ${h(r.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function sh(){return{localeError:i$()}}var o$=()=>{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,s=b(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : instanceof ${r.expected} attendu, ${a} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${a} re\xE7u`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : ${y(r.values[0])} attendu`:`Option invalide : une valeur parmi ${h(r.values,"|")} attendue`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Trop grand : ${r.origin??"valeur"} doit ${s.verb} ${o}${r.maximum.toString()} ${s.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${r.origin??"valeur"} doit \xEAtre ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",s=t(r.origin);return s?`Trop petit : ${r.origin} doit ${s.verb} ${o}${r.minimum.toString()} ${s.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":""} : ${h(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 ah(){return{localeError:o$()}}var s$=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(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,s=b(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : attendu instanceof ${r.expected}, re\xE7u ${a}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${a}`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : attendu ${y(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u2264":"<",s=t(r.origin);return s?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${o}${r.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"\u2265":">",s=t(r.origin);return s?`Trop petit : attendu que ${r.origin} ait ${o}${r.minimum.toString()} ${s.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":""} : ${h(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 uh(){return{localeError:s$()}}var a$=()=>{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=c=>c?e[c]:void 0,i=c=>{let l=n(c);return l?l.label:c??e.unknown.label},r=c=>`\u05D4${i(c)}`,o=c=>(n(c)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",s=c=>c?t[c]??null:null,a={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"}},u={nan:"NaN"};return c=>{switch(c.code){case"invalid_type":{let l=c.expected,d=u[l??""]??i(l),p=b(c.input),m=u[p]??e[p]?.label??p;return/^[A-Z]/.test(c.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${c.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${m}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${m}`}case"invalid_value":{if(c.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 ${y(c.values[0])}`;let l=c.values.map(m=>y(m));if(c.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=s(c.origin),d=r(c.origin??"value");if(c.origin==="string")return`${l?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.maximum.toString()} ${l?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(c.origin==="number"){let D=c.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${c.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${D}`}if(c.origin==="array"||c.origin==="set"){let D=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",x=c.inclusive?`${c.maximum} ${l?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${c.maximum} ${l?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} ${D} \u05DC\u05D4\u05DB\u05D9\u05DC ${x}`.trim()}let p=c.inclusive?"<=":"<",m=o(c.origin??"value");return l?.unit?`${l.longLabel} \u05DE\u05D3\u05D9: ${d} ${m} ${p}${c.maximum.toString()} ${l.unit}`:`${l?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${m} ${p}${c.maximum.toString()}`}case"too_small":{let l=s(c.origin),d=r(c.origin??"value");if(c.origin==="string")return`${l?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.minimum.toString()} ${l?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(c.origin==="number"){let D=c.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${c.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${D}`}if(c.origin==="array"||c.origin==="set"){let D=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(c.minimum===1&&c.inclusive){let F=(c.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${D} \u05DC\u05D4\u05DB\u05D9\u05DC ${F}`}let x=c.inclusive?`${c.minimum} ${l?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${c.minimum} ${l?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${D} \u05DC\u05D4\u05DB\u05D9\u05DC ${x}`.trim()}let p=c.inclusive?">=":">",m=o(c.origin??"value");return l?.unit?`${l.shortLabel} \u05DE\u05D3\u05D9: ${d} ${m} ${p}${c.minimum.toString()} ${l.unit}`:`${l?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${m} ${p}${c.minimum.toString()}`}case"invalid_format":{let l=c;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=a[l.format],p=d?.label??l.format,D=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${p} \u05DC\u05D0 ${D}`}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 ${c.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${c.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${c.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${h(c.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(c.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function ch(){return{localeError:a$()}}var u$=()=>{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,s=b(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${r.expected}, a kapott \xE9rt\xE9k ${a}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${a}`}case"invalid_value":return r.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${y(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${r.maximum.toString()} ${s.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?">=":">",s=t(r.origin);return s?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${o}${r.minimum.toString()} ${s.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":""}: ${h(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 lh(){return{localeError:u$()}}function dh(e,t,n){return Math.abs(e)===1?t:n}function dr(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 c$=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(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,s=b(r.input),a=i[s]??s;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 ${a}`:`\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 ${a}`}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 ${y(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 ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);if(s){let a=Number(r.maximum),u=dh(a,s.unit.one,s.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()} ${u}`}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?">=":">",s=t(r.origin);if(s){let a=Number(r.minimum),u=dh(a,s.unit.one,s.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()} ${u}`}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":""}. ${h(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 ph(){return{localeError:c$()}}var l$=()=>{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,s=b(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Input tidak valid: diharapkan instanceof ${r.expected}, diterima ${a}`:`Input tidak valid: diharapkan ${o}, diterima ${a}`}case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${y(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${o}${r.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",s=t(r.origin);return s?`Terlalu kecil: diharapkan ${r.origin} memiliki ${o}${r.minimum.toString()} ${s.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":""}: ${h(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`;default:return"Input tidak valid"}}};function mh(){return{localeError:l$()}}var d$=()=>{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,s=b(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${a} \xFEar sem \xE1 a\xF0 vera instanceof ${r.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${a} \xFEar sem \xE1 a\xF0 vera ${o}`}case"invalid_value":return r.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${y(r.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} hafi ${o}${r.maximum.toString()} ${s.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?">=":">",s=t(r.origin);return s?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} hafi ${o}${r.minimum.toString()} ${s.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"}: ${h(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 fh(){return{localeError:d$()}}var p$=()=>{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,s=b(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Input non valido: atteso instanceof ${r.expected}, ricevuto ${a}`:`Input non valido: atteso ${o}, ricevuto ${a}`}case"invalid_value":return r.values.length===1?`Input non valido: atteso ${y(r.values[0])}`:`Opzione non valida: atteso uno tra ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Troppo grande: ${r.origin??"valore"} deve avere ${o}${r.maximum.toString()} ${s.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",s=t(r.origin);return s?`Troppo piccolo: ${r.origin} deve avere ${o}${r.minimum.toString()} ${s.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"}: ${h(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`;default:return"Input non valido"}}};function hh(){return{localeError:p$()}}var m$=()=>{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,s=b(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${r.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${a}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${a}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return r.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${y(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${h(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",s=t(r.origin);return s?`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${s.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",s=t(r.origin);return s?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${s.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":""}: ${h(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 gh(){return{localeError:m$()}}var f$=()=>{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,s=b(r.input),a=i[s]??s;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 ${a}`:`\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 ${a}`}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 ${y(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 ${h(r.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`\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"} ${s.verb} ${o}${r.maximum.toString()} ${s.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?">=":">",s=t(r.origin);return s?`\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} ${s.verb} ${o}${r.minimum.toString()} ${s.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"}: ${h(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 vh(){return{localeError:f$()}}var h$=()=>{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,s=b(r.input),a=i[s]??s;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 ${a}`:`\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 ${a}`}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 ${y(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 ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`\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()} ${s.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?">=":">",s=t(r.origin);return s?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()} ${s.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 ${h(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 Ai(){return{localeError:h$()}}function Dh(){return Ai()}var g$=()=>{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,s=b(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${r.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${a}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${a}\uC785\uB2C8\uB2E4`}case"invalid_value":return r.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${y(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${h(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",s=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",a=t(r.origin),u=a?.unit??"\uC694\uC18C";return a?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${u} ${o}${s}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${o}${s}`}case"too_small":{let o=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",s=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",a=t(r.origin),u=a?.unit??"\uC694\uC18C";return a?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${u} ${o}${s}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${o}${s}`}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: ${h(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 yh(){return{localeError:g$()}}var mn=e=>e.charAt(0).toUpperCase()+e.slice(1);function bh(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 v$=()=>{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,s,a){let u=e[r]??null;return u===null?u:{unit:u.unit[o],verb:u.verb[a][s?"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,s=b(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Gautas tipas ${a}, o tik\u0117tasi - instanceof ${r.expected}`:`Gautas tipas ${a}, o tik\u0117tasi - ${o}`}case"invalid_value":return r.values.length===1?`Privalo b\u016Bti ${y(r.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${h(r.values,"|")} pasirinkim\u0173`;case"too_big":{let o=i[r.origin]??r.origin,s=t(r.origin,bh(Number(r.maximum)),r.inclusive??!1,"smaller");if(s?.verb)return`${mn(o??r.origin??"reik\u0161m\u0117")} ${s.verb} ${r.maximum.toString()} ${s.unit??"element\u0173"}`;let a=r.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${mn(o??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${a} ${r.maximum.toString()} ${s?.unit}`}case"too_small":{let o=i[r.origin]??r.origin,s=t(r.origin,bh(Number(r.minimum)),r.inclusive??!1,"bigger");if(s?.verb)return`${mn(o??r.origin??"reik\u0161m\u0117")} ${s.verb} ${r.minimum.toString()} ${s.unit??"element\u0173"}`;let a=r.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${mn(o??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${a} ${r.minimum.toString()} ${s?.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"}: ${h(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`${mn(o??r.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function $h(){return{localeError:v$()}}var D$=()=>{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,s=b(r.input),a=i[s]??s;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 ${a}`:`\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 ${a}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${y(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 ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`\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()} ${s.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?">=":">",s=t(r.origin);return s?`\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()} ${s.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"}: ${h(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 _h(){return{localeError:D$()}}var y$=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(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,s=b(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Input tidak sah: dijangka instanceof ${r.expected}, diterima ${a}`:`Input tidak sah: dijangka ${o}, diterima ${a}`}case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${y(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Terlalu besar: dijangka ${r.origin??"nilai"} ${s.verb} ${o}${r.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",s=t(r.origin);return s?`Terlalu kecil: dijangka ${r.origin} ${s.verb} ${o}${r.minimum.toString()} ${s.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: ${h(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`;default:return"Input tidak sah"}}};function xh(){return{localeError:y$()}}var b$=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(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,s=b(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Ongeldige invoer: verwacht instanceof ${r.expected}, ontving ${a}`:`Ongeldige invoer: verwacht ${o}, ontving ${a}`}case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${y(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin),a=r.origin==="date"?"laat":r.origin==="string"?"lang":"groot";return s?`Te ${a}: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} ${s.unit??"elementen"} ${s.verb}`:`Te ${a}: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} is`}case"too_small":{let o=r.inclusive?">=":">",s=t(r.origin),a=r.origin==="date"?"vroeg":r.origin==="string"?"kort":"klein";return s?`Te ${a}: verwacht dat ${r.origin} ${o}${r.minimum.toString()} ${s.unit} ${s.verb}`:`Te ${a}: 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":""}: ${h(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`;default:return"Ongeldige invoer"}}};function wh(){return{localeError:b$()}}var $$=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(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,s=b(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Ugyldig input: forventet instanceof ${r.expected}, fikk ${a}`:`Ugyldig input: forventet ${o}, fikk ${a}`}case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${y(r.values[0])}`:`Ugyldig valg: forventet en av ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()} ${s.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",s=t(r.origin);return s?`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()} ${s.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"}: ${h(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 kh(){return{localeError:$$()}}var _$=()=>{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,s=b(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`F\xE2sit giren: umulan instanceof ${r.expected}, al\u0131nan ${a}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${a}`}case"invalid_value":return r.values.length===1?`F\xE2sit giren: umulan ${y(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} ${s.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?">=":">",s=t(r.origin);return s?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} ${s.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":""}: ${h(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 Sh(){return{localeError:_$()}}var x$=()=>{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,s=b(r.input),a=i[s]??s;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 ${a} \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 ${a} \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 ${y(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${h(r.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${s.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?">=":">",s=t(r.origin);return s?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${s.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"}: ${h(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 Ch(){return{localeError:x$()}}var w$=()=>{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,s=b(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${r.expected}, otrzymano ${a}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${a}`}case"invalid_value":return r.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${y(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.maximum.toString()} ${s.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?">=":">",s=t(r.origin);return s?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.minimum.toString()} ${s.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":""}: ${h(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 Ih(){return{localeError:w$()}}var k$=()=>{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,s=b(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Tipo inv\xE1lido: esperado instanceof ${r.expected}, recebido ${a}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${a}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: esperado ${y(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${o}${r.maximum.toString()} ${s.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",s=t(r.origin);return s?`Muito pequeno: esperado que ${r.origin} tivesse ${o}${r.minimum.toString()} ${s.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":""}: ${h(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 Eh(){return{localeError:k$()}}function Fh(e,t,n,i){let r=Math.abs(e),o=r%10,s=r%100;return s>=11&&s<=19?i:o===1?t:o>=2&&o<=4?n:i}var S$=()=>{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,s=b(r.input),a=i[s]??s;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 ${a}`:`\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 ${a}`}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 ${y(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 ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);if(s){let a=Number(r.maximum),u=Fh(a,s.unit.one,s.unit.few,s.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()} ${u}`}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?">=":">",s=t(r.origin);if(s){let a=Number(r.minimum),u=Fh(a,s.unit.one,s.unit.few,s.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()} ${u}`}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":""}: ${h(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 Oh(){return{localeError:S$()}}var C$=()=>{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,s=b(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${r.expected}, prejeto ${a}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${a}`}case"invalid_value":return r.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${y(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${o}${r.maximum.toString()} ${s.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",s=t(r.origin);return s?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${o}${r.minimum.toString()} ${s.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"}: ${h(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 zh(){return{localeError:C$()}}var I$=()=>{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,s=b(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${r.expected}, fick ${a}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${a}`}case"invalid_value":return r.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${y(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()} ${s.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?">=":">",s=t(r.origin);return s?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()} ${s.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"}: ${h(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 Ph(){return{localeError:I$()}}var E$=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(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,s=b(r.input),a=i[s]??s;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 ${a}`:`\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 ${a}`}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 ${y(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 ${h(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`\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()} ${s.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?">=":">",s=t(r.origin);return s?`\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()} ${s.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":""}: ${h(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 Ah(){return{localeError:E$()}}var F$=()=>{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,s=b(r.input),a=i[s]??s;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 ${a}`:`\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 ${a}`}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 ${y(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 ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",s=t(r.origin);return s?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()} ${s.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",s=t(r.origin);return s?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()} ${s.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: ${h(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 Th(){return{localeError:F$()}}var O$=()=>{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,s=b(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${r.expected}, al\u0131nan ${a}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${a}`}case"invalid_value":return r.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${y(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${o}${r.maximum.toString()} ${s.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",s=t(r.origin);return s?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${o}${r.minimum.toString()} ${s.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":""}: ${h(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 jh(){return{localeError:O$()}}var z$=()=>{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,s=b(r.input),a=i[s]??s;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 ${a}`:`\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 ${a}`}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 ${y(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 ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`\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"} ${s.verb} ${o}${r.maximum.toString()} ${s.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?">=":">",s=t(r.origin);return s?`\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} ${s.verb} ${o}${r.minimum.toString()} ${s.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":""}: ${h(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 Ti(){return{localeError:z$()}}function Uh(){return Ti()}var P$=()=>{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,s=b(r.input),a=i[s]??s;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 ${a} \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 ${a} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return r.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${y(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${h(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?"<=":"<",s=t(r.origin);return s?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${r.maximum.toString()} ${s.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?">=":">",s=t(r.origin);return s?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${o}${r.minimum.toString()} ${s.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":""}: ${h(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 Nh(){return{localeError:P$()}}var A$=()=>{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,s=b(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${r.expected}, qabul qilingan ${a}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${a}`}case"invalid_value":return r.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${y(r.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Juda katta: kutilgan ${r.origin??"qiymat"} ${o}${r.maximum.toString()} ${s.unit} ${s.verb}`:`Juda katta: kutilgan ${r.origin??"qiymat"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",s=t(r.origin);return s?`Juda kichik: kutilgan ${r.origin} ${o}${r.minimum.toString()} ${s.unit} ${s.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":""}: ${h(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 Rh(){return{localeError:A$()}}var T$=()=>{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,s=b(r.input),a=i[s]??s;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 ${a}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${a}`}case"invalid_value":return r.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${y(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 ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${s.verb} ${o}${r.maximum.toString()} ${s.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?">=":">",s=t(r.origin);return s?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${s.verb} ${o}${r.minimum.toString()} ${s.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: ${h(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 Bh(){return{localeError:T$()}}var j$=()=>{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,s=b(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${r.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${a}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${a}`}case"invalid_value":return r.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${y(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()} ${s.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?">=":">",s=t(r.origin);return s?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()} ${s.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): ${h(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 Lh(){return{localeError:j$()}}var U$=()=>{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,s=b(r.input),a=i[s]??s;return/^[A-Z]/.test(r.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${r.expected}\uFF0C\u4F46\u6536\u5230 ${a}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${a}`}case"invalid_value":return r.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${y(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()} ${s.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?">=":">",s=t(r.origin);return s?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()} ${s.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${h(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 Zh(){return{localeError:U$()}}var N$=()=>{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,s=b(r.input),a=i[s]??s;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 ${a}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${a}`}case"invalid_value":return r.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${y(r.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${h(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",s=t(r.origin);return s?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin??"iye"} ${s.verb} ${o}${r.maximum} ${s.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?">=":">",s=t(r.origin);return s?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin} ${s.verb} ${o}${r.minimum} ${s.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: ${h(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 Mh(){return{localeError:N$()}}var qh,Ic=Symbol("ZodOutput"),Ec=Symbol("ZodInput"),ji=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 Ui(){return new ji}(qh=globalThis).__zod_globalRegistry??(qh.__zod_globalRegistry=Ui());var pe=globalThis.__zod_globalRegistry;function Fc(e,t){return new e({type:"string",..._(t)})}function Oc(e,t){return new e({type:"string",coerce:!0,..._(t)})}function Ni(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,..._(t)})}function hn(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,..._(t)})}function Ri(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,..._(t)})}function Bi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",..._(t)})}function Li(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",..._(t)})}function Zi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",..._(t)})}function gn(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,..._(t)})}function Mi(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,..._(t)})}function qi(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,..._(t)})}function Vi(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,..._(t)})}function Wi(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,..._(t)})}function Gi(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,..._(t)})}function Ji(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,..._(t)})}function Ki(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,..._(t)})}function Hi(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,..._(t)})}function Yi(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,..._(t)})}function zc(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,..._(t)})}function Xi(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,..._(t)})}function Qi(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,..._(t)})}function eo(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,..._(t)})}function to(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,..._(t)})}function ro(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,..._(t)})}function no(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,..._(t)})}var Pc={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Ac(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,..._(t)})}function Tc(e,t){return new e({type:"string",format:"date",check:"string_format",..._(t)})}function jc(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,..._(t)})}function Uc(e,t){return new e({type:"string",format:"duration",check:"string_format",..._(t)})}function Nc(e,t){return new e({type:"number",checks:[],..._(t)})}function Rc(e,t){return new e({type:"number",coerce:!0,checks:[],..._(t)})}function Bc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",..._(t)})}function Lc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",..._(t)})}function Zc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",..._(t)})}function Mc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",..._(t)})}function qc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",..._(t)})}function Vc(e,t){return new e({type:"boolean",..._(t)})}function Wc(e,t){return new e({type:"boolean",coerce:!0,..._(t)})}function Gc(e,t){return new e({type:"bigint",..._(t)})}function Jc(e,t){return new e({type:"bigint",coerce:!0,..._(t)})}function Kc(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",..._(t)})}function Hc(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",..._(t)})}function Yc(e,t){return new e({type:"symbol",..._(t)})}function Xc(e,t){return new e({type:"undefined",..._(t)})}function Qc(e,t){return new e({type:"null",..._(t)})}function el(e){return new e({type:"any"})}function tl(e){return new e({type:"unknown"})}function rl(e,t){return new e({type:"never",..._(t)})}function nl(e,t){return new e({type:"void",..._(t)})}function il(e,t){return new e({type:"date",..._(t)})}function ol(e,t){return new e({type:"date",coerce:!0,..._(t)})}function sl(e,t){return new e({type:"nan",..._(t)})}function rt(e,t){return new _i({check:"less_than",..._(t),value:e,inclusive:!1})}function Oe(e,t){return new _i({check:"less_than",..._(t),value:e,inclusive:!0})}function nt(e,t){return new xi({check:"greater_than",..._(t),value:e,inclusive:!1})}function ye(e,t){return new xi({check:"greater_than",..._(t),value:e,inclusive:!0})}function io(e){return nt(0,e)}function oo(e){return rt(0,e)}function so(e){return Oe(0,e)}function ao(e){return ye(0,e)}function kt(e,t){return new Qa({check:"multiple_of",..._(t),value:e})}function St(e,t){return new ru({check:"max_size",..._(t),maximum:e})}function it(e,t){return new nu({check:"min_size",..._(t),minimum:e})}function Lt(e,t){return new iu({check:"size_equals",..._(t),size:e})}function Zt(e,t){return new ou({check:"max_length",..._(t),maximum:e})}function dt(e,t){return new su({check:"min_length",..._(t),minimum:e})}function Mt(e,t){return new au({check:"length_equals",..._(t),length:e})}function pr(e,t){return new uu({check:"string_format",format:"regex",..._(t),pattern:e})}function mr(e){return new cu({check:"string_format",format:"lowercase",..._(e)})}function fr(e){return new lu({check:"string_format",format:"uppercase",..._(e)})}function hr(e,t){return new du({check:"string_format",format:"includes",..._(t),includes:e})}function gr(e,t){return new pu({check:"string_format",format:"starts_with",..._(t),prefix:e})}function vr(e,t){return new mu({check:"string_format",format:"ends_with",..._(t),suffix:e})}function uo(e,t,n){return new fu({check:"property",property:e,schema:t,..._(n)})}function Dr(e,t){return new hu({check:"mime_type",mime:e,..._(t)})}function Ge(e){return new gu({check:"overwrite",tx:e})}function yr(e){return Ge(t=>t.normalize(e))}function br(){return Ge(e=>e.trim())}function $r(){return Ge(e=>e.toLowerCase())}function _r(){return Ge(e=>e.toUpperCase())}function xr(){return Ge(e=>fa(e))}function al(e,t,n){return new e({type:"array",element:t,..._(n)})}function B$(e,t,n){return new e({type:"union",options:t,..._(n)})}function L$(e,t,n){return new e({type:"union",options:t,inclusive:!1,..._(n)})}function Z$(e,t,n,i){return new e({type:"union",options:n,discriminator:t,..._(i)})}function M$(e,t,n){return new e({type:"intersection",left:t,right:n})}function q$(e,t,n,i){let r=n instanceof z,o=r?i:n,s=r?n:null;return new e({type:"tuple",items:t,rest:s,..._(o)})}function V$(e,t,n,i){return new e({type:"record",keyType:t,valueType:n,..._(i)})}function W$(e,t,n,i){return new e({type:"map",keyType:t,valueType:n,..._(i)})}function G$(e,t,n){return new e({type:"set",valueType:t,..._(n)})}function J$(e,t,n){let i=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:i,..._(n)})}function K$(e,t,n){return new e({type:"enum",entries:t,..._(n)})}function H$(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],..._(n)})}function ul(e,t){return new e({type:"file",..._(t)})}function Y$(e,t){return new e({type:"transform",transform:t})}function X$(e,t){return new e({type:"optional",innerType:t})}function Q$(e,t){return new e({type:"nullable",innerType:t})}function e_(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():ga(n)}})}function t_(e,t,n){return new e({type:"nonoptional",innerType:t,..._(n)})}function r_(e,t){return new e({type:"success",innerType:t})}function n_(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function i_(e,t,n){return new e({type:"pipe",in:t,out:n})}function o_(e,t){return new e({type:"readonly",innerType:t})}function s_(e,t,n){return new e({type:"template_literal",parts:t,..._(n)})}function a_(e,t){return new e({type:"lazy",getter:t})}function u_(e,t){return new e({type:"promise",innerType:t})}function cl(e,t,n){let i=_(n);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function ll(e,t,n){return new e({type:"custom",check:"custom",fn:t,..._(n)})}function dl(e){let t=Vh(n=>(n.addIssue=i=>{if(typeof i=="string")n.issues.push(or(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(or(r))}},e(n.value,n)));return t}function Vh(e,t){let n=new X({check:"custom",..._(t)});return n._zod.check=e,n}function pl(e){let t=new X({check:"describe"});return t._zod.onattach=[n=>{let i=pe.get(n)??{};pe.add(n,{...i,description:e})}],t._zod.check=()=>{},t}function ml(e){let t=new X({check:"meta"});return t._zod.onattach=[n=>{let i=pe.get(n)??{};pe.add(n,{...i,...e})}],t._zod.check=()=>{},t}function fl(e,t){let n=_(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(m=>typeof m=="string"?m.toLowerCase():m),r=r.map(m=>typeof m=="string"?m.toLowerCase():m));let o=new Set(i),s=new Set(r),a=e.Codec??pn,u=e.Boolean??ln,c=e.String??Bt,l=new c({type:"string",error:n.error}),d=new u({type:"boolean",error:n.error}),p=new a({type:"pipe",in:l,out:d,transform:((m,D)=>{let x=m;return n.case!=="sensitive"&&(x=x.toLowerCase()),o.has(x)?!0:s.has(x)?!1:(D.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...s],input:D.value,inst:p,continue:!1}),{})}),reverseTransform:((m,D)=>m===!0?i[0]||"true":r[0]||"false"),error:n.error});return p}function wr(e,t,n,i={}){let r=_(i),o={..._(i),check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:a=>n.test(a),...r};return n instanceof RegExp&&(o.pattern=n),new e(o)}function Ct(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??pe,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 V(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 s={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,s);let a=e._zod.toJSONSchema?.();if(a)s.schema=a;else{let l={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,l);else{let p=s.schema,m=t.processors[r.type];if(!m)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);m(e,t,p,l)}let d=e._zod.parent;d&&(s.ref||(s.ref=d),V(d,t,l),t.seen.get(d).isParent=!0)}let u=t.metadataRegistry.get(e);return u&&Object.assign(s.schema,u),t.io==="input"&&be(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&s.schema._prefault&&((i=s.schema).default??(i.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function It(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 s of e.seen.entries()){let a=e.metadataRegistry.get(s[0])?.id;if(a){let u=i.get(a);if(u&&u!==s[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(a,s[0])}}let r=s=>{let a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(s[0])?.id,p=e.external.uri??(D=>D);if(d)return{ref:p(d)};let m=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=m,{defId:m,ref:`${p("__shared")}#/${a}/${m}`}}if(s[1]===n)return{ref:"#"};let c=`#/${a}/`,l=s[1].schema.id??`__schema${e.counter++}`;return{defId:l,ref:c+l}},o=s=>{if(s[1].schema.$ref)return;let a=s[1],{ref:u,defId:c}=r(s);a.def={...a.schema},c&&(a.defId=c);let l=a.schema;for(let d in l)delete l[d];l.$ref=u};if(e.cycles==="throw")for(let s of e.seen.entries()){let a=s[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
65
65
 
66
- 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 c=e.external.registry.get(a[0])?.id;if(t!==a[0]&&c){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 wt(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 u=s.def??s.schema,c={...u},l=s.ref;if(s.ref=null,l){i(l);let p=e.seen.get(l),f=p.schema;if(f.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(f)):Object.assign(u,f),Object.assign(u,c),a._zod.parent===l)for(let x in u)x==="$ref"||x==="allOf"||x in c||delete u[x];if(f.$ref&&p.def)for(let x in u)x==="$ref"||x==="allOf"||x in p.def&&JSON.stringify(u[x])===JSON.stringify(p.def[x])&&delete u[x]}let d=a._zod.parent;if(d&&d!==l){i(d);let p=e.seen.get(d);if(p?.schema.$ref&&(u.$ref=p.schema.$ref,p.def))for(let f in u)f==="$ref"||f==="allOf"||f in p.def&&JSON.stringify(u[f])===JSON.stringify(p.def[f])&&delete u[f]}e.override({zodSchema:a,jsonSchema:u,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:hr(t,"input",e.processors),output:hr(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function ye(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 ye(i.element,n);if(i.type==="set")return ye(i.valueType,n);if(i.type==="lazy")return ye(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 ye(i.innerType,n);if(i.type==="intersection")return ye(i.left,n)||ye(i.right,n);if(i.type==="record"||i.type==="map")return ye(i.keyType,n)||ye(i.valueType,n);if(i.type==="pipe")return ye(i.in,n)||ye(i.out,n);if(i.type==="object"){for(let r in i.shape)if(ye(i.shape[r],n))return!0;return!1}if(i.type==="union"){for(let r of i.options)if(ye(r,n))return!0;return!1}if(i.type==="tuple"){for(let r of i.items)if(ye(r,n))return!0;return!!(i.rest&&ye(i.rest,n))}return!1}var Vc=(e,t={})=>n=>{let i=_t({...n,processors:t});return V(e,i),xt(i,e),wt(i,e)},hr=(e,t,n={})=>i=>{let{libraryOptions:r,target:o}=i??{},a=_t({...r??{},target:o,io:t,processors:n});return V(e,a),xt(a,e),wt(a,e)};var R0={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Wc=(e,t,n,i)=>{let r=n;r.type="string";let{minimum:o,maximum:a,format:s,patterns:u,contentEncoding:c}=e._zod.bag;if(typeof o=="number"&&(r.minLength=o),typeof a=="number"&&(r.maxLength=a),s&&(r.format=R0[s]??s,r.format===""&&delete r.format,s==="time"&&delete r.format),c&&(r.contentEncoding=c),u&&u.size>0){let l=[...u];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}))])}},Gc=(e,t,n,i)=>{let r=n,{minimum:o,maximum:a,format:s,multipleOf:u,exclusiveMaximum:c,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 c=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.maximum=c,r.exclusiveMaximum=!0):r.exclusiveMaximum=c),typeof a=="number"&&(r.maximum=a,typeof c=="number"&&t.target!=="draft-04"&&(c<=a?delete r.maximum:delete r.exclusiveMaximum)),typeof u=="number"&&(r.multipleOf=u)},Jc=(e,t,n,i)=>{n.type="boolean"},Kc=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Hc=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Yc=(e,t,n,i)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},Xc=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Qc=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},el=(e,t,n,i)=>{n.not={}},tl=(e,t,n,i)=>{},rl=(e,t,n,i)=>{},nl=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},il=(e,t,n,i)=>{let r=e._zod.def,o=Br(r.entries);o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),n.enum=o},ol=(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},al=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},sl=(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},ul=(e,t,n,i)=>{let r=n,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:u}=e._zod.bag;a!==void 0&&(o.minLength=a),s!==void 0&&(o.maxLength=s),u?u.length===1?(o.contentMediaType=u[0],Object.assign(r,o)):(Object.assign(r,o),r.anyOf=u.map(c=>({contentMediaType:c}))):Object.assign(r,o)},cl=(e,t,n,i)=>{n.type="boolean"},ll=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},dl=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},pl=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},ml=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},fl=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},hl=(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=V(o.element,t,{...i,path:[...i.path,"items"]})},gl=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="object",r.properties={};let a=o.shape;for(let c in a)r.properties[c]=V(a[c],t,{...i,path:[...i.path,"properties",c]});let s=new Set(Object.keys(a)),u=new Set([...s].filter(c=>{let l=o.shape[c]._zod;return t.io==="input"?l.optin===void 0:l.optout===void 0}));u.size>0&&(r.required=Array.from(u)),o.catchall?._zod.def.type==="never"?r.additionalProperties=!1:o.catchall?o.catchall&&(r.additionalProperties=V(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},Gi=(e,t,n,i)=>{let r=e._zod.def,o=r.inclusive===!1,a=r.options.map((s,u)=>V(s,t,{...i,path:[...i.path,o?"oneOf":"anyOf",u]}));o?n.oneOf=a:n.anyOf=a},vl=(e,t,n,i)=>{let r=e._zod.def,o=V(r.left,t,{...i,path:[...i.path,"allOf",0]}),a=V(r.right,t,{...i,path:[...i.path,"allOf",1]}),s=c=>"allOf"in c&&Object.keys(c).length===1,u=[...s(o)?o.allOf:[o],...s(a)?a.allOf:[a]];n.allOf=u},Dl=(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",u=o.items.map((p,f)=>V(p,t,{...i,path:[...i.path,a,f]})),c=o.rest?V(o.rest,t,{...i,path:[...i.path,s,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=u,c&&(r.items=c)):t.target==="openapi-3.0"?(r.items={anyOf:u},c&&r.items.anyOf.push(c),r.minItems=u.length,c||(r.maxItems=u.length)):(r.items=u,c&&(r.additionalItems=c));let{minimum:l,maximum:d}=e._zod.bag;typeof l=="number"&&(r.minItems=l),typeof d=="number"&&(r.maxItems=d)},yl=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="object";let a=o.keyType,u=a._zod.bag?.patterns;if(o.mode==="loose"&&u&&u.size>0){let l=V(o.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});r.patternProperties={};for(let d of u)r.patternProperties[d.source]=l}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=V(o.keyType,t,{...i,path:[...i.path,"propertyNames"]})),r.additionalProperties=V(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]});let c=a._zod.values;if(c){let l=[...c].filter(d=>typeof d=="string"||typeof d=="number");l.length>0&&(r.required=l)}},bl=(e,t,n,i)=>{let r=e._zod.def,o=V(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"}]},$l=(e,t,n,i)=>{let r=e._zod.def;V(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},_l=(e,t,n,i)=>{let r=e._zod.def;V(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},xl=(e,t,n,i)=>{let r=e._zod.def;V(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)))},wl=(e,t,n,i)=>{let r=e._zod.def;V(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},kl=(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;V(o,t,i);let a=t.seen.get(e);a.ref=o},Cl=(e,t,n,i)=>{let r=e._zod.def;V(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,n.readOnly=!0},Il=(e,t,n,i)=>{let r=e._zod.def;V(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},Ji=(e,t,n,i)=>{let r=e._zod.def;V(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},Sl=(e,t,n,i)=>{let r=e._zod.innerType;V(r,t,i);let o=t.seen.get(e);o.ref=r},Wi={string:Wc,number:Gc,boolean:Jc,bigint:Kc,symbol:Hc,null:Yc,undefined:Xc,void:Qc,never:el,any:tl,unknown:rl,date:nl,enum:il,literal:ol,nan:al,template_literal:sl,file:ul,success:cl,custom:ll,function:dl,transform:pl,map:ml,set:fl,array:hl,object:gl,union:Gi,intersection:vl,tuple:Dl,record:yl,nullable:bl,nonoptional:$l,default:_l,prefault:xl,catch:wl,pipe:kl,readonly:Cl,promise:Il,optional:Ji,lazy:Sl};function Ki(e,t){if("_idmap"in e){let i=e,r=_t({...t,processors:Wi}),o={};for(let u of i._idmap.entries()){let[c,l]=u;V(l,r)}let a={},s={registry:i,uri:t?.uri,defs:o};r.external=s;for(let u of i._idmap.entries()){let[c,l]=u;xt(r,l),a[c]=wt(r,l)}if(Object.keys(o).length>0){let u=r.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[u]:o}}return{schemas:a}}let n=_t({...t,processors:Wi});return V(e,n),xt(n,e),wt(n,e)}var Hi=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:Wi,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 V(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)),xt(this.ctx,t);let i=wt(this.ctx,t),{"~standard":r,...o}=i;return o}};var sh={};var on={};Xe(on,{ZodAny:()=>Xl,ZodArray:()=>rd,ZodBase64:()=>Do,ZodBase64URL:()=>yo,ZodBigInt:()=>_r,ZodBigIntFormat:()=>_o,ZodBoolean:()=>$r,ZodCIDRv4:()=>go,ZodCIDRv6:()=>vo,ZodCUID:()=>uo,ZodCUID2:()=>co,ZodCatch:()=>wd,ZodCodec:()=>Fo,ZodCustom:()=>gn,ZodCustomStringFormat:()=>yr,ZodDate:()=>dn,ZodDefault:()=>Dd,ZodDiscriminatedUnion:()=>id,ZodE164:()=>bo,ZodEmail:()=>oo,ZodEmoji:()=>ao,ZodEnum:()=>vr,ZodExactOptional:()=>hd,ZodFile:()=>md,ZodFunction:()=>Pd,ZodGUID:()=>an,ZodIPv4:()=>fo,ZodIPv6:()=>ho,ZodIntersection:()=>od,ZodJWT:()=>$o,ZodKSUID:()=>mo,ZodLazy:()=>Fd,ZodLiteral:()=>pd,ZodMAC:()=>Vl,ZodMap:()=>ld,ZodNaN:()=>Cd,ZodNanoID:()=>so,ZodNever:()=>ed,ZodNonOptional:()=>So,ZodNull:()=>Hl,ZodNullable:()=>vd,ZodNumber:()=>br,ZodNumberFormat:()=>jt,ZodObject:()=>mn,ZodOptional:()=>Io,ZodPipe:()=>Eo,ZodPrefault:()=>bd,ZodPromise:()=>zd,ZodReadonly:()=>Id,ZodRecord:()=>hn,ZodSet:()=>dd,ZodString:()=>Dr,ZodStringFormat:()=>J,ZodSuccess:()=>xd,ZodSymbol:()=>Jl,ZodTemplateLiteral:()=>Ed,ZodTransform:()=>fd,ZodTuple:()=>sd,ZodType:()=>A,ZodULID:()=>lo,ZodURL:()=>ln,ZodUUID:()=>rt,ZodUndefined:()=>Kl,ZodUnion:()=>fn,ZodUnknown:()=>Ql,ZodVoid:()=>td,ZodXID:()=>po,ZodXor:()=>nd,_ZodString:()=>io,_default:()=>yd,_function:()=>fg,any:()=>Wh,array:()=>pn,base64:()=>Eh,base64url:()=>Fh,bigint:()=>Zh,boolean:()=>Gl,catch:()=>kd,check:()=>hg,cidrv4:()=>Ih,cidrv6:()=>Sh,codec:()=>dg,cuid:()=>yh,cuid2:()=>bh,custom:()=>gg,date:()=>Jh,describe:()=>vg,discriminatedUnion:()=>eg,e164:()=>Oh,email:()=>ch,emoji:()=>vh,enum:()=>ko,exactOptional:()=>gd,file:()=>sg,float32:()=>Uh,float64:()=>Nh,function:()=>fg,guid:()=>lh,hash:()=>jh,hex:()=>Th,hostname:()=>Ah,httpUrl:()=>gh,instanceof:()=>yg,int:()=>no,int32:()=>Rh,int64:()=>Lh,intersection:()=>ad,ipv4:()=>wh,ipv6:()=>Ch,json:()=>$g,jwt:()=>zh,keyof:()=>Kh,ksuid:()=>xh,lazy:()=>Od,literal:()=>ag,looseObject:()=>Xh,looseRecord:()=>rg,mac:()=>kh,map:()=>ng,meta:()=>Dg,nan:()=>lg,nanoid:()=>Dh,nativeEnum:()=>og,never:()=>xo,nonoptional:()=>_d,null:()=>Yl,nullable:()=>un,nullish:()=>ug,number:()=>Wl,object:()=>Hh,optional:()=>sn,partialRecord:()=>tg,pipe:()=>cn,prefault:()=>$d,preprocess:()=>_g,promise:()=>mg,readonly:()=>Sd,record:()=>cd,refine:()=>Ad,set:()=>ig,strictObject:()=>Yh,string:()=>ro,stringFormat:()=>Ph,stringbool:()=>bg,success:()=>cg,superRefine:()=>Td,symbol:()=>qh,templateLiteral:()=>pg,transform:()=>Co,tuple:()=>ud,uint32:()=>Bh,uint64:()=>Mh,ulid:()=>$h,undefined:()=>Vh,union:()=>wo,unknown:()=>Tt,url:()=>hh,uuid:()=>dh,uuidv4:()=>ph,uuidv6:()=>mh,uuidv7:()=>fh,void:()=>Gh,xid:()=>_h,xor:()=>Qh});var Yi={};Xe(Yi,{endsWith:()=>sr,gt:()=>et,gte:()=>De,includes:()=>or,length:()=>At,lowercase:()=>nr,lt:()=>Qe,lte:()=>Fe,maxLength:()=>Pt,maxSize:()=>$t,mime:()=>ur,minLength:()=>ut,minSize:()=>tt,multipleOf:()=>bt,negative:()=>Li,nonnegative:()=>qi,nonpositive:()=>Mi,normalize:()=>cr,overwrite:()=>qe,positive:()=>Zi,property:()=>Vi,regex:()=>rr,size:()=>zt,slugify:()=>mr,startsWith:()=>ar,toLowerCase:()=>dr,toUpperCase:()=>pr,trim:()=>lr,uppercase:()=>ir});var gr={};Xe(gr,{ZodISODate:()=>Qi,ZodISODateTime:()=>Xi,ZodISODuration:()=>to,ZodISOTime:()=>eo,date:()=>Fl,datetime:()=>El,duration:()=>zl,time:()=>Ol});var Xi=m("ZodISODateTime",(e,t)=>{au.init(e,t),J.init(e,t)});function El(e){return lc(Xi,e)}var Qi=m("ZodISODate",(e,t)=>{su.init(e,t),J.init(e,t)});function Fl(e){return dc(Qi,e)}var eo=m("ZodISOTime",(e,t)=>{uu.init(e,t),J.init(e,t)});function Ol(e){return pc(eo,e)}var to=m("ZodISODuration",(e,t)=>{cu.init(e,t),J.init(e,t)});function zl(e){return mc(to,e)}var uh=(e,t)=>{Vr.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Gr(e,n)},flatten:{value:n=>Wr(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Gt,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Gt,2)}},isEmpty:{get(){return e.issues.length===0}}})},Z0=m("ZodError",uh),xe=m("ZodError",uh,{Parent:Error});var Pl=Ht(xe),Al=Yt(xe),Tl=Xt(xe),jl=Qt(xe),Ul=Kn(xe),Nl=Hn(xe),Rl=Yn(xe),Bl=Xn(xe),Zl=Qn(xe),Ll=ei(xe),Ml=ti(xe),ql=ri(xe);var A=m("ZodType",(e,t)=>(F.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:hr(e,"input"),output:hr(e,"output")}}),e.toJSONSchema=Vc(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone($.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)=>ve(e,n,i),e.brand=()=>e,e.register=((n,i)=>(n.add(e,i),e)),e.parse=(n,i)=>Pl(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>Tl(e,n,i),e.parseAsync=async(n,i)=>Al(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>jl(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>Ul(e,n,i),e.decode=(n,i)=>Nl(e,n,i),e.encodeAsync=async(n,i)=>Rl(e,n,i),e.decodeAsync=async(n,i)=>Bl(e,n,i),e.safeEncode=(n,i)=>Zl(e,n,i),e.safeDecode=(n,i)=>Ll(e,n,i),e.safeEncodeAsync=async(n,i)=>Ml(e,n,i),e.safeDecodeAsync=async(n,i)=>ql(e,n,i),e.refine=(n,i)=>e.check(Ad(n,i)),e.superRefine=n=>e.check(Td(n)),e.overwrite=n=>e.check(qe(n)),e.optional=()=>sn(e),e.exactOptional=()=>gd(e),e.nullable=()=>un(e),e.nullish=()=>sn(un(e)),e.nonoptional=n=>_d(e,n),e.array=()=>pn(e),e.or=n=>wo([e,n]),e.and=n=>ad(e,n),e.transform=n=>cn(e,Co(n)),e.default=n=>yd(e,n),e.prefault=n=>$d(e,n),e.catch=n=>kd(e,n),e.pipe=n=>cn(e,n),e.readonly=()=>Sd(e),e.describe=n=>{let i=e.clone();return de.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){return de.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return de.get(e);let i=e.clone();return de.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),io=m("_ZodString",(e,t)=>{Ot.init(e,t),A.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Wc(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(rr(...i)),e.includes=(...i)=>e.check(or(...i)),e.startsWith=(...i)=>e.check(ar(...i)),e.endsWith=(...i)=>e.check(sr(...i)),e.min=(...i)=>e.check(ut(...i)),e.max=(...i)=>e.check(Pt(...i)),e.length=(...i)=>e.check(At(...i)),e.nonempty=(...i)=>e.check(ut(1,...i)),e.lowercase=i=>e.check(nr(i)),e.uppercase=i=>e.check(ir(i)),e.trim=()=>e.check(lr()),e.normalize=(...i)=>e.check(cr(...i)),e.toLowerCase=()=>e.check(dr()),e.toUpperCase=()=>e.check(pr()),e.slugify=()=>e.check(mr())}),Dr=m("ZodString",(e,t)=>{Ot.init(e,t),io.init(e,t),e.email=n=>e.check($i(oo,n)),e.url=n=>e.check(nn(ln,n)),e.jwt=n=>e.check(Bi($o,n)),e.emoji=n=>e.check(Ci(ao,n)),e.guid=n=>e.check(rn(an,n)),e.uuid=n=>e.check(_i(rt,n)),e.uuidv4=n=>e.check(xi(rt,n)),e.uuidv6=n=>e.check(wi(rt,n)),e.uuidv7=n=>e.check(ki(rt,n)),e.nanoid=n=>e.check(Ii(so,n)),e.guid=n=>e.check(rn(an,n)),e.cuid=n=>e.check(Si(uo,n)),e.cuid2=n=>e.check(Ei(co,n)),e.ulid=n=>e.check(Fi(lo,n)),e.base64=n=>e.check(Ui(Do,n)),e.base64url=n=>e.check(Ni(yo,n)),e.xid=n=>e.check(Oi(po,n)),e.ksuid=n=>e.check(zi(mo,n)),e.ipv4=n=>e.check(Pi(fo,n)),e.ipv6=n=>e.check(Ai(ho,n)),e.cidrv4=n=>e.check(Ti(go,n)),e.cidrv6=n=>e.check(ji(vo,n)),e.e164=n=>e.check(Ri(bo,n)),e.datetime=n=>e.check(El(n)),e.date=n=>e.check(Fl(n)),e.time=n=>e.check(Ol(n)),e.duration=n=>e.check(zl(n))});function ro(e){return ac(Dr,e)}var J=m("ZodStringFormat",(e,t)=>{G.init(e,t),io.init(e,t)}),oo=m("ZodEmail",(e,t)=>{Ys.init(e,t),J.init(e,t)});function ch(e){return $i(oo,e)}var an=m("ZodGUID",(e,t)=>{Ks.init(e,t),J.init(e,t)});function lh(e){return rn(an,e)}var rt=m("ZodUUID",(e,t)=>{Hs.init(e,t),J.init(e,t)});function dh(e){return _i(rt,e)}function ph(e){return xi(rt,e)}function mh(e){return wi(rt,e)}function fh(e){return ki(rt,e)}var ln=m("ZodURL",(e,t)=>{Xs.init(e,t),J.init(e,t)});function hh(e){return nn(ln,e)}function gh(e){return nn(ln,{protocol:/^https?$/,hostname:Re.domain,...$.normalizeParams(e)})}var ao=m("ZodEmoji",(e,t)=>{Qs.init(e,t),J.init(e,t)});function vh(e){return Ci(ao,e)}var so=m("ZodNanoID",(e,t)=>{eu.init(e,t),J.init(e,t)});function Dh(e){return Ii(so,e)}var uo=m("ZodCUID",(e,t)=>{tu.init(e,t),J.init(e,t)});function yh(e){return Si(uo,e)}var co=m("ZodCUID2",(e,t)=>{ru.init(e,t),J.init(e,t)});function bh(e){return Ei(co,e)}var lo=m("ZodULID",(e,t)=>{nu.init(e,t),J.init(e,t)});function $h(e){return Fi(lo,e)}var po=m("ZodXID",(e,t)=>{iu.init(e,t),J.init(e,t)});function _h(e){return Oi(po,e)}var mo=m("ZodKSUID",(e,t)=>{ou.init(e,t),J.init(e,t)});function xh(e){return zi(mo,e)}var fo=m("ZodIPv4",(e,t)=>{lu.init(e,t),J.init(e,t)});function wh(e){return Pi(fo,e)}var Vl=m("ZodMAC",(e,t)=>{pu.init(e,t),J.init(e,t)});function kh(e){return uc(Vl,e)}var ho=m("ZodIPv6",(e,t)=>{du.init(e,t),J.init(e,t)});function Ch(e){return Ai(ho,e)}var go=m("ZodCIDRv4",(e,t)=>{mu.init(e,t),J.init(e,t)});function Ih(e){return Ti(go,e)}var vo=m("ZodCIDRv6",(e,t)=>{fu.init(e,t),J.init(e,t)});function Sh(e){return ji(vo,e)}var Do=m("ZodBase64",(e,t)=>{gu.init(e,t),J.init(e,t)});function Eh(e){return Ui(Do,e)}var yo=m("ZodBase64URL",(e,t)=>{vu.init(e,t),J.init(e,t)});function Fh(e){return Ni(yo,e)}var bo=m("ZodE164",(e,t)=>{Du.init(e,t),J.init(e,t)});function Oh(e){return Ri(bo,e)}var $o=m("ZodJWT",(e,t)=>{yu.init(e,t),J.init(e,t)});function zh(e){return Bi($o,e)}var yr=m("ZodCustomStringFormat",(e,t)=>{bu.init(e,t),J.init(e,t)});function Ph(e,t,n={}){return fr(yr,e,t,n)}function Ah(e){return fr(yr,"hostname",Re.hostname,e)}function Th(e){return fr(yr,"hex",Re.hex,e)}function jh(e,t){let n=t?.enc??"hex",i=`${e}_${n}`,r=Re[i];if(!r)throw new Error(`Unrecognized hash format: ${i}`);return fr(yr,i,r,t)}var br=m("ZodNumber",(e,t)=>{pi.init(e,t),A.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Gc(e,i,r,o),e.gt=(i,r)=>e.check(et(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(Qe(i,r)),e.lte=(i,r)=>e.check(Fe(i,r)),e.max=(i,r)=>e.check(Fe(i,r)),e.int=i=>e.check(no(i)),e.safe=i=>e.check(no(i)),e.positive=i=>e.check(et(0,i)),e.nonnegative=i=>e.check(De(0,i)),e.negative=i=>e.check(Qe(0,i)),e.nonpositive=i=>e.check(Fe(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 Wl(e){return fc(br,e)}var jt=m("ZodNumberFormat",(e,t)=>{$u.init(e,t),br.init(e,t)});function no(e){return gc(jt,e)}function Uh(e){return vc(jt,e)}function Nh(e){return Dc(jt,e)}function Rh(e){return yc(jt,e)}function Bh(e){return bc(jt,e)}var $r=m("ZodBoolean",(e,t)=>{Yr.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Jc(e,n,i,r)});function Gl(e){return $c($r,e)}var _r=m("ZodBigInt",(e,t)=>{mi.init(e,t),A.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Kc(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(et(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(Qe(i,r)),e.lte=(i,r)=>e.check(Fe(i,r)),e.max=(i,r)=>e.check(Fe(i,r)),e.positive=i=>e.check(et(BigInt(0),i)),e.negative=i=>e.check(Qe(BigInt(0),i)),e.nonpositive=i=>e.check(Fe(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 Zh(e){return xc(_r,e)}var _o=m("ZodBigIntFormat",(e,t)=>{_u.init(e,t),_r.init(e,t)});function Lh(e){return kc(_o,e)}function Mh(e){return Cc(_o,e)}var Jl=m("ZodSymbol",(e,t)=>{xu.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Hc(e,n,i,r)});function qh(e){return Ic(Jl,e)}var Kl=m("ZodUndefined",(e,t)=>{wu.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Xc(e,n,i,r)});function Vh(e){return Sc(Kl,e)}var Hl=m("ZodNull",(e,t)=>{ku.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Yc(e,n,i,r)});function Yl(e){return Ec(Hl,e)}var Xl=m("ZodAny",(e,t)=>{Cu.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>tl(e,n,i,r)});function Wh(){return Fc(Xl)}var Ql=m("ZodUnknown",(e,t)=>{Iu.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>rl(e,n,i,r)});function Tt(){return Oc(Ql)}var ed=m("ZodNever",(e,t)=>{Su.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>el(e,n,i,r)});function xo(e){return zc(ed,e)}var td=m("ZodVoid",(e,t)=>{Eu.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Qc(e,n,i,r)});function Gh(e){return Pc(td,e)}var dn=m("ZodDate",(e,t)=>{Fu.init(e,t),A.init(e,t),e._zod.processJSONSchema=(i,r,o)=>nl(e,i,r,o),e.min=(i,r)=>e.check(De(i,r)),e.max=(i,r)=>e.check(Fe(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 Jh(e){return Ac(dn,e)}var rd=m("ZodArray",(e,t)=>{Ou.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>hl(e,n,i,r),e.element=t.element,e.min=(n,i)=>e.check(ut(n,i)),e.nonempty=n=>e.check(ut(1,n)),e.max=(n,i)=>e.check(Pt(n,i)),e.length=(n,i)=>e.check(At(n,i)),e.unwrap=()=>e.element});function pn(e,t){return Uc(rd,e,t)}function Kh(e){let t=e._zod.def.shape;return ko(Object.keys(t))}var mn=m("ZodObject",(e,t)=>{zu.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>gl(e,n,i,r),$.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>ko(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Tt()}),e.loose=()=>e.clone({...e._zod.def,catchall:Tt()}),e.strict=()=>e.clone({...e._zod.def,catchall:xo()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>$.extend(e,n),e.safeExtend=n=>$.safeExtend(e,n),e.merge=n=>$.merge(e,n),e.pick=n=>$.pick(e,n),e.omit=n=>$.omit(e,n),e.partial=(...n)=>$.partial(Io,e,n[0]),e.required=(...n)=>$.required(So,e,n[0])});function Hh(e,t){let n={type:"object",shape:e??{},...$.normalizeParams(t)};return new mn(n)}function Yh(e,t){return new mn({type:"object",shape:e,catchall:xo(),...$.normalizeParams(t)})}function Xh(e,t){return new mn({type:"object",shape:e,catchall:Tt(),...$.normalizeParams(t)})}var fn=m("ZodUnion",(e,t)=>{Xr.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Gi(e,n,i,r),e.options=t.options});function wo(e,t){return new fn({type:"union",options:e,...$.normalizeParams(t)})}var nd=m("ZodXor",(e,t)=>{fn.init(e,t),Pu.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Gi(e,n,i,r),e.options=t.options});function Qh(e,t){return new nd({type:"union",options:e,inclusive:!1,...$.normalizeParams(t)})}var id=m("ZodDiscriminatedUnion",(e,t)=>{fn.init(e,t),Au.init(e,t)});function eg(e,t,n){return new id({type:"union",options:t,discriminator:e,...$.normalizeParams(n)})}var od=m("ZodIntersection",(e,t)=>{Tu.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>vl(e,n,i,r)});function ad(e,t){return new od({type:"intersection",left:e,right:t})}var sd=m("ZodTuple",(e,t)=>{fi.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Dl(e,n,i,r),e.rest=n=>e.clone({...e._zod.def,rest:n})});function ud(e,t,n){let i=t instanceof F,r=i?n:t,o=i?t:null;return new sd({type:"tuple",items:e,rest:o,...$.normalizeParams(r)})}var hn=m("ZodRecord",(e,t)=>{ju.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>yl(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType});function cd(e,t,n){return new hn({type:"record",keyType:e,valueType:t,...$.normalizeParams(n)})}function tg(e,t,n){let i=ve(e);return i._zod.values=void 0,new hn({type:"record",keyType:i,valueType:t,...$.normalizeParams(n)})}function rg(e,t,n){return new hn({type:"record",keyType:e,valueType:t,mode:"loose",...$.normalizeParams(n)})}var ld=m("ZodMap",(e,t)=>{Uu.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ml(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(tt(...n)),e.nonempty=n=>e.check(tt(1,n)),e.max=(...n)=>e.check($t(...n)),e.size=(...n)=>e.check(zt(...n))});function ng(e,t,n){return new ld({type:"map",keyType:e,valueType:t,...$.normalizeParams(n)})}var dd=m("ZodSet",(e,t)=>{Nu.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>fl(e,n,i,r),e.min=(...n)=>e.check(tt(...n)),e.nonempty=n=>e.check(tt(1,n)),e.max=(...n)=>e.check($t(...n)),e.size=(...n)=>e.check(zt(...n))});function ig(e,t){return new dd({type:"set",valueType:e,...$.normalizeParams(t)})}var vr=m("ZodEnum",(e,t)=>{Ru.init(e,t),A.init(e,t),e._zod.processJSONSchema=(i,r,o)=>il(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 vr({...t,checks:[],...$.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 vr({...t,checks:[],...$.normalizeParams(r),entries:o})}});function ko(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new vr({type:"enum",entries:n,...$.normalizeParams(t)})}function og(e,t){return new vr({type:"enum",entries:e,...$.normalizeParams(t)})}var pd=m("ZodLiteral",(e,t)=>{Bu.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ol(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 ag(e,t){return new pd({type:"literal",values:Array.isArray(e)?e:[e],...$.normalizeParams(t)})}var md=m("ZodFile",(e,t)=>{Zu.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ul(e,n,i,r),e.min=(n,i)=>e.check(tt(n,i)),e.max=(n,i)=>e.check($t(n,i)),e.mime=(n,i)=>e.check(ur(Array.isArray(n)?n:[n],i))});function sg(e){return Nc(md,e)}var fd=m("ZodTransform",(e,t)=>{Lu.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>pl(e,n,i,r),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new ht(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push($.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($.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 Co(e){return new fd({type:"transform",transform:e})}var Io=m("ZodOptional",(e,t)=>{hi.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ji(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function sn(e){return new Io({type:"optional",innerType:e})}var hd=m("ZodExactOptional",(e,t)=>{Mu.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ji(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function gd(e){return new hd({type:"optional",innerType:e})}var vd=m("ZodNullable",(e,t)=>{qu.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>bl(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function un(e){return new vd({type:"nullable",innerType:e})}function ug(e){return sn(un(e))}var Dd=m("ZodDefault",(e,t)=>{Vu.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>_l(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function yd(e,t){return new Dd({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():$.shallowClone(t)}})}var bd=m("ZodPrefault",(e,t)=>{Wu.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>xl(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function $d(e,t){return new bd({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():$.shallowClone(t)}})}var So=m("ZodNonOptional",(e,t)=>{Gu.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>$l(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function _d(e,t){return new So({type:"nonoptional",innerType:e,...$.normalizeParams(t)})}var xd=m("ZodSuccess",(e,t)=>{Ju.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>cl(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function cg(e){return new xd({type:"success",innerType:e})}var wd=m("ZodCatch",(e,t)=>{Ku.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>wl(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function kd(e,t){return new wd({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var Cd=m("ZodNaN",(e,t)=>{Hu.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>al(e,n,i,r)});function lg(e){return jc(Cd,e)}var Eo=m("ZodPipe",(e,t)=>{Yu.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>kl(e,n,i,r),e.in=t.in,e.out=t.out});function cn(e,t){return new Eo({type:"pipe",in:e,out:t})}var Fo=m("ZodCodec",(e,t)=>{Eo.init(e,t),Qr.init(e,t)});function dg(e,t,n){return new Fo({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}var Id=m("ZodReadonly",(e,t)=>{Xu.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Cl(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function Sd(e){return new Id({type:"readonly",innerType:e})}var Ed=m("ZodTemplateLiteral",(e,t)=>{Qu.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>sl(e,n,i,r)});function pg(e,t){return new Ed({type:"template_literal",parts:e,...$.normalizeParams(t)})}var Fd=m("ZodLazy",(e,t)=>{rc.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Sl(e,n,i,r),e.unwrap=()=>e._zod.def.getter()});function Od(e){return new Fd({type:"lazy",getter:e})}var zd=m("ZodPromise",(e,t)=>{tc.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Il(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function mg(e){return new zd({type:"promise",innerType:e})}var Pd=m("ZodFunction",(e,t)=>{ec.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>dl(e,n,i,r)});function fg(e){return new Pd({type:"function",input:Array.isArray(e?.input)?ud(e?.input):e?.input??pn(Tt()),output:e?.output??Tt()})}var gn=m("ZodCustom",(e,t)=>{nc.init(e,t),A.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ll(e,n,i,r)});function hg(e){let t=new Y({check:"custom"});return t._zod.check=e,t}function gg(e,t){return Rc(gn,e??(()=>!0),t)}function Ad(e,t={}){return Bc(gn,e,t)}function Td(e){return Zc(e)}var vg=Lc,Dg=Mc;function yg(e,t={}){let n=new gn({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...$.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 bg=(...e)=>qc({Codec:Fo,Boolean:$r,String:Dr},...e);function $g(e){let t=Od(()=>wo([ro(e),Wl(),Gl(),Yl(),pn(t),cd(ro(),t)]));return t}function _g(e,t){return cn(Co(e),t)}var M0={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 q0(e){ie({customError:e})}function V0(){return ie().customError}var jd;jd||(jd={});var w={...on,...Yi,iso:gr},W0=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 G0(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 J0(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 xg(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return w.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 w.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=J0(r,t),a=fe(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 w.null();if(r.length===0)return w.never();if(r.length===1)return w.literal(r[0]);if(r.every(a=>typeof a=="string"))return w.enum(r);let o=r.map(a=>w.literal(a));return o.length<2?o[0]:w.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return w.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(o=>{let a={...e,type:o};return xg(a,t)});return r.length===0?w.never():r.length===1?r[0]:w.union(r)}if(!n)return w.any();let i;switch(n){case"string":{let r=w.string();if(e.format){let o=e.format;o==="email"?r=r.check(w.email()):o==="uri"||o==="uri-reference"?r=r.check(w.url()):o==="uuid"||o==="guid"?r=r.check(w.uuid()):o==="date-time"?r=r.check(w.iso.datetime()):o==="date"?r=r.check(w.iso.date()):o==="time"?r=r.check(w.iso.time()):o==="duration"?r=r.check(w.iso.duration()):o==="ipv4"?r=r.check(w.ipv4()):o==="ipv6"?r=r.check(w.ipv6()):o==="mac"?r=r.check(w.mac()):o==="cidr"?r=r.check(w.cidrv4()):o==="cidr-v6"?r=r.check(w.cidrv6()):o==="base64"?r=r.check(w.base64()):o==="base64url"?r=r.check(w.base64url()):o==="e164"?r=r.check(w.e164()):o==="jwt"?r=r.check(w.jwt()):o==="emoji"?r=r.check(w.emoji()):o==="nanoid"?r=r.check(w.nanoid()):o==="cuid"?r=r.check(w.cuid()):o==="cuid2"?r=r.check(w.cuid2()):o==="ulid"?r=r.check(w.ulid()):o==="xid"?r=r.check(w.xid()):o==="ksuid"&&(r=r.check(w.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"?w.number().int():w.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=w.boolean();break}case"null":{i=w.null();break}case"object":{let r={},o=e.properties||{},a=new Set(e.required||[]);for(let[u,c]of Object.entries(o)){let l=fe(c,t);r[u]=a.has(u)?l:l.optional()}if(e.propertyNames){let u=fe(e.propertyNames,t),c=e.additionalProperties&&typeof e.additionalProperties=="object"?fe(e.additionalProperties,t):w.any();if(Object.keys(r).length===0){i=w.record(u,c);break}let l=w.object(r).passthrough(),d=w.looseRecord(u,c);i=w.intersection(l,d);break}if(e.patternProperties){let u=e.patternProperties,c=Object.keys(u),l=[];for(let p of c){let f=fe(u[p],t),g=w.string().regex(new RegExp(p));l.push(w.looseRecord(g,f))}let d=[];if(Object.keys(r).length>0&&d.push(w.object(r).passthrough()),d.push(...l),d.length===0)i=w.object({}).passthrough();else if(d.length===1)i=d[0];else{let p=w.intersection(d[0],d[1]);for(let f=2;f<d.length;f++)p=w.intersection(p,d[f]);i=p}break}let s=w.object(r);e.additionalProperties===!1?i=s.strict():typeof e.additionalProperties=="object"?i=s.catchall(fe(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(u=>fe(u,t)),s=o&&typeof o=="object"&&!Array.isArray(o)?fe(o,t):void 0;s?i=w.tuple(a).rest(s):i=w.tuple(a),typeof e.minItems=="number"&&(i=i.check(w.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(w.maxLength(e.maxItems)))}else if(Array.isArray(o)){let a=o.map(u=>fe(u,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?fe(e.additionalItems,t):void 0;s?i=w.tuple(a).rest(s):i=w.tuple(a),typeof e.minItems=="number"&&(i=i.check(w.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(w.maxLength(e.maxItems)))}else if(o!==void 0){let a=fe(o,t),s=w.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),i=s}else i=w.array(w.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 fe(e,t){if(typeof e=="boolean")return e?w.any():w.never();let n=xg(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(c=>fe(c,t)),u=w.union(s);n=i?w.intersection(n,u):u}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(c=>fe(c,t)),u=w.xor(s);n=i?w.intersection(n,u):u}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=i?n:w.any();else{let s=i?n:fe(e.allOf[0],t),u=i?0:1;for(let c=u;c<e.allOf.length;c++)s=w.intersection(s,fe(e.allOf[c],t));n=s}e.nullable===!0&&t.version==="openapi-3.0"&&(n=w.nullable(n)),e.readOnly===!0&&(n=w.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))W0.has(s)||(r[s]=e[s]);return Object.keys(r).length>0&&t.registry.add(n,r),n}function wg(e,t){if(typeof e=="boolean")return e?w.any():w.never();let n=G0(e,t?.defaultTarget),i=e.$defs||e.definitions||{},r={version:n,defs:i,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??de};return fe(e,r)}var Ud={};Xe(Ud,{bigint:()=>X0,boolean:()=>Y0,date:()=>Q0,number:()=>H0,string:()=>K0});function K0(e){return sc(Dr,e)}function H0(e){return hc(br,e)}function Y0(e){return _c($r,e)}function X0(e){return wc(_r,e)}function Q0(e){return Tc(dn,e)}ie(gi());var e$=".zenku",t$="config.json",r$=448,n$=384,i$=T.object({collection:T.string(),services:T.record(T.string(),T.string()).optional().default({}),token:T.string().optional().default(""),userId:T.string().optional().default(""),email:T.string().optional().default(""),tenantId:T.string().optional().default(""),accountId:T.string().optional().default(""),kanbanProject:T.string().optional().default("")}),o$=T.object({defaultProfile:T.string().optional().default(""),profiles:T.record(T.string(),i$).optional().default({})}),a$={collection:"users",services:{"auth-pb":"https://pb-agent-api.zenku.app","kanban-pb":"https://pb-kanban.zenku.app",kanban:"https://kanban-api.zenku.app","kanban-web":"https://kanban.zenku.app","library-pb":"https://pb-library.zenku.app",library:"https://library-api.zenku.app","library-web":"https://library.zenku.app",agent:"https://agent-api.zenku.app","agent-web":"https://agent.zenku.app",jobs:"https://jobs-api.zenku.app","kit-key":"https://kit-key.zenku.app"},token:"",userId:"",email:"",tenantId:"",accountId:"",kanbanProject:""};function Ve(e){if(e.services["auth-pb"])return e.services["auth-pb"];let t=Object.keys(e.services).find(n=>n.endsWith("-pb"));if(t)return e.services[t];throw new Error('no auth PB URL configured (add "auth-pb" to services, or run `zenku profile create`)')}function Nd(){let e=process.env.ZENKU_CONFIG_PATH;return e||(0,Oo.join)((0,kg.homedir)(),e$,t$)}function s$(){return(0,Oo.dirname)(Nd())}function Ut(){let e=Nd();if(!(0,lt.existsSync)(e))return{defaultProfile:"",profiles:{}};let t=(0,lt.readFileSync)(e,"utf-8"),n=JSON.parse(t);return o$.parse(n)}function vn(e){let t=s$();(0,lt.existsSync)(t)||(0,lt.mkdirSync)(t,{recursive:!0,mode:r$});let n=JSON.stringify(e,null,2);(0,lt.writeFileSync)(Nd(),n,{mode:n$})}function oe(e){if(e)return e;let t=process.env.ZENKU_PROFILE;if(t)return t;try{let n=Ut();if(n.defaultProfile)return n.defaultProfile}catch{}return"default"}function se(e){let t=Ut(),n=t.profiles[e];if(!n){if(e==="default")return{cfg:t,profile:{...a$}};throw new Error(`profile "${e}" not found (run \`zenku profile create ${e}\`)`)}return{cfg:t,profile:n}}function be(e,t,n){e.profiles[t]=n,vn(e)}function Rd(e){if(!e.token)throw new Error("no token in auth response");return{token:e.token,userId:e.record?.id??"",email:e.record?.email??""}}async function yn(e,t,n){let i=await fetch(`${e}${t}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(i.status>=400){let r=await i.json().catch(()=>({}));throw new Error(`${i.status}: ${r.message??await i.text()}`)}return await i.json()}async function u$(e,t){let n=await fetch(`${e}${t}`);if(n.status>=400){let i=await n.json().catch(()=>({}));throw new Error(`${n.status}: ${i.message??await n.text()}`)}return n.json()}async function Ig(e,t,n,i){let r=await yn(e,`/api/collections/${t}/auth-with-password`,{identity:n,password:i});return Rd(r)}async function Sg(e,t,n){let i=await yn(e,`/api/collections/${t}/request-otp`,{email:n});if(!i.otpId)throw new Error("no otpId in response");return i.otpId}async function Eg(e,t,n,i){let r=await yn(e,`/api/collections/${t}/auth-with-otp`,{otpId:n,password:i});return Rd(r)}async function Bd(e,t){let n=await u$(e,`/api/collections/${t}/auth-methods`);return{password:n.password?.enabled??!1,otp:n.otp?.enabled??!1,oauth2Providers:n.oauth2?.providers??[]}}async function Fg(e,t,n){let r=(0,Dn.randomBytes)(32).toString("base64url").replace(/=+$/,""),a=(0,Dn.createHash)("sha256").update(r).digest().toString("base64url").replace(/=+$/,""),u=(0,Dn.randomBytes)(16).toString("base64url").replace(/=+$/,""),{port:c,server:l,waitForCode:d}=await c$(u),p=`http://127.0.0.1:${c}/callback`,f=new URL(n.authUrl);f.searchParams.set("client_id",n.clientId),f.searchParams.set("redirect_uri",p),f.searchParams.set("response_type","code"),f.searchParams.set("state",u),f.searchParams.set("code_challenge",a),f.searchParams.set("code_challenge_method","S256"),n.scope&&f.searchParams.set("scope",n.scope),process.stdout.write(`Opening browser for ${n.displayName} login...
67
- `);let g=await import("node:child_process"),x=process.platform==="darwin"?"open":process.platform==="win32"?"start":"xdg-open";g.exec(`${x} "${f.toString()}"`),process.stdout.write(`Waiting for callback...
68
- `);try{let S=await d,N=await yn(e,`/api/collections/${t}/auth-with-oauth2`,{provider:n.name,code:S,codeVerifier:r,redirectURL:p});return Rd(N)}finally{l.close()}}function c$(e){return new Promise(t=>{let n,i,r=new Promise((a,s)=>{n=a,i=s}),o=(0,Cg.createServer)((a,s)=>{let u=new URL(a.url??"/",`http://${a.headers.host}`);if(u.pathname!=="/callback"){s.writeHead(404),s.end("Not found");return}if(u.searchParams.get("state")!==e){s.writeHead(400),s.end("State mismatch"),i(new Error("state mismatch"));return}let l=u.searchParams.get("error");if(l){let p=u.searchParams.get("error_description")??"";s.writeHead(200,{"Content-Type":"text/html"}),s.end(`<html><body><h1>Authentication failed</h1><p>${p}</p><p>You can close this window.</p></body></html>`),i(new Error(`${l}: ${p}`));return}let d=u.searchParams.get("code");if(!d){s.writeHead(400),s.end("No code"),i(new Error("no code in callback"));return}s.writeHead(200,{"Content-Type":"text/html"}),s.end("<html><body><h1>Authentication successful</h1><p>You can close this window.</p></body></html>"),n(d)});o.listen(0,"127.0.0.1",()=>{let a=o.address(),s=typeof a=="object"&&a?a.port:0;t({port:s,server:o,waitForCode:r})})})}function Og(e){let t=e.split(".");if(t.length!==3)throw new Error(`malformed JWT: expected 3 parts, got ${t.length}`);let n=t[1],i=Buffer.from(n,"base64url").toString("utf-8");return JSON.parse(i)}function zg(e){let t=Og(e);if(!t.exp)throw new Error("token has no exp claim");return new Date(t.exp*1e3)}var l$=1440*60*1e3;async function zo(e,t,n){if(!n.token)throw new Error("not logged in (run `zenku login`)");let i=Og(n.token),r=i.exp*1e3,o=Date.now();if(o>r)throw new Error("session expired (run `zenku login`)");if(i.refreshable&&r-o<l$)try{let a=await yn(Ve(n),`/api/collections/${n.collection}/auth-refresh`,{});if(a.token)return n.token=a.token,be(e,t,n),a.token}catch{}return n.token}function Zd(e){let t=Math.floor(e/1e3),n=Math.floor(t/60),i=Math.floor(n/60),r=Math.floor(i/24);return t<60?`${t}s`:n<60?`${n}m`:i<24?`${i}h ${n%60}m`:`${r}d ${i%24}h`}var Ld=null;function Md(e){Ld=e}function d$(){return Ld||(process.stdout.isTTY?"interactive":"non-interactive")}function pe(){return d$()==="interactive"}var ze=ce(Vd(),1),Zo=require("node:process");var Hd=ce(require("node:readline"),1),qg=require("node:stream"),bn=ce(Gd(),1);function v$({onlyFirst:e=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}var D$=v$();function Vg(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(D$,"")}function Wg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gg={exports:{}};(function(e){var t={};e.exports=t,t.eastAsianWidth=function(i){var r=i.charCodeAt(0),o=i.length==2?i.charCodeAt(1):0,a=r;return 55296<=r&&r<=56319&&56320<=o&&o<=57343&&(r&=1023,o&=1023,a=r<<10|o,a+=65536),a==12288||65281<=a&&a<=65376||65504<=a&&a<=65510?"F":a==8361||65377<=a&&a<=65470||65474<=a&&a<=65479||65482<=a&&a<=65487||65490<=a&&a<=65495||65498<=a&&a<=65500||65512<=a&&a<=65518?"H":4352<=a&&a<=4447||4515<=a&&a<=4519||4602<=a&&a<=4607||9001<=a&&a<=9002||11904<=a&&a<=11929||11931<=a&&a<=12019||12032<=a&&a<=12245||12272<=a&&a<=12283||12289<=a&&a<=12350||12353<=a&&a<=12438||12441<=a&&a<=12543||12549<=a&&a<=12589||12593<=a&&a<=12686||12688<=a&&a<=12730||12736<=a&&a<=12771||12784<=a&&a<=12830||12832<=a&&a<=12871||12880<=a&&a<=13054||13056<=a&&a<=19903||19968<=a&&a<=42124||42128<=a&&a<=42182||43360<=a&&a<=43388||44032<=a&&a<=55203||55216<=a&&a<=55238||55243<=a&&a<=55291||63744<=a&&a<=64255||65040<=a&&a<=65049||65072<=a&&a<=65106||65108<=a&&a<=65126||65128<=a&&a<=65131||110592<=a&&a<=110593||127488<=a&&a<=127490||127504<=a&&a<=127546||127552<=a&&a<=127560||127568<=a&&a<=127569||131072<=a&&a<=194367||177984<=a&&a<=196605||196608<=a&&a<=262141?"W":32<=a&&a<=126||162<=a&&a<=163||165<=a&&a<=166||a==172||a==175||10214<=a&&a<=10221||10629<=a&&a<=10630?"Na":a==161||a==164||167<=a&&a<=168||a==170||173<=a&&a<=174||176<=a&&a<=180||182<=a&&a<=186||188<=a&&a<=191||a==198||a==208||215<=a&&a<=216||222<=a&&a<=225||a==230||232<=a&&a<=234||236<=a&&a<=237||a==240||242<=a&&a<=243||247<=a&&a<=250||a==252||a==254||a==257||a==273||a==275||a==283||294<=a&&a<=295||a==299||305<=a&&a<=307||a==312||319<=a&&a<=322||a==324||328<=a&&a<=331||a==333||338<=a&&a<=339||358<=a&&a<=359||a==363||a==462||a==464||a==466||a==468||a==470||a==472||a==474||a==476||a==593||a==609||a==708||a==711||713<=a&&a<=715||a==717||a==720||728<=a&&a<=731||a==733||a==735||768<=a&&a<=879||913<=a&&a<=929||931<=a&&a<=937||945<=a&&a<=961||963<=a&&a<=969||a==1025||1040<=a&&a<=1103||a==1105||a==8208||8211<=a&&a<=8214||8216<=a&&a<=8217||8220<=a&&a<=8221||8224<=a&&a<=8226||8228<=a&&a<=8231||a==8240||8242<=a&&a<=8243||a==8245||a==8251||a==8254||a==8308||a==8319||8321<=a&&a<=8324||a==8364||a==8451||a==8453||a==8457||a==8467||a==8470||8481<=a&&a<=8482||a==8486||a==8491||8531<=a&&a<=8532||8539<=a&&a<=8542||8544<=a&&a<=8555||8560<=a&&a<=8569||a==8585||8592<=a&&a<=8601||8632<=a&&a<=8633||a==8658||a==8660||a==8679||a==8704||8706<=a&&a<=8707||8711<=a&&a<=8712||a==8715||a==8719||a==8721||a==8725||a==8730||8733<=a&&a<=8736||a==8739||a==8741||8743<=a&&a<=8748||a==8750||8756<=a&&a<=8759||8764<=a&&a<=8765||a==8776||a==8780||a==8786||8800<=a&&a<=8801||8804<=a&&a<=8807||8810<=a&&a<=8811||8814<=a&&a<=8815||8834<=a&&a<=8835||8838<=a&&a<=8839||a==8853||a==8857||a==8869||a==8895||a==8978||9312<=a&&a<=9449||9451<=a&&a<=9547||9552<=a&&a<=9587||9600<=a&&a<=9615||9618<=a&&a<=9621||9632<=a&&a<=9633||9635<=a&&a<=9641||9650<=a&&a<=9651||9654<=a&&a<=9655||9660<=a&&a<=9661||9664<=a&&a<=9665||9670<=a&&a<=9672||a==9675||9678<=a&&a<=9681||9698<=a&&a<=9701||a==9711||9733<=a&&a<=9734||a==9737||9742<=a&&a<=9743||9748<=a&&a<=9749||a==9756||a==9758||a==9792||a==9794||9824<=a&&a<=9825||9827<=a&&a<=9829||9831<=a&&a<=9834||9836<=a&&a<=9837||a==9839||9886<=a&&a<=9887||9918<=a&&a<=9919||9924<=a&&a<=9933||9935<=a&&a<=9953||a==9955||9960<=a&&a<=9983||a==10045||a==10071||10102<=a&&a<=10111||11093<=a&&a<=11097||12872<=a&&a<=12879||57344<=a&&a<=63743||65024<=a&&a<=65039||a==65533||127232<=a&&a<=127242||127248<=a&&a<=127277||127280<=a&&a<=127337||127344<=a&&a<=127386||917760<=a&&a<=917999||983040<=a&&a<=1048573||1048576<=a&&a<=1114109?"A":"N"},t.characterLength=function(i){var r=this.eastAsianWidth(i);return r=="F"||r=="W"||r=="A"?2:1};function n(i){return i.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}t.length=function(i){for(var r=n(i),o=0,a=0;a<r.length;a++)o=o+this.characterLength(r[a]);return o},t.slice=function(i,r,o){textLen=t.length(i),r=r||0,o=o||1,r<0&&(r=textLen+r),o<0&&(o=textLen+o);for(var a="",s=0,u=n(i),c=0;c<u.length;c++){var l=u[c],d=t.length(l);if(s>=r-(d==2?1:0))if(s+d<=o)a+=l;else break;s+=d}return a}})(Gg);var y$=Gg.exports,b$=Wg(y$),$$=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g},_$=Wg($$);function $n(e,t={}){if(typeof e!="string"||e.length===0||(t={ambiguousIsNarrow:!0,...t},e=Vg(e),e.length===0))return 0;e=e.replace(_$()," ");let n=t.ambiguousIsNarrow?1:2,i=0;for(let r of e){let o=r.codePointAt(0);if(!(o<=31||o>=127&&o<=159||o>=768&&o<=879))switch(b$.eastAsianWidth(r)){case"F":case"W":i+=2;break;case"A":i+=n;break;default:i+=1}}return i}var Jd=10,jg=(e=0)=>t=>`\x1B[${t+e}m`,Ug=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Ng=(e=0)=>(t,n,i)=>`\x1B[${38+e};2;${t};${n};${i}m`,ee={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]}};Object.keys(ee.modifier);var x$=Object.keys(ee.color),w$=Object.keys(ee.bgColor);[...x$,...w$];function k$(){let e=new Map;for(let[t,n]of Object.entries(ee)){for(let[i,r]of Object.entries(n))ee[i]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},n[i]=ee[i],e.set(r[0],r[1]);Object.defineProperty(ee,t,{value:n,enumerable:!1})}return Object.defineProperty(ee,"codes",{value:e,enumerable:!1}),ee.color.close="\x1B[39m",ee.bgColor.close="\x1B[49m",ee.color.ansi=jg(),ee.color.ansi256=Ug(),ee.color.ansi16m=Ng(),ee.bgColor.ansi=jg(Jd),ee.bgColor.ansi256=Ug(Jd),ee.bgColor.ansi16m=Ng(Jd),Object.defineProperties(ee,{rgbToAnsi256:{value:(t,n,i)=>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=>ee.rgbToAnsi256(...ee.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)=>ee.ansi256ToAnsi(ee.rgbToAnsi256(t,n,i)),enumerable:!1},hexToAnsi:{value:t=>ee.ansi256ToAnsi(ee.hexToAnsi256(t)),enumerable:!1}}),ee}var C$=k$(),Lo=new Set(["\x1B","\x9B"]),I$=39,Xd="\x07",Jg="[",S$="]",Kg="m",Qd=`${S$}8;;`,Rg=e=>`${Lo.values().next().value}${Jg}${e}${Kg}`,Bg=e=>`${Lo.values().next().value}${Qd}${e}${Xd}`,E$=e=>e.split(" ").map(t=>$n(t)),Kd=(e,t,n)=>{let i=[...t],r=!1,o=!1,a=$n(Vg(e[e.length-1]));for(let[s,u]of i.entries()){let c=$n(u);if(a+c<=n?e[e.length-1]+=u:(e.push(u),a=0),Lo.has(u)&&(r=!0,o=i.slice(s+1).join("").startsWith(Qd)),r){o?u===Xd&&(r=!1,o=!1):u===Kg&&(r=!1);continue}a+=c,a===n&&s<i.length-1&&(e.push(""),a=0)}!a&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},F$=e=>{let t=e.split(" "),n=t.length;for(;n>0&&!($n(t[n-1])>0);)n--;return n===t.length?e:t.slice(0,n).join(" ")+t.slice(n).join("")},O$=(e,t,n={})=>{if(n.trim!==!1&&e.trim()==="")return"";let i="",r,o,a=E$(e),s=[""];for(let[c,l]of e.split(" ").entries()){n.trim!==!1&&(s[s.length-1]=s[s.length-1].trimStart());let d=$n(s[s.length-1]);if(c!==0&&(d>=t&&(n.wordWrap===!1||n.trim===!1)&&(s.push(""),d=0),(d>0||n.trim===!1)&&(s[s.length-1]+=" ",d++)),n.hard&&a[c]>t){let p=t-d,f=1+Math.floor((a[c]-p-1)/t);Math.floor((a[c]-1)/t)<f&&s.push(""),Kd(s,l,t);continue}if(d+a[c]>t&&d>0&&a[c]>0){if(n.wordWrap===!1&&d<t){Kd(s,l,t);continue}s.push("")}if(d+a[c]>t&&n.wordWrap===!1){Kd(s,l,t);continue}s[s.length-1]+=l}n.trim!==!1&&(s=s.map(c=>F$(c)));let u=[...s.join(`
69
- `)];for(let[c,l]of u.entries()){if(i+=l,Lo.has(l)){let{groups:p}=new RegExp(`(?:\\${Jg}(?<code>\\d+)m|\\${Qd}(?<uri>.*)${Xd})`).exec(u.slice(c).join(""))||{groups:{}};if(p.code!==void 0){let f=Number.parseFloat(p.code);r=f===I$?void 0:f}else p.uri!==void 0&&(o=p.uri.length===0?void 0:p.uri)}let d=C$.codes.get(Number(r));u[c+1]===`
70
- `?(o&&(i+=Bg("")),r&&d&&(i+=Rg(d))):l===`
71
- `&&(r&&d&&(i+=Rg(r)),o&&(i+=Bg(o)))}return i};function Zg(e,t,n){return String(e).normalize().replace(/\r\n/g,`
66
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of e.seen.entries()){let a=s[1];if(t===s[0]){o(s);continue}if(e.external){let c=e.external.registry.get(s[0])?.id;if(t!==s[0]&&c){o(s);continue}}if(e.metadataRegistry.get(s[0])?.id){o(s);continue}if(a.cycle){o(s);continue}if(a.count>1&&e.reused==="ref"){o(s);continue}}}function Et(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=s=>{let a=e.seen.get(s);if(a.ref===null)return;let u=a.def??a.schema,c={...u},l=a.ref;if(a.ref=null,l){i(l);let p=e.seen.get(l),m=p.schema;if(m.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(m)):Object.assign(u,m),Object.assign(u,c),s._zod.parent===l)for(let x in u)x==="$ref"||x==="allOf"||x in c||delete u[x];if(m.$ref&&p.def)for(let x in u)x==="$ref"||x==="allOf"||x in p.def&&JSON.stringify(u[x])===JSON.stringify(p.def[x])&&delete u[x]}let d=s._zod.parent;if(d&&d!==l){i(d);let p=e.seen.get(d);if(p?.schema.$ref&&(u.$ref=p.schema.$ref,p.def))for(let m in u)m==="$ref"||m==="allOf"||m in p.def&&JSON.stringify(u[m])===JSON.stringify(p.def[m])&&delete u[m]}e.override({zodSchema:s,jsonSchema:u,path:a.path??[]})};for(let s of[...e.seen.entries()].reverse())i(s[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 s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(s)}Object.assign(r,n.def??n.schema);let o=e.external?.defs??{};for(let s of e.seen.entries()){let a=s[1];a.def&&a.defId&&(o[a.defId]=a.def)}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?r.$defs=o:r.definitions=o);try{let s=JSON.parse(JSON.stringify(r));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:kr(t,"input",e.processors),output:kr(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function be(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 be(i.element,n);if(i.type==="set")return be(i.valueType,n);if(i.type==="lazy")return be(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 be(i.innerType,n);if(i.type==="intersection")return be(i.left,n)||be(i.right,n);if(i.type==="record"||i.type==="map")return be(i.keyType,n)||be(i.valueType,n);if(i.type==="pipe")return be(i.in,n)||be(i.out,n);if(i.type==="object"){for(let r in i.shape)if(be(i.shape[r],n))return!0;return!1}if(i.type==="union"){for(let r of i.options)if(be(r,n))return!0;return!1}if(i.type==="tuple"){for(let r of i.items)if(be(r,n))return!0;return!!(i.rest&&be(i.rest,n))}return!1}var hl=(e,t={})=>n=>{let i=Ct({...n,processors:t});return V(e,i),It(i,e),Et(i,e)},kr=(e,t,n={})=>i=>{let{libraryOptions:r,target:o}=i??{},s=Ct({...r??{},target:o,io:t,processors:n});return V(e,s),It(s,e),Et(s,e)};var c_={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},gl=(e,t,n,i)=>{let r=n;r.type="string";let{minimum:o,maximum:s,format:a,patterns:u,contentEncoding:c}=e._zod.bag;if(typeof o=="number"&&(r.minLength=o),typeof s=="number"&&(r.maxLength=s),a&&(r.format=c_[a]??a,r.format===""&&delete r.format,a==="time"&&delete r.format),c&&(r.contentEncoding=c),u&&u.size>0){let l=[...u];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}))])}},vl=(e,t,n,i)=>{let r=n,{minimum:o,maximum:s,format:a,multipleOf:u,exclusiveMaximum:c,exclusiveMinimum:l}=e._zod.bag;typeof a=="string"&&a.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 c=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.maximum=c,r.exclusiveMaximum=!0):r.exclusiveMaximum=c),typeof s=="number"&&(r.maximum=s,typeof c=="number"&&t.target!=="draft-04"&&(c<=s?delete r.maximum:delete r.exclusiveMaximum)),typeof u=="number"&&(r.multipleOf=u)},Dl=(e,t,n,i)=>{n.type="boolean"},yl=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},bl=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},$l=(e,t,n,i)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},_l=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},xl=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},wl=(e,t,n,i)=>{n.not={}},kl=(e,t,n,i)=>{},Sl=(e,t,n,i)=>{},Cl=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Il=(e,t,n,i)=>{let r=e._zod.def,o=Xr(r.entries);o.every(s=>typeof s=="number")&&(n.type="number"),o.every(s=>typeof s=="string")&&(n.type="string"),n.enum=o},El=(e,t,n,i)=>{let r=e._zod.def,o=[];for(let s of r.values)if(s===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(s))}else o.push(s);if(o.length!==0)if(o.length===1){let s=o[0];n.type=s===null?"null":typeof s,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[s]:n.const=s}else o.every(s=>typeof s=="number")&&(n.type="number"),o.every(s=>typeof s=="string")&&(n.type="string"),o.every(s=>typeof s=="boolean")&&(n.type="boolean"),o.every(s=>s===null)&&(n.type="null"),n.enum=o},Fl=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Ol=(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},zl=(e,t,n,i)=>{let r=n,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:a,mime:u}=e._zod.bag;s!==void 0&&(o.minLength=s),a!==void 0&&(o.maxLength=a),u?u.length===1?(o.contentMediaType=u[0],Object.assign(r,o)):(Object.assign(r,o),r.anyOf=u.map(c=>({contentMediaType:c}))):Object.assign(r,o)},Pl=(e,t,n,i)=>{n.type="boolean"},Al=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Tl=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},jl=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Ul=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Nl=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Rl=(e,t,n,i)=>{let r=n,o=e._zod.def,{minimum:s,maximum:a}=e._zod.bag;typeof s=="number"&&(r.minItems=s),typeof a=="number"&&(r.maxItems=a),r.type="array",r.items=V(o.element,t,{...i,path:[...i.path,"items"]})},Bl=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="object",r.properties={};let s=o.shape;for(let c in s)r.properties[c]=V(s[c],t,{...i,path:[...i.path,"properties",c]});let a=new Set(Object.keys(s)),u=new Set([...a].filter(c=>{let l=o.shape[c]._zod;return t.io==="input"?l.optin===void 0:l.optout===void 0}));u.size>0&&(r.required=Array.from(u)),o.catchall?._zod.def.type==="never"?r.additionalProperties=!1:o.catchall?o.catchall&&(r.additionalProperties=V(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},lo=(e,t,n,i)=>{let r=e._zod.def,o=r.inclusive===!1,s=r.options.map((a,u)=>V(a,t,{...i,path:[...i.path,o?"oneOf":"anyOf",u]}));o?n.oneOf=s:n.anyOf=s},Ll=(e,t,n,i)=>{let r=e._zod.def,o=V(r.left,t,{...i,path:[...i.path,"allOf",0]}),s=V(r.right,t,{...i,path:[...i.path,"allOf",1]}),a=c=>"allOf"in c&&Object.keys(c).length===1,u=[...a(o)?o.allOf:[o],...a(s)?s.allOf:[s]];n.allOf=u},Zl=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="array";let s=t.target==="draft-2020-12"?"prefixItems":"items",a=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",u=o.items.map((p,m)=>V(p,t,{...i,path:[...i.path,s,m]})),c=o.rest?V(o.rest,t,{...i,path:[...i.path,a,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=u,c&&(r.items=c)):t.target==="openapi-3.0"?(r.items={anyOf:u},c&&r.items.anyOf.push(c),r.minItems=u.length,c||(r.maxItems=u.length)):(r.items=u,c&&(r.additionalItems=c));let{minimum:l,maximum:d}=e._zod.bag;typeof l=="number"&&(r.minItems=l),typeof d=="number"&&(r.maxItems=d)},Ml=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="object";let s=o.keyType,u=s._zod.bag?.patterns;if(o.mode==="loose"&&u&&u.size>0){let l=V(o.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});r.patternProperties={};for(let d of u)r.patternProperties[d.source]=l}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=V(o.keyType,t,{...i,path:[...i.path,"propertyNames"]})),r.additionalProperties=V(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]});let c=s._zod.values;if(c){let l=[...c].filter(d=>typeof d=="string"||typeof d=="number");l.length>0&&(r.required=l)}},ql=(e,t,n,i)=>{let r=e._zod.def,o=V(r.innerType,t,i),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=r.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},Vl=(e,t,n,i)=>{let r=e._zod.def;V(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},Wl=(e,t,n,i)=>{let r=e._zod.def;V(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},Gl=(e,t,n,i)=>{let r=e._zod.def;V(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)))},Jl=(e,t,n,i)=>{let r=e._zod.def;V(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType;let s;try{s=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=s},Kl=(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;V(o,t,i);let s=t.seen.get(e);s.ref=o},Hl=(e,t,n,i)=>{let r=e._zod.def;V(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,n.readOnly=!0},Yl=(e,t,n,i)=>{let r=e._zod.def;V(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},po=(e,t,n,i)=>{let r=e._zod.def;V(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},Xl=(e,t,n,i)=>{let r=e._zod.innerType;V(r,t,i);let o=t.seen.get(e);o.ref=r},co={string:gl,number:vl,boolean:Dl,bigint:yl,symbol:bl,null:$l,undefined:_l,void:xl,never:wl,any:kl,unknown:Sl,date:Cl,enum:Il,literal:El,nan:Fl,template_literal:Ol,file:zl,success:Pl,custom:Al,function:Tl,transform:jl,map:Ul,set:Nl,array:Rl,object:Bl,union:lo,intersection:Ll,tuple:Zl,record:Ml,nullable:ql,nonoptional:Vl,default:Wl,prefault:Gl,catch:Jl,pipe:Kl,readonly:Hl,promise:Yl,optional:po,lazy:Xl};function mo(e,t){if("_idmap"in e){let i=e,r=Ct({...t,processors:co}),o={};for(let u of i._idmap.entries()){let[c,l]=u;V(l,r)}let s={},a={registry:i,uri:t?.uri,defs:o};r.external=a;for(let u of i._idmap.entries()){let[c,l]=u;It(r,l),s[c]=Et(r,l)}if(Object.keys(o).length>0){let u=r.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[u]:o}}return{schemas:s}}let n=Ct({...t,processors:co});return V(e,n),It(n,e),Et(n,e)}var fo=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=Ct({processors:co,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 V(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)),It(this.ctx,t);let i=Et(this.ctx,t),{"~standard":r,...o}=i;return o}};var Wh={};var vn={};tt(vn,{ZodAny:()=>_d,ZodArray:()=>Sd,ZodBase64:()=>To,ZodBase64URL:()=>jo,ZodBigInt:()=>zr,ZodBigIntFormat:()=>Ro,ZodBoolean:()=>Or,ZodCIDRv4:()=>Po,ZodCIDRv6:()=>Ao,ZodCUID:()=>So,ZodCUID2:()=>Co,ZodCatch:()=>Jd,ZodCodec:()=>Go,ZodCustom:()=>In,ZodCustomStringFormat:()=>Er,ZodDate:()=>xn,ZodDefault:()=>Zd,ZodDiscriminatedUnion:()=>Id,ZodE164:()=>Uo,ZodEmail:()=>xo,ZodEmoji:()=>wo,ZodEnum:()=>Cr,ZodExactOptional:()=>Rd,ZodFile:()=>Ud,ZodFunction:()=>np,ZodGUID:()=>Dn,ZodIPv4:()=>Oo,ZodIPv6:()=>zo,ZodIntersection:()=>Ed,ZodJWT:()=>No,ZodKSUID:()=>Fo,ZodLazy:()=>ep,ZodLiteral:()=>jd,ZodMAC:()=>hd,ZodMap:()=>Ad,ZodNaN:()=>Hd,ZodNanoID:()=>ko,ZodNever:()=>wd,ZodNonOptional:()=>Vo,ZodNull:()=>bd,ZodNullable:()=>Ld,ZodNumber:()=>Fr,ZodNumberFormat:()=>Vt,ZodObject:()=>kn,ZodOptional:()=>qo,ZodPipe:()=>Wo,ZodPrefault:()=>qd,ZodPromise:()=>rp,ZodReadonly:()=>Yd,ZodRecord:()=>Cn,ZodSet:()=>Td,ZodString:()=>Ir,ZodStringFormat:()=>K,ZodSuccess:()=>Gd,ZodSymbol:()=>Dd,ZodTemplateLiteral:()=>Qd,ZodTransform:()=>Nd,ZodTuple:()=>Od,ZodType:()=>j,ZodULID:()=>Io,ZodURL:()=>_n,ZodUUID:()=>ot,ZodUndefined:()=>yd,ZodUnion:()=>Sn,ZodUnknown:()=>xd,ZodVoid:()=>kd,ZodXID:()=>Eo,ZodXor:()=>Cd,_ZodString:()=>_o,_default:()=>Md,_function:()=>Qg,any:()=>Og,array:()=>wn,base64:()=>fg,base64url:()=>hg,bigint:()=>Sg,boolean:()=>vd,catch:()=>Kd,check:()=>ev,cidrv4:()=>pg,cidrv6:()=>mg,codec:()=>Hg,cuid:()=>ig,cuid2:()=>og,custom:()=>tv,date:()=>Pg,describe:()=>rv,discriminatedUnion:()=>Rg,e164:()=>gg,email:()=>Jh,emoji:()=>rg,enum:()=>Zo,exactOptional:()=>Bd,file:()=>Wg,float32:()=>_g,float64:()=>xg,function:()=>Qg,guid:()=>Kh,hash:()=>$g,hex:()=>bg,hostname:()=>yg,httpUrl:()=>tg,instanceof:()=>iv,int:()=>$o,int32:()=>wg,int64:()=>Cg,intersection:()=>Fd,ipv4:()=>cg,ipv6:()=>dg,json:()=>sv,jwt:()=>vg,keyof:()=>Ag,ksuid:()=>ug,lazy:()=>tp,literal:()=>Vg,looseObject:()=>Ug,looseRecord:()=>Lg,mac:()=>lg,map:()=>Zg,meta:()=>nv,nan:()=>Kg,nanoid:()=>ng,nativeEnum:()=>qg,never:()=>Bo,nonoptional:()=>Wd,null:()=>$d,nullable:()=>bn,nullish:()=>Gg,number:()=>gd,object:()=>Tg,optional:()=>yn,partialRecord:()=>Bg,pipe:()=>$n,prefault:()=>Vd,preprocess:()=>av,promise:()=>Xg,readonly:()=>Xd,record:()=>Pd,refine:()=>ip,set:()=>Mg,strictObject:()=>jg,string:()=>bo,stringFormat:()=>Dg,stringbool:()=>ov,success:()=>Jg,superRefine:()=>op,symbol:()=>Eg,templateLiteral:()=>Yg,transform:()=>Mo,tuple:()=>zd,uint32:()=>kg,uint64:()=>Ig,ulid:()=>sg,undefined:()=>Fg,union:()=>Lo,unknown:()=>qt,url:()=>eg,uuid:()=>Hh,uuidv4:()=>Yh,uuidv6:()=>Xh,uuidv7:()=>Qh,void:()=>zg,xid:()=>ag,xor:()=>Ng});var ho={};tt(ho,{endsWith:()=>vr,gt:()=>nt,gte:()=>ye,includes:()=>hr,length:()=>Mt,lowercase:()=>mr,lt:()=>rt,lte:()=>Oe,maxLength:()=>Zt,maxSize:()=>St,mime:()=>Dr,minLength:()=>dt,minSize:()=>it,multipleOf:()=>kt,negative:()=>oo,nonnegative:()=>ao,nonpositive:()=>so,normalize:()=>yr,overwrite:()=>Ge,positive:()=>io,property:()=>uo,regex:()=>pr,size:()=>Lt,slugify:()=>xr,startsWith:()=>gr,toLowerCase:()=>$r,toUpperCase:()=>_r,trim:()=>br,uppercase:()=>fr});var Sr={};tt(Sr,{ZodISODate:()=>vo,ZodISODateTime:()=>go,ZodISODuration:()=>yo,ZodISOTime:()=>Do,date:()=>ed,datetime:()=>Ql,duration:()=>rd,time:()=>td});var go=f("ZodISODateTime",(e,t)=>{Fu.init(e,t),K.init(e,t)});function Ql(e){return Ac(go,e)}var vo=f("ZodISODate",(e,t)=>{Ou.init(e,t),K.init(e,t)});function ed(e){return Tc(vo,e)}var Do=f("ZodISOTime",(e,t)=>{zu.init(e,t),K.init(e,t)});function td(e){return jc(Do,e)}var yo=f("ZodISODuration",(e,t)=>{Pu.init(e,t),K.init(e,t)});function rd(e){return Uc(yo,e)}var Gh=(e,t)=>{nn.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>sn(e,n)},flatten:{value:n=>on(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,nr,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,nr,2)}},isEmpty:{get(){return e.issues.length===0}}})},d_=f("ZodError",Gh),we=f("ZodError",Gh,{Parent:Error});var nd=sr(we),id=ar(we),od=ur(we),sd=cr(we),ad=pi(we),ud=mi(we),cd=fi(we),ld=hi(we),dd=gi(we),pd=vi(we),md=Di(we),fd=yi(we);var j=f("ZodType",(e,t)=>(z.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:kr(e,"input"),output:kr(e,"output")}}),e.toJSONSchema=hl(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone($.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)=>De(e,n,i),e.brand=()=>e,e.register=((n,i)=>(n.add(e,i),e)),e.parse=(n,i)=>nd(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>od(e,n,i),e.parseAsync=async(n,i)=>id(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>sd(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>ad(e,n,i),e.decode=(n,i)=>ud(e,n,i),e.encodeAsync=async(n,i)=>cd(e,n,i),e.decodeAsync=async(n,i)=>ld(e,n,i),e.safeEncode=(n,i)=>dd(e,n,i),e.safeDecode=(n,i)=>pd(e,n,i),e.safeEncodeAsync=async(n,i)=>md(e,n,i),e.safeDecodeAsync=async(n,i)=>fd(e,n,i),e.refine=(n,i)=>e.check(ip(n,i)),e.superRefine=n=>e.check(op(n)),e.overwrite=n=>e.check(Ge(n)),e.optional=()=>yn(e),e.exactOptional=()=>Bd(e),e.nullable=()=>bn(e),e.nullish=()=>yn(bn(e)),e.nonoptional=n=>Wd(e,n),e.array=()=>wn(e),e.or=n=>Lo([e,n]),e.and=n=>Fd(e,n),e.transform=n=>$n(e,Mo(n)),e.default=n=>Md(e,n),e.prefault=n=>Vd(e,n),e.catch=n=>Kd(e,n),e.pipe=n=>$n(e,n),e.readonly=()=>Xd(e),e.describe=n=>{let i=e.clone();return pe.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){return pe.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return pe.get(e);let i=e.clone();return pe.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),_o=f("_ZodString",(e,t)=>{Bt.init(e,t),j.init(e,t),e._zod.processJSONSchema=(i,r,o)=>gl(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(pr(...i)),e.includes=(...i)=>e.check(hr(...i)),e.startsWith=(...i)=>e.check(gr(...i)),e.endsWith=(...i)=>e.check(vr(...i)),e.min=(...i)=>e.check(dt(...i)),e.max=(...i)=>e.check(Zt(...i)),e.length=(...i)=>e.check(Mt(...i)),e.nonempty=(...i)=>e.check(dt(1,...i)),e.lowercase=i=>e.check(mr(i)),e.uppercase=i=>e.check(fr(i)),e.trim=()=>e.check(br()),e.normalize=(...i)=>e.check(yr(...i)),e.toLowerCase=()=>e.check($r()),e.toUpperCase=()=>e.check(_r()),e.slugify=()=>e.check(xr())}),Ir=f("ZodString",(e,t)=>{Bt.init(e,t),_o.init(e,t),e.email=n=>e.check(Ni(xo,n)),e.url=n=>e.check(gn(_n,n)),e.jwt=n=>e.check(no(No,n)),e.emoji=n=>e.check(Mi(wo,n)),e.guid=n=>e.check(hn(Dn,n)),e.uuid=n=>e.check(Ri(ot,n)),e.uuidv4=n=>e.check(Bi(ot,n)),e.uuidv6=n=>e.check(Li(ot,n)),e.uuidv7=n=>e.check(Zi(ot,n)),e.nanoid=n=>e.check(qi(ko,n)),e.guid=n=>e.check(hn(Dn,n)),e.cuid=n=>e.check(Vi(So,n)),e.cuid2=n=>e.check(Wi(Co,n)),e.ulid=n=>e.check(Gi(Io,n)),e.base64=n=>e.check(eo(To,n)),e.base64url=n=>e.check(to(jo,n)),e.xid=n=>e.check(Ji(Eo,n)),e.ksuid=n=>e.check(Ki(Fo,n)),e.ipv4=n=>e.check(Hi(Oo,n)),e.ipv6=n=>e.check(Yi(zo,n)),e.cidrv4=n=>e.check(Xi(Po,n)),e.cidrv6=n=>e.check(Qi(Ao,n)),e.e164=n=>e.check(ro(Uo,n)),e.datetime=n=>e.check(Ql(n)),e.date=n=>e.check(ed(n)),e.time=n=>e.check(td(n)),e.duration=n=>e.check(rd(n))});function bo(e){return Fc(Ir,e)}var K=f("ZodStringFormat",(e,t)=>{J.init(e,t),_o.init(e,t)}),xo=f("ZodEmail",(e,t)=>{$u.init(e,t),K.init(e,t)});function Jh(e){return Ni(xo,e)}var Dn=f("ZodGUID",(e,t)=>{yu.init(e,t),K.init(e,t)});function Kh(e){return hn(Dn,e)}var ot=f("ZodUUID",(e,t)=>{bu.init(e,t),K.init(e,t)});function Hh(e){return Ri(ot,e)}function Yh(e){return Bi(ot,e)}function Xh(e){return Li(ot,e)}function Qh(e){return Zi(ot,e)}var _n=f("ZodURL",(e,t)=>{_u.init(e,t),K.init(e,t)});function eg(e){return gn(_n,e)}function tg(e){return gn(_n,{protocol:/^https?$/,hostname:Ze.domain,...$.normalizeParams(e)})}var wo=f("ZodEmoji",(e,t)=>{xu.init(e,t),K.init(e,t)});function rg(e){return Mi(wo,e)}var ko=f("ZodNanoID",(e,t)=>{wu.init(e,t),K.init(e,t)});function ng(e){return qi(ko,e)}var So=f("ZodCUID",(e,t)=>{ku.init(e,t),K.init(e,t)});function ig(e){return Vi(So,e)}var Co=f("ZodCUID2",(e,t)=>{Su.init(e,t),K.init(e,t)});function og(e){return Wi(Co,e)}var Io=f("ZodULID",(e,t)=>{Cu.init(e,t),K.init(e,t)});function sg(e){return Gi(Io,e)}var Eo=f("ZodXID",(e,t)=>{Iu.init(e,t),K.init(e,t)});function ag(e){return Ji(Eo,e)}var Fo=f("ZodKSUID",(e,t)=>{Eu.init(e,t),K.init(e,t)});function ug(e){return Ki(Fo,e)}var Oo=f("ZodIPv4",(e,t)=>{Au.init(e,t),K.init(e,t)});function cg(e){return Hi(Oo,e)}var hd=f("ZodMAC",(e,t)=>{ju.init(e,t),K.init(e,t)});function lg(e){return zc(hd,e)}var zo=f("ZodIPv6",(e,t)=>{Tu.init(e,t),K.init(e,t)});function dg(e){return Yi(zo,e)}var Po=f("ZodCIDRv4",(e,t)=>{Uu.init(e,t),K.init(e,t)});function pg(e){return Xi(Po,e)}var Ao=f("ZodCIDRv6",(e,t)=>{Nu.init(e,t),K.init(e,t)});function mg(e){return Qi(Ao,e)}var To=f("ZodBase64",(e,t)=>{Bu.init(e,t),K.init(e,t)});function fg(e){return eo(To,e)}var jo=f("ZodBase64URL",(e,t)=>{Lu.init(e,t),K.init(e,t)});function hg(e){return to(jo,e)}var Uo=f("ZodE164",(e,t)=>{Zu.init(e,t),K.init(e,t)});function gg(e){return ro(Uo,e)}var No=f("ZodJWT",(e,t)=>{Mu.init(e,t),K.init(e,t)});function vg(e){return no(No,e)}var Er=f("ZodCustomStringFormat",(e,t)=>{qu.init(e,t),K.init(e,t)});function Dg(e,t,n={}){return wr(Er,e,t,n)}function yg(e){return wr(Er,"hostname",Ze.hostname,e)}function bg(e){return wr(Er,"hex",Ze.hex,e)}function $g(e,t){let n=t?.enc??"hex",i=`${e}_${n}`,r=Ze[i];if(!r)throw new Error(`Unrecognized hash format: ${i}`);return wr(Er,i,r,t)}var Fr=f("ZodNumber",(e,t)=>{Ei.init(e,t),j.init(e,t),e._zod.processJSONSchema=(i,r,o)=>vl(e,i,r,o),e.gt=(i,r)=>e.check(nt(i,r)),e.gte=(i,r)=>e.check(ye(i,r)),e.min=(i,r)=>e.check(ye(i,r)),e.lt=(i,r)=>e.check(rt(i,r)),e.lte=(i,r)=>e.check(Oe(i,r)),e.max=(i,r)=>e.check(Oe(i,r)),e.int=i=>e.check($o(i)),e.safe=i=>e.check($o(i)),e.positive=i=>e.check(nt(0,i)),e.nonnegative=i=>e.check(ye(0,i)),e.negative=i=>e.check(rt(0,i)),e.nonpositive=i=>e.check(Oe(0,i)),e.multipleOf=(i,r)=>e.check(kt(i,r)),e.step=(i,r)=>e.check(kt(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 gd(e){return Nc(Fr,e)}var Vt=f("ZodNumberFormat",(e,t)=>{Vu.init(e,t),Fr.init(e,t)});function $o(e){return Bc(Vt,e)}function _g(e){return Lc(Vt,e)}function xg(e){return Zc(Vt,e)}function wg(e){return Mc(Vt,e)}function kg(e){return qc(Vt,e)}var Or=f("ZodBoolean",(e,t)=>{ln.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Dl(e,n,i,r)});function vd(e){return Vc(Or,e)}var zr=f("ZodBigInt",(e,t)=>{Fi.init(e,t),j.init(e,t),e._zod.processJSONSchema=(i,r,o)=>yl(e,i,r,o),e.gte=(i,r)=>e.check(ye(i,r)),e.min=(i,r)=>e.check(ye(i,r)),e.gt=(i,r)=>e.check(nt(i,r)),e.gte=(i,r)=>e.check(ye(i,r)),e.min=(i,r)=>e.check(ye(i,r)),e.lt=(i,r)=>e.check(rt(i,r)),e.lte=(i,r)=>e.check(Oe(i,r)),e.max=(i,r)=>e.check(Oe(i,r)),e.positive=i=>e.check(nt(BigInt(0),i)),e.negative=i=>e.check(rt(BigInt(0),i)),e.nonpositive=i=>e.check(Oe(BigInt(0),i)),e.nonnegative=i=>e.check(ye(BigInt(0),i)),e.multipleOf=(i,r)=>e.check(kt(i,r));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function Sg(e){return Gc(zr,e)}var Ro=f("ZodBigIntFormat",(e,t)=>{Wu.init(e,t),zr.init(e,t)});function Cg(e){return Kc(Ro,e)}function Ig(e){return Hc(Ro,e)}var Dd=f("ZodSymbol",(e,t)=>{Gu.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>bl(e,n,i,r)});function Eg(e){return Yc(Dd,e)}var yd=f("ZodUndefined",(e,t)=>{Ju.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>_l(e,n,i,r)});function Fg(e){return Xc(yd,e)}var bd=f("ZodNull",(e,t)=>{Ku.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>$l(e,n,i,r)});function $d(e){return Qc(bd,e)}var _d=f("ZodAny",(e,t)=>{Hu.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>kl(e,n,i,r)});function Og(){return el(_d)}var xd=f("ZodUnknown",(e,t)=>{Yu.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Sl(e,n,i,r)});function qt(){return tl(xd)}var wd=f("ZodNever",(e,t)=>{Xu.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>wl(e,n,i,r)});function Bo(e){return rl(wd,e)}var kd=f("ZodVoid",(e,t)=>{Qu.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>xl(e,n,i,r)});function zg(e){return nl(kd,e)}var xn=f("ZodDate",(e,t)=>{ec.init(e,t),j.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Cl(e,i,r,o),e.min=(i,r)=>e.check(ye(i,r)),e.max=(i,r)=>e.check(Oe(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 Pg(e){return il(xn,e)}var Sd=f("ZodArray",(e,t)=>{tc.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Rl(e,n,i,r),e.element=t.element,e.min=(n,i)=>e.check(dt(n,i)),e.nonempty=n=>e.check(dt(1,n)),e.max=(n,i)=>e.check(Zt(n,i)),e.length=(n,i)=>e.check(Mt(n,i)),e.unwrap=()=>e.element});function wn(e,t){return al(Sd,e,t)}function Ag(e){let t=e._zod.def.shape;return Zo(Object.keys(t))}var kn=f("ZodObject",(e,t)=>{rc.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Bl(e,n,i,r),$.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>Zo(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:qt()}),e.loose=()=>e.clone({...e._zod.def,catchall:qt()}),e.strict=()=>e.clone({...e._zod.def,catchall:Bo()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>$.extend(e,n),e.safeExtend=n=>$.safeExtend(e,n),e.merge=n=>$.merge(e,n),e.pick=n=>$.pick(e,n),e.omit=n=>$.omit(e,n),e.partial=(...n)=>$.partial(qo,e,n[0]),e.required=(...n)=>$.required(Vo,e,n[0])});function Tg(e,t){let n={type:"object",shape:e??{},...$.normalizeParams(t)};return new kn(n)}function jg(e,t){return new kn({type:"object",shape:e,catchall:Bo(),...$.normalizeParams(t)})}function Ug(e,t){return new kn({type:"object",shape:e,catchall:qt(),...$.normalizeParams(t)})}var Sn=f("ZodUnion",(e,t)=>{dn.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>lo(e,n,i,r),e.options=t.options});function Lo(e,t){return new Sn({type:"union",options:e,...$.normalizeParams(t)})}var Cd=f("ZodXor",(e,t)=>{Sn.init(e,t),nc.init(e,t),e._zod.processJSONSchema=(n,i,r)=>lo(e,n,i,r),e.options=t.options});function Ng(e,t){return new Cd({type:"union",options:e,inclusive:!1,...$.normalizeParams(t)})}var Id=f("ZodDiscriminatedUnion",(e,t)=>{Sn.init(e,t),ic.init(e,t)});function Rg(e,t,n){return new Id({type:"union",options:t,discriminator:e,...$.normalizeParams(n)})}var Ed=f("ZodIntersection",(e,t)=>{oc.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ll(e,n,i,r)});function Fd(e,t){return new Ed({type:"intersection",left:e,right:t})}var Od=f("ZodTuple",(e,t)=>{Oi.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Zl(e,n,i,r),e.rest=n=>e.clone({...e._zod.def,rest:n})});function zd(e,t,n){let i=t instanceof z,r=i?n:t,o=i?t:null;return new Od({type:"tuple",items:e,rest:o,...$.normalizeParams(r)})}var Cn=f("ZodRecord",(e,t)=>{sc.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ml(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType});function Pd(e,t,n){return new Cn({type:"record",keyType:e,valueType:t,...$.normalizeParams(n)})}function Bg(e,t,n){let i=De(e);return i._zod.values=void 0,new Cn({type:"record",keyType:i,valueType:t,...$.normalizeParams(n)})}function Lg(e,t,n){return new Cn({type:"record",keyType:e,valueType:t,mode:"loose",...$.normalizeParams(n)})}var Ad=f("ZodMap",(e,t)=>{ac.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ul(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(it(...n)),e.nonempty=n=>e.check(it(1,n)),e.max=(...n)=>e.check(St(...n)),e.size=(...n)=>e.check(Lt(...n))});function Zg(e,t,n){return new Ad({type:"map",keyType:e,valueType:t,...$.normalizeParams(n)})}var Td=f("ZodSet",(e,t)=>{uc.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Nl(e,n,i,r),e.min=(...n)=>e.check(it(...n)),e.nonempty=n=>e.check(it(1,n)),e.max=(...n)=>e.check(St(...n)),e.size=(...n)=>e.check(Lt(...n))});function Mg(e,t){return new Td({type:"set",valueType:e,...$.normalizeParams(t)})}var Cr=f("ZodEnum",(e,t)=>{cc.init(e,t),j.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Il(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 s of i)if(n.has(s))o[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Cr({...t,checks:[],...$.normalizeParams(r),entries:o})},e.exclude=(i,r)=>{let o={...t.entries};for(let s of i)if(n.has(s))delete o[s];else throw new Error(`Key ${s} not found in enum`);return new Cr({...t,checks:[],...$.normalizeParams(r),entries:o})}});function Zo(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Cr({type:"enum",entries:n,...$.normalizeParams(t)})}function qg(e,t){return new Cr({type:"enum",entries:e,...$.normalizeParams(t)})}var jd=f("ZodLiteral",(e,t)=>{lc.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>El(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 Vg(e,t){return new jd({type:"literal",values:Array.isArray(e)?e:[e],...$.normalizeParams(t)})}var Ud=f("ZodFile",(e,t)=>{dc.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>zl(e,n,i,r),e.min=(n,i)=>e.check(it(n,i)),e.max=(n,i)=>e.check(St(n,i)),e.mime=(n,i)=>e.check(Dr(Array.isArray(n)?n:[n],i))});function Wg(e){return ul(Ud,e)}var Nd=f("ZodTransform",(e,t)=>{pc.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>jl(e,n,i,r),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new bt(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push($.issue(o,n.value,t));else{let s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=e),n.issues.push($.issue(s))}};let r=t.transform(n.value,n);return r instanceof Promise?r.then(o=>(n.value=o,n)):(n.value=r,n)}});function Mo(e){return new Nd({type:"transform",transform:e})}var qo=f("ZodOptional",(e,t)=>{zi.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>po(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function yn(e){return new qo({type:"optional",innerType:e})}var Rd=f("ZodExactOptional",(e,t)=>{mc.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>po(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function Bd(e){return new Rd({type:"optional",innerType:e})}var Ld=f("ZodNullable",(e,t)=>{fc.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ql(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function bn(e){return new Ld({type:"nullable",innerType:e})}function Gg(e){return yn(bn(e))}var Zd=f("ZodDefault",(e,t)=>{hc.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Wl(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Md(e,t){return new Zd({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():$.shallowClone(t)}})}var qd=f("ZodPrefault",(e,t)=>{gc.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Gl(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function Vd(e,t){return new qd({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():$.shallowClone(t)}})}var Vo=f("ZodNonOptional",(e,t)=>{vc.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Vl(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function Wd(e,t){return new Vo({type:"nonoptional",innerType:e,...$.normalizeParams(t)})}var Gd=f("ZodSuccess",(e,t)=>{Dc.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Pl(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function Jg(e){return new Gd({type:"success",innerType:e})}var Jd=f("ZodCatch",(e,t)=>{yc.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Jl(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Kd(e,t){return new Jd({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var Hd=f("ZodNaN",(e,t)=>{bc.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Fl(e,n,i,r)});function Kg(e){return sl(Hd,e)}var Wo=f("ZodPipe",(e,t)=>{$c.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Kl(e,n,i,r),e.in=t.in,e.out=t.out});function $n(e,t){return new Wo({type:"pipe",in:e,out:t})}var Go=f("ZodCodec",(e,t)=>{Wo.init(e,t),pn.init(e,t)});function Hg(e,t,n){return new Go({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}var Yd=f("ZodReadonly",(e,t)=>{_c.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Hl(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function Xd(e){return new Yd({type:"readonly",innerType:e})}var Qd=f("ZodTemplateLiteral",(e,t)=>{xc.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ol(e,n,i,r)});function Yg(e,t){return new Qd({type:"template_literal",parts:e,...$.normalizeParams(t)})}var ep=f("ZodLazy",(e,t)=>{Sc.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Xl(e,n,i,r),e.unwrap=()=>e._zod.def.getter()});function tp(e){return new ep({type:"lazy",getter:e})}var rp=f("ZodPromise",(e,t)=>{kc.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Yl(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function Xg(e){return new rp({type:"promise",innerType:e})}var np=f("ZodFunction",(e,t)=>{wc.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Tl(e,n,i,r)});function Qg(e){return new np({type:"function",input:Array.isArray(e?.input)?zd(e?.input):e?.input??wn(qt()),output:e?.output??qt()})}var In=f("ZodCustom",(e,t)=>{Cc.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Al(e,n,i,r)});function ev(e){let t=new X({check:"custom"});return t._zod.check=e,t}function tv(e,t){return cl(In,e??(()=>!0),t)}function ip(e,t={}){return ll(In,e,t)}function op(e){return dl(e)}var rv=pl,nv=ml;function iv(e,t={}){let n=new In({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...$.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 ov=(...e)=>fl({Codec:Go,Boolean:Or,String:Ir},...e);function sv(e){let t=tp(()=>Lo([bo(e),gd(),vd(),$d(),wn(t),Pd(bo(),t)]));return t}function av(e,t){return $n(Mo(e),t)}var m_={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 f_(e){oe({customError:e})}function h_(){return oe().customError}var sp;sp||(sp={});var w={...vn,...ho,iso:Sr},g_=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 v_(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 D_(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 uv(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return w.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 w.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=D_(r,t),s=he(o,t);return t.refs.set(r,s),t.processing.delete(r),s}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 w.null();if(r.length===0)return w.never();if(r.length===1)return w.literal(r[0]);if(r.every(s=>typeof s=="string"))return w.enum(r);let o=r.map(s=>w.literal(s));return o.length<2?o[0]:w.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return w.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(o=>{let s={...e,type:o};return uv(s,t)});return r.length===0?w.never():r.length===1?r[0]:w.union(r)}if(!n)return w.any();let i;switch(n){case"string":{let r=w.string();if(e.format){let o=e.format;o==="email"?r=r.check(w.email()):o==="uri"||o==="uri-reference"?r=r.check(w.url()):o==="uuid"||o==="guid"?r=r.check(w.uuid()):o==="date-time"?r=r.check(w.iso.datetime()):o==="date"?r=r.check(w.iso.date()):o==="time"?r=r.check(w.iso.time()):o==="duration"?r=r.check(w.iso.duration()):o==="ipv4"?r=r.check(w.ipv4()):o==="ipv6"?r=r.check(w.ipv6()):o==="mac"?r=r.check(w.mac()):o==="cidr"?r=r.check(w.cidrv4()):o==="cidr-v6"?r=r.check(w.cidrv6()):o==="base64"?r=r.check(w.base64()):o==="base64url"?r=r.check(w.base64url()):o==="e164"?r=r.check(w.e164()):o==="jwt"?r=r.check(w.jwt()):o==="emoji"?r=r.check(w.emoji()):o==="nanoid"?r=r.check(w.nanoid()):o==="cuid"?r=r.check(w.cuid()):o==="cuid2"?r=r.check(w.cuid2()):o==="ulid"?r=r.check(w.ulid()):o==="xid"?r=r.check(w.xid()):o==="ksuid"&&(r=r.check(w.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"?w.number().int():w.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=w.boolean();break}case"null":{i=w.null();break}case"object":{let r={},o=e.properties||{},s=new Set(e.required||[]);for(let[u,c]of Object.entries(o)){let l=he(c,t);r[u]=s.has(u)?l:l.optional()}if(e.propertyNames){let u=he(e.propertyNames,t),c=e.additionalProperties&&typeof e.additionalProperties=="object"?he(e.additionalProperties,t):w.any();if(Object.keys(r).length===0){i=w.record(u,c);break}let l=w.object(r).passthrough(),d=w.looseRecord(u,c);i=w.intersection(l,d);break}if(e.patternProperties){let u=e.patternProperties,c=Object.keys(u),l=[];for(let p of c){let m=he(u[p],t),D=w.string().regex(new RegExp(p));l.push(w.looseRecord(D,m))}let d=[];if(Object.keys(r).length>0&&d.push(w.object(r).passthrough()),d.push(...l),d.length===0)i=w.object({}).passthrough();else if(d.length===1)i=d[0];else{let p=w.intersection(d[0],d[1]);for(let m=2;m<d.length;m++)p=w.intersection(p,d[m]);i=p}break}let a=w.object(r);e.additionalProperties===!1?i=a.strict():typeof e.additionalProperties=="object"?i=a.catchall(he(e.additionalProperties,t)):i=a.passthrough();break}case"array":{let r=e.prefixItems,o=e.items;if(r&&Array.isArray(r)){let s=r.map(u=>he(u,t)),a=o&&typeof o=="object"&&!Array.isArray(o)?he(o,t):void 0;a?i=w.tuple(s).rest(a):i=w.tuple(s),typeof e.minItems=="number"&&(i=i.check(w.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(w.maxLength(e.maxItems)))}else if(Array.isArray(o)){let s=o.map(u=>he(u,t)),a=e.additionalItems&&typeof e.additionalItems=="object"?he(e.additionalItems,t):void 0;a?i=w.tuple(s).rest(a):i=w.tuple(s),typeof e.minItems=="number"&&(i=i.check(w.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(w.maxLength(e.maxItems)))}else if(o!==void 0){let s=he(o,t),a=w.array(s);typeof e.minItems=="number"&&(a=a.min(e.minItems)),typeof e.maxItems=="number"&&(a=a.max(e.maxItems)),i=a}else i=w.array(w.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 he(e,t){if(typeof e=="boolean")return e?w.any():w.never();let n=uv(e,t),i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let a=e.anyOf.map(c=>he(c,t)),u=w.union(a);n=i?w.intersection(n,u):u}if(e.oneOf&&Array.isArray(e.oneOf)){let a=e.oneOf.map(c=>he(c,t)),u=w.xor(a);n=i?w.intersection(n,u):u}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=i?n:w.any();else{let a=i?n:he(e.allOf[0],t),u=i?0:1;for(let c=u;c<e.allOf.length;c++)a=w.intersection(a,he(e.allOf[c],t));n=a}e.nullable===!0&&t.version==="openapi-3.0"&&(n=w.nullable(n)),e.readOnly===!0&&(n=w.readonly(n));let r={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let a of o)a in e&&(r[a]=e[a]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let a of s)a in e&&(r[a]=e[a]);for(let a of Object.keys(e))g_.has(a)||(r[a]=e[a]);return Object.keys(r).length>0&&t.registry.add(n,r),n}function cv(e,t){if(typeof e=="boolean")return e?w.any():w.never();let n=v_(e,t?.defaultTarget),i=e.$defs||e.definitions||{},r={version:n,defs:i,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??pe};return he(e,r)}var ap={};tt(ap,{bigint:()=>__,boolean:()=>$_,date:()=>x_,number:()=>b_,string:()=>y_});function y_(e){return Oc(Ir,e)}function b_(e){return Rc(Fr,e)}function $_(e){return Wc(Or,e)}function __(e){return Jc(zr,e)}function x_(e){return ol(xn,e)}oe(Pi());var w_=".zenku",k_="config.json",S_=448,C_=384,I_=S.object({collection:S.string(),services:S.record(S.string(),S.string()).optional().default({}),token:S.string().optional().default(""),userId:S.string().optional().default(""),email:S.string().optional().default(""),tenantId:S.string().optional().default(""),accountId:S.string().optional().default(""),kanbanProject:S.string().optional().default("")}),E_=S.object({defaultProfile:S.string().optional().default(""),profiles:S.record(S.string(),I_).optional().default({})}),F_={collection:"users",services:{"auth-pb":"https://pb-agent-api.zenku.app","kanban-pb":"https://pb-kanban.zenku.app",kanban:"https://kanban-api.zenku.app","kanban-web":"https://kanban.zenku.app","library-pb":"https://pb-library.zenku.app",library:"https://library-api.zenku.app","library-web":"https://library.zenku.app",agent:"https://agent-api.zenku.app","agent-web":"https://agent.zenku.app",jobs:"https://jobs-api.zenku.app","kit-key":"https://kit-key.zenku.app"},token:"",userId:"",email:"",tenantId:"",accountId:"",kanbanProject:""};function Je(e){if(e.services["auth-pb"])return e.services["auth-pb"];let t=Object.keys(e.services).find(n=>n.endsWith("-pb"));if(t)return e.services[t];throw new Error('no auth PB URL configured (add "auth-pb" to services, or run `zenku profile create`)')}function En(){let e=process.env.ZENKU_CONFIG_PATH;return e||(0,Jo.join)((0,lv.homedir)(),w_,k_)}function O_(){return(0,Jo.dirname)(En())}function Wt(){let e=En();if(!(0,mt.existsSync)(e))return{defaultProfile:"",profiles:{}};let t=(0,mt.readFileSync)(e,"utf-8"),n=JSON.parse(t);return E_.parse(n)}function Fn(e){let t=O_();(0,mt.existsSync)(t)||(0,mt.mkdirSync)(t,{recursive:!0,mode:S_});let n=JSON.stringify(e,null,2);(0,mt.writeFileSync)(En(),n,{mode:C_})}function ie(e){if(e)return e;let t=process.env.ZENKU_PROFILE;if(t)return t;try{let n=Wt();if(n.defaultProfile)return n.defaultProfile}catch{}return"default"}function se(e){let t=Wt(),n=t.profiles[e];if(!n){if(e==="default")return{cfg:t,profile:{...F_}};throw new Error(`profile "${e}" not found (run \`zenku profile create ${e}\`)`)}return{cfg:t,profile:n}}function $e(e,t,n){e.profiles[t]=n,Fn(e)}function up(e){if(!e.token)throw new Error("no token in auth response");return{token:e.token,userId:e.record?.id??"",email:e.record?.email??""}}async function zn(e,t,n){let i=await fetch(`${e}${t}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(i.status>=400){let r=await i.json().catch(()=>({}));throw new Error(`${i.status}: ${r.message??await i.text()}`)}return await i.json()}async function z_(e,t){let n=await fetch(`${e}${t}`);if(n.status>=400){let i=await n.json().catch(()=>({}));throw new Error(`${n.status}: ${i.message??await n.text()}`)}return n.json()}async function pv(e,t,n,i){let r=await zn(e,`/api/collections/${t}/auth-with-password`,{identity:n,password:i});return up(r)}async function mv(e,t,n){let i=await zn(e,`/api/collections/${t}/request-otp`,{email:n});if(!i.otpId)throw new Error("no otpId in response");return i.otpId}async function fv(e,t,n,i){let r=await zn(e,`/api/collections/${t}/auth-with-otp`,{otpId:n,password:i});return up(r)}async function cp(e,t){let n=await z_(e,`/api/collections/${t}/auth-methods`);return{password:n.password?.enabled??!1,otp:n.otp?.enabled??!1,oauth2Providers:n.oauth2?.providers??[]}}async function hv(e,t,n){let r=(0,On.randomBytes)(32).toString("base64url").replace(/=+$/,""),s=(0,On.createHash)("sha256").update(r).digest().toString("base64url").replace(/=+$/,""),u=(0,On.randomBytes)(16).toString("base64url").replace(/=+$/,""),{port:c,server:l,waitForCode:d}=await P_(u),p=`http://127.0.0.1:${c}/callback`,m=new URL(n.authUrl);m.searchParams.set("client_id",n.clientId),m.searchParams.set("redirect_uri",p),m.searchParams.set("response_type","code"),m.searchParams.set("state",u),m.searchParams.set("code_challenge",s),m.searchParams.set("code_challenge_method","S256"),n.scope&&m.searchParams.set("scope",n.scope),process.stdout.write(`Opening browser for ${n.displayName} login...
67
+ `);let D=await import("node:child_process"),x=process.platform==="darwin"?"open":process.platform==="win32"?"start":"xdg-open";D.exec(`${x} "${m.toString()}"`),process.stdout.write(`Waiting for callback...
68
+ `);try{let F=await d,R=await zn(e,`/api/collections/${t}/auth-with-oauth2`,{provider:n.name,code:F,codeVerifier:r,redirectURL:p});return up(R)}finally{l.close()}}function P_(e){return new Promise(t=>{let n,i,r=new Promise((s,a)=>{n=s,i=a}),o=(0,dv.createServer)((s,a)=>{let u=new URL(s.url??"/",`http://${s.headers.host}`);if(u.pathname!=="/callback"){a.writeHead(404),a.end("Not found");return}if(u.searchParams.get("state")!==e){a.writeHead(400),a.end("State mismatch"),i(new Error("state mismatch"));return}let l=u.searchParams.get("error");if(l){let p=u.searchParams.get("error_description")??"";a.writeHead(200,{"Content-Type":"text/html"}),a.end(`<html><body><h1>Authentication failed</h1><p>${p}</p><p>You can close this window.</p></body></html>`),i(new Error(`${l}: ${p}`));return}let d=u.searchParams.get("code");if(!d){a.writeHead(400),a.end("No code"),i(new Error("no code in callback"));return}a.writeHead(200,{"Content-Type":"text/html"}),a.end("<html><body><h1>Authentication successful</h1><p>You can close this window.</p></body></html>"),n(d)});o.listen(0,"127.0.0.1",()=>{let s=o.address(),a=typeof s=="object"&&s?s.port:0;t({port:a,server:o,waitForCode:r})})})}function gv(e){let t=e.split(".");if(t.length!==3)throw new Error(`malformed JWT: expected 3 parts, got ${t.length}`);let n=t[1],i=Buffer.from(n,"base64url").toString("utf-8");return JSON.parse(i)}function vv(e){let t=gv(e);if(!t.exp)throw new Error("token has no exp claim");return new Date(t.exp*1e3)}var A_=1440*60*1e3;async function Ko(e,t,n){if(!n.token)throw new Error("not logged in (run `zenku login`)");let i=gv(n.token),r=i.exp*1e3,o=Date.now();if(o>r)throw new Error("session expired (run `zenku login`)");if(i.refreshable&&r-o<A_)try{let s=await zn(Je(n),`/api/collections/${n.collection}/auth-refresh`,{});if(s.token)return n.token=s.token,$e(e,t,n),s.token}catch{}return n.token}function lp(e){let t=Math.floor(e/1e3),n=Math.floor(t/60),i=Math.floor(n/60),r=Math.floor(i/24);return t<60?`${t}s`:n<60?`${n}m`:i<24?`${i}h ${n%60}m`:`${r}d ${i%24}h`}var dp=null;function pp(e){dp=e}function T_(){return dp||(process.stdout.isTTY?"interactive":"non-interactive")}function me(){return T_()==="interactive"}var Pe=ce(fp(),1),is=require("node:process");var yp=ce(require("node:readline"),1),Ev=require("node:stream"),Pn=ce(gp(),1);function L_({onlyFirst:e=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}var Z_=L_();function Fv(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Z_,"")}function Ov(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zv={exports:{}};(function(e){var t={};e.exports=t,t.eastAsianWidth=function(i){var r=i.charCodeAt(0),o=i.length==2?i.charCodeAt(1):0,s=r;return 55296<=r&&r<=56319&&56320<=o&&o<=57343&&(r&=1023,o&=1023,s=r<<10|o,s+=65536),s==12288||65281<=s&&s<=65376||65504<=s&&s<=65510?"F":s==8361||65377<=s&&s<=65470||65474<=s&&s<=65479||65482<=s&&s<=65487||65490<=s&&s<=65495||65498<=s&&s<=65500||65512<=s&&s<=65518?"H":4352<=s&&s<=4447||4515<=s&&s<=4519||4602<=s&&s<=4607||9001<=s&&s<=9002||11904<=s&&s<=11929||11931<=s&&s<=12019||12032<=s&&s<=12245||12272<=s&&s<=12283||12289<=s&&s<=12350||12353<=s&&s<=12438||12441<=s&&s<=12543||12549<=s&&s<=12589||12593<=s&&s<=12686||12688<=s&&s<=12730||12736<=s&&s<=12771||12784<=s&&s<=12830||12832<=s&&s<=12871||12880<=s&&s<=13054||13056<=s&&s<=19903||19968<=s&&s<=42124||42128<=s&&s<=42182||43360<=s&&s<=43388||44032<=s&&s<=55203||55216<=s&&s<=55238||55243<=s&&s<=55291||63744<=s&&s<=64255||65040<=s&&s<=65049||65072<=s&&s<=65106||65108<=s&&s<=65126||65128<=s&&s<=65131||110592<=s&&s<=110593||127488<=s&&s<=127490||127504<=s&&s<=127546||127552<=s&&s<=127560||127568<=s&&s<=127569||131072<=s&&s<=194367||177984<=s&&s<=196605||196608<=s&&s<=262141?"W":32<=s&&s<=126||162<=s&&s<=163||165<=s&&s<=166||s==172||s==175||10214<=s&&s<=10221||10629<=s&&s<=10630?"Na":s==161||s==164||167<=s&&s<=168||s==170||173<=s&&s<=174||176<=s&&s<=180||182<=s&&s<=186||188<=s&&s<=191||s==198||s==208||215<=s&&s<=216||222<=s&&s<=225||s==230||232<=s&&s<=234||236<=s&&s<=237||s==240||242<=s&&s<=243||247<=s&&s<=250||s==252||s==254||s==257||s==273||s==275||s==283||294<=s&&s<=295||s==299||305<=s&&s<=307||s==312||319<=s&&s<=322||s==324||328<=s&&s<=331||s==333||338<=s&&s<=339||358<=s&&s<=359||s==363||s==462||s==464||s==466||s==468||s==470||s==472||s==474||s==476||s==593||s==609||s==708||s==711||713<=s&&s<=715||s==717||s==720||728<=s&&s<=731||s==733||s==735||768<=s&&s<=879||913<=s&&s<=929||931<=s&&s<=937||945<=s&&s<=961||963<=s&&s<=969||s==1025||1040<=s&&s<=1103||s==1105||s==8208||8211<=s&&s<=8214||8216<=s&&s<=8217||8220<=s&&s<=8221||8224<=s&&s<=8226||8228<=s&&s<=8231||s==8240||8242<=s&&s<=8243||s==8245||s==8251||s==8254||s==8308||s==8319||8321<=s&&s<=8324||s==8364||s==8451||s==8453||s==8457||s==8467||s==8470||8481<=s&&s<=8482||s==8486||s==8491||8531<=s&&s<=8532||8539<=s&&s<=8542||8544<=s&&s<=8555||8560<=s&&s<=8569||s==8585||8592<=s&&s<=8601||8632<=s&&s<=8633||s==8658||s==8660||s==8679||s==8704||8706<=s&&s<=8707||8711<=s&&s<=8712||s==8715||s==8719||s==8721||s==8725||s==8730||8733<=s&&s<=8736||s==8739||s==8741||8743<=s&&s<=8748||s==8750||8756<=s&&s<=8759||8764<=s&&s<=8765||s==8776||s==8780||s==8786||8800<=s&&s<=8801||8804<=s&&s<=8807||8810<=s&&s<=8811||8814<=s&&s<=8815||8834<=s&&s<=8835||8838<=s&&s<=8839||s==8853||s==8857||s==8869||s==8895||s==8978||9312<=s&&s<=9449||9451<=s&&s<=9547||9552<=s&&s<=9587||9600<=s&&s<=9615||9618<=s&&s<=9621||9632<=s&&s<=9633||9635<=s&&s<=9641||9650<=s&&s<=9651||9654<=s&&s<=9655||9660<=s&&s<=9661||9664<=s&&s<=9665||9670<=s&&s<=9672||s==9675||9678<=s&&s<=9681||9698<=s&&s<=9701||s==9711||9733<=s&&s<=9734||s==9737||9742<=s&&s<=9743||9748<=s&&s<=9749||s==9756||s==9758||s==9792||s==9794||9824<=s&&s<=9825||9827<=s&&s<=9829||9831<=s&&s<=9834||9836<=s&&s<=9837||s==9839||9886<=s&&s<=9887||9918<=s&&s<=9919||9924<=s&&s<=9933||9935<=s&&s<=9953||s==9955||9960<=s&&s<=9983||s==10045||s==10071||10102<=s&&s<=10111||11093<=s&&s<=11097||12872<=s&&s<=12879||57344<=s&&s<=63743||65024<=s&&s<=65039||s==65533||127232<=s&&s<=127242||127248<=s&&s<=127277||127280<=s&&s<=127337||127344<=s&&s<=127386||917760<=s&&s<=917999||983040<=s&&s<=1048573||1048576<=s&&s<=1114109?"A":"N"},t.characterLength=function(i){var r=this.eastAsianWidth(i);return r=="F"||r=="W"||r=="A"?2:1};function n(i){return i.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}t.length=function(i){for(var r=n(i),o=0,s=0;s<r.length;s++)o=o+this.characterLength(r[s]);return o},t.slice=function(i,r,o){textLen=t.length(i),r=r||0,o=o||1,r<0&&(r=textLen+r),o<0&&(o=textLen+o);for(var s="",a=0,u=n(i),c=0;c<u.length;c++){var l=u[c],d=t.length(l);if(a>=r-(d==2?1:0))if(a+d<=o)s+=l;else break;a+=d}return s}})(zv);var M_=zv.exports,q_=Ov(M_),V_=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g},W_=Ov(V_);function An(e,t={}){if(typeof e!="string"||e.length===0||(t={ambiguousIsNarrow:!0,...t},e=Fv(e),e.length===0))return 0;e=e.replace(W_()," ");let n=t.ambiguousIsNarrow?1:2,i=0;for(let r of e){let o=r.codePointAt(0);if(!(o<=31||o>=127&&o<=159||o>=768&&o<=879))switch(q_.eastAsianWidth(r)){case"F":case"W":i+=2;break;case"A":i+=n;break;default:i+=1}}return i}var vp=10,$v=(e=0)=>t=>`\x1B[${t+e}m`,_v=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,xv=(e=0)=>(t,n,i)=>`\x1B[${38+e};2;${t};${n};${i}m`,ee={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]}};Object.keys(ee.modifier);var G_=Object.keys(ee.color),J_=Object.keys(ee.bgColor);[...G_,...J_];function K_(){let e=new Map;for(let[t,n]of Object.entries(ee)){for(let[i,r]of Object.entries(n))ee[i]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},n[i]=ee[i],e.set(r[0],r[1]);Object.defineProperty(ee,t,{value:n,enumerable:!1})}return Object.defineProperty(ee,"codes",{value:e,enumerable:!1}),ee.color.close="\x1B[39m",ee.bgColor.close="\x1B[49m",ee.color.ansi=$v(),ee.color.ansi256=_v(),ee.color.ansi16m=xv(),ee.bgColor.ansi=$v(vp),ee.bgColor.ansi256=_v(vp),ee.bgColor.ansi16m=xv(vp),Object.defineProperties(ee,{rgbToAnsi256:{value:(t,n,i)=>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=>ee.rgbToAnsi256(...ee.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 a=t%36;n=Math.floor(t/36)/5,i=Math.floor(a/6)/5,r=a%6/5}let o=Math.max(n,i,r)*2;if(o===0)return 30;let s=30+(Math.round(r)<<2|Math.round(i)<<1|Math.round(n));return o===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(t,n,i)=>ee.ansi256ToAnsi(ee.rgbToAnsi256(t,n,i)),enumerable:!1},hexToAnsi:{value:t=>ee.ansi256ToAnsi(ee.hexToAnsi256(t)),enumerable:!1}}),ee}var H_=K_(),os=new Set(["\x1B","\x9B"]),Y_=39,$p="\x07",Pv="[",X_="]",Av="m",_p=`${X_}8;;`,wv=e=>`${os.values().next().value}${Pv}${e}${Av}`,kv=e=>`${os.values().next().value}${_p}${e}${$p}`,Q_=e=>e.split(" ").map(t=>An(t)),Dp=(e,t,n)=>{let i=[...t],r=!1,o=!1,s=An(Fv(e[e.length-1]));for(let[a,u]of i.entries()){let c=An(u);if(s+c<=n?e[e.length-1]+=u:(e.push(u),s=0),os.has(u)&&(r=!0,o=i.slice(a+1).join("").startsWith(_p)),r){o?u===$p&&(r=!1,o=!1):u===Av&&(r=!1);continue}s+=c,s===n&&a<i.length-1&&(e.push(""),s=0)}!s&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},ex=e=>{let t=e.split(" "),n=t.length;for(;n>0&&!(An(t[n-1])>0);)n--;return n===t.length?e:t.slice(0,n).join(" ")+t.slice(n).join("")},tx=(e,t,n={})=>{if(n.trim!==!1&&e.trim()==="")return"";let i="",r,o,s=Q_(e),a=[""];for(let[c,l]of e.split(" ").entries()){n.trim!==!1&&(a[a.length-1]=a[a.length-1].trimStart());let d=An(a[a.length-1]);if(c!==0&&(d>=t&&(n.wordWrap===!1||n.trim===!1)&&(a.push(""),d=0),(d>0||n.trim===!1)&&(a[a.length-1]+=" ",d++)),n.hard&&s[c]>t){let p=t-d,m=1+Math.floor((s[c]-p-1)/t);Math.floor((s[c]-1)/t)<m&&a.push(""),Dp(a,l,t);continue}if(d+s[c]>t&&d>0&&s[c]>0){if(n.wordWrap===!1&&d<t){Dp(a,l,t);continue}a.push("")}if(d+s[c]>t&&n.wordWrap===!1){Dp(a,l,t);continue}a[a.length-1]+=l}n.trim!==!1&&(a=a.map(c=>ex(c)));let u=[...a.join(`
69
+ `)];for(let[c,l]of u.entries()){if(i+=l,os.has(l)){let{groups:p}=new RegExp(`(?:\\${Pv}(?<code>\\d+)m|\\${_p}(?<uri>.*)${$p})`).exec(u.slice(c).join(""))||{groups:{}};if(p.code!==void 0){let m=Number.parseFloat(p.code);r=m===Y_?void 0:m}else p.uri!==void 0&&(o=p.uri.length===0?void 0:p.uri)}let d=H_.codes.get(Number(r));u[c+1]===`
70
+ `?(o&&(i+=kv("")),r&&d&&(i+=wv(d))):l===`
71
+ `&&(r&&d&&(i+=wv(r)),o&&(i+=kv(o)))}return i};function Sv(e,t,n){return String(e).normalize().replace(/\r\n/g,`
72
72
  `).split(`
73
- `).map(i=>O$(i,t,n)).join(`
74
- `)}var z$=["up","down","left","right","space","enter","cancel"],jo={actions:new Set(z$),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["","cancel"],["escape","cancel"]])};function Hg(e,t){if(typeof e=="string")return jo.aliases.get(e)===t;for(let n of e)if(n!==void 0&&Hg(n,t))return!0;return!1}function P$(e,t){if(e===t)return;let n=e.split(`
73
+ `).map(i=>tx(i,t,n)).join(`
74
+ `)}var rx=["up","down","left","right","space","enter","cancel"],Qo={actions:new Set(rx),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["","cancel"],["escape","cancel"]])};function Tv(e,t){if(typeof e=="string")return Qo.aliases.get(e)===t;for(let n of e)if(n!==void 0&&Tv(n,t))return!0;return!1}function nx(e,t){if(e===t)return;let n=e.split(`
75
75
  `),i=t.split(`
76
- `),r=[];for(let o=0;o<Math.max(n.length,i.length);o++)n[o]!==i[o]&&r.push(o);return r}var y1=globalThis.process.platform.startsWith("win"),Yd=Symbol("clack:cancel");function Nt(e){return e===Yd}function To(e,t){let n=e;n.isTTY&&n.setRawMode(t)}var A$=Object.defineProperty,T$=(e,t,n)=>t in e?A$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Oe=(e,t,n)=>(T$(e,typeof t!="symbol"?t+"":t,n),n),xr=class{constructor(t,n=!0){Oe(this,"input"),Oe(this,"output"),Oe(this,"_abortSignal"),Oe(this,"rl"),Oe(this,"opts"),Oe(this,"_render"),Oe(this,"_track",!1),Oe(this,"_prevFrame",""),Oe(this,"_subscribers",new Map),Oe(this,"_cursor",0),Oe(this,"state","initial"),Oe(this,"error",""),Oe(this,"value");let{input:i=Zo.stdin,output:r=Zo.stdout,render:o,signal:a,...s}=t;this.opts=s,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=o.bind(this),this._track=n,this._abortSignal=a,this.input=i,this.output=r}unsubscribe(){this._subscribers.clear()}setSubscriber(t,n){let i=this._subscribers.get(t)??[];i.push(n),this._subscribers.set(t,i)}on(t,n){this.setSubscriber(t,{cb:n})}once(t,n){this.setSubscriber(t,{cb:n,once:!0})}emit(t,...n){let i=this._subscribers.get(t)??[],r=[];for(let o of i)o.cb(...n),o.once&&r.push(()=>i.splice(i.indexOf(o),1));for(let o of r)o()}prompt(){return new Promise((t,n)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),t(Yd);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close()},{once:!0})}let i=new qg.Writable;i._write=(r,o,a)=>{this._track&&(this.value=this.rl?.line.replace(/\t/g,""),this._cursor=this.rl?.cursor??0,this.emit("value",this.value)),a()},this.input.pipe(i),this.rl=Hd.default.createInterface({input:this.input,output:i,tabSize:2,prompt:"",escapeCodeTimeout:50,terminal:!0}),Hd.default.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),this.opts.initialValue!==void 0&&this._track&&this.rl.write(this.opts.initialValue),this.input.on("keypress",this.onKeypress),To(this.input,!0),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(ze.cursor.show),this.output.off("resize",this.render),To(this.input,!1),t(this.value)}),this.once("cancel",()=>{this.output.write(ze.cursor.show),this.output.off("resize",this.render),To(this.input,!1),t(Yd)})})}onKeypress(t,n){if(this.state==="error"&&(this.state="active"),n?.name&&(!this._track&&jo.aliases.has(n.name)&&this.emit("cursor",jo.aliases.get(n.name)),jo.actions.has(n.name)&&this.emit("cursor",n.name)),t&&(t.toLowerCase()==="y"||t.toLowerCase()==="n")&&this.emit("confirm",t.toLowerCase()==="y"),t===" "&&this.opts.placeholder&&(this.value||(this.rl?.write(this.opts.placeholder),this.emit("value",this.opts.placeholder))),t&&this.emit("key",t.toLowerCase()),n?.name==="return"){if(this.opts.validate){let i=this.opts.validate(this.value);i&&(this.error=i instanceof Error?i.message:i,this.state="error",this.rl?.write(this.value))}this.state!=="error"&&(this.state="submit")}Hg([t,n?.name,n?.sequence],"cancel")&&(this.state="cancel"),(this.state==="submit"||this.state==="cancel")&&this.emit("finalize"),this.render(),(this.state==="submit"||this.state==="cancel")&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
77
- `),To(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let t=Zg(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
78
- `).length-1;this.output.write(ze.cursor.move(-999,t*-1))}render(){let t=Zg(this._render(this)??"",process.stdout.columns,{hard:!0});if(t!==this._prevFrame){if(this.state==="initial")this.output.write(ze.cursor.hide);else{let n=P$(this._prevFrame,t);if(this.restoreCursor(),n&&n?.length===1){let i=n[0];this.output.write(ze.cursor.move(0,i)),this.output.write(ze.erase.lines(1));let r=t.split(`
79
- `);this.output.write(r[i]),this._prevFrame=t,this.output.write(ze.cursor.move(0,r.length-i-1));return}if(n&&n?.length>1){let i=n[0];this.output.write(ze.cursor.move(0,i)),this.output.write(ze.erase.down());let r=t.split(`
76
+ `),r=[];for(let o=0;o<Math.max(n.length,i.length);o++)n[o]!==i[o]&&r.push(o);return r}var FC=globalThis.process.platform.startsWith("win"),bp=Symbol("clack:cancel");function Gt(e){return e===bp}function Xo(e,t){let n=e;n.isTTY&&n.setRawMode(t)}var ix=Object.defineProperty,ox=(e,t,n)=>t in e?ix(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ze=(e,t,n)=>(ox(e,typeof t!="symbol"?t+"":t,n),n),Pr=class{constructor(t,n=!0){ze(this,"input"),ze(this,"output"),ze(this,"_abortSignal"),ze(this,"rl"),ze(this,"opts"),ze(this,"_render"),ze(this,"_track",!1),ze(this,"_prevFrame",""),ze(this,"_subscribers",new Map),ze(this,"_cursor",0),ze(this,"state","initial"),ze(this,"error",""),ze(this,"value");let{input:i=is.stdin,output:r=is.stdout,render:o,signal:s,...a}=t;this.opts=a,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=o.bind(this),this._track=n,this._abortSignal=s,this.input=i,this.output=r}unsubscribe(){this._subscribers.clear()}setSubscriber(t,n){let i=this._subscribers.get(t)??[];i.push(n),this._subscribers.set(t,i)}on(t,n){this.setSubscriber(t,{cb:n})}once(t,n){this.setSubscriber(t,{cb:n,once:!0})}emit(t,...n){let i=this._subscribers.get(t)??[],r=[];for(let o of i)o.cb(...n),o.once&&r.push(()=>i.splice(i.indexOf(o),1));for(let o of r)o()}prompt(){return new Promise((t,n)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),t(bp);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close()},{once:!0})}let i=new Ev.Writable;i._write=(r,o,s)=>{this._track&&(this.value=this.rl?.line.replace(/\t/g,""),this._cursor=this.rl?.cursor??0,this.emit("value",this.value)),s()},this.input.pipe(i),this.rl=yp.default.createInterface({input:this.input,output:i,tabSize:2,prompt:"",escapeCodeTimeout:50,terminal:!0}),yp.default.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),this.opts.initialValue!==void 0&&this._track&&this.rl.write(this.opts.initialValue),this.input.on("keypress",this.onKeypress),Xo(this.input,!0),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(Pe.cursor.show),this.output.off("resize",this.render),Xo(this.input,!1),t(this.value)}),this.once("cancel",()=>{this.output.write(Pe.cursor.show),this.output.off("resize",this.render),Xo(this.input,!1),t(bp)})})}onKeypress(t,n){if(this.state==="error"&&(this.state="active"),n?.name&&(!this._track&&Qo.aliases.has(n.name)&&this.emit("cursor",Qo.aliases.get(n.name)),Qo.actions.has(n.name)&&this.emit("cursor",n.name)),t&&(t.toLowerCase()==="y"||t.toLowerCase()==="n")&&this.emit("confirm",t.toLowerCase()==="y"),t===" "&&this.opts.placeholder&&(this.value||(this.rl?.write(this.opts.placeholder),this.emit("value",this.opts.placeholder))),t&&this.emit("key",t.toLowerCase()),n?.name==="return"){if(this.opts.validate){let i=this.opts.validate(this.value);i&&(this.error=i instanceof Error?i.message:i,this.state="error",this.rl?.write(this.value))}this.state!=="error"&&(this.state="submit")}Tv([t,n?.name,n?.sequence],"cancel")&&(this.state="cancel"),(this.state==="submit"||this.state==="cancel")&&this.emit("finalize"),this.render(),(this.state==="submit"||this.state==="cancel")&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
77
+ `),Xo(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let t=Sv(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
78
+ `).length-1;this.output.write(Pe.cursor.move(-999,t*-1))}render(){let t=Sv(this._render(this)??"",process.stdout.columns,{hard:!0});if(t!==this._prevFrame){if(this.state==="initial")this.output.write(Pe.cursor.hide);else{let n=nx(this._prevFrame,t);if(this.restoreCursor(),n&&n?.length===1){let i=n[0];this.output.write(Pe.cursor.move(0,i)),this.output.write(Pe.erase.lines(1));let r=t.split(`
79
+ `);this.output.write(r[i]),this._prevFrame=t,this.output.write(Pe.cursor.move(0,r.length-i-1));return}if(n&&n?.length>1){let i=n[0];this.output.write(Pe.cursor.move(0,i)),this.output.write(Pe.erase.down());let r=t.split(`
80
80
  `).slice(i);this.output.write(r.join(`
81
- `)),this._prevFrame=t;return}this.output.write(ze.erase.down())}this.output.write(t),this.state==="initial"&&(this.state="active"),this._prevFrame=t}}},Uo=class extends xr{get cursor(){return this.value?0:1}get _value(){return this.cursor===0}constructor(t){super(t,!1),this.value=!!t.initialValue,this.on("value",()=>{this.value=this._value}),this.on("confirm",n=>{this.output.write(ze.cursor.move(0,-1)),this.value=n,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}};var j$;j$=new WeakMap;var U$=Object.defineProperty,N$=(e,t,n)=>t in e?U$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lg=(e,t,n)=>(N$(e,typeof t!="symbol"?t+"":t,n),n),No=class extends xr{constructor({mask:t,...n}){super(n),Lg(this,"valueWithCursor",""),Lg(this,"_mask","\u2022"),this._mask=t??"\u2022",this.on("finalize",()=>{this.valueWithCursor=this.masked}),this.on("value",()=>{if(this.cursor>=this.value.length)this.valueWithCursor=`${this.masked}${bn.default.inverse(bn.default.hidden("_"))}`;else{let i=this.masked.slice(0,this.cursor),r=this.masked.slice(this.cursor);this.valueWithCursor=`${i}${bn.default.inverse(r[0])}${r.slice(1)}`}})}get cursor(){return this._cursor}get masked(){return this.value.replaceAll(/./g,this._mask)}},R$=Object.defineProperty,B$=(e,t,n)=>t in e?R$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mg=(e,t,n)=>(B$(e,typeof t!="symbol"?t+"":t,n),n),Ro=class extends xr{constructor(t){super(t,!1),Mg(this,"options"),Mg(this,"cursor",0),this.options=t.options,this.cursor=this.options.findIndex(({value:n})=>n===t.initialValue),this.cursor===-1&&(this.cursor=0),this.changeValue(),this.on("cursor",n=>{switch(n){case"left":case"up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break}this.changeValue()})}get _value(){return this.options[this.cursor]}changeValue(){this.value=this._value.value}};var Bo=class extends xr{get valueWithCursor(){if(this.state==="submit")return this.value;if(this.cursor>=this.value.length)return`${this.value}\u2588`;let t=this.value.slice(0,this.cursor),[n,...i]=this.value.slice(this.cursor);return`${t}${bn.default.inverse(n)}${i.join("")}`}get cursor(){return this._cursor}constructor(t){super(t),this.on("finalize",()=>{this.value||(this.value=t.defaultValue)})}};var Be=ce(require("node:process"),1),C=ce(Gd(),1),Yg=ce(Vd(),1);function Z$(){return Be.default.platform!=="win32"?Be.default.env.TERM!=="linux":!!Be.default.env.CI||!!Be.default.env.WT_SESSION||!!Be.default.env.TERMINUS_SUBLIME||Be.default.env.ConEmuTask==="{cmd::Cmder}"||Be.default.env.TERM_PROGRAM==="Terminus-Sublime"||Be.default.env.TERM_PROGRAM==="vscode"||Be.default.env.TERM==="xterm-256color"||Be.default.env.TERM==="alacritty"||Be.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var L$=Z$(),ae=(e,t)=>L$?e:t,M$=ae("\u25C6","*"),q$=ae("\u25A0","x"),V$=ae("\u25B2","x"),W$=ae("\u25C7","o"),I1=ae("\u250C","T"),te=ae("\u2502","|"),wr=ae("\u2514","\u2014"),ep=ae("\u25CF",">"),tp=ae("\u25CB"," "),S1=ae("\u25FB","[\u2022]"),E1=ae("\u25FC","[+]"),F1=ae("\u25FB","[ ]"),G$=ae("\u25AA","\u2022"),O1=ae("\u2500","-"),z1=ae("\u256E","+"),P1=ae("\u251C","+"),A1=ae("\u256F","+"),T1=ae("\u25CF","\u2022"),j1=ae("\u25C6","*"),U1=ae("\u25B2","!"),N1=ae("\u25A0","x"),Mo=e=>{switch(e){case"initial":case"active":return C.default.cyan(M$);case"cancel":return C.default.red(q$);case"error":return C.default.yellow(V$);case"submit":return C.default.green(W$)}},J$=e=>{let{cursor:t,options:n,style:i}=e,r=e.maxItems??Number.POSITIVE_INFINITY,o=Math.max(process.stdout.rows-4,0),a=Math.min(o,Math.max(r,5)),s=0;t>=s+a-3?s=Math.max(Math.min(t-a+3,n.length-a),0):t<s+2&&(s=Math.max(t-2,0));let u=a<n.length&&s>0,c=a<n.length&&s+a<n.length;return n.slice(s,s+a).map((l,d,p)=>{let f=d===0&&u,g=d===p.length-1&&c;return f||g?C.default.dim("..."):i(l,d+s===t)})},Xg=e=>new Bo({validate:e.validate,placeholder:e.placeholder,defaultValue:e.defaultValue,initialValue:e.initialValue,render(){let t=`${C.default.gray(te)}
82
- ${Mo(this.state)} ${e.message}
81
+ `)),this._prevFrame=t;return}this.output.write(Pe.erase.down())}this.output.write(t),this.state==="initial"&&(this.state="active"),this._prevFrame=t}}},es=class extends Pr{get cursor(){return this.value?0:1}get _value(){return this.cursor===0}constructor(t){super(t,!1),this.value=!!t.initialValue,this.on("value",()=>{this.value=this._value}),this.on("confirm",n=>{this.output.write(Pe.cursor.move(0,-1)),this.value=n,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}};var sx;sx=new WeakMap;var ax=Object.defineProperty,ux=(e,t,n)=>t in e?ax(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Cv=(e,t,n)=>(ux(e,typeof t!="symbol"?t+"":t,n),n),ts=class extends Pr{constructor({mask:t,...n}){super(n),Cv(this,"valueWithCursor",""),Cv(this,"_mask","\u2022"),this._mask=t??"\u2022",this.on("finalize",()=>{this.valueWithCursor=this.masked}),this.on("value",()=>{if(this.cursor>=this.value.length)this.valueWithCursor=`${this.masked}${Pn.default.inverse(Pn.default.hidden("_"))}`;else{let i=this.masked.slice(0,this.cursor),r=this.masked.slice(this.cursor);this.valueWithCursor=`${i}${Pn.default.inverse(r[0])}${r.slice(1)}`}})}get cursor(){return this._cursor}get masked(){return this.value.replaceAll(/./g,this._mask)}},cx=Object.defineProperty,lx=(e,t,n)=>t in e?cx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Iv=(e,t,n)=>(lx(e,typeof t!="symbol"?t+"":t,n),n),rs=class extends Pr{constructor(t){super(t,!1),Iv(this,"options"),Iv(this,"cursor",0),this.options=t.options,this.cursor=this.options.findIndex(({value:n})=>n===t.initialValue),this.cursor===-1&&(this.cursor=0),this.changeValue(),this.on("cursor",n=>{switch(n){case"left":case"up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break}this.changeValue()})}get _value(){return this.options[this.cursor]}changeValue(){this.value=this._value.value}};var ns=class extends Pr{get valueWithCursor(){if(this.state==="submit")return this.value;if(this.cursor>=this.value.length)return`${this.value}\u2588`;let t=this.value.slice(0,this.cursor),[n,...i]=this.value.slice(this.cursor);return`${t}${Pn.default.inverse(n)}${i.join("")}`}get cursor(){return this._cursor}constructor(t){super(t),this.on("finalize",()=>{this.value||(this.value=t.defaultValue)})}};var Me=ce(require("node:process"),1),C=ce(gp(),1),jv=ce(fp(),1);function dx(){return Me.default.platform!=="win32"?Me.default.env.TERM!=="linux":!!Me.default.env.CI||!!Me.default.env.WT_SESSION||!!Me.default.env.TERMINUS_SUBLIME||Me.default.env.ConEmuTask==="{cmd::Cmder}"||Me.default.env.TERM_PROGRAM==="Terminus-Sublime"||Me.default.env.TERM_PROGRAM==="vscode"||Me.default.env.TERM==="xterm-256color"||Me.default.env.TERM==="alacritty"||Me.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var px=dx(),ae=(e,t)=>px?e:t,mx=ae("\u25C6","*"),fx=ae("\u25A0","x"),hx=ae("\u25B2","x"),gx=ae("\u25C7","o"),NC=ae("\u250C","T"),te=ae("\u2502","|"),Ar=ae("\u2514","\u2014"),xp=ae("\u25CF",">"),wp=ae("\u25CB"," "),RC=ae("\u25FB","[\u2022]"),BC=ae("\u25FC","[+]"),LC=ae("\u25FB","[ ]"),vx=ae("\u25AA","\u2022"),ZC=ae("\u2500","-"),MC=ae("\u256E","+"),qC=ae("\u251C","+"),VC=ae("\u256F","+"),WC=ae("\u25CF","\u2022"),GC=ae("\u25C6","*"),JC=ae("\u25B2","!"),KC=ae("\u25A0","x"),ss=e=>{switch(e){case"initial":case"active":return C.default.cyan(mx);case"cancel":return C.default.red(fx);case"error":return C.default.yellow(hx);case"submit":return C.default.green(gx)}},Dx=e=>{let{cursor:t,options:n,style:i}=e,r=e.maxItems??Number.POSITIVE_INFINITY,o=Math.max(process.stdout.rows-4,0),s=Math.min(o,Math.max(r,5)),a=0;t>=a+s-3?a=Math.max(Math.min(t-s+3,n.length-s),0):t<a+2&&(a=Math.max(t-2,0));let u=s<n.length&&a>0,c=s<n.length&&a+s<n.length;return n.slice(a,a+s).map((l,d,p)=>{let m=d===0&&u,D=d===p.length-1&&c;return m||D?C.default.dim("..."):i(l,d+a===t)})},Uv=e=>new ns({validate:e.validate,placeholder:e.placeholder,defaultValue:e.defaultValue,initialValue:e.initialValue,render(){let t=`${C.default.gray(te)}
82
+ ${ss(this.state)} ${e.message}
83
83
  `,n=e.placeholder?C.default.inverse(e.placeholder[0])+C.default.dim(e.placeholder.slice(1)):C.default.inverse(C.default.hidden("_")),i=this.value?this.valueWithCursor:n;switch(this.state){case"error":return`${t.trim()}
84
84
  ${C.default.yellow(te)} ${i}
85
- ${C.default.yellow(wr)} ${C.default.yellow(this.error)}
85
+ ${C.default.yellow(Ar)} ${C.default.yellow(this.error)}
86
86
  `;case"submit":return`${t}${C.default.gray(te)} ${C.default.dim(this.value||e.placeholder)}`;case"cancel":return`${t}${C.default.gray(te)} ${C.default.strikethrough(C.default.dim(this.value??""))}${this.value?.trim()?`
87
87
  ${C.default.gray(te)}`:""}`;default:return`${t}${C.default.cyan(te)} ${i}
88
- ${C.default.cyan(wr)}
89
- `}}}).prompt(),Qg=e=>new No({validate:e.validate,mask:e.mask??G$,render(){let t=`${C.default.gray(te)}
90
- ${Mo(this.state)} ${e.message}
88
+ ${C.default.cyan(Ar)}
89
+ `}}}).prompt(),Nv=e=>new ts({validate:e.validate,mask:e.mask??vx,render(){let t=`${C.default.gray(te)}
90
+ ${ss(this.state)} ${e.message}
91
91
  `,n=this.valueWithCursor,i=this.masked;switch(this.state){case"error":return`${t.trim()}
92
92
  ${C.default.yellow(te)} ${i}
93
- ${C.default.yellow(wr)} ${C.default.yellow(this.error)}
93
+ ${C.default.yellow(Ar)} ${C.default.yellow(this.error)}
94
94
  `;case"submit":return`${t}${C.default.gray(te)} ${C.default.dim(i)}`;case"cancel":return`${t}${C.default.gray(te)} ${C.default.strikethrough(C.default.dim(i??""))}${i?`
95
95
  ${C.default.gray(te)}`:""}`;default:return`${t}${C.default.cyan(te)} ${n}
96
- ${C.default.cyan(wr)}
97
- `}}}).prompt(),ev=e=>{let t=e.active??"Yes",n=e.inactive??"No";return new Uo({active:t,inactive:n,initialValue:e.initialValue??!0,render(){let i=`${C.default.gray(te)}
98
- ${Mo(this.state)} ${e.message}
96
+ ${C.default.cyan(Ar)}
97
+ `}}}).prompt(),Rv=e=>{let t=e.active??"Yes",n=e.inactive??"No";return new es({active:t,inactive:n,initialValue:e.initialValue??!0,render(){let i=`${C.default.gray(te)}
98
+ ${ss(this.state)} ${e.message}
99
99
  `,r=this.value?t:n;switch(this.state){case"submit":return`${i}${C.default.gray(te)} ${C.default.dim(r)}`;case"cancel":return`${i}${C.default.gray(te)} ${C.default.strikethrough(C.default.dim(r))}
100
- ${C.default.gray(te)}`;default:return`${i}${C.default.cyan(te)} ${this.value?`${C.default.green(ep)} ${t}`:`${C.default.dim(tp)} ${C.default.dim(t)}`} ${C.default.dim("/")} ${this.value?`${C.default.dim(tp)} ${C.default.dim(n)}`:`${C.default.green(ep)} ${n}`}
101
- ${C.default.cyan(wr)}
102
- `}}}).prompt()},tv=e=>{let t=(n,i)=>{let r=n.label??String(n.value);switch(i){case"selected":return`${C.default.dim(r)}`;case"active":return`${C.default.green(ep)} ${r} ${n.hint?C.default.dim(`(${n.hint})`):""}`;case"cancelled":return`${C.default.strikethrough(C.default.dim(r))}`;default:return`${C.default.dim(tp)} ${C.default.dim(r)}`}};return new Ro({options:e.options,initialValue:e.initialValue,render(){let n=`${C.default.gray(te)}
103
- ${Mo(this.state)} ${e.message}
100
+ ${C.default.gray(te)}`;default:return`${i}${C.default.cyan(te)} ${this.value?`${C.default.green(xp)} ${t}`:`${C.default.dim(wp)} ${C.default.dim(t)}`} ${C.default.dim("/")} ${this.value?`${C.default.dim(wp)} ${C.default.dim(n)}`:`${C.default.green(xp)} ${n}`}
101
+ ${C.default.cyan(Ar)}
102
+ `}}}).prompt()},Bv=e=>{let t=(n,i)=>{let r=n.label??String(n.value);switch(i){case"selected":return`${C.default.dim(r)}`;case"active":return`${C.default.green(xp)} ${r} ${n.hint?C.default.dim(`(${n.hint})`):""}`;case"cancelled":return`${C.default.strikethrough(C.default.dim(r))}`;default:return`${C.default.dim(wp)} ${C.default.dim(r)}`}};return new rs({options:e.options,initialValue:e.initialValue,render(){let n=`${C.default.gray(te)}
103
+ ${ss(this.state)} ${e.message}
104
104
  `;switch(this.state){case"submit":return`${n}${C.default.gray(te)} ${t(this.options[this.cursor],"selected")}`;case"cancel":return`${n}${C.default.gray(te)} ${t(this.options[this.cursor],"cancelled")}
105
- ${C.default.gray(te)}`;default:return`${n}${C.default.cyan(te)} ${J$({cursor:this.cursor,options:this.options,maxItems:e.maxItems,style:(i,r)=>t(i,r?"active":"inactive")}).join(`
105
+ ${C.default.gray(te)}`;default:return`${n}${C.default.cyan(te)} ${Dx({cursor:this.cursor,options:this.options,maxItems:e.maxItems,style:(i,r)=>t(i,r?"active":"inactive")}).join(`
106
106
  ${C.default.cyan(te)} `)}
107
- ${C.default.cyan(wr)}
108
- `}}}).prompt()};var R1=`${C.default.gray(te)} `;var Sr=ce(require("node:process"),1),Iv=require("node:util");var rv=(e=0)=>t=>`\x1B[${t+e}m`,nv=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,iv=(e=0)=>(t,n,i)=>`\x1B[${38+e};2;${t};${n};${i}m`,re={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]}},Z1=Object.keys(re.modifier),H$=Object.keys(re.color),Y$=Object.keys(re.bgColor),L1=[...H$,...Y$];function X$(){let e=new Map;for(let[t,n]of Object.entries(re)){for(let[i,r]of Object.entries(n))re[i]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},n[i]=re[i],e.set(r[0],r[1]);Object.defineProperty(re,t,{value:n,enumerable:!1})}return Object.defineProperty(re,"codes",{value:e,enumerable:!1}),re.color.close="\x1B[39m",re.bgColor.close="\x1B[49m",re.color.ansi=rv(),re.color.ansi256=nv(),re.color.ansi16m=iv(),re.bgColor.ansi=rv(10),re.bgColor.ansi256=nv(10),re.bgColor.ansi16m=iv(10),Object.defineProperties(re,{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=>re.rgbToAnsi256(...re.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)=>re.ansi256ToAnsi(re.rgbToAnsi256(t,n,i)),enumerable:!1},hexToAnsi:{value:t=>re.ansi256ToAnsi(re.hexToAnsi256(t)),enumerable:!1}}),re}var Q$=X$(),We=Q$;var Vo=ce(require("node:process"),1),av=ce(require("node:os"),1),rp=ce(require("node:tty"),1);function Ze(e,t=globalThis.Deno?globalThis.Deno.args:Vo.default.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:ne}=Vo.default,qo;Ze("no-color")||Ze("no-colors")||Ze("color=false")||Ze("color=never")?qo=0:(Ze("color")||Ze("colors")||Ze("color=true")||Ze("color=always"))&&(qo=1);function e_(){if("FORCE_COLOR"in ne)return ne.FORCE_COLOR==="true"?1:ne.FORCE_COLOR==="false"?0:ne.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(ne.FORCE_COLOR,10),3)}function t_(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function r_(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let i=e_();i!==void 0&&(qo=i);let r=n?qo:i;if(r===0)return 0;if(n){if(Ze("color=16m")||Ze("color=full")||Ze("color=truecolor"))return 3;if(Ze("color=256"))return 2}if("TF_BUILD"in ne&&"AGENT_NAME"in ne)return 1;if(e&&!t&&r===void 0)return 0;let o=r||0;if(ne.TERM==="dumb")return o;if(Vo.default.platform==="win32"){let a=av.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in ne)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(a=>a in ne)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in ne)||ne.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in ne)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ne.TEAMCITY_VERSION)?1:0;if(ne.COLORTERM==="truecolor"||ne.TERM==="xterm-kitty"||ne.TERM==="xterm-ghostty"||ne.TERM==="wezterm")return 3;if("TERM_PROGRAM"in ne){let a=Number.parseInt((ne.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ne.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ne.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ne.TERM)||"COLORTERM"in ne?1:o}function ov(e,t={}){let n=r_(e,{streamIsTTY:e&&e.isTTY,...t});return t_(n)}var n_={stdout:ov({isTTY:rp.default.isatty(1)}),stderr:ov({isTTY:rp.default.isatty(2)})},sv=n_;function uv(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 cv(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
107
+ ${C.default.cyan(Ar)}
108
+ `}}}).prompt()};var HC=`${C.default.gray(te)} `;var Nr=ce(require("node:process"),1),pD=require("node:util");var Lv=(e=0)=>t=>`\x1B[${t+e}m`,Zv=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Mv=(e=0)=>(t,n,i)=>`\x1B[${38+e};2;${t};${n};${i}m`,re={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]}},XC=Object.keys(re.modifier),bx=Object.keys(re.color),$x=Object.keys(re.bgColor),QC=[...bx,...$x];function _x(){let e=new Map;for(let[t,n]of Object.entries(re)){for(let[i,r]of Object.entries(n))re[i]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},n[i]=re[i],e.set(r[0],r[1]);Object.defineProperty(re,t,{value:n,enumerable:!1})}return Object.defineProperty(re,"codes",{value:e,enumerable:!1}),re.color.close="\x1B[39m",re.bgColor.close="\x1B[49m",re.color.ansi=Lv(),re.color.ansi256=Zv(),re.color.ansi16m=Mv(),re.bgColor.ansi=Lv(10),re.bgColor.ansi256=Zv(10),re.bgColor.ansi16m=Mv(10),Object.defineProperties(re,{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=>re.rgbToAnsi256(...re.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 a=t%36;n=Math.floor(t/36)/5,i=Math.floor(a/6)/5,r=a%6/5}let o=Math.max(n,i,r)*2;if(o===0)return 30;let s=30+(Math.round(r)<<2|Math.round(i)<<1|Math.round(n));return o===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(t,n,i)=>re.ansi256ToAnsi(re.rgbToAnsi256(t,n,i)),enumerable:!1},hexToAnsi:{value:t=>re.ansi256ToAnsi(re.hexToAnsi256(t)),enumerable:!1}}),re}var xx=_x(),Ke=xx;var us=ce(require("node:process"),1),Vv=ce(require("node:os"),1),kp=ce(require("node:tty"),1);function qe(e,t=globalThis.Deno?globalThis.Deno.args:us.default.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:ne}=us.default,as;qe("no-color")||qe("no-colors")||qe("color=false")||qe("color=never")?as=0:(qe("color")||qe("colors")||qe("color=true")||qe("color=always"))&&(as=1);function wx(){if("FORCE_COLOR"in ne)return ne.FORCE_COLOR==="true"?1:ne.FORCE_COLOR==="false"?0:ne.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(ne.FORCE_COLOR,10),3)}function kx(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Sx(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let i=wx();i!==void 0&&(as=i);let r=n?as:i;if(r===0)return 0;if(n){if(qe("color=16m")||qe("color=full")||qe("color=truecolor"))return 3;if(qe("color=256"))return 2}if("TF_BUILD"in ne&&"AGENT_NAME"in ne)return 1;if(e&&!t&&r===void 0)return 0;let o=r||0;if(ne.TERM==="dumb")return o;if(us.default.platform==="win32"){let s=Vv.default.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in ne)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(s=>s in ne)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(s=>s in ne)||ne.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in ne)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ne.TEAMCITY_VERSION)?1:0;if(ne.COLORTERM==="truecolor"||ne.TERM==="xterm-kitty"||ne.TERM==="xterm-ghostty"||ne.TERM==="wezterm")return 3;if("TERM_PROGRAM"in ne){let s=Number.parseInt((ne.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ne.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ne.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ne.TERM)||"COLORTERM"in ne?1:o}function qv(e,t={}){let n=Sx(e,{streamIsTTY:e&&e.isTTY,...t});return kx(n)}var Cx={stdout:qv({isTTY:kp.default.isatty(1)}),stderr:qv({isTTY:kp.default.isatty(2)})},Wv=Cx;function Gv(e,t,n){let i=e.indexOf(t);if(i===-1)return e;let r=t.length,o=0,s="";do s+=e.slice(o,i)+t+n,o=i+r,i=e.indexOf(t,o);while(i!==-1);return s+=e.slice(o),s}function Jv(e,t,n,i){let r=0,o="";do{let s=e[i-1]==="\r";o+=e.slice(r,s?i-1:i)+t+(s?`\r
109
109
  `:`
110
110
  `)+n,r=i+1,i=e.indexOf(`
111
- `,r)}while(i!==-1);return o+=e.slice(r),o}var{stdout:lv,stderr:dv}=sv,np=Symbol("GENERATOR"),kr=Symbol("STYLER"),_n=Symbol("IS_EMPTY"),pv=["ansi","ansi","ansi256","ansi16m"],Cr=Object.create(null),i_=(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=lv?lv.level:0;e.level=t.level===void 0?n:t.level};var o_=e=>{let t=(...n)=>n.join(" ");return i_(t,e),Object.setPrototypeOf(t,xn.prototype),t};function xn(e){return o_(e)}Object.setPrototypeOf(xn.prototype,Function.prototype);for(let[e,t]of Object.entries(We))Cr[e]={get(){let n=Wo(this,op(t.open,t.close,this[kr]),this[_n]);return Object.defineProperty(this,e,{value:n}),n}};Cr.visible={get(){let e=Wo(this,this[kr],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var ip=(e,t,n,...i)=>e==="rgb"?t==="ansi16m"?We[n].ansi16m(...i):t==="ansi256"?We[n].ansi256(We.rgbToAnsi256(...i)):We[n].ansi(We.rgbToAnsi(...i)):e==="hex"?ip("rgb",t,n,...We.hexToRgb(...i)):We[n][e](...i),a_=["rgb","hex","ansi256"];for(let e of a_){Cr[e]={get(){let{level:n}=this;return function(...i){let r=op(ip(e,pv[n],"color",...i),We.color.close,this[kr]);return Wo(this,r,this[_n])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);Cr[t]={get(){let{level:n}=this;return function(...i){let r=op(ip(e,pv[n],"bgColor",...i),We.bgColor.close,this[kr]);return Wo(this,r,this[_n])}}}}var s_=Object.defineProperties(()=>{},{...Cr,level:{enumerable:!0,get(){return this[np].level},set(e){this[np].level=e}}}),op=(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}},Wo=(e,t,n)=>{let i=(...r)=>u_(i,r.length===1?""+r[0]:r.join(" "));return Object.setPrototypeOf(i,s_),i[np]=e,i[kr]=t,i[_n]=n,i},u_=(e,t)=>{if(e.level<=0||!t)return e[_n]?"":t;let n=e[kr];if(n===void 0)return t;let{openAll:i,closeAll:r}=n;if(t.includes("\x1B"))for(;n!==void 0;)t=uv(t,n.close,n.open),n=n.parent;let o=t.indexOf(`
112
- `);return o!==-1&&(t=cv(t,r,i,o)),i+t+r};Object.defineProperties(xn.prototype,Cr);var c_=xn(),K1=xn({level:dv?dv.level:0});var mv=c_;var mp=ce(require("node:process"),1);var wn=ce(require("node:process"),1);var l_=(e,t,n,i)=>{if(n==="length"||n==="prototype"||n==="arguments"||n==="caller")return;let r=Object.getOwnPropertyDescriptor(e,n),o=Object.getOwnPropertyDescriptor(t,n);!d_(r,o)&&i||Object.defineProperty(e,n,o)},d_=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},p_=(e,t)=>{let n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},m_=(e,t)=>`/* Wrapped ${e}*/
113
- ${t}`,f_=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),h_=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),g_=(e,t,n)=>{let i=n===""?"":`with ${n.trim()}() `,r=m_.bind(null,i,t.toString());Object.defineProperty(r,"name",h_);let{writable:o,enumerable:a,configurable:s}=f_;Object.defineProperty(e,"toString",{value:r,writable:o,enumerable:a,configurable:s})};function ap(e,t,{ignoreNonConfigurable:n=!1}={}){let{name:i}=e;for(let r of Reflect.ownKeys(t))l_(e,t,r,n);return p_(e,t),g_(e,t,i),e}var Go=new WeakMap,fv=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let n,i=0,r=e.displayName||e.name||"<anonymous>",o=function(...a){if(Go.set(o,++i),i===1)n=e.apply(this,a),e=void 0;else if(t.throw===!0)throw new Error(`Function \`${r}\` can only be called once`);return n};return ap(o,e),Go.set(o,i),o};fv.callCount=e=>{if(!Go.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Go.get(e)};var hv=fv;var Rt=[];Rt.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&Rt.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Rt.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var Jo=e=>!!e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function",sp=Symbol.for("signal-exit emitter"),up=globalThis,v_=Object.defineProperty.bind(Object),cp=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(up[sp])return up[sp];v_(up,sp,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(t,n){this.listeners[t].push(n)}removeListener(t,n){let i=this.listeners[t],r=i.indexOf(n);r!==-1&&(r===0&&i.length===1?i.length=0:i.splice(r,1))}emit(t,n,i){if(this.emitted[t])return!1;this.emitted[t]=!0;let r=!1;for(let o of this.listeners[t])r=o(n,i)===!0||r;return t==="exit"&&(r=this.emit("afterExit",n,i)||r),r}},Ko=class{},D_=e=>({onExit(t,n){return e.onExit(t,n)},load(){return e.load()},unload(){return e.unload()}}),lp=class extends Ko{onExit(){return()=>{}}load(){}unload(){}},dp=class extends Ko{#o=pp.platform==="win32"?"SIGINT":"SIGHUP";#n=new cp;#r;#e;#i;#t={};#a=!1;constructor(t){super(),this.#r=t,this.#t={};for(let n of Rt)this.#t[n]=()=>{let i=this.#r.listeners(n),{count:r}=this.#n,o=t;if(typeof o.__signal_exit_emitter__=="object"&&typeof o.__signal_exit_emitter__.count=="number"&&(r+=o.__signal_exit_emitter__.count),i.length===r){this.unload();let a=this.#n.emit("exit",null,n),s=n==="SIGHUP"?this.#o:n;a||t.kill(t.pid,s)}};this.#i=t.reallyExit,this.#e=t.emit}onExit(t,n){if(!Jo(this.#r))return()=>{};this.#a===!1&&this.load();let i=n?.alwaysLast?"afterExit":"exit";return this.#n.on(i,t),()=>{this.#n.removeListener(i,t),this.#n.listeners.exit.length===0&&this.#n.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#a){this.#a=!0,this.#n.count+=1;for(let t of Rt)try{let n=this.#t[t];n&&this.#r.on(t,n)}catch{}this.#r.emit=(t,...n)=>this.#d(t,...n),this.#r.reallyExit=t=>this.#u(t)}}unload(){this.#a&&(this.#a=!1,Rt.forEach(t=>{let n=this.#t[t];if(!n)throw new Error("Listener not defined for signal: "+t);try{this.#r.removeListener(t,n)}catch{}}),this.#r.emit=this.#e,this.#r.reallyExit=this.#i,this.#n.count-=1)}#u(t){return Jo(this.#r)?(this.#r.exitCode=t||0,this.#n.emit("exit",this.#r.exitCode,null),this.#i.call(this.#r,this.#r.exitCode)):0}#d(t,...n){let i=this.#e;if(t==="exit"&&Jo(this.#r)){typeof n[0]=="number"&&(this.#r.exitCode=n[0]);let r=i.call(this.#r,t,...n);return this.#n.emit("exit",this.#r.exitCode,null),r}else return i.call(this.#r,t,...n)}},pp=globalThis.process,{onExit:gv,load:rC,unload:nC}=D_(Jo(pp)?new dp(pp):new lp);var vv=wn.default.stderr.isTTY?wn.default.stderr:wn.default.stdout.isTTY?wn.default.stdout:void 0,y_=vv?hv(()=>{gv(()=>{vv.write("\x1B[?25h")},{alwaysLast:!0})}):()=>{},Dv=y_;var Ho=!1,Ir={};Ir.show=(e=mp.default.stderr)=>{e.isTTY&&(Ho=!1,e.write("\x1B[?25h"))};Ir.hide=(e=mp.default.stderr)=>{e.isTTY&&(Dv(),Ho=!0,e.write("\x1B[?25l"))};Ir.toggle=(e,t)=>{e!==void 0&&(Ho=e),Ho?Ir.show(t):Ir.hide(t)};var fp=Ir;var hp={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots14:{interval:80,frames:["\u2809\u2809","\u2808\u2819","\u2800\u2839","\u2800\u28B8","\u2800\u28F0","\u2880\u28E0","\u28C0\u28C0","\u28C4\u2840","\u28C6\u2800","\u2847\u2800","\u280F\u2800","\u280B\u2801"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},dotsCircle:{interval:80,frames:["\u288E ","\u280E\u2801","\u280A\u2811","\u2808\u2831"," \u2871","\u2880\u2870","\u2884\u2860","\u2886\u2840"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},rollingLine:{interval:80,frames:["/ "," - "," \\ "," |"," |"," \\ "," - ","/ "]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u{1F497} "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]},fish:{interval:80,frames:["~~~~~~~~~~~~~~~~~~~~","> ~~~~~~~~~~~~~~~~~~","\xBA> ~~~~~~~~~~~~~~~~~","(\xBA> ~~~~~~~~~~~~~~~~","((\xBA> ~~~~~~~~~~~~~~~","<((\xBA> ~~~~~~~~~~~~~~","><((\xBA> ~~~~~~~~~~~~~"," ><((\xBA> ~~~~~~~~~~~~","~ ><((\xBA> ~~~~~~~~~~~","~~ <>((\xBA> ~~~~~~~~~~","~~~ ><((\xBA> ~~~~~~~~~","~~~~ <>((\xBA> ~~~~~~~~","~~~~~ ><((\xBA> ~~~~~~~","~~~~~~ <>((\xBA> ~~~~~~","~~~~~~~ ><((\xBA> ~~~~~","~~~~~~~~ <>((\xBA> ~~~~","~~~~~~~~~ ><((\xBA> ~~~","~~~~~~~~~~ <>((\xBA> ~~","~~~~~~~~~~~ ><((\xBA> ~","~~~~~~~~~~~~ <>((\xBA> ","~~~~~~~~~~~~~ ><((\xBA>","~~~~~~~~~~~~~~ <>((\xBA","~~~~~~~~~~~~~~~ ><((","~~~~~~~~~~~~~~~~ <>(","~~~~~~~~~~~~~~~~~ ><","~~~~~~~~~~~~~~~~~~ <","~~~~~~~~~~~~~~~~~~~~"]}};var kn=hp,pC=Object.keys(hp);var Bt={};Xe(Bt,{error:()=>k_,info:()=>__,success:()=>x_,warning:()=>w_});var yv=ce(require("node:tty"),1),$_=yv.default?.WriteStream?.prototype?.hasColors?.()??!1,j=(e,t)=>{if(!$_)return r=>r;let n=`\x1B[${e}m`,i=`\x1B[${t}m`;return r=>{let o=r+"",a=o.indexOf(i);if(a===-1)return n+o+i;let s=n,u=0,l=(t===22?i:"")+n;for(;a!==-1;)s+=o.slice(u,a)+l,u=a+i.length,a=o.indexOf(i,u);return s+=o.slice(u)+i,s}},fC=j(0,0),hC=j(1,22),gC=j(2,22),vC=j(3,23),DC=j(4,24),yC=j(53,55),bC=j(7,27),$C=j(8,28),_C=j(9,29),xC=j(30,39),bv=j(31,39),$v=j(32,39),_v=j(33,39),xv=j(34,39),wC=j(35,39),kC=j(36,39),CC=j(37,39),IC=j(90,39),SC=j(40,49),EC=j(41,49),FC=j(42,49),OC=j(43,49),zC=j(44,49),PC=j(45,49),AC=j(46,49),TC=j(47,49),jC=j(100,49),UC=j(91,39),NC=j(92,39),RC=j(93,39),BC=j(94,39),ZC=j(95,39),LC=j(96,39),MC=j(97,39),qC=j(101,49),VC=j(102,49),WC=j(103,49),GC=j(104,49),JC=j(105,49),KC=j(106,49),HC=j(107,49);var gp=ce(require("node:process"),1);function Cn(){let{env:e}=gp.default,{TERM:t,TERM_PROGRAM:n}=e;return gp.default.platform!=="win32"?t!=="linux":!!e.WT_SESSION||!!e.TERMINUS_SUBLIME||e.ConEmuTask==="{cmd::Cmder}"||n==="Terminus-Sublime"||n==="vscode"||t==="xterm-256color"||t==="alacritty"||t==="rxvt-unicode"||t==="rxvt-unicode-256color"||e.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Yo=Cn(),__=xv(Yo?"\u2139":"i"),x_=$v(Yo?"\u2714":"\u221A"),w_=_v(Yo?"\u26A0":"\u203C"),k_=bv(Yo?"\u2716":"\xD7");function vp({onlyFirst:e=!1}={}){let r="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(r,e?void 0:"g")}var C_=vp();function Dp(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(C_,"")}function wv(e){return e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}function kv(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Cv(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function I_(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function yp(e,{ambiguousAsWide:t=!1}={}){return I_(e),kv(e)||Cv(e)||t&&wv(e)?2:1}var S_=new Intl.Segmenter,E_=new RegExp("^(?:\\p{Default_Ignorable_Code_Point}|\\p{Control}|\\p{Format}|\\p{Mark}|\\p{Surrogate})+$","v"),F_=new RegExp("^[\\p{Default_Ignorable_Code_Point}\\p{Control}\\p{Format}\\p{Mark}\\p{Surrogate}]+","v"),O_=new RegExp("^\\p{RGI_Emoji}$","v");function z_(e){return e.replace(F_,"")}function P_(e){return E_.test(e)}function A_(e,t){let n=0;if(e.length>1)for(let i of e.slice(1))i>="\uFF00"&&i<="\uFFEF"&&(n+=yp(i.codePointAt(0),t));return n}function bp(e,t={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:n=!0,countAnsiEscapeCodes:i=!1}=t,r=e;if(i||(r=Dp(r)),r.length===0)return 0;let o=0,a={ambiguousAsWide:!n};for(let{segment:s}of S_.segment(r)){if(P_(s))continue;if(O_.test(s)){o+=2;continue}let u=z_(s).codePointAt(0);o+=yp(u,a),o+=A_(s,a)}return o}function $p({stream:e=process.stdout}={}){return!!(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var Zt=ce(require("node:process"),1),T_=3,_p=class{#o=0;#n;#r=!1;#e=!1;#i=t=>{if(!t?.length)return;(typeof t=="string"?t.codePointAt(0):t[0])===T_&&(Zt.default.listenerCount("SIGINT")>0?Zt.default.emit("SIGINT"):Zt.default.kill(Zt.default.pid,"SIGINT"))};start(){this.#o++,this.#o===1&&this.#t()}stop(){this.#o!==0&&--this.#o===0&&this.#a()}#t(){let{stdin:t}=Zt.default;if(Zt.default.platform==="win32"||!t?.isTTY||typeof t.setRawMode!="function"){this.#n=void 0;return}this.#n=t,this.#r=t.isPaused(),this.#e=!!t.isRaw,t.setRawMode(!0),t.prependListener("data",this.#i),this.#r&&t.resume()}#a(){if(!this.#n)return;let t=this.#n;t.off("data",this.#i),t.isTTY&&t.setRawMode?.(this.#e),this.#r&&t.pause(),this.#n=void 0,this.#r=!1,this.#e=!1}},j_=new _p,xp=Object.freeze(j_);var U_=200,N_="\x1B[?2026h",R_="\x1B[?2026l",Xo=new Map,wp=class{#o=0;#n=-1;#r=0;#e;#i;#t;#a;#u=new Map;#d=!1;#c;#s;#p=!1;color;#l(t){this.#d=!0;try{return t()}finally{this.#d=!1}}#f(){this.isSpinning&&this.render()}#b(t,n){if(t==null)return"";if(typeof t=="string")return t;if(Buffer.isBuffer(t)||ArrayBuffer.isView(t)){let i=typeof n=="string"&&n&&n!=="buffer"?n:"utf8";return Buffer.from(t).toString(i)}return String(t)}#$(t){if(!t)return!1;let n=t.at(-1);return n===`
114
- `||n==="\r"}#_(){this.#s||(this.#s=setTimeout(()=>{this.#s=void 0,this.isSpinning&&this.#f()},U_),typeof this.#s?.unref=="function"&&this.#s.unref())}#h(){this.#s&&(clearTimeout(this.#s),this.#s=void 0)}#g(t,n,i,r){let o=this.#D(i," "),s=typeof n=="string"?(t?" ":"")+n:"",u=this.#y(r," ");return o+t+s+u}constructor(t){typeof t=="string"&&(t={text:t}),this.#e={color:"cyan",stream:Sr.default.stderr,discardStdin:!0,hideCursor:!0,...t},this.color=this.#e.color,this.#t=this.#e.stream,typeof this.#e.isEnabled!="boolean"&&(this.#e.isEnabled=$p({stream:this.#t})),typeof this.#e.isSilent!="boolean"&&(this.#e.isSilent=!1);let n=this.#e.interval;this.spinner=this.#e.spinner,this.#e.interval=n,this.text=this.#e.text,this.prefixText=this.#e.prefixText,this.suffixText=this.#e.suffixText,this.indent=this.#e.indent,Sr.default.env.NODE_ENV==="test"&&(this._stream=this.#t,this._isEnabled=this.#e.isEnabled,Object.defineProperty(this,"_linesToClear",{get(){return this.#o},set(i){this.#o=i}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#n}}),Object.defineProperty(this,"_lineCount",{get(){let i=this.#t.columns??80,r=typeof this.#e.prefixText=="function"?"":this.#e.prefixText,o=typeof this.#e.suffixText=="function"?"":this.#e.suffixText,a=typeof r=="string"&&r!==""?r+" ":"",s=typeof o=="string"&&o!==""?" "+o:"",c=" ".repeat(this.#e.indent)+a+"-"+(typeof this.#e.text=="string"?" "+this.#e.text:"")+s;return this.#m(c,i)}}))}get indent(){return this.#e.indent}set indent(t=0){if(!(t>=0&&Number.isInteger(t)))throw new Error("The `indent` option must be an integer from 0 and up");this.#e.indent=t}get interval(){return this.#e.interval??this.#i.interval??100}get spinner(){return this.#i}set spinner(t){if(this.#n=-1,this.#e.interval=void 0,typeof t=="object"){if(!Array.isArray(t.frames)||t.frames.length===0||t.frames.some(n=>typeof n!="string"))throw new Error("The given spinner must have a non-empty `frames` array of strings");if(t.interval!==void 0&&!(Number.isInteger(t.interval)&&t.interval>0))throw new Error("`spinner.interval` must be a positive integer if provided");this.#i=t}else if(!Cn())this.#i=kn.line;else if(t===void 0)this.#i=kn.dots;else if(t!=="default"&&kn[t])this.#i=kn[t];else throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return this.#e.text}set text(t=""){this.#e.text=t}get prefixText(){return this.#e.prefixText}set prefixText(t=""){this.#e.prefixText=t}get suffixText(){return this.#e.suffixText}set suffixText(t=""){this.#e.suffixText=t}get isSpinning(){return this.#a!==void 0}#v(t,n,i=!1){let r=typeof t=="function"?t():t;return typeof r=="string"&&r!==""?i?n+r:r+n:""}#D(t=this.#e.prefixText,n=" "){return this.#v(t,n,!1)}#y(t=this.#e.suffixText,n=" "){return this.#v(t,n,!0)}#m(t,n){let i=0;for(let r of(0,Iv.stripVTControlCharacters)(t).split(`
115
- `))i+=Math.max(1,Math.ceil(bp(r)/n));return i}get isEnabled(){return this.#e.isEnabled&&!this.#e.isSilent}set isEnabled(t){if(typeof t!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#e.isEnabled=t}get isSilent(){return this.#e.isSilent}set isSilent(t){if(typeof t!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#e.isSilent=t}frame(){let t=Date.now();(this.#n===-1||t-this.#r>=this.interval)&&(this.#n=(this.#n+1)%this.#i.frames.length,this.#r=t);let{frames:n}=this.#i,i=n[this.#n];this.color&&(i=mv[this.color](i));let r=this.#D(this.#e.prefixText," "),o=typeof this.text=="string"?" "+this.text:"",a=this.#y(this.#e.suffixText," ");return r+i+o+a}clear(){return!this.isEnabled||!this.#t.isTTY?this:(this.#l(()=>{this.#t.cursorTo(0);for(let t=0;t<this.#o;t++)t>0&&this.#t.moveCursor(0,-1),this.#t.clearLine(1);this.#e.indent&&this.#t.cursorTo(this.#e.indent)}),this.#o=0,this)}#x(t){if(!t||this.#u.has(t)||!t.isTTY||typeof t.write!="function")return;Xo.has(t)&&console.warn("[ora] Multiple concurrent spinners detected. This may cause visual corruption. Use one spinner at a time.");let n=t.write;this.#u.set(t,n),Xo.set(t,this),t.write=(i,r,o)=>this.#C(t,n,i,r,o)}#w(){if(!this.isEnabled||this.#u.size>0)return;let t=new Set([this.#t,Sr.default.stdout,Sr.default.stderr]);for(let n of t)this.#x(n)}#k(){for(let[t,n]of this.#u)t.write=n,Xo.get(t)===this&&Xo.delete(t);this.#u.clear()}#C(t,n,i,r,o){if(typeof r=="function"&&(o=r,r=void 0),this.#d)return n.call(t,i,r,o);this.clear();let a=this.#b(i,r),s=this.#$(a),u=n.call(t,i,r,o);return s?this.#h():a.length>0&&this.#_(),this.isSpinning&&!this.#s&&this.render(),u}render(){if(!this.isEnabled||this.#c||this.#s)return this;let t=this.#t.isTTY,n=!1;try{t&&(this.#l(()=>this.#t.write(N_)),n=!0),this.clear();let i=this.frame(),r=this.#t.columns??80,o=this.#m(i,r),a=this.#t.rows;if(a&&a>1&&o>a){let u=i.split(`
116
- `),c=a-1;i=[...u.slice(0,c),"... (content truncated to fit terminal)"].join(`
117
- `)}this.#l(()=>this.#t.write(i))===!1&&this.#t.isTTY&&(this.#c=()=>{this.#c=void 0,this.#f()},this.#t.once("drain",this.#c)),this.#o=this.#m(i,r)}finally{n&&this.#l(()=>this.#t.write(R_))}return this}start(t){if(t&&(this.text=t),this.isSilent)return this;if(!this.isEnabled){let n=this.text?"-":"",i=" ".repeat(this.#e.indent)+this.#g(n,this.text,this.#e.prefixText,this.#e.suffixText);return i.trim()!==""&&this.#l(()=>this.#t.write(i+`
118
- `)),this}return this.isSpinning?this:(this.#e.hideCursor&&fp.hide(this.#t),this.#e.discardStdin&&Sr.default.stdin.isTTY&&(xp.start(),this.#p=!0),this.#w(),this.render(),this.#a=setInterval(this.render.bind(this),this.interval),this)}stop(){return clearInterval(this.#a),this.#a=void 0,this.#n=-1,this.#r=0,this.#h(),this.#k(),this.#c&&(this.#t.removeListener("drain",this.#c),this.#c=void 0),this.isEnabled&&(this.clear(),this.#e.hideCursor&&fp.show(this.#t)),this.#p&&(this.#p=!1,xp.stop()),this}succeed(t){return this.stopAndPersist({symbol:Bt.success,text:t})}fail(t){return this.stopAndPersist({symbol:Bt.error,text:t})}warn(t){return this.stopAndPersist({symbol:Bt.warning,text:t})}info(t){return this.stopAndPersist({symbol:Bt.info,text:t})}stopAndPersist(t={}){if(this.isSilent)return this;let n=t.symbol??" ",i=t.text??this.text,r=t.prefixText??this.#e.prefixText,o=t.suffixText??this.#e.suffixText,a=this.#g(n,i,r,o)+`
119
- `;return this.stop(),this.#l(()=>this.#t.write(a)),this}};function kp(e){return new wp(e)}var Er=!1;function Ev(e){Er=e}function Pe(){return Er}function Fv(e){let t=JSON.stringify(e,null,2);process.stdout.write(t+`
120
- `)}function y(e,...t){let n=t.length?e.replace(/%[sv]/g,()=>String(t.shift())):e;if(Er){let i=JSON.stringify({error:n});process.stderr.write(i+`
111
+ `,r)}while(i!==-1);return o+=e.slice(r),o}var{stdout:Kv,stderr:Hv}=Wv,Sp=Symbol("GENERATOR"),Tr=Symbol("STYLER"),Tn=Symbol("IS_EMPTY"),Yv=["ansi","ansi","ansi256","ansi16m"],jr=Object.create(null),Ix=(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=Kv?Kv.level:0;e.level=t.level===void 0?n:t.level};var Ex=e=>{let t=(...n)=>n.join(" ");return Ix(t,e),Object.setPrototypeOf(t,jn.prototype),t};function jn(e){return Ex(e)}Object.setPrototypeOf(jn.prototype,Function.prototype);for(let[e,t]of Object.entries(Ke))jr[e]={get(){let n=cs(this,Ip(t.open,t.close,this[Tr]),this[Tn]);return Object.defineProperty(this,e,{value:n}),n}};jr.visible={get(){let e=cs(this,this[Tr],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Cp=(e,t,n,...i)=>e==="rgb"?t==="ansi16m"?Ke[n].ansi16m(...i):t==="ansi256"?Ke[n].ansi256(Ke.rgbToAnsi256(...i)):Ke[n].ansi(Ke.rgbToAnsi(...i)):e==="hex"?Cp("rgb",t,n,...Ke.hexToRgb(...i)):Ke[n][e](...i),Fx=["rgb","hex","ansi256"];for(let e of Fx){jr[e]={get(){let{level:n}=this;return function(...i){let r=Ip(Cp(e,Yv[n],"color",...i),Ke.color.close,this[Tr]);return cs(this,r,this[Tn])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);jr[t]={get(){let{level:n}=this;return function(...i){let r=Ip(Cp(e,Yv[n],"bgColor",...i),Ke.bgColor.close,this[Tr]);return cs(this,r,this[Tn])}}}}var Ox=Object.defineProperties(()=>{},{...jr,level:{enumerable:!0,get(){return this[Sp].level},set(e){this[Sp].level=e}}}),Ip=(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}},cs=(e,t,n)=>{let i=(...r)=>zx(i,r.length===1?""+r[0]:r.join(" "));return Object.setPrototypeOf(i,Ox),i[Sp]=e,i[Tr]=t,i[Tn]=n,i},zx=(e,t)=>{if(e.level<=0||!t)return e[Tn]?"":t;let n=e[Tr];if(n===void 0)return t;let{openAll:i,closeAll:r}=n;if(t.includes("\x1B"))for(;n!==void 0;)t=Gv(t,n.close,n.open),n=n.parent;let o=t.indexOf(`
112
+ `);return o!==-1&&(t=Jv(t,r,i,o)),i+t+r};Object.defineProperties(jn.prototype,jr);var Px=jn(),sI=jn({level:Hv?Hv.level:0});var Xv=Px;var jp=ce(require("node:process"),1);var Un=ce(require("node:process"),1);var Ax=(e,t,n,i)=>{if(n==="length"||n==="prototype"||n==="arguments"||n==="caller")return;let r=Object.getOwnPropertyDescriptor(e,n),o=Object.getOwnPropertyDescriptor(t,n);!Tx(r,o)&&i||Object.defineProperty(e,n,o)},Tx=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},jx=(e,t)=>{let n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},Ux=(e,t)=>`/* Wrapped ${e}*/
113
+ ${t}`,Nx=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),Rx=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),Bx=(e,t,n)=>{let i=n===""?"":`with ${n.trim()}() `,r=Ux.bind(null,i,t.toString());Object.defineProperty(r,"name",Rx);let{writable:o,enumerable:s,configurable:a}=Nx;Object.defineProperty(e,"toString",{value:r,writable:o,enumerable:s,configurable:a})};function Ep(e,t,{ignoreNonConfigurable:n=!1}={}){let{name:i}=e;for(let r of Reflect.ownKeys(t))Ax(e,t,r,n);return jx(e,t),Bx(e,t,i),e}var ls=new WeakMap,Qv=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let n,i=0,r=e.displayName||e.name||"<anonymous>",o=function(...s){if(ls.set(o,++i),i===1)n=e.apply(this,s),e=void 0;else if(t.throw===!0)throw new Error(`Function \`${r}\` can only be called once`);return n};return Ep(o,e),ls.set(o,i),o};Qv.callCount=e=>{if(!ls.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return ls.get(e)};var eD=Qv;var Jt=[];Jt.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&Jt.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Jt.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var ds=e=>!!e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function",Fp=Symbol.for("signal-exit emitter"),Op=globalThis,Lx=Object.defineProperty.bind(Object),zp=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(Op[Fp])return Op[Fp];Lx(Op,Fp,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(t,n){this.listeners[t].push(n)}removeListener(t,n){let i=this.listeners[t],r=i.indexOf(n);r!==-1&&(r===0&&i.length===1?i.length=0:i.splice(r,1))}emit(t,n,i){if(this.emitted[t])return!1;this.emitted[t]=!0;let r=!1;for(let o of this.listeners[t])r=o(n,i)===!0||r;return t==="exit"&&(r=this.emit("afterExit",n,i)||r),r}},ps=class{},Zx=e=>({onExit(t,n){return e.onExit(t,n)},load(){return e.load()},unload(){return e.unload()}}),Pp=class extends ps{onExit(){return()=>{}}load(){}unload(){}},Ap=class extends ps{#o=Tp.platform==="win32"?"SIGINT":"SIGHUP";#n=new zp;#r;#e;#i;#t={};#s=!1;constructor(t){super(),this.#r=t,this.#t={};for(let n of Jt)this.#t[n]=()=>{let i=this.#r.listeners(n),{count:r}=this.#n,o=t;if(typeof o.__signal_exit_emitter__=="object"&&typeof o.__signal_exit_emitter__.count=="number"&&(r+=o.__signal_exit_emitter__.count),i.length===r){this.unload();let s=this.#n.emit("exit",null,n),a=n==="SIGHUP"?this.#o:n;s||t.kill(t.pid,a)}};this.#i=t.reallyExit,this.#e=t.emit}onExit(t,n){if(!ds(this.#r))return()=>{};this.#s===!1&&this.load();let i=n?.alwaysLast?"afterExit":"exit";return this.#n.on(i,t),()=>{this.#n.removeListener(i,t),this.#n.listeners.exit.length===0&&this.#n.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#s){this.#s=!0,this.#n.count+=1;for(let t of Jt)try{let n=this.#t[t];n&&this.#r.on(t,n)}catch{}this.#r.emit=(t,...n)=>this.#d(t,...n),this.#r.reallyExit=t=>this.#u(t)}}unload(){this.#s&&(this.#s=!1,Jt.forEach(t=>{let n=this.#t[t];if(!n)throw new Error("Listener not defined for signal: "+t);try{this.#r.removeListener(t,n)}catch{}}),this.#r.emit=this.#e,this.#r.reallyExit=this.#i,this.#n.count-=1)}#u(t){return ds(this.#r)?(this.#r.exitCode=t||0,this.#n.emit("exit",this.#r.exitCode,null),this.#i.call(this.#r,this.#r.exitCode)):0}#d(t,...n){let i=this.#e;if(t==="exit"&&ds(this.#r)){typeof n[0]=="number"&&(this.#r.exitCode=n[0]);let r=i.call(this.#r,t,...n);return this.#n.emit("exit",this.#r.exitCode,null),r}else return i.call(this.#r,t,...n)}},Tp=globalThis.process,{onExit:tD,load:mI,unload:fI}=Zx(ds(Tp)?new Ap(Tp):new Pp);var rD=Un.default.stderr.isTTY?Un.default.stderr:Un.default.stdout.isTTY?Un.default.stdout:void 0,Mx=rD?eD(()=>{tD(()=>{rD.write("\x1B[?25h")},{alwaysLast:!0})}):()=>{},nD=Mx;var ms=!1,Ur={};Ur.show=(e=jp.default.stderr)=>{e.isTTY&&(ms=!1,e.write("\x1B[?25h"))};Ur.hide=(e=jp.default.stderr)=>{e.isTTY&&(nD(),ms=!0,e.write("\x1B[?25l"))};Ur.toggle=(e,t)=>{e!==void 0&&(ms=e),ms?Ur.show(t):Ur.hide(t)};var Up=Ur;var Np={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots14:{interval:80,frames:["\u2809\u2809","\u2808\u2819","\u2800\u2839","\u2800\u28B8","\u2800\u28F0","\u2880\u28E0","\u28C0\u28C0","\u28C4\u2840","\u28C6\u2800","\u2847\u2800","\u280F\u2800","\u280B\u2801"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},dotsCircle:{interval:80,frames:["\u288E ","\u280E\u2801","\u280A\u2811","\u2808\u2831"," \u2871","\u2880\u2870","\u2884\u2860","\u2886\u2840"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},rollingLine:{interval:80,frames:["/ "," - "," \\ "," |"," |"," \\ "," - ","/ "]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u{1F497} "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]},fish:{interval:80,frames:["~~~~~~~~~~~~~~~~~~~~","> ~~~~~~~~~~~~~~~~~~","\xBA> ~~~~~~~~~~~~~~~~~","(\xBA> ~~~~~~~~~~~~~~~~","((\xBA> ~~~~~~~~~~~~~~~","<((\xBA> ~~~~~~~~~~~~~~","><((\xBA> ~~~~~~~~~~~~~"," ><((\xBA> ~~~~~~~~~~~~","~ ><((\xBA> ~~~~~~~~~~~","~~ <>((\xBA> ~~~~~~~~~~","~~~ ><((\xBA> ~~~~~~~~~","~~~~ <>((\xBA> ~~~~~~~~","~~~~~ ><((\xBA> ~~~~~~~","~~~~~~ <>((\xBA> ~~~~~~","~~~~~~~ ><((\xBA> ~~~~~","~~~~~~~~ <>((\xBA> ~~~~","~~~~~~~~~ ><((\xBA> ~~~","~~~~~~~~~~ <>((\xBA> ~~","~~~~~~~~~~~ ><((\xBA> ~","~~~~~~~~~~~~ <>((\xBA> ","~~~~~~~~~~~~~ ><((\xBA>","~~~~~~~~~~~~~~ <>((\xBA","~~~~~~~~~~~~~~~ ><((","~~~~~~~~~~~~~~~~ <>(","~~~~~~~~~~~~~~~~~ ><","~~~~~~~~~~~~~~~~~~ <","~~~~~~~~~~~~~~~~~~~~"]}};var Nn=Np,xI=Object.keys(Np);var Kt={};tt(Kt,{error:()=>Kx,info:()=>Wx,success:()=>Gx,warning:()=>Jx});var iD=ce(require("node:tty"),1),Vx=iD.default?.WriteStream?.prototype?.hasColors?.()??!1,U=(e,t)=>{if(!Vx)return r=>r;let n=`\x1B[${e}m`,i=`\x1B[${t}m`;return r=>{let o=r+"",s=o.indexOf(i);if(s===-1)return n+o+i;let a=n,u=0,l=(t===22?i:"")+n;for(;s!==-1;)a+=o.slice(u,s)+l,u=s+i.length,s=o.indexOf(i,u);return a+=o.slice(u)+i,a}},kI=U(0,0),SI=U(1,22),CI=U(2,22),II=U(3,23),EI=U(4,24),FI=U(53,55),OI=U(7,27),zI=U(8,28),PI=U(9,29),AI=U(30,39),oD=U(31,39),sD=U(32,39),aD=U(33,39),uD=U(34,39),TI=U(35,39),jI=U(36,39),UI=U(37,39),NI=U(90,39),RI=U(40,49),BI=U(41,49),LI=U(42,49),ZI=U(43,49),MI=U(44,49),qI=U(45,49),VI=U(46,49),WI=U(47,49),GI=U(100,49),JI=U(91,39),KI=U(92,39),HI=U(93,39),YI=U(94,39),XI=U(95,39),QI=U(96,39),eE=U(97,39),tE=U(101,49),rE=U(102,49),nE=U(103,49),iE=U(104,49),oE=U(105,49),sE=U(106,49),aE=U(107,49);var Rp=ce(require("node:process"),1);function Rn(){let{env:e}=Rp.default,{TERM:t,TERM_PROGRAM:n}=e;return Rp.default.platform!=="win32"?t!=="linux":!!e.WT_SESSION||!!e.TERMINUS_SUBLIME||e.ConEmuTask==="{cmd::Cmder}"||n==="Terminus-Sublime"||n==="vscode"||t==="xterm-256color"||t==="alacritty"||t==="rxvt-unicode"||t==="rxvt-unicode-256color"||e.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var fs=Rn(),Wx=uD(fs?"\u2139":"i"),Gx=sD(fs?"\u2714":"\u221A"),Jx=aD(fs?"\u26A0":"\u203C"),Kx=oD(fs?"\u2716":"\xD7");function Bp({onlyFirst:e=!1}={}){let r="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(r,e?void 0:"g")}var Hx=Bp();function Lp(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Hx,"")}function cD(e){return e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}function lD(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function dD(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function Yx(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function Zp(e,{ambiguousAsWide:t=!1}={}){return Yx(e),lD(e)||dD(e)||t&&cD(e)?2:1}var Xx=new Intl.Segmenter,Qx=new RegExp("^(?:\\p{Default_Ignorable_Code_Point}|\\p{Control}|\\p{Format}|\\p{Mark}|\\p{Surrogate})+$","v"),ew=new RegExp("^[\\p{Default_Ignorable_Code_Point}\\p{Control}\\p{Format}\\p{Mark}\\p{Surrogate}]+","v"),tw=new RegExp("^\\p{RGI_Emoji}$","v");function rw(e){return e.replace(ew,"")}function nw(e){return Qx.test(e)}function iw(e,t){let n=0;if(e.length>1)for(let i of e.slice(1))i>="\uFF00"&&i<="\uFFEF"&&(n+=Zp(i.codePointAt(0),t));return n}function Mp(e,t={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:n=!0,countAnsiEscapeCodes:i=!1}=t,r=e;if(i||(r=Lp(r)),r.length===0)return 0;let o=0,s={ambiguousAsWide:!n};for(let{segment:a}of Xx.segment(r)){if(nw(a))continue;if(tw.test(a)){o+=2;continue}let u=rw(a).codePointAt(0);o+=Zp(u,s),o+=iw(a,s)}return o}function qp({stream:e=process.stdout}={}){return!!(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var Ht=ce(require("node:process"),1),ow=3,Vp=class{#o=0;#n;#r=!1;#e=!1;#i=t=>{if(!t?.length)return;(typeof t=="string"?t.codePointAt(0):t[0])===ow&&(Ht.default.listenerCount("SIGINT")>0?Ht.default.emit("SIGINT"):Ht.default.kill(Ht.default.pid,"SIGINT"))};start(){this.#o++,this.#o===1&&this.#t()}stop(){this.#o!==0&&--this.#o===0&&this.#s()}#t(){let{stdin:t}=Ht.default;if(Ht.default.platform==="win32"||!t?.isTTY||typeof t.setRawMode!="function"){this.#n=void 0;return}this.#n=t,this.#r=t.isPaused(),this.#e=!!t.isRaw,t.setRawMode(!0),t.prependListener("data",this.#i),this.#r&&t.resume()}#s(){if(!this.#n)return;let t=this.#n;t.off("data",this.#i),t.isTTY&&t.setRawMode?.(this.#e),this.#r&&t.pause(),this.#n=void 0,this.#r=!1,this.#e=!1}},sw=new Vp,Wp=Object.freeze(sw);var aw=200,uw="\x1B[?2026h",cw="\x1B[?2026l",hs=new Map,Gp=class{#o=0;#n=-1;#r=0;#e;#i;#t;#s;#u=new Map;#d=!1;#c;#a;#p=!1;color;#l(t){this.#d=!0;try{return t()}finally{this.#d=!1}}#f(){this.isSpinning&&this.render()}#b(t,n){if(t==null)return"";if(typeof t=="string")return t;if(Buffer.isBuffer(t)||ArrayBuffer.isView(t)){let i=typeof n=="string"&&n&&n!=="buffer"?n:"utf8";return Buffer.from(t).toString(i)}return String(t)}#$(t){if(!t)return!1;let n=t.at(-1);return n===`
114
+ `||n==="\r"}#_(){this.#a||(this.#a=setTimeout(()=>{this.#a=void 0,this.isSpinning&&this.#f()},aw),typeof this.#a?.unref=="function"&&this.#a.unref())}#h(){this.#a&&(clearTimeout(this.#a),this.#a=void 0)}#g(t,n,i,r){let o=this.#D(i," "),a=typeof n=="string"?(t?" ":"")+n:"",u=this.#y(r," ");return o+t+a+u}constructor(t){typeof t=="string"&&(t={text:t}),this.#e={color:"cyan",stream:Nr.default.stderr,discardStdin:!0,hideCursor:!0,...t},this.color=this.#e.color,this.#t=this.#e.stream,typeof this.#e.isEnabled!="boolean"&&(this.#e.isEnabled=qp({stream:this.#t})),typeof this.#e.isSilent!="boolean"&&(this.#e.isSilent=!1);let n=this.#e.interval;this.spinner=this.#e.spinner,this.#e.interval=n,this.text=this.#e.text,this.prefixText=this.#e.prefixText,this.suffixText=this.#e.suffixText,this.indent=this.#e.indent,Nr.default.env.NODE_ENV==="test"&&(this._stream=this.#t,this._isEnabled=this.#e.isEnabled,Object.defineProperty(this,"_linesToClear",{get(){return this.#o},set(i){this.#o=i}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#n}}),Object.defineProperty(this,"_lineCount",{get(){let i=this.#t.columns??80,r=typeof this.#e.prefixText=="function"?"":this.#e.prefixText,o=typeof this.#e.suffixText=="function"?"":this.#e.suffixText,s=typeof r=="string"&&r!==""?r+" ":"",a=typeof o=="string"&&o!==""?" "+o:"",c=" ".repeat(this.#e.indent)+s+"-"+(typeof this.#e.text=="string"?" "+this.#e.text:"")+a;return this.#m(c,i)}}))}get indent(){return this.#e.indent}set indent(t=0){if(!(t>=0&&Number.isInteger(t)))throw new Error("The `indent` option must be an integer from 0 and up");this.#e.indent=t}get interval(){return this.#e.interval??this.#i.interval??100}get spinner(){return this.#i}set spinner(t){if(this.#n=-1,this.#e.interval=void 0,typeof t=="object"){if(!Array.isArray(t.frames)||t.frames.length===0||t.frames.some(n=>typeof n!="string"))throw new Error("The given spinner must have a non-empty `frames` array of strings");if(t.interval!==void 0&&!(Number.isInteger(t.interval)&&t.interval>0))throw new Error("`spinner.interval` must be a positive integer if provided");this.#i=t}else if(!Rn())this.#i=Nn.line;else if(t===void 0)this.#i=Nn.dots;else if(t!=="default"&&Nn[t])this.#i=Nn[t];else throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return this.#e.text}set text(t=""){this.#e.text=t}get prefixText(){return this.#e.prefixText}set prefixText(t=""){this.#e.prefixText=t}get suffixText(){return this.#e.suffixText}set suffixText(t=""){this.#e.suffixText=t}get isSpinning(){return this.#s!==void 0}#v(t,n,i=!1){let r=typeof t=="function"?t():t;return typeof r=="string"&&r!==""?i?n+r:r+n:""}#D(t=this.#e.prefixText,n=" "){return this.#v(t,n,!1)}#y(t=this.#e.suffixText,n=" "){return this.#v(t,n,!0)}#m(t,n){let i=0;for(let r of(0,pD.stripVTControlCharacters)(t).split(`
115
+ `))i+=Math.max(1,Math.ceil(Mp(r)/n));return i}get isEnabled(){return this.#e.isEnabled&&!this.#e.isSilent}set isEnabled(t){if(typeof t!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#e.isEnabled=t}get isSilent(){return this.#e.isSilent}set isSilent(t){if(typeof t!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#e.isSilent=t}frame(){let t=Date.now();(this.#n===-1||t-this.#r>=this.interval)&&(this.#n=(this.#n+1)%this.#i.frames.length,this.#r=t);let{frames:n}=this.#i,i=n[this.#n];this.color&&(i=Xv[this.color](i));let r=this.#D(this.#e.prefixText," "),o=typeof this.text=="string"?" "+this.text:"",s=this.#y(this.#e.suffixText," ");return r+i+o+s}clear(){return!this.isEnabled||!this.#t.isTTY?this:(this.#l(()=>{this.#t.cursorTo(0);for(let t=0;t<this.#o;t++)t>0&&this.#t.moveCursor(0,-1),this.#t.clearLine(1);this.#e.indent&&this.#t.cursorTo(this.#e.indent)}),this.#o=0,this)}#x(t){if(!t||this.#u.has(t)||!t.isTTY||typeof t.write!="function")return;hs.has(t)&&console.warn("[ora] Multiple concurrent spinners detected. This may cause visual corruption. Use one spinner at a time.");let n=t.write;this.#u.set(t,n),hs.set(t,this),t.write=(i,r,o)=>this.#S(t,n,i,r,o)}#w(){if(!this.isEnabled||this.#u.size>0)return;let t=new Set([this.#t,Nr.default.stdout,Nr.default.stderr]);for(let n of t)this.#x(n)}#k(){for(let[t,n]of this.#u)t.write=n,hs.get(t)===this&&hs.delete(t);this.#u.clear()}#S(t,n,i,r,o){if(typeof r=="function"&&(o=r,r=void 0),this.#d)return n.call(t,i,r,o);this.clear();let s=this.#b(i,r),a=this.#$(s),u=n.call(t,i,r,o);return a?this.#h():s.length>0&&this.#_(),this.isSpinning&&!this.#a&&this.render(),u}render(){if(!this.isEnabled||this.#c||this.#a)return this;let t=this.#t.isTTY,n=!1;try{t&&(this.#l(()=>this.#t.write(uw)),n=!0),this.clear();let i=this.frame(),r=this.#t.columns??80,o=this.#m(i,r),s=this.#t.rows;if(s&&s>1&&o>s){let u=i.split(`
116
+ `),c=s-1;i=[...u.slice(0,c),"... (content truncated to fit terminal)"].join(`
117
+ `)}this.#l(()=>this.#t.write(i))===!1&&this.#t.isTTY&&(this.#c=()=>{this.#c=void 0,this.#f()},this.#t.once("drain",this.#c)),this.#o=this.#m(i,r)}finally{n&&this.#l(()=>this.#t.write(cw))}return this}start(t){if(t&&(this.text=t),this.isSilent)return this;if(!this.isEnabled){let n=this.text?"-":"",i=" ".repeat(this.#e.indent)+this.#g(n,this.text,this.#e.prefixText,this.#e.suffixText);return i.trim()!==""&&this.#l(()=>this.#t.write(i+`
118
+ `)),this}return this.isSpinning?this:(this.#e.hideCursor&&Up.hide(this.#t),this.#e.discardStdin&&Nr.default.stdin.isTTY&&(Wp.start(),this.#p=!0),this.#w(),this.render(),this.#s=setInterval(this.render.bind(this),this.interval),this)}stop(){return clearInterval(this.#s),this.#s=void 0,this.#n=-1,this.#r=0,this.#h(),this.#k(),this.#c&&(this.#t.removeListener("drain",this.#c),this.#c=void 0),this.isEnabled&&(this.clear(),this.#e.hideCursor&&Up.show(this.#t)),this.#p&&(this.#p=!1,Wp.stop()),this}succeed(t){return this.stopAndPersist({symbol:Kt.success,text:t})}fail(t){return this.stopAndPersist({symbol:Kt.error,text:t})}warn(t){return this.stopAndPersist({symbol:Kt.warning,text:t})}info(t){return this.stopAndPersist({symbol:Kt.info,text:t})}stopAndPersist(t={}){if(this.isSilent)return this;let n=t.symbol??" ",i=t.text??this.text,r=t.prefixText??this.#e.prefixText,o=t.suffixText??this.#e.suffixText,s=this.#g(n,i,r,o)+`
119
+ `;return this.stop(),this.#l(()=>this.#t.write(s)),this}};function Jp(e){return new Gp(e)}var Rr=!1;function fD(e){Rr=e}function Ae(){return Rr}function hD(e){let t=JSON.stringify(e,null,2);process.stdout.write(t+`
120
+ `)}function g(e,...t){let n=t.length?e.replace(/%[sv]/g,()=>String(t.shift())):e;if(Rr){let i=JSON.stringify({error:n});process.stderr.write(i+`
121
121
  `)}else process.stderr.write(`Error: ${n}
122
- `);process.exit(1)}function I(e,...t){if(Er)return;let n=t.length?e.replace(/%[sv]/g,()=>String(t.shift())):e;process.stdout.write(`\x1B[32m${n}\x1B[0m
123
- `)}function E(e,...t){if(Er)return;let n=t.length?e.replace(/%[sv]/g,()=>String(t.shift())):e;process.stdout.write(n+`
124
- `)}function Sv(e,t){return e.length>=t?e:e+" ".repeat(t-e.length)}function L(e,t){if(t.length===0){E("No results.");return}let n=e.map(o=>o.length);for(let o of t)for(let a=0;a<o.length&&a<n.length;a++)n[a]=Math.max(n[a],o[a].length);let i=e.map((o,a)=>`\x1B[1m\x1B[34m${Sv(o,n[a])}\x1B[0m`).join(" ");process.stdout.write(i+`
122
+ `);process.exit(1)}function I(e,...t){if(Rr)return;let n=t.length?e.replace(/%[sv]/g,()=>String(t.shift())):e;process.stdout.write(`\x1B[32m${n}\x1B[0m
123
+ `)}function E(e,...t){if(Rr)return;let n=t.length?e.replace(/%[sv]/g,()=>String(t.shift())):e;process.stdout.write(n+`
124
+ `)}function mD(e,t){return e.length>=t?e:e+" ".repeat(t-e.length)}function B(e,t){if(t.length===0){E("No results.");return}let n=e.map(o=>o.length);for(let o of t)for(let s=0;s<o.length&&s<n.length;s++)n[s]=Math.max(n[s],o[s].length);let i=e.map((o,s)=>`\x1B[1m\x1B[34m${mD(o,n[s])}\x1B[0m`).join(" ");process.stdout.write(i+`
125
125
  `);let r=n.map(o=>`\x1B[90m${"\u2500".repeat(o)}\x1B[0m`).join(" ");process.stdout.write(r+`
126
- `);for(let o of t){let a=o.slice(0,n.length).map((s,u)=>Sv(s,n[u])).join(" ");process.stdout.write(a+`
127
- `)}}function kt(e){return Er||!pe()?null:kp(e).start()}function dt(e){e&&e.stop()}async function we(e,t){pe()||y("%s is required (use %s)",e,t?.flagHint??"the appropriate flag");let n=await Xg({message:e,placeholder:t?.placeholder});return Nt(n)?(E("cancelled"),null):n}async function Ov(e,t){pe()||y("%s is required (use %s)",e,t?.flagHint??"the appropriate flag");let n=await Qg({message:e});return Nt(n)?(E("cancelled"),null):n}async function Lt(e,t,n){pe()||y("%s is required (use %s)",e,n?.flagHint??"the appropriate flag");let i=await tv({message:e,options:t});return Nt(i)?(E("cancelled"),null):i}async function Cp(e,t){pe()||y("%s requires confirmation (use %s)",e,t?.flagHint??"the appropriate flag");let n=await ev({message:e});return Nt(n)?(E("cancelled"),null):n}var Ip="",Sp="";function zv(e){Ip=e}function Pv(e){Sp=e}function Ge(e){return Ip||(process.env.ZENKU_TENANT_ID?process.env.ZENKU_TENANT_ID:e.tenantId)}function Je(e){return Sp||(process.env.ZENKU_ACCOUNT_ID?process.env.ZENKU_ACCOUNT_ID:e.accountId)}async function Qo(e,t,n){try{let i=`user='${n}'`,r=await fetch(`${e}/api/collections/account_members/records?filter=${encodeURIComponent(i)}&expand=account&perPage=100`,{headers:{Authorization:t}});if(!r.ok)return"";let o=await r.json();if(o.items.length===0)return"";if(o.items.length===1)return o.items[0].account;if(!pe())return"";let a=o.items.map(u=>({value:u.account,label:u.expand?.account?.name??u.account}));return await Lt("Choose account",a,{flagHint:"`zenku context set --account <id>`"})??""}catch{return""}}var Gp=require("node:fs");var Av=T.object({accountId:T.string().min(1,"accountId is required"),params:T.record(T.string(),T.unknown()),conversationId:T.string().optional(),metadata:T.record(T.string(),T.unknown()).optional()}),B_=Av.extend({callbackUrl:T.url().optional(),callbackSecret:T.string().optional()});var Z_=T.object({params:T.record(T.string(),T.unknown()),conversationId:T.string().optional(),callbackUrl:T.url().optional(),callbackSecret:T.string().optional(),metadata:T.record(T.string(),T.unknown()).optional()});var Fr=class Tv extends Error{code;status;data;constructor(t,n,i){super(n),this.name="AgentClientError",this.code=t,this.status=i?.status??0,this.data=i?.data}static async fromResponse(t){let n=L_(t.status),i=`HTTP ${t.status}`,r;try{let o=await t.text();try{r=JSON.parse(o),i=typeof r.error=="string"?r.error:`HTTP ${t.status}: ${o}`}catch{i=o||i}}catch{}return new Tv(n,i,{status:t.status,data:r})}};function L_(e){return e===400?"BAD_REQUEST":e===401?"UNAUTHORIZED":e===403?"FORBIDDEN":e===404?"NOT_FOUND":e>=500?"SERVER_ERROR":"UNKNOWN"}function Ep(e,t){let n=t.persisted,i=null;switch(e){case"message":i={type:"message",message:t};break;case"agent:metadata":i={type:"agent:metadata",cost:t.cost,durationMs:t.durationMs,numTurns:t.numTurns};break;case"agent:start":i={type:"agent:start",sandboxId:t.sandboxId};break;case"agent:exit":i={type:"agent:exit",exitCode:t.exitCode};break;case"interaction:approval_requested":i={type:"interaction:approval_requested",approval:t.approval};break;case"interaction:approval_resolved":i={type:"interaction:approval_resolved",interactionId:t.interactionId,decision:t.decision};break;case"interaction:a2ui_update":i={type:"interaction:a2ui_update",message:t.message,callbackToken:t.callbackToken};break;case"interaction:client_event":i={type:"interaction:client_event",payload:t.payload};break;case"session:status":i={type:"session:status",status:t.status};break;case"keepalive":i={type:"keepalive"};break;case"error":i={type:"error",message:t.message};break;default:return!e&&t.type?t:null}return i&&n!==void 0&&(i.persisted=n),i}async function*ea(e,t){let n=e.getReader(),i=new TextDecoder,r="",o="",a;try{for(;!t?.aborted;){let{done:s,value:u}=await n.read();if(s)break;r+=i.decode(u,{stream:!0});let c=r.split(`
128
- `);r=c.pop()||"";for(let l of c)if(l.startsWith("event: "))o=l.slice(7).trim();else if(l.startsWith("id: "))a=l.slice(4).trim();else if(l.startsWith("data: ")){let d=l.slice(6);if(d==="[DONE]")continue;let f=M_({event:o,data:d,id:a});f&&(yield f),o="",a=void 0}else l.trim()===""&&(o="",a=void 0)}}finally{n.releaseLock()}}function M_(e){if(e.event==="keepalive")return{type:"keepalive"};if(!e.data)return null;try{let t=JSON.parse(e.data);return Ep(e.event,t)}catch{return null}}var jv=class{baseUrl;auth;_fetch;constructor(e){this.baseUrl=e.baseUrl.replace(/\/$/,""),this.auth=e.auth,this._fetch=e.fetch??globalThis.fetch.bind(globalThis)}async*stream(e,t){let n=await this.post(this.endpoint("/stream"),this.buildBody(e),t);if(!n.body)throw new Fr("NO_RESPONSE_BODY","No response body for SSE stream",{status:n.status});yield*ea(n.body,t)}async async(e){let t={...this.buildBody(e)};return e.callbackUrl!==void 0&&(t.callbackUrl=e.callbackUrl),e.callbackSecret!==void 0&&(t.callbackSecret=e.callbackSecret),await(await this.post(this.endpoint("/async"),t)).json()}async sync(e){return await(await this.post(this.endpoint("/sync"),this.buildBody(e))).json()}async createConversation(e,t){let n=await this.post(this.endpoint("/conversations"),{conversationId:e,...t?.agentSlug!==void 0&&{agentSlug:t.agentSlug}});return{...await n.json(),isNew:n.status===201}}async sendMessage(e,t,n){return await(await this.post(this.endpoint(`/conversations/${e}/messages`),{prompt:t,...n})).json()}async*subscribe(e,t,n){let i=await this.buildHeaders();t?.lastEventId&&(i["Last-Event-ID"]=t.lastEventId),delete i["Content-Type"];let r=await this.request("GET",this.endpoint(`/conversations/${e}/events`),i,void 0,n);if(!r.body)throw new Fr("NO_RESPONSE_BODY","No response body for SSE subscription",{status:r.status});yield*ea(r.body,n)}async getConversation(e){return await(await this.get(this.endpoint(`/conversations/${e}`))).json()}async resolve(e,t){return await(await this.post(this.endpoint("/resolve"),{callbackToken:e,...t?.decision!==void 0&&{decision:t.decision},...t?.userInput!==void 0&&{userInput:t.userInput}})).json()}async getStatus(e){return await(await this.get(this.endpoint(`/status/${e}`))).json()}get routePrefix(){return this.auth.type==="jwt"?"/api/webhooks":"/api/public"}endpoint(e){return`${this.baseUrl}${this.routePrefix}${e}`}async buildHeaders(){let e={"Content-Type":"application/json"};if(this.auth.type==="jwt"){let t=await Promise.resolve(this.auth.getToken());e.Authorization=`Bearer ${t}`,e["X-Tenant-Id"]=this.auth.tenantId,e["X-Account-Id"]=this.auth.accountId}return e}buildBody(e){let t={params:{prompt:e.prompt,...e.repo!==void 0&&{repo:e.repo},...e.token!==void 0&&{token:e.token},...e.ref!==void 0&&{ref:e.ref},...e.agentSlug!==void 0&&{agentSlug:e.agentSlug}}};return e.conversationId!==void 0&&(t.conversationId=e.conversationId),e.metadata!==void 0&&(t.metadata=e.metadata),this.auth.type==="jwt"&&(t.accountId=this.auth.accountId),t}async request(e,t,n,i,r){let o;try{o=await this._fetch(t,{method:e,headers:n,body:i,signal:r})}catch(a){throw a instanceof DOMException&&a.name==="AbortError"?a:new Fr("NETWORK_ERROR",a instanceof Error?a.message:"Network request failed")}if(!o.ok)throw await Fr.fromResponse(o);return o}async post(e,t,n){let i=await this.buildHeaders();return this.request("POST",e,i,JSON.stringify(t),n)}async get(e,t){let n=await this.buildHeaders();return delete n["Content-Type"],this.request("GET",e,n,void 0,t)}};function Fp(e){return new jv(e)}var ke=class e extends Error{constructor(t){super("ClientResponseError"),this.url="",this.status=0,this.response={},this.isAbort=!1,this.originalError=null,Object.setPrototypeOf(this,e.prototype),t!==null&&typeof t=="object"&&(this.originalError=t.originalError,this.url=typeof t.url=="string"?t.url:"",this.status=typeof t.status=="number"?t.status:0,this.isAbort=!!t.isAbort||t.name==="AbortError"||t.message==="Aborted",t.response!==null&&typeof t.response=="object"?this.response=t.response:t.data!==null&&typeof t.data=="object"?this.response=t.data:this.response={}),this.originalError||t instanceof e||(this.originalError=t),this.name="ClientResponseError "+this.status,this.message=this.response?.message,this.message||(this.isAbort?this.message="The request was aborted (most likely autocancelled; you can find more info in https://github.com/pocketbase/js-sdk#auto-cancellation).":this.originalError?.cause?.message?.includes("ECONNREFUSED ::1")?this.message="Failed to connect to the PocketBase server. Try changing the SDK URL from localhost to 127.0.0.1 (https://github.com/pocketbase/js-sdk/issues/21).":this.message="Something went wrong."),this.cause=this.originalError}get data(){return this.response}toJSON(){return{...this}}},ta=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function q_(e,t){let n={};if(typeof e!="string")return n;let i=Object.assign({},t||{}).decode||V_,r=0;for(;r<e.length;){let o=e.indexOf("=",r);if(o===-1)break;let a=e.indexOf(";",r);if(a===-1)a=e.length;else if(a<o){r=e.lastIndexOf(";",o-1)+1;continue}let s=e.slice(r,o).trim();if(n[s]===void 0){let u=e.slice(o+1,a).trim();u.charCodeAt(0)===34&&(u=u.slice(1,-1));try{n[s]=i(u)}catch{n[s]=u}}r=a+1}return n}function Uv(e,t,n){let i=Object.assign({},n||{}),r=i.encode||W_;if(!ta.test(e))throw new TypeError("argument name is invalid");let o=r(t);if(o&&!ta.test(o))throw new TypeError("argument val is invalid");let a=e+"="+o;if(i.maxAge!=null){let s=i.maxAge-0;if(isNaN(s)||!isFinite(s))throw new TypeError("option maxAge is invalid");a+="; Max-Age="+Math.floor(s)}if(i.domain){if(!ta.test(i.domain))throw new TypeError("option domain is invalid");a+="; Domain="+i.domain}if(i.path){if(!ta.test(i.path))throw new TypeError("option path is invalid");a+="; Path="+i.path}if(i.expires){if(!(function(u){return Object.prototype.toString.call(u)==="[object Date]"||u instanceof Date})(i.expires)||isNaN(i.expires.valueOf()))throw new TypeError("option expires is invalid");a+="; Expires="+i.expires.toUTCString()}if(i.httpOnly&&(a+="; HttpOnly"),i.secure&&(a+="; Secure"),i.priority)switch(typeof i.priority=="string"?i.priority.toLowerCase():i.priority){case"low":a+="; Priority=Low";break;case"medium":a+="; Priority=Medium";break;case"high":a+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}if(i.sameSite)switch(typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return a}function V_(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function W_(e){return encodeURIComponent(e)}var G_=typeof navigator<"u"&&navigator.product==="ReactNative"||typeof global<"u"&&global.HermesInternal,Lv;function Or(e){if(e)try{let t=decodeURIComponent(Lv(e.split(".")[1]).split("").map((function(n){return"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(t)||{}}catch{}return{}}function Mv(e,t=0){let n=Or(e);return!(Object.keys(n).length>0&&(!n.exp||n.exp-t>Date.now()/1e3))}Lv=typeof atob!="function"||G_?e=>{let t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,o=0,a="";i=t.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?a+=String.fromCharCode(255&n>>(-2*r&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return a}:atob;var Nv="pb_auth",In=class{constructor(){this.baseToken="",this.baseModel=null,this._onChangeCallbacks=[]}get token(){return this.baseToken}get record(){return this.baseModel}get model(){return this.baseModel}get isValid(){return!Mv(this.token)}get isSuperuser(){let t=Or(this.token);return t.type=="auth"&&(this.record?.collectionName=="_superusers"||!this.record?.collectionName&&t.collectionId=="pbc_3142635823")}get isAdmin(){return console.warn("Please replace pb.authStore.isAdmin with pb.authStore.isSuperuser OR simply check the value of pb.authStore.record?.collectionName"),this.isSuperuser}get isAuthRecord(){return console.warn("Please replace pb.authStore.isAuthRecord with !pb.authStore.isSuperuser OR simply check the value of pb.authStore.record?.collectionName"),Or(this.token).type=="auth"&&!this.isSuperuser}save(t,n){this.baseToken=t||"",this.baseModel=n||null,this.triggerChange()}clear(){this.baseToken="",this.baseModel=null,this.triggerChange()}loadFromCookie(t,n=Nv){let i=q_(t||"")[n]||"",r={};try{r=JSON.parse(i),(typeof r===null||typeof r!="object"||Array.isArray(r))&&(r={})}catch{}this.save(r.token||"",r.record||r.model||null)}exportToCookie(t,n=Nv){let i={secure:!0,sameSite:!0,httpOnly:!0,path:"/"},r=Or(this.token);i.expires=r?.exp?new Date(1e3*r.exp):new Date("1970-01-01"),t=Object.assign({},i,t);let o={token:this.token,record:this.record?JSON.parse(JSON.stringify(this.record)):null},a=Uv(n,JSON.stringify(o),t),s=typeof Blob<"u"?new Blob([a]).size:a.length;if(o.record&&s>4096){o.record={id:o.record?.id,email:o.record?.email};let u=["collectionId","collectionName","verified"];for(let c in this.record)u.includes(c)&&(o.record[c]=this.record[c]);a=Uv(n,JSON.stringify(o),t)}return a}onChange(t,n=!1){return this._onChangeCallbacks.push(t),n&&t(this.token,this.record),()=>{for(let i=this._onChangeCallbacks.length-1;i>=0;i--)if(this._onChangeCallbacks[i]==t)return delete this._onChangeCallbacks[i],void this._onChangeCallbacks.splice(i,1)}}triggerChange(){for(let t of this._onChangeCallbacks)t&&t(this.token,this.record)}},zp=class extends In{constructor(t="pocketbase_auth"){super(),this.storageFallback={},this.storageKey=t,this._bindStorageEvent()}get token(){return(this._storageGet(this.storageKey)||{}).token||""}get record(){let t=this._storageGet(this.storageKey)||{};return t.record||t.model||null}get model(){return this.record}save(t,n){this._storageSet(this.storageKey,{token:t,record:n}),super.save(t,n)}clear(){this._storageRemove(this.storageKey),super.clear()}_storageGet(t){if(typeof window<"u"&&window?.localStorage){let n=window.localStorage.getItem(t)||"";try{return JSON.parse(n)}catch{return n}}return this.storageFallback[t]}_storageSet(t,n){if(typeof window<"u"&&window?.localStorage){let i=n;typeof n!="string"&&(i=JSON.stringify(n)),window.localStorage.setItem(t,i)}else this.storageFallback[t]=n}_storageRemove(t){typeof window<"u"&&window?.localStorage&&window.localStorage?.removeItem(t),delete this.storageFallback[t]}_bindStorageEvent(){typeof window<"u"&&window?.localStorage&&window.addEventListener&&window.addEventListener("storage",(t=>{if(t.key!=this.storageKey)return;let n=this._storageGet(this.storageKey)||{};super.save(n.token||"",n.record||n.model||null)}))}},Ke=class{constructor(t){this.client=t}},Pp=class extends Ke{async getAll(t){return t=Object.assign({method:"GET"},t),this.client.send("/api/settings",t)}async update(t,n){return n=Object.assign({method:"PATCH",body:t},n),this.client.send("/api/settings",n)}async testS3(t="storage",n){return n=Object.assign({method:"POST",body:{filesystem:t}},n),this.client.send("/api/settings/test/s3",n).then((()=>!0))}async testEmail(t,n,i,r){return r=Object.assign({method:"POST",body:{email:n,template:i,collection:t}},r),this.client.send("/api/settings/test/email",r).then((()=>!0))}async generateAppleClientSecret(t,n,i,r,o,a){return a=Object.assign({method:"POST",body:{clientId:t,teamId:n,keyId:i,privateKey:r,duration:o}},a),this.client.send("/api/settings/apple/generate-client-secret",a)}},J_=["requestKey","$cancelKey","$autoCancel","fetch","headers","body","query","params","cache","credentials","headers","integrity","keepalive","method","mode","redirect","referrer","referrerPolicy","signal","window"];function Vp(e){if(e){e.query=e.query||{};for(let t in e)J_.includes(t)||(e.query[t]=e[t],delete e[t])}}function Wp(e){let t=[];for(let n in e){let i=encodeURIComponent(n),r=Array.isArray(e[n])?e[n]:[e[n]];for(let o of r)o=K_(o),o!==null&&t.push(i+"="+o)}return t.join("&")}function K_(e){return e==null?null:e instanceof Date?encodeURIComponent(e.toISOString().replace("T"," ")):encodeURIComponent(typeof e=="object"?JSON.stringify(e):e)}var ra=class extends Ke{constructor(){super(...arguments),this.clientId="",this.eventSource=null,this.subscriptions={},this.lastSentSubscriptions=[],this.maxConnectTimeout=15e3,this.reconnectAttempts=0,this.maxReconnectAttempts=1/0,this.predefinedReconnectIntervals=[200,300,500,1e3,1200,1500,2e3],this.pendingConnects=[]}get isConnected(){return!!this.eventSource&&!!this.clientId&&!this.pendingConnects.length}async subscribe(t,n,i){if(!t)throw new Error("topic must be set.");let r=t;if(i){Vp(i=Object.assign({},i));let a="options="+encodeURIComponent(JSON.stringify({query:i.query,headers:i.headers}));r+=(r.includes("?")?"&":"?")+a}let o=function(a){let s=a,u;try{u=JSON.parse(s?.data)}catch{}n(u||{})};return this.subscriptions[r]||(this.subscriptions[r]=[]),this.subscriptions[r].push(o),this.isConnected?this.subscriptions[r].length===1?await this.submitSubscriptions():this.eventSource?.addEventListener(r,o):await this.connect(),async()=>this.unsubscribeByTopicAndListener(t,o)}async unsubscribe(t){let n=!1;if(t){let i=this.getSubscriptionsByTopic(t);for(let r in i)if(this.hasSubscriptionListeners(r)){for(let o of this.subscriptions[r])this.eventSource?.removeEventListener(r,o);delete this.subscriptions[r],n||(n=!0)}}else this.subscriptions={};this.hasSubscriptionListeners()?n&&await this.submitSubscriptions():this.disconnect()}async unsubscribeByPrefix(t){let n=!1;for(let i in this.subscriptions)if((i+"?").startsWith(t)){n=!0;for(let r of this.subscriptions[i])this.eventSource?.removeEventListener(i,r);delete this.subscriptions[i]}n&&(this.hasSubscriptionListeners()?await this.submitSubscriptions():this.disconnect())}async unsubscribeByTopicAndListener(t,n){let i=!1,r=this.getSubscriptionsByTopic(t);for(let o in r){if(!Array.isArray(this.subscriptions[o])||!this.subscriptions[o].length)continue;let a=!1;for(let s=this.subscriptions[o].length-1;s>=0;s--)this.subscriptions[o][s]===n&&(a=!0,delete this.subscriptions[o][s],this.subscriptions[o].splice(s,1),this.eventSource?.removeEventListener(o,n));a&&(this.subscriptions[o].length||delete this.subscriptions[o],i||this.hasSubscriptionListeners(o)||(i=!0))}this.hasSubscriptionListeners()?i&&await this.submitSubscriptions():this.disconnect()}hasSubscriptionListeners(t){if(this.subscriptions=this.subscriptions||{},t)return!!this.subscriptions[t]?.length;for(let n in this.subscriptions)if(this.subscriptions[n]?.length)return!0;return!1}async submitSubscriptions(){if(this.clientId)return this.addAllSubscriptionListeners(),this.lastSentSubscriptions=this.getNonEmptySubscriptionKeys(),this.client.send("/api/realtime",{method:"POST",body:{clientId:this.clientId,subscriptions:this.lastSentSubscriptions},requestKey:this.getSubscriptionsCancelKey()}).catch((t=>{if(!t?.isAbort)throw t}))}getSubscriptionsCancelKey(){return"realtime_"+this.clientId}getSubscriptionsByTopic(t){let n={};t=t.includes("?")?t:t+"?";for(let i in this.subscriptions)(i+"?").startsWith(t)&&(n[i]=this.subscriptions[i]);return n}getNonEmptySubscriptionKeys(){let t=[];for(let n in this.subscriptions)this.subscriptions[n].length&&t.push(n);return t}addAllSubscriptionListeners(){if(this.eventSource){this.removeAllSubscriptionListeners();for(let t in this.subscriptions)for(let n of this.subscriptions[t])this.eventSource.addEventListener(t,n)}}removeAllSubscriptionListeners(){if(this.eventSource)for(let t in this.subscriptions)for(let n of this.subscriptions[t])this.eventSource.removeEventListener(t,n)}async connect(){if(!(this.reconnectAttempts>0))return new Promise(((t,n)=>{this.pendingConnects.push({resolve:t,reject:n}),this.pendingConnects.length>1||this.initConnect()}))}initConnect(){this.disconnect(!0),clearTimeout(this.connectTimeoutId),this.connectTimeoutId=setTimeout((()=>{this.connectErrorHandler(new Error("EventSource connect took too long."))}),this.maxConnectTimeout),this.eventSource=new EventSource(this.client.buildURL("/api/realtime")),this.eventSource.onerror=t=>{this.connectErrorHandler(new Error("Failed to establish realtime connection."))},this.eventSource.addEventListener("PB_CONNECT",(t=>{let n=t;this.clientId=n?.lastEventId,this.submitSubscriptions().then((async()=>{let i=3;for(;this.hasUnsentSubscriptions()&&i>0;)i--,await this.submitSubscriptions()})).then((()=>{for(let r of this.pendingConnects)r.resolve();this.pendingConnects=[],this.reconnectAttempts=0,clearTimeout(this.reconnectTimeoutId),clearTimeout(this.connectTimeoutId);let i=this.getSubscriptionsByTopic("PB_CONNECT");for(let r in i)for(let o of i[r])o(t)})).catch((i=>{this.clientId="",this.connectErrorHandler(i)}))}))}hasUnsentSubscriptions(){let t=this.getNonEmptySubscriptionKeys();if(t.length!=this.lastSentSubscriptions.length)return!0;for(let n of t)if(!this.lastSentSubscriptions.includes(n))return!0;return!1}connectErrorHandler(t){if(clearTimeout(this.connectTimeoutId),clearTimeout(this.reconnectTimeoutId),!this.clientId&&!this.reconnectAttempts||this.reconnectAttempts>this.maxReconnectAttempts){for(let i of this.pendingConnects)i.reject(new ke(t));return this.pendingConnects=[],void this.disconnect()}this.disconnect(!0);let n=this.predefinedReconnectIntervals[this.reconnectAttempts]||this.predefinedReconnectIntervals[this.predefinedReconnectIntervals.length-1];this.reconnectAttempts++,this.reconnectTimeoutId=setTimeout((()=>{this.initConnect()}),n)}disconnect(t=!1){if(this.clientId&&this.onDisconnect&&this.onDisconnect(Object.keys(this.subscriptions)),clearTimeout(this.connectTimeoutId),clearTimeout(this.reconnectTimeoutId),this.removeAllSubscriptionListeners(),this.client.cancelRequest(this.getSubscriptionsCancelKey()),this.eventSource?.close(),this.eventSource=null,this.clientId="",!t){this.reconnectAttempts=0;for(let n of this.pendingConnects)n.resolve();this.pendingConnects=[]}}},na=class extends Ke{decode(t){return t}async getFullList(t,n){if(typeof t=="number")return this._getFullList(t,n);let i=1e3;return(n=Object.assign({},t,n)).batch&&(i=n.batch,delete n.batch),this._getFullList(i,n)}async getList(t=1,n=30,i){return(i=Object.assign({method:"GET"},i)).query=Object.assign({page:t,perPage:n},i.query),this.client.send(this.baseCrudPath,i).then((r=>(r.items=r.items?.map((o=>this.decode(o)))||[],r)))}async getFirstListItem(t,n){return(n=Object.assign({requestKey:"one_by_filter_"+this.baseCrudPath+"_"+t},n)).query=Object.assign({filter:t,skipTotal:1},n.query),this.getList(1,1,n).then((i=>{if(!i?.items?.length)throw new ke({status:404,response:{code:404,message:"The requested resource wasn't found.",data:{}}});return i.items[0]}))}async getOne(t,n){if(!t)throw new ke({url:this.client.buildURL(this.baseCrudPath+"/"),status:404,response:{code:404,message:"Missing required record id.",data:{}}});return n=Object.assign({method:"GET"},n),this.client.send(this.baseCrudPath+"/"+encodeURIComponent(t),n).then((i=>this.decode(i)))}async create(t,n){return n=Object.assign({method:"POST",body:t},n),this.client.send(this.baseCrudPath,n).then((i=>this.decode(i)))}async update(t,n,i){return i=Object.assign({method:"PATCH",body:n},i),this.client.send(this.baseCrudPath+"/"+encodeURIComponent(t),i).then((r=>this.decode(r)))}async delete(t,n){return n=Object.assign({method:"DELETE"},n),this.client.send(this.baseCrudPath+"/"+encodeURIComponent(t),n).then((()=>!0))}_getFullList(t=1e3,n){(n=n||{}).query=Object.assign({skipTotal:1},n.query);let i=[],r=async o=>this.getList(o,t||1e3,n).then((a=>{let s=a.items;return i=i.concat(s),s.length==a.perPage?r(o+1):i}));return r(1)}};function Ct(e,t,n,i){let r=i!==void 0;return r||n!==void 0?r?(console.warn(e),t.body=Object.assign({},t.body,n),t.query=Object.assign({},t.query,i),t):Object.assign(t,n):t}function Op(e){e._resetAutoRefresh?.()}var Ap=class extends na{constructor(t,n){super(t),this.collectionIdOrName=n}get baseCrudPath(){return this.baseCollectionPath+"/records"}get baseCollectionPath(){return"/api/collections/"+encodeURIComponent(this.collectionIdOrName)}get isSuperusers(){return this.collectionIdOrName=="_superusers"||this.collectionIdOrName=="_pbc_2773867675"}async subscribe(t,n,i){if(!t)throw new Error("Missing topic.");if(!n)throw new Error("Missing subscription callback.");return this.client.realtime.subscribe(this.collectionIdOrName+"/"+t,n,i)}async unsubscribe(t){return t?this.client.realtime.unsubscribe(this.collectionIdOrName+"/"+t):this.client.realtime.unsubscribeByPrefix(this.collectionIdOrName)}async getFullList(t,n){if(typeof t=="number")return super.getFullList(t,n);let i=Object.assign({},t,n);return super.getFullList(i)}async getList(t=1,n=30,i){return super.getList(t,n,i)}async getFirstListItem(t,n){return super.getFirstListItem(t,n)}async getOne(t,n){return super.getOne(t,n)}async create(t,n){return super.create(t,n)}async update(t,n,i){return super.update(t,n,i).then((r=>{if(this.client.authStore.record?.id===r?.id&&(this.client.authStore.record?.collectionId===this.collectionIdOrName||this.client.authStore.record?.collectionName===this.collectionIdOrName)){let o=Object.assign({},this.client.authStore.record.expand),a=Object.assign({},this.client.authStore.record,r);o&&(a.expand=Object.assign(o,r.expand)),this.client.authStore.save(this.client.authStore.token,a)}return r}))}async delete(t,n){return super.delete(t,n).then((i=>(!i||this.client.authStore.record?.id!==t||this.client.authStore.record?.collectionId!==this.collectionIdOrName&&this.client.authStore.record?.collectionName!==this.collectionIdOrName||this.client.authStore.clear(),i)))}authResponse(t){let n=this.decode(t?.record||{});return this.client.authStore.save(t?.token,n),Object.assign({},t,{token:t?.token||"",record:n})}async listAuthMethods(t){return t=Object.assign({method:"GET",fields:"mfa,otp,password,oauth2"},t),this.client.send(this.baseCollectionPath+"/auth-methods",t)}async authWithPassword(t,n,i){let r;i=Object.assign({method:"POST",body:{identity:t,password:n}},i),this.isSuperusers&&(r=i.autoRefreshThreshold,delete i.autoRefreshThreshold,i.autoRefresh||Op(this.client));let o=await this.client.send(this.baseCollectionPath+"/auth-with-password",i);return o=this.authResponse(o),r&&this.isSuperusers&&(function(s,u,c,l){Op(s);let d=s.beforeSend,p=s.authStore.record,f=s.authStore.onChange(((g,x)=>{(!g||x?.id!=p?.id||(x?.collectionId||p?.collectionId)&&x?.collectionId!=p?.collectionId)&&Op(s)}));s._resetAutoRefresh=function(){f(),s.beforeSend=d,delete s._resetAutoRefresh},s.beforeSend=async(g,x)=>{let S=s.authStore.token;if(x.query?.autoRefresh)return d?d(g,x):{url:g,sendOptions:x};let N=s.authStore.isValid;if(N&&Mv(s.authStore.token,u))try{await c()}catch{N=!1}N||await l();let H=x.headers||{};for(let O in H)if(O.toLowerCase()=="authorization"&&S==H[O]&&s.authStore.token){H[O]=s.authStore.token;break}return x.headers=H,d?d(g,x):{url:g,sendOptions:x}}})(this.client,r,(()=>this.authRefresh({autoRefresh:!0})),(()=>this.authWithPassword(t,n,Object.assign({autoRefresh:!0},i)))),o}async authWithOAuth2Code(t,n,i,r,o,a,s){let u={method:"POST",body:{provider:t,code:n,codeVerifier:i,redirectURL:r,createData:o}};return u=Ct("This form of authWithOAuth2Code(provider, code, codeVerifier, redirectURL, createData?, body?, query?) is deprecated. Consider replacing it with authWithOAuth2Code(provider, code, codeVerifier, redirectURL, createData?, options?).",u,a,s),this.client.send(this.baseCollectionPath+"/auth-with-oauth2",u).then((c=>this.authResponse(c)))}authWithOAuth2(...t){if(t.length>1||typeof t?.[0]=="string")return console.warn("PocketBase: This form of authWithOAuth2() is deprecated and may get removed in the future. Please replace with authWithOAuth2Code() OR use the authWithOAuth2() realtime form as shown in https://pocketbase.io/docs/authentication/#oauth2-integration."),this.authWithOAuth2Code(t?.[0]||"",t?.[1]||"",t?.[2]||"",t?.[3]||"",t?.[4]||{},t?.[5]||{},t?.[6]||{});let n=t?.[0]||{},i=null;n.urlCallback||(i=Rv(void 0));let r=new ra(this.client);function o(){i?.close(),r.unsubscribe()}let a={},s=n.requestKey;return s&&(a.requestKey=s),this.listAuthMethods(a).then((u=>{let c=u.oauth2.providers.find((d=>d.name===n.provider));if(!c)throw new ke(new Error(`Missing or invalid provider "${n.provider}".`));let l=this.client.buildURL("/api/oauth2-redirect");return new Promise((async(d,p)=>{let f=s?this.client.cancelControllers?.[s]:void 0;f&&(f.signal.onabort=()=>{o(),p(new ke({isAbort:!0,message:"manually cancelled"}))}),r.onDisconnect=g=>{g.length&&p&&(o(),p(new ke(new Error("realtime connection interrupted"))))};try{await r.subscribe("@oauth2",(async N=>{let H=r.clientId;try{if(!N.state||H!==N.state)throw new Error("State parameters don't match.");if(N.error||!N.code)throw new Error("OAuth2 redirect error or missing code: "+N.error);let O=Object.assign({},n);delete O.provider,delete O.scopes,delete O.createData,delete O.urlCallback,f?.signal?.onabort&&(f.signal.onabort=null);let W=await this.authWithOAuth2Code(c.name,N.code,c.codeVerifier,l,n.createData,O);d(W)}catch(O){p(new ke(O))}o()}));let g={state:r.clientId};n.scopes?.length&&(g.scope=n.scopes.join(" "));let x=this._replaceQueryParams(c.authURL+l,g);await(n.urlCallback||function(N){i?i.location.href=N:i=Rv(N)})(x)}catch(g){f?.signal?.onabort&&(f.signal.onabort=null),o(),p(new ke(g))}}))})).catch((u=>{throw o(),u}))}async authRefresh(t,n){let i={method:"POST"};return i=Ct("This form of authRefresh(body?, query?) is deprecated. Consider replacing it with authRefresh(options?).",i,t,n),this.client.send(this.baseCollectionPath+"/auth-refresh",i).then((r=>this.authResponse(r)))}async requestPasswordReset(t,n,i){let r={method:"POST",body:{email:t}};return r=Ct("This form of requestPasswordReset(email, body?, query?) is deprecated. Consider replacing it with requestPasswordReset(email, options?).",r,n,i),this.client.send(this.baseCollectionPath+"/request-password-reset",r).then((()=>!0))}async confirmPasswordReset(t,n,i,r,o){let a={method:"POST",body:{token:t,password:n,passwordConfirm:i}};return a=Ct("This form of confirmPasswordReset(token, password, passwordConfirm, body?, query?) is deprecated. Consider replacing it with confirmPasswordReset(token, password, passwordConfirm, options?).",a,r,o),this.client.send(this.baseCollectionPath+"/confirm-password-reset",a).then((()=>!0))}async requestVerification(t,n,i){let r={method:"POST",body:{email:t}};return r=Ct("This form of requestVerification(email, body?, query?) is deprecated. Consider replacing it with requestVerification(email, options?).",r,n,i),this.client.send(this.baseCollectionPath+"/request-verification",r).then((()=>!0))}async confirmVerification(t,n,i){let r={method:"POST",body:{token:t}};return r=Ct("This form of confirmVerification(token, body?, query?) is deprecated. Consider replacing it with confirmVerification(token, options?).",r,n,i),this.client.send(this.baseCollectionPath+"/confirm-verification",r).then((()=>{let o=Or(t),a=this.client.authStore.record;return a&&!a.verified&&a.id===o.id&&a.collectionId===o.collectionId&&(a.verified=!0,this.client.authStore.save(this.client.authStore.token,a)),!0}))}async requestEmailChange(t,n,i){let r={method:"POST",body:{newEmail:t}};return r=Ct("This form of requestEmailChange(newEmail, body?, query?) is deprecated. Consider replacing it with requestEmailChange(newEmail, options?).",r,n,i),this.client.send(this.baseCollectionPath+"/request-email-change",r).then((()=>!0))}async confirmEmailChange(t,n,i,r){let o={method:"POST",body:{token:t,password:n}};return o=Ct("This form of confirmEmailChange(token, password, body?, query?) is deprecated. Consider replacing it with confirmEmailChange(token, password, options?).",o,i,r),this.client.send(this.baseCollectionPath+"/confirm-email-change",o).then((()=>{let a=Or(t),s=this.client.authStore.record;return s&&s.id===a.id&&s.collectionId===a.collectionId&&this.client.authStore.clear(),!0}))}async listExternalAuths(t,n){return this.client.collection("_externalAuths").getFullList(Object.assign({},n,{filter:this.client.filter("recordRef = {:id}",{id:t})}))}async unlinkExternalAuth(t,n,i){let r=await this.client.collection("_externalAuths").getFirstListItem(this.client.filter("recordRef = {:recordId} && provider = {:provider}",{recordId:t,provider:n}));return this.client.collection("_externalAuths").delete(r.id,i).then((()=>!0))}async requestOTP(t,n){return n=Object.assign({method:"POST",body:{email:t}},n),this.client.send(this.baseCollectionPath+"/request-otp",n)}async authWithOTP(t,n,i){return i=Object.assign({method:"POST",body:{otpId:t,password:n}},i),this.client.send(this.baseCollectionPath+"/auth-with-otp",i).then((r=>this.authResponse(r)))}async impersonate(t,n,i){(i=Object.assign({method:"POST",body:{duration:n}},i)).headers=i.headers||{},i.headers.Authorization||(i.headers.Authorization=this.client.authStore.token);let r=new Sn(this.client.baseURL,new In,this.client.lang),o=await r.send(this.baseCollectionPath+"/impersonate/"+encodeURIComponent(t),i);return r.authStore.save(o?.token,this.decode(o?.record||{})),r}_replaceQueryParams(t,n={}){let i=t,r="";t.indexOf("?")>=0&&(i=t.substring(0,t.indexOf("?")),r=t.substring(t.indexOf("?")+1));let o={},a=r.split("&");for(let s of a){if(s=="")continue;let u=s.split("=");o[decodeURIComponent(u[0].replace(/\+/g," "))]=decodeURIComponent((u[1]||"").replace(/\+/g," "))}for(let s in n)n.hasOwnProperty(s)&&(n[s]==null?delete o[s]:o[s]=n[s]);r="";for(let s in o)o.hasOwnProperty(s)&&(r!=""&&(r+="&"),r+=encodeURIComponent(s.replace(/%20/g,"+"))+"="+encodeURIComponent(o[s].replace(/%20/g,"+")));return r!=""?i+"?"+r:i}};function Rv(e){if(typeof window>"u"||!window?.open)throw new ke(new Error("Not in a browser context - please pass a custom urlCallback function."));let t=1024,n=768,i=window.innerWidth,r=window.innerHeight;t=t>i?i:t,n=n>r?r:n;let o=i/2-t/2,a=r/2-n/2;return window.open(e,"popup_window","width="+t+",height="+n+",top="+a+",left="+o+",resizable,menubar=no")}var Tp=class extends na{get baseCrudPath(){return"/api/collections"}async import(t,n=!1,i){return i=Object.assign({method:"PUT",body:{collections:t,deleteMissing:n}},i),this.client.send(this.baseCrudPath+"/import",i).then((()=>!0))}async getScaffolds(t){return t=Object.assign({method:"GET"},t),this.client.send(this.baseCrudPath+"/meta/scaffolds",t)}async truncate(t,n){return n=Object.assign({method:"DELETE"},n),this.client.send(this.baseCrudPath+"/"+encodeURIComponent(t)+"/truncate",n).then((()=>!0))}},jp=class extends Ke{async getList(t=1,n=30,i){return(i=Object.assign({method:"GET"},i)).query=Object.assign({page:t,perPage:n},i.query),this.client.send("/api/logs",i)}async getOne(t,n){if(!t)throw new ke({url:this.client.buildURL("/api/logs/"),status:404,response:{code:404,message:"Missing required log id.",data:{}}});return n=Object.assign({method:"GET"},n),this.client.send("/api/logs/"+encodeURIComponent(t),n)}async getStats(t){return t=Object.assign({method:"GET"},t),this.client.send("/api/logs/stats",t)}},Up=class extends Ke{async check(t){return t=Object.assign({method:"GET"},t),this.client.send("/api/health",t)}},Np=class extends Ke{getUrl(t,n,i={}){return console.warn("Please replace pb.files.getUrl() with pb.files.getURL()"),this.getURL(t,n,i)}getURL(t,n,i={}){if(!n||!t?.id||!t?.collectionId&&!t?.collectionName)return"";let r=[];r.push("api"),r.push("files"),r.push(encodeURIComponent(t.collectionId||t.collectionName)),r.push(encodeURIComponent(t.id)),r.push(encodeURIComponent(n));let o=this.client.buildURL(r.join("/"));i.download===!1&&delete i.download;let a=Wp(i);return a&&(o+=(o.includes("?")?"&":"?")+a),o}async getToken(t){return t=Object.assign({method:"POST"},t),this.client.send("/api/files/token",t).then((n=>n?.token||""))}},Rp=class extends Ke{async getFullList(t){return t=Object.assign({method:"GET"},t),this.client.send("/api/backups",t)}async create(t,n){return n=Object.assign({method:"POST",body:{name:t}},n),this.client.send("/api/backups",n).then((()=>!0))}async upload(t,n){return n=Object.assign({method:"POST",body:t},n),this.client.send("/api/backups/upload",n).then((()=>!0))}async delete(t,n){return n=Object.assign({method:"DELETE"},n),this.client.send(`/api/backups/${encodeURIComponent(t)}`,n).then((()=>!0))}async restore(t,n){return n=Object.assign({method:"POST"},n),this.client.send(`/api/backups/${encodeURIComponent(t)}/restore`,n).then((()=>!0))}getDownloadUrl(t,n){return console.warn("Please replace pb.backups.getDownloadUrl() with pb.backups.getDownloadURL()"),this.getDownloadURL(t,n)}getDownloadURL(t,n){return this.client.buildURL(`/api/backups/${encodeURIComponent(n)}?token=${encodeURIComponent(t)}`)}},Bp=class extends Ke{async getFullList(t){return t=Object.assign({method:"GET"},t),this.client.send("/api/crons",t)}async run(t,n){return n=Object.assign({method:"POST"},n),this.client.send(`/api/crons/${encodeURIComponent(t)}`,n).then((()=>!0))}};function Zp(e){return typeof Blob<"u"&&e instanceof Blob||typeof File<"u"&&e instanceof File||e!==null&&typeof e=="object"&&e.uri&&(typeof navigator<"u"&&navigator.product==="ReactNative"||typeof global<"u"&&global.HermesInternal)}function Lp(e){return e&&(e.constructor?.name==="FormData"||typeof FormData<"u"&&e instanceof FormData)}function Bv(e){for(let t in e){let n=Array.isArray(e[t])?e[t]:[e[t]];for(let i of n)if(Zp(i))return!0}return!1}var H_=/^[\-\.\d]+$/;function Zv(e){if(typeof e!="string")return e;if(e=="true")return!0;if(e=="false")return!1;if((e[0]==="-"||e[0]>="0"&&e[0]<="9")&&H_.test(e)){let t=+e;if(""+t===e)return t}return e}var Mp=class extends Ke{constructor(){super(...arguments),this.requests=[],this.subs={}}collection(t){return this.subs[t]||(this.subs[t]=new qp(this.requests,t)),this.subs[t]}async send(t){let n=new FormData,i=[];for(let r=0;r<this.requests.length;r++){let o=this.requests[r];if(i.push({method:o.method,url:o.url,headers:o.headers,body:o.json}),o.files)for(let a in o.files){let s=o.files[a]||[];for(let u of s)n.append("requests."+r+"."+a,u)}}return n.append("@jsonPayload",JSON.stringify({requests:i})),t=Object.assign({method:"POST",body:n},t),this.client.send("/api/batch",t)}},qp=class{constructor(t,n){this.requests=[],this.requests=t,this.collectionIdOrName=n}upsert(t,n){n=Object.assign({body:t||{}},n);let i={method:"PUT",url:"/api/collections/"+encodeURIComponent(this.collectionIdOrName)+"/records"};this.prepareRequest(i,n),this.requests.push(i)}create(t,n){n=Object.assign({body:t||{}},n);let i={method:"POST",url:"/api/collections/"+encodeURIComponent(this.collectionIdOrName)+"/records"};this.prepareRequest(i,n),this.requests.push(i)}update(t,n,i){i=Object.assign({body:n||{}},i);let r={method:"PATCH",url:"/api/collections/"+encodeURIComponent(this.collectionIdOrName)+"/records/"+encodeURIComponent(t)};this.prepareRequest(r,i),this.requests.push(r)}delete(t,n){n=Object.assign({},n);let i={method:"DELETE",url:"/api/collections/"+encodeURIComponent(this.collectionIdOrName)+"/records/"+encodeURIComponent(t)};this.prepareRequest(i,n),this.requests.push(i)}prepareRequest(t,n){if(Vp(n),t.headers=n.headers,t.json={},t.files={},n.query!==void 0){let r=Wp(n.query);r&&(t.url+=(t.url.includes("?")?"&":"?")+r)}let i=n.body;Lp(i)&&(i=(function(o){let a={};return o.forEach(((s,u)=>{if(u==="@jsonPayload"&&typeof s=="string")try{let c=JSON.parse(s);Object.assign(a,c)}catch(c){console.warn("@jsonPayload error:",c)}else a[u]!==void 0?(Array.isArray(a[u])||(a[u]=[a[u]]),a[u].push(Zv(s))):a[u]=Zv(s)})),a})(i));for(let r in i){let o=i[r];if(Zp(o))t.files[r]=t.files[r]||[],t.files[r].push(o);else if(Array.isArray(o)){let a=[],s=[];for(let u of o)Zp(u)?a.push(u):s.push(u);if(a.length>0&&a.length==o.length){t.files[r]=t.files[r]||[];for(let u of a)t.files[r].push(u)}else if(t.json[r]=s,a.length>0){let u=r;r.startsWith("+")||r.endsWith("+")||(u+="+"),t.files[u]=t.files[u]||[];for(let c of a)t.files[u].push(c)}}else t.json[r]=o}}},Sn=class{get baseUrl(){return this.baseURL}set baseUrl(t){this.baseURL=t}constructor(t="/",n,i="en-US"){this.cancelControllers={},this.recordServices={},this.enableAutoCancellation=!0,this.baseURL=t,this.lang=i,n?this.authStore=n:typeof window<"u"&&window.Deno?this.authStore=new In:this.authStore=new zp,this.collections=new Tp(this),this.files=new Np(this),this.logs=new jp(this),this.settings=new Pp(this),this.realtime=new ra(this),this.health=new Up(this),this.backups=new Rp(this),this.crons=new Bp(this)}get admins(){return this.collection("_superusers")}createBatch(){return new Mp(this)}collection(t){return this.recordServices[t]||(this.recordServices[t]=new Ap(this,t)),this.recordServices[t]}autoCancellation(t){return this.enableAutoCancellation=!!t,this}cancelRequest(t){return this.cancelControllers[t]&&(this.cancelControllers[t].abort(),delete this.cancelControllers[t]),this}cancelAllRequests(){for(let t in this.cancelControllers)this.cancelControllers[t].abort();return this.cancelControllers={},this}filter(t,n){if(!n)return t;for(let i in n){let r=n[i];switch(typeof r){case"boolean":case"number":r=""+r;break;case"string":r="'"+r.replace(/'/g,"\\'")+"'";break;default:r=r===null?"null":r instanceof Date?"'"+r.toISOString().replace("T"," ")+"'":"'"+JSON.stringify(r).replace(/'/g,"\\'")+"'"}t=t.replaceAll("{:"+i+"}",r)}return t}getFileUrl(t,n,i={}){return console.warn("Please replace pb.getFileUrl() with pb.files.getURL()"),this.files.getURL(t,n,i)}buildUrl(t){return console.warn("Please replace pb.buildUrl() with pb.buildURL()"),this.buildURL(t)}buildURL(t){let n=this.baseURL;return typeof window>"u"||!window.location||n.startsWith("https://")||n.startsWith("http://")||(n=window.location.origin?.endsWith("/")?window.location.origin.substring(0,window.location.origin.length-1):window.location.origin||"",this.baseURL.startsWith("/")||(n+=window.location.pathname||"/",n+=n.endsWith("/")?"":"/"),n+=this.baseURL),t&&(n+=n.endsWith("/")?"":"/",n+=t.startsWith("/")?t.substring(1):t),n}async send(t,n){n=this.initSendOptions(t,n);let i=this.buildURL(t);if(this.beforeSend){let r=Object.assign({},await this.beforeSend(i,n));r.url!==void 0||r.options!==void 0?(i=r.url||i,n=r.options||n):Object.keys(r).length&&(n=r,console?.warn&&console.warn("Deprecated format of beforeSend return: please use `return { url, options }`, instead of `return options`."))}if(n.query!==void 0){let r=Wp(n.query);r&&(i+=(i.includes("?")?"&":"?")+r),delete n.query}return this.getHeader(n.headers,"Content-Type")=="application/json"&&n.body&&typeof n.body!="string"&&(n.body=JSON.stringify(n.body)),(n.fetch||fetch)(i,n).then((async r=>{let o={};try{o=await r.json()}catch(a){if(n.signal?.aborted||a?.name=="AbortError"||a?.message=="Aborted")throw a}if(this.afterSend&&(o=await this.afterSend(r,o,n)),r.status>=400)throw new ke({url:r.url,status:r.status,data:o});return o})).catch((r=>{throw new ke(r)}))}initSendOptions(t,n){if((n=Object.assign({method:"GET"},n)).body=(function(r){if(typeof FormData>"u"||r===void 0||typeof r!="object"||r===null||Lp(r)||!Bv(r))return r;let o=new FormData;for(let a in r){let s=r[a];if(s!==void 0)if(typeof s!="object"||Bv({data:s})){let u=Array.isArray(s)?s:[s];for(let c of u)o.append(a,c)}else{let u={};u[a]=s,o.append("@jsonPayload",JSON.stringify(u))}}return o})(n.body),Vp(n),n.query=Object.assign({},n.params,n.query),n.requestKey===void 0&&(n.$autoCancel===!1||n.query.$autoCancel===!1?n.requestKey=null:(n.$cancelKey||n.query.$cancelKey)&&(n.requestKey=n.$cancelKey||n.query.$cancelKey)),delete n.$autoCancel,delete n.query.$autoCancel,delete n.$cancelKey,delete n.query.$cancelKey,this.getHeader(n.headers,"Content-Type")!==null||Lp(n.body)||(n.headers=Object.assign({},n.headers,{"Content-Type":"application/json"})),this.getHeader(n.headers,"Accept-Language")===null&&(n.headers=Object.assign({},n.headers,{"Accept-Language":this.lang})),this.authStore.token&&this.getHeader(n.headers,"Authorization")===null&&(n.headers=Object.assign({},n.headers,{Authorization:this.authStore.token})),this.enableAutoCancellation&&n.requestKey!==null){let i=n.requestKey||(n.method||"GET")+t;delete n.requestKey,this.cancelRequest(i);let r=new AbortController;this.cancelControllers[i]=r,n.signal=r.signal}return n}getHeader(t,n){t=t||{},n=n.toLowerCase();for(let i in t)if(i.toLowerCase()==n)return t[i];return null}};function qv(e){let t=new Sn(e.baseUrl);return t.autoCancellation(!1),e.token&&t.authStore.save(e.token),(e.tenantId||e.accountId)&&(t.beforeSend=(n,i)=>{let r=i.headers;return e.tenantId&&(r["X-Tenant-Id"]=e.tenantId),e.accountId&&(r["X-Account-Id"]=e.accountId),{url:n,options:i}}),t}function M(e){return e instanceof Error?e.message:String(e)}async function k(e,t){let n=kt(e);try{let i=await t();return dt(n),i}catch(i){dt(n),y("%s",M(i))}}function v(e){Pe()?Fv(e.json()):e.human()}function Y_(e){let t={};return e.token&&(t.Authorization=`Bearer ${e.token}`),e.tenantId&&(t["X-Tenant-Id"]=e.tenantId),e.accountId&&(t["X-Account-Id"]=e.accountId),t}function Vv(e){if(!e.length)throw new Error("empty batch response");let t=e[0];if(t.error?.message)throw new Error(`tRPC error: ${t.error.message}`);if(!t.result?.data)throw new Error("unexpected response format");return t.result.data.json}var ia=class{baseUrl;headers;constructor(t){this.baseUrl=t.baseUrl.replace(/\/+$/,""),this.headers=Y_(t)}async query(t,n){let r=encodeURIComponent(JSON.stringify({0:{json:n}})),o=`${this.baseUrl}/trpc/${t}?batch=1&input=${r}`,a=await fetch(o,{headers:this.headers});a.status>=400&&await this.throwHttpError(a);let s=await a.json();return Vv(s)}async mutate(t,n){let i={0:{json:n}},r=`${this.baseUrl}/trpc/${t}?batch=1`,o=await fetch(r,{method:"POST",headers:{...this.headers,"Content-Type":"application/json"},body:JSON.stringify(i)});o.status>=400&&await this.throwHttpError(o);let a=await o.json();return Vv(a)}async throwHttpError(t){let n;try{let i=await t.json();Array.isArray(i)&&i[0]?.error?.message?n=i[0].error.message:n=JSON.stringify(i)}catch{n=await t.text()}throw new Error(`${t.status}: ${n}`)}};var Jp="";function Wv(e){Jp=e}function ue(){return Jp}function X_(e,t){let n=`${t}-pb`,i=e.services[n];return i||y('no PB URL for "%s" (expected services["%s"] in profile)',t,n),i}async function En(){let e=oe(Jp),{cfg:t,profile:n}=se(e),i=await zo(t,e,n);return{cfg:t,profile:n,token:i}}async function P(e){let{cfg:t,profile:n,token:i}=await En(),r=qv({baseUrl:X_(n,e),token:i,tenantId:Ge(n),accountId:Je(n)});return{cfg:t,profile:n,client:r}}async function K(e){let{profile:t,token:n}=await En(),i=t.services[e];return i||y("no %s API URL configured (run `zenku profile show` to check)",e),new ia({baseUrl:i,token:n,tenantId:Ge(t),accountId:Je(t)})}async function It(){let{cfg:e,profile:t,token:n}=await En(),i=t.services.agent;return i||y("no agent API URL configured (run `zenku profile show` to check)"),{client:Fp({baseUrl:i,auth:{type:"jwt",getToken:()=>n,tenantId:Ge(t),accountId:Je(t)}}),profile:t,cfg:e}}function Q(e){return e==null?"":String(e)}function pt(e,t){return e.length<=t?e:e.slice(0,t-3)+"..."}function Ce(e){if(e==="-")try{return(0,Gp.readFileSync)(0,"utf-8")}catch{y("failed to read from stdin")}if(e.startsWith("@")){let t=e.slice(1);try{return(0,Gp.readFileSync)(t,"utf-8")}catch(n){y("failed to read file %s: %s",t,M(n))}}return e}async function Gv(e,t,n){let i=await Ov("Password",{flagHint:"--email with password prompt"});if(i===null)return null;if(!i)throw new Error("password is required");let r=kt("Authenticating...");try{return await Ig(e,t,n,i)}finally{dt(r)}}async function Jv(e,t,n){let i=kt("Requesting OTP..."),r="";try{r=await Sg(e,t,n)}finally{dt(i)}process.stdout.write(`OTP sent to ${n}
129
- `);let o=await we("Enter OTP code",{flagHint:"--otp <email>"});if(o===null)return null;if(!o)throw new Error("OTP code is required");let a=kt("Verifying OTP...");try{return await Eg(e,t,r,o)}finally{dt(a)}}async function Kv(e,t,n){let i=kt("Fetching auth methods..."),r;try{r=await Bd(e,t)}finally{dt(i)}if(r.oauth2Providers.length===0)throw new Error("no OAuth2 providers configured");let o;if(n){if(o=r.oauth2Providers.find(a=>a.name===n),!o)throw new Error(`provider "${n}" not found`)}else if(r.oauth2Providers.length===1)o=r.oauth2Providers[0];else{let a=await Lt("Choose OAuth provider",r.oauth2Providers.map(s=>({value:s.name,label:s.displayName})),{flagHint:"--provider <name>"});if(a===null)return null;o=r.oauth2Providers.find(s=>s.name===a)}if(!o)throw new Error("provider not found");return Fg(e,t,o)}async function Q_(e,t){let n=[],i=kt("Fetching auth methods...");try{let a=await Bd(e,t);a.password&&n.push({label:"Password",kind:"password"}),a.otp&&n.push({label:"OTP (email code)",kind:"otp"}),a.oauth2Providers.length>0&&n.push({label:"OAuth2 (browser)",kind:"oauth"})}catch{n.push({label:"Password",kind:"password"})}finally{dt(i)}if(n.length===0)throw new Error("no auth methods available");if(n.length>1){let a=await Lt("Choose auth method",n.map(u=>({value:u.kind,label:u.label})),{flagHint:"--email, --otp, or --oauth"});if(a===null)return null;let s=n.findIndex(u=>u.kind===a);if(s>0){let u=n[s];n.splice(s,1),n.unshift(u)}}let r=n[0];if(!r)throw new Error("unknown auth method");if(r.kind==="oauth")return Kv(e,t,"");let o=await we("Email",{flagHint:"--email <email>"});if(o===null)return null;if(r.kind==="password")return Gv(e,t,o);if(r.kind==="otp")return Jv(e,t,o);throw new Error("unknown auth method")}function Hv(e){let t=new z("login").description("Authenticate with a PocketBase instance").option("--email <email>","login with email + password").option("--otp <email>","login with OTP (email code)").option("--oauth","login with OAuth2 browser flow").option("--provider <provider>","OAuth2 provider name (with --oauth)").action(async n=>{let i=oe(ue()),r,o;try{({cfg:r,profile:o}=se(i))}catch(a){y("%s",M(a))}try{let a;if(n.email?a=await Gv(Ve(o),o.collection,n.email):n.otp?a=await Jv(Ve(o),o.collection,n.otp):n.oauth?a=await Kv(Ve(o),o.collection,n.provider??""):a=await Q_(Ve(o),o.collection),!a)return;if(o.token=a.token,o.userId=a.userId,o.email=a.email,be(r,i,o),!o.accountId&&pe()){let s=Ve(o),u=await Qo(s,a.token,a.userId);u&&(o.accountId=u,be(r,i,o))}v({json:()=>({email:a.email,userId:a.userId}),human:()=>I("Logged in as %s",a.email)})}catch(a){y("%s",M(a))}});e.addCommand(t)}function Yv(e){let t=new z("logout").description("Clear authentication token").action(()=>{let n=oe(ue());try{let{cfg:i,profile:r}=se(n);r.token="",r.userId="",r.email="",be(i,n,r),I('Logged out from profile "%s"',n)}catch(i){y("%s",M(i))}});e.addCommand(t)}function Xv(e){let t=new z("whoami").description("Show current user and profile").action(()=>{let n=oe(ue()),i,r;try{({cfg:i,profile:r}=se(n))}catch(l){y("%s",M(l))}r.token||y("not logged in (run `zenku login`)");let o;try{o=zg(r.token)}catch(l){y("%s",`invalid token: ${M(l)}`)}let a=i.defaultProfile===n,s=o.getTime()-Date.now(),u=Ge(r),c=Je(r);v({json:()=>({profile:n,default:a,email:r.email,userId:r.userId,authPb:Ve(r),tenantId:u||null,accountId:c||null,expiresAt:o.toISOString(),expiresIn:Zd(Math.max(s,0))}),human:()=>{let l=a?" (default)":"";process.stdout.write(`Profile: ${n}${l}
126
+ `);for(let o of t){let s=o.slice(0,n.length).map((a,u)=>mD(a,n[u])).join(" ");process.stdout.write(s+`
127
+ `)}}function Ft(e){return Rr||!me()?null:Jp(e).start()}function ft(e){e&&e.stop()}async function ke(e,t){me()||g("%s is required (use %s)",e,t?.flagHint??"the appropriate flag");let n=await Uv({message:e,placeholder:t?.placeholder});return Gt(n)?(E("cancelled"),null):n}async function gD(e,t){me()||g("%s is required (use %s)",e,t?.flagHint??"the appropriate flag");let n=await Nv({message:e});return Gt(n)?(E("cancelled"),null):n}async function Yt(e,t,n){me()||g("%s is required (use %s)",e,n?.flagHint??"the appropriate flag");let i=await Bv({message:e,options:t});return Gt(i)?(E("cancelled"),null):i}async function Kp(e,t){me()||g("%s requires confirmation (use %s)",e,t?.flagHint??"the appropriate flag");let n=await Rv({message:e});return Gt(n)?(E("cancelled"),null):n}var Hp="",Yp="";function vD(e){Hp=e}function DD(e){Yp=e}function Te(e){return Hp||(process.env.ZENKU_TENANT_ID?process.env.ZENKU_TENANT_ID:e.tenantId)}function je(e){return Yp||(process.env.ZENKU_ACCOUNT_ID?process.env.ZENKU_ACCOUNT_ID:e.accountId)}async function gs(e,t,n){try{let i=`user='${n}'`,r=await fetch(`${e}/api/collections/account_members/records?filter=${encodeURIComponent(i)}&expand=account&perPage=100`,{headers:{Authorization:t}});if(!r.ok)return"";let o=await r.json();if(o.items.length===0)return"";if(o.items.length===1)return o.items[0].account;if(!me())return"";let s=o.items.map(u=>({value:u.account,label:u.expand?.account?.name??u.account}));return await Yt("Choose account",s,{flagHint:"`zenku context set --account <id>`"})??""}catch{return""}}var gm=require("node:fs");var yD=S.object({accountId:S.string().min(1,"accountId is required"),params:S.record(S.string(),S.unknown()),conversationId:S.string().optional(),metadata:S.record(S.string(),S.unknown()).optional()}),lw=yD.extend({callbackUrl:S.url().optional(),callbackSecret:S.string().optional()});var dw=S.object({params:S.record(S.string(),S.unknown()),conversationId:S.string().optional(),callbackUrl:S.url().optional(),callbackSecret:S.string().optional(),metadata:S.record(S.string(),S.unknown()).optional()});var Br=class bD extends Error{code;status;data;constructor(t,n,i){super(n),this.name="AgentClientError",this.code=t,this.status=i?.status??0,this.data=i?.data}static async fromResponse(t){let n=pw(t.status),i=`HTTP ${t.status}`,r;try{let o=await t.text();try{r=JSON.parse(o),i=typeof r.error=="string"?r.error:`HTTP ${t.status}: ${o}`}catch{i=o||i}}catch{}return new bD(n,i,{status:t.status,data:r})}};function pw(e){return e===400?"BAD_REQUEST":e===401?"UNAUTHORIZED":e===403?"FORBIDDEN":e===404?"NOT_FOUND":e>=500?"SERVER_ERROR":"UNKNOWN"}function Xp(e,t){let n=t.persisted,i=null;switch(e){case"message":i={type:"message",message:t};break;case"agent:metadata":i={type:"agent:metadata",cost:t.cost,durationMs:t.durationMs,numTurns:t.numTurns};break;case"agent:start":i={type:"agent:start",sandboxId:t.sandboxId};break;case"agent:exit":i={type:"agent:exit",exitCode:t.exitCode};break;case"interaction:approval_requested":i={type:"interaction:approval_requested",approval:t.approval};break;case"interaction:approval_resolved":i={type:"interaction:approval_resolved",interactionId:t.interactionId,decision:t.decision};break;case"interaction:a2ui_update":i={type:"interaction:a2ui_update",message:t.message,callbackToken:t.callbackToken};break;case"interaction:client_event":i={type:"interaction:client_event",payload:t.payload};break;case"session:status":i={type:"session:status",status:t.status};break;case"keepalive":i={type:"keepalive"};break;case"error":i={type:"error",message:t.message};break;default:return!e&&t.type?t:null}return i&&n!==void 0&&(i.persisted=n),i}async function*vs(e,t){let n=e.getReader(),i=new TextDecoder,r="",o="",s;try{for(;!t?.aborted;){let{done:a,value:u}=await n.read();if(a)break;r+=i.decode(u,{stream:!0});let c=r.split(`
128
+ `);r=c.pop()||"";for(let l of c)if(l.startsWith("event: "))o=l.slice(7).trim();else if(l.startsWith("id: "))s=l.slice(4).trim();else if(l.startsWith("data: ")){let d=l.slice(6);if(d==="[DONE]")continue;let m=mw({event:o,data:d,id:s});m&&(yield m),o="",s=void 0}else l.trim()===""&&(o="",s=void 0)}}finally{n.releaseLock()}}function mw(e){if(e.event==="keepalive")return{type:"keepalive"};if(!e.data)return null;try{let t=JSON.parse(e.data);return Xp(e.event,t)}catch{return null}}var $D=class{baseUrl;auth;_fetch;constructor(e){this.baseUrl=e.baseUrl.replace(/\/$/,""),this.auth=e.auth,this._fetch=e.fetch??globalThis.fetch.bind(globalThis)}async*stream(e,t){let n=await this.post(this.endpoint("/stream"),this.buildBody(e),t);if(!n.body)throw new Br("NO_RESPONSE_BODY","No response body for SSE stream",{status:n.status});yield*vs(n.body,t)}async async(e){let t={...this.buildBody(e)};return e.callbackUrl!==void 0&&(t.callbackUrl=e.callbackUrl),e.callbackSecret!==void 0&&(t.callbackSecret=e.callbackSecret),await(await this.post(this.endpoint("/async"),t)).json()}async sync(e){return await(await this.post(this.endpoint("/sync"),this.buildBody(e))).json()}async createConversation(e,t){let n=await this.post(this.endpoint("/conversations"),{conversationId:e,...t?.agentSlug!==void 0&&{agentSlug:t.agentSlug}});return{...await n.json(),isNew:n.status===201}}async sendMessage(e,t,n){return await(await this.post(this.endpoint(`/conversations/${e}/messages`),{prompt:t,...n})).json()}async*subscribe(e,t,n){let i=await this.buildHeaders();t?.lastEventId&&(i["Last-Event-ID"]=t.lastEventId),delete i["Content-Type"];let r=await this.request("GET",this.endpoint(`/conversations/${e}/events`),i,void 0,n);if(!r.body)throw new Br("NO_RESPONSE_BODY","No response body for SSE subscription",{status:r.status});yield*vs(r.body,n)}async getConversation(e){return await(await this.get(this.endpoint(`/conversations/${e}`))).json()}async resolve(e,t){return await(await this.post(this.endpoint("/resolve"),{callbackToken:e,...t?.decision!==void 0&&{decision:t.decision},...t?.userInput!==void 0&&{userInput:t.userInput}})).json()}async getStatus(e){return await(await this.get(this.endpoint(`/status/${e}`))).json()}get routePrefix(){return this.auth.type==="jwt"?"/api/webhooks":"/api/public"}endpoint(e){return`${this.baseUrl}${this.routePrefix}${e}`}async buildHeaders(){let e={"Content-Type":"application/json"};if(this.auth.type==="jwt"){let t=await Promise.resolve(this.auth.getToken());e.Authorization=`Bearer ${t}`,e["X-Tenant-Id"]=this.auth.tenantId,e["X-Account-Id"]=this.auth.accountId}return e}buildBody(e){let t={params:{prompt:e.prompt,...e.repo!==void 0&&{repo:e.repo},...e.token!==void 0&&{token:e.token},...e.ref!==void 0&&{ref:e.ref},...e.agentSlug!==void 0&&{agentSlug:e.agentSlug}}};return e.conversationId!==void 0&&(t.conversationId=e.conversationId),e.metadata!==void 0&&(t.metadata=e.metadata),this.auth.type==="jwt"&&(t.accountId=this.auth.accountId),t}async request(e,t,n,i,r){let o;try{o=await this._fetch(t,{method:e,headers:n,body:i,signal:r})}catch(s){throw s instanceof DOMException&&s.name==="AbortError"?s:new Br("NETWORK_ERROR",s instanceof Error?s.message:"Network request failed")}if(!o.ok)throw await Br.fromResponse(o);return o}async post(e,t,n){let i=await this.buildHeaders();return this.request("POST",e,i,JSON.stringify(t),n)}async get(e,t){let n=await this.buildHeaders();return delete n["Content-Type"],this.request("GET",e,n,void 0,t)}};function Qp(e){return new $D(e)}var Se=class e extends Error{constructor(t){super("ClientResponseError"),this.url="",this.status=0,this.response={},this.isAbort=!1,this.originalError=null,Object.setPrototypeOf(this,e.prototype),t!==null&&typeof t=="object"&&(this.originalError=t.originalError,this.url=typeof t.url=="string"?t.url:"",this.status=typeof t.status=="number"?t.status:0,this.isAbort=!!t.isAbort||t.name==="AbortError"||t.message==="Aborted",t.response!==null&&typeof t.response=="object"?this.response=t.response:t.data!==null&&typeof t.data=="object"?this.response=t.data:this.response={}),this.originalError||t instanceof e||(this.originalError=t),this.name="ClientResponseError "+this.status,this.message=this.response?.message,this.message||(this.isAbort?this.message="The request was aborted (most likely autocancelled; you can find more info in https://github.com/pocketbase/js-sdk#auto-cancellation).":this.originalError?.cause?.message?.includes("ECONNREFUSED ::1")?this.message="Failed to connect to the PocketBase server. Try changing the SDK URL from localhost to 127.0.0.1 (https://github.com/pocketbase/js-sdk/issues/21).":this.message="Something went wrong."),this.cause=this.originalError}get data(){return this.response}toJSON(){return{...this}}},Ds=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function fw(e,t){let n={};if(typeof e!="string")return n;let i=Object.assign({},t||{}).decode||hw,r=0;for(;r<e.length;){let o=e.indexOf("=",r);if(o===-1)break;let s=e.indexOf(";",r);if(s===-1)s=e.length;else if(s<o){r=e.lastIndexOf(";",o-1)+1;continue}let a=e.slice(r,o).trim();if(n[a]===void 0){let u=e.slice(o+1,s).trim();u.charCodeAt(0)===34&&(u=u.slice(1,-1));try{n[a]=i(u)}catch{n[a]=u}}r=s+1}return n}function _D(e,t,n){let i=Object.assign({},n||{}),r=i.encode||gw;if(!Ds.test(e))throw new TypeError("argument name is invalid");let o=r(t);if(o&&!Ds.test(o))throw new TypeError("argument val is invalid");let s=e+"="+o;if(i.maxAge!=null){let a=i.maxAge-0;if(isNaN(a)||!isFinite(a))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+Math.floor(a)}if(i.domain){if(!Ds.test(i.domain))throw new TypeError("option domain is invalid");s+="; Domain="+i.domain}if(i.path){if(!Ds.test(i.path))throw new TypeError("option path is invalid");s+="; Path="+i.path}if(i.expires){if(!(function(u){return Object.prototype.toString.call(u)==="[object Date]"||u instanceof Date})(i.expires)||isNaN(i.expires.valueOf()))throw new TypeError("option expires is invalid");s+="; Expires="+i.expires.toUTCString()}if(i.httpOnly&&(s+="; HttpOnly"),i.secure&&(s+="; Secure"),i.priority)switch(typeof i.priority=="string"?i.priority.toLowerCase():i.priority){case"low":s+="; Priority=Low";break;case"medium":s+="; Priority=Medium";break;case"high":s+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}if(i.sameSite)switch(typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return s}function hw(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function gw(e){return encodeURIComponent(e)}var vw=typeof navigator<"u"&&navigator.product==="ReactNative"||typeof global<"u"&&global.HermesInternal,CD;function Lr(e){if(e)try{let t=decodeURIComponent(CD(e.split(".")[1]).split("").map((function(n){return"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(t)||{}}catch{}return{}}function ID(e,t=0){let n=Lr(e);return!(Object.keys(n).length>0&&(!n.exp||n.exp-t>Date.now()/1e3))}CD=typeof atob!="function"||vw?e=>{let t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,o=0,s="";i=t.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?s+=String.fromCharCode(255&n>>(-2*r&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s}:atob;var xD="pb_auth",Bn=class{constructor(){this.baseToken="",this.baseModel=null,this._onChangeCallbacks=[]}get token(){return this.baseToken}get record(){return this.baseModel}get model(){return this.baseModel}get isValid(){return!ID(this.token)}get isSuperuser(){let t=Lr(this.token);return t.type=="auth"&&(this.record?.collectionName=="_superusers"||!this.record?.collectionName&&t.collectionId=="pbc_3142635823")}get isAdmin(){return console.warn("Please replace pb.authStore.isAdmin with pb.authStore.isSuperuser OR simply check the value of pb.authStore.record?.collectionName"),this.isSuperuser}get isAuthRecord(){return console.warn("Please replace pb.authStore.isAuthRecord with !pb.authStore.isSuperuser OR simply check the value of pb.authStore.record?.collectionName"),Lr(this.token).type=="auth"&&!this.isSuperuser}save(t,n){this.baseToken=t||"",this.baseModel=n||null,this.triggerChange()}clear(){this.baseToken="",this.baseModel=null,this.triggerChange()}loadFromCookie(t,n=xD){let i=fw(t||"")[n]||"",r={};try{r=JSON.parse(i),(typeof r===null||typeof r!="object"||Array.isArray(r))&&(r={})}catch{}this.save(r.token||"",r.record||r.model||null)}exportToCookie(t,n=xD){let i={secure:!0,sameSite:!0,httpOnly:!0,path:"/"},r=Lr(this.token);i.expires=r?.exp?new Date(1e3*r.exp):new Date("1970-01-01"),t=Object.assign({},i,t);let o={token:this.token,record:this.record?JSON.parse(JSON.stringify(this.record)):null},s=_D(n,JSON.stringify(o),t),a=typeof Blob<"u"?new Blob([s]).size:s.length;if(o.record&&a>4096){o.record={id:o.record?.id,email:o.record?.email};let u=["collectionId","collectionName","verified"];for(let c in this.record)u.includes(c)&&(o.record[c]=this.record[c]);s=_D(n,JSON.stringify(o),t)}return s}onChange(t,n=!1){return this._onChangeCallbacks.push(t),n&&t(this.token,this.record),()=>{for(let i=this._onChangeCallbacks.length-1;i>=0;i--)if(this._onChangeCallbacks[i]==t)return delete this._onChangeCallbacks[i],void this._onChangeCallbacks.splice(i,1)}}triggerChange(){for(let t of this._onChangeCallbacks)t&&t(this.token,this.record)}},tm=class extends Bn{constructor(t="pocketbase_auth"){super(),this.storageFallback={},this.storageKey=t,this._bindStorageEvent()}get token(){return(this._storageGet(this.storageKey)||{}).token||""}get record(){let t=this._storageGet(this.storageKey)||{};return t.record||t.model||null}get model(){return this.record}save(t,n){this._storageSet(this.storageKey,{token:t,record:n}),super.save(t,n)}clear(){this._storageRemove(this.storageKey),super.clear()}_storageGet(t){if(typeof window<"u"&&window?.localStorage){let n=window.localStorage.getItem(t)||"";try{return JSON.parse(n)}catch{return n}}return this.storageFallback[t]}_storageSet(t,n){if(typeof window<"u"&&window?.localStorage){let i=n;typeof n!="string"&&(i=JSON.stringify(n)),window.localStorage.setItem(t,i)}else this.storageFallback[t]=n}_storageRemove(t){typeof window<"u"&&window?.localStorage&&window.localStorage?.removeItem(t),delete this.storageFallback[t]}_bindStorageEvent(){typeof window<"u"&&window?.localStorage&&window.addEventListener&&window.addEventListener("storage",(t=>{if(t.key!=this.storageKey)return;let n=this._storageGet(this.storageKey)||{};super.save(n.token||"",n.record||n.model||null)}))}},He=class{constructor(t){this.client=t}},rm=class extends He{async getAll(t){return t=Object.assign({method:"GET"},t),this.client.send("/api/settings",t)}async update(t,n){return n=Object.assign({method:"PATCH",body:t},n),this.client.send("/api/settings",n)}async testS3(t="storage",n){return n=Object.assign({method:"POST",body:{filesystem:t}},n),this.client.send("/api/settings/test/s3",n).then((()=>!0))}async testEmail(t,n,i,r){return r=Object.assign({method:"POST",body:{email:n,template:i,collection:t}},r),this.client.send("/api/settings/test/email",r).then((()=>!0))}async generateAppleClientSecret(t,n,i,r,o,s){return s=Object.assign({method:"POST",body:{clientId:t,teamId:n,keyId:i,privateKey:r,duration:o}},s),this.client.send("/api/settings/apple/generate-client-secret",s)}},Dw=["requestKey","$cancelKey","$autoCancel","fetch","headers","body","query","params","cache","credentials","headers","integrity","keepalive","method","mode","redirect","referrer","referrerPolicy","signal","window"];function fm(e){if(e){e.query=e.query||{};for(let t in e)Dw.includes(t)||(e.query[t]=e[t],delete e[t])}}function hm(e){let t=[];for(let n in e){let i=encodeURIComponent(n),r=Array.isArray(e[n])?e[n]:[e[n]];for(let o of r)o=yw(o),o!==null&&t.push(i+"="+o)}return t.join("&")}function yw(e){return e==null?null:e instanceof Date?encodeURIComponent(e.toISOString().replace("T"," ")):encodeURIComponent(typeof e=="object"?JSON.stringify(e):e)}var ys=class extends He{constructor(){super(...arguments),this.clientId="",this.eventSource=null,this.subscriptions={},this.lastSentSubscriptions=[],this.maxConnectTimeout=15e3,this.reconnectAttempts=0,this.maxReconnectAttempts=1/0,this.predefinedReconnectIntervals=[200,300,500,1e3,1200,1500,2e3],this.pendingConnects=[]}get isConnected(){return!!this.eventSource&&!!this.clientId&&!this.pendingConnects.length}async subscribe(t,n,i){if(!t)throw new Error("topic must be set.");let r=t;if(i){fm(i=Object.assign({},i));let s="options="+encodeURIComponent(JSON.stringify({query:i.query,headers:i.headers}));r+=(r.includes("?")?"&":"?")+s}let o=function(s){let a=s,u;try{u=JSON.parse(a?.data)}catch{}n(u||{})};return this.subscriptions[r]||(this.subscriptions[r]=[]),this.subscriptions[r].push(o),this.isConnected?this.subscriptions[r].length===1?await this.submitSubscriptions():this.eventSource?.addEventListener(r,o):await this.connect(),async()=>this.unsubscribeByTopicAndListener(t,o)}async unsubscribe(t){let n=!1;if(t){let i=this.getSubscriptionsByTopic(t);for(let r in i)if(this.hasSubscriptionListeners(r)){for(let o of this.subscriptions[r])this.eventSource?.removeEventListener(r,o);delete this.subscriptions[r],n||(n=!0)}}else this.subscriptions={};this.hasSubscriptionListeners()?n&&await this.submitSubscriptions():this.disconnect()}async unsubscribeByPrefix(t){let n=!1;for(let i in this.subscriptions)if((i+"?").startsWith(t)){n=!0;for(let r of this.subscriptions[i])this.eventSource?.removeEventListener(i,r);delete this.subscriptions[i]}n&&(this.hasSubscriptionListeners()?await this.submitSubscriptions():this.disconnect())}async unsubscribeByTopicAndListener(t,n){let i=!1,r=this.getSubscriptionsByTopic(t);for(let o in r){if(!Array.isArray(this.subscriptions[o])||!this.subscriptions[o].length)continue;let s=!1;for(let a=this.subscriptions[o].length-1;a>=0;a--)this.subscriptions[o][a]===n&&(s=!0,delete this.subscriptions[o][a],this.subscriptions[o].splice(a,1),this.eventSource?.removeEventListener(o,n));s&&(this.subscriptions[o].length||delete this.subscriptions[o],i||this.hasSubscriptionListeners(o)||(i=!0))}this.hasSubscriptionListeners()?i&&await this.submitSubscriptions():this.disconnect()}hasSubscriptionListeners(t){if(this.subscriptions=this.subscriptions||{},t)return!!this.subscriptions[t]?.length;for(let n in this.subscriptions)if(this.subscriptions[n]?.length)return!0;return!1}async submitSubscriptions(){if(this.clientId)return this.addAllSubscriptionListeners(),this.lastSentSubscriptions=this.getNonEmptySubscriptionKeys(),this.client.send("/api/realtime",{method:"POST",body:{clientId:this.clientId,subscriptions:this.lastSentSubscriptions},requestKey:this.getSubscriptionsCancelKey()}).catch((t=>{if(!t?.isAbort)throw t}))}getSubscriptionsCancelKey(){return"realtime_"+this.clientId}getSubscriptionsByTopic(t){let n={};t=t.includes("?")?t:t+"?";for(let i in this.subscriptions)(i+"?").startsWith(t)&&(n[i]=this.subscriptions[i]);return n}getNonEmptySubscriptionKeys(){let t=[];for(let n in this.subscriptions)this.subscriptions[n].length&&t.push(n);return t}addAllSubscriptionListeners(){if(this.eventSource){this.removeAllSubscriptionListeners();for(let t in this.subscriptions)for(let n of this.subscriptions[t])this.eventSource.addEventListener(t,n)}}removeAllSubscriptionListeners(){if(this.eventSource)for(let t in this.subscriptions)for(let n of this.subscriptions[t])this.eventSource.removeEventListener(t,n)}async connect(){if(!(this.reconnectAttempts>0))return new Promise(((t,n)=>{this.pendingConnects.push({resolve:t,reject:n}),this.pendingConnects.length>1||this.initConnect()}))}initConnect(){this.disconnect(!0),clearTimeout(this.connectTimeoutId),this.connectTimeoutId=setTimeout((()=>{this.connectErrorHandler(new Error("EventSource connect took too long."))}),this.maxConnectTimeout),this.eventSource=new EventSource(this.client.buildURL("/api/realtime")),this.eventSource.onerror=t=>{this.connectErrorHandler(new Error("Failed to establish realtime connection."))},this.eventSource.addEventListener("PB_CONNECT",(t=>{let n=t;this.clientId=n?.lastEventId,this.submitSubscriptions().then((async()=>{let i=3;for(;this.hasUnsentSubscriptions()&&i>0;)i--,await this.submitSubscriptions()})).then((()=>{for(let r of this.pendingConnects)r.resolve();this.pendingConnects=[],this.reconnectAttempts=0,clearTimeout(this.reconnectTimeoutId),clearTimeout(this.connectTimeoutId);let i=this.getSubscriptionsByTopic("PB_CONNECT");for(let r in i)for(let o of i[r])o(t)})).catch((i=>{this.clientId="",this.connectErrorHandler(i)}))}))}hasUnsentSubscriptions(){let t=this.getNonEmptySubscriptionKeys();if(t.length!=this.lastSentSubscriptions.length)return!0;for(let n of t)if(!this.lastSentSubscriptions.includes(n))return!0;return!1}connectErrorHandler(t){if(clearTimeout(this.connectTimeoutId),clearTimeout(this.reconnectTimeoutId),!this.clientId&&!this.reconnectAttempts||this.reconnectAttempts>this.maxReconnectAttempts){for(let i of this.pendingConnects)i.reject(new Se(t));return this.pendingConnects=[],void this.disconnect()}this.disconnect(!0);let n=this.predefinedReconnectIntervals[this.reconnectAttempts]||this.predefinedReconnectIntervals[this.predefinedReconnectIntervals.length-1];this.reconnectAttempts++,this.reconnectTimeoutId=setTimeout((()=>{this.initConnect()}),n)}disconnect(t=!1){if(this.clientId&&this.onDisconnect&&this.onDisconnect(Object.keys(this.subscriptions)),clearTimeout(this.connectTimeoutId),clearTimeout(this.reconnectTimeoutId),this.removeAllSubscriptionListeners(),this.client.cancelRequest(this.getSubscriptionsCancelKey()),this.eventSource?.close(),this.eventSource=null,this.clientId="",!t){this.reconnectAttempts=0;for(let n of this.pendingConnects)n.resolve();this.pendingConnects=[]}}},bs=class extends He{decode(t){return t}async getFullList(t,n){if(typeof t=="number")return this._getFullList(t,n);let i=1e3;return(n=Object.assign({},t,n)).batch&&(i=n.batch,delete n.batch),this._getFullList(i,n)}async getList(t=1,n=30,i){return(i=Object.assign({method:"GET"},i)).query=Object.assign({page:t,perPage:n},i.query),this.client.send(this.baseCrudPath,i).then((r=>(r.items=r.items?.map((o=>this.decode(o)))||[],r)))}async getFirstListItem(t,n){return(n=Object.assign({requestKey:"one_by_filter_"+this.baseCrudPath+"_"+t},n)).query=Object.assign({filter:t,skipTotal:1},n.query),this.getList(1,1,n).then((i=>{if(!i?.items?.length)throw new Se({status:404,response:{code:404,message:"The requested resource wasn't found.",data:{}}});return i.items[0]}))}async getOne(t,n){if(!t)throw new Se({url:this.client.buildURL(this.baseCrudPath+"/"),status:404,response:{code:404,message:"Missing required record id.",data:{}}});return n=Object.assign({method:"GET"},n),this.client.send(this.baseCrudPath+"/"+encodeURIComponent(t),n).then((i=>this.decode(i)))}async create(t,n){return n=Object.assign({method:"POST",body:t},n),this.client.send(this.baseCrudPath,n).then((i=>this.decode(i)))}async update(t,n,i){return i=Object.assign({method:"PATCH",body:n},i),this.client.send(this.baseCrudPath+"/"+encodeURIComponent(t),i).then((r=>this.decode(r)))}async delete(t,n){return n=Object.assign({method:"DELETE"},n),this.client.send(this.baseCrudPath+"/"+encodeURIComponent(t),n).then((()=>!0))}_getFullList(t=1e3,n){(n=n||{}).query=Object.assign({skipTotal:1},n.query);let i=[],r=async o=>this.getList(o,t||1e3,n).then((s=>{let a=s.items;return i=i.concat(a),a.length==s.perPage?r(o+1):i}));return r(1)}};function Ot(e,t,n,i){let r=i!==void 0;return r||n!==void 0?r?(console.warn(e),t.body=Object.assign({},t.body,n),t.query=Object.assign({},t.query,i),t):Object.assign(t,n):t}function em(e){e._resetAutoRefresh?.()}var nm=class extends bs{constructor(t,n){super(t),this.collectionIdOrName=n}get baseCrudPath(){return this.baseCollectionPath+"/records"}get baseCollectionPath(){return"/api/collections/"+encodeURIComponent(this.collectionIdOrName)}get isSuperusers(){return this.collectionIdOrName=="_superusers"||this.collectionIdOrName=="_pbc_2773867675"}async subscribe(t,n,i){if(!t)throw new Error("Missing topic.");if(!n)throw new Error("Missing subscription callback.");return this.client.realtime.subscribe(this.collectionIdOrName+"/"+t,n,i)}async unsubscribe(t){return t?this.client.realtime.unsubscribe(this.collectionIdOrName+"/"+t):this.client.realtime.unsubscribeByPrefix(this.collectionIdOrName)}async getFullList(t,n){if(typeof t=="number")return super.getFullList(t,n);let i=Object.assign({},t,n);return super.getFullList(i)}async getList(t=1,n=30,i){return super.getList(t,n,i)}async getFirstListItem(t,n){return super.getFirstListItem(t,n)}async getOne(t,n){return super.getOne(t,n)}async create(t,n){return super.create(t,n)}async update(t,n,i){return super.update(t,n,i).then((r=>{if(this.client.authStore.record?.id===r?.id&&(this.client.authStore.record?.collectionId===this.collectionIdOrName||this.client.authStore.record?.collectionName===this.collectionIdOrName)){let o=Object.assign({},this.client.authStore.record.expand),s=Object.assign({},this.client.authStore.record,r);o&&(s.expand=Object.assign(o,r.expand)),this.client.authStore.save(this.client.authStore.token,s)}return r}))}async delete(t,n){return super.delete(t,n).then((i=>(!i||this.client.authStore.record?.id!==t||this.client.authStore.record?.collectionId!==this.collectionIdOrName&&this.client.authStore.record?.collectionName!==this.collectionIdOrName||this.client.authStore.clear(),i)))}authResponse(t){let n=this.decode(t?.record||{});return this.client.authStore.save(t?.token,n),Object.assign({},t,{token:t?.token||"",record:n})}async listAuthMethods(t){return t=Object.assign({method:"GET",fields:"mfa,otp,password,oauth2"},t),this.client.send(this.baseCollectionPath+"/auth-methods",t)}async authWithPassword(t,n,i){let r;i=Object.assign({method:"POST",body:{identity:t,password:n}},i),this.isSuperusers&&(r=i.autoRefreshThreshold,delete i.autoRefreshThreshold,i.autoRefresh||em(this.client));let o=await this.client.send(this.baseCollectionPath+"/auth-with-password",i);return o=this.authResponse(o),r&&this.isSuperusers&&(function(a,u,c,l){em(a);let d=a.beforeSend,p=a.authStore.record,m=a.authStore.onChange(((D,x)=>{(!D||x?.id!=p?.id||(x?.collectionId||p?.collectionId)&&x?.collectionId!=p?.collectionId)&&em(a)}));a._resetAutoRefresh=function(){m(),a.beforeSend=d,delete a._resetAutoRefresh},a.beforeSend=async(D,x)=>{let F=a.authStore.token;if(x.query?.autoRefresh)return d?d(D,x):{url:D,sendOptions:x};let R=a.authStore.isValid;if(R&&ID(a.authStore.token,u))try{await c()}catch{R=!1}R||await l();let Y=x.headers||{};for(let P in Y)if(P.toLowerCase()=="authorization"&&F==Y[P]&&a.authStore.token){Y[P]=a.authStore.token;break}return x.headers=Y,d?d(D,x):{url:D,sendOptions:x}}})(this.client,r,(()=>this.authRefresh({autoRefresh:!0})),(()=>this.authWithPassword(t,n,Object.assign({autoRefresh:!0},i)))),o}async authWithOAuth2Code(t,n,i,r,o,s,a){let u={method:"POST",body:{provider:t,code:n,codeVerifier:i,redirectURL:r,createData:o}};return u=Ot("This form of authWithOAuth2Code(provider, code, codeVerifier, redirectURL, createData?, body?, query?) is deprecated. Consider replacing it with authWithOAuth2Code(provider, code, codeVerifier, redirectURL, createData?, options?).",u,s,a),this.client.send(this.baseCollectionPath+"/auth-with-oauth2",u).then((c=>this.authResponse(c)))}authWithOAuth2(...t){if(t.length>1||typeof t?.[0]=="string")return console.warn("PocketBase: This form of authWithOAuth2() is deprecated and may get removed in the future. Please replace with authWithOAuth2Code() OR use the authWithOAuth2() realtime form as shown in https://pocketbase.io/docs/authentication/#oauth2-integration."),this.authWithOAuth2Code(t?.[0]||"",t?.[1]||"",t?.[2]||"",t?.[3]||"",t?.[4]||{},t?.[5]||{},t?.[6]||{});let n=t?.[0]||{},i=null;n.urlCallback||(i=wD(void 0));let r=new ys(this.client);function o(){i?.close(),r.unsubscribe()}let s={},a=n.requestKey;return a&&(s.requestKey=a),this.listAuthMethods(s).then((u=>{let c=u.oauth2.providers.find((d=>d.name===n.provider));if(!c)throw new Se(new Error(`Missing or invalid provider "${n.provider}".`));let l=this.client.buildURL("/api/oauth2-redirect");return new Promise((async(d,p)=>{let m=a?this.client.cancelControllers?.[a]:void 0;m&&(m.signal.onabort=()=>{o(),p(new Se({isAbort:!0,message:"manually cancelled"}))}),r.onDisconnect=D=>{D.length&&p&&(o(),p(new Se(new Error("realtime connection interrupted"))))};try{await r.subscribe("@oauth2",(async R=>{let Y=r.clientId;try{if(!R.state||Y!==R.state)throw new Error("State parameters don't match.");if(R.error||!R.code)throw new Error("OAuth2 redirect error or missing code: "+R.error);let P=Object.assign({},n);delete P.provider,delete P.scopes,delete P.createData,delete P.urlCallback,m?.signal?.onabort&&(m.signal.onabort=null);let G=await this.authWithOAuth2Code(c.name,R.code,c.codeVerifier,l,n.createData,P);d(G)}catch(P){p(new Se(P))}o()}));let D={state:r.clientId};n.scopes?.length&&(D.scope=n.scopes.join(" "));let x=this._replaceQueryParams(c.authURL+l,D);await(n.urlCallback||function(R){i?i.location.href=R:i=wD(R)})(x)}catch(D){m?.signal?.onabort&&(m.signal.onabort=null),o(),p(new Se(D))}}))})).catch((u=>{throw o(),u}))}async authRefresh(t,n){let i={method:"POST"};return i=Ot("This form of authRefresh(body?, query?) is deprecated. Consider replacing it with authRefresh(options?).",i,t,n),this.client.send(this.baseCollectionPath+"/auth-refresh",i).then((r=>this.authResponse(r)))}async requestPasswordReset(t,n,i){let r={method:"POST",body:{email:t}};return r=Ot("This form of requestPasswordReset(email, body?, query?) is deprecated. Consider replacing it with requestPasswordReset(email, options?).",r,n,i),this.client.send(this.baseCollectionPath+"/request-password-reset",r).then((()=>!0))}async confirmPasswordReset(t,n,i,r,o){let s={method:"POST",body:{token:t,password:n,passwordConfirm:i}};return s=Ot("This form of confirmPasswordReset(token, password, passwordConfirm, body?, query?) is deprecated. Consider replacing it with confirmPasswordReset(token, password, passwordConfirm, options?).",s,r,o),this.client.send(this.baseCollectionPath+"/confirm-password-reset",s).then((()=>!0))}async requestVerification(t,n,i){let r={method:"POST",body:{email:t}};return r=Ot("This form of requestVerification(email, body?, query?) is deprecated. Consider replacing it with requestVerification(email, options?).",r,n,i),this.client.send(this.baseCollectionPath+"/request-verification",r).then((()=>!0))}async confirmVerification(t,n,i){let r={method:"POST",body:{token:t}};return r=Ot("This form of confirmVerification(token, body?, query?) is deprecated. Consider replacing it with confirmVerification(token, options?).",r,n,i),this.client.send(this.baseCollectionPath+"/confirm-verification",r).then((()=>{let o=Lr(t),s=this.client.authStore.record;return s&&!s.verified&&s.id===o.id&&s.collectionId===o.collectionId&&(s.verified=!0,this.client.authStore.save(this.client.authStore.token,s)),!0}))}async requestEmailChange(t,n,i){let r={method:"POST",body:{newEmail:t}};return r=Ot("This form of requestEmailChange(newEmail, body?, query?) is deprecated. Consider replacing it with requestEmailChange(newEmail, options?).",r,n,i),this.client.send(this.baseCollectionPath+"/request-email-change",r).then((()=>!0))}async confirmEmailChange(t,n,i,r){let o={method:"POST",body:{token:t,password:n}};return o=Ot("This form of confirmEmailChange(token, password, body?, query?) is deprecated. Consider replacing it with confirmEmailChange(token, password, options?).",o,i,r),this.client.send(this.baseCollectionPath+"/confirm-email-change",o).then((()=>{let s=Lr(t),a=this.client.authStore.record;return a&&a.id===s.id&&a.collectionId===s.collectionId&&this.client.authStore.clear(),!0}))}async listExternalAuths(t,n){return this.client.collection("_externalAuths").getFullList(Object.assign({},n,{filter:this.client.filter("recordRef = {:id}",{id:t})}))}async unlinkExternalAuth(t,n,i){let r=await this.client.collection("_externalAuths").getFirstListItem(this.client.filter("recordRef = {:recordId} && provider = {:provider}",{recordId:t,provider:n}));return this.client.collection("_externalAuths").delete(r.id,i).then((()=>!0))}async requestOTP(t,n){return n=Object.assign({method:"POST",body:{email:t}},n),this.client.send(this.baseCollectionPath+"/request-otp",n)}async authWithOTP(t,n,i){return i=Object.assign({method:"POST",body:{otpId:t,password:n}},i),this.client.send(this.baseCollectionPath+"/auth-with-otp",i).then((r=>this.authResponse(r)))}async impersonate(t,n,i){(i=Object.assign({method:"POST",body:{duration:n}},i)).headers=i.headers||{},i.headers.Authorization||(i.headers.Authorization=this.client.authStore.token);let r=new Ln(this.client.baseURL,new Bn,this.client.lang),o=await r.send(this.baseCollectionPath+"/impersonate/"+encodeURIComponent(t),i);return r.authStore.save(o?.token,this.decode(o?.record||{})),r}_replaceQueryParams(t,n={}){let i=t,r="";t.indexOf("?")>=0&&(i=t.substring(0,t.indexOf("?")),r=t.substring(t.indexOf("?")+1));let o={},s=r.split("&");for(let a of s){if(a=="")continue;let u=a.split("=");o[decodeURIComponent(u[0].replace(/\+/g," "))]=decodeURIComponent((u[1]||"").replace(/\+/g," "))}for(let a in n)n.hasOwnProperty(a)&&(n[a]==null?delete o[a]:o[a]=n[a]);r="";for(let a in o)o.hasOwnProperty(a)&&(r!=""&&(r+="&"),r+=encodeURIComponent(a.replace(/%20/g,"+"))+"="+encodeURIComponent(o[a].replace(/%20/g,"+")));return r!=""?i+"?"+r:i}};function wD(e){if(typeof window>"u"||!window?.open)throw new Se(new Error("Not in a browser context - please pass a custom urlCallback function."));let t=1024,n=768,i=window.innerWidth,r=window.innerHeight;t=t>i?i:t,n=n>r?r:n;let o=i/2-t/2,s=r/2-n/2;return window.open(e,"popup_window","width="+t+",height="+n+",top="+s+",left="+o+",resizable,menubar=no")}var im=class extends bs{get baseCrudPath(){return"/api/collections"}async import(t,n=!1,i){return i=Object.assign({method:"PUT",body:{collections:t,deleteMissing:n}},i),this.client.send(this.baseCrudPath+"/import",i).then((()=>!0))}async getScaffolds(t){return t=Object.assign({method:"GET"},t),this.client.send(this.baseCrudPath+"/meta/scaffolds",t)}async truncate(t,n){return n=Object.assign({method:"DELETE"},n),this.client.send(this.baseCrudPath+"/"+encodeURIComponent(t)+"/truncate",n).then((()=>!0))}},om=class extends He{async getList(t=1,n=30,i){return(i=Object.assign({method:"GET"},i)).query=Object.assign({page:t,perPage:n},i.query),this.client.send("/api/logs",i)}async getOne(t,n){if(!t)throw new Se({url:this.client.buildURL("/api/logs/"),status:404,response:{code:404,message:"Missing required log id.",data:{}}});return n=Object.assign({method:"GET"},n),this.client.send("/api/logs/"+encodeURIComponent(t),n)}async getStats(t){return t=Object.assign({method:"GET"},t),this.client.send("/api/logs/stats",t)}},sm=class extends He{async check(t){return t=Object.assign({method:"GET"},t),this.client.send("/api/health",t)}},am=class extends He{getUrl(t,n,i={}){return console.warn("Please replace pb.files.getUrl() with pb.files.getURL()"),this.getURL(t,n,i)}getURL(t,n,i={}){if(!n||!t?.id||!t?.collectionId&&!t?.collectionName)return"";let r=[];r.push("api"),r.push("files"),r.push(encodeURIComponent(t.collectionId||t.collectionName)),r.push(encodeURIComponent(t.id)),r.push(encodeURIComponent(n));let o=this.client.buildURL(r.join("/"));i.download===!1&&delete i.download;let s=hm(i);return s&&(o+=(o.includes("?")?"&":"?")+s),o}async getToken(t){return t=Object.assign({method:"POST"},t),this.client.send("/api/files/token",t).then((n=>n?.token||""))}},um=class extends He{async getFullList(t){return t=Object.assign({method:"GET"},t),this.client.send("/api/backups",t)}async create(t,n){return n=Object.assign({method:"POST",body:{name:t}},n),this.client.send("/api/backups",n).then((()=>!0))}async upload(t,n){return n=Object.assign({method:"POST",body:t},n),this.client.send("/api/backups/upload",n).then((()=>!0))}async delete(t,n){return n=Object.assign({method:"DELETE"},n),this.client.send(`/api/backups/${encodeURIComponent(t)}`,n).then((()=>!0))}async restore(t,n){return n=Object.assign({method:"POST"},n),this.client.send(`/api/backups/${encodeURIComponent(t)}/restore`,n).then((()=>!0))}getDownloadUrl(t,n){return console.warn("Please replace pb.backups.getDownloadUrl() with pb.backups.getDownloadURL()"),this.getDownloadURL(t,n)}getDownloadURL(t,n){return this.client.buildURL(`/api/backups/${encodeURIComponent(n)}?token=${encodeURIComponent(t)}`)}},cm=class extends He{async getFullList(t){return t=Object.assign({method:"GET"},t),this.client.send("/api/crons",t)}async run(t,n){return n=Object.assign({method:"POST"},n),this.client.send(`/api/crons/${encodeURIComponent(t)}`,n).then((()=>!0))}};function lm(e){return typeof Blob<"u"&&e instanceof Blob||typeof File<"u"&&e instanceof File||e!==null&&typeof e=="object"&&e.uri&&(typeof navigator<"u"&&navigator.product==="ReactNative"||typeof global<"u"&&global.HermesInternal)}function dm(e){return e&&(e.constructor?.name==="FormData"||typeof FormData<"u"&&e instanceof FormData)}function kD(e){for(let t in e){let n=Array.isArray(e[t])?e[t]:[e[t]];for(let i of n)if(lm(i))return!0}return!1}var bw=/^[\-\.\d]+$/;function SD(e){if(typeof e!="string")return e;if(e=="true")return!0;if(e=="false")return!1;if((e[0]==="-"||e[0]>="0"&&e[0]<="9")&&bw.test(e)){let t=+e;if(""+t===e)return t}return e}var pm=class extends He{constructor(){super(...arguments),this.requests=[],this.subs={}}collection(t){return this.subs[t]||(this.subs[t]=new mm(this.requests,t)),this.subs[t]}async send(t){let n=new FormData,i=[];for(let r=0;r<this.requests.length;r++){let o=this.requests[r];if(i.push({method:o.method,url:o.url,headers:o.headers,body:o.json}),o.files)for(let s in o.files){let a=o.files[s]||[];for(let u of a)n.append("requests."+r+"."+s,u)}}return n.append("@jsonPayload",JSON.stringify({requests:i})),t=Object.assign({method:"POST",body:n},t),this.client.send("/api/batch",t)}},mm=class{constructor(t,n){this.requests=[],this.requests=t,this.collectionIdOrName=n}upsert(t,n){n=Object.assign({body:t||{}},n);let i={method:"PUT",url:"/api/collections/"+encodeURIComponent(this.collectionIdOrName)+"/records"};this.prepareRequest(i,n),this.requests.push(i)}create(t,n){n=Object.assign({body:t||{}},n);let i={method:"POST",url:"/api/collections/"+encodeURIComponent(this.collectionIdOrName)+"/records"};this.prepareRequest(i,n),this.requests.push(i)}update(t,n,i){i=Object.assign({body:n||{}},i);let r={method:"PATCH",url:"/api/collections/"+encodeURIComponent(this.collectionIdOrName)+"/records/"+encodeURIComponent(t)};this.prepareRequest(r,i),this.requests.push(r)}delete(t,n){n=Object.assign({},n);let i={method:"DELETE",url:"/api/collections/"+encodeURIComponent(this.collectionIdOrName)+"/records/"+encodeURIComponent(t)};this.prepareRequest(i,n),this.requests.push(i)}prepareRequest(t,n){if(fm(n),t.headers=n.headers,t.json={},t.files={},n.query!==void 0){let r=hm(n.query);r&&(t.url+=(t.url.includes("?")?"&":"?")+r)}let i=n.body;dm(i)&&(i=(function(o){let s={};return o.forEach(((a,u)=>{if(u==="@jsonPayload"&&typeof a=="string")try{let c=JSON.parse(a);Object.assign(s,c)}catch(c){console.warn("@jsonPayload error:",c)}else s[u]!==void 0?(Array.isArray(s[u])||(s[u]=[s[u]]),s[u].push(SD(a))):s[u]=SD(a)})),s})(i));for(let r in i){let o=i[r];if(lm(o))t.files[r]=t.files[r]||[],t.files[r].push(o);else if(Array.isArray(o)){let s=[],a=[];for(let u of o)lm(u)?s.push(u):a.push(u);if(s.length>0&&s.length==o.length){t.files[r]=t.files[r]||[];for(let u of s)t.files[r].push(u)}else if(t.json[r]=a,s.length>0){let u=r;r.startsWith("+")||r.endsWith("+")||(u+="+"),t.files[u]=t.files[u]||[];for(let c of s)t.files[u].push(c)}}else t.json[r]=o}}},Ln=class{get baseUrl(){return this.baseURL}set baseUrl(t){this.baseURL=t}constructor(t="/",n,i="en-US"){this.cancelControllers={},this.recordServices={},this.enableAutoCancellation=!0,this.baseURL=t,this.lang=i,n?this.authStore=n:typeof window<"u"&&window.Deno?this.authStore=new Bn:this.authStore=new tm,this.collections=new im(this),this.files=new am(this),this.logs=new om(this),this.settings=new rm(this),this.realtime=new ys(this),this.health=new sm(this),this.backups=new um(this),this.crons=new cm(this)}get admins(){return this.collection("_superusers")}createBatch(){return new pm(this)}collection(t){return this.recordServices[t]||(this.recordServices[t]=new nm(this,t)),this.recordServices[t]}autoCancellation(t){return this.enableAutoCancellation=!!t,this}cancelRequest(t){return this.cancelControllers[t]&&(this.cancelControllers[t].abort(),delete this.cancelControllers[t]),this}cancelAllRequests(){for(let t in this.cancelControllers)this.cancelControllers[t].abort();return this.cancelControllers={},this}filter(t,n){if(!n)return t;for(let i in n){let r=n[i];switch(typeof r){case"boolean":case"number":r=""+r;break;case"string":r="'"+r.replace(/'/g,"\\'")+"'";break;default:r=r===null?"null":r instanceof Date?"'"+r.toISOString().replace("T"," ")+"'":"'"+JSON.stringify(r).replace(/'/g,"\\'")+"'"}t=t.replaceAll("{:"+i+"}",r)}return t}getFileUrl(t,n,i={}){return console.warn("Please replace pb.getFileUrl() with pb.files.getURL()"),this.files.getURL(t,n,i)}buildUrl(t){return console.warn("Please replace pb.buildUrl() with pb.buildURL()"),this.buildURL(t)}buildURL(t){let n=this.baseURL;return typeof window>"u"||!window.location||n.startsWith("https://")||n.startsWith("http://")||(n=window.location.origin?.endsWith("/")?window.location.origin.substring(0,window.location.origin.length-1):window.location.origin||"",this.baseURL.startsWith("/")||(n+=window.location.pathname||"/",n+=n.endsWith("/")?"":"/"),n+=this.baseURL),t&&(n+=n.endsWith("/")?"":"/",n+=t.startsWith("/")?t.substring(1):t),n}async send(t,n){n=this.initSendOptions(t,n);let i=this.buildURL(t);if(this.beforeSend){let r=Object.assign({},await this.beforeSend(i,n));r.url!==void 0||r.options!==void 0?(i=r.url||i,n=r.options||n):Object.keys(r).length&&(n=r,console?.warn&&console.warn("Deprecated format of beforeSend return: please use `return { url, options }`, instead of `return options`."))}if(n.query!==void 0){let r=hm(n.query);r&&(i+=(i.includes("?")?"&":"?")+r),delete n.query}return this.getHeader(n.headers,"Content-Type")=="application/json"&&n.body&&typeof n.body!="string"&&(n.body=JSON.stringify(n.body)),(n.fetch||fetch)(i,n).then((async r=>{let o={};try{o=await r.json()}catch(s){if(n.signal?.aborted||s?.name=="AbortError"||s?.message=="Aborted")throw s}if(this.afterSend&&(o=await this.afterSend(r,o,n)),r.status>=400)throw new Se({url:r.url,status:r.status,data:o});return o})).catch((r=>{throw new Se(r)}))}initSendOptions(t,n){if((n=Object.assign({method:"GET"},n)).body=(function(r){if(typeof FormData>"u"||r===void 0||typeof r!="object"||r===null||dm(r)||!kD(r))return r;let o=new FormData;for(let s in r){let a=r[s];if(a!==void 0)if(typeof a!="object"||kD({data:a})){let u=Array.isArray(a)?a:[a];for(let c of u)o.append(s,c)}else{let u={};u[s]=a,o.append("@jsonPayload",JSON.stringify(u))}}return o})(n.body),fm(n),n.query=Object.assign({},n.params,n.query),n.requestKey===void 0&&(n.$autoCancel===!1||n.query.$autoCancel===!1?n.requestKey=null:(n.$cancelKey||n.query.$cancelKey)&&(n.requestKey=n.$cancelKey||n.query.$cancelKey)),delete n.$autoCancel,delete n.query.$autoCancel,delete n.$cancelKey,delete n.query.$cancelKey,this.getHeader(n.headers,"Content-Type")!==null||dm(n.body)||(n.headers=Object.assign({},n.headers,{"Content-Type":"application/json"})),this.getHeader(n.headers,"Accept-Language")===null&&(n.headers=Object.assign({},n.headers,{"Accept-Language":this.lang})),this.authStore.token&&this.getHeader(n.headers,"Authorization")===null&&(n.headers=Object.assign({},n.headers,{Authorization:this.authStore.token})),this.enableAutoCancellation&&n.requestKey!==null){let i=n.requestKey||(n.method||"GET")+t;delete n.requestKey,this.cancelRequest(i);let r=new AbortController;this.cancelControllers[i]=r,n.signal=r.signal}return n}getHeader(t,n){t=t||{},n=n.toLowerCase();for(let i in t)if(i.toLowerCase()==n)return t[i];return null}};function ED(e){let t=new Ln(e.baseUrl);return t.autoCancellation(!1),e.token&&t.authStore.save(e.token),(e.tenantId||e.accountId)&&(t.beforeSend=(n,i)=>{let r=i.headers;return e.tenantId&&(r["X-Tenant-Id"]=e.tenantId),e.accountId&&(r["X-Account-Id"]=e.accountId),{url:n,options:i}}),t}function A(e){return e instanceof Error?e.message:String(e)}async function k(e,t){let n=Ft(e);try{let i=await t();return ft(n),i}catch(i){ft(n),g("%s",A(i))}}function v(e){Ae()?hD(e.json()):e.human()}function $w(e){let t={};return e.token&&(t.Authorization=`Bearer ${e.token}`),e.tenantId&&(t["X-Tenant-Id"]=e.tenantId),e.accountId&&(t["X-Account-Id"]=e.accountId),t}function FD(e){if(!e.length)throw new Error("empty batch response");let t=e[0];if(t.error?.message)throw new Error(`tRPC error: ${t.error.message}`);if(!t.result?.data)throw new Error("unexpected response format");return t.result.data.json}var $s=class{baseUrl;headers;constructor(t){this.baseUrl=t.baseUrl.replace(/\/+$/,""),this.headers=$w(t)}async query(t,n){let r=encodeURIComponent(JSON.stringify({0:{json:n}})),o=`${this.baseUrl}/trpc/${t}?batch=1&input=${r}`,s=await fetch(o,{headers:this.headers});s.status>=400&&await this.throwHttpError(s);let a=await s.json();return FD(a)}async mutate(t,n){let i={0:{json:n}},r=`${this.baseUrl}/trpc/${t}?batch=1`,o=await fetch(r,{method:"POST",headers:{...this.headers,"Content-Type":"application/json"},body:JSON.stringify(i)});o.status>=400&&await this.throwHttpError(o);let s=await o.json();return FD(s)}async throwHttpError(t){let n;try{let i=await t.json();Array.isArray(i)&&i[0]?.error?.message?n=i[0].error.message:n=JSON.stringify(i)}catch{n=await t.text()}throw new Error(`${t.status}: ${n}`)}};var vm="";function OD(e){vm=e}function ue(){return vm}function _w(e,t){let n=`${t}-pb`,i=e.services[n];return i||g('no PB URL for "%s" (expected services["%s"] in profile)',t,n),i}async function Zn(){let e=ie(vm),{cfg:t,profile:n}=se(e),i=await Ko(t,e,n);return{cfg:t,profile:n,token:i}}async function T(e){let{cfg:t,profile:n,token:i}=await Zn(),r=ED({baseUrl:_w(n,e),token:i,tenantId:Te(n),accountId:je(n)});return{cfg:t,profile:n,client:r}}async function H(e){let{profile:t,token:n}=await Zn(),i=t.services[e];return i||g("no %s API URL configured (run `zenku profile show` to check)",e),new $s({baseUrl:i,token:n,tenantId:Te(t),accountId:je(t)})}async function zt(){let{cfg:e,profile:t,token:n}=await Zn(),i=t.services.agent;return i||g("no agent API URL configured (run `zenku profile show` to check)"),{client:Qp({baseUrl:i,auth:{type:"jwt",getToken:()=>n,tenantId:Te(t),accountId:je(t)}}),profile:t,cfg:e}}function W(e){return e==null?"":String(e)}function ht(e,t){return e.length<=t?e:e.slice(0,t-3)+"..."}function Ce(e){if(e==="-")try{return(0,gm.readFileSync)(0,"utf-8")}catch{g("failed to read from stdin")}if(e.startsWith("@")){let t=e.slice(1);try{return(0,gm.readFileSync)(t,"utf-8")}catch(n){g("failed to read file %s: %s",t,A(n))}}return e}async function zD(e,t,n){let i=await gD("Password",{flagHint:"--email with password prompt"});if(i===null)return null;if(!i)throw new Error("password is required");let r=Ft("Authenticating...");try{return await pv(e,t,n,i)}finally{ft(r)}}async function PD(e,t,n){let i=Ft("Requesting OTP..."),r="";try{r=await mv(e,t,n)}finally{ft(i)}process.stdout.write(`OTP sent to ${n}
129
+ `);let o=await ke("Enter OTP code",{flagHint:"--otp <email>"});if(o===null)return null;if(!o)throw new Error("OTP code is required");let s=Ft("Verifying OTP...");try{return await fv(e,t,r,o)}finally{ft(s)}}async function AD(e,t,n){let i=Ft("Fetching auth methods..."),r;try{r=await cp(e,t)}finally{ft(i)}if(r.oauth2Providers.length===0)throw new Error("no OAuth2 providers configured");let o;if(n){if(o=r.oauth2Providers.find(s=>s.name===n),!o)throw new Error(`provider "${n}" not found`)}else if(r.oauth2Providers.length===1)o=r.oauth2Providers[0];else{let s=await Yt("Choose OAuth provider",r.oauth2Providers.map(a=>({value:a.name,label:a.displayName})),{flagHint:"--provider <name>"});if(s===null)return null;o=r.oauth2Providers.find(a=>a.name===s)}if(!o)throw new Error("provider not found");return hv(e,t,o)}async function xw(e,t){let n=[],i=Ft("Fetching auth methods...");try{let s=await cp(e,t);s.password&&n.push({label:"Password",kind:"password"}),s.otp&&n.push({label:"OTP (email code)",kind:"otp"}),s.oauth2Providers.length>0&&n.push({label:"OAuth2 (browser)",kind:"oauth"})}catch{n.push({label:"Password",kind:"password"})}finally{ft(i)}if(n.length===0)throw new Error("no auth methods available");if(n.length>1){let s=await Yt("Choose auth method",n.map(u=>({value:u.kind,label:u.label})),{flagHint:"--email, --otp, or --oauth"});if(s===null)return null;let a=n.findIndex(u=>u.kind===s);if(a>0){let u=n[a];n.splice(a,1),n.unshift(u)}}let r=n[0];if(!r)throw new Error("unknown auth method");if(r.kind==="oauth")return AD(e,t,"");let o=await ke("Email",{flagHint:"--email <email>"});if(o===null)return null;if(r.kind==="password")return zD(e,t,o);if(r.kind==="otp")return PD(e,t,o);throw new Error("unknown auth method")}function TD(e){let t=new O("login").description("Authenticate with a PocketBase instance").option("--email <email>","login with email + password").option("--otp <email>","login with OTP (email code)").option("--oauth","login with OAuth2 browser flow").option("--provider <provider>","OAuth2 provider name (with --oauth)").action(async n=>{let i=ie(ue()),r,o;try{({cfg:r,profile:o}=se(i))}catch(s){g("%s",A(s))}try{let s;if(n.email?s=await zD(Je(o),o.collection,n.email):n.otp?s=await PD(Je(o),o.collection,n.otp):n.oauth?s=await AD(Je(o),o.collection,n.provider??""):s=await xw(Je(o),o.collection),!s)return;if(o.token=s.token,o.userId=s.userId,o.email=s.email,$e(r,i,o),!o.accountId&&me()){let a=Je(o),u=await gs(a,s.token,s.userId);u&&(o.accountId=u,$e(r,i,o))}v({json:()=>({email:s.email,userId:s.userId}),human:()=>I("Logged in as %s",s.email)})}catch(s){g("%s",A(s))}});e.addCommand(t)}function jD(e){let t=new O("logout").description("Clear authentication token").action(()=>{let n=ie(ue());try{let{cfg:i,profile:r}=se(n);r.token="",r.userId="",r.email="",$e(i,n,r),I('Logged out from profile "%s"',n)}catch(i){g("%s",A(i))}});e.addCommand(t)}function UD(e){let t=new O("whoami").description("Show current user and profile").action(()=>{let n=ie(ue()),i,r;try{({cfg:i,profile:r}=se(n))}catch(l){g("%s",A(l))}r.token||g("not logged in (run `zenku login`)");let o;try{o=vv(r.token)}catch(l){g("%s",`invalid token: ${A(l)}`)}let s=i.defaultProfile===n,a=o.getTime()-Date.now(),u=Te(r),c=je(r);v({json:()=>({profile:n,default:s,email:r.email,userId:r.userId,authPb:Je(r),tenantId:u||null,accountId:c||null,expiresAt:o.toISOString(),expiresIn:lp(Math.max(a,0))}),human:()=>{let l=s?" (default)":"";process.stdout.write(`Profile: ${n}${l}
130
130
  `),process.stdout.write(`Email: ${r.email}
131
131
  `),process.stdout.write(`User ID: ${r.userId}
132
- `),process.stdout.write(`Auth PB: ${Ve(r)}
132
+ `),process.stdout.write(`Auth PB: ${Je(r)}
133
133
  `),u&&process.stdout.write(`Tenant ID: ${u}
134
134
  `),c&&process.stdout.write(`Account ID: ${c}
135
- `),s<=0?process.stdout.write("Token: expired (run `zenku login`)\n"):process.stdout.write(`Token: expires in ${Zd(s)}
136
- `)}})});e.addCommand(t)}function Fn(e){return e.trim().replace(/\/+$/g,"")}function Qv(e){return e&&(e.length<=10?`${e}...`:`${e.slice(0,10)}...`)}function ex(){let e=new z("profile").description("Manage connection profiles");return e.command("create").description("Create a new profile").argument("<name>","profile name").action(async t=>{try{let n=Ut();n.profiles[t]&&y('profile "%s" already exists',t);let i=await we("Auth collection",{placeholder:"users"});if(i===null)return;let r=await we("Auth PB URL (for login/token refresh)",{placeholder:"https://pb-myapp.example.com"});if(r===null)return;let o=await we("Kanban PB URL (optional)",{placeholder:"https://pb-kanban.example.com"});if(o===null)return;let a=await we("Kanban API URL (optional)",{placeholder:"https://kanban-api.example.com"});if(a===null)return;let s=await we("Library PB URL (optional)",{placeholder:"https://pb-library.example.com"});if(s===null)return;let u=await we("Library API URL (optional)",{placeholder:"https://library-api.example.com"});if(u===null)return;let c=Fn(r);c||y("Auth PB URL is required");let l=i.trim()||"users",d={"auth-pb":c},p=Fn(o),f=Fn(a),g=Fn(s),x=Fn(u);p&&(d["kanban-pb"]=p),f&&(d.kanban=f),g&&(d["library-pb"]=g),x&&(d.library=x),be(n,t,{collection:l,services:d,token:"",userId:"",email:"",tenantId:"",accountId:"",kanbanProject:""}),(Object.keys(n.profiles).length===1||!n.defaultProfile)&&(n.defaultProfile=t,vn(n)),I('Profile "%s" created',t)}catch(n){y("%s",M(n))}}),e.command("list").description("List all profiles").action(()=>{try{let t=Ut();v({json:()=>t.profiles,human:()=>{let n=Object.entries(t.profiles).map(([i,r])=>[i,i===t.defaultProfile?"*":"",Object.keys(r.services).filter(o=>!o.endsWith("-pb")).join(", ")||"-",r.token?"yes":"no"]);L(["NAME","DEFAULT","SERVICES","LOGGED IN"],n)}})}catch(t){y("%s",M(t))}}),e.command("use").description("Set the default profile").argument("<name>","profile name").action(t=>{try{let n=Ut();n.profiles[t]||y('profile "%s" not found',t),n.defaultProfile=t,vn(n),I('Default profile set to "%s"',t)}catch(n){y("%s",M(n))}}),e.command("show").description("Show profile details").argument("[name]","profile name").action(t=>{let n=t&&t.length>0?t:oe(ue());try{let{cfg:i,profile:r}=se(n);v({json:()=>{let o={...r,token:Qv(r.token)};return{name:n,default:i.defaultProfile===n,profile:o}},human:()=>{let o=i.defaultProfile===n?" (default)":"";process.stdout.write(`Profile: ${n}${o}
135
+ `),a<=0?process.stdout.write("Token: expired (run `zenku login`)\n"):process.stdout.write(`Token: expires in ${lp(a)}
136
+ `)}})});e.addCommand(t)}function Mn(e){return e.trim().replace(/\/+$/g,"")}function ND(e){return e&&(e.length<=10?`${e}...`:`${e.slice(0,10)}...`)}function ww(){let e=new O("profile").description("Manage connection profiles");return e.command("create").description("Create a new profile").argument("<name>","profile name").action(async t=>{try{let n=Wt();n.profiles[t]&&g('profile "%s" already exists',t);let i=await ke("Auth collection",{placeholder:"users"});if(i===null)return;let r=await ke("Auth PB URL (for login/token refresh)",{placeholder:"https://pb-myapp.example.com"});if(r===null)return;let o=await ke("Kanban PB URL (optional)",{placeholder:"https://pb-kanban.example.com"});if(o===null)return;let s=await ke("Kanban API URL (optional)",{placeholder:"https://kanban-api.example.com"});if(s===null)return;let a=await ke("Library PB URL (optional)",{placeholder:"https://pb-library.example.com"});if(a===null)return;let u=await ke("Library API URL (optional)",{placeholder:"https://library-api.example.com"});if(u===null)return;let c=Mn(r);c||g("Auth PB URL is required");let l=i.trim()||"users",d={"auth-pb":c},p=Mn(o),m=Mn(s),D=Mn(a),x=Mn(u);p&&(d["kanban-pb"]=p),m&&(d.kanban=m),D&&(d["library-pb"]=D),x&&(d.library=x),$e(n,t,{collection:l,services:d,token:"",userId:"",email:"",tenantId:"",accountId:"",kanbanProject:""}),(Object.keys(n.profiles).length===1||!n.defaultProfile)&&(n.defaultProfile=t,Fn(n)),I('Profile "%s" created',t)}catch(n){g("%s",A(n))}}),e.command("list").description("List all profiles").action(()=>{try{let t=Wt();v({json:()=>t.profiles,human:()=>{let n=Object.entries(t.profiles).map(([i,r])=>[i,i===t.defaultProfile?"*":"",Object.keys(r.services).filter(o=>!o.endsWith("-pb")).join(", ")||"-",r.token?"yes":"no"]);B(["NAME","DEFAULT","SERVICES","LOGGED IN"],n)}})}catch(t){g("%s",A(t))}}),e.command("use").description("Set the default profile").argument("<name>","profile name").action(t=>{try{let n=Wt();n.profiles[t]||g('profile "%s" not found',t),n.defaultProfile=t,Fn(n),I('Default profile set to "%s"',t)}catch(n){g("%s",A(n))}}),e.command("show").description("Show profile details").argument("[name]","profile name").action(t=>{let n=t&&t.length>0?t:ie(ue());try{let{cfg:i,profile:r}=se(n);v({json:()=>{let o={...r,token:ND(r.token)};return{name:n,default:i.defaultProfile===n,profile:o}},human:()=>{let o=i.defaultProfile===n?" (default)":"";process.stdout.write(`Profile: ${n}${o}
137
137
  `),process.stdout.write(` Collection: ${r.collection}
138
- `);for(let[a,s]of Object.entries(r.services))process.stdout.write(` ${a}: ${s}
138
+ `);for(let[s,a]of Object.entries(r.services))process.stdout.write(` ${s}: ${a}
139
139
  `);r.email&&process.stdout.write(` Email: ${r.email}
140
- `),r.token?process.stdout.write(` Token: ${Qv(r.token)}
140
+ `),r.token?process.stdout.write(` Token: ${ND(r.token)}
141
141
  `):process.stdout.write(` Token: (not logged in)
142
142
  `),r.tenantId&&process.stdout.write(` Tenant ID: ${r.tenantId}
143
143
  `),r.accountId&&process.stdout.write(` Account ID: ${r.accountId}
144
- `)}})}catch(i){y("%s",M(i))}}),e.command("delete").description("Delete a profile").argument("<name>","profile name").action(t=>{try{let n=Ut();n.profiles[t]||y('profile "%s" not found',t),delete n.profiles[t],n.defaultProfile===t&&(n.defaultProfile=""),vn(n),I('Profile "%s" deleted',t)}catch(n){y("%s",M(n))}}),e.command("context").description("Display resolved tenant and account context").action(()=>{let t=oe(ue()),n;try{({profile:n}=se(t))}catch(o){y("%s",M(o))}let i=Ge(n),r=Je(n);v({json:()=>({tenantId:i||null,accountId:r||null,profile:t}),human:()=>{process.stdout.write(`Profile: ${t}
144
+ `)}})}catch(i){g("%s",A(i))}}),e.command("delete").description("Delete a profile").argument("<name>","profile name").action(t=>{try{let n=Wt();n.profiles[t]||g('profile "%s" not found',t),delete n.profiles[t],n.defaultProfile===t&&(n.defaultProfile=""),Fn(n),I('Profile "%s" deleted',t)}catch(n){g("%s",A(n))}}),e.command("context").description("Display resolved tenant and account context").action(()=>{let t=ie(ue()),n;try{({profile:n}=se(t))}catch(o){g("%s",A(o))}let i=Te(n),r=je(n);v({json:()=>({tenantId:i||null,accountId:r||null,profile:t}),human:()=>{process.stdout.write(`Profile: ${t}
145
145
  `),process.stdout.write(`Tenant ID: ${i||"(not set)"}
146
146
  `),process.stdout.write(`Account ID: ${r||"(not set)"}
147
- `)}})}),e.command("set").description("Set tenant and/or account in profile").option("--tenant-id <id>","tenant ID to store").option("--account-id <id>","account ID to store").action(t=>{!t.tenantId&&!t.accountId&&y("specify --tenant-id <id> and/or --account-id <id>");let n=oe(ue()),i,r;try{({cfg:i,profile:r}=se(n))}catch(o){y("%s",M(o))}t.tenantId&&(r.tenantId=t.tenantId),t.accountId&&(r.accountId=t.accountId),be(i,n,r),v({json:()=>({tenantId:r.tenantId||null,accountId:r.accountId||null}),human:()=>{t.tenantId&&I("Tenant ID set to %s",t.tenantId),t.accountId&&I("Account ID set to %s",t.accountId)}})}),e.command("clear").description("Remove tenant and/or account from profile").option("--tenant-id","clear tenant ID").option("--account-id","clear account ID").action(t=>{let n=!t.tenantId&&!t.accountId,i=oe(ue()),r,o;try{({cfg:r,profile:o}=se(i))}catch(a){y("%s",M(a))}(n||t.tenantId)&&(o.tenantId=""),(n||t.accountId)&&(o.accountId=""),be(r,i,o),v({json:()=>({tenantId:o.tenantId||null,accountId:o.accountId||null}),human:()=>{n?I("Tenant and account context cleared."):t.tenantId?I("Tenant ID cleared."):I("Account ID cleared.")}})}),e.command("switch").description("Interactively pick an account from your memberships").action(async()=>{let{cfg:t,profile:n,client:i}=await P("auth"),r=await Qo(i.baseURL,i.authStore.token,n.userId);if(!r){E("No account selected.");return}let o=oe(ue());n.accountId=r,be(t,o,n),v({json:()=>({accountId:r}),human:()=>I("Account set to %s",r)})}),e}function eD(e){e.addCommand(ex())}function tx(e){let t=e.trim().toLowerCase();return t=t.replace(/[^a-z0-9]+/g,"-"),t=t.replace(/^-+|-+$/g,""),t||"account"}async function tD(e,t){let n=await e.collection("roles").getList(1,1,{filter:`slug='${t}'`});if(n.items.length===0)throw new Error(`role "${t}" not found`);return n.items[0].id}function rx(){let e=new z("accounts").description("Manage RBAC accounts");e.command("list").description("List accounts").action(async()=>{let{client:i}=await P("library"),r=await k("Fetching accounts...",()=>i.collection("accounts").getList(1,200,{sort:"-created"}));v({json:()=>r.items,human:()=>{let o=r.items.map(a=>[a.id,a.name,a.type,a.slug,a.created]);L(["ID","NAME","TYPE","SLUG","CREATED"],o)}})}),e.command("get").description("Get account details").argument("<id>","account ID").action(async i=>{let{client:r}=await P("library"),o=await k("Fetching account...",()=>r.collection("accounts").getOne(i));v({json:()=>o,human:()=>{process.stdout.write(`ID: ${o.id}
147
+ `)}})}),e.command("set").description("Set tenant and/or account in profile").option("--tenant-id <id>","tenant ID to store").option("--account-id <id>","account ID to store").action(t=>{!t.tenantId&&!t.accountId&&g("specify --tenant-id <id> and/or --account-id <id>");let n=ie(ue()),i,r;try{({cfg:i,profile:r}=se(n))}catch(o){g("%s",A(o))}t.tenantId&&(r.tenantId=t.tenantId),t.accountId&&(r.accountId=t.accountId),$e(i,n,r),v({json:()=>({tenantId:r.tenantId||null,accountId:r.accountId||null}),human:()=>{t.tenantId&&I("Tenant ID set to %s",t.tenantId),t.accountId&&I("Account ID set to %s",t.accountId)}})}),e.command("clear").description("Remove tenant and/or account from profile").option("--tenant-id","clear tenant ID").option("--account-id","clear account ID").action(t=>{let n=!t.tenantId&&!t.accountId,i=ie(ue()),r,o;try{({cfg:r,profile:o}=se(i))}catch(s){g("%s",A(s))}(n||t.tenantId)&&(o.tenantId=""),(n||t.accountId)&&(o.accountId=""),$e(r,i,o),v({json:()=>({tenantId:o.tenantId||null,accountId:o.accountId||null}),human:()=>{n?I("Tenant and account context cleared."):t.tenantId?I("Tenant ID cleared."):I("Account ID cleared.")}})}),e.command("switch").description("Interactively pick an account from your memberships").action(async()=>{let{cfg:t,profile:n,client:i}=await T("auth"),r=await gs(i.baseURL,i.authStore.token,n.userId);if(!r){E("No account selected.");return}let o=ie(ue());n.accountId=r,$e(t,o,n),v({json:()=>({accountId:r}),human:()=>I("Account set to %s",r)})}),e}function RD(e){e.addCommand(ww())}function kw(e){let t=e.trim().toLowerCase();return t=t.replace(/[^a-z0-9]+/g,"-"),t=t.replace(/^-+|-+$/g,""),t||"account"}async function BD(e,t){let n=await e.collection("roles").getList(1,1,{filter:`slug='${t}'`});if(n.items.length===0)throw new Error(`role "${t}" not found`);return n.items[0].id}function Sw(){let e=new O("accounts").description("Manage RBAC accounts");e.command("list").description("List accounts").action(async()=>{let{client:i}=await T("library"),r=await k("Fetching accounts...",()=>i.collection("accounts").getList(1,200,{sort:"-created"}));v({json:()=>r.items,human:()=>{let o=r.items.map(s=>[s.id,s.name,s.type,s.slug,s.created]);B(["ID","NAME","TYPE","SLUG","CREATED"],o)}})}),e.command("get").description("Get account details").argument("<id>","account ID").action(async i=>{let{client:r}=await T("library"),o=await k("Fetching account...",()=>r.collection("accounts").getOne(i));v({json:()=>o,human:()=>{process.stdout.write(`ID: ${o.id}
148
148
  `),process.stdout.write(`Name: ${o.name}
149
149
  `),process.stdout.write(`Type: ${o.type}
150
150
  `),process.stdout.write(`Slug: ${o.slug}
151
151
  `),process.stdout.write(`Created: ${o.created}
152
- `)}})}),e.command("create").description("Create an account").requiredOption("--name <name>","account name").option("--type <type>","account type (personal/team)","team").action(async i=>{let{profile:r,client:o}=await P("library"),a=tx(i.name),s=await k("Creating account...",()=>o.collection("accounts").create({name:i.name,type:i.type,slug:a,owner:r.userId}));v({json:()=>s,human:()=>I("Account created: %s (%s)",s.name,s.id)})});let t=new z("members").description("Manage account members");t.command("list").description("List members of an account").argument("<account-id>","account ID").action(async i=>{let{client:r}=await P("library"),o=await k("Fetching members...",()=>r.collection("account_members").getList(1,200,{filter:`account='${i}'`,expand:"role,user",sort:"-created"}));v({json:()=>o.items,human:()=>{let a=o.items.map(s=>{let u="",c="",l=s.expand;return l&&(l.user&&(u=Q(l.user.email)),l.role&&(c=Q(l.role.name))),[s.id,u,c,s.created]});L(["ID","USER","ROLE","CREATED"],a)}})}),t.command("add").description("Add a member to an account").argument("<account-id>","account ID").requiredOption("--user <id>","user ID to add").requiredOption("--role <slug>","role slug").action(async(i,r)=>{let{client:o}=await P("library"),a=await k("Resolving role...",()=>tD(o,r.role)),s=await k("Adding member...",()=>o.collection("account_members").create({account:i,user:r.user,role:a}));v({json:()=>s,human:()=>I("Member added: %s",s.id)})}),t.command("remove").description("Remove a member from an account").argument("<account-id>","account ID").argument("<member-id>","member ID").action(async(i,r)=>{let{client:o}=await P("library");await k("Removing member...",()=>o.collection("account_members").delete(r)),v({json:()=>({deleted:!0}),human:()=>I("Member removed")})}),e.addCommand(t);let n=new z("invitations").description("Manage account invitations");return n.command("list").description("List invitations for an account").argument("<account-id>","account ID").action(async i=>{let{client:r}=await P("library"),o=await k("Fetching invitations...",()=>r.collection("account_invitations").getList(1,200,{filter:`account='${i}'`,expand:"role",sort:"-created"}));v({json:()=>o.items,human:()=>{let a=o.items.map(s=>{let u="",c=s.expand;return c?.role&&(u=Q(c.role.name)),[s.id,s.email,u,s.accepted_at?"accepted":"pending",s.created]});L(["ID","EMAIL","ROLE","STATUS","CREATED"],a)}})}),n.command("create").description("Create an invitation").argument("<account-id>","account ID").requiredOption("--email <email>","email to invite").requiredOption("--role <slug>","role slug").action(async(i,r)=>{let{client:o}=await P("library"),a=await k("Resolving role...",()=>tD(o,r.role)),s=await k("Creating invitation...",()=>o.collection("account_invitations").create({account:i,email:r.email,role:a}));v({json:()=>s,human:()=>I("Invitation sent to %s",r.email)})}),e.addCommand(n),e}function rD(e){e.addCommand(rx())}function nx(){let e=new z("roles").description("Manage RBAC roles");return e.command("list").description("List all roles").action(async()=>{let{client:t}=await P("library"),n=await k("Fetching roles...",()=>t.collection("roles").getList(1,200,{sort:"name"}));v({json:()=>n.items,human:()=>{let i=n.items.map(r=>[r.id,r.name,r.slug,r.is_system?"yes":""]);L(["ID","NAME","SLUG","SYSTEM"],i)}})}),e}function nD(e){e.addCommand(nx())}var iD=require("node:child_process");function zr(e,t){let n=e.name(),i=`${t?.pbService??n}-pb`;e.command("web").description(`Open the ${n} web UI in the browser (auto-login if authenticated)`).option("--no-open","print the URL without opening the browser").action(async({open:r})=>{let o=oe(ue()),{cfg:a,profile:s}=se(o),u=s.services[`${n}-web`];if(!u){let l=s.services[i];if(l)try{let d=new URL(l);d.hostname=d.hostname.replace(/^pb-/,""),u=d.toString().replace(/\/$/,"")}catch{}}u||y(`no ${n}-web URL configured (add ${n}-web to profile services)`);let c=u;if(s.token)try{let l=await zo(a,o,s),d=s.services[i];if(d){let p=new URLSearchParams({token:l,pbUrl:d,collection:s.collection,...s.accountId&&{accountId:s.accountId}}).toString();c=`${u}/auth/token#${p}`}}catch{}if(r){let l=process.platform==="darwin"?"open":process.platform==="win32"?"start":"xdg-open";(0,iD.exec)(`${l} "${c}"`)}v({json:()=>({url:u,authenticated:c!==u}),human:()=>E("Opening %s",u)})})}function ix(){let e=new z("library").description("Library memory commands (agents, nodes, sessions, messages, summaries)"),t=new z("agents").description("Manage library agents");t.command("list").description("List agents").action(async()=>{let{client:a}=await P("library"),s=await k("Fetching agents...",()=>a.collection("agents").getList(1,200,{sort:"-created"}));v({json:()=>s.items,human:()=>{let u=s.items.map(c=>[c.id,c.name,c.slug,c.created]);L(["ID","NAME","SLUG","CREATED"],u)}})}),t.command("get").description("Get agent details").argument("<id>","agent ID").action(async a=>{let{client:s}=await P("library"),u=await k("Fetching agent...",()=>s.collection("agents").getOne(a));v({json:()=>u,human:()=>{process.stdout.write(`ID: ${u.id}
152
+ `)}})}),e.command("create").description("Create an account").requiredOption("--name <name>","account name").option("--type <type>","account type (personal/team)","team").action(async i=>{let{profile:r,client:o}=await T("library"),s=kw(i.name),a=await k("Creating account...",()=>o.collection("accounts").create({name:i.name,type:i.type,slug:s,owner:r.userId}));v({json:()=>a,human:()=>I("Account created: %s (%s)",a.name,a.id)})});let t=new O("members").description("Manage account members");t.command("list").description("List members of an account").argument("<account-id>","account ID").action(async i=>{let{client:r}=await T("library"),o=await k("Fetching members...",()=>r.collection("account_members").getList(1,200,{filter:`account='${i}'`,expand:"role,user",sort:"-created"}));v({json:()=>o.items,human:()=>{let s=o.items.map(a=>{let u="",c="",l=a.expand;return l&&(l.user&&(u=W(l.user.email)),l.role&&(c=W(l.role.name))),[a.id,u,c,a.created]});B(["ID","USER","ROLE","CREATED"],s)}})}),t.command("add").description("Add a member to an account").argument("<account-id>","account ID").requiredOption("--user <id>","user ID to add").requiredOption("--role <slug>","role slug").action(async(i,r)=>{let{client:o}=await T("library"),s=await k("Resolving role...",()=>BD(o,r.role)),a=await k("Adding member...",()=>o.collection("account_members").create({account:i,user:r.user,role:s}));v({json:()=>a,human:()=>I("Member added: %s",a.id)})}),t.command("remove").description("Remove a member from an account").argument("<account-id>","account ID").argument("<member-id>","member ID").action(async(i,r)=>{let{client:o}=await T("library");await k("Removing member...",()=>o.collection("account_members").delete(r)),v({json:()=>({deleted:!0}),human:()=>I("Member removed")})}),e.addCommand(t);let n=new O("invitations").description("Manage account invitations");return n.command("list").description("List invitations for an account").argument("<account-id>","account ID").action(async i=>{let{client:r}=await T("library"),o=await k("Fetching invitations...",()=>r.collection("account_invitations").getList(1,200,{filter:`account='${i}'`,expand:"role",sort:"-created"}));v({json:()=>o.items,human:()=>{let s=o.items.map(a=>{let u="",c=a.expand;return c?.role&&(u=W(c.role.name)),[a.id,a.email,u,a.accepted_at?"accepted":"pending",a.created]});B(["ID","EMAIL","ROLE","STATUS","CREATED"],s)}})}),n.command("create").description("Create an invitation").argument("<account-id>","account ID").requiredOption("--email <email>","email to invite").requiredOption("--role <slug>","role slug").action(async(i,r)=>{let{client:o}=await T("library"),s=await k("Resolving role...",()=>BD(o,r.role)),a=await k("Creating invitation...",()=>o.collection("account_invitations").create({account:i,email:r.email,role:s}));v({json:()=>a,human:()=>I("Invitation sent to %s",r.email)})}),e.addCommand(n),e}function LD(e){e.addCommand(Sw())}function Cw(){let e=new O("roles").description("Manage RBAC roles");return e.command("list").description("List all roles").action(async()=>{let{client:t}=await T("library"),n=await k("Fetching roles...",()=>t.collection("roles").getList(1,200,{sort:"name"}));v({json:()=>n.items,human:()=>{let i=n.items.map(r=>[r.id,r.name,r.slug,r.is_system?"yes":""]);B(["ID","NAME","SLUG","SYSTEM"],i)}})}),e}function ZD(e){e.addCommand(Cw())}var MD=require("node:child_process");function Zr(e,t){let n=e.name(),i=`${t?.pbService??n}-pb`;e.command("web").description(`Open the ${n} web UI in the browser (auto-login if authenticated)`).option("--no-open","print the URL without opening the browser").action(async({open:r})=>{let o=ie(ue()),{cfg:s,profile:a}=se(o),u=a.services[`${n}-web`];if(!u){let l=a.services[i];if(l)try{let d=new URL(l);d.hostname=d.hostname.replace(/^pb-/,""),u=d.toString().replace(/\/$/,"")}catch{}}u||g(`no ${n}-web URL configured (add ${n}-web to profile services)`);let c=u;if(a.token)try{let l=await Ko(s,o,a),d=a.services[i];if(d){let p=new URLSearchParams({token:l,pbUrl:d,collection:a.collection,...a.accountId&&{accountId:a.accountId}}).toString();c=`${u}/auth/token#${p}`}}catch{}if(r){let l=process.platform==="darwin"?"open":process.platform==="win32"?"start":"xdg-open";(0,MD.exec)(`${l} "${c}"`)}v({json:()=>({url:u,authenticated:c!==u}),human:()=>E("Opening %s",u)})})}function Iw(){let e=new O("library").description("Library memory commands (agents, nodes, sessions, messages, summaries)"),t=new O("agents").description("Manage library agents");t.command("list").description("List agents").action(async()=>{let{client:s}=await T("library"),a=await k("Fetching agents...",()=>s.collection("agents").getList(1,200,{sort:"-created"}));v({json:()=>a.items,human:()=>{let u=a.items.map(c=>[c.id,c.name,c.slug,c.created]);B(["ID","NAME","SLUG","CREATED"],u)}})}),t.command("get").description("Get agent details").argument("<id>","agent ID").action(async s=>{let{client:a}=await T("library"),u=await k("Fetching agent...",()=>a.collection("agents").getOne(s));v({json:()=>u,human:()=>{process.stdout.write(`ID: ${u.id}
153
153
  `),process.stdout.write(`Name: ${u.name}
154
154
  `),process.stdout.write(`Slug: ${u.slug}
155
155
  `),process.stdout.write(`Created: ${u.created}
156
- `)}})});let n=new z("nodes").description("Manage library knowledge nodes");n.command("list").description("List knowledge nodes").action(async()=>{let{client:a}=await P("library"),s=await k("Fetching nodes...",()=>a.collection("nodes").getList(1,200,{sort:"-created"}));v({json:()=>s.items,human:()=>{let u=s.items.map(c=>[c.id,c.title,c.type,c.slug,c.created]);L(["ID","TITLE","TYPE","SLUG","CREATED"],u)}})}),n.command("get").description("Get node details").argument("<id>","node ID").action(async a=>{let{client:s}=await P("library"),u=await k("Fetching node...",()=>s.collection("nodes").getOne(a));v({json:()=>u,human:()=>{process.stdout.write(`ID: ${u.id}
156
+ `)}})});let n=new O("nodes").description("Manage library knowledge nodes");n.command("list").description("List knowledge nodes").action(async()=>{let{client:s}=await T("library"),a=await k("Fetching nodes...",()=>s.collection("nodes").getList(1,200,{sort:"-created"}));v({json:()=>a.items,human:()=>{let u=a.items.map(c=>[c.id,c.title,c.type,c.slug,c.created]);B(["ID","TITLE","TYPE","SLUG","CREATED"],u)}})}),n.command("get").description("Get node details").argument("<id>","node ID").action(async s=>{let{client:a}=await T("library"),u=await k("Fetching node...",()=>a.collection("nodes").getOne(s));v({json:()=>u,human:()=>{process.stdout.write(`ID: ${u.id}
157
157
  `),process.stdout.write(`Title: ${u.title}
158
158
  `),process.stdout.write(`Type: ${u.type}
159
159
  `),process.stdout.write(`Slug: ${u.slug}
@@ -161,72 +161,72 @@ ${t}`,f_=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),h_=Objec
161
161
  `),process.stdout.write(`Created: ${u.created}
162
162
  `);let c=u.content;c&&process.stdout.write(`
163
163
  ${c}
164
- `)}})}),n.command("tree").description("Get node tree").option("--depth <n>","tree depth (1-10)","3").option("--node <id>","root node ID").action(async a=>{let s=await K("library"),u=Number(a.depth),l={depth:Number.isNaN(u)?3:u};a.node&&(l.nodeId=a.node);let d=await k("Fetching tree...",()=>s.query("nodes.getTree",l));v({json:()=>d,human:()=>{process.stdout.write(JSON.stringify(d,null,2)+`
165
- `)}})}),n.command("create").description("Create a knowledge node").requiredOption("--title <title>","node title").option("--type <type>","node type (folder/document)","document").requiredOption("--slug <slug>","node slug").option("--parent <id>","parent node ID").option("--content <content>","node content (use @file or - for stdin)").action(async a=>{let s=await K("library"),u={title:a.title,slug:a.slug,type:a.type};a.parent&&(u.parent=a.parent),a.content&&(u.content=Ce(a.content));let c=await k("Creating node...",()=>s.mutate("nodes.create",u));v({json:()=>c,human:()=>{let l=c;I("Node created: %s (%s)",l.title,l.id)}})}),n.command("update").description("Update a knowledge node").argument("<id>","node ID").option("--title <title>","new title").option("--content <content>","new content (use @file or - for stdin)").action(async(a,s)=>{let u=await K("library"),c={id:a};s.title&&(c.title=s.title),s.content&&(c.content=Ce(s.content));let l=await k("Updating node...",()=>u.mutate("nodes.update",c));v({json:()=>l,human:()=>I("Node updated")})}),n.command("delete").description("Delete a knowledge node").argument("<id>","node ID").action(async a=>{let s=await K("library");await k("Deleting node...",()=>s.mutate("nodes.delete",{id:a})),v({json:()=>({deleted:!0}),human:()=>I("Node deleted")})});let i=new z("sessions").description("Manage library sessions");i.command("list").description("List sessions").option("--status <status>","filter by status").action(async a=>{let{client:s}=await P("library"),u=a.status?`status='${a.status}'`:"",c=await k("Fetching sessions...",()=>s.collection("sessions").getList(1,200,{sort:"-created",filter:u}));v({json:()=>c.items,human:()=>{let l=c.items.map(d=>[d.id,d.session_key,d.agent,d.status,d.created]);L(["ID","SESSION KEY","AGENT","STATUS","CREATED"],l)}})}),i.command("get").description("Get session details").argument("<id>","session ID").action(async a=>{let{client:s}=await P("library"),u=await k("Fetching session...",()=>s.collection("sessions").getOne(a));v({json:()=>u,human:()=>{process.stdout.write(`ID: ${u.id}
164
+ `)}})}),n.command("tree").description("Get node tree").option("--depth <n>","tree depth (1-10)","3").option("--node <id>","root node ID").action(async s=>{let a=await H("library"),u=Number(s.depth),l={depth:Number.isNaN(u)?3:u};s.node&&(l.nodeId=s.node);let d=await k("Fetching tree...",()=>a.query("nodes.getTree",l));v({json:()=>d,human:()=>{process.stdout.write(JSON.stringify(d,null,2)+`
165
+ `)}})}),n.command("create").description("Create a knowledge node").requiredOption("--title <title>","node title").option("--type <type>","node type (folder/document)","document").requiredOption("--slug <slug>","node slug").option("--parent <id>","parent node ID").option("--content <content>","node content (use @file or - for stdin)").action(async s=>{let a=await H("library"),u={title:s.title,slug:s.slug,type:s.type};s.parent&&(u.parent=s.parent),s.content&&(u.content=Ce(s.content));let c=await k("Creating node...",()=>a.mutate("nodes.create",u));v({json:()=>c,human:()=>{let l=c;I("Node created: %s (%s)",l.title,l.id)}})}),n.command("update").description("Update a knowledge node").argument("<id>","node ID").option("--title <title>","new title").option("--content <content>","new content (use @file or - for stdin)").action(async(s,a)=>{let u=await H("library"),c={id:s};a.title&&(c.title=a.title),a.content&&(c.content=Ce(a.content));let l=await k("Updating node...",()=>u.mutate("nodes.update",c));v({json:()=>l,human:()=>I("Node updated")})}),n.command("delete").description("Delete a knowledge node").argument("<id>","node ID").action(async s=>{let a=await H("library");await k("Deleting node...",()=>a.mutate("nodes.delete",{id:s})),v({json:()=>({deleted:!0}),human:()=>I("Node deleted")})});let i=new O("sessions").description("Manage library sessions");i.command("list").description("List sessions").option("--status <status>","filter by status").action(async s=>{let{client:a}=await T("library"),u=s.status?`status='${s.status}'`:"",c=await k("Fetching sessions...",()=>a.collection("sessions").getList(1,200,{sort:"-created",filter:u}));v({json:()=>c.items,human:()=>{let l=c.items.map(d=>[d.id,d.session_key,d.agent,d.status,d.created]);B(["ID","SESSION KEY","AGENT","STATUS","CREATED"],l)}})}),i.command("get").description("Get session details").argument("<id>","session ID").action(async s=>{let{client:a}=await T("library"),u=await k("Fetching session...",()=>a.collection("sessions").getOne(s));v({json:()=>u,human:()=>{process.stdout.write(`ID: ${u.id}
166
166
  `),process.stdout.write(`Session Key: ${u.session_key}
167
167
  `),process.stdout.write(`Agent: ${u.agent}
168
168
  `),process.stdout.write(`Status: ${u.status}
169
169
  `),process.stdout.write(`Channel: ${u.channel}
170
170
  `),process.stdout.write(`Created: ${u.created}
171
- `)}})});let r=new z("messages").description("View session messages");r.command("list").description("List messages for a session").requiredOption("--session <id>","session ID").action(async a=>{let{client:s}=await P("library"),u=await k("Fetching messages...",()=>s.collection("messages").getList(1,200,{filter:`session='${a.session}'`,sort:"sequence"}));v({json:()=>u.items,human:()=>{let c=u.items.map(l=>[String(l.sequence),l.role,pt(l.content,80),l.created]);L(["SEQ","ROLE","CONTENT","CREATED"],c)}})});let o=new z("summaries").description("View session summaries");return o.command("list").description("List session summaries").option("--session <id>","filter by session ID").action(async a=>{let{client:s}=await P("library"),u=a.session?`session='${a.session}'`:"",c=await k("Fetching summaries...",()=>s.collection("session_summaries").getList(1,200,{sort:"-created",filter:u}));v({json:()=>c.items,human:()=>{let l=c.items.map(d=>[d.id,d.session,pt(d.summary,60),d.created]);L(["ID","SESSION","SUMMARY","CREATED"],l)}})}),e.addCommand(t),e.addCommand(n),e.addCommand(i),e.addCommand(r),e.addCommand(o),zr(e),e}function oD(e){e.addCommand(ix())}function ox(e,t){return[...t,e]}function R(e,t){return e.getOptionValueSource(t)==="cli"}function Ae(e){return typeof e=="object"&&e!==null?e:null}function B(e,t){return Q(e[t])}function zn(e,t){let n=Ae(e[t]);return n?B(n,"name"):""}function aD(e,t){let n=Ae(e[t]);if(!n)return"";let i=B(n,"name");return i!==""?i:B(n,"email")}function Pn(e,t){let n=Ae(e.expand);if(!n)return"";let i=Ae(n[t]);return i?B(i,"name"):""}function sD(e,t){let n=Ae(e.expand);if(!n)return"";let i=Ae(n[t]);if(!i)return"";let r=B(i,"name");return r!==""?r:B(i,"email")}async function Mt(e,t){let n=await e.collection("issues").getList(1,1,{filter:`key='${t}'`});return n.items.length===0&&y('issue "%s" not found',t),n.items[0].id}async function On(e,t,n){let i=oe(ue()),{profile:r}=se(i),a=(R(e,"project")?t.project:void 0)??(r.kanbanProject||"");if(!a)return null;let u=await(n??(await P("kanban")).client).collection("projects").getList(1,1,{filter:`key='${a}'`});return u.items.length===0&&y('project "%s" not found',a),{key:a,id:u.items[0].id}}function ax(e){let t=[];for(let n of e){let i=Ae(n);if(!i)continue;let r=zn(i,"status");r===""&&(r=B(i,"status_name")),r===""&&(r=Pn(i,"status_id"));let o=zn(i,"type");o===""&&(o=B(i,"type_name")),o===""&&(o=Pn(i,"type_id"));let a=aD(i,"assignee");a===""&&(a=B(i,"assignee_name")),a===""&&(a=sD(i,"assignee_id"));let s=B(i,"created");s===""&&(s=B(i,"createdAt")),t.push([B(i,"key"),B(i,"title"),r,o,a,s])}return t}function sx(){let e=new z("kanban").description("Kanban project management commands"),t=new z("projects").description("Manage kanban projects");t.command("list").description("List projects").action(async()=>{let{client:a}=await P("kanban"),s=await k("Fetching projects...",()=>a.collection("projects").getList(1,200,{sort:"-created"}));v({json:()=>s.items,human:()=>{let u=s.items.map(c=>[c.id,c.key,c.name,c.created]);L(["ID","KEY","NAME","CREATED"],u)}})}),t.command("get").description("Get project details").argument("<id-or-key>","project ID or key").action(async a=>{let{client:s}=await P("kanban"),u=await k("Fetching project...",async()=>{try{return await s.collection("projects").getOne(a)}catch(c){let l;try{l=await s.collection("projects").getList(1,1,{filter:`key='${a}'`})}catch{throw c}return l.items.length===0&&y('project "%s" not found',a),l.items[0]}});v({json:()=>u,human:()=>{process.stdout.write(`ID: ${u.id}
171
+ `)}})});let r=new O("messages").description("View session messages");r.command("list").description("List messages for a session").requiredOption("--session <id>","session ID").action(async s=>{let{client:a}=await T("library"),u=await k("Fetching messages...",()=>a.collection("messages").getList(1,200,{filter:`session='${s.session}'`,sort:"sequence"}));v({json:()=>u.items,human:()=>{let c=u.items.map(l=>[String(l.sequence),l.role,ht(l.content,80),l.created]);B(["SEQ","ROLE","CONTENT","CREATED"],c)}})});let o=new O("summaries").description("View session summaries");return o.command("list").description("List session summaries").option("--session <id>","filter by session ID").action(async s=>{let{client:a}=await T("library"),u=s.session?`session='${s.session}'`:"",c=await k("Fetching summaries...",()=>a.collection("session_summaries").getList(1,200,{sort:"-created",filter:u}));v({json:()=>c.items,human:()=>{let l=c.items.map(d=>[d.id,d.session,ht(d.summary,60),d.created]);B(["ID","SESSION","SUMMARY","CREATED"],l)}})}),e.addCommand(t),e.addCommand(n),e.addCommand(i),e.addCommand(r),e.addCommand(o),Zr(e),e}function qD(e){e.addCommand(Iw())}function Ew(e,t){return[...t,e]}function L(e,t){return e.getOptionValueSource(t)==="cli"}function Ue(e){return typeof e=="object"&&e!==null?e:null}function Z(e,t){return W(e[t])}function Vn(e,t){let n=Ue(e[t]);return n?Z(n,"name"):""}function VD(e,t){let n=Ue(e[t]);if(!n)return"";let i=Z(n,"name");return i!==""?i:Z(n,"email")}function Wn(e,t){let n=Ue(e.expand);if(!n)return"";let i=Ue(n[t]);return i?Z(i,"name"):""}function WD(e,t){let n=Ue(e.expand);if(!n)return"";let i=Ue(n[t]);if(!i)return"";let r=Z(i,"name");return r!==""?r:Z(i,"email")}async function Xt(e,t){let n=await e.collection("issues").getList(1,1,{filter:`key='${t}'`});return n.items.length===0&&g('issue "%s" not found',t),n.items[0].id}async function qn(e,t,n){let i=ie(ue()),{profile:r}=se(i),s=(L(e,"project")?t.project:void 0)??(r.kanbanProject||"");if(!s)return null;let u=await(n??(await T("kanban")).client).collection("projects").getList(1,1,{filter:`key='${s}'`});return u.items.length===0&&g('project "%s" not found',s),{key:s,id:u.items[0].id}}function Fw(e){let t=[];for(let n of e){let i=Ue(n);if(!i)continue;let r=Vn(i,"status");r===""&&(r=Z(i,"status_name")),r===""&&(r=Wn(i,"status_id"));let o=Vn(i,"type");o===""&&(o=Z(i,"type_name")),o===""&&(o=Wn(i,"type_id"));let s=VD(i,"assignee");s===""&&(s=Z(i,"assignee_name")),s===""&&(s=WD(i,"assignee_id"));let a=Z(i,"created");a===""&&(a=Z(i,"createdAt")),t.push([Z(i,"key"),Z(i,"title"),r,o,s,a])}return t}function Ow(){let e=new O("kanban").description("Kanban project management commands"),t=new O("projects").description("Manage kanban projects");t.command("list").description("List projects").action(async()=>{let{client:s}=await T("kanban"),a=await k("Fetching projects...",()=>s.collection("projects").getList(1,200,{sort:"-created"}));v({json:()=>a.items,human:()=>{let u=a.items.map(c=>[c.id,c.key,c.name,c.created]);B(["ID","KEY","NAME","CREATED"],u)}})}),t.command("get").description("Get project details").argument("<id-or-key>","project ID or key").action(async s=>{let{client:a}=await T("kanban"),u=await k("Fetching project...",async()=>{try{return await a.collection("projects").getOne(s)}catch(c){let l;try{l=await a.collection("projects").getList(1,1,{filter:`key='${s}'`})}catch{throw c}return l.items.length===0&&g('project "%s" not found',s),l.items[0]}});v({json:()=>u,human:()=>{process.stdout.write(`ID: ${u.id}
172
172
  `),process.stdout.write(`Key: ${u.key}
173
173
  `),process.stdout.write(`Name: ${u.name}
174
174
  `),process.stdout.write(`Created: ${u.created}
175
- `)}})}),t.command("create").description("Create a project").option("--name <name>","project name").option("--key <key>","project key").option("--description <description>","project description").action(async(a,s)=>{let{client:u}=await P("kanban");(!a.name||!a.key)&&y("--name and --key are required");let c={name:a.name,key:a.key};R(s,"description")&&(c.description=a.description??"");let l=await k("Creating project...",()=>u.collection("projects").create(c));v({json:()=>l,human:()=>{L(["ID","KEY","NAME"],[[l.id,l.key,l.name]]),I("Project created: %s (%s)",l.key,l.name)}})}),t.command("update").description("Update a project").argument("<id>","project ID").option("--name <name>","project name").option("--description <description>","project description").option("--archive","archive project").option("--unarchive","unarchive project").action(async(a,s,u)=>{let{client:c}=await P("kanban");s.archive&&s.unarchive&&y("--archive and --unarchive cannot be used together");let l={};R(u,"name")&&(l.name=s.name??""),R(u,"description")&&(l.description=s.description??""),s.archive&&(l.is_archived=!0),s.unarchive&&(l.is_archived=!1),Object.keys(l).length===0&&y("no fields to update");let d=await k("Updating project...",()=>c.collection("projects").update(a,l));v({json:()=>d,human:()=>I("Project updated")})});let n=new z("issues").description("Manage kanban issues");n.command("list").description("List issues").option("--project <key>","filter by project key").option("--status <id>","filter by status ID").option("--priority <id>","filter by priority ID").option("--type <id>","filter by type ID").option("--assignee <id>","filter by assignee ID").option("--parent <id>","filter by parent issue ID").option("--search <query>","search term").option("--page <number>","page number",a=>Number.parseInt(a,10)).option("--per-page <number>","items per page",a=>Number.parseInt(a,10)).action(async(a,s)=>{let u=await K("kanban"),c={},l=await On(s,a);l&&(c.projectId=l.id),R(s,"status")&&(c.statusId=a.status??""),R(s,"priority")&&(c.priorityId=a.priority??""),R(s,"type")&&(c.typeId=a.type??""),R(s,"assignee")&&(c.assigneeId=a.assignee??""),R(s,"parent")&&(c.parentId=a.parent??""),R(s,"search")&&(c.search=a.search??""),R(s,"page")&&(c.page=a.page??0),R(s,"per-page")&&(c.perPage=a.perPage??0);let d=await k("Fetching issues...",()=>u.query("issues.list",c));v({json:()=>d,human:()=>{let p=Ae(d),f=Array.isArray(p?.items)?p.items:[];L(["KEY","TITLE","STATUS","TYPE","ASSIGNEE","CREATED"],ax(f))}})}),n.command("get").description("Get issue by key").argument("<key>","issue key").option("--format <format>","description format: json (Block[]), editing ([{id,html}]), text (plain)").option("--no-comments","omit comments").action(async(a,s)=>{let{client:u}=await P("kanban"),c=await K("kanban"),{issue:l,commentItems:d}=await k("Fetching issue...",async()=>{let p=await Mt(u,a),f=s.format??(Pe()?"json":"text"),g=await c.query("issues.get",{id:p,format:f}),x=[];return s.comments&&(x=(await u.collection("comments").getList(1,200,{filter:`issue='${p}'`,sort:"created"})).items),{issue:Ae(g)??{},commentItems:x}});v({json:()=>({...l,...s.comments?{comments:d}:{}}),human:()=>{process.stdout.write(`Key: ${B(l,"key")}
176
- `),process.stdout.write(`Title: ${B(l,"title")}
177
- `),process.stdout.write(`Status: ${B(l,"status_id")}
178
- `),process.stdout.write(`Type: ${B(l,"type_id")}
179
- `);let p=B(l,"priority_id");p!==""&&process.stdout.write(`Priority: ${p}
180
- `);let f=B(l,"assignee_id");f!==""&&process.stdout.write(`Assignee: ${f}
181
- `),process.stdout.write(`Created: ${B(l,"created")}
182
- `);let g=Q(l.description);if(g!==""&&process.stdout.write(`
183
- ${g}
175
+ `)}})}),t.command("create").description("Create a project").option("--name <name>","project name").option("--key <key>","project key").option("--description <description>","project description").action(async(s,a)=>{let{client:u}=await T("kanban");(!s.name||!s.key)&&g("--name and --key are required");let c={name:s.name,key:s.key};L(a,"description")&&(c.description=s.description??"");let l=await k("Creating project...",()=>u.collection("projects").create(c));v({json:()=>l,human:()=>{B(["ID","KEY","NAME"],[[l.id,l.key,l.name]]),I("Project created: %s (%s)",l.key,l.name)}})}),t.command("update").description("Update a project").argument("<id>","project ID").option("--name <name>","project name").option("--description <description>","project description").option("--archive","archive project").option("--unarchive","unarchive project").action(async(s,a,u)=>{let{client:c}=await T("kanban");a.archive&&a.unarchive&&g("--archive and --unarchive cannot be used together");let l={};L(u,"name")&&(l.name=a.name??""),L(u,"description")&&(l.description=a.description??""),a.archive&&(l.is_archived=!0),a.unarchive&&(l.is_archived=!1),Object.keys(l).length===0&&g("no fields to update");let d=await k("Updating project...",()=>c.collection("projects").update(s,l));v({json:()=>d,human:()=>I("Project updated")})});let n=new O("issues").description("Manage kanban issues");n.command("list").description("List issues").option("--project <key>","filter by project key").option("--status <id>","filter by status ID").option("--priority <id>","filter by priority ID").option("--type <id>","filter by type ID").option("--assignee <id>","filter by assignee ID").option("--parent <id>","filter by parent issue ID").option("--search <query>","search term").option("--page <number>","page number",s=>Number.parseInt(s,10)).option("--per-page <number>","items per page",s=>Number.parseInt(s,10)).action(async(s,a)=>{let u=await H("kanban"),c={},l=await qn(a,s);l&&(c.projectId=l.id),L(a,"status")&&(c.statusId=s.status??""),L(a,"priority")&&(c.priorityId=s.priority??""),L(a,"type")&&(c.typeId=s.type??""),L(a,"assignee")&&(c.assigneeId=s.assignee??""),L(a,"parent")&&(c.parentId=s.parent??""),L(a,"search")&&(c.search=s.search??""),L(a,"page")&&(c.page=s.page??0),L(a,"per-page")&&(c.perPage=s.perPage??0);let d=await k("Fetching issues...",()=>u.query("issues.list",c));v({json:()=>d,human:()=>{let p=Ue(d),m=Array.isArray(p?.items)?p.items:[];B(["KEY","TITLE","STATUS","TYPE","ASSIGNEE","CREATED"],Fw(m))}})}),n.command("get").description("Get issue by key").argument("<key>","issue key").option("--format <format>","description format: json (Block[]), editing ([{id,html}]), text (plain)").option("--no-comments","omit comments").action(async(s,a)=>{let{client:u}=await T("kanban"),c=await H("kanban"),{issue:l,commentItems:d}=await k("Fetching issue...",async()=>{let p=await Xt(u,s),m=a.format??(Ae()?"json":"text"),D=await c.query("issues.get",{id:p,format:m}),x=[];return a.comments&&(x=(await u.collection("comments").getList(1,200,{filter:`issue='${p}'`,sort:"created"})).items),{issue:Ue(D)??{},commentItems:x}});v({json:()=>({...l,...a.comments?{comments:d}:{}}),human:()=>{process.stdout.write(`Key: ${Z(l,"key")}
176
+ `),process.stdout.write(`Title: ${Z(l,"title")}
177
+ `),process.stdout.write(`Status: ${Z(l,"status_id")}
178
+ `),process.stdout.write(`Type: ${Z(l,"type_id")}
179
+ `);let p=Z(l,"priority_id");p!==""&&process.stdout.write(`Priority: ${p}
180
+ `);let m=Z(l,"assignee_id");m!==""&&process.stdout.write(`Assignee: ${m}
181
+ `),process.stdout.write(`Created: ${Z(l,"created")}
182
+ `);let D=W(l.description);if(D!==""&&process.stdout.write(`
183
+ ${D}
184
184
  `),d.length>0){process.stdout.write(`
185
185
  Comments (${d.length}):
186
- `);for(let x of d){let S=B(x,"author_id"),N=Q(x.content),H=B(x,"created");process.stdout.write(` [${H}] ${S}: ${N}
187
- `)}}}})}),n.command("create").description("Create an issue").option("--project <key>","project key").option("--title <title>","issue title").option("--type-id <id>","issue type ID").option("--status-id <id>","issue status ID").option("--description <text>","issue description (use @file or - for stdin)").option("--priority <id>","priority ID").option("--assignee <id>","assignee user ID").option("--parent <id>","parent issue ID").option("--due-date <iso>","due date in ISO 8601").option("--estimate <points>","story points estimate",a=>Number.parseInt(a,10)).action(async(a,s)=>{let u=await K("kanban"),c=await On(s,a);c||y("no project set (use --project <key> or `zenku kanban use <key>`)"),a.title||y("--title is required"),(!a.typeId||!a.statusId)&&y("--type-id and --status-id are required");let l={project:c.id,title:a.title,type_id:a.typeId,status_id:a.statusId};R(s,"description")&&(l.description=Ce(a.description??"")),R(s,"priority")&&(l.priority_id=a.priority??""),R(s,"assignee")&&(l.assignee_id=a.assignee??""),R(s,"parent")&&(l.parent=a.parent??""),R(s,"due-date")&&(l.due_date=a.dueDate??""),R(s,"estimate")&&(l.estimate_points=a.estimate??0);let d=await k("Creating issue...",()=>u.mutate("issues.create",l));v({json:()=>d,human:()=>{let p=Ae(d)??{};I("Issue created: %s (%s)",B(p,"key"),B(p,"title"))}})}),n.command("update").description("Update an issue").argument("<key>","issue key").option("--status <id>","new status ID").option("--title <title>","new title").option("--description <text>","new description (use @file or - for stdin)").option("--type <id>","new type ID").option("--priority <id>","new priority ID").option("--assignee <id>","new assignee user ID").option("--parent <id>","new parent issue ID").option("--due-date <iso>","new due date in ISO 8601").option("--estimate <points>","new story points estimate",a=>Number.parseInt(a,10)).action(async(a,s,u)=>{let{client:c}=await P("kanban"),l=await K("kanban"),p={id:await Mt(c,a)};R(u,"status")&&(p.status_id=s.status??""),R(u,"title")&&(p.title=s.title??""),R(u,"description")&&(p.description=Ce(s.description??"")),R(u,"type")&&(p.type_id=s.type??""),R(u,"priority")&&(p.priority_id=s.priority??""),R(u,"assignee")&&(p.assignee_id=s.assignee??""),R(u,"parent")&&(p.parent=s.parent??""),R(u,"due-date")&&(p.due_date=s.dueDate??""),R(u,"estimate")&&(p.estimate_points=s.estimate??0),Object.keys(p).length===1&&y("no fields to update");let f=await k("Updating issue...",()=>l.mutate("issues.update",p));v({json:()=>f,human:()=>I("Issue updated")})}),n.command("ready").description("List ready issues").option("--project <key>","project key").option("--priority <id>","priority ID").option("--type <id>","type ID").option("--assignee <id>","assignee ID").option("--page <number>","page number",a=>Number.parseInt(a,10)).option("--per-page <number>","items per page",a=>Number.parseInt(a,10)).action(async(a,s)=>{let u=await K("kanban"),c={},l=await On(s,a);l&&(c.projectId=l.id),a.priority&&(c.priorityId=a.priority),a.type&&(c.typeId=a.type),a.assignee&&(c.assigneeId=a.assignee),R(s,"page")&&(c.page=a.page??0),R(s,"per-page")&&(c.perPage=a.perPage??0);let d=await k("Fetching ready issues...",()=>u.query("issues.listReady",c));v({json:()=>d,human:()=>{let p=Ae(d),f=Array.isArray(p?.items)?p.items:[],g=[];for(let x of f){let S=Ae(x);if(!S)continue;let N=zn(S,"status");N===""&&(N=B(S,"status_name")),N===""&&(N=Pn(S,"status_id"));let H=zn(S,"priority");H===""&&(H=B(S,"priority_name")),H===""&&(H=Pn(S,"priority_id"));let O=zn(S,"type");O===""&&(O=B(S,"type_name")),O===""&&(O=Pn(S,"type_id"));let W=aD(S,"assignee");W===""&&(W=B(S,"assignee_name")),W===""&&(W=sD(S,"assignee_id")),g.push([B(S,"key"),B(S,"title"),N,H,O,W])}L(["KEY","TITLE","STATUS","PRIORITY","TYPE","ASSIGNEE"],g)}})});let i=new z("links").description("Manage issue links");i.command("add").description("Create an issue link").option("--issue <key>","source issue key").option("--target <key>","target issue key").option("--type <type>","link type").action(async a=>{let{client:s}=await P("kanban");(!a.issue||!a.target||!a.type)&&y("--issue, --target, and --type are required"),new Set(["blocks","blocked_by","relates_to","duplicates","duplicated_by"]).has(a.type)||y('invalid --type "%s"',a.type);let c=await Mt(s,a.issue),l=await Mt(s,a.target),d=await k("Creating link...",()=>s.collection("issue_links").create({source_issue:c,target_issue:l,link_type:a.type}));v({json:()=>d,human:()=>I("Link created")})}),i.command("remove").description("Remove an issue link").argument("<id>","link ID").action(async a=>{let{client:s}=await P("kanban");await k("Removing link...",()=>s.collection("issue_links").delete(a)),v({json:()=>({id:a,removed:!0}),human:()=>I("Link removed")})}),n.addCommand(i);let r=new z("labels").description("Manage kanban labels");r.command("list").description("List labels").option("--project <key>","project key").action(async(a,s)=>{let{client:u}=await P("kanban"),c=await On(s,a,u);c||y("no project set (use --project <key> or `zenku kanban use <key>`)");let l=await k("Fetching labels...",()=>u.collection("labels").getList(1,200,{filter:`project='${c.id}'`,sort:"name"}));v({json:()=>l.items,human:()=>{let d=l.items.map(p=>[p.id,p.name,p.color]);L(["ID","NAME","COLOR"],d)}})}),r.command("add").description("Add a label to an issue (auto-creates the label if needed)").option("--issue <key>","issue key").option("--name <name>","label name").option("--project <key>","project key").option("--color <color>","label color (default: #6b7280)").action(async(a,s)=>{let{client:u}=await P("kanban");(!a.issue||!a.name)&&y("--issue and --name are required");let c=await On(s,a,u);c||y("no project set (use --project <key> or `zenku kanban use <key>`)");let l=await Mt(u,a.issue),{junction:d,created:p}=await k("Adding label...",async()=>{let f="",g=!1,x=await u.collection("labels").getList(1,1,{filter:`project='${c.id}' && name='${a.name}'`});return x.items.length>0?f=x.items[0].id:(f=(await u.collection("labels").create({project:c.id,name:a.name,color:a.color??"#6b7280"})).id,g=!0),{junction:await u.collection("issue_labels").create({issue:l,label:f}),created:g}});v({json:()=>({...d,label_created:p}),human:()=>I("Label added: %s%s",a.name,p?" (created)":"")})}),r.command("update").description("Update a label").argument("<id>","label ID").option("--name <name>","label name").option("--color <color>","label color").option("--description <description>","label description").action(async(a,s,u)=>{let{client:c}=await P("kanban"),l={};R(u,"name")&&(l.name=s.name??""),R(u,"color")&&(l.color=s.color??""),R(u,"description")&&(l.description=s.description??""),Object.keys(l).length===0&&y("no fields to update");let d=await k("Updating label...",()=>c.collection("labels").update(a,l));v({json:()=>d,human:()=>I("Label updated")})}),r.command("remove").description("Remove labels from an issue").option("--issue <key>","issue key").option("--label <id>","label ID (repeatable)",ox,[]).action(async a=>{let{client:s}=await P("kanban");(!a.issue||a.label.length===0)&&y("--issue and --label are required");let u=await Mt(s,a.issue),c=await k("Removing labels...",async()=>{let l=0;for(let d of a.label){let p=await s.collection("issue_labels").getList(1,1,{filter:`issue='${u}' && label='${d}'`});p.items.length===0&&y('issue label not found for issue "%s" and label "%s"',a.issue,d),await s.collection("issue_labels").delete(p.items[0].id),l+=1}return l});v({json:()=>({removed:c}),human:()=>I("Removed %d label(s)",c)})});let o=new z("comments").description("Manage issue comments");return o.command("create").description("Create a comment on an issue").option("--issue <key>","issue key").option("--content <text>","comment content (use @file or - for stdin)").option("--internal","mark as internal comment").action(async(a,s)=>{let{client:u}=await P("kanban"),c=await K("kanban");(!a.issue||!a.content)&&y("--issue and --content are required");let d={issue:await Mt(u,a.issue),content:Ce(a.content)};R(s,"internal")&&(d.is_internal=!!a.internal);let p=await k("Creating comment...",()=>c.mutate("comments.create",d));v({json:()=>p,human:()=>I("Comment created")})}),o.command("get").description("Get a comment by ID").argument("<id>","comment ID").option("--format <format>","content format: json (Block[]), editing ([{id,html}]), text (plain)").action(async(a,s)=>{let u=await K("kanban"),c=s.format??(Pe()?"json":"text"),l=await k("Fetching comment...",()=>u.query("comments.get",{id:a,format:c}));v({json:()=>l,human:()=>{let d=Ae(l)??{};process.stdout.write(`ID: ${B(d,"id")}
188
- `),process.stdout.write(`Author: ${B(d,"author_id")}
189
- `),process.stdout.write(`Created: ${B(d,"created")}
190
- `);let p=Q(d.content);p!==""&&process.stdout.write(`
186
+ `);for(let x of d){let F=Z(x,"author_id"),R=W(x.content),Y=Z(x,"created");process.stdout.write(` [${Y}] ${F}: ${R}
187
+ `)}}}})}),n.command("create").description("Create an issue").option("--project <key>","project key").option("--title <title>","issue title").option("--type-id <id>","issue type ID").option("--status-id <id>","issue status ID").option("--description <text>","issue description (use @file or - for stdin)").option("--priority <id>","priority ID").option("--assignee <id>","assignee user ID").option("--parent <id>","parent issue ID").option("--due-date <iso>","due date in ISO 8601").option("--estimate <points>","story points estimate",s=>Number.parseInt(s,10)).action(async(s,a)=>{let u=await H("kanban"),c=await qn(a,s);c||g("no project set (use --project <key> or `zenku kanban use <key>`)"),s.title||g("--title is required"),(!s.typeId||!s.statusId)&&g("--type-id and --status-id are required");let l={project:c.id,title:s.title,type_id:s.typeId,status_id:s.statusId};L(a,"description")&&(l.description=Ce(s.description??"")),L(a,"priority")&&(l.priority_id=s.priority??""),L(a,"assignee")&&(l.assignee_id=s.assignee??""),L(a,"parent")&&(l.parent=s.parent??""),L(a,"due-date")&&(l.due_date=s.dueDate??""),L(a,"estimate")&&(l.estimate_points=s.estimate??0);let d=await k("Creating issue...",()=>u.mutate("issues.create",l));v({json:()=>d,human:()=>{let p=Ue(d)??{};I("Issue created: %s (%s)",Z(p,"key"),Z(p,"title"))}})}),n.command("update").description("Update an issue").argument("<key>","issue key").option("--status <id>","new status ID").option("--title <title>","new title").option("--description <text>","new description (use @file or - for stdin)").option("--type <id>","new type ID").option("--priority <id>","new priority ID").option("--assignee <id>","new assignee user ID").option("--parent <id>","new parent issue ID").option("--due-date <iso>","new due date in ISO 8601").option("--estimate <points>","new story points estimate",s=>Number.parseInt(s,10)).action(async(s,a,u)=>{let{client:c}=await T("kanban"),l=await H("kanban"),p={id:await Xt(c,s)};L(u,"status")&&(p.status_id=a.status??""),L(u,"title")&&(p.title=a.title??""),L(u,"description")&&(p.description=Ce(a.description??"")),L(u,"type")&&(p.type_id=a.type??""),L(u,"priority")&&(p.priority_id=a.priority??""),L(u,"assignee")&&(p.assignee_id=a.assignee??""),L(u,"parent")&&(p.parent=a.parent??""),L(u,"due-date")&&(p.due_date=a.dueDate??""),L(u,"estimate")&&(p.estimate_points=a.estimate??0),Object.keys(p).length===1&&g("no fields to update");let m=await k("Updating issue...",()=>l.mutate("issues.update",p));v({json:()=>m,human:()=>I("Issue updated")})}),n.command("ready").description("List ready issues").option("--project <key>","project key").option("--priority <id>","priority ID").option("--type <id>","type ID").option("--assignee <id>","assignee ID").option("--page <number>","page number",s=>Number.parseInt(s,10)).option("--per-page <number>","items per page",s=>Number.parseInt(s,10)).action(async(s,a)=>{let u=await H("kanban"),c={},l=await qn(a,s);l&&(c.projectId=l.id),s.priority&&(c.priorityId=s.priority),s.type&&(c.typeId=s.type),s.assignee&&(c.assigneeId=s.assignee),L(a,"page")&&(c.page=s.page??0),L(a,"per-page")&&(c.perPage=s.perPage??0);let d=await k("Fetching ready issues...",()=>u.query("issues.listReady",c));v({json:()=>d,human:()=>{let p=Ue(d),m=Array.isArray(p?.items)?p.items:[],D=[];for(let x of m){let F=Ue(x);if(!F)continue;let R=Vn(F,"status");R===""&&(R=Z(F,"status_name")),R===""&&(R=Wn(F,"status_id"));let Y=Vn(F,"priority");Y===""&&(Y=Z(F,"priority_name")),Y===""&&(Y=Wn(F,"priority_id"));let P=Vn(F,"type");P===""&&(P=Z(F,"type_name")),P===""&&(P=Wn(F,"type_id"));let G=VD(F,"assignee");G===""&&(G=Z(F,"assignee_name")),G===""&&(G=WD(F,"assignee_id")),D.push([Z(F,"key"),Z(F,"title"),R,Y,P,G])}B(["KEY","TITLE","STATUS","PRIORITY","TYPE","ASSIGNEE"],D)}})});let i=new O("links").description("Manage issue links");i.command("add").description("Create an issue link").option("--issue <key>","source issue key").option("--target <key>","target issue key").option("--type <type>","link type").action(async s=>{let{client:a}=await T("kanban");(!s.issue||!s.target||!s.type)&&g("--issue, --target, and --type are required"),new Set(["blocks","blocked_by","relates_to","duplicates","duplicated_by"]).has(s.type)||g('invalid --type "%s"',s.type);let c=await Xt(a,s.issue),l=await Xt(a,s.target),d=await k("Creating link...",()=>a.collection("issue_links").create({source_issue:c,target_issue:l,link_type:s.type}));v({json:()=>d,human:()=>I("Link created")})}),i.command("remove").description("Remove an issue link").argument("<id>","link ID").action(async s=>{let{client:a}=await T("kanban");await k("Removing link...",()=>a.collection("issue_links").delete(s)),v({json:()=>({id:s,removed:!0}),human:()=>I("Link removed")})}),n.addCommand(i);let r=new O("labels").description("Manage kanban labels");r.command("list").description("List labels").option("--project <key>","project key").action(async(s,a)=>{let{client:u}=await T("kanban"),c=await qn(a,s,u);c||g("no project set (use --project <key> or `zenku kanban use <key>`)");let l=await k("Fetching labels...",()=>u.collection("labels").getList(1,200,{filter:`project='${c.id}'`,sort:"name"}));v({json:()=>l.items,human:()=>{let d=l.items.map(p=>[p.id,p.name,p.color]);B(["ID","NAME","COLOR"],d)}})}),r.command("add").description("Add a label to an issue (auto-creates the label if needed)").option("--issue <key>","issue key").option("--name <name>","label name").option("--project <key>","project key").option("--color <color>","label color (default: #6b7280)").action(async(s,a)=>{let{client:u}=await T("kanban");(!s.issue||!s.name)&&g("--issue and --name are required");let c=await qn(a,s,u);c||g("no project set (use --project <key> or `zenku kanban use <key>`)");let l=await Xt(u,s.issue),{junction:d,created:p}=await k("Adding label...",async()=>{let m="",D=!1,x=await u.collection("labels").getList(1,1,{filter:`project='${c.id}' && name='${s.name}'`});return x.items.length>0?m=x.items[0].id:(m=(await u.collection("labels").create({project:c.id,name:s.name,color:s.color??"#6b7280"})).id,D=!0),{junction:await u.collection("issue_labels").create({issue:l,label:m}),created:D}});v({json:()=>({...d,label_created:p}),human:()=>I("Label added: %s%s",s.name,p?" (created)":"")})}),r.command("update").description("Update a label").argument("<id>","label ID").option("--name <name>","label name").option("--color <color>","label color").option("--description <description>","label description").action(async(s,a,u)=>{let{client:c}=await T("kanban"),l={};L(u,"name")&&(l.name=a.name??""),L(u,"color")&&(l.color=a.color??""),L(u,"description")&&(l.description=a.description??""),Object.keys(l).length===0&&g("no fields to update");let d=await k("Updating label...",()=>c.collection("labels").update(s,l));v({json:()=>d,human:()=>I("Label updated")})}),r.command("remove").description("Remove labels from an issue").option("--issue <key>","issue key").option("--label <id>","label ID (repeatable)",Ew,[]).action(async s=>{let{client:a}=await T("kanban");(!s.issue||s.label.length===0)&&g("--issue and --label are required");let u=await Xt(a,s.issue),c=await k("Removing labels...",async()=>{let l=0;for(let d of s.label){let p=await a.collection("issue_labels").getList(1,1,{filter:`issue='${u}' && label='${d}'`});p.items.length===0&&g('issue label not found for issue "%s" and label "%s"',s.issue,d),await a.collection("issue_labels").delete(p.items[0].id),l+=1}return l});v({json:()=>({removed:c}),human:()=>I("Removed %d label(s)",c)})});let o=new O("comments").description("Manage issue comments");return o.command("create").description("Create a comment on an issue").option("--issue <key>","issue key").option("--content <text>","comment content (use @file or - for stdin)").option("--internal","mark as internal comment").action(async(s,a)=>{let{client:u}=await T("kanban"),c=await H("kanban");(!s.issue||!s.content)&&g("--issue and --content are required");let d={issue:await Xt(u,s.issue),content:Ce(s.content)};L(a,"internal")&&(d.is_internal=!!s.internal);let p=await k("Creating comment...",()=>c.mutate("comments.create",d));v({json:()=>p,human:()=>I("Comment created")})}),o.command("get").description("Get a comment by ID").argument("<id>","comment ID").option("--format <format>","content format: json (Block[]), editing ([{id,html}]), text (plain)").action(async(s,a)=>{let u=await H("kanban"),c=a.format??(Ae()?"json":"text"),l=await k("Fetching comment...",()=>u.query("comments.get",{id:s,format:c}));v({json:()=>l,human:()=>{let d=Ue(l)??{};process.stdout.write(`ID: ${Z(d,"id")}
188
+ `),process.stdout.write(`Author: ${Z(d,"author_id")}
189
+ `),process.stdout.write(`Created: ${Z(d,"created")}
190
+ `);let p=W(d.content);p!==""&&process.stdout.write(`
191
191
  ${p}
192
- `)}})}),o.command("update").description("Update a comment").argument("<id>","comment ID").option("--content <text>","comment content (use @file or - for stdin)").action(async(a,s)=>{let u=await K("kanban");s.content||y("--content is required");let c=await k("Updating comment...",()=>u.mutate("comments.update",{id:a,content:Ce(s.content)}));v({json:()=>c,human:()=>I("Comment updated")})}),e.addCommand(t),e.addCommand(n),e.addCommand(r),e.addCommand(o),e.command("use").description("Set or show the default kanban project").argument("[project-key]","project key to set as default").option("--clear","remove the stored default project").action(async(a,s)=>{let u=oe(ue()),{cfg:c,profile:l}=se(u);if(s?.clear){l.kanbanProject="",be(c,u,l),v({json:()=>({project:null}),human:()=>I("Default project cleared.")});return}if(!a){v({json:()=>({project:l.kanbanProject||null}),human:()=>{l.kanbanProject?E('Default project: "%s"',l.kanbanProject):E("No default project set.")}});return}let{client:d}=await P("kanban");(await d.collection("projects").getList(1,1,{filter:`key='${a}'`})).items.length===0&&y('project "%s" not found',a),l.kanbanProject=a,be(c,u,l),v({json:()=>({project:a}),human:()=>I('Default project set to "%s"',a)})}),zr(e),e}function uD(e){e.addCommand(sx())}var ux="\x1B[2m",cx="\x1B[33m",lx="\x1B[31m",Yp="\x1B[0m";function Ie(e){return`${ux}${e}${Yp}`}function dx(e){return`${cx}${e}${Yp}`}function aa(e){return`${lx}${e}${Yp}`}function px(e){switch(e.type){case"message":{let t=e.message;if(t.role==="assistant"&&t.content)process.stdout.write(t.content);else if(t.role==="assistant"&&t.tool_calls?.length)for(let n of t.tool_calls)process.stderr.write(Ie(`[tool] ${n.name}(${pt(n.arguments,60)})`)+`
193
- `);else if(t.role==="tool"){let n=typeof t.tool_result=="string"?t.tool_result:JSON.stringify(t.tool_result??"");process.stderr.write(Ie(`[result] ${t.tool_name??"?"} \u2192 ${pt(n,80)}`)+`
192
+ `)}})}),o.command("update").description("Update a comment").argument("<id>","comment ID").option("--content <text>","comment content (use @file or - for stdin)").action(async(s,a)=>{let u=await H("kanban");a.content||g("--content is required");let c=await k("Updating comment...",()=>u.mutate("comments.update",{id:s,content:Ce(a.content)}));v({json:()=>c,human:()=>I("Comment updated")})}),e.addCommand(t),e.addCommand(n),e.addCommand(r),e.addCommand(o),e.command("use").description("Set or show the default kanban project").argument("[project-key]","project key to set as default").option("--clear","remove the stored default project").action(async(s,a)=>{let u=ie(ue()),{cfg:c,profile:l}=se(u);if(a?.clear){l.kanbanProject="",$e(c,u,l),v({json:()=>({project:null}),human:()=>I("Default project cleared.")});return}if(!s){v({json:()=>({project:l.kanbanProject||null}),human:()=>{l.kanbanProject?E('Default project: "%s"',l.kanbanProject):E("No default project set.")}});return}let{client:d}=await T("kanban");(await d.collection("projects").getList(1,1,{filter:`key='${s}'`})).items.length===0&&g('project "%s" not found',s),l.kanbanProject=s,$e(c,u,l),v({json:()=>({project:s}),human:()=>I('Default project set to "%s"',s)})}),Zr(e),e}function GD(e){e.addCommand(Ow())}var zw="\x1B[2m",Pw="\x1B[33m",Aw="\x1B[31m",bm="\x1B[0m";function Ie(e){return`${zw}${e}${bm}`}function Tw(e){return`${Pw}${e}${bm}`}function xs(e){return`${Aw}${e}${bm}`}function jw(e){switch(e.type){case"message":{let t=e.message;if(t.role==="assistant"&&t.content)process.stdout.write(t.content);else if(t.role==="assistant"&&t.tool_calls?.length)for(let n of t.tool_calls)process.stderr.write(Ie(`[tool] ${n.name}(${ht(n.arguments,60)})`)+`
193
+ `);else if(t.role==="tool"){let n=typeof t.tool_result=="string"?t.tool_result:JSON.stringify(t.tool_result??"");process.stderr.write(Ie(`[result] ${t.tool_name??"?"} \u2192 ${ht(n,80)}`)+`
194
194
  `)}break}case"agent:start":process.stderr.write(Ie("[agent] started")+`
195
195
  `);break;case"agent:exit":process.stderr.write(Ie(`[agent] exited (code=${e.exitCode})`)+`
196
196
  `);break;case"agent:metadata":{let t=[];e.cost!==void 0&&t.push(`cost=$${e.cost.toFixed(4)}`),e.durationMs!==void 0&&t.push(`duration=${(e.durationMs/1e3).toFixed(1)}s`),e.numTurns!==void 0&&t.push(`turns=${e.numTurns}`),t.length>0&&process.stderr.write(Ie(t.join(" "))+`
197
- `);break}case"interaction:approval_requested":process.stderr.write(dx(`[approval] ${e.approval.type}: ${e.approval.summary}`)+`
197
+ `);break}case"interaction:approval_requested":process.stderr.write(Tw(`[approval] ${e.approval.type}: ${e.approval.summary}`)+`
198
198
  `);break;case"interaction:approval_resolved":process.stderr.write(Ie(`[resolved] ${e.decision}`)+`
199
- `);break;case"interaction:a2ui_update":{let{display:t}=cD(e.message);t&&process.stderr.write(t+`
199
+ `);break;case"interaction:a2ui_update":{let{display:t}=JD(e.message);t&&process.stderr.write(t+`
200
200
  `);break}case"session:status":process.stderr.write(Ie(`[session] ${e.status}`)+`
201
- `);break;case"error":process.stderr.write(aa(`[error] ${e.message}`)+`
202
- `);break;case"keepalive":case"interaction:client_event":break}}function mx(e){process.stdout.write(JSON.stringify(e)+`
203
- `)}async function sa(e,t,n,i){let r=e.subscribe(t,n,i),o={buffer:[],consumerWaiting:null,producerDone:!1},a,s=new Promise(l=>{a=l}),u=!0;(async()=>{try{for await(let l of r){if(i?.aborted)break;u&&(u=!1,a()),o.buffer.push(l),o.consumerWaiting?.(),o.consumerWaiting=null}}catch{}finally{o.producerDone=!0,a(),o.consumerWaiting?.(),o.consumerWaiting=null}})(),await s;async function*c(){for(;;){if(i?.aborted)return;for(;o.buffer.length>0;)yield o.buffer.shift();if(o.producerDone)return;await new Promise(l=>{o.consumerWaiting=l})}}return c()}async function ua(e,t,n,i){for await(let r of e)if(n?.aborted||(r.type==="message"&&r.message.id&&(t.lastEventId=r.message.id),r.type==="interaction:approval_requested"&&(t.lastApproval=r.approval),r.type==="interaction:a2ui_update"&&(t.lastA2UI={message:r.message,callbackToken:r.callbackToken}),Pe()?mx(r):px(r),i?.breakOnExit&&r.type==="agent:exit"))break}async function fx(e,t){if(t.type==="input-required"){let i=await we(t.summary,{flagHint:"--input"});return i===null?!1:(await e.resolve(t.callbackToken,{decision:"submit",userInput:i}),!0)}let n=await Cp(t.summary,{flagHint:"--decision approve|deny"});return n===null?!1:(await e.resolve(t.callbackToken,{decision:n?"approve":"deny"}),!0)}async function hx(e,t){let{prompts:n}=cD(t.message);if(n.length===0)return!1;let i={};for(let r of n)if(r.type==="select"){let o=await Lt(r.label,r.options.map(a=>({value:a.value,label:a.label})));if(o===null)return!1;i[r.id]=o}else if(r.type==="text"){let o=await we(r.label);if(o===null)return!1;i[r.id]=o}else if(r.type==="confirm"){let o=await Cp(r.label);if(o===null)return!1;i[r.id]=o}else if(r.type==="number"){let o=await we(`${r.label} (${r.min??0}\u2013${r.max??100})`);if(o===null)return!1;i[r.id]=Number(o)}return await e.resolve(t.callbackToken,{userInput:JSON.stringify(i)}),!0}async function oa(e,t,n,i,r){let o=t;for(;!i?.aborted;){let a={};if(await ua(o,a,i,{breakOnExit:r?.breakOnExit}),i?.aborted||!a.lastApproval&&!a.lastA2UI||!pe()||!n)break;let s=!1;if(a.lastApproval?s=await fx(e,a.lastApproval):a.lastA2UI&&(s=await hx(e,a.lastA2UI)),!s)break;o=await sa(e,n,a.lastEventId?{lastEventId:a.lastEventId}:void 0,i)}}function Pr(e){return e?e.literalString??e.path??"":""}function Kp(e){let t=Object.keys(e.component);if(t.length===0)return null;let n=t[0],i=e.component[n];return{type:n,props:i}}function cD(e){let t=[],n=[];if(!e.surfaceUpdate)return{display:"",prompts:n};let{components:i}=e.surfaceUpdate,r=new Map;for(let s of i)r.set(s.id,s);function o(s){let u=Kp(s);if(!u)return;let{type:c,props:l}=u;switch(c){case"Text":{let d=Pr(l.text),p=l.usageHint;p==="h1"||p==="h2"?t.push(`\x1B[1m${d}\x1B[0m`):p==="caption"?t.push(Ie(d)):t.push(d);break}case"Image":{let d=Pr(l.url);t.push(Ie(`[image] ${d}`));break}case"Divider":t.push("---");break;case"Button":{let d=l.child,p=l.action,f=p?.name??"button";if(d){let g=r.get(d);if(g){let x=Kp(g);x?.type==="Text"&&(f=Pr(x.props.text))}}n.push({id:s.id,type:"select",label:"Action",options:[{value:p?.name??s.id,label:f}]});break}case"TextField":{let d=Pr(l.label);n.push({id:s.id,type:"text",label:d||"Input",options:[]});break}case"CheckBox":{let d=Pr(l.label);n.push({id:s.id,type:"confirm",label:d||"Confirm",options:[]});break}case"MultipleChoice":{let d=l.options?.map(p=>({value:p.value,label:Pr(p.label)}))??[];n.push({id:s.id,type:"select",label:"Choose",options:d});break}case"Slider":{let d=l.minValue,p=l.maxValue;n.push({id:s.id,type:"number",label:"Value",options:[],min:d,max:p});break}case"Row":case"Column":case"List":{let d=l.children;if(d?.explicitList)for(let p of d.explicitList){let f=r.get(p);f&&o(f)}break}case"Card":{let d=l.child;if(d){let p=r.get(d);p&&o(p)}break}default:break}}let a=new Set;for(let s of i){let u=Kp(s);if(!u)continue;let{props:c}=u;typeof c.child=="string"&&a.add(c.child);let l=c.children;if(l?.explicitList)for(let d of l.explicitList)a.add(d)}for(let s of i)a.has(s.id)||o(s);return{display:t.join(`
204
- `),prompts:n}}function Hp(){let e=new AbortController,t=()=>{e.abort(),process.exit(130)};return process.on("SIGINT",t),{controller:e,cleanup:()=>process.removeListener("SIGINT",t)}}function gx(){let e=new z("agent").description("AI agent streaming, chat, and async execution");e.command("stream").description("Stream agent output (one-shot)").requiredOption("--prompt <text>","prompt text (use @file or - for stdin)").option("--agent <slug>","agent slug").option("--conversation <id>","conversation ID").action(async n=>{let{client:i}=await It(),r=Ce(n.prompt),{controller:o,cleanup:a}=Hp();try{let s=i.stream({prompt:r,agentSlug:n.agent,conversationId:n.conversation},o.signal);pe()&&!Pe()?await oa(i,s,n.conversation,o.signal):await ua(s,{},o.signal)}catch(s){if(s instanceof DOMException&&s.name==="AbortError")return;y("%s",M(s))}finally{o.abort(),a()}});let t=new z("chat").description("Multi-turn conversation with an agent");return t.option("--conversation <id>","reuse an existing conversation").option("--agent <slug>","agent slug").option("--prompt <text>","initial prompt (non-interactive mode)").action(async n=>{let{client:i}=await It(),{controller:r,cleanup:o}=Hp();try{let a=n.conversation??`cli-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,s=await i.createConversation(a,{agentSlug:n.agent});if(Pe()||process.stderr.write(Ie(`[chat] conversation: ${s.conversationId}${s.isNew?" (new)":""}`)+`
205
- `),!pe()&&!n.prompt&&y("--prompt is required in non-interactive mode"),!pe()&&n.prompt){let d=Ce(n.prompt),p=await sa(i,s.conversationId,void 0,r.signal);await i.sendMessage(s.conversationId,d),await ua(p,{},r.signal,{breakOnExit:!0});return}let c=(await import("node:readline")).createInterface({input:process.stdin,output:process.stderr,terminal:!0});if(n.prompt){let d=Ce(n.prompt);process.stderr.write(Ie(`> ${pt(d,80)}`)+`
206
- `);let p=await sa(i,s.conversationId,void 0,r.signal);await i.sendMessage(s.conversationId,d),await oa(i,p,s.conversationId,r.signal,{breakOnExit:!0}),process.stdout.write(`
207
- `)}let l=()=>new Promise(d=>{c.question("> ",p=>{d(p)}),c.once("close",()=>d(null))});for(;!r.signal.aborted;){let d=await l();if(d===null)break;let p=d.trim();if(p==="/quit"||p==="/exit"||p==="/q")break;if(!p)continue;let f=await sa(i,s.conversationId,void 0,r.signal);await i.sendMessage(s.conversationId,p),await oa(i,f,s.conversationId,r.signal,{breakOnExit:!0}),process.stdout.write(`
208
- `)}c.close()}catch(a){if(a instanceof DOMException&&a.name==="AbortError")return;y("%s",M(a))}finally{r.abort(),o()}}),t.command("info").description("Get conversation details").argument("<conversation-id>","conversation ID").action(async n=>{let{client:i}=await It();try{let r=await i.getConversation(n);v({json:()=>r,human:()=>{process.stdout.write(`Conversation: ${r.conversationId}
201
+ `);break;case"error":process.stderr.write(xs(`[error] ${e.message}`)+`
202
+ `);break;case"keepalive":case"interaction:client_event":break}}function Uw(e){process.stdout.write(JSON.stringify(e)+`
203
+ `)}async function ws(e,t,n,i){let r=e.subscribe(t,n,i),o={buffer:[],consumerWaiting:null,producerDone:!1},s,a=new Promise(l=>{s=l}),u=!0;(async()=>{try{for await(let l of r){if(i?.aborted)break;u&&(u=!1,s()),o.buffer.push(l),o.consumerWaiting?.(),o.consumerWaiting=null}}catch{}finally{o.producerDone=!0,s(),o.consumerWaiting?.(),o.consumerWaiting=null}})(),await a;async function*c(){for(;;){if(i?.aborted)return;for(;o.buffer.length>0;)yield o.buffer.shift();if(o.producerDone)return;await new Promise(l=>{o.consumerWaiting=l})}}return c()}async function ks(e,t,n,i){for await(let r of e)if(n?.aborted||(r.type==="message"&&r.message.id&&(t.lastEventId=r.message.id),r.type==="interaction:approval_requested"&&(t.lastApproval=r.approval),r.type==="interaction:a2ui_update"&&(t.lastA2UI={message:r.message,callbackToken:r.callbackToken}),Ae()?Uw(r):jw(r),i?.breakOnExit&&r.type==="agent:exit"))break}async function Nw(e,t){if(t.type==="input-required"){let i=await ke(t.summary,{flagHint:"--input"});return i===null?!1:(await e.resolve(t.callbackToken,{decision:"submit",userInput:i}),!0)}let n=await Kp(t.summary,{flagHint:"--decision approve|deny"});return n===null?!1:(await e.resolve(t.callbackToken,{decision:n?"approve":"deny"}),!0)}async function Rw(e,t){let{prompts:n}=JD(t.message);if(n.length===0)return!1;let i={};for(let r of n)if(r.type==="select"){let o=await Yt(r.label,r.options.map(s=>({value:s.value,label:s.label})));if(o===null)return!1;i[r.id]=o}else if(r.type==="text"){let o=await ke(r.label);if(o===null)return!1;i[r.id]=o}else if(r.type==="confirm"){let o=await Kp(r.label);if(o===null)return!1;i[r.id]=o}else if(r.type==="number"){let o=await ke(`${r.label} (${r.min??0}\u2013${r.max??100})`);if(o===null)return!1;i[r.id]=Number(o)}return await e.resolve(t.callbackToken,{userInput:JSON.stringify(i)}),!0}async function _s(e,t,n,i,r){let o=t;for(;!i?.aborted;){let s={};if(await ks(o,s,i,{breakOnExit:r?.breakOnExit}),i?.aborted||!s.lastApproval&&!s.lastA2UI||!me()||!n)break;let a=!1;if(s.lastApproval?a=await Nw(e,s.lastApproval):s.lastA2UI&&(a=await Rw(e,s.lastA2UI)),!a)break;o=await ws(e,n,s.lastEventId?{lastEventId:s.lastEventId}:void 0,i)}}function Mr(e){return e?e.literalString??e.path??"":""}function Dm(e){let t=Object.keys(e.component);if(t.length===0)return null;let n=t[0],i=e.component[n];return{type:n,props:i}}function JD(e){let t=[],n=[];if(!e.surfaceUpdate)return{display:"",prompts:n};let{components:i}=e.surfaceUpdate,r=new Map;for(let a of i)r.set(a.id,a);function o(a){let u=Dm(a);if(!u)return;let{type:c,props:l}=u;switch(c){case"Text":{let d=Mr(l.text),p=l.usageHint;p==="h1"||p==="h2"?t.push(`\x1B[1m${d}\x1B[0m`):p==="caption"?t.push(Ie(d)):t.push(d);break}case"Image":{let d=Mr(l.url);t.push(Ie(`[image] ${d}`));break}case"Divider":t.push("---");break;case"Button":{let d=l.child,p=l.action,m=p?.name??"button";if(d){let D=r.get(d);if(D){let x=Dm(D);x?.type==="Text"&&(m=Mr(x.props.text))}}n.push({id:a.id,type:"select",label:"Action",options:[{value:p?.name??a.id,label:m}]});break}case"TextField":{let d=Mr(l.label);n.push({id:a.id,type:"text",label:d||"Input",options:[]});break}case"CheckBox":{let d=Mr(l.label);n.push({id:a.id,type:"confirm",label:d||"Confirm",options:[]});break}case"MultipleChoice":{let d=l.options?.map(p=>({value:p.value,label:Mr(p.label)}))??[];n.push({id:a.id,type:"select",label:"Choose",options:d});break}case"Slider":{let d=l.minValue,p=l.maxValue;n.push({id:a.id,type:"number",label:"Value",options:[],min:d,max:p});break}case"Row":case"Column":case"List":{let d=l.children;if(d?.explicitList)for(let p of d.explicitList){let m=r.get(p);m&&o(m)}break}case"Card":{let d=l.child;if(d){let p=r.get(d);p&&o(p)}break}default:break}}let s=new Set;for(let a of i){let u=Dm(a);if(!u)continue;let{props:c}=u;typeof c.child=="string"&&s.add(c.child);let l=c.children;if(l?.explicitList)for(let d of l.explicitList)s.add(d)}for(let a of i)s.has(a.id)||o(a);return{display:t.join(`
204
+ `),prompts:n}}function ym(){let e=new AbortController,t=()=>{e.abort(),process.exit(130)};return process.on("SIGINT",t),{controller:e,cleanup:()=>process.removeListener("SIGINT",t)}}function Bw(){let e=new O("agent").description("AI agent streaming, chat, and async execution");e.command("stream").description("Stream agent output (one-shot)").requiredOption("--prompt <text>","prompt text (use @file or - for stdin)").option("--agent <slug>","agent slug").option("--conversation <id>","conversation ID").action(async n=>{let{client:i}=await zt(),r=Ce(n.prompt),{controller:o,cleanup:s}=ym();try{let a=i.stream({prompt:r,agentSlug:n.agent,conversationId:n.conversation},o.signal);me()&&!Ae()?await _s(i,a,n.conversation,o.signal):await ks(a,{},o.signal)}catch(a){if(a instanceof DOMException&&a.name==="AbortError")return;g("%s",A(a))}finally{o.abort(),s()}});let t=new O("chat").description("Multi-turn conversation with an agent");return t.option("--conversation <id>","reuse an existing conversation").option("--agent <slug>","agent slug").option("--prompt <text>","initial prompt (non-interactive mode)").action(async n=>{let{client:i}=await zt(),{controller:r,cleanup:o}=ym();try{let s=n.conversation??`cli-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,a=await i.createConversation(s,{agentSlug:n.agent});if(Ae()||process.stderr.write(Ie(`[chat] conversation: ${a.conversationId}${a.isNew?" (new)":""}`)+`
205
+ `),!me()&&!n.prompt&&g("--prompt is required in non-interactive mode"),!me()&&n.prompt){let d=Ce(n.prompt),p=await ws(i,a.conversationId,void 0,r.signal);await i.sendMessage(a.conversationId,d),await ks(p,{},r.signal,{breakOnExit:!0});return}let c=(await import("node:readline")).createInterface({input:process.stdin,output:process.stderr,terminal:!0});if(n.prompt){let d=Ce(n.prompt);process.stderr.write(Ie(`> ${ht(d,80)}`)+`
206
+ `);let p=await ws(i,a.conversationId,void 0,r.signal);await i.sendMessage(a.conversationId,d),await _s(i,p,a.conversationId,r.signal,{breakOnExit:!0}),process.stdout.write(`
207
+ `)}let l=()=>new Promise(d=>{c.question("> ",p=>{d(p)}),c.once("close",()=>d(null))});for(;!r.signal.aborted;){let d=await l();if(d===null)break;let p=d.trim();if(p==="/quit"||p==="/exit"||p==="/q")break;if(!p)continue;let m=await ws(i,a.conversationId,void 0,r.signal);await i.sendMessage(a.conversationId,p),await _s(i,m,a.conversationId,r.signal,{breakOnExit:!0}),process.stdout.write(`
208
+ `)}c.close()}catch(s){if(s instanceof DOMException&&s.name==="AbortError")return;g("%s",A(s))}finally{r.abort(),o()}}),t.command("info").description("Get conversation details").argument("<conversation-id>","conversation ID").action(async n=>{let{client:i}=await zt();try{let r=await i.getConversation(n);v({json:()=>r,human:()=>{process.stdout.write(`Conversation: ${r.conversationId}
209
209
  `),process.stdout.write(`Created: ${r.created}
210
- `)}})}catch(r){y("%s",M(r))}}),e.addCommand(t),e.command("run").description("Start async agent execution").requiredOption("--prompt <text>","prompt text (use @file or - for stdin)").option("--agent <slug>","agent slug").option("--conversation <id>","conversation ID").option("--follow","poll for completion").option("--poll-interval <seconds>","polling interval in seconds","5").action(async n=>{let{client:i}=await It(),r=Ce(n.prompt);try{let o=await i.async({prompt:r,agentSlug:n.agent,conversationId:n.conversation});if(!n.follow){v({json:()=>o,human:()=>{process.stdout.write(`Tracking key: ${o.trackingKey}
210
+ `)}})}catch(r){g("%s",A(r))}}),e.addCommand(t),e.command("run").description("Start async agent execution").requiredOption("--prompt <text>","prompt text (use @file or - for stdin)").option("--agent <slug>","agent slug").option("--conversation <id>","conversation ID").option("--follow","poll for completion").option("--poll-interval <seconds>","polling interval in seconds","5").action(async n=>{let{client:i}=await zt(),r=Ce(n.prompt);try{let o=await i.async({prompt:r,agentSlug:n.agent,conversationId:n.conversation});if(!n.follow){v({json:()=>o,human:()=>{process.stdout.write(`Tracking key: ${o.trackingKey}
211
211
  `),process.stdout.write(`Status: ${o.status}
212
212
  `),o.conversationId&&process.stdout.write(`Conversation: ${o.conversationId}
213
213
  `),o.statusUrl&&process.stdout.write(`Status URL: ${o.statusUrl}
214
- `)}});return}let a=Number(n.pollInterval)*1e3;Pe()||process.stderr.write(Ie(`[run] tracking: ${o.trackingKey} (polling every ${n.pollInterval}s)`)+`
215
- `);let s=o;for(;s.status!=="completed"&&s.status!=="failed";)await new Promise(u=>setTimeout(u,a)),s=await i.getStatus(o.trackingKey),Pe()||process.stderr.write(Ie(`[run] status: ${s.status}`)+`
216
- `);v({json:()=>s,human:()=>{process.stdout.write(`Status: ${s.status}
217
- `),s.result?.output&&process.stdout.write(s.result.output+`
218
- `),s.error&&process.stderr.write(aa(`Error: ${s.error}`)+`
219
- `)}})}catch(o){y("%s",M(o))}}),e.command("sync").description("Synchronous agent execution (blocks until complete)").requiredOption("--prompt <text>","prompt text (use @file or - for stdin)").option("--agent <slug>","agent slug").option("--conversation <id>","conversation ID").action(async n=>{let{client:i}=await It(),r=Ce(n.prompt);try{let o=await i.sync({prompt:r,agentSlug:n.agent,conversationId:n.conversation});v({json:()=>o,human:()=>{process.stdout.write(`Status: ${o.status}
214
+ `)}});return}let s=Number(n.pollInterval)*1e3;Ae()||process.stderr.write(Ie(`[run] tracking: ${o.trackingKey} (polling every ${n.pollInterval}s)`)+`
215
+ `);let a=o;for(;a.status!=="completed"&&a.status!=="failed";)await new Promise(u=>setTimeout(u,s)),a=await i.getStatus(o.trackingKey),Ae()||process.stderr.write(Ie(`[run] status: ${a.status}`)+`
216
+ `);v({json:()=>a,human:()=>{process.stdout.write(`Status: ${a.status}
217
+ `),a.result?.output&&process.stdout.write(a.result.output+`
218
+ `),a.error&&process.stderr.write(xs(`Error: ${a.error}`)+`
219
+ `)}})}catch(o){g("%s",A(o))}}),e.command("sync").description("Synchronous agent execution (blocks until complete)").requiredOption("--prompt <text>","prompt text (use @file or - for stdin)").option("--agent <slug>","agent slug").option("--conversation <id>","conversation ID").action(async n=>{let{client:i}=await zt(),r=Ce(n.prompt);try{let o=await i.sync({prompt:r,agentSlug:n.agent,conversationId:n.conversation});v({json:()=>o,human:()=>{process.stdout.write(`Status: ${o.status}
220
220
  `),o.result?.output&&process.stdout.write(o.result.output+`
221
- `),o.error&&process.stderr.write(aa(`Error: ${o.error}`)+`
222
- `)}})}catch(o){y("%s",M(o))}}),e.command("status").description("Check status of an async agent run").argument("<tracking-key>","tracking key from `agent run`").action(async n=>{let{client:i}=await It();try{let r=await i.getStatus(n);v({json:()=>r,human:()=>{process.stdout.write(`Tracking key: ${r.trackingKey}
221
+ `),o.error&&process.stderr.write(xs(`Error: ${o.error}`)+`
222
+ `)}})}catch(o){g("%s",A(o))}}),e.command("status").description("Check status of an async agent run").argument("<tracking-key>","tracking key from `agent run`").action(async n=>{let{client:i}=await zt();try{let r=await i.getStatus(n);v({json:()=>r,human:()=>{process.stdout.write(`Tracking key: ${r.trackingKey}
223
223
  `),process.stdout.write(`Status: ${r.status}
224
224
  `),r.conversationId&&process.stdout.write(`Conversation: ${r.conversationId}
225
225
  `),r.result?.output&&process.stdout.write(`
226
226
  ${r.result.output}
227
- `),r.error&&process.stderr.write(aa(`Error: ${r.error}`)+`
228
- `)}})}catch(r){y("%s",M(r))}}),e.command("resolve").description("Resolve a pending interaction (HITL approval, user input, or A2UI form)").argument("<callback-token>","callback token from the pending interaction").option("--decision <value>","decision: approve, deny, submit, or cancel").option("--input <text>","user input text or JSON for A2UI forms").option("--conversation <id>","conversation ID (subscribe to continuation after resolving)").action(async(n,i)=>{let{client:r}=await It(),{controller:o,cleanup:a}=Hp();try{let s=i.decision;s&&!["approve","deny","submit","cancel"].includes(s)&&y("invalid --decision: %s (expected approve, deny, submit, or cancel)",s);let u=await r.resolve(n,{decision:s,userInput:i.input});if(Pe()||process.stderr.write(Ie(`[resolved] ${u.decision}`)+`
229
- `),i.conversation){let c=r.subscribe(i.conversation,void 0,o.signal);pe()&&!Pe()?await oa(r,c,i.conversation,o.signal,{breakOnExit:!0}):await ua(c,{},o.signal,{breakOnExit:!0})}else v({json:()=>u,human:()=>{E("Resolved (use --conversation to stream continuation)")}})}catch(s){if(s instanceof DOMException&&s.name==="AbortError")return;y("%s",M(s))}finally{o.abort(),a()}}),zr(e,{pbService:"auth"}),e}function lD(e){e.addCommand(gx())}var kD=require("node:crypto"),X=require("node:fs"),CD=require("node:os"),me=require("node:path");var dD=require("module"),vx=(0,dD.createRequire)("/"),Dx;try{Dx=vx("worker_threads").Worker}catch{}var Te=Uint8Array,Ar=Uint16Array,yx=Int32Array,pD=new Te([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),mD=new Te([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),bx=new Te([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),fD=function(e,t){for(var n=new Ar(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];for(var r=new yx(n[30]),i=1;i<30;++i)for(var o=n[i];o<n[i+1];++o)r[o]=o-n[i]<<5|i;return{b:n,r}},hD=fD(pD,2),gD=hD.b,$x=hD.r;gD[28]=258,$x[258]=28;var vD=fD(mD,0),_x=vD.b,zE=vD.r,tm=new Ar(32768);for(q=0;q<32768;++q)mt=(q&43690)>>1|(q&21845)<<1,mt=(mt&52428)>>2|(mt&13107)<<2,mt=(mt&61680)>>4|(mt&3855)<<4,tm[q]=((mt&65280)>>8|(mt&255)<<8)>>1;var mt,q,An=(function(e,t,n){for(var i=e.length,r=0,o=new Ar(t);r<i;++r)e[r]&&++o[e[r]-1];var a=new Ar(t);for(r=1;r<t;++r)a[r]=a[r-1]+o[r-1]<<1;var s;if(n){s=new Ar(1<<t);var u=15-t;for(r=0;r<i;++r)if(e[r])for(var c=r<<4|e[r],l=t-e[r],d=a[e[r]-1]++<<l,p=d|(1<<l)-1;d<=p;++d)s[tm[d]>>u]=c}else for(s=new Ar(i),r=0;r<i;++r)e[r]&&(s[r]=tm[a[e[r]-1]++]>>15-e[r]);return s}),Tn=new Te(288);for(q=0;q<144;++q)Tn[q]=8;var q;for(q=144;q<256;++q)Tn[q]=9;var q;for(q=256;q<280;++q)Tn[q]=7;var q;for(q=280;q<288;++q)Tn[q]=8;var q,DD=new Te(32);for(q=0;q<32;++q)DD[q]=5;var q;var xx=An(Tn,9,1);var wx=An(DD,5,1),Xp=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},He=function(e,t,n){var i=t/8|0;return(e[i]|e[i+1]<<8)>>(t&7)&n},Qp=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},kx=function(e){return(e+7)/8|0},nm=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new Te(e.subarray(t,n))};var Cx=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Le=function(e,t,n){var i=new Error(t||Cx[e]);if(i.code=e,Error.captureStackTrace&&Error.captureStackTrace(i,Le),!n)throw i;return i},Ix=function(e,t,n,i){var r=e.length,o=i?i.length:0;if(!r||t.f&&!t.l)return n||new Te(0);var a=!n,s=a||t.i!=2,u=t.i;a&&(n=new Te(r*3));var c=function(ym){var bm=n.length;if(ym>bm){var $m=new Te(Math.max(bm*2,ym));$m.set(n),n=$m}},l=t.f||0,d=t.p||0,p=t.b||0,f=t.l,g=t.d,x=t.m,S=t.n,N=r*8;do{if(!f){l=He(e,d,1);var H=He(e,d+1,3);if(d+=3,H)if(H==1)f=xx,g=wx,x=9,S=5;else if(H==2){var Nn=He(e,d,31)+257,Rn=He(e,d+10,15)+4,pm=Nn+He(e,d+5,31)+1;d+=14;for(var Tr=new Te(pm),Da=new Te(19),je=0;je<Rn;++je)Da[bx[je]]=He(e,d+je*3,7);d+=Rn*3;for(var mm=Xp(Da),LD=(1<<mm)-1,MD=An(Da,mm,1),je=0;je<pm;){var fm=MD[He(e,d,LD)];d+=fm&15;var O=fm>>4;if(O<16)Tr[je++]=O;else{var Vt=0,Bn=0;for(O==16?(Bn=3+He(e,d,3),d+=2,Vt=Tr[je-1]):O==17?(Bn=3+He(e,d,7),d+=3):O==18&&(Bn=11+He(e,d,127),d+=7);Bn--;)Tr[je++]=Vt}}var hm=Tr.subarray(0,Nn),ft=Tr.subarray(Nn);x=Xp(hm),S=Xp(ft),f=An(hm,x,1),g=An(ft,S,1)}else Le(1);else{var O=kx(d)+4,W=e[O-4]|e[O-3]<<8,ge=O+W;if(ge>r){u&&Le(0);break}s&&c(p+W),n.set(e.subarray(O,ge),p),t.b=p+=W,t.p=d=ge*8,t.f=l;continue}if(d>N){u&&Le(0);break}}s&&c(p+131072);for(var qD=(1<<x)-1,VD=(1<<S)-1,ya=d;;ya=d){var Vt=f[Qp(e,d)&qD],Wt=Vt>>4;if(d+=Vt&15,d>N){u&&Le(0);break}if(Vt||Le(2),Wt<256)n[p++]=Wt;else if(Wt==256){ya=d,f=null;break}else{var gm=Wt-254;if(Wt>264){var je=Wt-257,jr=pD[je];gm=He(e,d,(1<<jr)-1)+gD[je],d+=jr}var ba=g[Qp(e,d)&VD],$a=ba>>4;ba||Le(3),d+=ba&15;var ft=_x[$a];if($a>3){var jr=mD[$a];ft+=Qp(e,d)&(1<<jr)-1,d+=jr}if(d>N){u&&Le(0);break}s&&c(p+131072);var vm=p+gm;if(p<ft){var Dm=o-ft,WD=Math.min(ft,vm);for(Dm+p<0&&Le(3);p<WD;++p)n[p]=i[Dm+p]}for(;p<vm;++p)n[p]=n[p-ft]}}t.l=f,t.p=ya,t.b=p,t.f=l,f&&(l=1,t.m=x,t.d=g,t.n=S)}while(!l);return p!=n.length&&a?nm(n,0,p):n.subarray(0,p)};var Sx=new Te(0);var nt=function(e,t){return e[t]|e[t+1]<<8},Ye=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},em=function(e,t){return Ye(e,t)+Ye(e,t+4)*4294967296};function Ex(e,t){return Ix(e,{i:2},t&&t.out,t&&t.dictionary)}var rm=typeof TextDecoder<"u"&&new TextDecoder,Fx=0;try{rm.decode(Sx,{stream:!0}),Fx=1}catch{}var Ox=function(e){for(var t="",n=0;;){var i=e[n++],r=(i>127)+(i>223)+(i>239);if(n+r>e.length)return{s:t,r:nm(e,n-1)};r?r==3?(i=((i&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,t+=String.fromCharCode(55296|i>>10,56320|i&1023)):r&1?t+=String.fromCharCode((i&31)<<6|e[n++]&63):t+=String.fromCharCode((i&15)<<12|(e[n++]&63)<<6|e[n++]&63):t+=String.fromCharCode(i)}};function zx(e,t){if(t){for(var n="",i=0;i<e.length;i+=16384)n+=String.fromCharCode.apply(null,e.subarray(i,i+16384));return n}else{if(rm)return rm.decode(e);var r=Ox(e),o=r.s,n=r.r;return n.length&&Le(8),o}}var Px=function(e,t){return t+30+nt(e,t+26)+nt(e,t+28)},Ax=function(e,t,n){var i=nt(e,t+28),r=zx(e.subarray(t+46,t+46+i),!(nt(e,t+8)&2048)),o=t+46+i,a=Ye(e,t+20),s=n&&a==4294967295?Tx(e,o):[a,Ye(e,t+24),Ye(e,t+42)],u=s[0],c=s[1],l=s[2];return[nt(e,t+10),u,c,r,o+nt(e,t+30)+nt(e,t+32),l]},Tx=function(e,t){for(;nt(e,t)!=1;t+=4+nt(e,t+2));return[em(e,t+12),em(e,t+4),em(e,t+20)]};function ca(e,t){for(var n={},i=e.length-22;Ye(e,i)!=101010256;--i)(!i||e.length-i>65558)&&Le(13);var r=nt(e,i+8);if(!r)return{};var o=Ye(e,i+16),a=o==4294967295||r==65535;if(a){var s=Ye(e,i-12);a=Ye(e,s)==101075792,a&&(r=Ye(e,s+32),o=Ye(e,s+48))}for(var u=t&&t.filter,c=0;c<r;++c){var l=Ax(e,o,a),d=l[0],p=l[1],f=l[2],g=l[3],x=l[4],S=l[5],N=Px(e,S);o=x,(!u||u({name:g,size:p,originalSize:f,compression:d}))&&(d?d==8?n[g]=Ex(e.subarray(N,N+p),{out:new Te(f)}):Le(14,"unknown compression type "+d):n[g]=nm(e,N,N+p))}return n}var bD="https://unpkg.com/@zenku/agent-kit",jx=15e3;async function im(e,t){let n=new AbortController,i=setTimeout(()=>n.abort(),jx);try{return await fetch(e,{...t,signal:n.signal})}finally{clearTimeout(i)}}async function yD(e){let t=`${bD}@latest/${e}`,n;try{n=await im(t)}catch(i){throw i instanceof DOMException&&i.name==="AbortError"?new Error("request timed out"):new Error(`failed to fetch ${e}: ${i instanceof Error?i.message:String(i)}`)}if(n.status===404)throw new Error(`@zenku/agent-kit: ${e} not found`);if(!n.ok)throw new Error(`failed to fetch ${e}: HTTP ${n.status}`);return await n.json()}async function Ux(e){let t=`${bD}@latest/${e}`,n;try{n=await im(t)}catch(i){throw i instanceof DOMException&&i.name==="AbortError"?new Error("request timed out"):new Error(`failed to fetch ${e}: ${i instanceof Error?i.message:String(i)}`)}if(n.status===404)throw new Error(`@zenku/agent-kit: ${e} not found`);if(!n.ok)throw new Error(`failed to fetch ${e}: HTTP ${n.status}`);return new Uint8Array(await n.arrayBuffer())}function Nx(e){if(e)try{let t=JSON.parse(e);if(Array.isArray(t))return t}catch{}}function Rx(e,t){let n=[];if(e.skills)for(let[r,o]of Object.entries(e.skills))n.push({name:typeof o.name=="string"?o.name:r,type:"skill",description:typeof o.description=="string"?o.description:""});if(e.agents)for(let[r,o]of Object.entries(e.agents))n.push({name:typeof o.name=="string"?o.name:r,type:"agent",description:typeof o.description=="string"?o.description:"",model:typeof o.model=="string"?o.model:void 0,color:typeof o.color=="string"?o.color:void 0,tools:Nx(typeof o.tools=="string"?o.tools:void 0)});if(e.personas)for(let[r,o]of Object.entries(e.personas))n.push({name:typeof o.name=="string"?o.name:r,type:"persona",description:typeof o.description=="string"?o.description:"",model:typeof o.model=="string"?o.model:void 0,color:typeof o.color=="string"?o.color:void 0});let i={skill:0,agent:1,persona:2};return n.sort((r,o)=>{let a=i[r.type]??99,s=i[o.type]??99;return a!==s?a-s:r.name.localeCompare(o.name)}),{version:t,items:n}}async function jn(){let[e,t]=await Promise.all([yD("manifest.json"),yD("package.json")]);return Rx(e,t.version)}function la(e,t){return e.items.find(n=>n.name===t)??null}async function da(e,t){let n={skill:".skill",agent:".agent",persona:".persona"};return Ux(`${{skill:"skills",agent:"agents",persona:"personas"}[t]}/${e}${n[t]}`)}async function $D(e,t){let n;try{n=await im(`${t}/key`,{headers:{Authorization:`Bearer ${e}`}})}catch(r){throw r instanceof DOMException&&r.name==="AbortError"?new Error("encryption key request timed out"):new Error(`failed to fetch encryption key: ${r instanceof Error?r.message:String(r)}`)}if(n.status===401)throw new Error("authentication required to install kit items (run `zenku login` first)");if(!n.ok)throw new Error(`failed to fetch encryption key: HTTP ${n.status}`);let{key:i}=await n.json();return Buffer.from(i,"hex")}var Bx=["claude","opencode"],sm={claude:".claude",opencode:".opencode"};function pa(e){if(!e||e==="all")return Bx;if(e==="claude"||e==="opencode")return[e];y('invalid --target "%s" (expected: claude, opencode, all)',e)}function Zx(){let e=process.cwd();for(;;){if((0,X.existsSync)((0,me.join)(e,".claude"))||(0,X.existsSync)((0,me.join)(e,".opencode"))||(0,X.existsSync)((0,me.join)(e,".git"))||(0,X.existsSync)((0,me.join)(e,"package.json")))return e;let t=(0,me.resolve)(e,"..");if(t===e)return process.cwd();e=t}}function ma(e){return e?(0,CD.homedir)():Zx()}function fa(e,t,n,i){let r=sm[i];return n==="skill"?(0,me.join)(e,r,"skills",t):(0,me.join)(e,r,"agents",`${t}.md`)}function Lx(e,t){let n=(0,me.join)(e,sm[t],"skills");return(0,X.existsSync)(n)?(0,X.readdirSync)(n,{withFileTypes:!0}).filter(i=>i.isDirectory()&&(0,X.existsSync)((0,me.join)(n,i.name,"SKILL.md"))).map(i=>i.name):[]}function Mx(e,t){let n=(0,me.join)(e,sm[t],"agents");return(0,X.existsSync)(n)?(0,X.readdirSync)(n).filter(i=>i.endsWith(".md")).map(i=>i.slice(0,-3)):[]}function _D(e,t){let n=new Map;for(let i of t){for(let r of Lx(e,i)){let o=`skill:${r}`,a=n.get(o);a?a.targets.push(i):n.set(o,{name:r,type:"skill",targets:[i]})}for(let r of Mx(e,i)){let o=`agent:${r}`,a=n.get(o);a?a.targets.push(i):n.set(o,{name:r,type:"agent",targets:[i]})}}return[...n.values()].sort((i,r)=>i.type!==r.type?i.type==="skill"?-1:1:i.name.localeCompare(r.name))}function xD(e,t){let n=ca(e);for(let i of Object.keys(n)){if(i.endsWith("/"))continue;let r=(0,me.join)(t,i);(0,X.mkdirSync)((0,me.dirname)(r),{recursive:!0}),(0,X.writeFileSync)(r,n[i])}}function wD(e,t){let n=ca(e),i=Object.keys(n).find(r=>r.endsWith(".md"));if(!i)throw new Error("no .md file found in agent archive");(0,X.mkdirSync)((0,me.dirname)(t),{recursive:!0}),(0,X.writeFileSync)(t,n[i])}function om(e,t){let n=e.slice(0,12),i=e.slice(12,28),r=e.slice(28),o=(0,kD.createDecipheriv)("aes-256-gcm",t,Buffer.from(n));return o.setAuthTag(Buffer.from(i)),new Uint8Array(Buffer.concat([o.update(Buffer.from(r)),o.final()]))}async function am(){let e=process.env.AGENT_KIT_ENCRYPTION_KEY;if(e)return Buffer.from(e,"hex");let{profile:t,token:n}=await En(),i=t.services["kit-key"];return i||y("no kit-key service URL configured in profile"),$D(n,i)}var ha=["--target <value>","install target: claude, opencode, all (default: all)"];function qx(){let e=new z("agent-kit").description("Manage skills, agents, and personas from @zenku/agent-kit");return e.command("list").description("List available skills, agents, and personas from @zenku/agent-kit").option("--skills","show skills only").option("--agents","show agents only").option("--personas","show personas only").action(async t=>{let n=await k("Fetching kit catalog...",()=>jn()),i=n.items;t.skills&&(i=i.filter(r=>r.type==="skill")),t.agents&&(i=i.filter(r=>r.type==="agent")),t.personas&&(i=i.filter(r=>r.type==="persona")),v({json:()=>({version:n.version,items:i}),human:()=>{E("@zenku/agent-kit v%s",n.version),L(["NAME","TYPE","DESCRIPTION"],i.map(r=>[r.name,r.type,pt(r.description,60)]))}})}),e.command("info").description("Show metadata for a skill, agent, or persona").argument("<name>","skill, agent, or persona name").action(async t=>{let n=await k("Authenticating...",()=>am()),{item:i,files:r,version:o}=await k("Fetching kit catalog...",async()=>{let a=await jn(),s=la(a,t);s||y('"%s" not found in agent-kit (run `zenku agent-kit list` to see available items)',t);let u=await da(s.name,s.type),c=om(u,n),l=ca(c),d=Object.keys(l).filter(p=>!p.endsWith("/")).sort();return{item:s,files:d,version:a.version}});v({json:()=>({version:o,...i,files:r}),human:()=>{process.stdout.write(`Name: ${i.name}
227
+ `),r.error&&process.stderr.write(xs(`Error: ${r.error}`)+`
228
+ `)}})}catch(r){g("%s",A(r))}}),e.command("resolve").description("Resolve a pending interaction (HITL approval, user input, or A2UI form)").argument("<callback-token>","callback token from the pending interaction").option("--decision <value>","decision: approve, deny, submit, or cancel").option("--input <text>","user input text or JSON for A2UI forms").option("--conversation <id>","conversation ID (subscribe to continuation after resolving)").action(async(n,i)=>{let{client:r}=await zt(),{controller:o,cleanup:s}=ym();try{let a=i.decision;a&&!["approve","deny","submit","cancel"].includes(a)&&g("invalid --decision: %s (expected approve, deny, submit, or cancel)",a);let u=await r.resolve(n,{decision:a,userInput:i.input});if(Ae()||process.stderr.write(Ie(`[resolved] ${u.decision}`)+`
229
+ `),i.conversation){let c=r.subscribe(i.conversation,void 0,o.signal);me()&&!Ae()?await _s(r,c,i.conversation,o.signal,{breakOnExit:!0}):await ks(c,{},o.signal,{breakOnExit:!0})}else v({json:()=>u,human:()=>{E("Resolved (use --conversation to stream continuation)")}})}catch(a){if(a instanceof DOMException&&a.name==="AbortError")return;g("%s",A(a))}finally{o.abort(),s()}}),Zr(e,{pbService:"auth"}),e}function KD(e){e.addCommand(Bw())}var ly=require("node:crypto"),Q=require("node:fs"),dy=require("node:os"),fe=require("node:path");var HD=require("module"),Lw=(0,HD.createRequire)("/"),Zw;try{Zw=Lw("worker_threads").Worker}catch{}var Ne=Uint8Array,qr=Uint16Array,Mw=Int32Array,YD=new Ne([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),XD=new Ne([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),qw=new Ne([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),QD=function(e,t){for(var n=new qr(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];for(var r=new Mw(n[30]),i=1;i<30;++i)for(var o=n[i];o<n[i+1];++o)r[o]=o-n[i]<<5|i;return{b:n,r}},ey=QD(YD,2),ty=ey.b,Vw=ey.r;ty[28]=258,Vw[258]=28;var ry=QD(XD,0),Ww=ry.b,MF=ry.r,wm=new qr(32768);for(q=0;q<32768;++q)gt=(q&43690)>>1|(q&21845)<<1,gt=(gt&52428)>>2|(gt&13107)<<2,gt=(gt&61680)>>4|(gt&3855)<<4,wm[q]=((gt&65280)>>8|(gt&255)<<8)>>1;var gt,q,Gn=(function(e,t,n){for(var i=e.length,r=0,o=new qr(t);r<i;++r)e[r]&&++o[e[r]-1];var s=new qr(t);for(r=1;r<t;++r)s[r]=s[r-1]+o[r-1]<<1;var a;if(n){a=new qr(1<<t);var u=15-t;for(r=0;r<i;++r)if(e[r])for(var c=r<<4|e[r],l=t-e[r],d=s[e[r]-1]++<<l,p=d|(1<<l)-1;d<=p;++d)a[wm[d]>>u]=c}else for(a=new qr(i),r=0;r<i;++r)e[r]&&(a[r]=wm[s[e[r]-1]++]>>15-e[r]);return a}),Jn=new Ne(288);for(q=0;q<144;++q)Jn[q]=8;var q;for(q=144;q<256;++q)Jn[q]=9;var q;for(q=256;q<280;++q)Jn[q]=7;var q;for(q=280;q<288;++q)Jn[q]=8;var q,ny=new Ne(32);for(q=0;q<32;++q)ny[q]=5;var q;var Gw=Gn(Jn,9,1);var Jw=Gn(ny,5,1),$m=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},Ye=function(e,t,n){var i=t/8|0;return(e[i]|e[i+1]<<8)>>(t&7)&n},_m=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},Kw=function(e){return(e+7)/8|0},Sm=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new Ne(e.subarray(t,n))};var Hw=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Ve=function(e,t,n){var i=new Error(t||Hw[e]);if(i.code=e,Error.captureStackTrace&&Error.captureStackTrace(i,Ve),!n)throw i;return i},Yw=function(e,t,n,i){var r=e.length,o=i?i.length:0;if(!r||t.f&&!t.l)return n||new Ne(0);var s=!n,a=s||t.i!=2,u=t.i;s&&(n=new Ne(r*3));var c=function(of){var sf=n.length;if(of>sf){var af=new Ne(Math.max(sf*2,of));af.set(n),n=af}},l=t.f||0,d=t.p||0,p=t.b||0,m=t.l,D=t.d,x=t.m,F=t.n,R=r*8;do{if(!m){l=Ye(e,d,1);var Y=Ye(e,d+1,3);if(d+=3,Y)if(Y==1)m=Gw,D=Jw,x=9,F=5;else if(Y==2){var ti=Ye(e,d,31)+257,ri=Ye(e,d+10,15)+4,Ym=ti+Ye(e,d+5,31)+1;d+=14;for(var Gr=new Ne(Ym),Zs=new Ne(19),Re=0;Re<ri;++Re)Zs[qw[Re]]=Ye(e,d+Re*3,7);d+=ri*3;for(var Xm=$m(Zs),pb=(1<<Xm)-1,mb=Gn(Zs,Xm,1),Re=0;Re<Ym;){var Qm=mb[Ye(e,d,pb)];d+=Qm&15;var P=Qm>>4;if(P<16)Gr[Re++]=P;else{var tr=0,ni=0;for(P==16?(ni=3+Ye(e,d,3),d+=2,tr=Gr[Re-1]):P==17?(ni=3+Ye(e,d,7),d+=3):P==18&&(ni=11+Ye(e,d,127),d+=7);ni--;)Gr[Re++]=tr}}var ef=Gr.subarray(0,ti),yt=Gr.subarray(ti);x=$m(ef),F=$m(yt),m=Gn(ef,x,1),D=Gn(yt,F,1)}else Ve(1);else{var P=Kw(d)+4,G=e[P-4]|e[P-3]<<8,ve=P+G;if(ve>r){u&&Ve(0);break}a&&c(p+G),n.set(e.subarray(P,ve),p),t.b=p+=G,t.p=d=ve*8,t.f=l;continue}if(d>R){u&&Ve(0);break}}a&&c(p+131072);for(var fb=(1<<x)-1,hb=(1<<F)-1,Ms=d;;Ms=d){var tr=m[_m(e,d)&fb],rr=tr>>4;if(d+=tr&15,d>R){u&&Ve(0);break}if(tr||Ve(2),rr<256)n[p++]=rr;else if(rr==256){Ms=d,m=null;break}else{var tf=rr-254;if(rr>264){var Re=rr-257,Jr=YD[Re];tf=Ye(e,d,(1<<Jr)-1)+ty[Re],d+=Jr}var qs=D[_m(e,d)&hb],Vs=qs>>4;qs||Ve(3),d+=qs&15;var yt=Ww[Vs];if(Vs>3){var Jr=XD[Vs];yt+=_m(e,d)&(1<<Jr)-1,d+=Jr}if(d>R){u&&Ve(0);break}a&&c(p+131072);var rf=p+tf;if(p<yt){var nf=o-yt,gb=Math.min(yt,rf);for(nf+p<0&&Ve(3);p<gb;++p)n[p]=i[nf+p]}for(;p<rf;++p)n[p]=n[p-yt]}}t.l=m,t.p=Ms,t.b=p,t.f=l,m&&(l=1,t.m=x,t.d=D,t.n=F)}while(!l);return p!=n.length&&s?Sm(n,0,p):n.subarray(0,p)};var Xw=new Ne(0);var st=function(e,t){return e[t]|e[t+1]<<8},Xe=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},xm=function(e,t){return Xe(e,t)+Xe(e,t+4)*4294967296};function Qw(e,t){return Yw(e,{i:2},t&&t.out,t&&t.dictionary)}var km=typeof TextDecoder<"u"&&new TextDecoder,ek=0;try{km.decode(Xw,{stream:!0}),ek=1}catch{}var tk=function(e){for(var t="",n=0;;){var i=e[n++],r=(i>127)+(i>223)+(i>239);if(n+r>e.length)return{s:t,r:Sm(e,n-1)};r?r==3?(i=((i&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,t+=String.fromCharCode(55296|i>>10,56320|i&1023)):r&1?t+=String.fromCharCode((i&31)<<6|e[n++]&63):t+=String.fromCharCode((i&15)<<12|(e[n++]&63)<<6|e[n++]&63):t+=String.fromCharCode(i)}};function rk(e,t){if(t){for(var n="",i=0;i<e.length;i+=16384)n+=String.fromCharCode.apply(null,e.subarray(i,i+16384));return n}else{if(km)return km.decode(e);var r=tk(e),o=r.s,n=r.r;return n.length&&Ve(8),o}}var nk=function(e,t){return t+30+st(e,t+26)+st(e,t+28)},ik=function(e,t,n){var i=st(e,t+28),r=rk(e.subarray(t+46,t+46+i),!(st(e,t+8)&2048)),o=t+46+i,s=Xe(e,t+20),a=n&&s==4294967295?ok(e,o):[s,Xe(e,t+24),Xe(e,t+42)],u=a[0],c=a[1],l=a[2];return[st(e,t+10),u,c,r,o+st(e,t+30)+st(e,t+32),l]},ok=function(e,t){for(;st(e,t)!=1;t+=4+st(e,t+2));return[xm(e,t+12),xm(e,t+4),xm(e,t+20)]};function Ss(e,t){for(var n={},i=e.length-22;Xe(e,i)!=101010256;--i)(!i||e.length-i>65558)&&Ve(13);var r=st(e,i+8);if(!r)return{};var o=Xe(e,i+16),s=o==4294967295||r==65535;if(s){var a=Xe(e,i-12);s=Xe(e,a)==101075792,s&&(r=Xe(e,a+32),o=Xe(e,a+48))}for(var u=t&&t.filter,c=0;c<r;++c){var l=ik(e,o,s),d=l[0],p=l[1],m=l[2],D=l[3],x=l[4],F=l[5],R=nk(e,F);o=x,(!u||u({name:D,size:p,originalSize:m,compression:d}))&&(d?d==8?n[D]=Qw(e.subarray(R,R+p),{out:new Ne(m)}):Ve(14,"unknown compression type "+d):n[D]=Sm(e,R,R+p))}return n}var oy="https://unpkg.com/@zenku/agent-kit",sk=15e3;async function Cm(e,t){let n=new AbortController,i=setTimeout(()=>n.abort(),sk);try{return await fetch(e,{...t,signal:n.signal})}finally{clearTimeout(i)}}async function iy(e){let t=`${oy}@latest/${e}`,n;try{n=await Cm(t)}catch(i){throw i instanceof DOMException&&i.name==="AbortError"?new Error("request timed out"):new Error(`failed to fetch ${e}: ${i instanceof Error?i.message:String(i)}`)}if(n.status===404)throw new Error(`@zenku/agent-kit: ${e} not found`);if(!n.ok)throw new Error(`failed to fetch ${e}: HTTP ${n.status}`);return await n.json()}async function ak(e){let t=`${oy}@latest/${e}`,n;try{n=await Cm(t)}catch(i){throw i instanceof DOMException&&i.name==="AbortError"?new Error("request timed out"):new Error(`failed to fetch ${e}: ${i instanceof Error?i.message:String(i)}`)}if(n.status===404)throw new Error(`@zenku/agent-kit: ${e} not found`);if(!n.ok)throw new Error(`failed to fetch ${e}: HTTP ${n.status}`);return new Uint8Array(await n.arrayBuffer())}function uk(e){if(e)try{let t=JSON.parse(e);if(Array.isArray(t))return t}catch{}}function ck(e,t){let n=[];if(e.skills)for(let[r,o]of Object.entries(e.skills))n.push({name:typeof o.name=="string"?o.name:r,type:"skill",description:typeof o.description=="string"?o.description:""});if(e.agents)for(let[r,o]of Object.entries(e.agents))n.push({name:typeof o.name=="string"?o.name:r,type:"agent",description:typeof o.description=="string"?o.description:"",model:typeof o.model=="string"?o.model:void 0,color:typeof o.color=="string"?o.color:void 0,tools:uk(typeof o.tools=="string"?o.tools:void 0)});if(e.personas)for(let[r,o]of Object.entries(e.personas))n.push({name:typeof o.name=="string"?o.name:r,type:"persona",description:typeof o.description=="string"?o.description:"",model:typeof o.model=="string"?o.model:void 0,color:typeof o.color=="string"?o.color:void 0});let i={skill:0,agent:1,persona:2};return n.sort((r,o)=>{let s=i[r.type]??99,a=i[o.type]??99;return s!==a?s-a:r.name.localeCompare(o.name)}),{version:t,items:n}}async function Kn(){let[e,t]=await Promise.all([iy("manifest.json"),iy("package.json")]);return ck(e,t.version)}function Cs(e,t){return e.items.find(n=>n.name===t)??null}async function Is(e,t){let n={skill:".skill",agent:".agent",persona:".persona"};return ak(`${{skill:"skills",agent:"agents",persona:"personas"}[t]}/${e}${n[t]}`)}async function sy(e,t){let n;try{n=await Cm(`${t}/key`,{headers:{Authorization:`Bearer ${e}`}})}catch(r){throw r instanceof DOMException&&r.name==="AbortError"?new Error("encryption key request timed out"):new Error(`failed to fetch encryption key: ${r instanceof Error?r.message:String(r)}`)}if(n.status===401)throw new Error("authentication required to install kit items (run `zenku login` first)");if(!n.ok)throw new Error(`failed to fetch encryption key: HTTP ${n.status}`);let{key:i}=await n.json();return Buffer.from(i,"hex")}var lk=["claude","opencode"],Fm={claude:".claude",opencode:".opencode"};function Es(e){if(!e||e==="all")return lk;if(e==="claude"||e==="opencode")return[e];g('invalid --target "%s" (expected: claude, opencode, all)',e)}function dk(){let e=process.cwd();for(;;){if((0,Q.existsSync)((0,fe.join)(e,".claude"))||(0,Q.existsSync)((0,fe.join)(e,".opencode"))||(0,Q.existsSync)((0,fe.join)(e,".git"))||(0,Q.existsSync)((0,fe.join)(e,"package.json")))return e;let t=(0,fe.resolve)(e,"..");if(t===e)return process.cwd();e=t}}function Fs(e){return e?(0,dy.homedir)():dk()}function Os(e,t,n,i){let r=Fm[i];return n==="skill"?(0,fe.join)(e,r,"skills",t):(0,fe.join)(e,r,"agents",`${t}.md`)}function pk(e,t){let n=(0,fe.join)(e,Fm[t],"skills");return(0,Q.existsSync)(n)?(0,Q.readdirSync)(n,{withFileTypes:!0}).filter(i=>i.isDirectory()&&(0,Q.existsSync)((0,fe.join)(n,i.name,"SKILL.md"))).map(i=>i.name):[]}function mk(e,t){let n=(0,fe.join)(e,Fm[t],"agents");return(0,Q.existsSync)(n)?(0,Q.readdirSync)(n).filter(i=>i.endsWith(".md")).map(i=>i.slice(0,-3)):[]}function ay(e,t){let n=new Map;for(let i of t){for(let r of pk(e,i)){let o=`skill:${r}`,s=n.get(o);s?s.targets.push(i):n.set(o,{name:r,type:"skill",targets:[i]})}for(let r of mk(e,i)){let o=`agent:${r}`,s=n.get(o);s?s.targets.push(i):n.set(o,{name:r,type:"agent",targets:[i]})}}return[...n.values()].sort((i,r)=>i.type!==r.type?i.type==="skill"?-1:1:i.name.localeCompare(r.name))}function uy(e,t){let n=Ss(e);for(let i of Object.keys(n)){if(i.endsWith("/"))continue;let r=(0,fe.join)(t,i);(0,Q.mkdirSync)((0,fe.dirname)(r),{recursive:!0}),(0,Q.writeFileSync)(r,n[i])}}function cy(e,t){let n=Ss(e),i=Object.keys(n).find(r=>r.endsWith(".md"));if(!i)throw new Error("no .md file found in agent archive");(0,Q.mkdirSync)((0,fe.dirname)(t),{recursive:!0}),(0,Q.writeFileSync)(t,n[i])}function Im(e,t){let n=e.slice(0,12),i=e.slice(12,28),r=e.slice(28),o=(0,ly.createDecipheriv)("aes-256-gcm",t,Buffer.from(n));return o.setAuthTag(Buffer.from(i)),new Uint8Array(Buffer.concat([o.update(Buffer.from(r)),o.final()]))}async function Em(){let e=process.env.AGENT_KIT_ENCRYPTION_KEY;if(e)return Buffer.from(e,"hex");let{profile:t,token:n}=await Zn(),i=t.services["kit-key"];return i||g("no kit-key service URL configured in profile"),sy(n,i)}var zs=["--target <value>","install target: claude, opencode, all (default: all)"];function fk(){let e=new O("agent-kit").description("Manage skills, agents, and personas from @zenku/agent-kit");return e.command("list").description("List available skills, agents, and personas from @zenku/agent-kit").option("--skills","show skills only").option("--agents","show agents only").option("--personas","show personas only").action(async t=>{let n=await k("Fetching kit catalog...",()=>Kn()),i=n.items;t.skills&&(i=i.filter(r=>r.type==="skill")),t.agents&&(i=i.filter(r=>r.type==="agent")),t.personas&&(i=i.filter(r=>r.type==="persona")),v({json:()=>({version:n.version,items:i}),human:()=>{E("@zenku/agent-kit v%s",n.version),B(["NAME","TYPE","DESCRIPTION"],i.map(r=>[r.name,r.type,ht(r.description,60)]))}})}),e.command("info").description("Show metadata for a skill, agent, or persona").argument("<name>","skill, agent, or persona name").action(async t=>{let n=await k("Authenticating...",()=>Em()),{item:i,files:r,version:o}=await k("Fetching kit catalog...",async()=>{let s=await Kn(),a=Cs(s,t);a||g('"%s" not found in agent-kit (run `zenku agent-kit list` to see available items)',t);let u=await Is(a.name,a.type),c=Im(u,n),l=Ss(c),d=Object.keys(l).filter(p=>!p.endsWith("/")).sort();return{item:a,files:d,version:s.version}});v({json:()=>({version:o,...i,files:r}),human:()=>{process.stdout.write(`Name: ${i.name}
230
230
  `),process.stdout.write(`Type: ${i.type}
231
231
  `),process.stdout.write(`Kit version: ${o}
232
232
  `),i.model&&process.stdout.write(`Model: ${i.model}
@@ -235,23 +235,72 @@ ${r.result.output}
235
235
  `),process.stdout.write(`Description: ${i.description}
236
236
  `),process.stdout.write(`
237
237
  Contents:
238
- `);for(let a of r)process.stdout.write(` ${a}
239
- `)}})}),e.command("install").description("Install a skill, agent, or persona into the current project").argument("<name>","skill, agent, or persona name").option("--force","overwrite existing installation").option("--global","install to home directory (~/) instead of project root").option(...ha).action(async(t,n)=>{let i=pa(n.target),r=await k("Authenticating...",()=>am()),{item:o,zipBytes:a,version:s}=await k("Fetching kit catalog...",async()=>{let l=await jn(),d=la(l,t);d||y('"%s" not found in agent-kit (run `zenku agent-kit list` to see available items)',t);let p=await da(d.name,d.type);return{item:d,zipBytes:om(p,r),version:l.version}}),u=ma(n.global),c=i.map(l=>fa(u,o.name,o.type,l));if(!n.force){let l=c.filter(d=>(0,X.existsSync)(d));l.length>0&&y('"%s" is already installed at %s (use --force to overwrite)',t,l.join(", "))}for(let l of c)o.type==="skill"?((0,X.existsSync)(l)&&(0,X.rmSync)(l,{recursive:!0}),xD(a,l)):wD(a,l);v({json:()=>({installed:o.name,type:o.type,version:s,targets:i,paths:c}),human:()=>{for(let l of c)I("Installed %s (%s) -> %s",o.name,o.type,l)}})}),e.command("uninstall").description("Remove an installed skill, agent, or persona").argument("<name>","skill, agent, or persona name").option("--global","uninstall from home directory (~/) instead of project root").option(...ha).action(async(t,n)=>{try{let i=pa(n.target),r=ma(n.global),o=[];for(let a of i){let s=fa(r,t,"skill",a),u=fa(r,t,"agent",a),c=(0,X.existsSync)((0,me.join)(s,"SKILL.md")),l=(0,X.existsSync)(u);c&&((0,X.rmSync)(s,{recursive:!0}),o.push({target:a,type:"skill"})),l&&((0,X.rmSync)(u),o.push({target:a,type:"agent"}))}o.length===0&&y('"%s" is not installed (run `zenku agent-kit installed` to see installed items)',t),v({json:()=>({uninstalled:t,type:o[0].type,targets:[...new Set(o.map(a=>a.target))]}),human:()=>I("Uninstalled %s",t)})}catch(i){y("%s",M(i))}}),e.command("installed").description("List installed skills and agents").option("--skills","show skills only").option("--agents","show agents only").option("--global","list installed items in home directory (~/) instead of project root").option(...ha).action(async t=>{try{let n=pa(t.target),i=ma(t.global),r=_D(i,n);if(t.skills&&(r=r.filter(o=>o.type==="skill")),t.agents&&(r=r.filter(o=>o.type==="agent")),r.length===0){v({json:()=>({items:[]}),human:()=>E("No skills or agents installed.")});return}v({json:()=>({items:r}),human:()=>{L(["NAME","TYPE","TARGETS"],r.map(o=>[o.name,o.type,o.targets.join(", ")]))}})}catch(n){y("%s",M(n))}}),e.command("update").description("Update installed items to the latest kit version").argument("[name]","skill, agent, or persona name (omit with --all)").option("--all","update all installed items").option("--global","update items in home directory (~/) instead of project root").option(...ha).action(async(t,n)=>{!t&&!n.all&&y("provide <name> or use --all"),t&&n.all&&y("use either <name> or --all, not both");let i=pa(n.target),r=ma(n.global),o=await k("Authenticating...",()=>am()),a=await k("Checking for updates...",()=>jn()),s;if(n.all){s=new Map;let c=_D(r,i),l=new Set(a.items.map(d=>d.name));for(let d of c)l.has(d.name)&&s.set(d.name,d.targets)}else s=new Map([[t,i]]);if(s.size===0){E("No kit items installed to update.");return}let u=[];for(let[c,l]of s){let d=la(a,c);if(!d){u.push({name:c,action:"not-found"});continue}let p=await k(`Updating ${c}...`,async()=>{let f=await da(d.name,d.type);return om(f,o)});for(let f of l){let g=fa(r,c,d.type,f);d.type==="skill"?((0,X.existsSync)(g)&&(0,X.rmSync)(g,{recursive:!0}),xD(p,g)):wD(p,g)}u.push({name:c,action:"updated",targets:l})}v({json:()=>({version:a.version,results:u}),human:()=>{for(let c of u)c.action==="updated"?I("%s: updated to v%s",c.name,a.version):E("%s: not found in agent-kit (may have been removed)",c.name)}})}),e}function ID(e){e.addCommand(qx())}var SD=require("node:child_process");function qt(e){if(e==null||e===0)return"";let t=Number(e);return Number.isNaN(t)?"":new Date(t).toISOString().replace("T"," ").slice(0,19)}function Vx(){let e=new z("jobs").description("Job queue management (BullMQ via jobs-api)");e.command("queues").description("List all discovered queues").action(async()=>{let n=await K("jobs"),i=await k("Discovering queues...",()=>n.query("jobs.queues",{}));v({json:()=>i,human:()=>{let r=i.queues.map(o=>[o]);L(["QUEUE"],r)}})}),e.command("counts").description("Show job counts by state for a queue").requiredOption("-q, --queue <name>","queue name").action(async n=>{let i=await K("jobs"),r=await k("Fetching counts...",()=>i.query("jobs.counts",{queue:n.queue}));v({json:()=>r,human:()=>{let o=Object.entries(r).map(([a,s])=>[a,String(s)]);L(["STATE","COUNT"],o)}})}),e.command("list").description("List jobs in a queue by state").requiredOption("-q, --queue <name>","queue name").option("--state <state>","job state (completed|failed|delayed|active|waiting|prioritized|paused)","completed").option("--start <n>","start index","0").option("--end <n>","end index","49").action(async n=>{let i=await K("jobs"),r=await k("Fetching jobs...",()=>i.query("jobs.list",{queue:n.queue,state:n.state,start:Number(n.start),end:Number(n.end)}));v({json:()=>r,human:()=>{let o=r.map(a=>[Q(a.id),Q(a.name),String(a.attemptsMade??0),qt(a.timestamp),qt(a.finishedOn)]);L(["ID","NAME","ATTEMPTS","CREATED","FINISHED"],o)}})}),e.command("get").description("Get job details").requiredOption("-q, --queue <name>","queue name").argument("<jobId>","job ID").action(async(n,i)=>{let r=await K("jobs"),o=await k("Fetching job...",()=>r.query("jobs.get",{queue:i.queue,jobId:n}));v({json:()=>o,human:()=>{process.stdout.write(`ID: ${Q(o.id)}
240
- `),process.stdout.write(`Name: ${Q(o.name)}
241
- `),process.stdout.write(`State: ${Q(o.state)}
242
- `),process.stdout.write(`Progress: ${Q(o.progress)}
243
- `),process.stdout.write(`Attempts: ${Q(o.attemptsMade)}
244
- `),o.failedReason&&process.stdout.write(`Failed: ${Q(o.failedReason)}
245
- `),process.stdout.write(`Created: ${qt(o.timestamp)}
246
- `),o.processedOn&&process.stdout.write(`Processed: ${qt(o.processedOn)}
247
- `),o.finishedOn&&process.stdout.write(`Finished: ${qt(o.finishedOn)}
238
+ `);for(let s of r)process.stdout.write(` ${s}
239
+ `)}})}),e.command("install").description("Install a skill, agent, or persona into the current project").argument("<name>","skill, agent, or persona name").option("--force","overwrite existing installation").option("--global","install to home directory (~/) instead of project root").option(...zs).action(async(t,n)=>{let i=Es(n.target),r=await k("Authenticating...",()=>Em()),{item:o,zipBytes:s,version:a}=await k("Fetching kit catalog...",async()=>{let l=await Kn(),d=Cs(l,t);d||g('"%s" not found in agent-kit (run `zenku agent-kit list` to see available items)',t);let p=await Is(d.name,d.type);return{item:d,zipBytes:Im(p,r),version:l.version}}),u=Fs(n.global),c=i.map(l=>Os(u,o.name,o.type,l));if(!n.force){let l=c.filter(d=>(0,Q.existsSync)(d));l.length>0&&g('"%s" is already installed at %s (use --force to overwrite)',t,l.join(", "))}for(let l of c)o.type==="skill"?((0,Q.existsSync)(l)&&(0,Q.rmSync)(l,{recursive:!0}),uy(s,l)):cy(s,l);v({json:()=>({installed:o.name,type:o.type,version:a,targets:i,paths:c}),human:()=>{for(let l of c)I("Installed %s (%s) -> %s",o.name,o.type,l)}})}),e.command("uninstall").description("Remove an installed skill, agent, or persona").argument("<name>","skill, agent, or persona name").option("--global","uninstall from home directory (~/) instead of project root").option(...zs).action(async(t,n)=>{try{let i=Es(n.target),r=Fs(n.global),o=[];for(let s of i){let a=Os(r,t,"skill",s),u=Os(r,t,"agent",s),c=(0,Q.existsSync)((0,fe.join)(a,"SKILL.md")),l=(0,Q.existsSync)(u);c&&((0,Q.rmSync)(a,{recursive:!0}),o.push({target:s,type:"skill"})),l&&((0,Q.rmSync)(u),o.push({target:s,type:"agent"}))}o.length===0&&g('"%s" is not installed (run `zenku agent-kit installed` to see installed items)',t),v({json:()=>({uninstalled:t,type:o[0].type,targets:[...new Set(o.map(s=>s.target))]}),human:()=>I("Uninstalled %s",t)})}catch(i){g("%s",A(i))}}),e.command("installed").description("List installed skills and agents").option("--skills","show skills only").option("--agents","show agents only").option("--global","list installed items in home directory (~/) instead of project root").option(...zs).action(async t=>{try{let n=Es(t.target),i=Fs(t.global),r=ay(i,n);if(t.skills&&(r=r.filter(o=>o.type==="skill")),t.agents&&(r=r.filter(o=>o.type==="agent")),r.length===0){v({json:()=>({items:[]}),human:()=>E("No skills or agents installed.")});return}v({json:()=>({items:r}),human:()=>{B(["NAME","TYPE","TARGETS"],r.map(o=>[o.name,o.type,o.targets.join(", ")]))}})}catch(n){g("%s",A(n))}}),e.command("update").description("Update installed items to the latest kit version").argument("[name]","skill, agent, or persona name (omit with --all)").option("--all","update all installed items").option("--global","update items in home directory (~/) instead of project root").option(...zs).action(async(t,n)=>{!t&&!n.all&&g("provide <name> or use --all"),t&&n.all&&g("use either <name> or --all, not both");let i=Es(n.target),r=Fs(n.global),o=await k("Authenticating...",()=>Em()),s=await k("Checking for updates...",()=>Kn()),a;if(n.all){a=new Map;let c=ay(r,i),l=new Set(s.items.map(d=>d.name));for(let d of c)l.has(d.name)&&a.set(d.name,d.targets)}else a=new Map([[t,i]]);if(a.size===0){E("No kit items installed to update.");return}let u=[];for(let[c,l]of a){let d=Cs(s,c);if(!d){u.push({name:c,action:"not-found"});continue}let p=await k(`Updating ${c}...`,async()=>{let m=await Is(d.name,d.type);return Im(m,o)});for(let m of l){let D=Os(r,c,d.type,m);d.type==="skill"?((0,Q.existsSync)(D)&&(0,Q.rmSync)(D,{recursive:!0}),uy(p,D)):cy(p,D)}u.push({name:c,action:"updated",targets:l})}v({json:()=>({version:s.version,results:u}),human:()=>{for(let c of u)c.action==="updated"?I("%s: updated to v%s",c.name,s.version):E("%s: not found in agent-kit (may have been removed)",c.name)}})}),e}function py(e){e.addCommand(fk())}var my=require("node:child_process");function Qt(e){if(e==null||e===0)return"";let t=Number(e);return Number.isNaN(t)?"":new Date(t).toISOString().replace("T"," ").slice(0,19)}function hk(){let e=new O("jobs").description("Job queue management (BullMQ via jobs-api)");e.command("queues").description("List all discovered queues").action(async()=>{let n=await H("jobs"),i=await k("Discovering queues...",()=>n.query("jobs.queues",{}));v({json:()=>i,human:()=>{let r=i.queues.map(o=>[o]);B(["QUEUE"],r)}})}),e.command("counts").description("Show job counts by state for a queue").requiredOption("-q, --queue <name>","queue name").action(async n=>{let i=await H("jobs"),r=await k("Fetching counts...",()=>i.query("jobs.counts",{queue:n.queue}));v({json:()=>r,human:()=>{let o=Object.entries(r).map(([s,a])=>[s,String(a)]);B(["STATE","COUNT"],o)}})}),e.command("list").description("List jobs in a queue by state").requiredOption("-q, --queue <name>","queue name").option("--state <state>","job state (completed|failed|delayed|active|waiting|prioritized|paused)","completed").option("--start <n>","start index","0").option("--end <n>","end index","49").action(async n=>{let i=await H("jobs"),r=await k("Fetching jobs...",()=>i.query("jobs.list",{queue:n.queue,state:n.state,start:Number(n.start),end:Number(n.end)}));v({json:()=>r,human:()=>{let o=r.map(s=>[W(s.id),W(s.name),String(s.attemptsMade??0),Qt(s.timestamp),Qt(s.finishedOn)]);B(["ID","NAME","ATTEMPTS","CREATED","FINISHED"],o)}})}),e.command("get").description("Get job details").requiredOption("-q, --queue <name>","queue name").argument("<jobId>","job ID").action(async(n,i)=>{let r=await H("jobs"),o=await k("Fetching job...",()=>r.query("jobs.get",{queue:i.queue,jobId:n}));v({json:()=>o,human:()=>{process.stdout.write(`ID: ${W(o.id)}
240
+ `),process.stdout.write(`Name: ${W(o.name)}
241
+ `),process.stdout.write(`State: ${W(o.state)}
242
+ `),process.stdout.write(`Progress: ${W(o.progress)}
243
+ `),process.stdout.write(`Attempts: ${W(o.attemptsMade)}
244
+ `),o.failedReason&&process.stdout.write(`Failed: ${W(o.failedReason)}
245
+ `),process.stdout.write(`Created: ${Qt(o.timestamp)}
246
+ `),o.processedOn&&process.stdout.write(`Processed: ${Qt(o.processedOn)}
247
+ `),o.finishedOn&&process.stdout.write(`Finished: ${Qt(o.finishedOn)}
248
248
  `),o.data&&typeof o.data=="object"&&Object.keys(o.data).length>0&&process.stdout.write(`
249
249
  Data:
250
250
  ${JSON.stringify(o.data,null,2)}
251
- `)}})}),e.command("enqueue").description("Enqueue a job").requiredOption("-q, --queue <name>","queue name").requiredOption("--name <jobName>","job name").requiredOption("--data <json>","job data as JSON string").option("--delay <ms>","delay in milliseconds").option("--priority <n>","job priority").option("--attempts <n>","max retry attempts").action(async n=>{let i;try{i=JSON.parse(n.data)}catch{y("invalid JSON for --data")}let r={queue:n.queue,jobName:n.name,data:i},o={};n.delay&&(o.delay=Number(n.delay)),n.priority&&(o.priority=Number(n.priority)),n.attempts&&(o.attempts=Number(n.attempts)),Object.keys(o).length>0&&(r.options=o);let a=await K("jobs"),s=await k("Enqueuing job...",()=>a.mutate("jobs.enqueue",r));v({json:()=>s,human:()=>I("Job enqueued: %s (queue: %s)",s.jobId,s.queue)})}),e.command("retry").description("Retry a failed job").requiredOption("-q, --queue <name>","queue name").argument("<jobId>","job ID").action(async(n,i)=>{let r=await K("jobs");await k("Retrying job...",()=>r.mutate("jobs.retry",{queue:i.queue,jobId:n})),v({json:()=>({success:!0,jobId:n,queue:i.queue}),human:()=>I("Job %s retried",n)})}),e.command("remove").description("Remove a job").requiredOption("-q, --queue <name>","queue name").argument("<jobId>","job ID").action(async(n,i)=>{let r=await K("jobs");await k("Removing job...",()=>r.mutate("jobs.remove",{queue:i.queue,jobId:n})),v({json:()=>({success:!0,jobId:n,queue:i.queue}),human:()=>I("Job %s removed",n)})}),e.command("pause").description("Pause a queue").requiredOption("-q, --queue <name>","queue name").action(async n=>{let i=await K("jobs");await k("Pausing queue...",()=>i.mutate("jobs.pause",{queue:n.queue})),v({json:()=>({success:!0,queue:n.queue}),human:()=>I("Queue %s paused",n.queue)})}),e.command("resume").description("Resume a paused queue").requiredOption("-q, --queue <name>","queue name").action(async n=>{let i=await K("jobs");await k("Resuming queue...",()=>i.mutate("jobs.resume",{queue:n.queue})),v({json:()=>({success:!0,queue:n.queue}),human:()=>I("Queue %s resumed",n.queue)})});let t=new z("schedulers").description("Manage cron schedulers");return t.command("list").description("List schedulers for a queue").requiredOption("-q, --queue <name>","queue name").action(async n=>{let i=await K("jobs"),r=await k("Fetching schedulers...",()=>i.query("schedulers.list",{queue:n.queue}));v({json:()=>r,human:()=>{let o=r.map(a=>[Q(a.id),Q(a.name),Q(a.pattern),Q(a.timezone),qt(a.next)]);L(["ID","NAME","PATTERN","TIMEZONE","NEXT RUN"],o)}})}),t.command("get").description("Get scheduler details").requiredOption("-q, --queue <name>","queue name").argument("<id>","scheduler ID").action(async(n,i)=>{let r=await K("jobs"),o=await k("Fetching scheduler...",()=>r.query("schedulers.get",{queue:i.queue,id:n}));v({json:()=>o,human:()=>{process.stdout.write(`ID: ${Q(o.id)}
252
- `),process.stdout.write(`Name: ${Q(o.name)}
253
- `),process.stdout.write(`Pattern: ${Q(o.pattern)}
254
- `),process.stdout.write(`Timezone: ${Q(o.timezone)}
255
- `),process.stdout.write(`Next Run: ${qt(o.next)}
256
- `)}})}),t.command("upsert").description("Create or update a scheduler").requiredOption("-q, --queue <name>","queue name").requiredOption("--id <id>","scheduler ID").requiredOption("--pattern <cron>","cron pattern").option("--timezone <tz>","timezone (e.g., America/New_York)").option("--data <json>","job data as JSON string").action(async n=>{let i={queue:n.queue,id:n.id,pattern:n.pattern};if(n.timezone&&(i.timezone=n.timezone),n.data)try{i.data=JSON.parse(n.data)}catch{y("invalid JSON for --data")}let r=await K("jobs"),o=await k("Upserting scheduler...",()=>r.mutate("schedulers.upsert",i));v({json:()=>o,human:()=>I("Scheduler upserted: %s",o.schedulerId)})}),t.command("remove").description("Remove a scheduler").requiredOption("-q, --queue <name>","queue name").argument("<id>","scheduler ID").action(async(n,i)=>{let r=await K("jobs");await k("Removing scheduler...",()=>r.mutate("schedulers.remove",{queue:i.queue,id:n})),v({json:()=>({success:!0,id:n,queue:i.queue}),human:()=>I("Scheduler %s removed",n)})}),e.addCommand(t),e.command("web").description("Open the Bull Board dashboard in the browser").option("--no-open","print the URL without opening the browser").action(async({open:n})=>{let i=oe(ue()),{profile:r}=se(i),o=r.services.jobs;o||y("no jobs API URL configured (run `zenku profile show` to check)");let a=`${o.replace(/\/+$/,"")}/dashboard`;if(n){let s=process.platform==="darwin"?"open":process.platform==="win32"?"start":"xdg-open";(0,SD.exec)(`${s} "${a}"`)}v({json:()=>({url:a}),human:()=>E("Opening %s",a)})}),e}function ED(e){e.addCommand(Vx())}var le=require("node:fs"),Se=require("node:path"),Un=require("node:os");function um(e){return e||(process.env.CLAUDE_CONFIG_DIR?process.env.CLAUDE_CONFIG_DIR:(0,Se.join)((0,Un.homedir)(),".claude"))}function FD(e){return e||(process.env.ZENKU_MACHINE_ID?process.env.ZENKU_MACHINE_ID:(0,Un.hostname)())}function cm(e){let t=[],n;try{n=(0,le.readdirSync)(e,{withFileTypes:!0})}catch{return t}for(let i of n){let r=(0,Se.join)(e,i.name);i.isDirectory()?t.push(...cm(r)):i.isFile()&&i.name.endsWith(".jsonl")&&t.push(r)}return t}function it(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function Wx(e,t){let n=(0,le.statSync)(e);return Date.now()-n.mtimeMs>=t*86400*1e3}function OD(e,t,n){let i=(0,Se.relative)(t,e);return`${n}/${i}`}function lm(e){return e.replace(/'/g,"\\'")}async function zD(e,t,n,i,r,o,a){let u=(0,le.statSync)(t).size,c=null;try{let p=await e.collection("session_files").getFirstListItem(`key='${lm(n)}'`);c={id:p.id,size:p.size}}catch{}if(c&&c.size===u)return{status:"skipped",key:n,size:u};if(a)return c?E("[DRY-RUN] Would update: %s (%s -> %s)",n,it(c.size),it(u)):E("[DRY-RUN] Would upload: %s (%s)",n,it(u)),{status:c?"updated":"uploaded",key:n,size:u};let l=(0,le.readFileSync)(t),d=new File([l],(0,Se.basename)(t),{type:"application/x-ndjson"});try{return c?(await e.collection("session_files").update(c.id,{size:u,file:d}),I("Updated: %s (%s -> %s)",n,it(c.size),it(u)),{status:"updated",key:n,size:u}):(await e.collection("session_files").create({key:n,machine_id:i,size:u,tenant_id:r,account_id:o,file:d}),I("Uploaded: %s (%s)",n,it(u)),{status:"uploaded",key:n,size:u})}catch(p){let f=p instanceof Error?p.message:String(p);return{status:"failed",key:n,size:u,error:f}}}function Gx(){let e=new z("sessions").description("Upload and manage Claude Code session transcripts");return e.command("sync").description("Scan local Claude Code sessions and upload new/changed files").option("--machine-id <id>","machine identifier for R2 key namespacing").option("--claude-dir <path>","Claude config directory").option("--dry-run","show what would be uploaded without uploading").option("--cleanup-days <days>","delete local files older than N days after successful upload").action(async t=>{let n=um(t.claudeDir),i=FD(t.machineId),r=t.dryRun??!1,o=t.cleanupDays?Number(t.cleanupDays):0;o&&(Number.isNaN(o)||o<1)&&y("--cleanup-days requires a positive integer");let a=(0,Se.join)(n,"projects"),s=cm(a);if(s.length===0){E("No session files found in %s",a);return}let{client:u,profile:c}=await P("library"),l=Ge(c),d=Je(c);o>0&&E("Cleanup mode: syncing files older than %s days",o),E("Scanning %s sessions in %s",s.length,a);let p=0,f=0,g=0,x=0,S=0,N=0;for(let H of s){if(o>0&&!Wx(H,o)){N++;continue}let O=OD(H,a,i),W=await zD(u,H,O,i,l,d,r);switch(W.status){case"uploaded":p++;break;case"updated":f++;break;case"skipped":g++;break;case"failed":E("Failed: %s \u2014 %s",O,W.error),x++;continue}if(o>0)if(r)E("[DRY-RUN] Would delete local: %s",H);else try{(0,le.unlinkSync)(H),S++}catch{E("Failed to delete local: %s",H)}}E(""),o>0?E("Summary: %s total, %s too new (<%sd), %s uploaded, %s updated, %s unchanged, %s deleted locally, %s failed",s.length,N,o,p,f,g,S,x):E("Summary: %s total, %s uploaded, %s updated, %s unchanged, %s failed",s.length,p,f,g,x)}),e.command("list").description("List Claude Code session files").option("--remote","list uploaded session files from PocketBase").option("--claude-dir <path>","Claude config directory").action(async t=>{if(t.remote){let{client:n}=await P("library"),i=await k("Fetching session files...",()=>n.collection("session_files").getList(1,200,{sort:"-created"}));v({json:()=>i.items,human:()=>{let r=i.items.map(o=>[o.id,o.key,o.machine_id,it(o.size),o.created]);L(["ID","KEY","MACHINE","SIZE","CREATED"],r)}})}else{let n=um(t.claudeDir),i=(0,Se.join)(n,"projects"),r=cm(i);v({json:()=>r.map(o=>{let a=(0,le.statSync)(o);return{path:o,size:a.size,modified:a.mtime}}),human:()=>{let o=r.map(a=>{let s=(0,le.statSync)(a);return[(0,Se.relative)(i,a),it(s.size),s.mtime.toISOString().slice(0,19)]});L(["PATH","SIZE","MODIFIED"],o),E(`
257
- %s files, %s total`,r.length,it(r.reduce((a,s)=>a+(0,le.statSync)(s).size,0)))}})}}),e.command("upload").description("Upload a single session file").option("--hook","hook mode: read session path from stdin JSON").option("--machine-id <id>","machine identifier for R2 key namespacing").option("--claude-dir <path>","Claude config directory").argument("[file]","path to .jsonl file (when not using --hook)").action(async(t,n)=>{let i=um(n.claudeDir),r=FD(n.machineId),o=(0,Se.join)(i,"projects"),a;if(n.hook){let f;try{f=(0,le.readFileSync)(0,"utf-8")}catch{y("failed to read from stdin")}let g;try{g=JSON.parse(f)}catch{y("invalid JSON on stdin")}let x=g.transcript_path;x||y("no transcript_path in hook input"),a=x.replace(/^~/,(0,Un.homedir)())}else t?a=t:y("provide a file path or use --hook to read from stdin");try{(0,le.statSync)(a)}catch{y("file not found: %s",a)}let s=OD(a,o,r),{client:u,profile:c}=await P("library"),l=Ge(c),d=Je(c),p=await zD(u,a,s,r,l,d,!1);p.status==="failed"&&y("upload failed: %s",p.error),v({json:()=>p,human:()=>{p.status==="skipped"&&E("Skipped (unchanged): %s",s)}})}),e.command("download").description("Download session files from PocketBase").argument("[dir]","output directory",".").option("--key <key>","download a specific file by key").option("--machine-id <id>","download all files from a specific machine").action(async(t,n)=>{let{client:i}=await P("library"),r=[];n.key&&r.push(`key='${lm(n.key)}'`),n.machineId&&r.push(`machine_id='${lm(n.machineId)}'`);let o=r.length>0?r.join(" && "):"",a=await k("Fetching session files...",()=>i.collection("session_files").getFullList({sort:"key",filter:o}));if(a.length===0){E("No session files found");return}E("Downloading %s files to %s",a.length,t);let s=await i.files.getToken(),u=0,c=0;for(let l of a){let d=l.key,p=l.file,f=(0,Se.join)(t,d),g=i.files.getURL(l,p,{token:s});try{let x=await fetch(g);if(!x.ok){E("Failed: %s \u2014 HTTP %s",d,x.status),c++;continue}let S=Buffer.from(await x.arrayBuffer());(0,le.mkdirSync)((0,Se.dirname)(f),{recursive:!0}),(0,le.writeFileSync)(f,S),I("Downloaded: %s (%s)",d,it(S.length)),u++}catch(x){let S=x instanceof Error?x.message:String(x);E("Failed: %s \u2014 %s",d,S),c++}}E(""),E("Summary: %s total, %s downloaded, %s failed",a.length,u,c),v({json:()=>a.map(l=>({id:l.id,key:l.key,machine_id:l.machine_id,size:l.size})),human:()=>{}})}),e}function PD(e){e.addCommand(Gx())}var ga=require("node:child_process"),he=require("node:fs"),TD=require("node:os"),St=require("node:path");function AD(){return!0}var jD="https://registry.npmjs.org",Jx=15e3,UD="@zenku";function Kx(){let{platform:e,arch:t}=process,n=["darwin-arm64","darwin-x64","linux-arm64","linux-x64"],i=`${e}-${t}`;return n.includes(i)||y("Unsupported platform: %s",i),`cli-${i}`}async function Hx(e){let t=`${jD}/${UD}/${e}/latest`,n=new AbortController,i=setTimeout(()=>n.abort(),Jx);try{let r=await fetch(t,{signal:n.signal});if(!r.ok)throw new Error(`HTTP ${r.status}`);return(await r.json()).version}catch(r){throw r instanceof DOMException&&r.name==="AbortError"?new Error("request timed out"):r}finally{clearTimeout(i)}}function Yx(e,t){let n=`${e}-${t}.tgz`,i=`${jD}/${UD}/${e}/-/${n}`,r=(0,he.mkdtempSync)((0,St.join)((0,TD.tmpdir)(),"zenku-upgrade-"));try{(0,ga.execSync)(`curl -fsSL "${i}" -o "${(0,St.join)(r,n)}"`,{stdio:"pipe"}),(0,ga.execSync)(`tar xzf "${(0,St.join)(r,n)}" -C "${r}"`,{stdio:"pipe"});let o=(0,St.join)(r,"package","zenku"),a=process.execPath,s=(0,St.dirname)(a),u=(0,St.join)(s,`.zenku-upgrade-${process.pid}`),c=!1;try{(0,he.accessSync)(s,he.constants.W_OK)}catch{c=!0}if(c)(0,ga.execSync)(`sudo install -m 755 "${o}" "${a}"`,{stdio:"inherit"});else{(0,he.copyFileSync)(o,u),(0,he.chmodSync)(u,493);try{(0,he.renameSync)(u,a)}catch{try{(0,he.unlinkSync)(u)}catch{}throw new Error(`failed to replace binary at ${a}`)}}}finally{(0,he.rmSync)(r,{recursive:!0,force:!0})}}function ND(e){e.addCommand(new z("upgrade").description("Upgrade zenku to the latest version").action(async()=>{if(AD()){v({json:()=>({mode:"bundle",message:"Self-upgrade not available in bundle mode. Use: npm update -g @zenku/cli-node"}),human:()=>{E("Self-upgrade is not available in bundle mode."),E("Update via npm: npm update -g @zenku/cli-node")}});return}let t=dm(),n=Kx(),i=await k("Checking for updates...",()=>Hx(n));if(t===i){v({json:()=>({previous:t,latest:i,upgraded:!1}),human:()=>E("Already up to date (v%s).",t)});return}E("v%s \u2192 v%s",t,i),await k(`Downloading v${i}...`,async()=>{Yx(n,i)}),v({json:()=>({previous:t,latest:i,upgraded:!0}),human:()=>E("Upgraded zenku to v%s.",i)})}))}var Xx={};function dm(){return"0.1.34"}function ZD(){let e=new z;return e.name("zenku").description("Zenku CLI \u2014 manage PocketBase services from the terminal.").version(dm()).option("--profile <name>","config profile to use").option("--tenant <id>","override tenant ID for this command").option("--account <id>","override account ID for this command").option("--json","output as JSON").option("--interactive","force interactive mode").option("--non-interactive","force non-interactive mode").hook("preAction",t=>{let n=t.optsWithGlobals();Wv(n.profile??""),zv(n.tenant??""),Pv(n.account??""),Ev(!!n.json),n.interactive&&n.nonInteractive&&y("--interactive and --non-interactive cannot be used together"),n.interactive?Md("interactive"):n.nonInteractive&&Md("non-interactive")}),e.commandsGroup("Core Commands:"),oD(e),uD(e),lD(e),ID(e),e.commandsGroup("Platform Commands:"),rD(e),nD(e),ED(e),e.commandsGroup("Auth & Config:"),Hv(e),Yv(e),Xv(e),eD(e),e.commandsGroup("Other:"),PD(e),ND(e),e.addHelpCommand(new z("help").argument("[command]")),e}var Qx=ZD();Qx.parse();
251
+ `)}})}),e.command("enqueue").description("Enqueue a job").requiredOption("-q, --queue <name>","queue name").requiredOption("--name <jobName>","job name").requiredOption("--data <json>","job data as JSON string").option("--delay <ms>","delay in milliseconds").option("--priority <n>","job priority").option("--attempts <n>","max retry attempts").action(async n=>{let i;try{i=JSON.parse(n.data)}catch{g("invalid JSON for --data")}let r={queue:n.queue,jobName:n.name,data:i},o={};n.delay&&(o.delay=Number(n.delay)),n.priority&&(o.priority=Number(n.priority)),n.attempts&&(o.attempts=Number(n.attempts)),Object.keys(o).length>0&&(r.options=o);let s=await H("jobs"),a=await k("Enqueuing job...",()=>s.mutate("jobs.enqueue",r));v({json:()=>a,human:()=>I("Job enqueued: %s (queue: %s)",a.jobId,a.queue)})}),e.command("retry").description("Retry a failed job").requiredOption("-q, --queue <name>","queue name").argument("<jobId>","job ID").action(async(n,i)=>{let r=await H("jobs");await k("Retrying job...",()=>r.mutate("jobs.retry",{queue:i.queue,jobId:n})),v({json:()=>({success:!0,jobId:n,queue:i.queue}),human:()=>I("Job %s retried",n)})}),e.command("remove").description("Remove a job").requiredOption("-q, --queue <name>","queue name").argument("<jobId>","job ID").action(async(n,i)=>{let r=await H("jobs");await k("Removing job...",()=>r.mutate("jobs.remove",{queue:i.queue,jobId:n})),v({json:()=>({success:!0,jobId:n,queue:i.queue}),human:()=>I("Job %s removed",n)})}),e.command("pause").description("Pause a queue").requiredOption("-q, --queue <name>","queue name").action(async n=>{let i=await H("jobs");await k("Pausing queue...",()=>i.mutate("jobs.pause",{queue:n.queue})),v({json:()=>({success:!0,queue:n.queue}),human:()=>I("Queue %s paused",n.queue)})}),e.command("resume").description("Resume a paused queue").requiredOption("-q, --queue <name>","queue name").action(async n=>{let i=await H("jobs");await k("Resuming queue...",()=>i.mutate("jobs.resume",{queue:n.queue})),v({json:()=>({success:!0,queue:n.queue}),human:()=>I("Queue %s resumed",n.queue)})});let t=new O("schedulers").description("Manage cron schedulers");return t.command("list").description("List schedulers for a queue").requiredOption("-q, --queue <name>","queue name").action(async n=>{let i=await H("jobs"),r=await k("Fetching schedulers...",()=>i.query("schedulers.list",{queue:n.queue}));v({json:()=>r,human:()=>{let o=r.map(s=>[W(s.id),W(s.name),W(s.pattern),W(s.timezone),Qt(s.next)]);B(["ID","NAME","PATTERN","TIMEZONE","NEXT RUN"],o)}})}),t.command("get").description("Get scheduler details").requiredOption("-q, --queue <name>","queue name").argument("<id>","scheduler ID").action(async(n,i)=>{let r=await H("jobs"),o=await k("Fetching scheduler...",()=>r.query("schedulers.get",{queue:i.queue,id:n}));v({json:()=>o,human:()=>{process.stdout.write(`ID: ${W(o.id)}
252
+ `),process.stdout.write(`Name: ${W(o.name)}
253
+ `),process.stdout.write(`Pattern: ${W(o.pattern)}
254
+ `),process.stdout.write(`Timezone: ${W(o.timezone)}
255
+ `),process.stdout.write(`Next Run: ${Qt(o.next)}
256
+ `)}})}),t.command("upsert").description("Create or update a scheduler").requiredOption("-q, --queue <name>","queue name").requiredOption("--id <id>","scheduler ID").requiredOption("--pattern <cron>","cron pattern").option("--timezone <tz>","timezone (e.g., America/New_York)").option("--data <json>","job data as JSON string").action(async n=>{let i={queue:n.queue,id:n.id,pattern:n.pattern};if(n.timezone&&(i.timezone=n.timezone),n.data)try{i.data=JSON.parse(n.data)}catch{g("invalid JSON for --data")}let r=await H("jobs"),o=await k("Upserting scheduler...",()=>r.mutate("schedulers.upsert",i));v({json:()=>o,human:()=>I("Scheduler upserted: %s",o.schedulerId)})}),t.command("remove").description("Remove a scheduler").requiredOption("-q, --queue <name>","queue name").argument("<id>","scheduler ID").action(async(n,i)=>{let r=await H("jobs");await k("Removing scheduler...",()=>r.mutate("schedulers.remove",{queue:i.queue,id:n})),v({json:()=>({success:!0,id:n,queue:i.queue}),human:()=>I("Scheduler %s removed",n)})}),e.addCommand(t),e.command("web").description("Open the Bull Board dashboard in the browser").option("--no-open","print the URL without opening the browser").action(async({open:n})=>{let i=ie(ue()),{profile:r}=se(i),o=r.services.jobs;o||g("no jobs API URL configured (run `zenku profile show` to check)");let s=`${o.replace(/\/+$/,"")}/dashboard`;if(n){let a=process.platform==="darwin"?"open":process.platform==="win32"?"start":"xdg-open";(0,my.exec)(`${a} "${s}"`)}v({json:()=>({url:s}),human:()=>E("Opening %s",s)})}),e}function fy(e){e.addCommand(hk())}var zm={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6},hy=new Map,gy=new Map;function Om(e,t){let n=e.toLowerCase();if(t&&n in t)return t[n];if(!/^\d+$/.test(e))throw new Error(`invalid numeric token: ${e}`);return Number(e)}function vy(e,t,n,i,r,o){if(e<i||e>r||t<i||t>r)throw new Error(`value out of range (${i}-${r})`);if(t<e)throw new Error(`range end ${t} must be >= start ${e}`);if(n<=0)throw new Error("step must be > 0");let s=[];for(let a=e;a<=t;a+=n)o&&a===7?s.push(0):s.push(a);return s}function Hn(e,t,n,i,r=!1){if(e==="*")return{any:!0,values:new Set};let o=new Set,s=e.split(",").map(a=>a.trim());if(s.some(a=>a.length===0))throw new Error(`invalid cron field: ${e}`);for(let a of s){let[u,c]=a.split("/");if(a.split("/").length>2)throw new Error(`invalid step syntax: ${a}`);let l=c?Number(c):1;if(Number.isNaN(l)||!Number.isInteger(l)||l<=0)throw new Error(`invalid step value: ${a}`);if(u==="*"){for(let p of vy(t,n,l,t,n,r))o.add(p);continue}if(u.includes("-")){let[p,m]=u.split("-");if(!p||!m)throw new Error(`invalid range syntax: ${a}`);let D=Om(p,i),x=Om(m,i);for(let F of vy(D,x,l,t,n,r))o.add(F);continue}let d=Om(u,i);if(d<t||d>n)throw new Error(`value ${d} out of range (${t}-${n})`);o.add(r&&d===7?0:d)}if(o.size===0)throw new Error(`no values resolved from field: ${e}`);return{any:!1,values:o}}function yy(e){let t=hy.get(e);if(t)return t;let n=e.trim().split(/\s+/);if(n.length!==5)throw new Error("cron expression must have exactly 5 fields");let i={minute:Hn(n[0],0,59),hour:Hn(n[1],0,23),dayOfMonth:Hn(n[2],1,31),month:Hn(n[3],1,12),dayOfWeek:Hn(n[4],0,7,zm,!0)};return hy.set(e,i),i}function by(e){try{Intl.DateTimeFormat("en-US",{timeZone:e}).format(new Date)}catch{throw new Error(`invalid timezone: ${e}`)}}function gk(e){let t=gy.get(e);if(t)return t;let n=new Intl.DateTimeFormat("en-US",{timeZone:e,minute:"2-digit",hour:"2-digit",day:"2-digit",month:"2-digit",weekday:"short",year:"numeric",hour12:!1});return gy.set(e,n),n}var Dy={Sun:0,Mon:1,Tue:2,Wed:3,Thu:4,Fri:5,Sat:6};function $y(e,t){by(t);let i=gk(t).formatToParts(e),r=new Map(i.map(d=>[d.type,d.value])),o=r.get("weekday");if(!o||!(o in Dy))throw new Error(`failed to resolve weekday for timezone: ${t}`);let s=Number(r.get("year")),a=Number(r.get("month")),u=Number(r.get("day")),c=Number(r.get("hour")),l=Number(r.get("minute"));if([s,a,u,c,l].some(d=>Number.isNaN(d)||!Number.isInteger(d)))throw new Error(`failed to parse date parts for timezone: ${t}`);return{year:s,month:a,day:u,hour:c,minute:l,dayOfWeek:Dy[o]}}function Yn(e,t){return e.any||e.values.has(t)}function _y(e){yy(e)}function xy(e){by(e)}function wy(e,t,n){let i=yy(e),r=$y(t,n);if(!Yn(i.minute,r.minute)||!Yn(i.hour,r.hour)||!Yn(i.month,r.month))return!1;let o=Yn(i.dayOfMonth,r.day),s=Yn(i.dayOfWeek,r.dayOfWeek);return i.dayOfMonth.any&&i.dayOfWeek.any?!0:i.dayOfMonth.any?s:i.dayOfWeek.any?o:o||s}function Pm(e,t){let n=$y(e,t),i=String(n.year).padStart(4,"0"),r=String(n.month).padStart(2,"0"),o=String(n.day).padStart(2,"0"),s=String(n.hour).padStart(2,"0"),a=String(n.minute).padStart(2,"0");return`${i}-${r}-${o}T${s}:${a}`}function vk(e){if(e===void 0)return 0;if(!Number.isInteger(e)||e<0||e>59)throw new Error("minute must be an integer between 0 and 59");return e}function Dk(e){if(e===void 0)return 0;if(!Number.isInteger(e)||e<0||e>23)throw new Error("hour must be an integer between 0 and 23");return e}function yk(e){let t=e.split(",").map(i=>i.trim()).filter(i=>i.length>0);if(t.length===0)throw new Error("weekday is required for weekly preset");let n=t.map(i=>{let r=i.toLowerCase();if(r in zm)return String(zm[r]);if(!/^\d+$/.test(i))throw new Error(`invalid weekday token: ${i}`);let o=Number(i);if(!Number.isInteger(o)||o<0||o>7)throw new Error(`weekday out of range: ${i}`);return String(o===7?0:o)});return Array.from(new Set(n)).join(",")}function ky(e){let t=vk(e.minute);if(e.preset==="hourly")return`${t} * * * *`;let n=Dk(e.hour);if(e.preset==="daily")return`${t} ${n} * * *`;let i=e.weekday?.trim();if(!i)throw new Error("--weekday is required for weekly preset");let r=yk(i);return`${t} ${n} * * ${r}`}var jm=require("node:child_process"),Pt=require("node:fs"),Iy=require("node:os"),Xn=require("node:path");var Am=require("node:path");function bk(e){let t=e.toLowerCase();return t==="node"||t==="node.exe"||t==="bun"}function $k(e){let t=e.toLowerCase();return t==="zenku"||t==="zenku.exe"||t==="zenku-test"||t==="zenku-test.exe"}function Vr(e){let t=process.argv[1]??"",n=process.execPath;return t.length>0&&!t.startsWith("-")&&(t.endsWith(".js")||t.endsWith(".cjs")||t.endsWith(".mjs")||t.includes("zenku"))?{executable:n,args:[t,"schedule","tick","--scope",e,"--non-interactive"]}:{executable:n,args:["schedule","tick","--scope",e,"--non-interactive"]}}function _k(e){return e.includes("--interactive")||e.includes("--non-interactive")}function xk(e){let t=(0,Am.basename)(e.executable);return!!($k(t)||bk(t)&&e.args.length>0&&(0,Am.basename)(e.args[0]).toLowerCase().includes("zenku"))}function Sy(e){return!xk(e)||_k(e.args)?e:{executable:e.executable,args:[...e.args,"--non-interactive"]}}function Wr(e){return`app.zenku.schedule.${e}`}function Um(e){return e==="user"?(0,Xn.join)((0,Iy.homedir)(),"Library","LaunchAgents",`${Wr(e)}.plist`):(0,Xn.join)("/Library","LaunchDaemons",`${Wr(e)}.plist`)}function Cy(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function wk(e){let t=Wr(e),n=Vr(e),i=[n.executable,...n.args].map(r=>` <string>${Cy(r)}</string>`).join(`
257
+ `);return`<?xml version="1.0" encoding="UTF-8"?>
258
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
259
+ <plist version="1.0">
260
+ <dict>
261
+ <key>Label</key>
262
+ <string>${Cy(t)}</string>
263
+ <key>ProgramArguments</key>
264
+ <array>
265
+ ${i}
266
+ </array>
267
+ <key>StartInterval</key>
268
+ <integer>60</integer>
269
+ <key>RunAtLoad</key>
270
+ <true/>
271
+ </dict>
272
+ </plist>
273
+ `}function Tm(e,t,n=!1){try{(0,jm.execFileSync)(e,t,{stdio:"ignore"})}catch(i){if(!n)throw i}}function Nm(e){if(e==="system")return"system";let t=process.getuid?.();if(t===void 0)throw new Error("failed to resolve uid for user LaunchAgent");return`gui/${t}`}function kk(e,t){let n=Um(e),i=Wr(e),r=Nm(e),o=wk(e),s=[`write ${n}`,`launchctl bootout ${r} ${n} (ignore errors if not loaded)`,`launchctl bootstrap ${r} ${n}`];return t?{scope:e,platform:"darwin",dryRun:!0,actions:s,files:{[n]:o},details:{label:i,domain:r,plistPath:n}}:((0,Pt.mkdirSync)((0,Xn.dirname)(n),{recursive:!0}),(0,Pt.writeFileSync)(n,o,"utf8"),Tm("launchctl",["bootout",r,n],!0),Tm("launchctl",["bootstrap",r,n]),{scope:e,platform:"darwin",dryRun:!1,actions:s,details:{label:i,domain:r,plistPath:n}})}function Sk(e,t){let n=Um(e),i=Wr(e),r=Nm(e),o=[`launchctl bootout ${r} ${n}`,`remove ${n}`];return t?{scope:e,platform:"darwin",dryRun:!0,actions:o,details:{label:i,domain:r,plistPath:n}}:(Tm("launchctl",["bootout",r,n],!0),(0,Pt.rmSync)(n,{force:!0}),{scope:e,platform:"darwin",dryRun:!1,actions:o,details:{label:i,domain:r,plistPath:n}})}function Ck(e){let t=Um(e),n=Wr(e),i=Nm(e),r=(0,Pt.existsSync)(t),o=!1;try{(0,jm.execFileSync)("launchctl",["print",`${i}/${n}`],{stdio:"ignore"}),o=!0}catch{o=!1}return{scope:e,installed:r,platform:"darwin",details:{plistPath:t,label:n,domain:i,loaded:o}}}var Ey={install:kk,uninstall:Sk,status:Ck};var Ps=require("node:child_process"),Qe=require("node:fs"),Fy=require("node:os"),At=require("node:path");function Rm(e){return e==="user"?(0,At.join)((0,Fy.homedir)(),".config","systemd","user"):"/etc/systemd/system"}function Ts(e){return`zenku-schedule-${e}.service`}function vt(e){return`zenku-schedule-${e}.timer`}function Ik(e){return`"${e.replace(/(["\\`$])/g,"\\$1")}"`}function Ek(e){let t=Vr(e),n=[t.executable,...t.args].map(i=>Ik(i)).join(" ");return`[Unit]
274
+ Description=Zenku schedule dispatcher (${e})
275
+ After=network-online.target
276
+
277
+ [Service]
278
+ Type=oneshot
279
+ ExecStart=${n}
280
+ `}function Fk(e){let t=Ts(e);return`[Unit]
281
+ Description=Zenku schedule timer (${e})
282
+
283
+ [Timer]
284
+ OnCalendar=*-*-* *:*:00
285
+ AccuracySec=1s
286
+ Persistent=true
287
+ Unit=${t}
288
+
289
+ [Install]
290
+ WantedBy=timers.target
291
+ `}function As(e,t,n=!1){let i=t==="user"?["--user",...e]:e;try{(0,Ps.execFileSync)("systemctl",i,{stdio:"ignore"})}catch(r){if(!n)throw r}}function Ok(e,t){let n=Rm(e),i=(0,At.join)(n,Ts(e)),r=(0,At.join)(n,vt(e)),o=Ek(e),s=Fk(e),a=[`write ${i}`,`write ${r}`,`systemctl ${e==="user"?"--user ":""}daemon-reload`,`systemctl ${e==="user"?"--user ":""}enable --now ${vt(e)}`];return t?{scope:e,platform:"linux",dryRun:!0,actions:a,files:{[i]:o,[r]:s},details:{servicePath:i,timerPath:r}}:((0,Qe.mkdirSync)(n,{recursive:!0}),(0,Qe.writeFileSync)(i,o,"utf8"),(0,Qe.writeFileSync)(r,s,"utf8"),As(["daemon-reload"],e),As(["enable","--now",vt(e)],e),{scope:e,platform:"linux",dryRun:!1,actions:a,details:{servicePath:i,timerPath:r}})}function zk(e,t){let n=Rm(e),i=(0,At.join)(n,Ts(e)),r=(0,At.join)(n,vt(e)),o=[`systemctl ${e==="user"?"--user ":""}disable --now ${vt(e)}`,`remove ${i}`,`remove ${r}`,`systemctl ${e==="user"?"--user ":""}daemon-reload`];return t?{scope:e,platform:"linux",dryRun:!0,actions:o,details:{servicePath:i,timerPath:r}}:(As(["disable","--now",vt(e)],e,!0),(0,Qe.rmSync)(i,{force:!0}),(0,Qe.rmSync)(r,{force:!0}),As(["daemon-reload"],e,!0),{scope:e,platform:"linux",dryRun:!1,actions:o,details:{servicePath:i,timerPath:r}})}function Pk(e){let t=Rm(e),n=(0,At.join)(t,Ts(e)),i=(0,At.join)(t,vt(e)),r=(0,Qe.existsSync)(n)&&(0,Qe.existsSync)(i),o=e==="user"?["--user"]:[],s=!1,a=!1;try{(0,Ps.execFileSync)("systemctl",[...o,"is-enabled",vt(e)],{stdio:"ignore"}),s=!0}catch{s=!1}try{(0,Ps.execFileSync)("systemctl",[...o,"is-active",vt(e)],{stdio:"ignore"}),a=!0}catch{a=!1}return{scope:e,installed:r,platform:"linux",details:{servicePath:n,timerPath:i,enabled:s,active:a}}}var Oy={install:Ok,uninstall:zk,status:Pk};var Bm=require("node:child_process");function Lm(e){return e==="system"?"ZenkuScheduleSystem":"ZenkuScheduleUser"}function Ak(e){return`"${e.replace(/"/g,'\\"')}"`}function Tk(e){let t=Vr(e);return[t.executable,...t.args].map(n=>Ak(n)).join(" ")}function zy(e,t=!1){try{(0,Bm.execFileSync)("schtasks",e,{stdio:"ignore"})}catch(n){if(!t)throw n}}function jk(e,t){let n=Lm(e),i=Tk(e),r=["/Create","/F","/TN",n,"/SC","MINUTE","/MO","1","/TR",i];e==="system"&&r.push("/RU","SYSTEM");let o=[`schtasks ${r.join(" ")}`];return t?{scope:e,platform:"win32",dryRun:!0,actions:o,details:{taskName:n,command:i}}:(zy(r),{scope:e,platform:"win32",dryRun:!1,actions:o,details:{taskName:n,command:i}})}function Uk(e,t){let n=Lm(e),i=["/Delete","/F","/TN",n],r=[`schtasks ${i.join(" ")}`];return t?{scope:e,platform:"win32",dryRun:!0,actions:r,details:{taskName:n}}:(zy(i,!0),{scope:e,platform:"win32",dryRun:!1,actions:r,details:{taskName:n}})}function Nk(e){let t=Lm(e),n=!1;try{(0,Bm.execFileSync)("schtasks",["/Query","/TN",t],{stdio:"ignore"}),n=!0}catch{n=!1}return{scope:e,installed:n,platform:"win32",details:{taskName:t}}}var Py={install:jk,uninstall:Uk,status:Nk};function js(){if(process.platform==="darwin")return Ey;if(process.platform==="linux")return Oy;if(process.platform==="win32")return Py;throw new Error(`unsupported platform: ${process.platform}`)}var le=require("node:fs"),Tt=require("node:path");var Rk=S.enum(["user","system"]),Bk=S.object({profile:S.string().min(1),tenantId:S.string().optional(),accountId:S.string().optional()}),Lk=S.object({executable:S.string().min(1),args:S.array(S.string()).default([])}),Zm=S.object({id:S.string().min(1).max(100).regex(/^[A-Za-z0-9._:-]+$/,"id can only contain A-Z, a-z, 0-9, ., _, :, -"),scope:Rk,enabled:S.boolean().default(!0),cron:S.string().min(1),timezone:S.string().min(1),context:Bk,command:Lk,createdAt:S.string().datetime(),updatedAt:S.string().datetime()}),Ay=S.array(Zm),Zk=S.object({lastRunAt:S.string().datetime().optional(),lastExitCode:S.number().int().nullable().optional(),lastDurationMs:S.number().int().nonnegative().optional(),lastError:S.string().optional(),lastTriggeredMinute:S.string().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/).optional()}),Mm=S.object({version:S.literal(1),schedules:S.record(S.string(),Zk).default({})});var Mk=448,qk=384,Vk=493,Wk=420,Ty="schedules.json",jy="schedule-state.json",Gk="locks";function Jk(){let e=process.env.ZENKU_SCHEDULE_SYSTEM_DIR;if(e)return e;if(process.platform==="darwin")return"/Library/Application Support/zenku";if(process.platform==="linux")return"/var/lib/zenku";if(process.platform==="win32")return(0,Tt.join)(process.env.ProgramData||"C:\\ProgramData","zenku");throw new Error(`unsupported platform: ${process.platform}`)}function qm(e){if(e==="user"){let t=En();return(0,Tt.dirname)(t)}return Jk()}function Us(e){return e==="user"?{dirMode:Mk,fileMode:qk}:{dirMode:Vk,fileMode:Wk}}function jt(e,t){if(!(e!=="system"||t)&&process.platform!=="win32"){let n=process.getuid?.();if(n!==void 0&&n!==0)throw new Error("system scope requires elevated privileges (run as root/Administrator)")}}function Uy(e,t){(0,le.existsSync)(e)||(0,le.mkdirSync)(e,{recursive:!0,mode:t})}function Ny(e,t,n){let i=`${e}.tmp-${process.pid}-${Date.now()}`;(0,le.writeFileSync)(i,JSON.stringify(t,null,2),{mode:n}),(0,le.renameSync)(i,e)}function Ry(e,t){if(!(0,le.existsSync)(e))return t;let n=(0,le.readFileSync)(e,"utf8");return JSON.parse(n)}function Ns(e,t){return(0,Tt.join)(qm(e),t)}function By(e){let t=qm(e),{dirMode:n}=Us(e);Uy(t,n)}function Ly(e){let t=qm(e),{dirMode:n}=Us(e),i=(0,Tt.join)(t,Gk);return Uy(i,n),i}function Dt(e){let t=Ns(e,Ty),n=Ry(t,[]),i=Ay.parse(n);for(let r of i)if(r.scope!==e)throw new Error(`schedule ${r.id} has scope ${r.scope}, expected ${e}`);return i}function Rs(e,t){By(e);let n=Ns(e,Ty),{fileMode:i}=Us(e),r=t.map(o=>Zm.parse(o));Ny(n,r,i)}function er(e){let t=Ns(e,jy),n=Ry(t,{version:1,schedules:{}});return Mm.parse(n)}function Qn(e,t){By(e);let n=Ns(e,jy),{fileMode:i}=Us(e),r=Mm.parse(t);Ny(n,r,i)}function Kk(e){return`run-${e.replace(/[^A-Za-z0-9._-]/g,"_")}.lock`}function Zy(e){let t;try{t=(0,le.openSync)(e,"wx",384)}catch{return null}return(0,le.writeFileSync)(t,`${process.pid}
292
+ ${new Date().toISOString()}
293
+ `,{encoding:"utf8"}),{release:()=>{try{(0,le.closeSync)(t)}catch{}(0,le.rmSync)(e,{force:!0})}}}function My(e){let t=Ly(e),n=(0,Tt.join)(t,"tick.lock");return Zy(n)}function qy(e,t){let n=Ly(e),i=(0,Tt.join)(n,Kk(t));return Zy(i)}function Vy(e,t){let n=e.schedules[t];if(n)return n;let i={};return e.schedules[t]=i,i}function Wy(e,t){delete e.schedules[t]}var Gy=require("node:child_process");function Hk(e){let t={ZENKU_SCHEDULED:"1",ZENKU_SCHEDULE_ID:e.id};return t.ZENKU_PROFILE=e.context.profile,e.context.tenantId&&(t.ZENKU_TENANT_ID=e.context.tenantId),e.context.accountId&&(t.ZENKU_ACCOUNT_ID=e.context.accountId),t}function Yk(e,t){return{...e,...t}}function Xk(e,t,n){return new Promise((i,r)=>{let o=(0,Gy.spawn)(e.executable,e.args,{env:t,stdio:n,shell:!1});o.once("error",s=>{r(s)}),o.once("exit",(s,a)=>{i({code:s,signal:a})})})}function Qk(e){return Sy(e)}async function Jy(e,t,n,i){let r=Vy(n,t.id),o=i.minuteKey;if(o&&r.lastTriggeredMinute===o)return{id:t.id,executed:!1,skippedReason:"already_triggered"};let s=qy(e,t.id);if(!s)return o&&(r.lastTriggeredMinute=o),{id:t.id,executed:!1,skippedReason:"overlap"};let a=Qk(t.command),u=Hk(t);if(i.dryRun)return s.release(),{id:t.id,executed:!1,dryRun:!0,command:a,env:u};let c=Date.now(),l=i.now.toISOString();try{let d=await Xk(a,Yk(process.env,u),i.stdio??"ignore"),p=Date.now()-c,m=d.code===0?void 0:d.code===null?`process exited via signal ${d.signal??"unknown"}`:`process exited with code ${d.code}`;return r.lastRunAt=l,r.lastExitCode=d.code,r.lastDurationMs=p,r.lastError=m,o&&(r.lastTriggeredMinute=o),{id:t.id,executed:!0,exitCode:d.code,durationMs:p,error:m}}catch(d){let p=Date.now()-c,m=d instanceof Error?d.message:String(d);return r.lastRunAt=l,r.lastExitCode=null,r.lastDurationMs=p,r.lastError=m,o&&(r.lastTriggeredMinute=o),{id:t.id,executed:!0,exitCode:null,durationMs:p,error:m}}finally{s.release()}}async function Ky(e){let t=My(e);if(!t)return{scope:e,locked:!0,minuteKey:"",executed:0,skipped:0,results:[]};let n=Dt(e),i=er(e),r=new Date,o=[];try{for(let s of n){if(!s.enabled){o.push({id:s.id,executed:!1,skippedReason:"not_due"});continue}if(!wy(s.cron,r,s.timezone)){o.push({id:s.id,executed:!1,skippedReason:"not_due"});continue}let a=Pm(r,s.timezone),u=await Jy(e,s,i,{now:r,minuteKey:a,stdio:"ignore"});o.push(u)}Qn(e,i)}finally{t.release()}return{scope:e,locked:!1,minuteKey:Pm(r,"UTC"),executed:o.filter(s=>s.executed).length,skipped:o.filter(s=>!s.executed).length,results:o}}async function Hy(e,t,n){let i=er(e),r=await Jy(e,t,i,{now:new Date,dryRun:n,stdio:"inherit"});return n||Qn(e,i),r}function et(e){if(!e||e.length===0)return"user";if(e==="user"||e==="system")return e;g('invalid scope "%s" (expected user|system)',e)}function eS(e){if(e==="hourly"||e==="daily"||e==="weekly")return e;g('invalid preset "%s" (expected hourly|daily|weekly)',e||"")}function Yy(e,t){if(e===void 0)return;let n=Number(e);return Number.isInteger(n)||g("%s must be an integer",t),n}function Xy(e){if(!e)return"-";try{return new Date(String(e)).toISOString()}catch{return String(e)}}function Vm(e){return[e.command.executable,...e.command.args].map(t=>/\s/.test(t)?JSON.stringify(t):t).join(" ")}function Wm(e,t){let n=e.find(i=>i.id===t);return n||g('schedule "%s" not found',t),n}function tS(e,t){e==="hourly"&&t.hour!==void 0&&g("--hour is not valid with --preset hourly"),(e==="hourly"||e==="daily")&&t.weekday&&g("--weekday is only valid with --preset weekly")}function rS(){let e=new O("schedule").description("Manage local offline schedules");e.command("add").description("Create a local schedule").requiredOption("--id <id>","schedule ID").option("--cron <expr>","cron expression").option("--preset <name>","preset: hourly|daily|weekly").option("--minute <0-59>","minute for preset-based schedules").option("--hour <0-23>","hour for daily/weekly presets").option("--weekday <day>","weekday for weekly preset (0-6, 7, or mon,tue,...)").option("--timezone <tz>","IANA timezone","UTC").option("--scope <scope>","scope: user|system","user").option("--profile <name>","profile to pin for scheduled runs").option("--tenant <id>","tenant ID to pin").option("--account <id>","account ID to pin").argument("<command...>","executable and args (use -- before command)").action((i,r)=>{try{let o=et(r.scope);jt(o,!1),(!r.cron&&!r.preset||r.cron&&r.preset)&&g("provide exactly one of --cron or --preset"),i.length||g("command is required (use -- <executable> [args...])");let s=r.timezone.trim()||"UTC";xy(s);let a="";if(r.cron)(r.minute!==void 0||r.hour!==void 0||r.weekday)&&g("preset flags (--minute/--hour/--weekday) require --preset"),a=r.cron.trim();else{let x=eS(r.preset);tS(x,{hour:r.hour,weekday:r.weekday}),a=ky({preset:x,minute:Yy(r.minute,"--minute"),hour:Yy(r.hour,"--hour"),weekday:r.weekday})}_y(a);let u=r.profile||ie(ue()),{profile:c}=se(u),l=r.tenant??Te(c),d=r.account??je(c),p=Dt(o);p.some(x=>x.id===r.id)&&g('schedule "%s" already exists',r.id);let m=new Date().toISOString(),D={id:r.id,scope:o,enabled:!0,cron:a,timezone:s,context:{profile:u,...l?{tenantId:l}:{},...d?{accountId:d}:{}},command:{executable:i[0],args:i.slice(1)},createdAt:m,updatedAt:m};p.push(D),Rs(o,p),v({json:()=>D,human:()=>I('Schedule "%s" created',r.id)})}catch(o){g("%s",A(o))}}),e.command("list").description("List schedules").option("--scope <scope>","scope: user|system","user").action(i=>{try{let r=et(i.scope),o=Dt(r),s=er(r),a=o.map(u=>({...u,state:s.schedules[u.id]||null}));v({json:()=>a,human:()=>{let u=a.map(c=>[c.id,c.enabled?"yes":"no",c.cron,c.timezone,Vm(c),Xy(c.state?.lastRunAt),W(c.state?.lastExitCode??"-")]);B(["ID","ENABLED","CRON","TIMEZONE","COMMAND","LAST RUN","EXIT"],u)}})}catch(r){g("%s",A(r))}}),e.command("get").description("Get schedule details").option("--scope <scope>","scope: user|system","user").argument("<id>","schedule ID").action((i,r)=>{try{let o=et(r.scope),s=Dt(o),a=Wm(s,i),u=er(o);v({json:()=>({...a,state:u.schedules[i]||null}),human:()=>{process.stdout.write(`ID: ${a.id}
294
+ `),process.stdout.write(`Scope: ${a.scope}
295
+ `),process.stdout.write(`Enabled: ${a.enabled?"yes":"no"}
296
+ `),process.stdout.write(`Cron: ${a.cron}
297
+ `),process.stdout.write(`Timezone: ${a.timezone}
298
+ `),process.stdout.write(`Profile: ${a.context.profile}
299
+ `),process.stdout.write(`Tenant ID: ${a.context.tenantId||"-"}
300
+ `),process.stdout.write(`Account ID:${a.context.accountId||"-"}
301
+ `),process.stdout.write(`Command: ${Vm(a)}
302
+ `);let c=u.schedules[i];process.stdout.write(`Last Run: ${c?.lastRunAt?Xy(c.lastRunAt):"-"}
303
+ `),process.stdout.write(`Last Exit: ${c?.lastExitCode??"-"}
304
+ `),process.stdout.write(`Last Err: ${c?.lastError||"-"}
305
+ `)}})}catch(o){g("%s",A(o))}}),e.command("remove").description("Remove a schedule").option("--scope <scope>","scope: user|system","user").argument("<id>","schedule ID").action((i,r)=>{try{let o=et(r.scope);jt(o,!1);let s=Dt(o),a=s.findIndex(c=>c.id===i);a===-1&&g('schedule "%s" not found',i),s.splice(a,1),Rs(o,s);let u=er(o);Wy(u,i),Qn(o,u),v({json:()=>({success:!0,id:i,scope:o}),human:()=>I('Schedule "%s" removed',i)})}catch(o){g("%s",A(o))}});function t(i,r,o){jt(r,!1);let s=Dt(r),a=Wm(s,i);a.enabled=o,a.updatedAt=new Date().toISOString(),Rs(r,s)}e.command("enable").description("Enable a schedule").option("--scope <scope>","scope: user|system","user").argument("<id>","schedule ID").action((i,r)=>{try{let o=et(r.scope);t(i,o,!0),v({json:()=>({success:!0,id:i,enabled:!0,scope:o}),human:()=>I('Schedule "%s" enabled',i)})}catch(o){g("%s",A(o))}}),e.command("disable").description("Disable a schedule").option("--scope <scope>","scope: user|system","user").argument("<id>","schedule ID").action((i,r)=>{try{let o=et(r.scope);t(i,o,!1),v({json:()=>({success:!0,id:i,enabled:!1,scope:o}),human:()=>I('Schedule "%s" disabled',i)})}catch(o){g("%s",A(o))}}),e.command("run").description("Run a schedule immediately").option("--scope <scope>","scope: user|system","user").option("--dry-run","print execution details without running").argument("<id>","schedule ID").action(async(i,r)=>{try{let o=et(r.scope),s=!!r.dryRun;jt(o,s);let a=Dt(o),u=Wm(a,i),c=await Hy(o,u,s);v({json:()=>c,human:()=>{if(c.dryRun){E("Dry run: %s",Vm(u));return}(c.exitCode??1)===0?I('Schedule "%s" ran successfully',i):E('Schedule "%s" finished with exit code %s',i,W(c.exitCode??"null"))}})}catch(o){g("%s",A(o))}}),e.command("tick").description("Run one scheduler tick (intended for host scheduler integration)").option("--scope <scope>","scope: user|system","user").action(async i=>{try{let r=et(i.scope);jt(r,!1);let o=await Ky(r);v({json:()=>o,human:()=>{o.locked?E("Tick skipped: another tick is already running."):E("Tick completed: executed=%s skipped=%s",String(o.executed),String(o.skipped))}})}catch(r){g("%s",A(r))}});let n=new O("host").description("Manage host scheduler integration");return n.command("install").description("Install host scheduler integration").option("--scope <scope>","scope: user|system","user").option("--dry-run","show generated artifacts and commands").action(i=>{try{let r=et(i.scope),o=!!i.dryRun;jt(r,o);let a=js().install(r,o);v({json:()=>a,human:()=>{I("%s host scheduler %s",o?"Previewed":"Installed",r);for(let u of a.actions)E("- %s",u)}})}catch(r){g("%s",A(r))}}),n.command("uninstall").description("Remove host scheduler integration").option("--scope <scope>","scope: user|system","user").option("--dry-run","show generated commands").action(i=>{try{let r=et(i.scope),o=!!i.dryRun;jt(r,o);let a=js().uninstall(r,o);v({json:()=>a,human:()=>{I("%s host scheduler %s",o?"Previewed uninstall for":"Uninstalled",r);for(let u of a.actions)E("- %s",u)}})}catch(r){g("%s",A(r))}}),n.command("status").description("Show host scheduler status").option("--scope <scope>","scope: user|system","user").action(i=>{try{let r=et(i.scope),s=js().status(r);v({json:()=>s,human:()=>{E("Platform: %s",s.platform),E("Scope: %s",s.scope),E("Installed: %s",s.installed?"yes":"no");for(let[a,u]of Object.entries(s.details))E("%s: %s",a,W(u))}})}catch(r){g("%s",A(r))}}),e.addCommand(n),e}function Qy(e){e.addCommand(rS())}var de=require("node:fs"),Ee=require("node:path"),ei=require("node:os");function Gm(e){return e||(process.env.CLAUDE_CONFIG_DIR?process.env.CLAUDE_CONFIG_DIR:(0,Ee.join)((0,ei.homedir)(),".claude"))}function eb(e){return e||(process.env.ZENKU_MACHINE_ID?process.env.ZENKU_MACHINE_ID:(0,ei.hostname)())}function Jm(e){let t=[],n;try{n=(0,de.readdirSync)(e,{withFileTypes:!0})}catch{return t}for(let i of n){let r=(0,Ee.join)(e,i.name);i.isDirectory()?t.push(...Jm(r)):i.isFile()&&i.name.endsWith(".jsonl")&&t.push(r)}return t}function at(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function nS(e,t){let n=(0,de.statSync)(e);return Date.now()-n.mtimeMs>=t*86400*1e3}function tb(e,t,n){let i=(0,Ee.relative)(t,e);return`${n}/${i}`}function Km(e){return e.replace(/'/g,"\\'")}async function rb(e,t,n,i,r,o,s){let u=(0,de.statSync)(t).size,c=null;try{let p=await e.collection("session_files").getFirstListItem(`key='${Km(n)}'`);c={id:p.id,size:p.size}}catch{}if(c&&c.size===u)return{status:"skipped",key:n,size:u};if(s)return c?E("[DRY-RUN] Would update: %s (%s -> %s)",n,at(c.size),at(u)):E("[DRY-RUN] Would upload: %s (%s)",n,at(u)),{status:c?"updated":"uploaded",key:n,size:u};let l=(0,de.readFileSync)(t),d=new File([l],(0,Ee.basename)(t),{type:"application/x-ndjson"});try{return c?(await e.collection("session_files").update(c.id,{size:u,file:d}),I("Updated: %s (%s -> %s)",n,at(c.size),at(u)),{status:"updated",key:n,size:u}):(await e.collection("session_files").create({key:n,machine_id:i,size:u,tenant_id:r,account_id:o,file:d}),I("Uploaded: %s (%s)",n,at(u)),{status:"uploaded",key:n,size:u})}catch(p){let m=p instanceof Error?p.message:String(p);return{status:"failed",key:n,size:u,error:m}}}function iS(){let e=new O("sessions").description("Upload and manage Claude Code session transcripts");return e.command("sync").description("Scan local Claude Code sessions and upload new/changed files").option("--machine-id <id>","machine identifier for R2 key namespacing").option("--claude-dir <path>","Claude config directory").option("--dry-run","show what would be uploaded without uploading").option("--cleanup-days <days>","delete local files older than N days after successful upload").action(async t=>{let n=Gm(t.claudeDir),i=eb(t.machineId),r=t.dryRun??!1,o=t.cleanupDays?Number(t.cleanupDays):0;o&&(Number.isNaN(o)||o<1)&&g("--cleanup-days requires a positive integer");let s=(0,Ee.join)(n,"projects"),a=Jm(s);if(a.length===0){E("No session files found in %s",s);return}let{client:u,profile:c}=await T("library"),l=Te(c),d=je(c);o>0&&E("Cleanup mode: syncing files older than %s days",o),E("Scanning %s sessions in %s",a.length,s);let p=0,m=0,D=0,x=0,F=0,R=0;for(let Y of a){if(o>0&&!nS(Y,o)){R++;continue}let P=tb(Y,s,i),G=await rb(u,Y,P,i,l,d,r);switch(G.status){case"uploaded":p++;break;case"updated":m++;break;case"skipped":D++;break;case"failed":E("Failed: %s \u2014 %s",P,G.error),x++;continue}if(o>0)if(r)E("[DRY-RUN] Would delete local: %s",Y);else try{(0,de.unlinkSync)(Y),F++}catch{E("Failed to delete local: %s",Y)}}E(""),o>0?E("Summary: %s total, %s too new (<%sd), %s uploaded, %s updated, %s unchanged, %s deleted locally, %s failed",a.length,R,o,p,m,D,F,x):E("Summary: %s total, %s uploaded, %s updated, %s unchanged, %s failed",a.length,p,m,D,x)}),e.command("list").description("List Claude Code session files").option("--remote","list uploaded session files from PocketBase").option("--claude-dir <path>","Claude config directory").action(async t=>{if(t.remote){let{client:n}=await T("library"),i=await k("Fetching session files...",()=>n.collection("session_files").getList(1,200,{sort:"-created"}));v({json:()=>i.items,human:()=>{let r=i.items.map(o=>[o.id,o.key,o.machine_id,at(o.size),o.created]);B(["ID","KEY","MACHINE","SIZE","CREATED"],r)}})}else{let n=Gm(t.claudeDir),i=(0,Ee.join)(n,"projects"),r=Jm(i);v({json:()=>r.map(o=>{let s=(0,de.statSync)(o);return{path:o,size:s.size,modified:s.mtime}}),human:()=>{let o=r.map(s=>{let a=(0,de.statSync)(s);return[(0,Ee.relative)(i,s),at(a.size),a.mtime.toISOString().slice(0,19)]});B(["PATH","SIZE","MODIFIED"],o),E(`
306
+ %s files, %s total`,r.length,at(r.reduce((s,a)=>s+(0,de.statSync)(a).size,0)))}})}}),e.command("upload").description("Upload a single session file").option("--hook","hook mode: read session path from stdin JSON").option("--machine-id <id>","machine identifier for R2 key namespacing").option("--claude-dir <path>","Claude config directory").argument("[file]","path to .jsonl file (when not using --hook)").action(async(t,n)=>{let i=Gm(n.claudeDir),r=eb(n.machineId),o=(0,Ee.join)(i,"projects"),s;if(n.hook){let m;try{m=(0,de.readFileSync)(0,"utf-8")}catch{g("failed to read from stdin")}let D;try{D=JSON.parse(m)}catch{g("invalid JSON on stdin")}let x=D.transcript_path;x||g("no transcript_path in hook input"),s=x.replace(/^~/,(0,ei.homedir)())}else t?s=t:g("provide a file path or use --hook to read from stdin");try{(0,de.statSync)(s)}catch{g("file not found: %s",s)}let a=tb(s,o,r),{client:u,profile:c}=await T("library"),l=Te(c),d=je(c),p=await rb(u,s,a,r,l,d,!1);p.status==="failed"&&g("upload failed: %s",p.error),v({json:()=>p,human:()=>{p.status==="skipped"&&E("Skipped (unchanged): %s",a)}})}),e.command("download").description("Download session files from PocketBase").argument("[dir]","output directory",".").option("--key <key>","download a specific file by key").option("--machine-id <id>","download all files from a specific machine").action(async(t,n)=>{let{client:i}=await T("library"),r=[];n.key&&r.push(`key='${Km(n.key)}'`),n.machineId&&r.push(`machine_id='${Km(n.machineId)}'`);let o=r.length>0?r.join(" && "):"",s=await k("Fetching session files...",()=>i.collection("session_files").getFullList({sort:"key",filter:o}));if(s.length===0){E("No session files found");return}E("Downloading %s files to %s",s.length,t);let a=await i.files.getToken(),u=0,c=0;for(let l of s){let d=l.key,p=l.file,m=(0,Ee.join)(t,d),D=i.files.getURL(l,p,{token:a});try{let x=await fetch(D);if(!x.ok){E("Failed: %s \u2014 HTTP %s",d,x.status),c++;continue}let F=Buffer.from(await x.arrayBuffer());(0,de.mkdirSync)((0,Ee.dirname)(m),{recursive:!0}),(0,de.writeFileSync)(m,F),I("Downloaded: %s (%s)",d,at(F.length)),u++}catch(x){let F=x instanceof Error?x.message:String(x);E("Failed: %s \u2014 %s",d,F),c++}}E(""),E("Summary: %s total, %s downloaded, %s failed",s.length,u,c),v({json:()=>s.map(l=>({id:l.id,key:l.key,machine_id:l.machine_id,size:l.size})),human:()=>{}})}),e}function nb(e){e.addCommand(iS())}var Bs=require("node:child_process"),ge=require("node:fs"),ob=require("node:os"),Ut=require("node:path");function ib(){return!0}var sb="https://registry.npmjs.org",oS=15e3,ab="@zenku";function sS(){let{platform:e,arch:t}=process,n=["darwin-arm64","darwin-x64","linux-arm64","linux-x64"],i=`${e}-${t}`;return n.includes(i)||g("Unsupported platform: %s",i),`cli-${i}`}async function aS(e){let t=`${sb}/${ab}/${e}/latest`,n=new AbortController,i=setTimeout(()=>n.abort(),oS);try{let r=await fetch(t,{signal:n.signal});if(!r.ok)throw new Error(`HTTP ${r.status}`);return(await r.json()).version}catch(r){throw r instanceof DOMException&&r.name==="AbortError"?new Error("request timed out"):r}finally{clearTimeout(i)}}function uS(e,t){let n=`${e}-${t}.tgz`,i=`${sb}/${ab}/${e}/-/${n}`,r=(0,ge.mkdtempSync)((0,Ut.join)((0,ob.tmpdir)(),"zenku-upgrade-"));try{(0,Bs.execSync)(`curl -fsSL "${i}" -o "${(0,Ut.join)(r,n)}"`,{stdio:"pipe"}),(0,Bs.execSync)(`tar xzf "${(0,Ut.join)(r,n)}" -C "${r}"`,{stdio:"pipe"});let o=(0,Ut.join)(r,"package","zenku"),s=process.execPath,a=(0,Ut.dirname)(s),u=(0,Ut.join)(a,`.zenku-upgrade-${process.pid}`),c=!1;try{(0,ge.accessSync)(a,ge.constants.W_OK)}catch{c=!0}if(c)(0,Bs.execSync)(`sudo install -m 755 "${o}" "${s}"`,{stdio:"inherit"});else{(0,ge.copyFileSync)(o,u),(0,ge.chmodSync)(u,493);try{(0,ge.renameSync)(u,s)}catch{try{(0,ge.unlinkSync)(u)}catch{}throw new Error(`failed to replace binary at ${s}`)}}}finally{(0,ge.rmSync)(r,{recursive:!0,force:!0})}}function ub(e){e.addCommand(new O("upgrade").description("Upgrade zenku to the latest version").action(async()=>{if(ib()){v({json:()=>({mode:"bundle",message:"Self-upgrade not available in bundle mode. Use: npm update -g @zenku/cli-node"}),human:()=>{E("Self-upgrade is not available in bundle mode."),E("Update via npm: npm update -g @zenku/cli-node")}});return}let t=Hm(),n=sS(),i=await k("Checking for updates...",()=>aS(n));if(t===i){v({json:()=>({previous:t,latest:i,upgraded:!1}),human:()=>E("Already up to date (v%s).",t)});return}E("v%s \u2192 v%s",t,i),await k(`Downloading v${i}...`,async()=>{uS(n,i)}),v({json:()=>({previous:t,latest:i,upgraded:!0}),human:()=>E("Upgraded zenku to v%s.",i)})}))}var cS={};function Hm(){return"0.1.35"}function db(){let e=new O;return e.name("zenku").description("Zenku CLI \u2014 manage PocketBase services from the terminal.").version(Hm()).option("--profile <name>","config profile to use").option("--tenant <id>","override tenant ID for this command").option("--account <id>","override account ID for this command").option("--json","output as JSON").option("--interactive","force interactive mode").option("--non-interactive","force non-interactive mode").hook("preAction",t=>{let n=t.optsWithGlobals();OD(n.profile??""),vD(n.tenant??""),DD(n.account??""),fD(!!n.json),n.interactive&&n.nonInteractive&&g("--interactive and --non-interactive cannot be used together"),n.interactive?pp("interactive"):n.nonInteractive&&pp("non-interactive")}),e.commandsGroup("Core Commands:"),qD(e),GD(e),KD(e),py(e),e.commandsGroup("Platform Commands:"),LD(e),ZD(e),fy(e),Qy(e),e.commandsGroup("Auth & Config:"),TD(e),jD(e),UD(e),RD(e),e.commandsGroup("Other:"),nb(e),ub(e),e.addHelpCommand(new O("help").argument("[command]")),e}var lS=db();lS.parse();