mdat 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +4 -4
- package/readme.md +1 -1
package/bin/cli.js
CHANGED
|
@@ -129,7 +129,7 @@ ${m.join(`
|
|
|
129
129
|
`;p.forEach(m=>{d+=m}),t.fail(d)}};let a={};u.conflicts=function(f,p){he("<string|object> [array|string]",[f,p],arguments.length),typeof f=="object"?Object.keys(f).forEach(d=>{u.conflicts(d,f[d])}):(e.global(f),a[f]||(a[f]=[]),Array.isArray(p)?p.forEach(d=>u.conflicts(f,d)):a[f].push(p))},u.getConflicting=()=>a,u.conflicting=function(f){Object.keys(f).forEach(p=>{a[p]&&a[p].forEach(d=>{d&&f[p]!==void 0&&f[d]!==void 0&&t.fail(r("Arguments %s and %s are mutually exclusive",p,d))})}),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(a).forEach(p=>{a[p].forEach(d=>{d&&f[n.Parser.camelCase(p)]!==void 0&&f[n.Parser.camelCase(d)]!==void 0&&t.fail(r("Arguments %s and %s are mutually exclusive",p,d))})})},u.recommendCommands=function(f,p){p=p.sort((E,g)=>g.length-E.length);let m=null,A=1/0;for(let E=0,g;(g=p[E])!==void 0;E++){let T=k2(f,g);T<=3&&T<A&&(A=T,m=g)}m&&t.fail(r("Did you mean %s?",m))},u.reset=function(f){return s=ru(s,p=>!f[p]),a=ru(a,p=>!f[p]),u};let l=[];return u.freeze=function(){l.push({implied:s,conflicting:a})},u.unfreeze=function(){let f=l.pop();Ln(f,void 0,n),{implied:s,conflicting:a}=f},u}var $m=[],sl;function ol(e,t,n,r){sl=r;let i={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if(typeof e.extends!="string")return i;let u=/\.json|\..*rc$/.test(e.extends),s=null;if(u)s=zP(t,e.extends);else try{s=xn.resolve(e.extends)}catch{return e}qP(s),$m.push(s),i=u?JSON.parse(sl.readFileSync(s,"utf8")):xn(e.extends),delete e.extends,i=ol(i,sl.path.dirname(s),n,sl)}return $m=[],n?v2(i,e):Object.assign({},i,e)}function qP(e){if($m.indexOf(e)>-1)throw new bt(`Circular extended configurations: '${e}'.`)}function zP(e,t){return sl.path.resolve(e,t)}function v2(e,t){let n={};function r(i){return i&&typeof i=="object"&&!Array.isArray(i)}Object.assign(n,e);for(let i of Object.keys(t))r(t[i])&&r(n[i])?n[i]=v2(e[i],t[i]):n[i]=t[i];return n}var me=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},_=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Vt,Zu,al,Tr,or,cf,uu,Qu,ff,br,df,_r,ei,ar,Fr,pf,co,Dn,ye,hf,mf,lr,Xu,fo,Ju,su,gf,Pe,es,ts,ns,je,Ef,ti,Gt;function Z2(e){return(t=[],n=e.process.cwd(),r)=>{let i=new n0(t,n,r,e);return Object.defineProperty(i,"argv",{get:()=>i.parse(),enumerable:!0}),i.help(),i.version(),i}}var w2=Symbol("copyDoubleDash"),O2=Symbol("copyDoubleDash"),Vm=Symbol("deleteFromParserHintObject"),B2=Symbol("emitWarning"),N2=Symbol("freeze"),R2=Symbol("getDollarZero"),rs=Symbol("getParserConfiguration"),L2=Symbol("getUsageConfiguration"),Wm=Symbol("guessLocale"),P2=Symbol("guessVersion"),M2=Symbol("parsePositionalNumbers"),Ym=Symbol("pkgUp"),ou=Symbol("populateParserHintArray"),po=Symbol("populateParserHintSingleValueDictionary"),Km=Symbol("populateParserHintArrayDictionary"),Zm=Symbol("populateParserHintDictionary"),Qm=Symbol("sanitizeKey"),Xm=Symbol("setKey"),Jm=Symbol("unfreeze"),U2=Symbol("validateAsync"),H2=Symbol("getCommandInstance"),j2=Symbol("getContext"),G2=Symbol("getHasOutput"),q2=Symbol("getLoggerInstance"),z2=Symbol("getParseContext"),$2=Symbol("getUsageInstance"),V2=Symbol("getValidationInstance"),Df=Symbol("hasParseCallback"),W2=Symbol("isGlobalContext"),is=Symbol("postProcess"),Y2=Symbol("rebase"),e0=Symbol("reset"),ll=Symbol("runYargsParserAndExecuteCommands"),t0=Symbol("runValidation"),K2=Symbol("setHasOutput"),us=Symbol("kTrackManuallySetKeys"),n0=class{constructor(t=[],n,r,i){this.customScriptName=!1,this.parsed=!1,Vt.set(this,void 0),Zu.set(this,void 0),al.set(this,{commands:[],fullCommands:[]}),Tr.set(this,null),or.set(this,null),cf.set(this,"show-hidden"),uu.set(this,null),Qu.set(this,!0),ff.set(this,{}),br.set(this,!0),df.set(this,[]),_r.set(this,void 0),ei.set(this,{}),ar.set(this,!1),Fr.set(this,null),pf.set(this,!0),co.set(this,void 0),Dn.set(this,""),ye.set(this,void 0),hf.set(this,void 0),mf.set(this,{}),lr.set(this,null),Xu.set(this,null),fo.set(this,{}),Ju.set(this,{}),su.set(this,void 0),gf.set(this,!1),Pe.set(this,void 0),es.set(this,!1),ts.set(this,!1),ns.set(this,!1),je.set(this,void 0),Ef.set(this,{}),ti.set(this,null),Gt.set(this,void 0),me(this,Pe,i,"f"),me(this,su,t,"f"),me(this,Zu,n,"f"),me(this,hf,r,"f"),me(this,_r,new of(this),"f"),this.$0=this[R2](),this[e0](),me(this,Vt,_(this,Vt,"f"),"f"),me(this,je,_(this,je,"f"),"f"),me(this,Gt,_(this,Gt,"f"),"f"),me(this,ye,_(this,ye,"f"),"f"),_(this,ye,"f").showHiddenOpt=_(this,cf,"f"),me(this,co,this[O2](),"f")}addHelpOpt(t,n){let r="help";return he("[string|boolean] [string]",[t,n],arguments.length),_(this,Fr,"f")&&(this[Vm](_(this,Fr,"f")),me(this,Fr,null,"f")),t===!1&&n===void 0?this:(me(this,Fr,typeof t=="string"?t:r,"f"),this.boolean(_(this,Fr,"f")),this.describe(_(this,Fr,"f"),n||_(this,je,"f").deferY18nLookup("Show help")),this)}help(t,n){return this.addHelpOpt(t,n)}addShowHiddenOpt(t,n){if(he("[string|boolean] [string]",[t,n],arguments.length),t===!1&&n===void 0)return this;let r=typeof t=="string"?t:_(this,cf,"f");return this.boolean(r),this.describe(r,n||_(this,je,"f").deferY18nLookup("Show hidden options")),_(this,ye,"f").showHiddenOpt=r,this}showHidden(t,n){return this.addShowHiddenOpt(t,n)}alias(t,n){return he("<object|string|array> [string|array]",[t,n],arguments.length),this[Km](this.alias.bind(this),"alias",t,n),this}array(t){return he("<array|string>",[t],arguments.length),this[ou]("array",t),this[us](t),this}boolean(t){return he("<array|string>",[t],arguments.length),this[ou]("boolean",t),this[us](t),this}check(t,n){return he("<function> [boolean]",[t,n],arguments.length),this.middleware((r,i)=>Ku(()=>t(r,i.getOptions()),u=>(u?(typeof u=="string"||u instanceof Error)&&_(this,je,"f").fail(u.toString(),u):_(this,je,"f").fail(_(this,Pe,"f").y18n.__("Argument check failed: %s",t.toString())),r),u=>(_(this,je,"f").fail(u.message?u.message:u.toString(),u),r)),!1,n),this}choices(t,n){return he("<object|string|array> [string|array]",[t,n],arguments.length),this[Km](this.choices.bind(this),"choices",t,n),this}coerce(t,n){if(he("<object|string|array> [function]",[t,n],arguments.length),Array.isArray(t)){if(!n)throw new bt("coerce callback must be provided");for(let r of t)this.coerce(r,n);return this}else if(typeof t=="object"){for(let r of Object.keys(t))this.coerce(r,t[r]);return this}if(!n)throw new bt("coerce callback must be provided");return _(this,ye,"f").key[t]=!0,_(this,_r,"f").addCoerceMiddleware((r,i)=>{let u;return Object.prototype.hasOwnProperty.call(r,t)?Ku(()=>(u=i.getAliases(),n(r[t])),o=>{r[t]=o;let a=i.getInternalMethods().getParserConfiguration()["strip-aliased"];if(u[t]&&a!==!0)for(let l of u[t])r[l]=o;return r},o=>{throw new bt(o.message)}):r},t),this}conflicts(t,n){return he("<string|object> [string|array]",[t,n],arguments.length),_(this,Gt,"f").conflicts(t,n),this}config(t="config",n,r){return he("[object|string] [string|function] [function]",[t,n,r],arguments.length),typeof t=="object"&&!Array.isArray(t)?(t=ol(t,_(this,Zu,"f"),this[rs]()["deep-merge-config"]||!1,_(this,Pe,"f")),_(this,ye,"f").configObjects=(_(this,ye,"f").configObjects||[]).concat(t),this):(typeof n=="function"&&(r=n,n=void 0),this.describe(t,n||_(this,je,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(i=>{_(this,ye,"f").config[i]=r||!0}),this)}completion(t,n,r){return he("[string] [string|boolean|function] [function]",[t,n,r],arguments.length),typeof n=="function"&&(r=n,n=void 0),me(this,or,t||_(this,or,"f")||"completion","f"),!n&&n!==!1&&(n="generate completion script"),this.command(_(this,or,"f"),n),r&&_(this,Tr,"f").registerFunction(r),this}command(t,n,r,i,u,s){return he("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,n,r,i,u,s],arguments.length),_(this,Vt,"f").addHandler(t,n,r,i,u,s),this}commands(t,n,r,i,u,s){return this.command(t,n,r,i,u,s)}commandDir(t,n){he("<string> [object]",[t,n],arguments.length);let r=_(this,hf,"f")||_(this,Pe,"f").require;return _(this,Vt,"f").addDirectory(t,r,_(this,Pe,"f").getCallerFile(),n),this}count(t){return he("<array|string>",[t],arguments.length),this[ou]("count",t),this[us](t),this}default(t,n,r){return he("<object|string|array> [*] [string]",[t,n,r],arguments.length),r&&(Hm(t,_(this,Pe,"f")),_(this,ye,"f").defaultDescription[t]=r),typeof n=="function"&&(Hm(t,_(this,Pe,"f")),_(this,ye,"f").defaultDescription[t]||(_(this,ye,"f").defaultDescription[t]=_(this,je,"f").functionDescription(n)),n=n.call()),this[po](this.default.bind(this),"default",t,n),this}defaults(t,n,r){return this.default(t,n,r)}demandCommand(t=1,n,r,i){return he("[number] [number|string] [string|null|undefined] [string|null|undefined]",[t,n,r,i],arguments.length),typeof n!="number"&&(r=n,n=1/0),this.global("_",!1),_(this,ye,"f").demandedCommands._={min:t,max:n,minMsg:r,maxMsg:i},this}demand(t,n,r){return Array.isArray(n)?(n.forEach(i=>{Ln(r,!0,_(this,Pe,"f")),this.demandOption(i,r)}),n=1/0):typeof n!="number"&&(r=n,n=1/0),typeof t=="number"?(Ln(r,!0,_(this,Pe,"f")),this.demandCommand(t,n,r,r)):Array.isArray(t)?t.forEach(i=>{Ln(r,!0,_(this,Pe,"f")),this.demandOption(i,r)}):typeof r=="string"?this.demandOption(t,r):(r===!0||typeof r>"u")&&this.demandOption(t),this}demandOption(t,n){return he("<object|string|array> [string]",[t,n],arguments.length),this[po](this.demandOption.bind(this),"demandedOptions",t,n),this}deprecateOption(t,n){return he("<string> [string|boolean]",[t,n],arguments.length),_(this,ye,"f").deprecatedOptions[t]=n,this}describe(t,n){return he("<object|string|array> [string]",[t,n],arguments.length),this[Xm](t,!0),_(this,je,"f").describe(t,n),this}detectLocale(t){return he("<boolean>",[t],arguments.length),me(this,Qu,t,"f"),this}env(t){return he("[string|boolean]",[t],arguments.length),t===!1?delete _(this,ye,"f").envPrefix:_(this,ye,"f").envPrefix=t||"",this}epilogue(t){return he("<string>",[t],arguments.length),_(this,je,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,n){return he("<string|array> [string]",[t,n],arguments.length),Array.isArray(t)?t.forEach(r=>this.example(...r)):_(this,je,"f").example(t,n),this}exit(t,n){me(this,ar,!0,"f"),me(this,uu,n,"f"),_(this,br,"f")&&_(this,Pe,"f").process.exit(t)}exitProcess(t=!0){return he("[boolean]",[t],arguments.length),me(this,br,t,"f"),this}fail(t){if(he("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==!1)throw new bt("Invalid first argument. Expected function or boolean 'false'");return _(this,je,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,n){return he("<array> [function]",[t,n],arguments.length),n?_(this,Tr,"f").getCompletion(t,n):new Promise((r,i)=>{_(this,Tr,"f").getCompletion(t,(u,s)=>{u?i(u):r(s)})})}getDemandedOptions(){return he([],0),_(this,ye,"f").demandedOptions}getDemandedCommands(){return he([],0),_(this,ye,"f").demandedCommands}getDeprecatedOptions(){return he([],0),_(this,ye,"f").deprecatedOptions}getDetectLocale(){return _(this,Qu,"f")}getExitProcess(){return _(this,br,"f")}getGroups(){return Object.assign({},_(this,ei,"f"),_(this,Ju,"f"))}getHelp(){if(me(this,ar,!0,"f"),!_(this,je,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[ll](_(this,su,"f"),void 0,void 0,0,!0);if(_t(n))return n.then(()=>_(this,je,"f").help())}let t=_(this,Vt,"f").runDefaultBuilderOn(this);if(_t(t))return t.then(()=>_(this,je,"f").help())}return Promise.resolve(_(this,je,"f").help())}getOptions(){return _(this,ye,"f")}getStrict(){return _(this,es,"f")}getStrictCommands(){return _(this,ts,"f")}getStrictOptions(){return _(this,ns,"f")}global(t,n){return he("<string|array> [boolean]",[t,n],arguments.length),t=[].concat(t),n!==!1?_(this,ye,"f").local=_(this,ye,"f").local.filter(r=>t.indexOf(r)===-1):t.forEach(r=>{_(this,ye,"f").local.includes(r)||_(this,ye,"f").local.push(r)}),this}group(t,n){he("<string|array> <string>",[t,n],arguments.length);let r=_(this,Ju,"f")[n]||_(this,ei,"f")[n];_(this,Ju,"f")[n]&&delete _(this,Ju,"f")[n];let i={};return _(this,ei,"f")[n]=(r||[]).concat(t).filter(u=>i[u]?!1:i[u]=!0),this}hide(t){return he("<string>",[t],arguments.length),_(this,ye,"f").hiddenOptions.push(t),this}implies(t,n){return he("<string|object> [number|string|array]",[t,n],arguments.length),_(this,Gt,"f").implies(t,n),this}locale(t){return he("[string]",[t],arguments.length),t===void 0?(this[Wm](),_(this,Pe,"f").y18n.getLocale()):(me(this,Qu,!1,"f"),_(this,Pe,"f").y18n.setLocale(t),this)}middleware(t,n,r){return _(this,_r,"f").addMiddleware(t,!!n,r)}nargs(t,n){return he("<string|object|array> [number]",[t,n],arguments.length),this[po](this.nargs.bind(this),"narg",t,n),this}normalize(t){return he("<array|string>",[t],arguments.length),this[ou]("normalize",t),this}number(t){return he("<array|string>",[t],arguments.length),this[ou]("number",t),this[us](t),this}option(t,n){if(he("<string|object> [object]",[t,n],arguments.length),typeof t=="object")Object.keys(t).forEach(r=>{this.options(r,t[r])});else{typeof n!="object"&&(n={}),this[us](t),_(this,ti,"f")&&(t==="version"||n?.alias==="version")&&this[B2](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join(`
|
|
130
130
|
`),void 0,"versionWarning"),_(this,ye,"f").key[t]=!0,n.alias&&this.alias(t,n.alias);let r=n.deprecate||n.deprecated;r&&this.deprecateOption(t,r);let i=n.demand||n.required||n.require;i&&this.demand(t,i),n.demandOption&&this.demandOption(t,typeof n.demandOption=="string"?n.demandOption:void 0),n.conflicts&&this.conflicts(t,n.conflicts),"default"in n&&this.default(t,n.default),n.implies!==void 0&&this.implies(t,n.implies),n.nargs!==void 0&&this.nargs(t,n.nargs),n.config&&this.config(t,n.configParser),n.normalize&&this.normalize(t),n.choices&&this.choices(t,n.choices),n.coerce&&this.coerce(t,n.coerce),n.group&&this.group(t,n.group),(n.boolean||n.type==="boolean")&&(this.boolean(t),n.alias&&this.boolean(n.alias)),(n.array||n.type==="array")&&(this.array(t),n.alias&&this.array(n.alias)),(n.number||n.type==="number")&&(this.number(t),n.alias&&this.number(n.alias)),(n.string||n.type==="string")&&(this.string(t),n.alias&&this.string(n.alias)),(n.count||n.type==="count")&&this.count(t),typeof n.global=="boolean"&&this.global(t,n.global),n.defaultDescription&&(_(this,ye,"f").defaultDescription[t]=n.defaultDescription),n.skipValidation&&this.skipValidation(t);let u=n.describe||n.description||n.desc,s=_(this,je,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(s,t)||typeof u=="string")&&this.describe(t,u),n.hidden&&this.hide(t),n.requiresArg&&this.requiresArg(t)}return this}options(t,n){return this.option(t,n)}parse(t,n,r){he("[string|array] [function|boolean|object] [function]",[t,n,r],arguments.length),this[N2](),typeof t>"u"&&(t=_(this,su,"f")),typeof n=="object"&&(me(this,Xu,n,"f"),n=r),typeof n=="function"&&(me(this,lr,n,"f"),n=!1),n||me(this,su,t,"f"),_(this,lr,"f")&&me(this,br,!1,"f");let i=this[ll](t,!!n),u=this.parsed;return _(this,Tr,"f").setParsed(this.parsed),_t(i)?i.then(s=>(_(this,lr,"f")&&_(this,lr,"f").call(this,_(this,uu,"f"),s,_(this,Dn,"f")),s)).catch(s=>{throw _(this,lr,"f")&&_(this,lr,"f")(s,this.parsed.argv,_(this,Dn,"f")),s}).finally(()=>{this[Jm](),this.parsed=u}):(_(this,lr,"f")&&_(this,lr,"f").call(this,_(this,uu,"f"),i,_(this,Dn,"f")),this[Jm](),this.parsed=u,i)}parseAsync(t,n,r){let i=this.parse(t,n,r);return _t(i)?i:Promise.resolve(i)}parseSync(t,n,r){let i=this.parse(t,n,r);if(_t(i))throw new bt(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return i}parserConfiguration(t){return he("<object>",[t],arguments.length),me(this,mf,t,"f"),this}pkgConf(t,n){he("<string> [string]",[t,n],arguments.length);let r=null,i=this[Ym](n||_(this,Zu,"f"));return i[t]&&typeof i[t]=="object"&&(r=ol(i[t],n||_(this,Zu,"f"),this[rs]()["deep-merge-config"]||!1,_(this,Pe,"f")),_(this,ye,"f").configObjects=(_(this,ye,"f").configObjects||[]).concat(r)),this}positional(t,n){he("<string> <object>",[t,n],arguments.length);let r=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];n=ru(n,(s,o)=>s==="type"&&!["string","number","boolean"].includes(o)?!1:r.includes(s));let i=_(this,al,"f").fullCommands[_(this,al,"f").fullCommands.length-1],u=i?_(this,Vt,"f").cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return ao(u).forEach(s=>{let o=u[s];Array.isArray(o)?o.indexOf(t)!==-1&&(n[s]=!0):o[t]&&!(s in n)&&(n[s]=o[t])}),this.group(t,_(this,je,"f").getPositionalGroupName()),this.option(t,n)}recommendCommands(t=!0){return he("[boolean]",[t],arguments.length),me(this,gf,t,"f"),this}required(t,n,r){return this.demand(t,n,r)}require(t,n,r){return this.demand(t,n,r)}requiresArg(t){return he("<array|string|object> [number]",[t],arguments.length),typeof t=="string"&&_(this,ye,"f").narg[t]?this:(this[po](this.requiresArg.bind(this),"narg",t,NaN),this)}showCompletionScript(t,n){return he("[string] [string]",[t,n],arguments.length),t=t||this.$0,_(this,co,"f").log(_(this,Tr,"f").generateCompletionScript(t,n||_(this,or,"f")||"completion")),this}showHelp(t){if(he("[string|function]",[t],arguments.length),me(this,ar,!0,"f"),!_(this,je,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[ll](_(this,su,"f"),void 0,void 0,0,!0);if(_t(r))return r.then(()=>{_(this,je,"f").showHelp(t)}),this}let n=_(this,Vt,"f").runDefaultBuilderOn(this);if(_t(n))return n.then(()=>{_(this,je,"f").showHelp(t)}),this}return _(this,je,"f").showHelp(t),this}scriptName(t){return this.customScriptName=!0,this.$0=t,this}showHelpOnFail(t,n){return he("[boolean|string] [string]",[t,n],arguments.length),_(this,je,"f").showHelpOnFail(t,n),this}showVersion(t){return he("[string|function]",[t],arguments.length),_(this,je,"f").showVersion(t),this}skipValidation(t){return he("<array|string>",[t],arguments.length),this[ou]("skipValidation",t),this}strict(t){return he("[boolean]",[t],arguments.length),me(this,es,t!==!1,"f"),this}strictCommands(t){return he("[boolean]",[t],arguments.length),me(this,ts,t!==!1,"f"),this}strictOptions(t){return he("[boolean]",[t],arguments.length),me(this,ns,t!==!1,"f"),this}string(t){return he("<array|string>",[t],arguments.length),this[ou]("string",t),this[us](t),this}terminalWidth(){return he([],0),_(this,Pe,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return he("<object>",[t],arguments.length),me(this,Qu,!1,"f"),_(this,Pe,"f").y18n.updateLocale(t),this}usage(t,n,r,i){if(he("<string|null|undefined> [string|boolean] [function|object] [function]",[t,n,r,i],arguments.length),n!==void 0){if(Ln(t,null,_(this,Pe,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,n,r,i);throw new bt(".usage() description must start with $0 if being used as alias for .command()")}else return _(this,je,"f").usage(t),this}usageConfiguration(t){return he("<object>",[t],arguments.length),me(this,Ef,t,"f"),this}version(t,n,r){let i="version";if(he("[boolean|string] [string] [string]",[t,n,r],arguments.length),_(this,ti,"f")&&(this[Vm](_(this,ti,"f")),_(this,je,"f").version(void 0),me(this,ti,null,"f")),arguments.length===0)r=this[P2](),t=i;else if(arguments.length===1){if(t===!1)return this;r=t,t=i}else arguments.length===2&&(r=n,n=void 0);return me(this,ti,typeof t=="string"?t:i,"f"),n=n||_(this,je,"f").deferY18nLookup("Show version number"),_(this,je,"f").version(r||void 0),this.boolean(_(this,ti,"f")),this.describe(_(this,ti,"f"),n),this}wrap(t){return he("<number|null|undefined>",[t],arguments.length),_(this,je,"f").wrap(t),this}[(Vt=new WeakMap,Zu=new WeakMap,al=new WeakMap,Tr=new WeakMap,or=new WeakMap,cf=new WeakMap,uu=new WeakMap,Qu=new WeakMap,ff=new WeakMap,br=new WeakMap,df=new WeakMap,_r=new WeakMap,ei=new WeakMap,ar=new WeakMap,Fr=new WeakMap,pf=new WeakMap,co=new WeakMap,Dn=new WeakMap,ye=new WeakMap,hf=new WeakMap,mf=new WeakMap,lr=new WeakMap,Xu=new WeakMap,fo=new WeakMap,Ju=new WeakMap,su=new WeakMap,gf=new WeakMap,Pe=new WeakMap,es=new WeakMap,ts=new WeakMap,ns=new WeakMap,je=new WeakMap,Ef=new WeakMap,ti=new WeakMap,Gt=new WeakMap,w2)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch{}return t}[O2](){return{log:(...t)=>{this[Df]()||console.log(...t),me(this,ar,!0,"f"),_(this,Dn,"f").length&&me(this,Dn,_(this,Dn,"f")+`
|
|
131
131
|
`,"f"),me(this,Dn,_(this,Dn,"f")+t.join(" "),"f")},error:(...t)=>{this[Df]()||console.error(...t),me(this,ar,!0,"f"),_(this,Dn,"f").length&&me(this,Dn,_(this,Dn,"f")+`
|
|
132
|
-
`,"f"),me(this,Dn,_(this,Dn,"f")+t.join(" "),"f")}}}[Vm](t){ao(_(this,ye,"f")).forEach(n=>{if((i=>i==="configObjects")(n))return;let r=_(this,ye,"f")[n];Array.isArray(r)?r.includes(t)&&r.splice(r.indexOf(t),1):typeof r=="object"&&delete r[t]}),delete _(this,je,"f").getDescriptions()[t]}[B2](t,n,r){_(this,ff,"f")[r]||(_(this,Pe,"f").process.emitWarning(t,n),_(this,ff,"f")[r]=!0)}[N2](){_(this,df,"f").push({options:_(this,ye,"f"),configObjects:_(this,ye,"f").configObjects.slice(0),exitProcess:_(this,br,"f"),groups:_(this,ei,"f"),strict:_(this,es,"f"),strictCommands:_(this,ts,"f"),strictOptions:_(this,ns,"f"),completionCommand:_(this,or,"f"),output:_(this,Dn,"f"),exitError:_(this,uu,"f"),hasOutput:_(this,ar,"f"),parsed:this.parsed,parseFn:_(this,lr,"f"),parseContext:_(this,Xu,"f")}),_(this,je,"f").freeze(),_(this,Gt,"f").freeze(),_(this,Vt,"f").freeze(),_(this,_r,"f").freeze()}[R2](){let t="",n;return/\b(node|iojs|electron)(\.exe)?$/.test(_(this,Pe,"f").process.argv()[0])?n=_(this,Pe,"f").process.argv().slice(1,2):n=_(this,Pe,"f").process.argv().slice(0,1),t=n.map(r=>{let i=this[Y2](_(this,Zu,"f"),r);return r.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<r.length?i:r}).join(" ").trim(),_(this,Pe,"f").getEnv("_")&&_(this,Pe,"f").getProcessArgvBin()===_(this,Pe,"f").getEnv("_")&&(t=_(this,Pe,"f").getEnv("_").replace(`${_(this,Pe,"f").path.dirname(_(this,Pe,"f").process.execPath())}/`,"")),t}[rs](){return _(this,mf,"f")}[L2](){return _(this,Ef,"f")}[Wm](){if(!_(this,Qu,"f"))return;let t=_(this,Pe,"f").getEnv("LC_ALL")||_(this,Pe,"f").getEnv("LC_MESSAGES")||_(this,Pe,"f").getEnv("LANG")||_(this,Pe,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[P2](){return this[Ym]().version||"unknown"}[M2](t){let n=t["--"]?t["--"]:t._;for(let r=0,i;(i=n[r])!==void 0;r++)_(this,Pe,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(n[r]=Number(i));return t}[Ym](t){let n=t||"*";if(_(this,fo,"f")[n])return _(this,fo,"f")[n];let r={};try{let i=t||_(this,Pe,"f").mainFilename;!t&&_(this,Pe,"f").path.extname(i)&&(i=_(this,Pe,"f").path.dirname(i));let u=_(this,Pe,"f").findUp(i,(s,o)=>{if(o.includes("package.json"))return"package.json"});Ln(u,void 0,_(this,Pe,"f")),r=JSON.parse(_(this,Pe,"f").readFileSync(u,"utf8"))}catch{}return _(this,fo,"f")[n]=r||{},_(this,fo,"f")[n]}[ou](t,n){n=[].concat(n),n.forEach(r=>{r=this[Qm](r),_(this,ye,"f")[t].push(r)})}[po](t,n,r,i){this[Zm](t,n,r,i,(u,s,o)=>{_(this,ye,"f")[u][s]=o})}[Km](t,n,r,i){this[Zm](t,n,r,i,(u,s,o)=>{_(this,ye,"f")[u][s]=(_(this,ye,"f")[u][s]||[]).concat(o)})}[Zm](t,n,r,i,u){if(Array.isArray(r))r.forEach(s=>{t(s,i)});else if((s=>typeof s=="object")(r))for(let s of ao(r))t(s,r[s]);else u(n,this[Qm](r),i)}[Qm](t){return t==="__proto__"?"___proto___":t}[Xm](t,n){return this[po](this[Xm].bind(this),"key",t,n),this}[Jm](){var t,n,r,i,u,s,o,a,l,c,f,p;let d=_(this,df,"f").pop();Ln(d,void 0,_(this,Pe,"f"));let m;t=this,n=this,r=this,i=this,u=this,s=this,o=this,a=this,l=this,c=this,f=this,p=this,{options:{set value(A){me(t,ye,A,"f")}}.value,configObjects:m,exitProcess:{set value(A){me(n,br,A,"f")}}.value,groups:{set value(A){me(r,ei,A,"f")}}.value,output:{set value(A){me(i,Dn,A,"f")}}.value,exitError:{set value(A){me(u,uu,A,"f")}}.value,hasOutput:{set value(A){me(s,ar,A,"f")}}.value,parsed:this.parsed,strict:{set value(A){me(o,es,A,"f")}}.value,strictCommands:{set value(A){me(a,ts,A,"f")}}.value,strictOptions:{set value(A){me(l,ns,A,"f")}}.value,completionCommand:{set value(A){me(c,or,A,"f")}}.value,parseFn:{set value(A){me(f,lr,A,"f")}}.value,parseContext:{set value(A){me(p,Xu,A,"f")}}.value}=d,_(this,ye,"f").configObjects=m,_(this,je,"f").unfreeze(),_(this,Gt,"f").unfreeze(),_(this,Vt,"f").unfreeze(),_(this,_r,"f").unfreeze()}[U2](t,n){return Ku(n,r=>(t(r),r))}getInternalMethods(){return{getCommandInstance:this[H2].bind(this),getContext:this[j2].bind(this),getHasOutput:this[G2].bind(this),getLoggerInstance:this[q2].bind(this),getParseContext:this[z2].bind(this),getParserConfiguration:this[rs].bind(this),getUsageConfiguration:this[L2].bind(this),getUsageInstance:this[$2].bind(this),getValidationInstance:this[V2].bind(this),hasParseCallback:this[Df].bind(this),isGlobalContext:this[W2].bind(this),postProcess:this[is].bind(this),reset:this[e0].bind(this),runValidation:this[t0].bind(this),runYargsParserAndExecuteCommands:this[ll].bind(this),setHasOutput:this[K2].bind(this)}}[H2](){return _(this,Vt,"f")}[j2](){return _(this,al,"f")}[G2](){return _(this,ar,"f")}[q2](){return _(this,co,"f")}[z2](){return _(this,Xu,"f")||{}}[$2](){return _(this,je,"f")}[V2](){return _(this,Gt,"f")}[Df](){return!!_(this,lr,"f")}[W2](){return _(this,pf,"f")}[is](t,n,r,i){return r||_t(t)||(n||(t=this[w2](t)),(this[rs]()["parse-positional-numbers"]||this[rs]()["parse-positional-numbers"]===void 0)&&(t=this[M2](t)),i&&(t=Yu(t,this,_(this,_r,"f").getMiddleware(),!1))),t}[e0](t={}){me(this,ye,_(this,ye,"f")||{},"f");let n={};n.local=_(this,ye,"f").local||[],n.configObjects=_(this,ye,"f").configObjects||[];let r={};n.local.forEach(s=>{r[s]=!0,(t[s]||[]).forEach(o=>{r[o]=!0})}),Object.assign(_(this,Ju,"f"),Object.keys(_(this,ei,"f")).reduce((s,o)=>{let a=_(this,ei,"f")[o].filter(l=>!(l in r));return a.length>0&&(s[o]=a),s},{})),me(this,ei,{},"f");let i=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],u=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return i.forEach(s=>{n[s]=(_(this,ye,"f")[s]||[]).filter(o=>!r[o])}),u.forEach(s=>{n[s]=ru(_(this,ye,"f")[s],o=>!r[o])}),n.envPrefix=_(this,ye,"f").envPrefix,me(this,ye,n,"f"),me(this,je,_(this,je,"f")?_(this,je,"f").reset(r):T2(this,_(this,Pe,"f")),"f"),me(this,Gt,_(this,Gt,"f")?_(this,Gt,"f").reset(r):I2(this,_(this,je,"f"),_(this,Pe,"f")),"f"),me(this,Vt,_(this,Vt,"f")?_(this,Vt,"f").reset():C2(_(this,je,"f"),_(this,Gt,"f"),_(this,_r,"f"),_(this,Pe,"f")),"f"),_(this,Tr,"f")||me(this,Tr,F2(this,_(this,je,"f"),_(this,Vt,"f"),_(this,Pe,"f")),"f"),_(this,_r,"f").reset(),me(this,or,null,"f"),me(this,Dn,"","f"),me(this,uu,null,"f"),me(this,ar,!1,"f"),this.parsed=!1,this}[Y2](t,n){return _(this,Pe,"f").path.relative(t,n)}[ll](t,n,r,i=0,u=!1){let s=!!r||u;t=t||_(this,su,"f"),_(this,ye,"f").__=_(this,Pe,"f").y18n.__,_(this,ye,"f").configuration=this[rs]();let o=!!_(this,ye,"f").configuration["populate--"],a=Object.assign({},_(this,ye,"f").configuration,{"populate--":!0}),l=_(this,Pe,"f").Parser.detailed(t,Object.assign({},_(this,ye,"f"),{configuration:{"parse-positional-numbers":!1,...a}})),c=Object.assign(l.argv,_(this,Xu,"f")),f,p=l.aliases,d=!1,m=!1;Object.keys(c).forEach(A=>{A===_(this,Fr,"f")&&c[A]?d=!0:A===_(this,ti,"f")&&c[A]&&(m=!0)}),c.$0=this.$0,this.parsed=l,i===0&&_(this,je,"f").clearCachedHelpMessage();try{if(this[Wm](),n)return this[is](c,o,!!r,!1);_(this,Fr,"f")&&[_(this,Fr,"f")].concat(p[_(this,Fr,"f")]||[]).filter(y=>y.length>1).includes(""+c._[c._.length-1])&&(c._.pop(),d=!0),me(this,pf,!1,"f");let A=_(this,Vt,"f").getCommands(),E=_(this,Tr,"f").completionKey in c,g=d||E||u;if(c._.length){if(A.length){let T;for(let y=i||0,O;c._[y]!==void 0;y++)if(O=String(c._[y]),A.includes(O)&&O!==_(this,or,"f")){let v=_(this,Vt,"f").runCommand(O,this,l,y+1,u,d||m||u);return this[is](v,o,!!r,!1)}else if(!T&&O!==_(this,or,"f")){T=O;break}!_(this,Vt,"f").hasDefaultCommand()&&_(this,gf,"f")&&T&&!g&&_(this,Gt,"f").recommendCommands(T,A)}_(this,or,"f")&&c._.includes(_(this,or,"f"))&&!E&&(_(this,br,"f")&&iu(!0),this.showCompletionScript(),this.exit(0))}if(_(this,Vt,"f").hasDefaultCommand()&&!g){let T=_(this,Vt,"f").runCommand(null,this,l,0,u,d||m||u);return this[is](T,o,!!r,!1)}if(E){_(this,br,"f")&&iu(!0),t=[].concat(t);let T=t.slice(t.indexOf(`--${_(this,Tr,"f").completionKey}`)+1);return _(this,Tr,"f").getCompletion(T,(y,O)=>{if(y)throw new bt(y.message);(O||[]).forEach(v=>{_(this,co,"f").log(v)}),this.exit(0)}),this[is](c,!o,!!r,!1)}if(_(this,ar,"f")||(d?(_(this,br,"f")&&iu(!0),s=!0,this.showHelp("log"),this.exit(0)):m&&(_(this,br,"f")&&iu(!0),s=!0,_(this,je,"f").showVersion("log"),this.exit(0))),!s&&_(this,ye,"f").skipValidation.length>0&&(s=Object.keys(c).some(T=>_(this,ye,"f").skipValidation.indexOf(T)>=0&&c[T]===!0)),!s){if(l.error)throw new bt(l.error.message);if(!E){let T=this[t0](p,{},l.error);r||(f=Yu(c,this,_(this,_r,"f").getMiddleware(),!0)),f=this[U2](T,f??c),_t(f)&&!r&&(f=f.then(()=>Yu(c,this,_(this,_r,"f").getMiddleware(),!1)))}}}catch(A){if(A instanceof bt)_(this,je,"f").fail(A.message,A);else throw A}return this[is](f??c,o,!!r,!0)}[t0](t,n,r,i){let u={...this.getDemandedOptions()};return s=>{if(r)throw new bt(r.message);_(this,Gt,"f").nonOptionCount(s),_(this,Gt,"f").requiredArguments(s,u);let o=!1;_(this,ts,"f")&&(o=_(this,Gt,"f").unknownCommands(s)),_(this,es,"f")&&!o?_(this,Gt,"f").unknownArguments(s,t,n,!!i):_(this,ns,"f")&&_(this,Gt,"f").unknownArguments(s,t,{},!1,!1),_(this,Gt,"f").limitedChoices(s),_(this,Gt,"f").implications(s),_(this,Gt,"f").conflicting(s)}}[K2](){me(this,ar,!0,"f")}[us](t){if(typeof t=="string")_(this,ye,"f").key[t]=!0;else for(let n of t)_(this,ye,"f").key[n]=!0}};function x2(e){return!!e&&typeof e.getInternalMethods=="function"}var $P=Z2(Um),Q2=$P;var X2="0.8.0";import{cosmiconfig as Cx}from"cosmiconfig";import{TypeScriptLoader as xx}from"cosmiconfig-typescript-loader";import l9 from"node:fs/promises";import bx from"node:path";var r0=nD(tx(),1);function i0(e,t,n){if(typeof t=="number"&&(n=t),r0.default.has(e.toLowerCase())){t=r0.default.get(e.toLowerCase());let r=e.charAt(0);r===r.toUpperCase()&&(t=r+t.slice(1)),e===e.toUpperCase()&&(t=t.toUpperCase())}else typeof t!="string"&&(t=(e.replace(/(?:s|x|z|ch|sh)$/i,"$&e").replace(/([^aeiou])y$/i,"$1ie")+"s").replace(/i?e?s$/i,r=>e.slice(-1)===e.slice(-1).toLowerCase()?r.toLowerCase():r.toUpperCase()));return Math.abs(n)===1?e:t}import{readPackage as c9}from"read-pkg";var ot;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{let u={};for(let s of i)u[s]=s;return u},e.getValidEnumValues=i=>{let u=e.objectKeys(i).filter(o=>typeof i[i[o]]!="number"),s={};for(let o of u)s[o]=i[o];return e.objectValues(s)},e.objectValues=i=>e.objectKeys(i).map(function(u){return i[u]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{let u=[];for(let s in i)Object.prototype.hasOwnProperty.call(i,s)&&u.push(s);return u},e.find=(i,u)=>{for(let s of i)if(u(s))return s},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function r(i,u=" | "){return i.map(s=>typeof s=="string"?`'${s}'`:s).join(u)}e.joinValues=r,e.jsonStringifyReplacer=(i,u)=>typeof u=="bigint"?u.toString():u})(ot||(ot={}));var s0;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(s0||(s0={}));var fe=ot.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),au=e=>{switch(typeof e){case"undefined":return fe.undefined;case"string":return fe.string;case"number":return isNaN(e)?fe.nan:fe.number;case"boolean":return fe.boolean;case"function":return fe.function;case"bigint":return fe.bigint;case"symbol":return fe.symbol;case"object":return Array.isArray(e)?fe.array:e===null?fe.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?fe.promise:typeof Map<"u"&&e instanceof Map?fe.map:typeof Set<"u"&&e instanceof Set?fe.set:typeof Date<"u"&&e instanceof Date?fe.date:fe.object;default:return fe.unknown}},Q=ot.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),KP=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),cr=class e extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){let n=t||function(u){return u.message},r={_errors:[]},i=u=>{for(let s of u.issues)if(s.code==="invalid_union")s.unionErrors.map(i);else if(s.code==="invalid_return_type")i(s.returnTypeError);else if(s.code==="invalid_arguments")i(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let o=r,a=0;for(;a<s.path.length;){let l=s.path[a];a===s.path.length-1?(o[l]=o[l]||{_errors:[]},o[l]._errors.push(n(s))):o[l]=o[l]||{_errors:[]},o=o[l],a++}}};return i(this),r}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ot.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){let n={},r=[];for(let i of this.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}};cr.create=e=>new cr(e);var go=(e,t)=>{let n;switch(e.code){case Q.invalid_type:e.received===fe.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case Q.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ot.jsonStringifyReplacer)}`;break;case Q.unrecognized_keys:n=`Unrecognized key(s) in object: ${ot.joinValues(e.keys,", ")}`;break;case Q.invalid_union:n="Invalid input";break;case Q.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ot.joinValues(e.options)}`;break;case Q.invalid_enum_value:n=`Invalid enum value. Expected ${ot.joinValues(e.options)}, received '${e.received}'`;break;case Q.invalid_arguments:n="Invalid function arguments";break;case Q.invalid_return_type:n="Invalid function return type";break;case Q.invalid_date:n="Invalid date";break;case Q.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:ot.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case Q.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case Q.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case Q.custom:n="Invalid input";break;case Q.invalid_intersection_types:n="Intersection results could not be merged";break;case Q.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Q.not_finite:n="Number must be finite";break;default:n=t.defaultError,ot.assertNever(e)}return{message:n}},ix=go;function ZP(e){ix=e}function Af(){return ix}var Cf=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,u=[...n,...i.path||[]],s={...i,path:u};if(i.message!==void 0)return{...i,path:u,message:i.message};let o="",a=r.filter(l=>!!l).slice().reverse();for(let l of a)o=l(s,{data:t,defaultError:o}).message;return{...i,path:u,message:o}},QP=[];function oe(e,t){let n=Af(),r=Cf({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===go?void 0:go].filter(i=>!!i)});e.common.issues.push(r)}var kn=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){let r=[];for(let i of n){if(i.status==="aborted")return Me;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){let r=[];for(let i of n){let u=await i.key,s=await i.value;r.push({key:u,value:s})}return e.mergeObjectSync(t,r)}static mergeObjectSync(t,n){let r={};for(let i of n){let{key:u,value:s}=i;if(u.status==="aborted"||s.status==="aborted")return Me;u.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),u.value!=="__proto__"&&(typeof s.value<"u"||i.alwaysSet)&&(r[u.value]=s.value)}return{status:t.value,value:r}}},Me=Object.freeze({status:"aborted"}),mo=e=>({status:"dirty",value:e}),Pn=e=>({status:"valid",value:e}),o0=e=>e.status==="aborted",a0=e=>e.status==="dirty",dl=e=>e.status==="valid",pl=e=>typeof Promise<"u"&&e instanceof Promise;function xf(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function ux(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}var be;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(be||(be={}));var cl,fl,Sr=class{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},nx=(e,t)=>{if(dl(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let n=new cr(e.common.issues);return this._error=n,this._error}}};function Ve(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(s,o)=>{var a,l;let{message:c}=e;return s.code==="invalid_enum_value"?{message:c??o.defaultError}:typeof o.data>"u"?{message:(a=c??r)!==null&&a!==void 0?a:o.defaultError}:s.code!=="invalid_type"?{message:o.defaultError}:{message:(l=c??n)!==null&&l!==void 0?l:o.defaultError}},description:i}}var We=class{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return au(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:au(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new kn,ctx:{common:t.parent.common,data:t.data,parsedType:au(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(pl(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){let n=this._parse(t);return Promise.resolve(n)}parse(t,n){let r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;let i={common:{issues:[],async:(r=n?.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:au(t)},u=this._parseSync({data:t,path:i.path,parent:i});return nx(i,u)}async parseAsync(t,n){let r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){let r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:au(t)},i=this._parse({data:t,path:r.path,parent:r}),u=await(pl(i)?i:Promise.resolve(i));return nx(r,u)}refine(t,n){let r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,u)=>{let s=t(i),o=()=>u.addIssue({code:Q.custom,...r(i)});return typeof Promise<"u"&&s instanceof Promise?s.then(a=>a?!0:(o(),!1)):s?!0:(o(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new fr({schema:this,typeName:Re.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return kr.create(this,this._def)}nullable(){return ri.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return vi.create(this,this._def)}promise(){return fu.create(this,this._def)}or(t){return ds.create([this,t],this._def)}and(t){return ps.create(this,t,this._def)}transform(t){return new fr({...Ve(this._def),schema:this,typeName:Re.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new Ds({...Ve(this._def),innerType:this,defaultValue:n,typeName:Re.ZodDefault})}brand(){return new hl({typeName:Re.ZodBranded,type:this,...Ve(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new As({...Ve(this._def),innerType:this,catchValue:n,typeName:Re.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return ml.create(this,t)}readonly(){return Cs.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},XP=/^c[^\s-]{8,}$/i,JP=/^[0-9a-z]+$/,e8=/^[0-9A-HJKMNP-TV-Z]{26}$/,t8=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,n8=/^[a-z0-9_-]{21}$/i,r8=/^[-+]?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)?)??$/,i8=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,u8="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",u0,s8=/^(?:(?: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])$/,o8=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,a8=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,sx="((\\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])))",l8=new RegExp(`^${sx}$`);function ox(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function c8(e){return new RegExp(`^${ox(e)}$`)}function ax(e){let t=`${sx}T${ox(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function f8(e,t){return!!((t==="v4"||!t)&&s8.test(e)||(t==="v6"||!t)&&o8.test(e))}var lu=class e extends We{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==fe.string){let u=this._getOrReturnCtx(t);return oe(u,{code:Q.invalid_type,expected:fe.string,received:u.parsedType}),Me}let r=new kn,i;for(let u of this._def.checks)if(u.kind==="min")t.data.length<u.value&&(i=this._getOrReturnCtx(t,i),oe(i,{code:Q.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),r.dirty());else if(u.kind==="max")t.data.length>u.value&&(i=this._getOrReturnCtx(t,i),oe(i,{code:Q.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),r.dirty());else if(u.kind==="length"){let s=t.data.length>u.value,o=t.data.length<u.value;(s||o)&&(i=this._getOrReturnCtx(t,i),s?oe(i,{code:Q.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}):o&&oe(i,{code:Q.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}),r.dirty())}else if(u.kind==="email")i8.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"email",code:Q.invalid_string,message:u.message}),r.dirty());else if(u.kind==="emoji")u0||(u0=new RegExp(u8,"u")),u0.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"emoji",code:Q.invalid_string,message:u.message}),r.dirty());else if(u.kind==="uuid")t8.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"uuid",code:Q.invalid_string,message:u.message}),r.dirty());else if(u.kind==="nanoid")n8.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"nanoid",code:Q.invalid_string,message:u.message}),r.dirty());else if(u.kind==="cuid")XP.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"cuid",code:Q.invalid_string,message:u.message}),r.dirty());else if(u.kind==="cuid2")JP.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"cuid2",code:Q.invalid_string,message:u.message}),r.dirty());else if(u.kind==="ulid")e8.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"ulid",code:Q.invalid_string,message:u.message}),r.dirty());else if(u.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),oe(i,{validation:"url",code:Q.invalid_string,message:u.message}),r.dirty()}else u.kind==="regex"?(u.regex.lastIndex=0,u.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"regex",code:Q.invalid_string,message:u.message}),r.dirty())):u.kind==="trim"?t.data=t.data.trim():u.kind==="includes"?t.data.includes(u.value,u.position)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Q.invalid_string,validation:{includes:u.value,position:u.position},message:u.message}),r.dirty()):u.kind==="toLowerCase"?t.data=t.data.toLowerCase():u.kind==="toUpperCase"?t.data=t.data.toUpperCase():u.kind==="startsWith"?t.data.startsWith(u.value)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Q.invalid_string,validation:{startsWith:u.value},message:u.message}),r.dirty()):u.kind==="endsWith"?t.data.endsWith(u.value)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Q.invalid_string,validation:{endsWith:u.value},message:u.message}),r.dirty()):u.kind==="datetime"?ax(u).test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Q.invalid_string,validation:"datetime",message:u.message}),r.dirty()):u.kind==="date"?l8.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Q.invalid_string,validation:"date",message:u.message}),r.dirty()):u.kind==="time"?c8(u).test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Q.invalid_string,validation:"time",message:u.message}),r.dirty()):u.kind==="duration"?r8.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"duration",code:Q.invalid_string,message:u.message}),r.dirty()):u.kind==="ip"?f8(t.data,u.version)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"ip",code:Q.invalid_string,message:u.message}),r.dirty()):u.kind==="base64"?a8.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"base64",code:Q.invalid_string,message:u.message}),r.dirty()):ot.assertNever(u);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:Q.invalid_string,...be.errToObj(r)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...be.errToObj(t)})}url(t){return this._addCheck({kind:"url",...be.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...be.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...be.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...be.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...be.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...be.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...be.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...be.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...be.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:(n=t?.offset)!==null&&n!==void 0?n:!1,local:(r=t?.local)!==null&&r!==void 0?r:!1,...be.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...be.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...be.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...be.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...be.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...be.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...be.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...be.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...be.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...be.errToObj(n)})}nonempty(t){return this.min(1,be.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};lu.create=e=>{var t;return new lu({checks:[],typeName:Re.ZodString,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...Ve(e)})};function d8(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,u=parseInt(e.toFixed(i).replace(".","")),s=parseInt(t.toFixed(i).replace(".",""));return u%s/Math.pow(10,i)}var ss=class e extends We{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==fe.number){let u=this._getOrReturnCtx(t);return oe(u,{code:Q.invalid_type,expected:fe.number,received:u.parsedType}),Me}let r,i=new kn;for(let u of this._def.checks)u.kind==="int"?ot.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),oe(r,{code:Q.invalid_type,expected:"integer",received:"float",message:u.message}),i.dirty()):u.kind==="min"?(u.inclusive?t.data<u.value:t.data<=u.value)&&(r=this._getOrReturnCtx(t,r),oe(r,{code:Q.too_small,minimum:u.value,type:"number",inclusive:u.inclusive,exact:!1,message:u.message}),i.dirty()):u.kind==="max"?(u.inclusive?t.data>u.value:t.data>=u.value)&&(r=this._getOrReturnCtx(t,r),oe(r,{code:Q.too_big,maximum:u.value,type:"number",inclusive:u.inclusive,exact:!1,message:u.message}),i.dirty()):u.kind==="multipleOf"?d8(t.data,u.value)!==0&&(r=this._getOrReturnCtx(t,r),oe(r,{code:Q.not_multiple_of,multipleOf:u.value,message:u.message}),i.dirty()):u.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),oe(r,{code:Q.not_finite,message:u.message}),i.dirty()):ot.assertNever(u);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,be.toString(n))}gt(t,n){return this.setLimit("min",t,!1,be.toString(n))}lte(t,n){return this.setLimit("max",t,!0,be.toString(n))}lt(t,n){return this.setLimit("max",t,!1,be.toString(n))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:be.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:be.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:be.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:be.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:be.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:be.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:be.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:be.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:be.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:be.toString(t)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ot.isInteger(t.value))}get isFinite(){let t=null,n=null;for(let r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}};ss.create=e=>new ss({checks:[],typeName:Re.ZodNumber,coerce:e?.coerce||!1,...Ve(e)});var os=class e extends We{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==fe.bigint){let u=this._getOrReturnCtx(t);return oe(u,{code:Q.invalid_type,expected:fe.bigint,received:u.parsedType}),Me}let r,i=new kn;for(let u of this._def.checks)u.kind==="min"?(u.inclusive?t.data<u.value:t.data<=u.value)&&(r=this._getOrReturnCtx(t,r),oe(r,{code:Q.too_small,type:"bigint",minimum:u.value,inclusive:u.inclusive,message:u.message}),i.dirty()):u.kind==="max"?(u.inclusive?t.data>u.value:t.data>=u.value)&&(r=this._getOrReturnCtx(t,r),oe(r,{code:Q.too_big,type:"bigint",maximum:u.value,inclusive:u.inclusive,message:u.message}),i.dirty()):u.kind==="multipleOf"?t.data%u.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),oe(r,{code:Q.not_multiple_of,multipleOf:u.value,message:u.message}),i.dirty()):ot.assertNever(u);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,be.toString(n))}gt(t,n){return this.setLimit("min",t,!1,be.toString(n))}lte(t,n){return this.setLimit("max",t,!0,be.toString(n))}lt(t,n){return this.setLimit("max",t,!1,be.toString(n))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:be.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:be.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:be.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:be.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:be.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:be.toString(n)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};os.create=e=>{var t;return new os({checks:[],typeName:Re.ZodBigInt,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...Ve(e)})};var as=class extends We{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==fe.boolean){let r=this._getOrReturnCtx(t);return oe(r,{code:Q.invalid_type,expected:fe.boolean,received:r.parsedType}),Me}return Pn(t.data)}};as.create=e=>new as({typeName:Re.ZodBoolean,coerce:e?.coerce||!1,...Ve(e)});var ls=class e extends We{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==fe.date){let u=this._getOrReturnCtx(t);return oe(u,{code:Q.invalid_type,expected:fe.date,received:u.parsedType}),Me}if(isNaN(t.data.getTime())){let u=this._getOrReturnCtx(t);return oe(u,{code:Q.invalid_date}),Me}let r=new kn,i;for(let u of this._def.checks)u.kind==="min"?t.data.getTime()<u.value&&(i=this._getOrReturnCtx(t,i),oe(i,{code:Q.too_small,message:u.message,inclusive:!0,exact:!1,minimum:u.value,type:"date"}),r.dirty()):u.kind==="max"?t.data.getTime()>u.value&&(i=this._getOrReturnCtx(t,i),oe(i,{code:Q.too_big,message:u.message,inclusive:!0,exact:!1,maximum:u.value,type:"date"}),r.dirty()):ot.assertNever(u);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:be.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:be.toString(n)})}get minDate(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}};ls.create=e=>new ls({checks:[],coerce:e?.coerce||!1,typeName:Re.ZodDate,...Ve(e)});var Eo=class extends We{_parse(t){if(this._getType(t)!==fe.symbol){let r=this._getOrReturnCtx(t);return oe(r,{code:Q.invalid_type,expected:fe.symbol,received:r.parsedType}),Me}return Pn(t.data)}};Eo.create=e=>new Eo({typeName:Re.ZodSymbol,...Ve(e)});var cs=class extends We{_parse(t){if(this._getType(t)!==fe.undefined){let r=this._getOrReturnCtx(t);return oe(r,{code:Q.invalid_type,expected:fe.undefined,received:r.parsedType}),Me}return Pn(t.data)}};cs.create=e=>new cs({typeName:Re.ZodUndefined,...Ve(e)});var fs=class extends We{_parse(t){if(this._getType(t)!==fe.null){let r=this._getOrReturnCtx(t);return oe(r,{code:Q.invalid_type,expected:fe.null,received:r.parsedType}),Me}return Pn(t.data)}};fs.create=e=>new fs({typeName:Re.ZodNull,...Ve(e)});var cu=class extends We{constructor(){super(...arguments),this._any=!0}_parse(t){return Pn(t.data)}};cu.create=e=>new cu({typeName:Re.ZodAny,...Ve(e)});var Ii=class extends We{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Pn(t.data)}};Ii.create=e=>new Ii({typeName:Re.ZodUnknown,...Ve(e)});var qr=class extends We{_parse(t){let n=this._getOrReturnCtx(t);return oe(n,{code:Q.invalid_type,expected:fe.never,received:n.parsedType}),Me}};qr.create=e=>new qr({typeName:Re.ZodNever,...Ve(e)});var Do=class extends We{_parse(t){if(this._getType(t)!==fe.undefined){let r=this._getOrReturnCtx(t);return oe(r,{code:Q.invalid_type,expected:fe.void,received:r.parsedType}),Me}return Pn(t.data)}};Do.create=e=>new Do({typeName:Re.ZodVoid,...Ve(e)});var vi=class e extends We{_parse(t){let{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==fe.array)return oe(n,{code:Q.invalid_type,expected:fe.array,received:n.parsedType}),Me;if(i.exactLength!==null){let s=n.data.length>i.exactLength.value,o=n.data.length<i.exactLength.value;(s||o)&&(oe(n,{code:s?Q.too_big:Q.too_small,minimum:o?i.exactLength.value:void 0,maximum:s?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(oe(n,{code:Q.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(oe(n,{code:Q.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((s,o)=>i.type._parseAsync(new Sr(n,s,n.path,o)))).then(s=>kn.mergeArray(r,s));let u=[...n.data].map((s,o)=>i.type._parseSync(new Sr(n,s,n.path,o)));return kn.mergeArray(r,u)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:be.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:be.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:be.toString(n)}})}nonempty(t){return this.min(1,t)}};vi.create=(e,t)=>new vi({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Re.ZodArray,...Ve(t)});function ho(e){if(e instanceof Jn){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=kr.create(ho(r))}return new Jn({...e._def,shape:()=>t})}else return e instanceof vi?new vi({...e._def,type:ho(e.element)}):e instanceof kr?kr.create(ho(e.unwrap())):e instanceof ri?ri.create(ho(e.unwrap())):e instanceof ni?ni.create(e.items.map(t=>ho(t))):e}var Jn=class e extends We{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),n=ot.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==fe.object){let l=this._getOrReturnCtx(t);return oe(l,{code:Q.invalid_type,expected:fe.object,received:l.parsedType}),Me}let{status:r,ctx:i}=this._processInputParams(t),{shape:u,keys:s}=this._getCached(),o=[];if(!(this._def.catchall instanceof qr&&this._def.unknownKeys==="strip"))for(let l in i.data)s.includes(l)||o.push(l);let a=[];for(let l of s){let c=u[l],f=i.data[l];a.push({key:{status:"valid",value:l},value:c._parse(new Sr(i,f,i.path,l)),alwaysSet:l in i.data})}if(this._def.catchall instanceof qr){let l=this._def.unknownKeys;if(l==="passthrough")for(let c of o)a.push({key:{status:"valid",value:c},value:{status:"valid",value:i.data[c]}});else if(l==="strict")o.length>0&&(oe(i,{code:Q.unrecognized_keys,keys:o}),r.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let l=this._def.catchall;for(let c of o){let f=i.data[c];a.push({key:{status:"valid",value:c},value:l._parse(new Sr(i,f,i.path,c)),alwaysSet:c in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let l=[];for(let c of a){let f=await c.key,p=await c.value;l.push({key:f,value:p,alwaysSet:c.alwaysSet})}return l}).then(l=>kn.mergeObjectSync(r,l)):kn.mergeObjectSync(r,a)}get shape(){return this._def.shape()}strict(t){return be.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,u,s,o;let a=(s=(u=(i=this._def).errorMap)===null||u===void 0?void 0:u.call(i,n,r).message)!==null&&s!==void 0?s:r.defaultError;return n.code==="unrecognized_keys"?{message:(o=be.errToObj(t).message)!==null&&o!==void 0?o:a}:{message:a}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Re.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};return ot.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new e({...this._def,shape:()=>n})}omit(t){let n={};return ot.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new e({...this._def,shape:()=>n})}deepPartial(){return ho(this)}partial(t){let n={};return ot.objectKeys(this.shape).forEach(r=>{let i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}),new e({...this._def,shape:()=>n})}required(t){let n={};return ot.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let u=this.shape[r];for(;u instanceof kr;)u=u._def.innerType;n[r]=u}}),new e({...this._def,shape:()=>n})}keyof(){return lx(ot.objectKeys(this.shape))}};Jn.create=(e,t)=>new Jn({shape:()=>e,unknownKeys:"strip",catchall:qr.create(),typeName:Re.ZodObject,...Ve(t)});Jn.strictCreate=(e,t)=>new Jn({shape:()=>e,unknownKeys:"strict",catchall:qr.create(),typeName:Re.ZodObject,...Ve(t)});Jn.lazycreate=(e,t)=>new Jn({shape:e,unknownKeys:"strip",catchall:qr.create(),typeName:Re.ZodObject,...Ve(t)});var ds=class extends We{_parse(t){let{ctx:n}=this._processInputParams(t),r=this._def.options;function i(u){for(let o of u)if(o.result.status==="valid")return o.result;for(let o of u)if(o.result.status==="dirty")return n.common.issues.push(...o.ctx.common.issues),o.result;let s=u.map(o=>new cr(o.ctx.common.issues));return oe(n,{code:Q.invalid_union,unionErrors:s}),Me}if(n.common.async)return Promise.all(r.map(async u=>{let s={...n,common:{...n.common,issues:[]},parent:null};return{result:await u._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(i);{let u,s=[];for(let a of r){let l={...n,common:{...n.common,issues:[]},parent:null},c=a._parseSync({data:n.data,path:n.path,parent:l});if(c.status==="valid")return c;c.status==="dirty"&&!u&&(u={result:c,ctx:l}),l.common.issues.length&&s.push(l.common.issues)}if(u)return n.common.issues.push(...u.ctx.common.issues),u.result;let o=s.map(a=>new cr(a));return oe(n,{code:Q.invalid_union,unionErrors:o}),Me}}get options(){return this._def.options}};ds.create=(e,t)=>new ds({options:e,typeName:Re.ZodUnion,...Ve(t)});var Si=e=>e instanceof hs?Si(e.schema):e instanceof fr?Si(e.innerType()):e instanceof ms?[e.value]:e instanceof gs?e.options:e instanceof Es?ot.objectValues(e.enum):e instanceof Ds?Si(e._def.innerType):e instanceof cs?[void 0]:e instanceof fs?[null]:e instanceof kr?[void 0,...Si(e.unwrap())]:e instanceof ri?[null,...Si(e.unwrap())]:e instanceof hl||e instanceof Cs?Si(e.unwrap()):e instanceof As?Si(e._def.innerType):[],yf=class e extends We{_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==fe.object)return oe(n,{code:Q.invalid_type,expected:fe.object,received:n.parsedType}),Me;let r=this.discriminator,i=n.data[r],u=this.optionsMap.get(i);return u?n.common.async?u._parseAsync({data:n.data,path:n.path,parent:n}):u._parseSync({data:n.data,path:n.path,parent:n}):(oe(n,{code:Q.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Me)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let i=new Map;for(let u of n){let s=Si(u.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let o of s){if(i.has(o))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(o)}`);i.set(o,u)}}return new e({typeName:Re.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...Ve(r)})}};function l0(e,t){let n=au(e),r=au(t);if(e===t)return{valid:!0,data:e};if(n===fe.object&&r===fe.object){let i=ot.objectKeys(t),u=ot.objectKeys(e).filter(o=>i.indexOf(o)!==-1),s={...e,...t};for(let o of u){let a=l0(e[o],t[o]);if(!a.valid)return{valid:!1};s[o]=a.data}return{valid:!0,data:s}}else if(n===fe.array&&r===fe.array){if(e.length!==t.length)return{valid:!1};let i=[];for(let u=0;u<e.length;u++){let s=e[u],o=t[u],a=l0(s,o);if(!a.valid)return{valid:!1};i.push(a.data)}return{valid:!0,data:i}}else return n===fe.date&&r===fe.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var ps=class extends We{_parse(t){let{status:n,ctx:r}=this._processInputParams(t),i=(u,s)=>{if(o0(u)||o0(s))return Me;let o=l0(u.value,s.value);return o.valid?((a0(u)||a0(s))&&n.dirty(),{status:n.value,value:o.data}):(oe(r,{code:Q.invalid_intersection_types}),Me)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([u,s])=>i(u,s)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}};ps.create=(e,t,n)=>new ps({left:e,right:t,typeName:Re.ZodIntersection,...Ve(n)});var ni=class e extends We{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==fe.array)return oe(r,{code:Q.invalid_type,expected:fe.array,received:r.parsedType}),Me;if(r.data.length<this._def.items.length)return oe(r,{code:Q.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Me;!this._def.rest&&r.data.length>this._def.items.length&&(oe(r,{code:Q.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());let u=[...r.data].map((s,o)=>{let a=this._def.items[o]||this._def.rest;return a?a._parse(new Sr(r,s,r.path,o)):null}).filter(s=>!!s);return r.common.async?Promise.all(u).then(s=>kn.mergeArray(n,s)):kn.mergeArray(n,u)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};ni.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ni({items:e,typeName:Re.ZodTuple,rest:null,...Ve(t)})};var Tf=class e extends We{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==fe.object)return oe(r,{code:Q.invalid_type,expected:fe.object,received:r.parsedType}),Me;let i=[],u=this._def.keyType,s=this._def.valueType;for(let o in r.data)i.push({key:u._parse(new Sr(r,o,r.path,o)),value:s._parse(new Sr(r,r.data[o],r.path,o)),alwaysSet:o in r.data});return r.common.async?kn.mergeObjectAsync(n,i):kn.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof We?new e({keyType:t,valueType:n,typeName:Re.ZodRecord,...Ve(r)}):new e({keyType:lu.create(),valueType:t,typeName:Re.ZodRecord,...Ve(n)})}},Ao=class extends We{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==fe.map)return oe(r,{code:Q.invalid_type,expected:fe.map,received:r.parsedType}),Me;let i=this._def.keyType,u=this._def.valueType,s=[...r.data.entries()].map(([o,a],l)=>({key:i._parse(new Sr(r,o,r.path,[l,"key"])),value:u._parse(new Sr(r,a,r.path,[l,"value"]))}));if(r.common.async){let o=new Map;return Promise.resolve().then(async()=>{for(let a of s){let l=await a.key,c=await a.value;if(l.status==="aborted"||c.status==="aborted")return Me;(l.status==="dirty"||c.status==="dirty")&&n.dirty(),o.set(l.value,c.value)}return{status:n.value,value:o}})}else{let o=new Map;for(let a of s){let l=a.key,c=a.value;if(l.status==="aborted"||c.status==="aborted")return Me;(l.status==="dirty"||c.status==="dirty")&&n.dirty(),o.set(l.value,c.value)}return{status:n.value,value:o}}}};Ao.create=(e,t,n)=>new Ao({valueType:t,keyType:e,typeName:Re.ZodMap,...Ve(n)});var Co=class e extends We{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==fe.set)return oe(r,{code:Q.invalid_type,expected:fe.set,received:r.parsedType}),Me;let i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(oe(r,{code:Q.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(oe(r,{code:Q.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());let u=this._def.valueType;function s(a){let l=new Set;for(let c of a){if(c.status==="aborted")return Me;c.status==="dirty"&&n.dirty(),l.add(c.value)}return{status:n.value,value:l}}let o=[...r.data.values()].map((a,l)=>u._parse(new Sr(r,a,r.path,l)));return r.common.async?Promise.all(o).then(a=>s(a)):s(o)}min(t,n){return new e({...this._def,minSize:{value:t,message:be.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:be.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};Co.create=(e,t)=>new Co({valueType:e,minSize:null,maxSize:null,typeName:Re.ZodSet,...Ve(t)});var bf=class e extends We{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==fe.function)return oe(n,{code:Q.invalid_type,expected:fe.function,received:n.parsedType}),Me;function r(o,a){return Cf({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Af(),go].filter(l=>!!l),issueData:{code:Q.invalid_arguments,argumentsError:a}})}function i(o,a){return Cf({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Af(),go].filter(l=>!!l),issueData:{code:Q.invalid_return_type,returnTypeError:a}})}let u={errorMap:n.common.contextualErrorMap},s=n.data;if(this._def.returns instanceof fu){let o=this;return Pn(async function(...a){let l=new cr([]),c=await o._def.args.parseAsync(a,u).catch(d=>{throw l.addIssue(r(a,d)),l}),f=await Reflect.apply(s,this,c);return await o._def.returns._def.type.parseAsync(f,u).catch(d=>{throw l.addIssue(i(f,d)),l})})}else{let o=this;return Pn(function(...a){let l=o._def.args.safeParse(a,u);if(!l.success)throw new cr([r(a,l.error)]);let c=Reflect.apply(s,this,l.data),f=o._def.returns.safeParse(c,u);if(!f.success)throw new cr([i(c,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:ni.create(t).rest(Ii.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new e({args:t||ni.create([]).rest(Ii.create()),returns:n||Ii.create(),typeName:Re.ZodFunction,...Ve(r)})}},hs=class extends We{get schema(){return this._def.getter()}_parse(t){let{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};hs.create=(e,t)=>new hs({getter:e,typeName:Re.ZodLazy,...Ve(t)});var ms=class extends We{_parse(t){if(t.data!==this._def.value){let n=this._getOrReturnCtx(t);return oe(n,{received:n.data,code:Q.invalid_literal,expected:this._def.value}),Me}return{status:"valid",value:t.data}}get value(){return this._def.value}};ms.create=(e,t)=>new ms({value:e,typeName:Re.ZodLiteral,...Ve(t)});function lx(e,t){return new gs({values:e,typeName:Re.ZodEnum,...Ve(t)})}var gs=class e extends We{constructor(){super(...arguments),cl.set(this,void 0)}_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),r=this._def.values;return oe(n,{expected:ot.joinValues(r),received:n.parsedType,code:Q.invalid_type}),Me}if(xf(this,cl,"f")||ux(this,cl,new Set(this._def.values),"f"),!xf(this,cl,"f").has(t.data)){let n=this._getOrReturnCtx(t),r=this._def.values;return oe(n,{received:n.data,code:Q.invalid_enum_value,options:r}),Me}return Pn(t.data)}get options(){return this._def.values}get enum(){let t={};for(let n of this._def.values)t[n]=n;return t}get Values(){let t={};for(let n of this._def.values)t[n]=n;return t}get Enum(){let t={};for(let n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}};cl=new WeakMap;gs.create=lx;var Es=class extends We{constructor(){super(...arguments),fl.set(this,void 0)}_parse(t){let n=ot.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==fe.string&&r.parsedType!==fe.number){let i=ot.objectValues(n);return oe(r,{expected:ot.joinValues(i),received:r.parsedType,code:Q.invalid_type}),Me}if(xf(this,fl,"f")||ux(this,fl,new Set(ot.getValidEnumValues(this._def.values)),"f"),!xf(this,fl,"f").has(t.data)){let i=ot.objectValues(n);return oe(r,{received:r.data,code:Q.invalid_enum_value,options:i}),Me}return Pn(t.data)}get enum(){return this._def.values}};fl=new WeakMap;Es.create=(e,t)=>new Es({values:e,typeName:Re.ZodNativeEnum,...Ve(t)});var fu=class extends We{unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==fe.promise&&n.common.async===!1)return oe(n,{code:Q.invalid_type,expected:fe.promise,received:n.parsedType}),Me;let r=n.parsedType===fe.promise?n.data:Promise.resolve(n.data);return Pn(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}};fu.create=(e,t)=>new fu({type:e,typeName:Re.ZodPromise,...Ve(t)});var fr=class extends We{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Re.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,u={addIssue:s=>{oe(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(u.addIssue=u.addIssue.bind(u),i.type==="preprocess"){let s=i.transform(r.data,u);if(r.common.async)return Promise.resolve(s).then(async o=>{if(n.value==="aborted")return Me;let a=await this._def.schema._parseAsync({data:o,path:r.path,parent:r});return a.status==="aborted"?Me:a.status==="dirty"||n.value==="dirty"?mo(a.value):a});{if(n.value==="aborted")return Me;let o=this._def.schema._parseSync({data:s,path:r.path,parent:r});return o.status==="aborted"?Me:o.status==="dirty"||n.value==="dirty"?mo(o.value):o}}if(i.type==="refinement"){let s=o=>{let a=i.refinement(o,u);if(r.common.async)return Promise.resolve(a);if(a instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(r.common.async===!1){let o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?Me:(o.status==="dirty"&&n.dirty(),s(o.value),{status:n.value,value:o.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>o.status==="aborted"?Me:(o.status==="dirty"&&n.dirty(),s(o.value).then(()=>({status:n.value,value:o.value}))))}if(i.type==="transform")if(r.common.async===!1){let s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!dl(s))return s;let o=i.transform(s.value,u);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:o}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>dl(s)?Promise.resolve(i.transform(s.value,u)).then(o=>({status:n.value,value:o})):s);ot.assertNever(i)}};fr.create=(e,t,n)=>new fr({schema:e,typeName:Re.ZodEffects,effect:t,...Ve(n)});fr.createWithPreprocess=(e,t,n)=>new fr({schema:t,effect:{type:"preprocess",transform:e},typeName:Re.ZodEffects,...Ve(n)});var kr=class extends We{_parse(t){return this._getType(t)===fe.undefined?Pn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};kr.create=(e,t)=>new kr({innerType:e,typeName:Re.ZodOptional,...Ve(t)});var ri=class extends We{_parse(t){return this._getType(t)===fe.null?Pn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};ri.create=(e,t)=>new ri({innerType:e,typeName:Re.ZodNullable,...Ve(t)});var Ds=class extends We{_parse(t){let{ctx:n}=this._processInputParams(t),r=n.data;return n.parsedType===fe.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};Ds.create=(e,t)=>new Ds({innerType:e,typeName:Re.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ve(t)});var As=class extends We{_parse(t){let{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return pl(i)?i.then(u=>({status:"valid",value:u.status==="valid"?u.value:this._def.catchValue({get error(){return new cr(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new cr(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};As.create=(e,t)=>new As({innerType:e,typeName:Re.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ve(t)});var xo=class extends We{_parse(t){if(this._getType(t)!==fe.nan){let r=this._getOrReturnCtx(t);return oe(r,{code:Q.invalid_type,expected:fe.nan,received:r.parsedType}),Me}return{status:"valid",value:t.data}}};xo.create=e=>new xo({typeName:Re.ZodNaN,...Ve(e)});var p8=Symbol("zod_brand"),hl=class extends We{_parse(t){let{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}},ml=class e extends We{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{let u=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return u.status==="aborted"?Me:u.status==="dirty"?(n.dirty(),mo(u.value)):this._def.out._parseAsync({data:u.value,path:r.path,parent:r})})();{let i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?Me:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new e({in:t,out:n,typeName:Re.ZodPipeline})}},Cs=class extends We{_parse(t){let n=this._def.innerType._parse(t),r=i=>(dl(i)&&(i.value=Object.freeze(i.value)),i);return pl(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}};Cs.create=(e,t)=>new Cs({innerType:e,typeName:Re.ZodReadonly,...Ve(t)});function cx(e,t={},n){return e?cu.create().superRefine((r,i)=>{var u,s;if(!e(r)){let o=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,a=(s=(u=o.fatal)!==null&&u!==void 0?u:n)!==null&&s!==void 0?s:!0,l=typeof o=="string"?{message:o}:o;i.addIssue({code:"custom",...l,fatal:a})}}):cu.create()}var h8={object:Jn.lazycreate},Re;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Re||(Re={}));var m8=(e,t={message:`Input not instance of ${e.name}`})=>cx(n=>n instanceof e,t),fx=lu.create,dx=ss.create,g8=xo.create,E8=os.create,px=as.create,D8=ls.create,A8=Eo.create,C8=cs.create,x8=fs.create,y8=cu.create,T8=Ii.create,b8=qr.create,_8=Do.create,F8=vi.create,k8=Jn.create,S8=Jn.strictCreate,I8=ds.create,v8=yf.create,w8=ps.create,O8=ni.create,B8=Tf.create,N8=Ao.create,R8=Co.create,L8=bf.create,P8=hs.create,M8=ms.create,U8=gs.create,H8=Es.create,j8=fu.create,rx=fr.create,G8=kr.create,q8=ri.create,z8=fr.createWithPreprocess,$8=ml.create,V8=()=>fx().optional(),W8=()=>dx().optional(),Y8=()=>px().optional(),K8={string:e=>lu.create({...e,coerce:!0}),number:e=>ss.create({...e,coerce:!0}),boolean:e=>as.create({...e,coerce:!0}),bigint:e=>os.create({...e,coerce:!0}),date:e=>ls.create({...e,coerce:!0})},Z8=Me,De=Object.freeze({__proto__:null,defaultErrorMap:go,setErrorMap:ZP,getErrorMap:Af,makeIssue:Cf,EMPTY_PATH:QP,addIssueToContext:oe,ParseStatus:kn,INVALID:Me,DIRTY:mo,OK:Pn,isAborted:o0,isDirty:a0,isValid:dl,isAsync:pl,get util(){return ot},get objectUtil(){return s0},ZodParsedType:fe,getParsedType:au,ZodType:We,datetimeRegex:ax,ZodString:lu,ZodNumber:ss,ZodBigInt:os,ZodBoolean:as,ZodDate:ls,ZodSymbol:Eo,ZodUndefined:cs,ZodNull:fs,ZodAny:cu,ZodUnknown:Ii,ZodNever:qr,ZodVoid:Do,ZodArray:vi,ZodObject:Jn,ZodUnion:ds,ZodDiscriminatedUnion:yf,ZodIntersection:ps,ZodTuple:ni,ZodRecord:Tf,ZodMap:Ao,ZodSet:Co,ZodFunction:bf,ZodLazy:hs,ZodLiteral:ms,ZodEnum:gs,ZodNativeEnum:Es,ZodPromise:fu,ZodEffects:fr,ZodTransformer:fr,ZodOptional:kr,ZodNullable:ri,ZodDefault:Ds,ZodCatch:As,ZodNaN:xo,BRAND:p8,ZodBranded:hl,ZodPipeline:ml,ZodReadonly:Cs,custom:cx,Schema:We,ZodSchema:We,late:h8,get ZodFirstPartyTypeKind(){return Re},coerce:K8,any:y8,array:F8,bigint:E8,boolean:px,date:D8,discriminatedUnion:v8,effect:rx,enum:U8,function:L8,instanceof:m8,intersection:w8,lazy:P8,literal:M8,map:N8,nan:g8,nativeEnum:H8,never:b8,null:x8,nullable:q8,number:dx,object:k8,oboolean:Y8,onumber:W8,optional:G8,ostring:V8,pipeline:$8,preprocess:z8,promise:j8,record:B8,set:R8,strictObject:S8,string:fx,symbol:A8,transformer:rx,tuple:O8,undefined:C8,union:I8,unknown:T8,void:_8,NEVER:Z8,ZodIssueCode:Q,quotelessJson:KP,ZodError:cr});import{defaultLoaders as Q8}from"cosmiconfig";function c0(e,t){let n=Q8[".json"],r=n(e,t);return hx(r)}function hx(e,t="",n={}){for(let[r,i]of Object.entries(e)){let u=t?`${t}.${r}`:r;typeof i=="object"&&i!==null&&!Array.isArray(i)?hx(i,u,n):i===null?n[u]="null":n[u]=i.toString()}return n}import s9 from"node:fs";import wi from"node:path";import n9 from"node:process";import X8 from"node:process";import J8 from"node:fs/promises";import{fileURLToPath as e9}from"node:url";import yo from"node:path";var mx=e=>e instanceof URL?e9(e):e;async function _f(e,{cwd:t=X8.cwd(),type:n="file",stopAt:r}={}){let i=yo.resolve(mx(t)??""),{root:u}=yo.parse(i);for(r=yo.resolve(i,mx(r??u));i&&i!==r&&i!==u;){let s=yo.isAbsolute(e)?e:yo.join(i,e);try{let o=await J8.stat(s);if(n==="file"&&o.isFile()||n==="directory"&&o.isDirectory())return s}catch{}i=yo.dirname(i)}}async function gx({cwd:e=n9.cwd()}={}){return _f("package.json",{cwd:e})}import r9 from"node:fs";import i9 from"node:fs/promises";async function f0(e,t,n){if(typeof n!="string")throw new TypeError(`Expected a string, got ${typeof n}`);try{return(await i9[e](n))[t]()}catch(r){if(r.code==="ENOENT")return!1;throw r}}function d0(e,t,n){if(typeof n!="string")throw new TypeError(`Expected a string, got ${typeof n}`);try{return r9[e](n)[t]()}catch(r){if(r.code==="ENOENT")return!1;throw r}}var To=f0.bind(void 0,"stat","isFile"),KX=f0.bind(void 0,"stat","isDirectory"),ZX=f0.bind(void 0,"lstat","isSymbolicLink"),p0=d0.bind(void 0,"statSync","isFile"),QX=d0.bind(void 0,"statSync","isDirectory"),XX=d0.bind(void 0,"lstatSync","isSymbolicLink");import u9 from"node:os";var Ex=u9.homedir();function h0(e){if(typeof e!="string")throw new TypeError(`Expected a string, got ${typeof e}`);return Ex?e.replace(/^~(?=$|\/|\\)/,Ex):e}function o9(e,t){let n=t===0?1:Math.floor(Math.log10(Math.abs(t))+1);return e.toString().padStart(n,"0")}function Ax(e,t,n,r){let i=[];for(let[u,s]of e.entries()){let o=n&&e.length>1?`-${o9(u+1,e.length+1)}`:"",a=a9(s,t,n,r,o);i.push(a)}return i}function a9(e,t,n,r,i=""){let u=Dx(e),s=t?Dx(t):void 0;if(!p0(u))throw new Error(`Input file not found: "${u}"`);if(s){if(p0(s))throw new Error(`Output path must be a directory, received a file path: "${s}"`);s9.mkdirSync(s,{recursive:!0})}let o=n?wi.basename(n,wi.extname(n)):wi.basename(u,wi.extname(u)),a=`.${r??(n&&wi.extname(n)!==""?wi.extname(n):wi.extname(e)===""?"":wi.extname(e))}`,l=`${o}${i}${a}`,c=s??wi.dirname(u);return{input:u,name:l,output:c}}function Dx(e){return h0(e)}async function Ff(){return gx()}function kf(e){return e==null?[]:Array.isArray(e)?e:[e]}var yx=qC.merge(De.object({assetsPath:De.string().optional(),packageFile:De.string().optional()})).describe("Config Extension");async function xs(e){let{additionalConfig:t,additionalRules:n,searchFrom:r}=e??{},i={addMetaComment:!1,assetsPath:"./assets",closingPrefix:"/",keywordPrefix:"",metaCommentIdentifier:"+",packageFile:await Ff(),rules:{mdat:"Powered by the Markdown Autophagic Template system: [mdat](https://github.com/kitschpatrol/mdat)."}},u=Cx("mdat",{loaders:{".ts":xx({esmResolve:!0})}}),s=await u.search(r);if(s){let{config:o,filepath:a}=s;Ie.info(`Using config from "${a}"`);let l=Tx(o,yx);l&&(i=oo(i,l))}if(t!==void 0){let o=Array.isArray(t)?t:[t];for(let a of o){let l;if(typeof a=="string"){let f=await u.load(a);if(f==null)continue;let{config:p,filepath:d}=f;Ie.info(`Loaded additional config from "${d}"`),l=p}else l=a;if(l===void 0)continue;Ie.info("Merging configuration object");let c=Tx(l,yx);c!==void 0&&(i=oo(i,c))}}if(n!==void 0){let o=Array.isArray(n)?n:[n],a=Cx("mdat",{loaders:{".json":c0,".ts":xx({esmResolve:!0})}});for(let l of o){let c;if(typeof l=="string"){let p;if(bx.basename(l).endsWith("package.json")){let A=await l9.readFile(l,"utf8");p={config:c0(l,A),filepath:l}}else p=await a.load(l);if(p==null)continue;let{config:d,filepath:m}=p;Ie.info(`Loaded additional config from "${m}"`),c=d}else c=l;if(c===void 0)continue;Ie.info("Merging rules into configuration object");let f=f9(c,Vc);f!==void 0&&(i=oo(i,f))}}if(i.rules){let o=Object.keys(i.rules).sort().map(a=>`"${_n.bold.green(a)}"`);Ie.info(`Loaded ${_n.bold(o.length)} mdat comment expansion ${i0("rule",o.length)}:`);for(let a of o)Ie.info(` ${a}`)}else Ie.error("No rules loaded from additional configurations or rules, using default.");return Sf=i,i}function f9(e,t){if(t.safeParse(e).success)return{rules:e};Ie.error(`Rules object has the wrong shape. Ignoring and using default configuration:
|
|
132
|
+
`,"f"),me(this,Dn,_(this,Dn,"f")+t.join(" "),"f")}}}[Vm](t){ao(_(this,ye,"f")).forEach(n=>{if((i=>i==="configObjects")(n))return;let r=_(this,ye,"f")[n];Array.isArray(r)?r.includes(t)&&r.splice(r.indexOf(t),1):typeof r=="object"&&delete r[t]}),delete _(this,je,"f").getDescriptions()[t]}[B2](t,n,r){_(this,ff,"f")[r]||(_(this,Pe,"f").process.emitWarning(t,n),_(this,ff,"f")[r]=!0)}[N2](){_(this,df,"f").push({options:_(this,ye,"f"),configObjects:_(this,ye,"f").configObjects.slice(0),exitProcess:_(this,br,"f"),groups:_(this,ei,"f"),strict:_(this,es,"f"),strictCommands:_(this,ts,"f"),strictOptions:_(this,ns,"f"),completionCommand:_(this,or,"f"),output:_(this,Dn,"f"),exitError:_(this,uu,"f"),hasOutput:_(this,ar,"f"),parsed:this.parsed,parseFn:_(this,lr,"f"),parseContext:_(this,Xu,"f")}),_(this,je,"f").freeze(),_(this,Gt,"f").freeze(),_(this,Vt,"f").freeze(),_(this,_r,"f").freeze()}[R2](){let t="",n;return/\b(node|iojs|electron)(\.exe)?$/.test(_(this,Pe,"f").process.argv()[0])?n=_(this,Pe,"f").process.argv().slice(1,2):n=_(this,Pe,"f").process.argv().slice(0,1),t=n.map(r=>{let i=this[Y2](_(this,Zu,"f"),r);return r.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<r.length?i:r}).join(" ").trim(),_(this,Pe,"f").getEnv("_")&&_(this,Pe,"f").getProcessArgvBin()===_(this,Pe,"f").getEnv("_")&&(t=_(this,Pe,"f").getEnv("_").replace(`${_(this,Pe,"f").path.dirname(_(this,Pe,"f").process.execPath())}/`,"")),t}[rs](){return _(this,mf,"f")}[L2](){return _(this,Ef,"f")}[Wm](){if(!_(this,Qu,"f"))return;let t=_(this,Pe,"f").getEnv("LC_ALL")||_(this,Pe,"f").getEnv("LC_MESSAGES")||_(this,Pe,"f").getEnv("LANG")||_(this,Pe,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[P2](){return this[Ym]().version||"unknown"}[M2](t){let n=t["--"]?t["--"]:t._;for(let r=0,i;(i=n[r])!==void 0;r++)_(this,Pe,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(n[r]=Number(i));return t}[Ym](t){let n=t||"*";if(_(this,fo,"f")[n])return _(this,fo,"f")[n];let r={};try{let i=t||_(this,Pe,"f").mainFilename;!t&&_(this,Pe,"f").path.extname(i)&&(i=_(this,Pe,"f").path.dirname(i));let u=_(this,Pe,"f").findUp(i,(s,o)=>{if(o.includes("package.json"))return"package.json"});Ln(u,void 0,_(this,Pe,"f")),r=JSON.parse(_(this,Pe,"f").readFileSync(u,"utf8"))}catch{}return _(this,fo,"f")[n]=r||{},_(this,fo,"f")[n]}[ou](t,n){n=[].concat(n),n.forEach(r=>{r=this[Qm](r),_(this,ye,"f")[t].push(r)})}[po](t,n,r,i){this[Zm](t,n,r,i,(u,s,o)=>{_(this,ye,"f")[u][s]=o})}[Km](t,n,r,i){this[Zm](t,n,r,i,(u,s,o)=>{_(this,ye,"f")[u][s]=(_(this,ye,"f")[u][s]||[]).concat(o)})}[Zm](t,n,r,i,u){if(Array.isArray(r))r.forEach(s=>{t(s,i)});else if((s=>typeof s=="object")(r))for(let s of ao(r))t(s,r[s]);else u(n,this[Qm](r),i)}[Qm](t){return t==="__proto__"?"___proto___":t}[Xm](t,n){return this[po](this[Xm].bind(this),"key",t,n),this}[Jm](){var t,n,r,i,u,s,o,a,l,c,f,p;let d=_(this,df,"f").pop();Ln(d,void 0,_(this,Pe,"f"));let m;t=this,n=this,r=this,i=this,u=this,s=this,o=this,a=this,l=this,c=this,f=this,p=this,{options:{set value(A){me(t,ye,A,"f")}}.value,configObjects:m,exitProcess:{set value(A){me(n,br,A,"f")}}.value,groups:{set value(A){me(r,ei,A,"f")}}.value,output:{set value(A){me(i,Dn,A,"f")}}.value,exitError:{set value(A){me(u,uu,A,"f")}}.value,hasOutput:{set value(A){me(s,ar,A,"f")}}.value,parsed:this.parsed,strict:{set value(A){me(o,es,A,"f")}}.value,strictCommands:{set value(A){me(a,ts,A,"f")}}.value,strictOptions:{set value(A){me(l,ns,A,"f")}}.value,completionCommand:{set value(A){me(c,or,A,"f")}}.value,parseFn:{set value(A){me(f,lr,A,"f")}}.value,parseContext:{set value(A){me(p,Xu,A,"f")}}.value}=d,_(this,ye,"f").configObjects=m,_(this,je,"f").unfreeze(),_(this,Gt,"f").unfreeze(),_(this,Vt,"f").unfreeze(),_(this,_r,"f").unfreeze()}[U2](t,n){return Ku(n,r=>(t(r),r))}getInternalMethods(){return{getCommandInstance:this[H2].bind(this),getContext:this[j2].bind(this),getHasOutput:this[G2].bind(this),getLoggerInstance:this[q2].bind(this),getParseContext:this[z2].bind(this),getParserConfiguration:this[rs].bind(this),getUsageConfiguration:this[L2].bind(this),getUsageInstance:this[$2].bind(this),getValidationInstance:this[V2].bind(this),hasParseCallback:this[Df].bind(this),isGlobalContext:this[W2].bind(this),postProcess:this[is].bind(this),reset:this[e0].bind(this),runValidation:this[t0].bind(this),runYargsParserAndExecuteCommands:this[ll].bind(this),setHasOutput:this[K2].bind(this)}}[H2](){return _(this,Vt,"f")}[j2](){return _(this,al,"f")}[G2](){return _(this,ar,"f")}[q2](){return _(this,co,"f")}[z2](){return _(this,Xu,"f")||{}}[$2](){return _(this,je,"f")}[V2](){return _(this,Gt,"f")}[Df](){return!!_(this,lr,"f")}[W2](){return _(this,pf,"f")}[is](t,n,r,i){return r||_t(t)||(n||(t=this[w2](t)),(this[rs]()["parse-positional-numbers"]||this[rs]()["parse-positional-numbers"]===void 0)&&(t=this[M2](t)),i&&(t=Yu(t,this,_(this,_r,"f").getMiddleware(),!1))),t}[e0](t={}){me(this,ye,_(this,ye,"f")||{},"f");let n={};n.local=_(this,ye,"f").local||[],n.configObjects=_(this,ye,"f").configObjects||[];let r={};n.local.forEach(s=>{r[s]=!0,(t[s]||[]).forEach(o=>{r[o]=!0})}),Object.assign(_(this,Ju,"f"),Object.keys(_(this,ei,"f")).reduce((s,o)=>{let a=_(this,ei,"f")[o].filter(l=>!(l in r));return a.length>0&&(s[o]=a),s},{})),me(this,ei,{},"f");let i=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],u=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return i.forEach(s=>{n[s]=(_(this,ye,"f")[s]||[]).filter(o=>!r[o])}),u.forEach(s=>{n[s]=ru(_(this,ye,"f")[s],o=>!r[o])}),n.envPrefix=_(this,ye,"f").envPrefix,me(this,ye,n,"f"),me(this,je,_(this,je,"f")?_(this,je,"f").reset(r):T2(this,_(this,Pe,"f")),"f"),me(this,Gt,_(this,Gt,"f")?_(this,Gt,"f").reset(r):I2(this,_(this,je,"f"),_(this,Pe,"f")),"f"),me(this,Vt,_(this,Vt,"f")?_(this,Vt,"f").reset():C2(_(this,je,"f"),_(this,Gt,"f"),_(this,_r,"f"),_(this,Pe,"f")),"f"),_(this,Tr,"f")||me(this,Tr,F2(this,_(this,je,"f"),_(this,Vt,"f"),_(this,Pe,"f")),"f"),_(this,_r,"f").reset(),me(this,or,null,"f"),me(this,Dn,"","f"),me(this,uu,null,"f"),me(this,ar,!1,"f"),this.parsed=!1,this}[Y2](t,n){return _(this,Pe,"f").path.relative(t,n)}[ll](t,n,r,i=0,u=!1){let s=!!r||u;t=t||_(this,su,"f"),_(this,ye,"f").__=_(this,Pe,"f").y18n.__,_(this,ye,"f").configuration=this[rs]();let o=!!_(this,ye,"f").configuration["populate--"],a=Object.assign({},_(this,ye,"f").configuration,{"populate--":!0}),l=_(this,Pe,"f").Parser.detailed(t,Object.assign({},_(this,ye,"f"),{configuration:{"parse-positional-numbers":!1,...a}})),c=Object.assign(l.argv,_(this,Xu,"f")),f,p=l.aliases,d=!1,m=!1;Object.keys(c).forEach(A=>{A===_(this,Fr,"f")&&c[A]?d=!0:A===_(this,ti,"f")&&c[A]&&(m=!0)}),c.$0=this.$0,this.parsed=l,i===0&&_(this,je,"f").clearCachedHelpMessage();try{if(this[Wm](),n)return this[is](c,o,!!r,!1);_(this,Fr,"f")&&[_(this,Fr,"f")].concat(p[_(this,Fr,"f")]||[]).filter(y=>y.length>1).includes(""+c._[c._.length-1])&&(c._.pop(),d=!0),me(this,pf,!1,"f");let A=_(this,Vt,"f").getCommands(),E=_(this,Tr,"f").completionKey in c,g=d||E||u;if(c._.length){if(A.length){let T;for(let y=i||0,O;c._[y]!==void 0;y++)if(O=String(c._[y]),A.includes(O)&&O!==_(this,or,"f")){let v=_(this,Vt,"f").runCommand(O,this,l,y+1,u,d||m||u);return this[is](v,o,!!r,!1)}else if(!T&&O!==_(this,or,"f")){T=O;break}!_(this,Vt,"f").hasDefaultCommand()&&_(this,gf,"f")&&T&&!g&&_(this,Gt,"f").recommendCommands(T,A)}_(this,or,"f")&&c._.includes(_(this,or,"f"))&&!E&&(_(this,br,"f")&&iu(!0),this.showCompletionScript(),this.exit(0))}if(_(this,Vt,"f").hasDefaultCommand()&&!g){let T=_(this,Vt,"f").runCommand(null,this,l,0,u,d||m||u);return this[is](T,o,!!r,!1)}if(E){_(this,br,"f")&&iu(!0),t=[].concat(t);let T=t.slice(t.indexOf(`--${_(this,Tr,"f").completionKey}`)+1);return _(this,Tr,"f").getCompletion(T,(y,O)=>{if(y)throw new bt(y.message);(O||[]).forEach(v=>{_(this,co,"f").log(v)}),this.exit(0)}),this[is](c,!o,!!r,!1)}if(_(this,ar,"f")||(d?(_(this,br,"f")&&iu(!0),s=!0,this.showHelp("log"),this.exit(0)):m&&(_(this,br,"f")&&iu(!0),s=!0,_(this,je,"f").showVersion("log"),this.exit(0))),!s&&_(this,ye,"f").skipValidation.length>0&&(s=Object.keys(c).some(T=>_(this,ye,"f").skipValidation.indexOf(T)>=0&&c[T]===!0)),!s){if(l.error)throw new bt(l.error.message);if(!E){let T=this[t0](p,{},l.error);r||(f=Yu(c,this,_(this,_r,"f").getMiddleware(),!0)),f=this[U2](T,f??c),_t(f)&&!r&&(f=f.then(()=>Yu(c,this,_(this,_r,"f").getMiddleware(),!1)))}}}catch(A){if(A instanceof bt)_(this,je,"f").fail(A.message,A);else throw A}return this[is](f??c,o,!!r,!0)}[t0](t,n,r,i){let u={...this.getDemandedOptions()};return s=>{if(r)throw new bt(r.message);_(this,Gt,"f").nonOptionCount(s),_(this,Gt,"f").requiredArguments(s,u);let o=!1;_(this,ts,"f")&&(o=_(this,Gt,"f").unknownCommands(s)),_(this,es,"f")&&!o?_(this,Gt,"f").unknownArguments(s,t,n,!!i):_(this,ns,"f")&&_(this,Gt,"f").unknownArguments(s,t,{},!1,!1),_(this,Gt,"f").limitedChoices(s),_(this,Gt,"f").implications(s),_(this,Gt,"f").conflicting(s)}}[K2](){me(this,ar,!0,"f")}[us](t){if(typeof t=="string")_(this,ye,"f").key[t]=!0;else for(let n of t)_(this,ye,"f").key[n]=!0}};function x2(e){return!!e&&typeof e.getInternalMethods=="function"}var $P=Z2(Um),Q2=$P;var X2="0.8.1";import{cosmiconfig as Cx}from"cosmiconfig";import{TypeScriptLoader as xx}from"cosmiconfig-typescript-loader";import l9 from"node:fs/promises";import bx from"node:path";var r0=nD(tx(),1);function i0(e,t,n){if(typeof t=="number"&&(n=t),r0.default.has(e.toLowerCase())){t=r0.default.get(e.toLowerCase());let r=e.charAt(0);r===r.toUpperCase()&&(t=r+t.slice(1)),e===e.toUpperCase()&&(t=t.toUpperCase())}else typeof t!="string"&&(t=(e.replace(/(?:s|x|z|ch|sh)$/i,"$&e").replace(/([^aeiou])y$/i,"$1ie")+"s").replace(/i?e?s$/i,r=>e.slice(-1)===e.slice(-1).toLowerCase()?r.toLowerCase():r.toUpperCase()));return Math.abs(n)===1?e:t}import{readPackage as c9}from"read-pkg";var ot;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{let u={};for(let s of i)u[s]=s;return u},e.getValidEnumValues=i=>{let u=e.objectKeys(i).filter(o=>typeof i[i[o]]!="number"),s={};for(let o of u)s[o]=i[o];return e.objectValues(s)},e.objectValues=i=>e.objectKeys(i).map(function(u){return i[u]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{let u=[];for(let s in i)Object.prototype.hasOwnProperty.call(i,s)&&u.push(s);return u},e.find=(i,u)=>{for(let s of i)if(u(s))return s},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function r(i,u=" | "){return i.map(s=>typeof s=="string"?`'${s}'`:s).join(u)}e.joinValues=r,e.jsonStringifyReplacer=(i,u)=>typeof u=="bigint"?u.toString():u})(ot||(ot={}));var s0;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(s0||(s0={}));var fe=ot.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),au=e=>{switch(typeof e){case"undefined":return fe.undefined;case"string":return fe.string;case"number":return isNaN(e)?fe.nan:fe.number;case"boolean":return fe.boolean;case"function":return fe.function;case"bigint":return fe.bigint;case"symbol":return fe.symbol;case"object":return Array.isArray(e)?fe.array:e===null?fe.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?fe.promise:typeof Map<"u"&&e instanceof Map?fe.map:typeof Set<"u"&&e instanceof Set?fe.set:typeof Date<"u"&&e instanceof Date?fe.date:fe.object;default:return fe.unknown}},Q=ot.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),KP=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),cr=class e extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){let n=t||function(u){return u.message},r={_errors:[]},i=u=>{for(let s of u.issues)if(s.code==="invalid_union")s.unionErrors.map(i);else if(s.code==="invalid_return_type")i(s.returnTypeError);else if(s.code==="invalid_arguments")i(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let o=r,a=0;for(;a<s.path.length;){let l=s.path[a];a===s.path.length-1?(o[l]=o[l]||{_errors:[]},o[l]._errors.push(n(s))):o[l]=o[l]||{_errors:[]},o=o[l],a++}}};return i(this),r}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ot.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){let n={},r=[];for(let i of this.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}};cr.create=e=>new cr(e);var go=(e,t)=>{let n;switch(e.code){case Q.invalid_type:e.received===fe.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case Q.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ot.jsonStringifyReplacer)}`;break;case Q.unrecognized_keys:n=`Unrecognized key(s) in object: ${ot.joinValues(e.keys,", ")}`;break;case Q.invalid_union:n="Invalid input";break;case Q.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ot.joinValues(e.options)}`;break;case Q.invalid_enum_value:n=`Invalid enum value. Expected ${ot.joinValues(e.options)}, received '${e.received}'`;break;case Q.invalid_arguments:n="Invalid function arguments";break;case Q.invalid_return_type:n="Invalid function return type";break;case Q.invalid_date:n="Invalid date";break;case Q.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:ot.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case Q.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case Q.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case Q.custom:n="Invalid input";break;case Q.invalid_intersection_types:n="Intersection results could not be merged";break;case Q.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Q.not_finite:n="Number must be finite";break;default:n=t.defaultError,ot.assertNever(e)}return{message:n}},ix=go;function ZP(e){ix=e}function Af(){return ix}var Cf=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,u=[...n,...i.path||[]],s={...i,path:u};if(i.message!==void 0)return{...i,path:u,message:i.message};let o="",a=r.filter(l=>!!l).slice().reverse();for(let l of a)o=l(s,{data:t,defaultError:o}).message;return{...i,path:u,message:o}},QP=[];function oe(e,t){let n=Af(),r=Cf({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===go?void 0:go].filter(i=>!!i)});e.common.issues.push(r)}var kn=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){let r=[];for(let i of n){if(i.status==="aborted")return Me;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){let r=[];for(let i of n){let u=await i.key,s=await i.value;r.push({key:u,value:s})}return e.mergeObjectSync(t,r)}static mergeObjectSync(t,n){let r={};for(let i of n){let{key:u,value:s}=i;if(u.status==="aborted"||s.status==="aborted")return Me;u.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),u.value!=="__proto__"&&(typeof s.value<"u"||i.alwaysSet)&&(r[u.value]=s.value)}return{status:t.value,value:r}}},Me=Object.freeze({status:"aborted"}),mo=e=>({status:"dirty",value:e}),Pn=e=>({status:"valid",value:e}),o0=e=>e.status==="aborted",a0=e=>e.status==="dirty",dl=e=>e.status==="valid",pl=e=>typeof Promise<"u"&&e instanceof Promise;function xf(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function ux(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}var be;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(be||(be={}));var cl,fl,Sr=class{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},nx=(e,t)=>{if(dl(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let n=new cr(e.common.issues);return this._error=n,this._error}}};function Ve(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(s,o)=>{var a,l;let{message:c}=e;return s.code==="invalid_enum_value"?{message:c??o.defaultError}:typeof o.data>"u"?{message:(a=c??r)!==null&&a!==void 0?a:o.defaultError}:s.code!=="invalid_type"?{message:o.defaultError}:{message:(l=c??n)!==null&&l!==void 0?l:o.defaultError}},description:i}}var We=class{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return au(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:au(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new kn,ctx:{common:t.parent.common,data:t.data,parsedType:au(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(pl(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){let n=this._parse(t);return Promise.resolve(n)}parse(t,n){let r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;let i={common:{issues:[],async:(r=n?.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:au(t)},u=this._parseSync({data:t,path:i.path,parent:i});return nx(i,u)}async parseAsync(t,n){let r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){let r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:au(t)},i=this._parse({data:t,path:r.path,parent:r}),u=await(pl(i)?i:Promise.resolve(i));return nx(r,u)}refine(t,n){let r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,u)=>{let s=t(i),o=()=>u.addIssue({code:Q.custom,...r(i)});return typeof Promise<"u"&&s instanceof Promise?s.then(a=>a?!0:(o(),!1)):s?!0:(o(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new fr({schema:this,typeName:Re.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return kr.create(this,this._def)}nullable(){return ri.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return vi.create(this,this._def)}promise(){return fu.create(this,this._def)}or(t){return ds.create([this,t],this._def)}and(t){return ps.create(this,t,this._def)}transform(t){return new fr({...Ve(this._def),schema:this,typeName:Re.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new Ds({...Ve(this._def),innerType:this,defaultValue:n,typeName:Re.ZodDefault})}brand(){return new hl({typeName:Re.ZodBranded,type:this,...Ve(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new As({...Ve(this._def),innerType:this,catchValue:n,typeName:Re.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return ml.create(this,t)}readonly(){return Cs.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},XP=/^c[^\s-]{8,}$/i,JP=/^[0-9a-z]+$/,e8=/^[0-9A-HJKMNP-TV-Z]{26}$/,t8=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,n8=/^[a-z0-9_-]{21}$/i,r8=/^[-+]?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)?)??$/,i8=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,u8="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",u0,s8=/^(?:(?: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])$/,o8=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,a8=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,sx="((\\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])))",l8=new RegExp(`^${sx}$`);function ox(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function c8(e){return new RegExp(`^${ox(e)}$`)}function ax(e){let t=`${sx}T${ox(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function f8(e,t){return!!((t==="v4"||!t)&&s8.test(e)||(t==="v6"||!t)&&o8.test(e))}var lu=class e extends We{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==fe.string){let u=this._getOrReturnCtx(t);return oe(u,{code:Q.invalid_type,expected:fe.string,received:u.parsedType}),Me}let r=new kn,i;for(let u of this._def.checks)if(u.kind==="min")t.data.length<u.value&&(i=this._getOrReturnCtx(t,i),oe(i,{code:Q.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),r.dirty());else if(u.kind==="max")t.data.length>u.value&&(i=this._getOrReturnCtx(t,i),oe(i,{code:Q.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),r.dirty());else if(u.kind==="length"){let s=t.data.length>u.value,o=t.data.length<u.value;(s||o)&&(i=this._getOrReturnCtx(t,i),s?oe(i,{code:Q.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}):o&&oe(i,{code:Q.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}),r.dirty())}else if(u.kind==="email")i8.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"email",code:Q.invalid_string,message:u.message}),r.dirty());else if(u.kind==="emoji")u0||(u0=new RegExp(u8,"u")),u0.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"emoji",code:Q.invalid_string,message:u.message}),r.dirty());else if(u.kind==="uuid")t8.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"uuid",code:Q.invalid_string,message:u.message}),r.dirty());else if(u.kind==="nanoid")n8.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"nanoid",code:Q.invalid_string,message:u.message}),r.dirty());else if(u.kind==="cuid")XP.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"cuid",code:Q.invalid_string,message:u.message}),r.dirty());else if(u.kind==="cuid2")JP.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"cuid2",code:Q.invalid_string,message:u.message}),r.dirty());else if(u.kind==="ulid")e8.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"ulid",code:Q.invalid_string,message:u.message}),r.dirty());else if(u.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),oe(i,{validation:"url",code:Q.invalid_string,message:u.message}),r.dirty()}else u.kind==="regex"?(u.regex.lastIndex=0,u.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"regex",code:Q.invalid_string,message:u.message}),r.dirty())):u.kind==="trim"?t.data=t.data.trim():u.kind==="includes"?t.data.includes(u.value,u.position)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Q.invalid_string,validation:{includes:u.value,position:u.position},message:u.message}),r.dirty()):u.kind==="toLowerCase"?t.data=t.data.toLowerCase():u.kind==="toUpperCase"?t.data=t.data.toUpperCase():u.kind==="startsWith"?t.data.startsWith(u.value)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Q.invalid_string,validation:{startsWith:u.value},message:u.message}),r.dirty()):u.kind==="endsWith"?t.data.endsWith(u.value)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Q.invalid_string,validation:{endsWith:u.value},message:u.message}),r.dirty()):u.kind==="datetime"?ax(u).test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Q.invalid_string,validation:"datetime",message:u.message}),r.dirty()):u.kind==="date"?l8.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Q.invalid_string,validation:"date",message:u.message}),r.dirty()):u.kind==="time"?c8(u).test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Q.invalid_string,validation:"time",message:u.message}),r.dirty()):u.kind==="duration"?r8.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"duration",code:Q.invalid_string,message:u.message}),r.dirty()):u.kind==="ip"?f8(t.data,u.version)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"ip",code:Q.invalid_string,message:u.message}),r.dirty()):u.kind==="base64"?a8.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"base64",code:Q.invalid_string,message:u.message}),r.dirty()):ot.assertNever(u);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:Q.invalid_string,...be.errToObj(r)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...be.errToObj(t)})}url(t){return this._addCheck({kind:"url",...be.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...be.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...be.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...be.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...be.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...be.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...be.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...be.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...be.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:(n=t?.offset)!==null&&n!==void 0?n:!1,local:(r=t?.local)!==null&&r!==void 0?r:!1,...be.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...be.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...be.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...be.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...be.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...be.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...be.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...be.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...be.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...be.errToObj(n)})}nonempty(t){return this.min(1,be.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};lu.create=e=>{var t;return new lu({checks:[],typeName:Re.ZodString,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...Ve(e)})};function d8(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,u=parseInt(e.toFixed(i).replace(".","")),s=parseInt(t.toFixed(i).replace(".",""));return u%s/Math.pow(10,i)}var ss=class e extends We{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==fe.number){let u=this._getOrReturnCtx(t);return oe(u,{code:Q.invalid_type,expected:fe.number,received:u.parsedType}),Me}let r,i=new kn;for(let u of this._def.checks)u.kind==="int"?ot.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),oe(r,{code:Q.invalid_type,expected:"integer",received:"float",message:u.message}),i.dirty()):u.kind==="min"?(u.inclusive?t.data<u.value:t.data<=u.value)&&(r=this._getOrReturnCtx(t,r),oe(r,{code:Q.too_small,minimum:u.value,type:"number",inclusive:u.inclusive,exact:!1,message:u.message}),i.dirty()):u.kind==="max"?(u.inclusive?t.data>u.value:t.data>=u.value)&&(r=this._getOrReturnCtx(t,r),oe(r,{code:Q.too_big,maximum:u.value,type:"number",inclusive:u.inclusive,exact:!1,message:u.message}),i.dirty()):u.kind==="multipleOf"?d8(t.data,u.value)!==0&&(r=this._getOrReturnCtx(t,r),oe(r,{code:Q.not_multiple_of,multipleOf:u.value,message:u.message}),i.dirty()):u.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),oe(r,{code:Q.not_finite,message:u.message}),i.dirty()):ot.assertNever(u);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,be.toString(n))}gt(t,n){return this.setLimit("min",t,!1,be.toString(n))}lte(t,n){return this.setLimit("max",t,!0,be.toString(n))}lt(t,n){return this.setLimit("max",t,!1,be.toString(n))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:be.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:be.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:be.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:be.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:be.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:be.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:be.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:be.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:be.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:be.toString(t)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ot.isInteger(t.value))}get isFinite(){let t=null,n=null;for(let r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}};ss.create=e=>new ss({checks:[],typeName:Re.ZodNumber,coerce:e?.coerce||!1,...Ve(e)});var os=class e extends We{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==fe.bigint){let u=this._getOrReturnCtx(t);return oe(u,{code:Q.invalid_type,expected:fe.bigint,received:u.parsedType}),Me}let r,i=new kn;for(let u of this._def.checks)u.kind==="min"?(u.inclusive?t.data<u.value:t.data<=u.value)&&(r=this._getOrReturnCtx(t,r),oe(r,{code:Q.too_small,type:"bigint",minimum:u.value,inclusive:u.inclusive,message:u.message}),i.dirty()):u.kind==="max"?(u.inclusive?t.data>u.value:t.data>=u.value)&&(r=this._getOrReturnCtx(t,r),oe(r,{code:Q.too_big,type:"bigint",maximum:u.value,inclusive:u.inclusive,message:u.message}),i.dirty()):u.kind==="multipleOf"?t.data%u.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),oe(r,{code:Q.not_multiple_of,multipleOf:u.value,message:u.message}),i.dirty()):ot.assertNever(u);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,be.toString(n))}gt(t,n){return this.setLimit("min",t,!1,be.toString(n))}lte(t,n){return this.setLimit("max",t,!0,be.toString(n))}lt(t,n){return this.setLimit("max",t,!1,be.toString(n))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:be.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:be.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:be.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:be.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:be.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:be.toString(n)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};os.create=e=>{var t;return new os({checks:[],typeName:Re.ZodBigInt,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...Ve(e)})};var as=class extends We{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==fe.boolean){let r=this._getOrReturnCtx(t);return oe(r,{code:Q.invalid_type,expected:fe.boolean,received:r.parsedType}),Me}return Pn(t.data)}};as.create=e=>new as({typeName:Re.ZodBoolean,coerce:e?.coerce||!1,...Ve(e)});var ls=class e extends We{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==fe.date){let u=this._getOrReturnCtx(t);return oe(u,{code:Q.invalid_type,expected:fe.date,received:u.parsedType}),Me}if(isNaN(t.data.getTime())){let u=this._getOrReturnCtx(t);return oe(u,{code:Q.invalid_date}),Me}let r=new kn,i;for(let u of this._def.checks)u.kind==="min"?t.data.getTime()<u.value&&(i=this._getOrReturnCtx(t,i),oe(i,{code:Q.too_small,message:u.message,inclusive:!0,exact:!1,minimum:u.value,type:"date"}),r.dirty()):u.kind==="max"?t.data.getTime()>u.value&&(i=this._getOrReturnCtx(t,i),oe(i,{code:Q.too_big,message:u.message,inclusive:!0,exact:!1,maximum:u.value,type:"date"}),r.dirty()):ot.assertNever(u);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:be.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:be.toString(n)})}get minDate(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}};ls.create=e=>new ls({checks:[],coerce:e?.coerce||!1,typeName:Re.ZodDate,...Ve(e)});var Eo=class extends We{_parse(t){if(this._getType(t)!==fe.symbol){let r=this._getOrReturnCtx(t);return oe(r,{code:Q.invalid_type,expected:fe.symbol,received:r.parsedType}),Me}return Pn(t.data)}};Eo.create=e=>new Eo({typeName:Re.ZodSymbol,...Ve(e)});var cs=class extends We{_parse(t){if(this._getType(t)!==fe.undefined){let r=this._getOrReturnCtx(t);return oe(r,{code:Q.invalid_type,expected:fe.undefined,received:r.parsedType}),Me}return Pn(t.data)}};cs.create=e=>new cs({typeName:Re.ZodUndefined,...Ve(e)});var fs=class extends We{_parse(t){if(this._getType(t)!==fe.null){let r=this._getOrReturnCtx(t);return oe(r,{code:Q.invalid_type,expected:fe.null,received:r.parsedType}),Me}return Pn(t.data)}};fs.create=e=>new fs({typeName:Re.ZodNull,...Ve(e)});var cu=class extends We{constructor(){super(...arguments),this._any=!0}_parse(t){return Pn(t.data)}};cu.create=e=>new cu({typeName:Re.ZodAny,...Ve(e)});var Ii=class extends We{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Pn(t.data)}};Ii.create=e=>new Ii({typeName:Re.ZodUnknown,...Ve(e)});var qr=class extends We{_parse(t){let n=this._getOrReturnCtx(t);return oe(n,{code:Q.invalid_type,expected:fe.never,received:n.parsedType}),Me}};qr.create=e=>new qr({typeName:Re.ZodNever,...Ve(e)});var Do=class extends We{_parse(t){if(this._getType(t)!==fe.undefined){let r=this._getOrReturnCtx(t);return oe(r,{code:Q.invalid_type,expected:fe.void,received:r.parsedType}),Me}return Pn(t.data)}};Do.create=e=>new Do({typeName:Re.ZodVoid,...Ve(e)});var vi=class e extends We{_parse(t){let{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==fe.array)return oe(n,{code:Q.invalid_type,expected:fe.array,received:n.parsedType}),Me;if(i.exactLength!==null){let s=n.data.length>i.exactLength.value,o=n.data.length<i.exactLength.value;(s||o)&&(oe(n,{code:s?Q.too_big:Q.too_small,minimum:o?i.exactLength.value:void 0,maximum:s?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(oe(n,{code:Q.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(oe(n,{code:Q.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((s,o)=>i.type._parseAsync(new Sr(n,s,n.path,o)))).then(s=>kn.mergeArray(r,s));let u=[...n.data].map((s,o)=>i.type._parseSync(new Sr(n,s,n.path,o)));return kn.mergeArray(r,u)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:be.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:be.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:be.toString(n)}})}nonempty(t){return this.min(1,t)}};vi.create=(e,t)=>new vi({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Re.ZodArray,...Ve(t)});function ho(e){if(e instanceof Jn){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=kr.create(ho(r))}return new Jn({...e._def,shape:()=>t})}else return e instanceof vi?new vi({...e._def,type:ho(e.element)}):e instanceof kr?kr.create(ho(e.unwrap())):e instanceof ri?ri.create(ho(e.unwrap())):e instanceof ni?ni.create(e.items.map(t=>ho(t))):e}var Jn=class e extends We{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),n=ot.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==fe.object){let l=this._getOrReturnCtx(t);return oe(l,{code:Q.invalid_type,expected:fe.object,received:l.parsedType}),Me}let{status:r,ctx:i}=this._processInputParams(t),{shape:u,keys:s}=this._getCached(),o=[];if(!(this._def.catchall instanceof qr&&this._def.unknownKeys==="strip"))for(let l in i.data)s.includes(l)||o.push(l);let a=[];for(let l of s){let c=u[l],f=i.data[l];a.push({key:{status:"valid",value:l},value:c._parse(new Sr(i,f,i.path,l)),alwaysSet:l in i.data})}if(this._def.catchall instanceof qr){let l=this._def.unknownKeys;if(l==="passthrough")for(let c of o)a.push({key:{status:"valid",value:c},value:{status:"valid",value:i.data[c]}});else if(l==="strict")o.length>0&&(oe(i,{code:Q.unrecognized_keys,keys:o}),r.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let l=this._def.catchall;for(let c of o){let f=i.data[c];a.push({key:{status:"valid",value:c},value:l._parse(new Sr(i,f,i.path,c)),alwaysSet:c in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let l=[];for(let c of a){let f=await c.key,p=await c.value;l.push({key:f,value:p,alwaysSet:c.alwaysSet})}return l}).then(l=>kn.mergeObjectSync(r,l)):kn.mergeObjectSync(r,a)}get shape(){return this._def.shape()}strict(t){return be.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,u,s,o;let a=(s=(u=(i=this._def).errorMap)===null||u===void 0?void 0:u.call(i,n,r).message)!==null&&s!==void 0?s:r.defaultError;return n.code==="unrecognized_keys"?{message:(o=be.errToObj(t).message)!==null&&o!==void 0?o:a}:{message:a}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Re.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};return ot.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new e({...this._def,shape:()=>n})}omit(t){let n={};return ot.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new e({...this._def,shape:()=>n})}deepPartial(){return ho(this)}partial(t){let n={};return ot.objectKeys(this.shape).forEach(r=>{let i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}),new e({...this._def,shape:()=>n})}required(t){let n={};return ot.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let u=this.shape[r];for(;u instanceof kr;)u=u._def.innerType;n[r]=u}}),new e({...this._def,shape:()=>n})}keyof(){return lx(ot.objectKeys(this.shape))}};Jn.create=(e,t)=>new Jn({shape:()=>e,unknownKeys:"strip",catchall:qr.create(),typeName:Re.ZodObject,...Ve(t)});Jn.strictCreate=(e,t)=>new Jn({shape:()=>e,unknownKeys:"strict",catchall:qr.create(),typeName:Re.ZodObject,...Ve(t)});Jn.lazycreate=(e,t)=>new Jn({shape:e,unknownKeys:"strip",catchall:qr.create(),typeName:Re.ZodObject,...Ve(t)});var ds=class extends We{_parse(t){let{ctx:n}=this._processInputParams(t),r=this._def.options;function i(u){for(let o of u)if(o.result.status==="valid")return o.result;for(let o of u)if(o.result.status==="dirty")return n.common.issues.push(...o.ctx.common.issues),o.result;let s=u.map(o=>new cr(o.ctx.common.issues));return oe(n,{code:Q.invalid_union,unionErrors:s}),Me}if(n.common.async)return Promise.all(r.map(async u=>{let s={...n,common:{...n.common,issues:[]},parent:null};return{result:await u._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(i);{let u,s=[];for(let a of r){let l={...n,common:{...n.common,issues:[]},parent:null},c=a._parseSync({data:n.data,path:n.path,parent:l});if(c.status==="valid")return c;c.status==="dirty"&&!u&&(u={result:c,ctx:l}),l.common.issues.length&&s.push(l.common.issues)}if(u)return n.common.issues.push(...u.ctx.common.issues),u.result;let o=s.map(a=>new cr(a));return oe(n,{code:Q.invalid_union,unionErrors:o}),Me}}get options(){return this._def.options}};ds.create=(e,t)=>new ds({options:e,typeName:Re.ZodUnion,...Ve(t)});var Si=e=>e instanceof hs?Si(e.schema):e instanceof fr?Si(e.innerType()):e instanceof ms?[e.value]:e instanceof gs?e.options:e instanceof Es?ot.objectValues(e.enum):e instanceof Ds?Si(e._def.innerType):e instanceof cs?[void 0]:e instanceof fs?[null]:e instanceof kr?[void 0,...Si(e.unwrap())]:e instanceof ri?[null,...Si(e.unwrap())]:e instanceof hl||e instanceof Cs?Si(e.unwrap()):e instanceof As?Si(e._def.innerType):[],yf=class e extends We{_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==fe.object)return oe(n,{code:Q.invalid_type,expected:fe.object,received:n.parsedType}),Me;let r=this.discriminator,i=n.data[r],u=this.optionsMap.get(i);return u?n.common.async?u._parseAsync({data:n.data,path:n.path,parent:n}):u._parseSync({data:n.data,path:n.path,parent:n}):(oe(n,{code:Q.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Me)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let i=new Map;for(let u of n){let s=Si(u.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let o of s){if(i.has(o))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(o)}`);i.set(o,u)}}return new e({typeName:Re.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...Ve(r)})}};function l0(e,t){let n=au(e),r=au(t);if(e===t)return{valid:!0,data:e};if(n===fe.object&&r===fe.object){let i=ot.objectKeys(t),u=ot.objectKeys(e).filter(o=>i.indexOf(o)!==-1),s={...e,...t};for(let o of u){let a=l0(e[o],t[o]);if(!a.valid)return{valid:!1};s[o]=a.data}return{valid:!0,data:s}}else if(n===fe.array&&r===fe.array){if(e.length!==t.length)return{valid:!1};let i=[];for(let u=0;u<e.length;u++){let s=e[u],o=t[u],a=l0(s,o);if(!a.valid)return{valid:!1};i.push(a.data)}return{valid:!0,data:i}}else return n===fe.date&&r===fe.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var ps=class extends We{_parse(t){let{status:n,ctx:r}=this._processInputParams(t),i=(u,s)=>{if(o0(u)||o0(s))return Me;let o=l0(u.value,s.value);return o.valid?((a0(u)||a0(s))&&n.dirty(),{status:n.value,value:o.data}):(oe(r,{code:Q.invalid_intersection_types}),Me)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([u,s])=>i(u,s)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}};ps.create=(e,t,n)=>new ps({left:e,right:t,typeName:Re.ZodIntersection,...Ve(n)});var ni=class e extends We{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==fe.array)return oe(r,{code:Q.invalid_type,expected:fe.array,received:r.parsedType}),Me;if(r.data.length<this._def.items.length)return oe(r,{code:Q.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Me;!this._def.rest&&r.data.length>this._def.items.length&&(oe(r,{code:Q.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());let u=[...r.data].map((s,o)=>{let a=this._def.items[o]||this._def.rest;return a?a._parse(new Sr(r,s,r.path,o)):null}).filter(s=>!!s);return r.common.async?Promise.all(u).then(s=>kn.mergeArray(n,s)):kn.mergeArray(n,u)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};ni.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ni({items:e,typeName:Re.ZodTuple,rest:null,...Ve(t)})};var Tf=class e extends We{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==fe.object)return oe(r,{code:Q.invalid_type,expected:fe.object,received:r.parsedType}),Me;let i=[],u=this._def.keyType,s=this._def.valueType;for(let o in r.data)i.push({key:u._parse(new Sr(r,o,r.path,o)),value:s._parse(new Sr(r,r.data[o],r.path,o)),alwaysSet:o in r.data});return r.common.async?kn.mergeObjectAsync(n,i):kn.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof We?new e({keyType:t,valueType:n,typeName:Re.ZodRecord,...Ve(r)}):new e({keyType:lu.create(),valueType:t,typeName:Re.ZodRecord,...Ve(n)})}},Ao=class extends We{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==fe.map)return oe(r,{code:Q.invalid_type,expected:fe.map,received:r.parsedType}),Me;let i=this._def.keyType,u=this._def.valueType,s=[...r.data.entries()].map(([o,a],l)=>({key:i._parse(new Sr(r,o,r.path,[l,"key"])),value:u._parse(new Sr(r,a,r.path,[l,"value"]))}));if(r.common.async){let o=new Map;return Promise.resolve().then(async()=>{for(let a of s){let l=await a.key,c=await a.value;if(l.status==="aborted"||c.status==="aborted")return Me;(l.status==="dirty"||c.status==="dirty")&&n.dirty(),o.set(l.value,c.value)}return{status:n.value,value:o}})}else{let o=new Map;for(let a of s){let l=a.key,c=a.value;if(l.status==="aborted"||c.status==="aborted")return Me;(l.status==="dirty"||c.status==="dirty")&&n.dirty(),o.set(l.value,c.value)}return{status:n.value,value:o}}}};Ao.create=(e,t,n)=>new Ao({valueType:t,keyType:e,typeName:Re.ZodMap,...Ve(n)});var Co=class e extends We{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==fe.set)return oe(r,{code:Q.invalid_type,expected:fe.set,received:r.parsedType}),Me;let i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(oe(r,{code:Q.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(oe(r,{code:Q.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());let u=this._def.valueType;function s(a){let l=new Set;for(let c of a){if(c.status==="aborted")return Me;c.status==="dirty"&&n.dirty(),l.add(c.value)}return{status:n.value,value:l}}let o=[...r.data.values()].map((a,l)=>u._parse(new Sr(r,a,r.path,l)));return r.common.async?Promise.all(o).then(a=>s(a)):s(o)}min(t,n){return new e({...this._def,minSize:{value:t,message:be.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:be.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};Co.create=(e,t)=>new Co({valueType:e,minSize:null,maxSize:null,typeName:Re.ZodSet,...Ve(t)});var bf=class e extends We{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==fe.function)return oe(n,{code:Q.invalid_type,expected:fe.function,received:n.parsedType}),Me;function r(o,a){return Cf({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Af(),go].filter(l=>!!l),issueData:{code:Q.invalid_arguments,argumentsError:a}})}function i(o,a){return Cf({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Af(),go].filter(l=>!!l),issueData:{code:Q.invalid_return_type,returnTypeError:a}})}let u={errorMap:n.common.contextualErrorMap},s=n.data;if(this._def.returns instanceof fu){let o=this;return Pn(async function(...a){let l=new cr([]),c=await o._def.args.parseAsync(a,u).catch(d=>{throw l.addIssue(r(a,d)),l}),f=await Reflect.apply(s,this,c);return await o._def.returns._def.type.parseAsync(f,u).catch(d=>{throw l.addIssue(i(f,d)),l})})}else{let o=this;return Pn(function(...a){let l=o._def.args.safeParse(a,u);if(!l.success)throw new cr([r(a,l.error)]);let c=Reflect.apply(s,this,l.data),f=o._def.returns.safeParse(c,u);if(!f.success)throw new cr([i(c,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:ni.create(t).rest(Ii.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new e({args:t||ni.create([]).rest(Ii.create()),returns:n||Ii.create(),typeName:Re.ZodFunction,...Ve(r)})}},hs=class extends We{get schema(){return this._def.getter()}_parse(t){let{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};hs.create=(e,t)=>new hs({getter:e,typeName:Re.ZodLazy,...Ve(t)});var ms=class extends We{_parse(t){if(t.data!==this._def.value){let n=this._getOrReturnCtx(t);return oe(n,{received:n.data,code:Q.invalid_literal,expected:this._def.value}),Me}return{status:"valid",value:t.data}}get value(){return this._def.value}};ms.create=(e,t)=>new ms({value:e,typeName:Re.ZodLiteral,...Ve(t)});function lx(e,t){return new gs({values:e,typeName:Re.ZodEnum,...Ve(t)})}var gs=class e extends We{constructor(){super(...arguments),cl.set(this,void 0)}_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),r=this._def.values;return oe(n,{expected:ot.joinValues(r),received:n.parsedType,code:Q.invalid_type}),Me}if(xf(this,cl,"f")||ux(this,cl,new Set(this._def.values),"f"),!xf(this,cl,"f").has(t.data)){let n=this._getOrReturnCtx(t),r=this._def.values;return oe(n,{received:n.data,code:Q.invalid_enum_value,options:r}),Me}return Pn(t.data)}get options(){return this._def.values}get enum(){let t={};for(let n of this._def.values)t[n]=n;return t}get Values(){let t={};for(let n of this._def.values)t[n]=n;return t}get Enum(){let t={};for(let n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}};cl=new WeakMap;gs.create=lx;var Es=class extends We{constructor(){super(...arguments),fl.set(this,void 0)}_parse(t){let n=ot.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==fe.string&&r.parsedType!==fe.number){let i=ot.objectValues(n);return oe(r,{expected:ot.joinValues(i),received:r.parsedType,code:Q.invalid_type}),Me}if(xf(this,fl,"f")||ux(this,fl,new Set(ot.getValidEnumValues(this._def.values)),"f"),!xf(this,fl,"f").has(t.data)){let i=ot.objectValues(n);return oe(r,{received:r.data,code:Q.invalid_enum_value,options:i}),Me}return Pn(t.data)}get enum(){return this._def.values}};fl=new WeakMap;Es.create=(e,t)=>new Es({values:e,typeName:Re.ZodNativeEnum,...Ve(t)});var fu=class extends We{unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==fe.promise&&n.common.async===!1)return oe(n,{code:Q.invalid_type,expected:fe.promise,received:n.parsedType}),Me;let r=n.parsedType===fe.promise?n.data:Promise.resolve(n.data);return Pn(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}};fu.create=(e,t)=>new fu({type:e,typeName:Re.ZodPromise,...Ve(t)});var fr=class extends We{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Re.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,u={addIssue:s=>{oe(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(u.addIssue=u.addIssue.bind(u),i.type==="preprocess"){let s=i.transform(r.data,u);if(r.common.async)return Promise.resolve(s).then(async o=>{if(n.value==="aborted")return Me;let a=await this._def.schema._parseAsync({data:o,path:r.path,parent:r});return a.status==="aborted"?Me:a.status==="dirty"||n.value==="dirty"?mo(a.value):a});{if(n.value==="aborted")return Me;let o=this._def.schema._parseSync({data:s,path:r.path,parent:r});return o.status==="aborted"?Me:o.status==="dirty"||n.value==="dirty"?mo(o.value):o}}if(i.type==="refinement"){let s=o=>{let a=i.refinement(o,u);if(r.common.async)return Promise.resolve(a);if(a instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(r.common.async===!1){let o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?Me:(o.status==="dirty"&&n.dirty(),s(o.value),{status:n.value,value:o.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>o.status==="aborted"?Me:(o.status==="dirty"&&n.dirty(),s(o.value).then(()=>({status:n.value,value:o.value}))))}if(i.type==="transform")if(r.common.async===!1){let s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!dl(s))return s;let o=i.transform(s.value,u);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:o}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>dl(s)?Promise.resolve(i.transform(s.value,u)).then(o=>({status:n.value,value:o})):s);ot.assertNever(i)}};fr.create=(e,t,n)=>new fr({schema:e,typeName:Re.ZodEffects,effect:t,...Ve(n)});fr.createWithPreprocess=(e,t,n)=>new fr({schema:t,effect:{type:"preprocess",transform:e},typeName:Re.ZodEffects,...Ve(n)});var kr=class extends We{_parse(t){return this._getType(t)===fe.undefined?Pn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};kr.create=(e,t)=>new kr({innerType:e,typeName:Re.ZodOptional,...Ve(t)});var ri=class extends We{_parse(t){return this._getType(t)===fe.null?Pn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};ri.create=(e,t)=>new ri({innerType:e,typeName:Re.ZodNullable,...Ve(t)});var Ds=class extends We{_parse(t){let{ctx:n}=this._processInputParams(t),r=n.data;return n.parsedType===fe.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};Ds.create=(e,t)=>new Ds({innerType:e,typeName:Re.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ve(t)});var As=class extends We{_parse(t){let{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return pl(i)?i.then(u=>({status:"valid",value:u.status==="valid"?u.value:this._def.catchValue({get error(){return new cr(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new cr(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};As.create=(e,t)=>new As({innerType:e,typeName:Re.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ve(t)});var xo=class extends We{_parse(t){if(this._getType(t)!==fe.nan){let r=this._getOrReturnCtx(t);return oe(r,{code:Q.invalid_type,expected:fe.nan,received:r.parsedType}),Me}return{status:"valid",value:t.data}}};xo.create=e=>new xo({typeName:Re.ZodNaN,...Ve(e)});var p8=Symbol("zod_brand"),hl=class extends We{_parse(t){let{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}},ml=class e extends We{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{let u=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return u.status==="aborted"?Me:u.status==="dirty"?(n.dirty(),mo(u.value)):this._def.out._parseAsync({data:u.value,path:r.path,parent:r})})();{let i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?Me:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new e({in:t,out:n,typeName:Re.ZodPipeline})}},Cs=class extends We{_parse(t){let n=this._def.innerType._parse(t),r=i=>(dl(i)&&(i.value=Object.freeze(i.value)),i);return pl(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}};Cs.create=(e,t)=>new Cs({innerType:e,typeName:Re.ZodReadonly,...Ve(t)});function cx(e,t={},n){return e?cu.create().superRefine((r,i)=>{var u,s;if(!e(r)){let o=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,a=(s=(u=o.fatal)!==null&&u!==void 0?u:n)!==null&&s!==void 0?s:!0,l=typeof o=="string"?{message:o}:o;i.addIssue({code:"custom",...l,fatal:a})}}):cu.create()}var h8={object:Jn.lazycreate},Re;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Re||(Re={}));var m8=(e,t={message:`Input not instance of ${e.name}`})=>cx(n=>n instanceof e,t),fx=lu.create,dx=ss.create,g8=xo.create,E8=os.create,px=as.create,D8=ls.create,A8=Eo.create,C8=cs.create,x8=fs.create,y8=cu.create,T8=Ii.create,b8=qr.create,_8=Do.create,F8=vi.create,k8=Jn.create,S8=Jn.strictCreate,I8=ds.create,v8=yf.create,w8=ps.create,O8=ni.create,B8=Tf.create,N8=Ao.create,R8=Co.create,L8=bf.create,P8=hs.create,M8=ms.create,U8=gs.create,H8=Es.create,j8=fu.create,rx=fr.create,G8=kr.create,q8=ri.create,z8=fr.createWithPreprocess,$8=ml.create,V8=()=>fx().optional(),W8=()=>dx().optional(),Y8=()=>px().optional(),K8={string:e=>lu.create({...e,coerce:!0}),number:e=>ss.create({...e,coerce:!0}),boolean:e=>as.create({...e,coerce:!0}),bigint:e=>os.create({...e,coerce:!0}),date:e=>ls.create({...e,coerce:!0})},Z8=Me,De=Object.freeze({__proto__:null,defaultErrorMap:go,setErrorMap:ZP,getErrorMap:Af,makeIssue:Cf,EMPTY_PATH:QP,addIssueToContext:oe,ParseStatus:kn,INVALID:Me,DIRTY:mo,OK:Pn,isAborted:o0,isDirty:a0,isValid:dl,isAsync:pl,get util(){return ot},get objectUtil(){return s0},ZodParsedType:fe,getParsedType:au,ZodType:We,datetimeRegex:ax,ZodString:lu,ZodNumber:ss,ZodBigInt:os,ZodBoolean:as,ZodDate:ls,ZodSymbol:Eo,ZodUndefined:cs,ZodNull:fs,ZodAny:cu,ZodUnknown:Ii,ZodNever:qr,ZodVoid:Do,ZodArray:vi,ZodObject:Jn,ZodUnion:ds,ZodDiscriminatedUnion:yf,ZodIntersection:ps,ZodTuple:ni,ZodRecord:Tf,ZodMap:Ao,ZodSet:Co,ZodFunction:bf,ZodLazy:hs,ZodLiteral:ms,ZodEnum:gs,ZodNativeEnum:Es,ZodPromise:fu,ZodEffects:fr,ZodTransformer:fr,ZodOptional:kr,ZodNullable:ri,ZodDefault:Ds,ZodCatch:As,ZodNaN:xo,BRAND:p8,ZodBranded:hl,ZodPipeline:ml,ZodReadonly:Cs,custom:cx,Schema:We,ZodSchema:We,late:h8,get ZodFirstPartyTypeKind(){return Re},coerce:K8,any:y8,array:F8,bigint:E8,boolean:px,date:D8,discriminatedUnion:v8,effect:rx,enum:U8,function:L8,instanceof:m8,intersection:w8,lazy:P8,literal:M8,map:N8,nan:g8,nativeEnum:H8,never:b8,null:x8,nullable:q8,number:dx,object:k8,oboolean:Y8,onumber:W8,optional:G8,ostring:V8,pipeline:$8,preprocess:z8,promise:j8,record:B8,set:R8,strictObject:S8,string:fx,symbol:A8,transformer:rx,tuple:O8,undefined:C8,union:I8,unknown:T8,void:_8,NEVER:Z8,ZodIssueCode:Q,quotelessJson:KP,ZodError:cr});import{defaultLoaders as Q8}from"cosmiconfig";function c0(e,t){let n=Q8[".json"],r=n(e,t);return hx(r)}function hx(e,t="",n={}){for(let[r,i]of Object.entries(e)){let u=t?`${t}.${r}`:r;typeof i=="object"&&i!==null&&!Array.isArray(i)?hx(i,u,n):i===null?n[u]="null":n[u]=i.toString()}return n}import s9 from"node:fs";import wi from"node:path";import n9 from"node:process";import X8 from"node:process";import J8 from"node:fs/promises";import{fileURLToPath as e9}from"node:url";import yo from"node:path";var mx=e=>e instanceof URL?e9(e):e;async function _f(e,{cwd:t=X8.cwd(),type:n="file",stopAt:r}={}){let i=yo.resolve(mx(t)??""),{root:u}=yo.parse(i);for(r=yo.resolve(i,mx(r??u));i&&i!==r&&i!==u;){let s=yo.isAbsolute(e)?e:yo.join(i,e);try{let o=await J8.stat(s);if(n==="file"&&o.isFile()||n==="directory"&&o.isDirectory())return s}catch{}i=yo.dirname(i)}}async function gx({cwd:e=n9.cwd()}={}){return _f("package.json",{cwd:e})}import r9 from"node:fs";import i9 from"node:fs/promises";async function f0(e,t,n){if(typeof n!="string")throw new TypeError(`Expected a string, got ${typeof n}`);try{return(await i9[e](n))[t]()}catch(r){if(r.code==="ENOENT")return!1;throw r}}function d0(e,t,n){if(typeof n!="string")throw new TypeError(`Expected a string, got ${typeof n}`);try{return r9[e](n)[t]()}catch(r){if(r.code==="ENOENT")return!1;throw r}}var To=f0.bind(void 0,"stat","isFile"),KX=f0.bind(void 0,"stat","isDirectory"),ZX=f0.bind(void 0,"lstat","isSymbolicLink"),p0=d0.bind(void 0,"statSync","isFile"),QX=d0.bind(void 0,"statSync","isDirectory"),XX=d0.bind(void 0,"lstatSync","isSymbolicLink");import u9 from"node:os";var Ex=u9.homedir();function h0(e){if(typeof e!="string")throw new TypeError(`Expected a string, got ${typeof e}`);return Ex?e.replace(/^~(?=$|\/|\\)/,Ex):e}function o9(e,t){let n=t===0?1:Math.floor(Math.log10(Math.abs(t))+1);return e.toString().padStart(n,"0")}function Ax(e,t,n,r){let i=[];for(let[u,s]of e.entries()){let o=n&&e.length>1?`-${o9(u+1,e.length+1)}`:"",a=a9(s,t,n,r,o);i.push(a)}return i}function a9(e,t,n,r,i=""){let u=Dx(e),s=t?Dx(t):void 0;if(!p0(u))throw new Error(`Input file not found: "${u}"`);if(s){if(p0(s))throw new Error(`Output path must be a directory, received a file path: "${s}"`);s9.mkdirSync(s,{recursive:!0})}let o=n?wi.basename(n,wi.extname(n)):wi.basename(u,wi.extname(u)),a=`.${r??(n&&wi.extname(n)!==""?wi.extname(n):wi.extname(e)===""?"":wi.extname(e))}`,l=`${o}${i}${a}`,c=s??wi.dirname(u);return{input:u,name:l,output:c}}function Dx(e){return h0(e)}async function Ff(){return gx()}function kf(e){return e==null?[]:Array.isArray(e)?e:[e]}var yx=qC.merge(De.object({assetsPath:De.string().optional(),packageFile:De.string().optional()})).describe("Config Extension");async function xs(e){let{additionalConfig:t,additionalRules:n,searchFrom:r}=e??{},i={addMetaComment:!1,assetsPath:"./assets",closingPrefix:"/",keywordPrefix:"",metaCommentIdentifier:"+",packageFile:await Ff(),rules:{mdat:"Powered by the Markdown Autophagic Template system: [mdat](https://github.com/kitschpatrol/mdat)."}},u=Cx("mdat",{loaders:{".ts":xx()}}),s=await u.search(r);if(s){let{config:o,filepath:a}=s;Ie.info(`Using config from "${a}"`);let l=Tx(o,yx);l&&(i=oo(i,l))}if(t!==void 0){let o=Array.isArray(t)?t:[t];for(let a of o){let l;if(typeof a=="string"){let f=await u.load(a);if(f==null)continue;let{config:p,filepath:d}=f;Ie.info(`Loaded additional config from "${d}"`),l=p}else l=a;if(l===void 0)continue;Ie.info("Merging configuration object");let c=Tx(l,yx);c!==void 0&&(i=oo(i,c))}}if(n!==void 0){let o=Array.isArray(n)?n:[n],a=Cx("mdat",{loaders:{".json":c0,".ts":xx()}});for(let l of o){let c;if(typeof l=="string"){let p;if(bx.basename(l).endsWith("package.json")){let A=await l9.readFile(l,"utf8");p={config:c0(l,A),filepath:l}}else p=await a.load(l);if(p==null)continue;let{config:d,filepath:m}=p;Ie.info(`Loaded additional config from "${m}"`),c=d}else c=l;if(c===void 0)continue;Ie.info("Merging rules into configuration object");let f=f9(c,Vc);f!==void 0&&(i=oo(i,f))}}if(i.rules){let o=Object.keys(i.rules).sort().map(a=>`"${_n.bold.green(a)}"`);Ie.info(`Loaded ${_n.bold(o.length)} mdat comment expansion ${i0("rule",o.length)}:`);for(let a of o)Ie.info(` ${a}`)}else Ie.error("No rules loaded from additional configurations or rules, using default.");return Sf=i,i}function f9(e,t){if(t.safeParse(e).success)return{rules:e};Ie.error(`Rules object has the wrong shape. Ignoring and using default configuration:
|
|
133
133
|
${JSON.stringify(e,void 0,2)}`)}function Tx(e,t){if(t.safeParse(e).success)return e;Ie.error(`Config object has the wrong shape. Ignoring and using default configuration:
|
|
134
134
|
${JSON.stringify(e,void 0,2)}`)}var Sf;async function ii(){return Sf===void 0&&(Ie.warn("getConfig(): config was undefined"),Sf??=await xs()),Sf}var m0;async function dr(){let{packageFile:e}=await ii();if(e===void 0)throw new Error("No packageFile found or set in config");if(m0??=await c9({cwd:bx.dirname(e)}),m0===void 0)throw new Error("No package.json found");return m0}var d9={};function Oi(e,t){let n=t||d9,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Fx(e,r,i)}function Fx(e,t,n){if(p9(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return _x(e.children,t,n)}return Array.isArray(e)?_x(e,t,n):""}function _x(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=Fx(e[i],t,n);return r.join("")}function p9(e){return!!(e&&typeof e=="object")}var g0={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
|
|
135
135
|
`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"};var h9={}.hasOwnProperty;function bo(e){return h9.call(g0,e)?g0[e]:!1}function Xt(e,t,n,r){let i=e.length,u=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);u<r.length;)s=r.slice(u,u+1e4),s.unshift(t,0),e.splice(...s),u+=1e4,t+=1e4}function Mn(e,t){return e.length>0?(Xt(e,e.length,0,t),e):t}var kx={}.hasOwnProperty;function If(e){let t={},n=-1;for(;++n<e.length;)m9(t,e[n]);return t}function m9(e,t){let n;for(n in t){let i=(kx.call(e,n)?e[n]:void 0)||(e[n]={}),u=t[n],s;if(u)for(s in u){kx.call(i,s)||(i[s]=[]);let o=u[s];g9(i[s],Array.isArray(o)?o:o?[o]:[])}}}function g9(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Xt(e,0,0,r)}function vf(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"\uFFFD":String.fromCodePoint(n)}function Sn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var an=du(/[A-Za-z]/),ln=du(/[\dA-Za-z]/),Sx=du(/[#-'*+\--9=?A-Z^-~]/);function ys(e){return e!==null&&(e<32||e===127)}var gl=du(/\d/),Ix=du(/[\dA-Fa-f]/),vx=du(/[!-/:-@[-`{-~]/);function ue(e){return e!==null&&e<-2}function Qe(e){return e!==null&&(e<0||e===32)}function we(e){return e===-2||e===-1||e===32}var Ts=du(new RegExp("\\p{P}|\\p{S}","u")),ui=du(/\s/);function du(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ke(e,t,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,u=0;return s;function s(a){return we(a)?(e.enter(n),o(a)):t(a)}function o(a){return we(a)&&u++<i?(e.consume(a),o):(e.exit(n),t(a))}}var wx={tokenize:E9};function E9(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ke(e,t,"linePrefix")}function i(o){return e.enter("paragraph"),u(o)}function u(o){let a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return ue(o)?(e.consume(o),e.exit("chunkText"),u):(e.consume(o),s)}}var Bx={tokenize:D9},Ox={tokenize:A9};function D9(e){let t=this,n=[],r=0,i,u,s;return o;function o(y){if(r<n.length){let O=n[r];return t.containerState=O[1],e.attempt(O[0].continuation,a,l)(y)}return l(y)}function a(y){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&T();let O=t.events.length,v=O,b;for(;v--;)if(t.events[v][0]==="exit"&&t.events[v][1].type==="chunkFlow"){b=t.events[v][1].end;break}g(r);let w=O;for(;w<t.events.length;)t.events[w][1].end=Object.assign({},b),w++;return Xt(t.events,v+1,0,t.events.slice(O)),t.events.length=w,l(y)}return o(y)}function l(y){if(r===n.length){if(!i)return p(y);if(i.currentConstruct&&i.currentConstruct.concrete)return m(y);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Ox,c,f)(y)}function c(y){return i&&T(),g(r),p(y)}function f(y){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,m(y)}function p(y){return t.containerState={},e.attempt(Ox,d,m)(y)}function d(y){return r++,n.push([t.currentConstruct,t.containerState]),p(y)}function m(y){if(y===null){i&&T(),g(0),e.consume(y);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:u,_tokenizer:i}),A(y)}function A(y){if(y===null){E(e.exit("chunkFlow"),!0),g(0),e.consume(y);return}return ue(y)?(e.consume(y),E(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(y),A)}function E(y,O){let v=t.sliceStream(y);if(O&&v.push(null),y.previous=u,u&&(u.next=y),u=y,i.defineSkip(y.start),i.write(v),t.parser.lazy[y.start.line]){let b=i.events.length;for(;b--;)if(i.events[b][1].start.offset<s&&(!i.events[b][1].end||i.events[b][1].end.offset>s))return;let w=t.events.length,L=w,P,x;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){if(P){x=t.events[L][1].end;break}P=!0}for(g(r),b=w;b<t.events.length;)t.events[b][1].end=Object.assign({},x),b++;Xt(t.events,L+1,0,t.events.slice(w)),t.events.length=b}}function g(y){let O=n.length;for(;O-- >y;){let v=n[O];t.containerState=v[1],v[0].exit.call(t,e)}n.length=y}function T(){i.write([null]),u=void 0,i=void 0,t.containerState._closeFlow=void 0}}function A9(e,t,n){return ke(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Bi(e){if(e===null||Qe(e)||ui(e))return 1;if(Ts(e))return 2}function pu(e,t,n){let r=[],i=-1;for(;++i<e.length;){let u=e[i].resolveAll;u&&!r.includes(u)&&(t=u(t,n),r.push(u))}return t}var El={name:"attention",tokenize:x9,resolveAll:C9};function C9(e,t){let n=-1,r,i,u,s,o,a,l,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;a=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let f=Object.assign({},e[r][1].end),p=Object.assign({},e[n][1].start);Nx(f,-a),Nx(p,a),s={type:a>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},o={type:a>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:p},u={type:a>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:a>1?"strong":"emphasis",start:Object.assign({},s.start),end:Object.assign({},o.end)},e[r][1].end=Object.assign({},s.start),e[n][1].start=Object.assign({},o.end),l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=Mn(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=Mn(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",u,t]]),l=Mn(l,pu(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=Mn(l,[["exit",u,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,l=Mn(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Xt(e,r-1,n-r+3,l),n=r+l.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function x9(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Bi(r),u;return s;function s(a){return u=a,e.enter("attentionSequence"),o(a)}function o(a){if(a===u)return e.consume(a),o;let l=e.exit("attentionSequence"),c=Bi(a),f=!c||c===2&&i||n.includes(a),p=!i||i===2&&c||n.includes(r);return l._open=!!(u===42?f:f&&(i||!p)),l._close=!!(u===42?p:p&&(c||!f)),t(a)}}function Nx(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var E0={name:"autolink",tokenize:y9};function y9(e,t,n){let r=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(d){return an(d)?(e.consume(d),s):d===64?n(d):l(d)}function s(d){return d===43||d===45||d===46||ln(d)?(r=1,o(d)):l(d)}function o(d){return d===58?(e.consume(d),r=0,a):(d===43||d===45||d===46||ln(d))&&r++<32?(e.consume(d),o):(r=0,l(d))}function a(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||ys(d)?n(d):(e.consume(d),a)}function l(d){return d===64?(e.consume(d),c):Sx(d)?(e.consume(d),l):n(d)}function c(d){return ln(d)?f(d):n(d)}function f(d){return d===46?(e.consume(d),r=0,c):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):p(d)}function p(d){if((d===45||ln(d))&&r++<63){let m=d===45?p:f;return e.consume(d),m}return n(d)}}var si={tokenize:T9,partial:!0};function T9(e,t,n){return r;function r(u){return we(u)?ke(e,i,"linePrefix")(u):i(u)}function i(u){return u===null||ue(u)?t(u):n(u)}}var wf={name:"blockQuote",tokenize:b9,continuation:{tokenize:_9},exit:F9};function b9(e,t,n){let r=this;return i;function i(s){if(s===62){let o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),u}return n(s)}function u(s){return we(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function _9(e,t,n){let r=this;return i;function i(s){return we(s)?ke(e,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):u(s)}function u(s){return e.attempt(wf,t,n)(s)}}function F9(e){e.exit("blockQuote")}var Of={name:"characterEscape",tokenize:k9};function k9(e,t,n){return r;function r(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),i}function i(u){return vx(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(u)}}var Bf={name:"characterReference",tokenize:S9};function S9(e,t,n){let r=this,i=0,u,s;return o;function o(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),a}function a(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),u=31,s=ln,c(f))}function l(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,s=Ix,c):(e.enter("characterReferenceValue"),u=7,s=gl,c(f))}function c(f){if(f===59&&i){let p=e.exit("characterReferenceValue");return s===ln&&!bo(r.sliceSerialize(p))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&i++<u?(e.consume(f),c):n(f)}}var Rx={tokenize:v9,partial:!0},Nf={name:"codeFenced",tokenize:I9,concrete:!0};function I9(e,t,n){let r=this,i={tokenize:v,partial:!0},u=0,s=0,o;return a;function a(b){return l(b)}function l(b){let w=r.events[r.events.length-1];return u=w&&w[1].type==="linePrefix"?w[2].sliceSerialize(w[1],!0).length:0,o=b,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(b)}function c(b){return b===o?(s++,e.consume(b),c):s<3?n(b):(e.exit("codeFencedFenceSequence"),we(b)?ke(e,f,"whitespace")(b):f(b))}function f(b){return b===null||ue(b)?(e.exit("codeFencedFence"),r.interrupt?t(b):e.check(Rx,A,O)(b)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===null||ue(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(b)):we(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ke(e,d,"whitespace")(b)):b===96&&b===o?n(b):(e.consume(b),p)}function d(b){return b===null||ue(b)?f(b):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===null||ue(b)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(b)):b===96&&b===o?n(b):(e.consume(b),m)}function A(b){return e.attempt(i,O,E)(b)}function E(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),g}function g(b){return u>0&&we(b)?ke(e,T,"linePrefix",u+1)(b):T(b)}function T(b){return b===null||ue(b)?e.check(Rx,A,O)(b):(e.enter("codeFlowValue"),y(b))}function y(b){return b===null||ue(b)?(e.exit("codeFlowValue"),T(b)):(e.consume(b),y)}function O(b){return e.exit("codeFenced"),t(b)}function v(b,w,L){let P=0;return x;function x($){return b.enter("lineEnding"),b.consume($),b.exit("lineEnding"),G}function G($){return b.enter("codeFencedFence"),we($)?ke(b,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):R($)}function R($){return $===o?(b.enter("codeFencedFenceSequence"),N($)):L($)}function N($){return $===o?(P++,b.consume($),N):P>=s?(b.exit("codeFencedFenceSequence"),we($)?ke(b,q,"whitespace")($):q($)):L($)}function q($){return $===null||ue($)?(b.exit("codeFencedFence"),w($)):L($)}}}function v9(e,t,n){let r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),u)}function u(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}var Dl={name:"codeIndented",tokenize:O9},w9={tokenize:B9,partial:!0};function O9(e,t,n){let r=this;return i;function i(l){return e.enter("codeIndented"),ke(e,u,"linePrefix",5)(l)}function u(l){let c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(l):n(l)}function s(l){return l===null?a(l):ue(l)?e.attempt(w9,s,a)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||ue(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),o)}function a(l){return e.exit("codeIndented"),t(l)}}function B9(e,t,n){let r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):ue(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):ke(e,u,"linePrefix",5)(s)}function u(s){let o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):ue(s)?i(s):n(s)}}var D0={name:"codeText",tokenize:L9,resolve:N9,previous:R9};function N9(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function R9(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function L9(e,t,n){let r=this,i=0,u,s;return o;function o(p){return e.enter("codeText"),e.enter("codeTextSequence"),a(p)}function a(p){return p===96?(e.consume(p),i++,a):(e.exit("codeTextSequence"),l(p))}function l(p){return p===null?n(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),l):p===96?(s=e.enter("codeTextSequence"),u=0,f(p)):ue(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(p))}function c(p){return p===null||p===32||p===96||ue(p)?(e.exit("codeTextData"),l(p)):(e.consume(p),c)}function f(p){return p===96?(e.consume(p),u++,f):u===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(s.type="codeTextData",c(p))}}var Rf=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){let r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){let i=n||0;this.setCursor(Math.trunc(t));let u=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Al(this.left,r),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Al(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Al(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){let n=this.left.splice(t,Number.POSITIVE_INFINITY);Al(this.right,n.reverse())}else{let n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Al(this.left,n.reverse())}}};function Al(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Lf(e){let t={},n=-1,r,i,u,s,o,a,l,c=new Rf(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(a=r[1]._tokenizer.events,u=0,u<a.length&&a[u][1].type==="lineEndingBlank"&&(u+=2),u<a.length&&a[u][1].type==="content"))for(;++u<a.length&&a[u][1].type!=="content";)a[u][1].type==="chunkText"&&(a[u][1]._isInFirstContentOfListItem=!0,u++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,P9(c,n)),n=t[n],l=!0);else if(r[1]._container){for(u=n,i=void 0;u--&&(s=c.get(u),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank");)s[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=u);i&&(r[1].end=Object.assign({},c.get(i)[1].start),o=c.slice(i,n),o.unshift(r),c.splice(i,n-i+1,o))}}return Xt(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!l}function P9(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,u=[],s=n._tokenizer||r.parser[n.contentType](n.start),o=s.events,a=[],l={},c,f,p=-1,d=n,m=0,A=0,E=[A];for(;d;){for(;e.get(++i)[1]!==d;);u.push(i),d._tokenizer||(c=r.sliceStream(d),d.next||c.push(null),f&&s.defineSkip(d.start),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=n;++p<o.length;)o[p][0]==="exit"&&o[p-1][0]==="enter"&&o[p][1].type===o[p-1][1].type&&o[p][1].start.line!==o[p][1].end.line&&(A=p+1,E.push(A),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(s.events=[],d?(d._tokenizer=void 0,d.previous=void 0):E.pop(),p=E.length;p--;){let g=o.slice(E[p],E[p+1]),T=u.pop();a.push([T,T+g.length-1]),e.splice(T,2,g)}for(a.reverse(),p=-1;++p<a.length;)l[m+a[p][0]]=m+a[p][1],m+=a[p][1]-a[p][0]-1;return l}var A0={tokenize:H9,resolve:U9},M9={tokenize:j9,partial:!0};function U9(e){return Lf(e),e}function H9(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?u(o):ue(o)?e.check(M9,s,u)(o):(e.consume(o),i)}function u(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function j9(e,t,n){let r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ke(e,u,"linePrefix")}function u(s){if(s===null||ue(s))return n(s);let o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Pf(e,t,n,r,i,u,s,o,a){let l=a||Number.POSITIVE_INFINITY,c=0;return f;function f(g){return g===60?(e.enter(r),e.enter(i),e.enter(u),e.consume(g),e.exit(u),p):g===null||g===32||g===41||ys(g)?n(g):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),A(g))}function p(g){return g===62?(e.enter(u),e.consume(g),e.exit(u),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===62?(e.exit("chunkString"),e.exit(o),p(g)):g===null||g===60||ue(g)?n(g):(e.consume(g),g===92?m:d)}function m(g){return g===60||g===62||g===92?(e.consume(g),d):d(g)}function A(g){return!c&&(g===null||g===41||Qe(g))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(g)):c<l&&g===40?(e.consume(g),c++,A):g===41?(e.consume(g),c--,A):g===null||g===32||g===40||ys(g)?n(g):(e.consume(g),g===92?E:A)}function E(g){return g===40||g===41||g===92?(e.consume(g),A):A(g)}}function Mf(e,t,n,r,i,u){let s=this,o=0,a;return l;function l(d){return e.enter(r),e.enter(i),e.consume(d),e.exit(i),e.enter(u),c}function c(d){return o>999||d===null||d===91||d===93&&!a||d===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):d===93?(e.exit(u),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):ue(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===null||d===91||d===93||ue(d)||o++>999?(e.exit("chunkString"),c(d)):(e.consume(d),a||(a=!we(d)),d===92?p:f)}function p(d){return d===91||d===92||d===93?(e.consume(d),o++,f):f(d)}}function Uf(e,t,n,r,i,u){let s;return o;function o(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,a):n(p)}function a(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(u),l(p))}function l(p){return p===s?(e.exit(u),a(s)):p===null?n(p):ue(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),ke(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===s||p===null||ue(p)?(e.exit("chunkString"),l(p)):(e.consume(p),p===92?f:c)}function f(p){return p===s||p===92?(e.consume(p),c):c(p)}}function bs(e,t){let n;return r;function r(i){return ue(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):we(i)?ke(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}var C0={name:"definition",tokenize:q9},G9={tokenize:z9,partial:!0};function q9(e,t,n){let r=this,i;return u;function u(d){return e.enter("definition"),s(d)}function s(d){return Mf.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function o(d){return i=Sn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),a):n(d)}function a(d){return Qe(d)?bs(e,l)(d):l(d)}function l(d){return Pf(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function c(d){return e.attempt(G9,f,f)(d)}function f(d){return we(d)?ke(e,p,"whitespace")(d):p(d)}function p(d){return d===null||ue(d)?(e.exit("definition"),r.parser.defined.push(i),t(d)):n(d)}}function z9(e,t,n){return r;function r(o){return Qe(o)?bs(e,i)(o):n(o)}function i(o){return Uf(e,u,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function u(o){return we(o)?ke(e,s,"whitespace")(o):s(o)}function s(o){return o===null||ue(o)?t(o):n(o)}}var x0={name:"hardBreakEscape",tokenize:$9};function $9(e,t,n){return r;function r(u){return e.enter("hardBreakEscape"),e.consume(u),i}function i(u){return ue(u)?(e.exit("hardBreakEscape"),t(u)):n(u)}}var y0={name:"headingAtx",tokenize:W9,resolve:V9};function V9(e,t){let n=e.length-2,r=3,i,u;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},u={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Xt(e,r,n-r+1,[["enter",i,t],["enter",u,t],["exit",u,t],["exit",i,t]])),e}function W9(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),u(c)}function u(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||Qe(c)?(e.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),a(c)):c===null||ue(c)?(e.exit("atxHeading"),t(c)):we(c)?ke(e,o,"whitespace")(c):(e.enter("atxHeadingText"),l(c))}function a(c){return c===35?(e.consume(c),a):(e.exit("atxHeadingSequence"),o(c))}function l(c){return c===null||c===35||Qe(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),l)}}var Lx=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],T0=["pre","script","style","textarea"];var b0={name:"htmlFlow",tokenize:Q9,resolveTo:Z9,concrete:!0},Y9={tokenize:J9,partial:!0},K9={tokenize:X9,partial:!0};function Z9(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Q9(e,t,n){let r=this,i,u,s,o,a;return l;function l(C){return c(C)}function c(C){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(C),f}function f(C){return C===33?(e.consume(C),p):C===47?(e.consume(C),u=!0,A):C===63?(e.consume(C),i=3,r.interrupt?t:D):an(C)?(e.consume(C),s=String.fromCharCode(C),E):n(C)}function p(C){return C===45?(e.consume(C),i=2,d):C===91?(e.consume(C),i=5,o=0,m):an(C)?(e.consume(C),i=4,r.interrupt?t:D):n(C)}function d(C){return C===45?(e.consume(C),r.interrupt?t:D):n(C)}function m(C){let ne="CDATA[";return C===ne.charCodeAt(o++)?(e.consume(C),o===ne.length?r.interrupt?t:R:m):n(C)}function A(C){return an(C)?(e.consume(C),s=String.fromCharCode(C),E):n(C)}function E(C){if(C===null||C===47||C===62||Qe(C)){let ne=C===47,ft=s.toLowerCase();return!ne&&!u&&T0.includes(ft)?(i=1,r.interrupt?t(C):R(C)):Lx.includes(s.toLowerCase())?(i=6,ne?(e.consume(C),g):r.interrupt?t(C):R(C)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(C):u?T(C):y(C))}return C===45||ln(C)?(e.consume(C),s+=String.fromCharCode(C),E):n(C)}function g(C){return C===62?(e.consume(C),r.interrupt?t:R):n(C)}function T(C){return we(C)?(e.consume(C),T):x(C)}function y(C){return C===47?(e.consume(C),x):C===58||C===95||an(C)?(e.consume(C),O):we(C)?(e.consume(C),y):x(C)}function O(C){return C===45||C===46||C===58||C===95||ln(C)?(e.consume(C),O):v(C)}function v(C){return C===61?(e.consume(C),b):we(C)?(e.consume(C),v):y(C)}function b(C){return C===null||C===60||C===61||C===62||C===96?n(C):C===34||C===39?(e.consume(C),a=C,w):we(C)?(e.consume(C),b):L(C)}function w(C){return C===a?(e.consume(C),a=null,P):C===null||ue(C)?n(C):(e.consume(C),w)}function L(C){return C===null||C===34||C===39||C===47||C===60||C===61||C===62||C===96||Qe(C)?v(C):(e.consume(C),L)}function P(C){return C===47||C===62||we(C)?y(C):n(C)}function x(C){return C===62?(e.consume(C),G):n(C)}function G(C){return C===null||ue(C)?R(C):we(C)?(e.consume(C),G):n(C)}function R(C){return C===45&&i===2?(e.consume(C),te):C===60&&i===1?(e.consume(C),re):C===62&&i===4?(e.consume(C),Ze):C===63&&i===3?(e.consume(C),D):C===93&&i===5?(e.consume(C),lt):ue(C)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Y9,ct,N)(C)):C===null||ue(C)?(e.exit("htmlFlowData"),N(C)):(e.consume(C),R)}function N(C){return e.check(K9,q,ct)(C)}function q(C){return e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),$}function $(C){return C===null||ue(C)?N(C):(e.enter("htmlFlowData"),R(C))}function te(C){return C===45?(e.consume(C),D):R(C)}function re(C){return C===47?(e.consume(C),s="",Le):R(C)}function Le(C){if(C===62){let ne=s.toLowerCase();return T0.includes(ne)?(e.consume(C),Ze):R(C)}return an(C)&&s.length<8?(e.consume(C),s+=String.fromCharCode(C),Le):R(C)}function lt(C){return C===93?(e.consume(C),D):R(C)}function D(C){return C===62?(e.consume(C),Ze):C===45&&i===2?(e.consume(C),D):R(C)}function Ze(C){return C===null||ue(C)?(e.exit("htmlFlowData"),ct(C)):(e.consume(C),Ze)}function ct(C){return e.exit("htmlFlow"),t(C)}}function X9(e,t,n){let r=this;return i;function i(s){return ue(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),u):n(s)}function u(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function J9(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(si,t,n)}}var _0={name:"htmlText",tokenize:e5};function e5(e,t,n){let r=this,i,u,s;return o;function o(D){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(D),a}function a(D){return D===33?(e.consume(D),l):D===47?(e.consume(D),v):D===63?(e.consume(D),y):an(D)?(e.consume(D),L):n(D)}function l(D){return D===45?(e.consume(D),c):D===91?(e.consume(D),u=0,m):an(D)?(e.consume(D),T):n(D)}function c(D){return D===45?(e.consume(D),d):n(D)}function f(D){return D===null?n(D):D===45?(e.consume(D),p):ue(D)?(s=f,re(D)):(e.consume(D),f)}function p(D){return D===45?(e.consume(D),d):f(D)}function d(D){return D===62?te(D):D===45?p(D):f(D)}function m(D){let Ze="CDATA[";return D===Ze.charCodeAt(u++)?(e.consume(D),u===Ze.length?A:m):n(D)}function A(D){return D===null?n(D):D===93?(e.consume(D),E):ue(D)?(s=A,re(D)):(e.consume(D),A)}function E(D){return D===93?(e.consume(D),g):A(D)}function g(D){return D===62?te(D):D===93?(e.consume(D),g):A(D)}function T(D){return D===null||D===62?te(D):ue(D)?(s=T,re(D)):(e.consume(D),T)}function y(D){return D===null?n(D):D===63?(e.consume(D),O):ue(D)?(s=y,re(D)):(e.consume(D),y)}function O(D){return D===62?te(D):y(D)}function v(D){return an(D)?(e.consume(D),b):n(D)}function b(D){return D===45||ln(D)?(e.consume(D),b):w(D)}function w(D){return ue(D)?(s=w,re(D)):we(D)?(e.consume(D),w):te(D)}function L(D){return D===45||ln(D)?(e.consume(D),L):D===47||D===62||Qe(D)?P(D):n(D)}function P(D){return D===47?(e.consume(D),te):D===58||D===95||an(D)?(e.consume(D),x):ue(D)?(s=P,re(D)):we(D)?(e.consume(D),P):te(D)}function x(D){return D===45||D===46||D===58||D===95||ln(D)?(e.consume(D),x):G(D)}function G(D){return D===61?(e.consume(D),R):ue(D)?(s=G,re(D)):we(D)?(e.consume(D),G):P(D)}function R(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),i=D,N):ue(D)?(s=R,re(D)):we(D)?(e.consume(D),R):(e.consume(D),q)}function N(D){return D===i?(e.consume(D),i=void 0,$):D===null?n(D):ue(D)?(s=N,re(D)):(e.consume(D),N)}function q(D){return D===null||D===34||D===39||D===60||D===61||D===96?n(D):D===47||D===62||Qe(D)?P(D):(e.consume(D),q)}function $(D){return D===47||D===62||Qe(D)?P(D):n(D)}function te(D){return D===62?(e.consume(D),e.exit("htmlTextData"),e.exit("htmlText"),t):n(D)}function re(D){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),Le}function Le(D){return we(D)?ke(e,lt,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):lt(D)}function lt(D){return e.enter("htmlTextData"),s(D)}}var _s={name:"labelEnd",tokenize:s5,resolveTo:u5,resolveAll:i5},t5={tokenize:o5},n5={tokenize:a5},r5={tokenize:l5};function i5(e){let t=-1;for(;++t<e.length;){let n=e[t][1];(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++)}return e}function u5(e,t){let n=e.length,r=0,i,u,s,o;for(;n--;)if(i=e[n][1],u){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(u=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);let a={type:e[u][1].type==="labelLink"?"link":"image",start:Object.assign({},e[u][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"label",start:Object.assign({},e[u][1].start),end:Object.assign({},e[s][1].end)},c={type:"labelText",start:Object.assign({},e[u+r+2][1].end),end:Object.assign({},e[s-2][1].start)};return o=[["enter",a,t],["enter",l,t]],o=Mn(o,e.slice(u+1,u+r+3)),o=Mn(o,[["enter",c,t]]),o=Mn(o,pu(t.parser.constructs.insideSpan.null,e.slice(u+r+4,s-3),t)),o=Mn(o,[["exit",c,t],e[s-2],e[s-1],["exit",l,t]]),o=Mn(o,e.slice(s+1)),o=Mn(o,[["exit",a,t]]),Xt(e,u,e.length,o),e}function s5(e,t,n){let r=this,i=r.events.length,u,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){u=r.events[i][1];break}return o;function o(p){return u?u._inactive?f(p):(s=r.parser.defined.includes(Sn(r.sliceSerialize({start:u.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),a):n(p)}function a(p){return p===40?e.attempt(t5,c,s?c:f)(p):p===91?e.attempt(n5,c,s?l:f)(p):s?c(p):f(p)}function l(p){return e.attempt(r5,c,f)(p)}function c(p){return t(p)}function f(p){return u._balanced=!0,n(p)}}function o5(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return Qe(f)?bs(e,u)(f):u(f)}function u(f){return f===41?c(f):Pf(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return Qe(f)?bs(e,a)(f):c(f)}function o(f){return n(f)}function a(f){return f===34||f===39||f===40?Uf(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function l(f){return Qe(f)?bs(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function a5(e,t,n){let r=this;return i;function i(o){return Mf.call(r,e,u,s,"reference","referenceMarker","referenceString")(o)}function u(o){return r.parser.defined.includes(Sn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function l5(e,t,n){return r;function r(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),i}function i(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),t):n(u)}}var F0={name:"labelStartImage",tokenize:c5,resolveAll:_s.resolveAll};function c5(e,t,n){let r=this;return i;function i(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),u}function u(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):n(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}var k0={name:"labelStartLink",tokenize:f5,resolveAll:_s.resolveAll};function f5(e,t,n){let r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),u}function u(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}var Cl={name:"lineEnding",tokenize:d5};function d5(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ke(e,t,"linePrefix")}}var Fs={name:"thematicBreak",tokenize:p5};function p5(e,t,n){let r=0,i;return u;function u(l){return e.enter("thematicBreak"),s(l)}function s(l){return i=l,o(l)}function o(l){return l===i?(e.enter("thematicBreakSequence"),a(l)):r>=3&&(l===null||ue(l))?(e.exit("thematicBreak"),t(l)):n(l)}function a(l){return l===i?(e.consume(l),r++,a):(e.exit("thematicBreakSequence"),we(l)?ke(e,o,"whitespace")(l):o(l))}}var In={name:"list",tokenize:g5,continuation:{tokenize:E5},exit:A5},h5={tokenize:C5,partial:!0},m5={tokenize:D5,partial:!0};function g5(e,t,n){let r=this,i=r.events[r.events.length-1],u=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(d){let m=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:gl(d)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(Fs,n,l)(d):l(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(d)}return n(d)}function a(d){return gl(d)&&++s<10?(e.consume(d),a):(!r.interrupt||s<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),l(d)):n(d)}function l(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(si,r.interrupt?n:c,e.attempt(h5,p,f))}function c(d){return r.containerState.initialBlankLine=!0,u++,p(d)}function f(d){return we(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),p):n(d)}function p(d){return r.containerState.size=u+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function E5(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(si,i,u);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ke(e,t,"listItemIndent",r.containerState.size+1)(o)}function u(o){return r.containerState.furtherBlankLines||!we(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(m5,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,ke(e,e.attempt(In,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function D5(e,t,n){let r=this;return ke(e,i,"listItemIndent",r.containerState.size+1);function i(u){let s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(u):n(u)}}function A5(e){e.exit(this.containerState.type)}function C5(e,t,n){let r=this;return ke(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(u){let s=r.events[r.events.length-1];return!we(u)&&s&&s[1].type==="listItemPrefixWhitespace"?t(u):n(u)}}var Hf={name:"setextUnderline",tokenize:y5,resolveTo:x5};function x5(e,t){let n=e.length,r,i,u;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!u&&e[n][1].type==="definition"&&(u=n);let s={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",u?(e.splice(i,0,["enter",s,t]),e.splice(u+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[u][1].end)):e[r][1]=s,e.push(["exit",s,t]),e}function y5(e,t,n){let r=this,i;return u;function u(l){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=l,s(l)):n(l)}function s(l){return e.enter("setextHeadingLineSequence"),o(l)}function o(l){return l===i?(e.consume(l),o):(e.exit("setextHeadingLineSequence"),we(l)?ke(e,a,"lineSuffix")(l):a(l))}function a(l){return l===null||ue(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}var Px={tokenize:T5};function T5(e){let t=this,n=e.attempt(si,r,e.attempt(this.parser.constructs.flowInitial,i,ke(e,e.attempt(this.parser.constructs.flow,i,e.attempt(A0,i)),"linePrefix")));return n;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),t.currentConstruct=void 0,n}}var Mx={resolveAll:Gx()},Ux=jx("string"),Hx=jx("text");function jx(e){return{tokenize:t,resolveAll:Gx(e==="text"?b5:void 0)};function t(n){let r=this,i=this.parser.constructs[e],u=n.attempt(i,s,o);return s;function s(c){return l(c)?u(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),a}function a(c){return l(c)?(n.exit("data"),u(c)):(n.consume(c),a)}function l(c){if(c===null)return!0;let f=i[c],p=-1;if(f)for(;++p<f.length;){let d=f[p];if(!d.previous||d.previous.call(r,r.previous))return!0}return!1}}}function Gx(e){return t;function t(n,r){let i=-1,u;for(;++i<=n.length;)u===void 0?n[i]&&n[i][1].type==="data"&&(u=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==u+2&&(n[u][1].end=n[i-1][1].end,n.splice(u+2,i-u-2),i=u+2),u=void 0);return e?e(n,r):n}}function b5(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){let r=e[n-1][1],i=t.sliceStream(r),u=i.length,s=-1,o=0,a;for(;u--;){let l=i[u];if(typeof l=="string"){for(s=l.length;l.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(l===-2)a=!0,o++;else if(l!==-1){u++;break}}if(o){let l={type:n===e.length||a||o<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-o,offset:r.end.offset-o,_index:r.start._index+u,_bufferIndex:u?s:r.start._bufferIndex+s},end:Object.assign({},r.end)};r.end=Object.assign({},l.start),r.start.offset===r.end.offset?Object.assign(r,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}function qx(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),i={},u=[],s=[],o=[],a=!0,l={consume:O,enter:v,exit:b,attempt:P(w),check:P(L),interrupt:P(L,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:A,sliceSerialize:m,now:E,defineSkip:g,write:d},f=t.tokenize.call(c,l),p;return t.resolveAll&&u.push(t),c;function d(N){return s=Mn(s,N),T(),s[s.length-1]!==null?[]:(x(t,0),c.events=pu(u,c.events,c),c.events)}function m(N,q){return F5(A(N),q)}function A(N){return _5(s,N)}function E(){let{line:N,column:q,offset:$,_index:te,_bufferIndex:re}=r;return{line:N,column:q,offset:$,_index:te,_bufferIndex:re}}function g(N){i[N.line]=N.column,R()}function T(){let N;for(;r._index<s.length;){let q=s[r._index];if(typeof q=="string")for(N=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===N&&r._bufferIndex<q.length;)y(q.charCodeAt(r._bufferIndex));else y(q)}}function y(N){a=void 0,p=N,f=f(N)}function O(N){ue(N)?(r.line++,r.column=1,r.offset+=N===-3?2:1,R()):N!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=N,a=!0}function v(N,q){let $=q||{};return $.type=N,$.start=E(),c.events.push(["enter",$,c]),o.push($),$}function b(N){let q=o.pop();return q.end=E(),c.events.push(["exit",q,c]),q}function w(N,q){x(N,q.from)}function L(N,q){q.restore()}function P(N,q){return $;function $(te,re,Le){let lt,D,Ze,ct;return Array.isArray(te)?ne(te):"tokenize"in te?ne([te]):C(te);function C(ae){return Fe;function Fe(_e){let Ue=_e!==null&&ae[_e],it=_e!==null&&ae.null,pt=[...Array.isArray(Ue)?Ue:Ue?[Ue]:[],...Array.isArray(it)?it:it?[it]:[]];return ne(pt)(_e)}}function ne(ae){return lt=ae,D=0,ae.length===0?Le:ft(ae[D])}function ft(ae){return Fe;function Fe(_e){return ct=G(),Ze=ae,ae.partial||(c.currentConstruct=ae),ae.name&&c.parser.constructs.disable.null.includes(ae.name)?Oe(_e):ae.tokenize.call(q?Object.assign(Object.create(c),q):c,l,Ae,Oe)(_e)}}function Ae(ae){return a=!0,N(Ze,ct),re}function Oe(ae){return a=!0,ct.restore(),++D<lt.length?ft(lt[D]):Le}}}function x(N,q){N.resolveAll&&!u.includes(N)&&u.push(N),N.resolve&&Xt(c.events,q,c.events.length-q,N.resolve(c.events.slice(q),c)),N.resolveTo&&(c.events=N.resolveTo(c.events,c))}function G(){let N=E(),q=c.previous,$=c.currentConstruct,te=c.events.length,re=Array.from(o);return{restore:Le,from:te};function Le(){r=N,c.previous=q,c.currentConstruct=$,c.events.length=te,o=re,R()}}function R(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function _5(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,u=t.end._bufferIndex,s;if(n===i)s=[e[n].slice(r,u)];else{if(s=e.slice(n,i),r>-1){let o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}u>0&&s.push(e[i].slice(0,u))}return s}function F5(e,t){let n=-1,r=[],i;for(;++n<e.length;){let u=e[n],s;if(typeof u=="string")s=u;else switch(u){case-5:{s="\r";break}case-4:{s=`
|
|
@@ -291,7 +291,7 @@ ${e}
|
|
|
291
291
|
\`\`\``}async function FW(e){let t;try{let{stderr:n,stdout:r}=await TW(e);t=r,(t===void 0||t==="")&&(t=n)}catch(n){if(n instanceof Error)throw new TypeError(`Error running CLI help command: "${e}"
|
|
292
292
|
${n.message}
|
|
293
293
|
`)}if(t===void 0||t==="")throw new Error(`No result from running CLI help command: "${e}"
|
|
294
|
-
`);return t}import Sk from"node:process";import kW from"node:path";import SW from"node:fs";import IW from"node:fs/promises";var Ik=Sk.platform==="win32",vW=Ik?new Set(Sk.env.PATHEXT?.split(";").map(e=>e.toLowerCase())):[];async function vk(e){try{return await IW.access(e,SW.X_OK),Ik?vW.has(kW.extname(e)):!0}catch{return!1}}import wW from"node:path";import OW from"which";async function wk(e){return e??=await BW(),RW(e)}async function BW(){let e=await dr();if(e?.bin){let t=typeof e.bin=="string"?e.bin:String(Object.values(e.bin).at(0));if(NW(t))return Ie.info(`Inferred <!-- cli-help --> command to run from package.json: ${t}`),t}throw new Error(`Could not infer which command to run for the <!-- cli-help --> rule. Please pass a "cliCommand" option to the expansion comment, e.g. <!-- cli-help {cliCommand: './dist/bin.js'} -->`)}function NW(e){let t=wW.parse(e);return t.root!==""||t.dir!==""}async function RW(e){let t=await OW(e,{nothrow:!0})??void 0;if(t===null&&(t=await LW(e)??void 0),t!==void 0&&await vk(t))return t;throw new Error(`The cli-help rule noticed that "${t}" is not executable.`)}async function LW(e){return(await dr())?.bin?.[e]??void 0}var xp={"cli-help":{async content(e){let t=De.object({cliCommand:De.string().optional(),depth:De.number().optional(),helpFlag:De.string().optional()}).optional().parse(e),n=await wk(t?.cliCommand);return LE(n,t?.helpFlag,t?.depth)}}};var Ok={cli:Xn(xp)};import PW from"node:fs/promises";import Bk from"node:path";var Nk={code:{async content(e){let t=De.object({file:De.string(),language:De.string().optional()}).parse(e),n=Bk.extname(t.file)??"",r=await PW.readFile(Bk.join(process.cwd(),t.file),"utf8");return`\`\`\`${n}
|
|
294
|
+
`);return t}import Sk from"node:process";import kW from"node:path";import SW from"node:fs";import IW from"node:fs/promises";var Ik=Sk.platform==="win32",vW=Ik?new Set(Sk.env.PATHEXT?.split(";").map(e=>e.toLowerCase())):[];async function vk(e){try{return await IW.access(e,SW.X_OK),Ik?vW.has(kW.extname(e)):!0}catch{return!1}}import wW from"node:path";import OW from"which";async function wk(e){return e??=await BW(),RW(e)}async function BW(){let e=await dr();if(e?.bin){let t=typeof e.bin=="string"?e.bin:String(Object.values(e.bin).at(0));if(NW(t))return Ie.info(`Inferred <!-- cli-help --> command to run from package.json: ${t}`),t}throw new Error(`Could not infer which command to run for the <!-- cli-help --> rule. Please pass a "cliCommand" option to the expansion comment, e.g. <!-- cli-help {cliCommand: './dist/bin.js'} -->`)}function NW(e){let t=wW.parse(e);return t.root!==""||t.dir!==""}async function RW(e){let t=await OW(e,{nothrow:!0})??void 0;if(t===null&&(t=await LW(e)??void 0),t!==void 0&&await vk(t))return t;throw new Error(`The cli-help rule noticed that "${t}" is not executable.`)}async function LW(e){return(await dr())?.bin?.[e]??void 0}var xp={"cli-help":{async content(e){let t=De.object({cliCommand:De.string().optional(),depth:De.number().optional(),helpFlag:De.string().optional()}).optional().parse(e),n=await wk(t?.cliCommand);return LE(n,t?.helpFlag,t?.depth)}}};var Ok={cli:Xn(xp)};import PW from"node:fs/promises";import Bk from"node:path";var Nk={code:{async content(e){let t=De.object({file:De.string(),language:De.string().optional()}).parse(e),n=(Bk.extname(t.file)??"").replace(/^\./,""),r=await PW.readFile(Bk.join(process.cwd(),t.file),"utf8");return`\`\`\`${n}
|
|
295
295
|
${r}
|
|
296
296
|
\`\`\``}}};var yp={contributing:{async content(){let t=(await dr())?.bugs?.url;if(t===void 0)throw new Error('Could not find "bugs.url" entry in package.json');return`## Contributing
|
|
297
297
|
[Issues](${t}) and pull requests are welcome.`},order:15}};var Tp={description:{async content(){let e=await dr();if(e.description===void 0)throw new Error('Could not find "description" entry in package.json');return`**${e.description}**`},order:4}};var bp={license:{async content(){let e=await dr(),{author:t,license:n}=e;if(t?.name===void 0)throw new Error('Could not find "author.name" entry in package.json');if(n===void 0)throw new Error('Could not find "license" entry in package.json');return`## License
|