mdat 0.7.5 → 0.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +1 -1
- package/package.json +7 -7
package/bin/cli.js
CHANGED
|
@@ -129,7 +129,7 @@ ${m.join(`
|
|
|
129
129
|
`;h.forEach(m=>{d+=m}),t.fail(d)}};let a={};u.conflicts=function(f,h){pe("<string|object> [array|string]",[f,h],arguments.length),typeof f=="object"?Object.keys(f).forEach(d=>{u.conflicts(d,f[d])}):(e.global(f),a[f]||(a[f]=[]),Array.isArray(h)?h.forEach(d=>u.conflicts(f,d)):a[f].push(h))},u.getConflicting=()=>a,u.conflicting=function(f){Object.keys(f).forEach(h=>{a[h]&&a[h].forEach(d=>{d&&f[h]!==void 0&&f[d]!==void 0&&t.fail(r("Arguments %s and %s are mutually exclusive",h,d))})}),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(a).forEach(h=>{a[h].forEach(d=>{d&&f[n.Parser.camelCase(h)]!==void 0&&f[n.Parser.camelCase(d)]!==void 0&&t.fail(r("Arguments %s and %s are mutually exclusive",h,d))})})},u.recommendCommands=function(f,h){h=h.sort((g,E)=>E.length-g.length);let m=null,A=1/0;for(let g=0,E;(E=h[g])!==void 0;g++){let _=x2(f,E);_<=3&&_<A&&(A=_,m=E)}m&&t.fail(r("Did you mean %s?",m))},u.reset=function(f){return s=eu(s,h=>!f[h]),a=eu(a,h=>!f[h]),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 Gm=[],il;function ul(e,t,n,r){il=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=wP(t,e.extends);else try{s=Tn.resolve(e.extends)}catch{return e}BP(s),Gm.push(s),i=u?JSON.parse(il.readFileSync(s,"utf8")):Tn(e.extends),delete e.extends,i=ul(i,il.path.dirname(s),n,il)}return Gm=[],n?b2(i,e):Object.assign({},i,e)}function BP(e){if(Gm.indexOf(e)>-1)throw new _t(`Circular extended configurations: '${e}'.`)}function wP(e,t){return il.path.resolve(e,t)}function b2(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]=b2(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},F=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,Wu,sl,xr,ar,af,nu,Yu,lf,yr,cf,_r,ei,lr,br,ff,oo,Dn,Te,df,hf,cr,Ku,ao,Zu,ru,pf,Le,Qu,Xu,Ju,He,mf,ti,Gt;function $2(e){return(t=[],n=e.process.cwd(),r)=>{let i=new Jm(t,n,r,e);return Object.defineProperty(i,"argv",{get:()=>i.parse(),enumerable:!0}),i.help(),i.version(),i}}var F2=Symbol("copyDoubleDash"),k2=Symbol("copyDoubleDash"),qm=Symbol("deleteFromParserHintObject"),S2=Symbol("emitWarning"),I2=Symbol("freeze"),v2=Symbol("getDollarZero"),es=Symbol("getParserConfiguration"),O2=Symbol("getUsageConfiguration"),zm=Symbol("guessLocale"),B2=Symbol("guessVersion"),w2=Symbol("parsePositionalNumbers"),$m=Symbol("pkgUp"),iu=Symbol("populateParserHintArray"),lo=Symbol("populateParserHintSingleValueDictionary"),Vm=Symbol("populateParserHintArrayDictionary"),Wm=Symbol("populateParserHintDictionary"),Ym=Symbol("sanitizeKey"),Km=Symbol("setKey"),Zm=Symbol("unfreeze"),N2=Symbol("validateAsync"),R2=Symbol("getCommandInstance"),L2=Symbol("getContext"),P2=Symbol("getHasOutput"),M2=Symbol("getLoggerInstance"),U2=Symbol("getParseContext"),H2=Symbol("getUsageInstance"),j2=Symbol("getValidationInstance"),gf=Symbol("hasParseCallback"),G2=Symbol("isGlobalContext"),ts=Symbol("postProcess"),q2=Symbol("rebase"),Qm=Symbol("reset"),ol=Symbol("runYargsParserAndExecuteCommands"),Xm=Symbol("runValidation"),z2=Symbol("setHasOutput"),ns=Symbol("kTrackManuallySetKeys"),Jm=class{constructor(t=[],n,r,i){this.customScriptName=!1,this.parsed=!1,Vt.set(this,void 0),Wu.set(this,void 0),sl.set(this,{commands:[],fullCommands:[]}),xr.set(this,null),ar.set(this,null),af.set(this,"show-hidden"),nu.set(this,null),Yu.set(this,!0),lf.set(this,{}),yr.set(this,!0),cf.set(this,[]),_r.set(this,void 0),ei.set(this,{}),lr.set(this,!1),br.set(this,null),ff.set(this,!0),oo.set(this,void 0),Dn.set(this,""),Te.set(this,void 0),df.set(this,void 0),hf.set(this,{}),cr.set(this,null),Ku.set(this,null),ao.set(this,{}),Zu.set(this,{}),ru.set(this,void 0),pf.set(this,!1),Le.set(this,void 0),Qu.set(this,!1),Xu.set(this,!1),Ju.set(this,!1),He.set(this,void 0),mf.set(this,{}),ti.set(this,null),Gt.set(this,void 0),me(this,Le,i,"f"),me(this,ru,t,"f"),me(this,Wu,n,"f"),me(this,df,r,"f"),me(this,_r,new uf(this),"f"),this.$0=this[v2](),this[Qm](),me(this,Vt,F(this,Vt,"f"),"f"),me(this,He,F(this,He,"f"),"f"),me(this,Gt,F(this,Gt,"f"),"f"),me(this,Te,F(this,Te,"f"),"f"),F(this,Te,"f").showHiddenOpt=F(this,af,"f"),me(this,oo,this[k2](),"f")}addHelpOpt(t,n){let r="help";return pe("[string|boolean] [string]",[t,n],arguments.length),F(this,br,"f")&&(this[qm](F(this,br,"f")),me(this,br,null,"f")),t===!1&&n===void 0?this:(me(this,br,typeof t=="string"?t:r,"f"),this.boolean(F(this,br,"f")),this.describe(F(this,br,"f"),n||F(this,He,"f").deferY18nLookup("Show help")),this)}help(t,n){return this.addHelpOpt(t,n)}addShowHiddenOpt(t,n){if(pe("[string|boolean] [string]",[t,n],arguments.length),t===!1&&n===void 0)return this;let r=typeof t=="string"?t:F(this,af,"f");return this.boolean(r),this.describe(r,n||F(this,He,"f").deferY18nLookup("Show hidden options")),F(this,Te,"f").showHiddenOpt=r,this}showHidden(t,n){return this.addShowHiddenOpt(t,n)}alias(t,n){return pe("<object|string|array> [string|array]",[t,n],arguments.length),this[Vm](this.alias.bind(this),"alias",t,n),this}array(t){return pe("<array|string>",[t],arguments.length),this[iu]("array",t),this[ns](t),this}boolean(t){return pe("<array|string>",[t],arguments.length),this[iu]("boolean",t),this[ns](t),this}check(t,n){return pe("<function> [boolean]",[t,n],arguments.length),this.middleware((r,i)=>Vu(()=>t(r,i.getOptions()),u=>(u?(typeof u=="string"||u instanceof Error)&&F(this,He,"f").fail(u.toString(),u):F(this,He,"f").fail(F(this,Le,"f").y18n.__("Argument check failed: %s",t.toString())),r),u=>(F(this,He,"f").fail(u.message?u.message:u.toString(),u),r)),!1,n),this}choices(t,n){return pe("<object|string|array> [string|array]",[t,n],arguments.length),this[Vm](this.choices.bind(this),"choices",t,n),this}coerce(t,n){if(pe("<object|string|array> [function]",[t,n],arguments.length),Array.isArray(t)){if(!n)throw new _t("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 _t("coerce callback must be provided");return F(this,Te,"f").key[t]=!0,F(this,_r,"f").addCoerceMiddleware((r,i)=>{let u;return Object.prototype.hasOwnProperty.call(r,t)?Vu(()=>(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 _t(o.message)}):r},t),this}conflicts(t,n){return pe("<string|object> [string|array]",[t,n],arguments.length),F(this,Gt,"f").conflicts(t,n),this}config(t="config",n,r){return pe("[object|string] [string|function] [function]",[t,n,r],arguments.length),typeof t=="object"&&!Array.isArray(t)?(t=ul(t,F(this,Wu,"f"),this[es]()["deep-merge-config"]||!1,F(this,Le,"f")),F(this,Te,"f").configObjects=(F(this,Te,"f").configObjects||[]).concat(t),this):(typeof n=="function"&&(r=n,n=void 0),this.describe(t,n||F(this,He,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(i=>{F(this,Te,"f").config[i]=r||!0}),this)}completion(t,n,r){return pe("[string] [string|boolean|function] [function]",[t,n,r],arguments.length),typeof n=="function"&&(r=n,n=void 0),me(this,ar,t||F(this,ar,"f")||"completion","f"),!n&&n!==!1&&(n="generate completion script"),this.command(F(this,ar,"f"),n),r&&F(this,xr,"f").registerFunction(r),this}command(t,n,r,i,u,s){return pe("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,n,r,i,u,s],arguments.length),F(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){pe("<string> [object]",[t,n],arguments.length);let r=F(this,df,"f")||F(this,Le,"f").require;return F(this,Vt,"f").addDirectory(t,r,F(this,Le,"f").getCallerFile(),n),this}count(t){return pe("<array|string>",[t],arguments.length),this[iu]("count",t),this[ns](t),this}default(t,n,r){return pe("<object|string|array> [*] [string]",[t,n,r],arguments.length),r&&(Pm(t,F(this,Le,"f")),F(this,Te,"f").defaultDescription[t]=r),typeof n=="function"&&(Pm(t,F(this,Le,"f")),F(this,Te,"f").defaultDescription[t]||(F(this,Te,"f").defaultDescription[t]=F(this,He,"f").functionDescription(n)),n=n.call()),this[lo](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 pe("[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),F(this,Te,"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,F(this,Le,"f")),this.demandOption(i,r)}),n=1/0):typeof n!="number"&&(r=n,n=1/0),typeof t=="number"?(Ln(r,!0,F(this,Le,"f")),this.demandCommand(t,n,r,r)):Array.isArray(t)?t.forEach(i=>{Ln(r,!0,F(this,Le,"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 pe("<object|string|array> [string]",[t,n],arguments.length),this[lo](this.demandOption.bind(this),"demandedOptions",t,n),this}deprecateOption(t,n){return pe("<string> [string|boolean]",[t,n],arguments.length),F(this,Te,"f").deprecatedOptions[t]=n,this}describe(t,n){return pe("<object|string|array> [string]",[t,n],arguments.length),this[Km](t,!0),F(this,He,"f").describe(t,n),this}detectLocale(t){return pe("<boolean>",[t],arguments.length),me(this,Yu,t,"f"),this}env(t){return pe("[string|boolean]",[t],arguments.length),t===!1?delete F(this,Te,"f").envPrefix:F(this,Te,"f").envPrefix=t||"",this}epilogue(t){return pe("<string>",[t],arguments.length),F(this,He,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,n){return pe("<string|array> [string]",[t,n],arguments.length),Array.isArray(t)?t.forEach(r=>this.example(...r)):F(this,He,"f").example(t,n),this}exit(t,n){me(this,lr,!0,"f"),me(this,nu,n,"f"),F(this,yr,"f")&&F(this,Le,"f").process.exit(t)}exitProcess(t=!0){return pe("[boolean]",[t],arguments.length),me(this,yr,t,"f"),this}fail(t){if(pe("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==!1)throw new _t("Invalid first argument. Expected function or boolean 'false'");return F(this,He,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,n){return pe("<array> [function]",[t,n],arguments.length),n?F(this,xr,"f").getCompletion(t,n):new Promise((r,i)=>{F(this,xr,"f").getCompletion(t,(u,s)=>{u?i(u):r(s)})})}getDemandedOptions(){return pe([],0),F(this,Te,"f").demandedOptions}getDemandedCommands(){return pe([],0),F(this,Te,"f").demandedCommands}getDeprecatedOptions(){return pe([],0),F(this,Te,"f").deprecatedOptions}getDetectLocale(){return F(this,Yu,"f")}getExitProcess(){return F(this,yr,"f")}getGroups(){return Object.assign({},F(this,ei,"f"),F(this,Zu,"f"))}getHelp(){if(me(this,lr,!0,"f"),!F(this,He,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[ol](F(this,ru,"f"),void 0,void 0,0,!0);if(bt(n))return n.then(()=>F(this,He,"f").help())}let t=F(this,Vt,"f").runDefaultBuilderOn(this);if(bt(t))return t.then(()=>F(this,He,"f").help())}return Promise.resolve(F(this,He,"f").help())}getOptions(){return F(this,Te,"f")}getStrict(){return F(this,Qu,"f")}getStrictCommands(){return F(this,Xu,"f")}getStrictOptions(){return F(this,Ju,"f")}global(t,n){return pe("<string|array> [boolean]",[t,n],arguments.length),t=[].concat(t),n!==!1?F(this,Te,"f").local=F(this,Te,"f").local.filter(r=>t.indexOf(r)===-1):t.forEach(r=>{F(this,Te,"f").local.includes(r)||F(this,Te,"f").local.push(r)}),this}group(t,n){pe("<string|array> <string>",[t,n],arguments.length);let r=F(this,Zu,"f")[n]||F(this,ei,"f")[n];F(this,Zu,"f")[n]&&delete F(this,Zu,"f")[n];let i={};return F(this,ei,"f")[n]=(r||[]).concat(t).filter(u=>i[u]?!1:i[u]=!0),this}hide(t){return pe("<string>",[t],arguments.length),F(this,Te,"f").hiddenOptions.push(t),this}implies(t,n){return pe("<string|object> [number|string|array]",[t,n],arguments.length),F(this,Gt,"f").implies(t,n),this}locale(t){return pe("[string]",[t],arguments.length),t===void 0?(this[zm](),F(this,Le,"f").y18n.getLocale()):(me(this,Yu,!1,"f"),F(this,Le,"f").y18n.setLocale(t),this)}middleware(t,n,r){return F(this,_r,"f").addMiddleware(t,!!n,r)}nargs(t,n){return pe("<string|object|array> [number]",[t,n],arguments.length),this[lo](this.nargs.bind(this),"narg",t,n),this}normalize(t){return pe("<array|string>",[t],arguments.length),this[iu]("normalize",t),this}number(t){return pe("<array|string>",[t],arguments.length),this[iu]("number",t),this[ns](t),this}option(t,n){if(pe("<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[ns](t),F(this,ti,"f")&&(t==="version"||n?.alias==="version")&&this[S2](['"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"),F(this,Te,"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&&(F(this,Te,"f").defaultDescription[t]=n.defaultDescription),n.skipValidation&&this.skipValidation(t);let u=n.describe||n.description||n.desc,s=F(this,He,"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){pe("[string|array] [function|boolean|object] [function]",[t,n,r],arguments.length),this[I2](),typeof t>"u"&&(t=F(this,ru,"f")),typeof n=="object"&&(me(this,Ku,n,"f"),n=r),typeof n=="function"&&(me(this,cr,n,"f"),n=!1),n||me(this,ru,t,"f"),F(this,cr,"f")&&me(this,yr,!1,"f");let i=this[ol](t,!!n),u=this.parsed;return F(this,xr,"f").setParsed(this.parsed),bt(i)?i.then(s=>(F(this,cr,"f")&&F(this,cr,"f").call(this,F(this,nu,"f"),s,F(this,Dn,"f")),s)).catch(s=>{throw F(this,cr,"f")&&F(this,cr,"f")(s,this.parsed.argv,F(this,Dn,"f")),s}).finally(()=>{this[Zm](),this.parsed=u}):(F(this,cr,"f")&&F(this,cr,"f").call(this,F(this,nu,"f"),i,F(this,Dn,"f")),this[Zm](),this.parsed=u,i)}parseAsync(t,n,r){let i=this.parse(t,n,r);return bt(i)?i:Promise.resolve(i)}parseSync(t,n,r){let i=this.parse(t,n,r);if(bt(i))throw new _t(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return i}parserConfiguration(t){return pe("<object>",[t],arguments.length),me(this,hf,t,"f"),this}pkgConf(t,n){pe("<string> [string]",[t,n],arguments.length);let r=null,i=this[$m](n||F(this,Wu,"f"));return i[t]&&typeof i[t]=="object"&&(r=ul(i[t],n||F(this,Wu,"f"),this[es]()["deep-merge-config"]||!1,F(this,Le,"f")),F(this,Te,"f").configObjects=(F(this,Te,"f").configObjects||[]).concat(r)),this}positional(t,n){pe("<string> <object>",[t,n],arguments.length);let r=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];n=eu(n,(s,o)=>s==="type"&&!["string","number","boolean"].includes(o)?!1:r.includes(s));let i=F(this,sl,"f").fullCommands[F(this,sl,"f").fullCommands.length-1],u=i?F(this,Vt,"f").cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return uo(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,F(this,He,"f").getPositionalGroupName()),this.option(t,n)}recommendCommands(t=!0){return pe("[boolean]",[t],arguments.length),me(this,pf,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 pe("<array|string|object> [number]",[t],arguments.length),typeof t=="string"&&F(this,Te,"f").narg[t]?this:(this[lo](this.requiresArg.bind(this),"narg",t,NaN),this)}showCompletionScript(t,n){return pe("[string] [string]",[t,n],arguments.length),t=t||this.$0,F(this,oo,"f").log(F(this,xr,"f").generateCompletionScript(t,n||F(this,ar,"f")||"completion")),this}showHelp(t){if(pe("[string|function]",[t],arguments.length),me(this,lr,!0,"f"),!F(this,He,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[ol](F(this,ru,"f"),void 0,void 0,0,!0);if(bt(r))return r.then(()=>{F(this,He,"f").showHelp(t)}),this}let n=F(this,Vt,"f").runDefaultBuilderOn(this);if(bt(n))return n.then(()=>{F(this,He,"f").showHelp(t)}),this}return F(this,He,"f").showHelp(t),this}scriptName(t){return this.customScriptName=!0,this.$0=t,this}showHelpOnFail(t,n){return pe("[boolean|string] [string]",[t,n],arguments.length),F(this,He,"f").showHelpOnFail(t,n),this}showVersion(t){return pe("[string|function]",[t],arguments.length),F(this,He,"f").showVersion(t),this}skipValidation(t){return pe("<array|string>",[t],arguments.length),this[iu]("skipValidation",t),this}strict(t){return pe("[boolean]",[t],arguments.length),me(this,Qu,t!==!1,"f"),this}strictCommands(t){return pe("[boolean]",[t],arguments.length),me(this,Xu,t!==!1,"f"),this}strictOptions(t){return pe("[boolean]",[t],arguments.length),me(this,Ju,t!==!1,"f"),this}string(t){return pe("<array|string>",[t],arguments.length),this[iu]("string",t),this[ns](t),this}terminalWidth(){return pe([],0),F(this,Le,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return pe("<object>",[t],arguments.length),me(this,Yu,!1,"f"),F(this,Le,"f").y18n.updateLocale(t),this}usage(t,n,r,i){if(pe("<string|null|undefined> [string|boolean] [function|object] [function]",[t,n,r,i],arguments.length),n!==void 0){if(Ln(t,null,F(this,Le,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,n,r,i);throw new _t(".usage() description must start with $0 if being used as alias for .command()")}else return F(this,He,"f").usage(t),this}usageConfiguration(t){return pe("<object>",[t],arguments.length),me(this,mf,t,"f"),this}version(t,n,r){let i="version";if(pe("[boolean|string] [string] [string]",[t,n,r],arguments.length),F(this,ti,"f")&&(this[qm](F(this,ti,"f")),F(this,He,"f").version(void 0),me(this,ti,null,"f")),arguments.length===0)r=this[B2](),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||F(this,He,"f").deferY18nLookup("Show version number"),F(this,He,"f").version(r||void 0),this.boolean(F(this,ti,"f")),this.describe(F(this,ti,"f"),n),this}wrap(t){return pe("<number|null|undefined>",[t],arguments.length),F(this,He,"f").wrap(t),this}[(Vt=new WeakMap,Wu=new WeakMap,sl=new WeakMap,xr=new WeakMap,ar=new WeakMap,af=new WeakMap,nu=new WeakMap,Yu=new WeakMap,lf=new WeakMap,yr=new WeakMap,cf=new WeakMap,_r=new WeakMap,ei=new WeakMap,lr=new WeakMap,br=new WeakMap,ff=new WeakMap,oo=new WeakMap,Dn=new WeakMap,Te=new WeakMap,df=new WeakMap,hf=new WeakMap,cr=new WeakMap,Ku=new WeakMap,ao=new WeakMap,Zu=new WeakMap,ru=new WeakMap,pf=new WeakMap,Le=new WeakMap,Qu=new WeakMap,Xu=new WeakMap,Ju=new WeakMap,He=new WeakMap,mf=new WeakMap,ti=new WeakMap,Gt=new WeakMap,F2)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch{}return t}[k2](){return{log:(...t)=>{this[gf]()||console.log(...t),me(this,lr,!0,"f"),F(this,Dn,"f").length&&me(this,Dn,F(this,Dn,"f")+`
|
|
131
131
|
`,"f"),me(this,Dn,F(this,Dn,"f")+t.join(" "),"f")},error:(...t)=>{this[gf]()||console.error(...t),me(this,lr,!0,"f"),F(this,Dn,"f").length&&me(this,Dn,F(this,Dn,"f")+`
|
|
132
|
-
`,"f"),me(this,Dn,F(this,Dn,"f")+t.join(" "),"f")}}}[qm](t){uo(F(this,Te,"f")).forEach(n=>{if((i=>i==="configObjects")(n))return;let r=F(this,Te,"f")[n];Array.isArray(r)?r.includes(t)&&r.splice(r.indexOf(t),1):typeof r=="object"&&delete r[t]}),delete F(this,He,"f").getDescriptions()[t]}[S2](t,n,r){F(this,lf,"f")[r]||(F(this,Le,"f").process.emitWarning(t,n),F(this,lf,"f")[r]=!0)}[I2](){F(this,cf,"f").push({options:F(this,Te,"f"),configObjects:F(this,Te,"f").configObjects.slice(0),exitProcess:F(this,yr,"f"),groups:F(this,ei,"f"),strict:F(this,Qu,"f"),strictCommands:F(this,Xu,"f"),strictOptions:F(this,Ju,"f"),completionCommand:F(this,ar,"f"),output:F(this,Dn,"f"),exitError:F(this,nu,"f"),hasOutput:F(this,lr,"f"),parsed:this.parsed,parseFn:F(this,cr,"f"),parseContext:F(this,Ku,"f")}),F(this,He,"f").freeze(),F(this,Gt,"f").freeze(),F(this,Vt,"f").freeze(),F(this,_r,"f").freeze()}[v2](){let t="",n;return/\b(node|iojs|electron)(\.exe)?$/.test(F(this,Le,"f").process.argv()[0])?n=F(this,Le,"f").process.argv().slice(1,2):n=F(this,Le,"f").process.argv().slice(0,1),t=n.map(r=>{let i=this[q2](F(this,Wu,"f"),r);return r.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<r.length?i:r}).join(" ").trim(),F(this,Le,"f").getEnv("_")&&F(this,Le,"f").getProcessArgvBin()===F(this,Le,"f").getEnv("_")&&(t=F(this,Le,"f").getEnv("_").replace(`${F(this,Le,"f").path.dirname(F(this,Le,"f").process.execPath())}/`,"")),t}[es](){return F(this,hf,"f")}[O2](){return F(this,mf,"f")}[zm](){if(!F(this,Yu,"f"))return;let t=F(this,Le,"f").getEnv("LC_ALL")||F(this,Le,"f").getEnv("LC_MESSAGES")||F(this,Le,"f").getEnv("LANG")||F(this,Le,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[B2](){return this[$m]().version||"unknown"}[w2](t){let n=t["--"]?t["--"]:t._;for(let r=0,i;(i=n[r])!==void 0;r++)F(this,Le,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(n[r]=Number(i));return t}[$m](t){let n=t||"*";if(F(this,ao,"f")[n])return F(this,ao,"f")[n];let r={};try{let i=t||F(this,Le,"f").mainFilename;!t&&F(this,Le,"f").path.extname(i)&&(i=F(this,Le,"f").path.dirname(i));let u=F(this,Le,"f").findUp(i,(s,o)=>{if(o.includes("package.json"))return"package.json"});Ln(u,void 0,F(this,Le,"f")),r=JSON.parse(F(this,Le,"f").readFileSync(u,"utf8"))}catch{}return F(this,ao,"f")[n]=r||{},F(this,ao,"f")[n]}[iu](t,n){n=[].concat(n),n.forEach(r=>{r=this[Ym](r),F(this,Te,"f")[t].push(r)})}[lo](t,n,r,i){this[Wm](t,n,r,i,(u,s,o)=>{F(this,Te,"f")[u][s]=o})}[Vm](t,n,r,i){this[Wm](t,n,r,i,(u,s,o)=>{F(this,Te,"f")[u][s]=(F(this,Te,"f")[u][s]||[]).concat(o)})}[Wm](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 uo(r))t(s,r[s]);else u(n,this[Ym](r),i)}[Ym](t){return t==="__proto__"?"___proto___":t}[Km](t,n){return this[lo](this[Km].bind(this),"key",t,n),this}[Zm](){var t,n,r,i,u,s,o,a,l,c,f,h;let d=F(this,cf,"f").pop();Ln(d,void 0,F(this,Le,"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,h=this,{options:{set value(A){me(t,Te,A,"f")}}.value,configObjects:m,exitProcess:{set value(A){me(n,yr,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,nu,A,"f")}}.value,hasOutput:{set value(A){me(s,lr,A,"f")}}.value,parsed:this.parsed,strict:{set value(A){me(o,Qu,A,"f")}}.value,strictCommands:{set value(A){me(a,Xu,A,"f")}}.value,strictOptions:{set value(A){me(l,Ju,A,"f")}}.value,completionCommand:{set value(A){me(c,ar,A,"f")}}.value,parseFn:{set value(A){me(f,cr,A,"f")}}.value,parseContext:{set value(A){me(h,Ku,A,"f")}}.value}=d,F(this,Te,"f").configObjects=m,F(this,He,"f").unfreeze(),F(this,Gt,"f").unfreeze(),F(this,Vt,"f").unfreeze(),F(this,_r,"f").unfreeze()}[N2](t,n){return Vu(n,r=>(t(r),r))}getInternalMethods(){return{getCommandInstance:this[R2].bind(this),getContext:this[L2].bind(this),getHasOutput:this[P2].bind(this),getLoggerInstance:this[M2].bind(this),getParseContext:this[U2].bind(this),getParserConfiguration:this[es].bind(this),getUsageConfiguration:this[O2].bind(this),getUsageInstance:this[H2].bind(this),getValidationInstance:this[j2].bind(this),hasParseCallback:this[gf].bind(this),isGlobalContext:this[G2].bind(this),postProcess:this[ts].bind(this),reset:this[Qm].bind(this),runValidation:this[Xm].bind(this),runYargsParserAndExecuteCommands:this[ol].bind(this),setHasOutput:this[z2].bind(this)}}[R2](){return F(this,Vt,"f")}[L2](){return F(this,sl,"f")}[P2](){return F(this,lr,"f")}[M2](){return F(this,oo,"f")}[U2](){return F(this,Ku,"f")||{}}[H2](){return F(this,He,"f")}[j2](){return F(this,Gt,"f")}[gf](){return!!F(this,cr,"f")}[G2](){return F(this,ff,"f")}[ts](t,n,r,i){return r||bt(t)||(n||(t=this[F2](t)),(this[es]()["parse-positional-numbers"]||this[es]()["parse-positional-numbers"]===void 0)&&(t=this[w2](t)),i&&(t=$u(t,this,F(this,_r,"f").getMiddleware(),!1))),t}[Qm](t={}){me(this,Te,F(this,Te,"f")||{},"f");let n={};n.local=F(this,Te,"f").local||[],n.configObjects=F(this,Te,"f").configObjects||[];let r={};n.local.forEach(s=>{r[s]=!0,(t[s]||[]).forEach(o=>{r[o]=!0})}),Object.assign(F(this,Zu,"f"),Object.keys(F(this,ei,"f")).reduce((s,o)=>{let a=F(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]=(F(this,Te,"f")[s]||[]).filter(o=>!r[o])}),u.forEach(s=>{n[s]=eu(F(this,Te,"f")[s],o=>!r[o])}),n.envPrefix=F(this,Te,"f").envPrefix,me(this,Te,n,"f"),me(this,He,F(this,He,"f")?F(this,He,"f").reset(r):D2(this,F(this,Le,"f")),"f"),me(this,Gt,F(this,Gt,"f")?F(this,Gt,"f").reset(r):_2(this,F(this,He,"f"),F(this,Le,"f")),"f"),me(this,Vt,F(this,Vt,"f")?F(this,Vt,"f").reset():m2(F(this,He,"f"),F(this,Gt,"f"),F(this,_r,"f"),F(this,Le,"f")),"f"),F(this,xr,"f")||me(this,xr,T2(this,F(this,He,"f"),F(this,Vt,"f"),F(this,Le,"f")),"f"),F(this,_r,"f").reset(),me(this,ar,null,"f"),me(this,Dn,"","f"),me(this,nu,null,"f"),me(this,lr,!1,"f"),this.parsed=!1,this}[q2](t,n){return F(this,Le,"f").path.relative(t,n)}[ol](t,n,r,i=0,u=!1){let s=!!r||u;t=t||F(this,ru,"f"),F(this,Te,"f").__=F(this,Le,"f").y18n.__,F(this,Te,"f").configuration=this[es]();let o=!!F(this,Te,"f").configuration["populate--"],a=Object.assign({},F(this,Te,"f").configuration,{"populate--":!0}),l=F(this,Le,"f").Parser.detailed(t,Object.assign({},F(this,Te,"f"),{configuration:{"parse-positional-numbers":!1,...a}})),c=Object.assign(l.argv,F(this,Ku,"f")),f,h=l.aliases,d=!1,m=!1;Object.keys(c).forEach(A=>{A===F(this,br,"f")&&c[A]?d=!0:A===F(this,ti,"f")&&c[A]&&(m=!0)}),c.$0=this.$0,this.parsed=l,i===0&&F(this,He,"f").clearCachedHelpMessage();try{if(this[zm](),n)return this[ts](c,o,!!r,!1);F(this,br,"f")&&[F(this,br,"f")].concat(h[F(this,br,"f")]||[]).filter(x=>x.length>1).includes(""+c._[c._.length-1])&&(c._.pop(),d=!0),me(this,ff,!1,"f");let A=F(this,Vt,"f").getCommands(),g=F(this,xr,"f").completionKey in c,E=d||g||u;if(c._.length){if(A.length){let _;for(let x=i||0,v;c._[x]!==void 0;x++)if(v=String(c._[x]),A.includes(v)&&v!==F(this,ar,"f")){let O=F(this,Vt,"f").runCommand(v,this,l,x+1,u,d||m||u);return this[ts](O,o,!!r,!1)}else if(!_&&v!==F(this,ar,"f")){_=v;break}!F(this,Vt,"f").hasDefaultCommand()&&F(this,pf,"f")&&_&&!E&&F(this,Gt,"f").recommendCommands(_,A)}F(this,ar,"f")&&c._.includes(F(this,ar,"f"))&&!g&&(F(this,yr,"f")&&tu(!0),this.showCompletionScript(),this.exit(0))}if(F(this,Vt,"f").hasDefaultCommand()&&!E){let _=F(this,Vt,"f").runCommand(null,this,l,0,u,d||m||u);return this[ts](_,o,!!r,!1)}if(g){F(this,yr,"f")&&tu(!0),t=[].concat(t);let _=t.slice(t.indexOf(`--${F(this,xr,"f").completionKey}`)+1);return F(this,xr,"f").getCompletion(_,(x,v)=>{if(x)throw new _t(x.message);(v||[]).forEach(O=>{F(this,oo,"f").log(O)}),this.exit(0)}),this[ts](c,!o,!!r,!1)}if(F(this,lr,"f")||(d?(F(this,yr,"f")&&tu(!0),s=!0,this.showHelp("log"),this.exit(0)):m&&(F(this,yr,"f")&&tu(!0),s=!0,F(this,He,"f").showVersion("log"),this.exit(0))),!s&&F(this,Te,"f").skipValidation.length>0&&(s=Object.keys(c).some(_=>F(this,Te,"f").skipValidation.indexOf(_)>=0&&c[_]===!0)),!s){if(l.error)throw new _t(l.error.message);if(!g){let _=this[Xm](h,{},l.error);r||(f=$u(c,this,F(this,_r,"f").getMiddleware(),!0)),f=this[N2](_,f??c),bt(f)&&!r&&(f=f.then(()=>$u(c,this,F(this,_r,"f").getMiddleware(),!1)))}}}catch(A){if(A instanceof _t)F(this,He,"f").fail(A.message,A);else throw A}return this[ts](f??c,o,!!r,!0)}[Xm](t,n,r,i){let u={...this.getDemandedOptions()};return s=>{if(r)throw new _t(r.message);F(this,Gt,"f").nonOptionCount(s),F(this,Gt,"f").requiredArguments(s,u);let o=!1;F(this,Xu,"f")&&(o=F(this,Gt,"f").unknownCommands(s)),F(this,Qu,"f")&&!o?F(this,Gt,"f").unknownArguments(s,t,n,!!i):F(this,Ju,"f")&&F(this,Gt,"f").unknownArguments(s,t,{},!1,!1),F(this,Gt,"f").limitedChoices(s),F(this,Gt,"f").implications(s),F(this,Gt,"f").conflicting(s)}}[z2](){me(this,lr,!0,"f")}[ns](t){if(typeof t=="string")F(this,Te,"f").key[t]=!0;else for(let n of t)F(this,Te,"f").key[n]=!0}};function g2(e){return!!e&&typeof e.getInternalMethods=="function"}var NP=$2(Lm),V2=NP;var W2="0.7.5";import{cosmiconfig as mT}from"cosmiconfig";import{TypeScriptLoader as gT}from"cosmiconfig-typescript-loader";import X8 from"node:fs/promises";import AT from"node:path";var e0=QE(Z2(),1);function t0(e,t,n){if(typeof t=="number"&&(n=t),e0.default.has(e.toLowerCase())){t=e0.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 J8}from"read-pkg";var at;(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})(at||(at={}));var r0;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(r0||(r0={}));var fe=at.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),uu=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=at.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"]),MP=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),fr=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,at.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()}};fr.create=e=>new fr(e);var ho=(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,at.jsonStringifyReplacer)}`;break;case Q.unrecognized_keys:n=`Unrecognized key(s) in object: ${at.joinValues(e.keys,", ")}`;break;case Q.invalid_union:n="Invalid input";break;case Q.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${at.joinValues(e.options)}`;break;case Q.invalid_enum_value:n=`Invalid enum value. Expected ${at.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}"`:at.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,at.assertNever(e)}return{message:n}},J2=ho;function UP(e){J2=e}function Ef(){return J2}var Df=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}},HP=[];function oe(e,t){let n=Ef(),r=Df({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===ho?void 0:ho].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 Pe;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 Pe;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}}},Pe=Object.freeze({status:"aborted"}),fo=e=>({status:"dirty",value:e}),Pn=e=>({status:"valid",value:e}),i0=e=>e.status==="aborted",u0=e=>e.status==="dirty",cl=e=>e.status==="valid",fl=e=>typeof Promise<"u"&&e instanceof Promise;function Af(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 eT(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 ye;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(ye||(ye={}));var al,ll,kr=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}},Q2=(e,t)=>{if(cl(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 fr(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 uu(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:uu(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:uu(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(fl(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:uu(t)},u=this._parseSync({data:t,path:i.path,parent:i});return Q2(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:uu(t)},i=this._parse({data:t,path:r.path,parent:r}),u=await(fl(i)?i:Promise.resolve(i));return Q2(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 dr({schema:this,typeName:Ne.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Fr.create(this,this._def)}nullable(){return ri.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ii.create(this,this._def)}promise(){return au.create(this,this._def)}or(t){return ls.create([this,t],this._def)}and(t){return cs.create(this,t,this._def)}transform(t){return new dr({...Ve(this._def),schema:this,typeName:Ne.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new ms({...Ve(this._def),innerType:this,defaultValue:n,typeName:Ne.ZodDefault})}brand(){return new dl({typeName:Ne.ZodBranded,type:this,...Ve(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new gs({...Ve(this._def),innerType:this,catchValue:n,typeName:Ne.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return hl.create(this,t)}readonly(){return Es.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},jP=/^c[^\s-]{8,}$/i,GP=/^[0-9a-z]+$/,qP=/^[0-9A-HJKMNP-TV-Z]{26}$/,zP=/^[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,$P=/^[a-z0-9_-]{21}$/i,VP=/^[-+]?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)?)??$/,WP=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,YP="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",n0,KP=/^(?:(?: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])$/,ZP=/^(([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})))$/,QP=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,tT="((\\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])))",XP=new RegExp(`^${tT}$`);function nT(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 JP(e){return new RegExp(`^${nT(e)}$`)}function rT(e){let t=`${tT}T${nT(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 e8(e,t){return!!((t==="v4"||!t)&&KP.test(e)||(t==="v6"||!t)&&ZP.test(e))}var su=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}),Pe}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")WP.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")n0||(n0=new RegExp(YP,"u")),n0.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")zP.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")$P.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")jP.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")GP.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")qP.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"?rT(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"?XP.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Q.invalid_string,validation:"date",message:u.message}),r.dirty()):u.kind==="time"?JP(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"?VP.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"duration",code:Q.invalid_string,message:u.message}),r.dirty()):u.kind==="ip"?e8(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"?QP.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"base64",code:Q.invalid_string,message:u.message}),r.dirty()):at.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,...ye.errToObj(r)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ye.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ye.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ye.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ye.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ye.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ye.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ye.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ye.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ye.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ye.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,...ye.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,...ye.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...ye.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ye.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...ye.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ye.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ye.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ye.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ye.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ye.errToObj(n)})}nonempty(t){return this.min(1,ye.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}};su.create=e=>{var t;return new su({checks:[],typeName:Ne.ZodString,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...Ve(e)})};function t8(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 rs=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}),Pe}let r,i=new kn;for(let u of this._def.checks)u.kind==="int"?at.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"?t8(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()):at.assertNever(u);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ye.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ye.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ye.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ye.toString(n))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ye.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ye.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ye.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ye.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ye.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ye.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ye.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ye.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ye.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ye.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"&&at.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)}};rs.create=e=>new rs({checks:[],typeName:Ne.ZodNumber,coerce:e?.coerce||!1,...Ve(e)});var is=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}),Pe}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()):at.assertNever(u);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ye.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ye.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ye.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ye.toString(n))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ye.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:ye.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ye.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ye.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ye.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ye.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}};is.create=e=>{var t;return new is({checks:[],typeName:Ne.ZodBigInt,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...Ve(e)})};var us=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}),Pe}return Pn(t.data)}};us.create=e=>new us({typeName:Ne.ZodBoolean,coerce:e?.coerce||!1,...Ve(e)});var ss=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}),Pe}if(isNaN(t.data.getTime())){let u=this._getOrReturnCtx(t);return oe(u,{code:Q.invalid_date}),Pe}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()):at.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:ye.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ye.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}};ss.create=e=>new ss({checks:[],coerce:e?.coerce||!1,typeName:Ne.ZodDate,...Ve(e)});var po=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}),Pe}return Pn(t.data)}};po.create=e=>new po({typeName:Ne.ZodSymbol,...Ve(e)});var os=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}),Pe}return Pn(t.data)}};os.create=e=>new os({typeName:Ne.ZodUndefined,...Ve(e)});var as=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}),Pe}return Pn(t.data)}};as.create=e=>new as({typeName:Ne.ZodNull,...Ve(e)});var ou=class extends We{constructor(){super(...arguments),this._any=!0}_parse(t){return Pn(t.data)}};ou.create=e=>new ou({typeName:Ne.ZodAny,...Ve(e)});var Si=class extends We{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Pn(t.data)}};Si.create=e=>new Si({typeName:Ne.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}),Pe}};qr.create=e=>new qr({typeName:Ne.ZodNever,...Ve(e)});var mo=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}),Pe}return Pn(t.data)}};mo.create=e=>new mo({typeName:Ne.ZodVoid,...Ve(e)});var Ii=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}),Pe;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 kr(n,s,n.path,o)))).then(s=>kn.mergeArray(r,s));let u=[...n.data].map((s,o)=>i.type._parseSync(new kr(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:ye.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:ye.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:ye.toString(n)}})}nonempty(t){return this.min(1,t)}};Ii.create=(e,t)=>new Ii({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ne.ZodArray,...Ve(t)});function co(e){if(e instanceof Jn){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=Fr.create(co(r))}return new Jn({...e._def,shape:()=>t})}else return e instanceof Ii?new Ii({...e._def,type:co(e.element)}):e instanceof Fr?Fr.create(co(e.unwrap())):e instanceof ri?ri.create(co(e.unwrap())):e instanceof ni?ni.create(e.items.map(t=>co(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=at.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}),Pe}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 kr(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 kr(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,h=await c.value;l.push({key:f,value:h,alwaysSet:c.alwaysSet})}return l}).then(l=>kn.mergeObjectSync(r,l)):kn.mergeObjectSync(r,a)}get shape(){return this._def.shape()}strict(t){return ye.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=ye.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:Ne.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};return at.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 at.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new e({...this._def,shape:()=>n})}deepPartial(){return co(this)}partial(t){let n={};return at.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 at.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let u=this.shape[r];for(;u instanceof Fr;)u=u._def.innerType;n[r]=u}}),new e({...this._def,shape:()=>n})}keyof(){return iT(at.objectKeys(this.shape))}};Jn.create=(e,t)=>new Jn({shape:()=>e,unknownKeys:"strip",catchall:qr.create(),typeName:Ne.ZodObject,...Ve(t)});Jn.strictCreate=(e,t)=>new Jn({shape:()=>e,unknownKeys:"strict",catchall:qr.create(),typeName:Ne.ZodObject,...Ve(t)});Jn.lazycreate=(e,t)=>new Jn({shape:e,unknownKeys:"strip",catchall:qr.create(),typeName:Ne.ZodObject,...Ve(t)});var ls=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 fr(o.ctx.common.issues));return oe(n,{code:Q.invalid_union,unionErrors:s}),Pe}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 fr(a));return oe(n,{code:Q.invalid_union,unionErrors:o}),Pe}}get options(){return this._def.options}};ls.create=(e,t)=>new ls({options:e,typeName:Ne.ZodUnion,...Ve(t)});var ki=e=>e instanceof fs?ki(e.schema):e instanceof dr?ki(e.innerType()):e instanceof ds?[e.value]:e instanceof hs?e.options:e instanceof ps?at.objectValues(e.enum):e instanceof ms?ki(e._def.innerType):e instanceof os?[void 0]:e instanceof as?[null]:e instanceof Fr?[void 0,...ki(e.unwrap())]:e instanceof ri?[null,...ki(e.unwrap())]:e instanceof dl||e instanceof Es?ki(e.unwrap()):e instanceof gs?ki(e._def.innerType):[],Cf=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}),Pe;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]}),Pe)}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=ki(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:Ne.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...Ve(r)})}};function s0(e,t){let n=uu(e),r=uu(t);if(e===t)return{valid:!0,data:e};if(n===fe.object&&r===fe.object){let i=at.objectKeys(t),u=at.objectKeys(e).filter(o=>i.indexOf(o)!==-1),s={...e,...t};for(let o of u){let a=s0(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=s0(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 cs=class extends We{_parse(t){let{status:n,ctx:r}=this._processInputParams(t),i=(u,s)=>{if(i0(u)||i0(s))return Pe;let o=s0(u.value,s.value);return o.valid?((u0(u)||u0(s))&&n.dirty(),{status:n.value,value:o.data}):(oe(r,{code:Q.invalid_intersection_types}),Pe)};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}))}};cs.create=(e,t,n)=>new cs({left:e,right:t,typeName:Ne.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}),Pe;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"}),Pe;!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 kr(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:Ne.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}),Pe;let i=[],u=this._def.keyType,s=this._def.valueType;for(let o in r.data)i.push({key:u._parse(new kr(r,o,r.path,o)),value:s._parse(new kr(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:Ne.ZodRecord,...Ve(r)}):new e({keyType:su.create(),valueType:t,typeName:Ne.ZodRecord,...Ve(n)})}},go=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}),Pe;let i=this._def.keyType,u=this._def.valueType,s=[...r.data.entries()].map(([o,a],l)=>({key:i._parse(new kr(r,o,r.path,[l,"key"])),value:u._parse(new kr(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 Pe;(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 Pe;(l.status==="dirty"||c.status==="dirty")&&n.dirty(),o.set(l.value,c.value)}return{status:n.value,value:o}}}};go.create=(e,t,n)=>new go({valueType:t,keyType:e,typeName:Ne.ZodMap,...Ve(n)});var Eo=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}),Pe;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 Pe;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 kr(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:ye.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:ye.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};Eo.create=(e,t)=>new Eo({valueType:e,minSize:null,maxSize:null,typeName:Ne.ZodSet,...Ve(t)});var xf=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}),Pe;function r(o,a){return Df({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Ef(),ho].filter(l=>!!l),issueData:{code:Q.invalid_arguments,argumentsError:a}})}function i(o,a){return Df({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Ef(),ho].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 au){let o=this;return Pn(async function(...a){let l=new fr([]),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 fr([r(a,l.error)]);let c=Reflect.apply(s,this,l.data),f=o._def.returns.safeParse(c,u);if(!f.success)throw new fr([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(Si.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(Si.create()),returns:n||Si.create(),typeName:Ne.ZodFunction,...Ve(r)})}},fs=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})}};fs.create=(e,t)=>new fs({getter:e,typeName:Ne.ZodLazy,...Ve(t)});var ds=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}),Pe}return{status:"valid",value:t.data}}get value(){return this._def.value}};ds.create=(e,t)=>new ds({value:e,typeName:Ne.ZodLiteral,...Ve(t)});function iT(e,t){return new hs({values:e,typeName:Ne.ZodEnum,...Ve(t)})}var hs=class e extends We{constructor(){super(...arguments),al.set(this,void 0)}_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),r=this._def.values;return oe(n,{expected:at.joinValues(r),received:n.parsedType,code:Q.invalid_type}),Pe}if(Af(this,al,"f")||eT(this,al,new Set(this._def.values),"f"),!Af(this,al,"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}),Pe}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})}};al=new WeakMap;hs.create=iT;var ps=class extends We{constructor(){super(...arguments),ll.set(this,void 0)}_parse(t){let n=at.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==fe.string&&r.parsedType!==fe.number){let i=at.objectValues(n);return oe(r,{expected:at.joinValues(i),received:r.parsedType,code:Q.invalid_type}),Pe}if(Af(this,ll,"f")||eT(this,ll,new Set(at.getValidEnumValues(this._def.values)),"f"),!Af(this,ll,"f").has(t.data)){let i=at.objectValues(n);return oe(r,{received:r.data,code:Q.invalid_enum_value,options:i}),Pe}return Pn(t.data)}get enum(){return this._def.values}};ll=new WeakMap;ps.create=(e,t)=>new ps({values:e,typeName:Ne.ZodNativeEnum,...Ve(t)});var au=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}),Pe;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})))}};au.create=(e,t)=>new au({type:e,typeName:Ne.ZodPromise,...Ve(t)});var dr=class extends We{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ne.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 Pe;let a=await this._def.schema._parseAsync({data:o,path:r.path,parent:r});return a.status==="aborted"?Pe:a.status==="dirty"||n.value==="dirty"?fo(a.value):a});{if(n.value==="aborted")return Pe;let o=this._def.schema._parseSync({data:s,path:r.path,parent:r});return o.status==="aborted"?Pe:o.status==="dirty"||n.value==="dirty"?fo(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"?Pe:(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"?Pe:(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(!cl(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=>cl(s)?Promise.resolve(i.transform(s.value,u)).then(o=>({status:n.value,value:o})):s);at.assertNever(i)}};dr.create=(e,t,n)=>new dr({schema:e,typeName:Ne.ZodEffects,effect:t,...Ve(n)});dr.createWithPreprocess=(e,t,n)=>new dr({schema:t,effect:{type:"preprocess",transform:e},typeName:Ne.ZodEffects,...Ve(n)});var Fr=class extends We{_parse(t){return this._getType(t)===fe.undefined?Pn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Fr.create=(e,t)=>new Fr({innerType:e,typeName:Ne.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:Ne.ZodNullable,...Ve(t)});var ms=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}};ms.create=(e,t)=>new ms({innerType:e,typeName:Ne.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ve(t)});var gs=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 fl(i)?i.then(u=>({status:"valid",value:u.status==="valid"?u.value:this._def.catchValue({get error(){return new fr(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new fr(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};gs.create=(e,t)=>new gs({innerType:e,typeName:Ne.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ve(t)});var Do=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}),Pe}return{status:"valid",value:t.data}}};Do.create=e=>new Do({typeName:Ne.ZodNaN,...Ve(e)});var n8=Symbol("zod_brand"),dl=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}},hl=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"?Pe:u.status==="dirty"?(n.dirty(),fo(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"?Pe: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:Ne.ZodPipeline})}},Es=class extends We{_parse(t){let n=this._def.innerType._parse(t),r=i=>(cl(i)&&(i.value=Object.freeze(i.value)),i);return fl(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}};Es.create=(e,t)=>new Es({innerType:e,typeName:Ne.ZodReadonly,...Ve(t)});function uT(e,t={},n){return e?ou.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})}}):ou.create()}var r8={object:Jn.lazycreate},Ne;(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"})(Ne||(Ne={}));var i8=(e,t={message:`Input not instance of ${e.name}`})=>uT(n=>n instanceof e,t),sT=su.create,oT=rs.create,u8=Do.create,s8=is.create,aT=us.create,o8=ss.create,a8=po.create,l8=os.create,c8=as.create,f8=ou.create,d8=Si.create,h8=qr.create,p8=mo.create,m8=Ii.create,g8=Jn.create,E8=Jn.strictCreate,D8=ls.create,A8=Cf.create,C8=cs.create,T8=ni.create,x8=Tf.create,y8=go.create,_8=Eo.create,b8=xf.create,F8=fs.create,k8=ds.create,S8=hs.create,I8=ps.create,v8=au.create,X2=dr.create,O8=Fr.create,B8=ri.create,w8=dr.createWithPreprocess,N8=hl.create,R8=()=>sT().optional(),L8=()=>oT().optional(),P8=()=>aT().optional(),M8={string:e=>su.create({...e,coerce:!0}),number:e=>rs.create({...e,coerce:!0}),boolean:e=>us.create({...e,coerce:!0}),bigint:e=>is.create({...e,coerce:!0}),date:e=>ss.create({...e,coerce:!0})},U8=Pe,qe=Object.freeze({__proto__:null,defaultErrorMap:ho,setErrorMap:UP,getErrorMap:Ef,makeIssue:Df,EMPTY_PATH:HP,addIssueToContext:oe,ParseStatus:kn,INVALID:Pe,DIRTY:fo,OK:Pn,isAborted:i0,isDirty:u0,isValid:cl,isAsync:fl,get util(){return at},get objectUtil(){return r0},ZodParsedType:fe,getParsedType:uu,ZodType:We,datetimeRegex:rT,ZodString:su,ZodNumber:rs,ZodBigInt:is,ZodBoolean:us,ZodDate:ss,ZodSymbol:po,ZodUndefined:os,ZodNull:as,ZodAny:ou,ZodUnknown:Si,ZodNever:qr,ZodVoid:mo,ZodArray:Ii,ZodObject:Jn,ZodUnion:ls,ZodDiscriminatedUnion:Cf,ZodIntersection:cs,ZodTuple:ni,ZodRecord:Tf,ZodMap:go,ZodSet:Eo,ZodFunction:xf,ZodLazy:fs,ZodLiteral:ds,ZodEnum:hs,ZodNativeEnum:ps,ZodPromise:au,ZodEffects:dr,ZodTransformer:dr,ZodOptional:Fr,ZodNullable:ri,ZodDefault:ms,ZodCatch:gs,ZodNaN:Do,BRAND:n8,ZodBranded:dl,ZodPipeline:hl,ZodReadonly:Es,custom:uT,Schema:We,ZodSchema:We,late:r8,get ZodFirstPartyTypeKind(){return Ne},coerce:M8,any:f8,array:m8,bigint:s8,boolean:aT,date:o8,discriminatedUnion:A8,effect:X2,enum:S8,function:b8,instanceof:i8,intersection:C8,lazy:F8,literal:k8,map:y8,nan:u8,nativeEnum:I8,never:h8,null:c8,nullable:B8,number:oT,object:g8,oboolean:P8,onumber:L8,optional:O8,ostring:R8,pipeline:N8,preprocess:w8,promise:v8,record:x8,set:_8,strictObject:E8,string:sT,symbol:a8,transformer:X2,tuple:T8,undefined:l8,union:D8,unknown:d8,void:p8,NEVER:U8,ZodIssueCode:Q,quotelessJson:MP,ZodError:fr});import{defaultLoaders as H8}from"cosmiconfig";function o0(e,t){let n=H8[".json"],r=n(e,t);return lT(r)}function lT(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)?lT(i,u,n):i===null?n[u]="null":n[u]=i.toString()}return n}import K8 from"node:fs";import vi from"node:path";import $8 from"node:process";import j8 from"node:process";import G8 from"node:fs/promises";import{fileURLToPath as q8}from"node:url";import Ao from"node:path";var cT=e=>e instanceof URL?q8(e):e;async function yf(e,{cwd:t=j8.cwd(),type:n="file",stopAt:r}={}){let i=Ao.resolve(cT(t)??""),{root:u}=Ao.parse(i);for(r=Ao.resolve(i,cT(r??u));i&&i!==r&&i!==u;){let s=Ao.isAbsolute(e)?e:Ao.join(i,e);try{let o=await G8.stat(s);if(n==="file"&&o.isFile()||n==="directory"&&o.isDirectory())return s}catch{}i=Ao.dirname(i)}}async function fT({cwd:e=$8.cwd()}={}){return yf("package.json",{cwd:e})}import V8 from"node:fs";import W8 from"node:fs/promises";async function a0(e,t,n){if(typeof n!="string")throw new TypeError(`Expected a string, got ${typeof n}`);try{return(await W8[e](n))[t]()}catch(r){if(r.code==="ENOENT")return!1;throw r}}function l0(e,t,n){if(typeof n!="string")throw new TypeError(`Expected a string, got ${typeof n}`);try{return V8[e](n)[t]()}catch(r){if(r.code==="ENOENT")return!1;throw r}}var Co=a0.bind(void 0,"stat","isFile"),_X=a0.bind(void 0,"stat","isDirectory"),bX=a0.bind(void 0,"lstat","isSymbolicLink"),c0=l0.bind(void 0,"statSync","isFile"),FX=l0.bind(void 0,"statSync","isDirectory"),kX=l0.bind(void 0,"lstatSync","isSymbolicLink");import Y8 from"node:os";var dT=Y8.homedir();function f0(e){if(typeof e!="string")throw new TypeError(`Expected a string, got ${typeof e}`);return dT?e.replace(/^~(?=$|\/|\\)/,dT):e}function Z8(e,t){let n=t===0?1:Math.floor(Math.log10(Math.abs(t))+1);return e.toString().padStart(n,"0")}function pT(e,t,n,r){let i=[];for(let[u,s]of e.entries()){let o=n&&e.length>1?`-${Z8(u+1,e.length+1)}`:"",a=Q8(s,t,n,r,o);i.push(a)}return i}function Q8(e,t,n,r,i=""){let u=hT(e),s=t?hT(t):void 0;if(!c0(u))throw new Error(`Input file not found: "${u}"`);if(s){if(c0(s))throw new Error(`Output path must be a directory, received a file path: "${s}"`);K8.mkdirSync(s,{recursive:!0})}let o=n?vi.basename(n,vi.extname(n)):vi.basename(u,vi.extname(u)),a=`.${r??(n&&vi.extname(n)!==""?vi.extname(n):vi.extname(e)===""?"":vi.extname(e))}`,l=`${o}${i}${a}`,c=s??vi.dirname(u);return{input:u,name:l,output:c}}function hT(e){return f0(e)}async function _f(){return fT()}function bf(e){return e==null?[]:Array.isArray(e)?e:[e]}var ET=MC.merge(qe.object({assetsPath:qe.string().optional(),packageFile:qe.string().optional()})).describe("Config Extension");async function Ds(e){let{additionalConfig:t,additionalRules:n,searchFrom:r}=e??{},i={addMetaComment:!1,assetsPath:"./assets",closingPrefix:"/",keywordPrefix:"",metaCommentIdentifier:"+",packageFile:await _f(),rules:{mdat:"Powered by the Markdown Autophagic Template system: [mdat](https://github.com/kitschpatrol/mdat)."}},u=mT("mdat",{loaders:{".ts":gT({esmResolve:!0})}}),s=await u.search(r);if(s){let{config:o,filepath:a}=s;Se.info(`Using config from "${a}"`);let l=DT(o,ET);l&&(i=io(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:h,filepath:d}=f;Se.info(`Loaded additional config from "${d}"`),l=h}else l=a;if(l===void 0)continue;Se.info("Merging configuration object");let c=DT(l,ET);c!==void 0&&(i=io(i,c))}}if(n!==void 0){let o=Array.isArray(n)?n:[n],a=mT("mdat",{loaders:{".json":o0,".ts":gT({esmResolve:!0})}});for(let l of o){let c;if(typeof l=="string"){let h;if(AT.basename(l).endsWith("package.json")){let A=await X8.readFile(l,"utf8");h={config:o0(l,A),filepath:l}}else h=await a.load(l);if(h==null)continue;let{config:d,filepath:m}=h;Se.info(`Loaded additional config from "${m}"`),c=d}else c=l;if(c===void 0)continue;Se.info("Merging rules into configuration object");let f=e9(c,zc);f!==void 0&&(i=io(i,f))}}if(i.rules){let o=Object.keys(i.rules).sort().map(a=>`"${bn.bold.green(a)}"`);Se.info(`Loaded ${bn.bold(o.length)} mdat comment expansion ${t0("rule",o.length)}:`);for(let a of o)Se.info(` ${a}`)}else Se.error("No rules loaded from additional configurations or rules, using default.");return Ff=i,i}function e9(e,t){if(t.safeParse(e).success)return{rules:e};Se.error(`Rules object has the wrong shape. Ignoring and using default configuration:
|
|
132
|
+
`,"f"),me(this,Dn,F(this,Dn,"f")+t.join(" "),"f")}}}[qm](t){uo(F(this,Te,"f")).forEach(n=>{if((i=>i==="configObjects")(n))return;let r=F(this,Te,"f")[n];Array.isArray(r)?r.includes(t)&&r.splice(r.indexOf(t),1):typeof r=="object"&&delete r[t]}),delete F(this,He,"f").getDescriptions()[t]}[S2](t,n,r){F(this,lf,"f")[r]||(F(this,Le,"f").process.emitWarning(t,n),F(this,lf,"f")[r]=!0)}[I2](){F(this,cf,"f").push({options:F(this,Te,"f"),configObjects:F(this,Te,"f").configObjects.slice(0),exitProcess:F(this,yr,"f"),groups:F(this,ei,"f"),strict:F(this,Qu,"f"),strictCommands:F(this,Xu,"f"),strictOptions:F(this,Ju,"f"),completionCommand:F(this,ar,"f"),output:F(this,Dn,"f"),exitError:F(this,nu,"f"),hasOutput:F(this,lr,"f"),parsed:this.parsed,parseFn:F(this,cr,"f"),parseContext:F(this,Ku,"f")}),F(this,He,"f").freeze(),F(this,Gt,"f").freeze(),F(this,Vt,"f").freeze(),F(this,_r,"f").freeze()}[v2](){let t="",n;return/\b(node|iojs|electron)(\.exe)?$/.test(F(this,Le,"f").process.argv()[0])?n=F(this,Le,"f").process.argv().slice(1,2):n=F(this,Le,"f").process.argv().slice(0,1),t=n.map(r=>{let i=this[q2](F(this,Wu,"f"),r);return r.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<r.length?i:r}).join(" ").trim(),F(this,Le,"f").getEnv("_")&&F(this,Le,"f").getProcessArgvBin()===F(this,Le,"f").getEnv("_")&&(t=F(this,Le,"f").getEnv("_").replace(`${F(this,Le,"f").path.dirname(F(this,Le,"f").process.execPath())}/`,"")),t}[es](){return F(this,hf,"f")}[O2](){return F(this,mf,"f")}[zm](){if(!F(this,Yu,"f"))return;let t=F(this,Le,"f").getEnv("LC_ALL")||F(this,Le,"f").getEnv("LC_MESSAGES")||F(this,Le,"f").getEnv("LANG")||F(this,Le,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[B2](){return this[$m]().version||"unknown"}[w2](t){let n=t["--"]?t["--"]:t._;for(let r=0,i;(i=n[r])!==void 0;r++)F(this,Le,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(n[r]=Number(i));return t}[$m](t){let n=t||"*";if(F(this,ao,"f")[n])return F(this,ao,"f")[n];let r={};try{let i=t||F(this,Le,"f").mainFilename;!t&&F(this,Le,"f").path.extname(i)&&(i=F(this,Le,"f").path.dirname(i));let u=F(this,Le,"f").findUp(i,(s,o)=>{if(o.includes("package.json"))return"package.json"});Ln(u,void 0,F(this,Le,"f")),r=JSON.parse(F(this,Le,"f").readFileSync(u,"utf8"))}catch{}return F(this,ao,"f")[n]=r||{},F(this,ao,"f")[n]}[iu](t,n){n=[].concat(n),n.forEach(r=>{r=this[Ym](r),F(this,Te,"f")[t].push(r)})}[lo](t,n,r,i){this[Wm](t,n,r,i,(u,s,o)=>{F(this,Te,"f")[u][s]=o})}[Vm](t,n,r,i){this[Wm](t,n,r,i,(u,s,o)=>{F(this,Te,"f")[u][s]=(F(this,Te,"f")[u][s]||[]).concat(o)})}[Wm](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 uo(r))t(s,r[s]);else u(n,this[Ym](r),i)}[Ym](t){return t==="__proto__"?"___proto___":t}[Km](t,n){return this[lo](this[Km].bind(this),"key",t,n),this}[Zm](){var t,n,r,i,u,s,o,a,l,c,f,h;let d=F(this,cf,"f").pop();Ln(d,void 0,F(this,Le,"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,h=this,{options:{set value(A){me(t,Te,A,"f")}}.value,configObjects:m,exitProcess:{set value(A){me(n,yr,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,nu,A,"f")}}.value,hasOutput:{set value(A){me(s,lr,A,"f")}}.value,parsed:this.parsed,strict:{set value(A){me(o,Qu,A,"f")}}.value,strictCommands:{set value(A){me(a,Xu,A,"f")}}.value,strictOptions:{set value(A){me(l,Ju,A,"f")}}.value,completionCommand:{set value(A){me(c,ar,A,"f")}}.value,parseFn:{set value(A){me(f,cr,A,"f")}}.value,parseContext:{set value(A){me(h,Ku,A,"f")}}.value}=d,F(this,Te,"f").configObjects=m,F(this,He,"f").unfreeze(),F(this,Gt,"f").unfreeze(),F(this,Vt,"f").unfreeze(),F(this,_r,"f").unfreeze()}[N2](t,n){return Vu(n,r=>(t(r),r))}getInternalMethods(){return{getCommandInstance:this[R2].bind(this),getContext:this[L2].bind(this),getHasOutput:this[P2].bind(this),getLoggerInstance:this[M2].bind(this),getParseContext:this[U2].bind(this),getParserConfiguration:this[es].bind(this),getUsageConfiguration:this[O2].bind(this),getUsageInstance:this[H2].bind(this),getValidationInstance:this[j2].bind(this),hasParseCallback:this[gf].bind(this),isGlobalContext:this[G2].bind(this),postProcess:this[ts].bind(this),reset:this[Qm].bind(this),runValidation:this[Xm].bind(this),runYargsParserAndExecuteCommands:this[ol].bind(this),setHasOutput:this[z2].bind(this)}}[R2](){return F(this,Vt,"f")}[L2](){return F(this,sl,"f")}[P2](){return F(this,lr,"f")}[M2](){return F(this,oo,"f")}[U2](){return F(this,Ku,"f")||{}}[H2](){return F(this,He,"f")}[j2](){return F(this,Gt,"f")}[gf](){return!!F(this,cr,"f")}[G2](){return F(this,ff,"f")}[ts](t,n,r,i){return r||bt(t)||(n||(t=this[F2](t)),(this[es]()["parse-positional-numbers"]||this[es]()["parse-positional-numbers"]===void 0)&&(t=this[w2](t)),i&&(t=$u(t,this,F(this,_r,"f").getMiddleware(),!1))),t}[Qm](t={}){me(this,Te,F(this,Te,"f")||{},"f");let n={};n.local=F(this,Te,"f").local||[],n.configObjects=F(this,Te,"f").configObjects||[];let r={};n.local.forEach(s=>{r[s]=!0,(t[s]||[]).forEach(o=>{r[o]=!0})}),Object.assign(F(this,Zu,"f"),Object.keys(F(this,ei,"f")).reduce((s,o)=>{let a=F(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]=(F(this,Te,"f")[s]||[]).filter(o=>!r[o])}),u.forEach(s=>{n[s]=eu(F(this,Te,"f")[s],o=>!r[o])}),n.envPrefix=F(this,Te,"f").envPrefix,me(this,Te,n,"f"),me(this,He,F(this,He,"f")?F(this,He,"f").reset(r):D2(this,F(this,Le,"f")),"f"),me(this,Gt,F(this,Gt,"f")?F(this,Gt,"f").reset(r):_2(this,F(this,He,"f"),F(this,Le,"f")),"f"),me(this,Vt,F(this,Vt,"f")?F(this,Vt,"f").reset():m2(F(this,He,"f"),F(this,Gt,"f"),F(this,_r,"f"),F(this,Le,"f")),"f"),F(this,xr,"f")||me(this,xr,T2(this,F(this,He,"f"),F(this,Vt,"f"),F(this,Le,"f")),"f"),F(this,_r,"f").reset(),me(this,ar,null,"f"),me(this,Dn,"","f"),me(this,nu,null,"f"),me(this,lr,!1,"f"),this.parsed=!1,this}[q2](t,n){return F(this,Le,"f").path.relative(t,n)}[ol](t,n,r,i=0,u=!1){let s=!!r||u;t=t||F(this,ru,"f"),F(this,Te,"f").__=F(this,Le,"f").y18n.__,F(this,Te,"f").configuration=this[es]();let o=!!F(this,Te,"f").configuration["populate--"],a=Object.assign({},F(this,Te,"f").configuration,{"populate--":!0}),l=F(this,Le,"f").Parser.detailed(t,Object.assign({},F(this,Te,"f"),{configuration:{"parse-positional-numbers":!1,...a}})),c=Object.assign(l.argv,F(this,Ku,"f")),f,h=l.aliases,d=!1,m=!1;Object.keys(c).forEach(A=>{A===F(this,br,"f")&&c[A]?d=!0:A===F(this,ti,"f")&&c[A]&&(m=!0)}),c.$0=this.$0,this.parsed=l,i===0&&F(this,He,"f").clearCachedHelpMessage();try{if(this[zm](),n)return this[ts](c,o,!!r,!1);F(this,br,"f")&&[F(this,br,"f")].concat(h[F(this,br,"f")]||[]).filter(x=>x.length>1).includes(""+c._[c._.length-1])&&(c._.pop(),d=!0),me(this,ff,!1,"f");let A=F(this,Vt,"f").getCommands(),g=F(this,xr,"f").completionKey in c,E=d||g||u;if(c._.length){if(A.length){let _;for(let x=i||0,v;c._[x]!==void 0;x++)if(v=String(c._[x]),A.includes(v)&&v!==F(this,ar,"f")){let O=F(this,Vt,"f").runCommand(v,this,l,x+1,u,d||m||u);return this[ts](O,o,!!r,!1)}else if(!_&&v!==F(this,ar,"f")){_=v;break}!F(this,Vt,"f").hasDefaultCommand()&&F(this,pf,"f")&&_&&!E&&F(this,Gt,"f").recommendCommands(_,A)}F(this,ar,"f")&&c._.includes(F(this,ar,"f"))&&!g&&(F(this,yr,"f")&&tu(!0),this.showCompletionScript(),this.exit(0))}if(F(this,Vt,"f").hasDefaultCommand()&&!E){let _=F(this,Vt,"f").runCommand(null,this,l,0,u,d||m||u);return this[ts](_,o,!!r,!1)}if(g){F(this,yr,"f")&&tu(!0),t=[].concat(t);let _=t.slice(t.indexOf(`--${F(this,xr,"f").completionKey}`)+1);return F(this,xr,"f").getCompletion(_,(x,v)=>{if(x)throw new _t(x.message);(v||[]).forEach(O=>{F(this,oo,"f").log(O)}),this.exit(0)}),this[ts](c,!o,!!r,!1)}if(F(this,lr,"f")||(d?(F(this,yr,"f")&&tu(!0),s=!0,this.showHelp("log"),this.exit(0)):m&&(F(this,yr,"f")&&tu(!0),s=!0,F(this,He,"f").showVersion("log"),this.exit(0))),!s&&F(this,Te,"f").skipValidation.length>0&&(s=Object.keys(c).some(_=>F(this,Te,"f").skipValidation.indexOf(_)>=0&&c[_]===!0)),!s){if(l.error)throw new _t(l.error.message);if(!g){let _=this[Xm](h,{},l.error);r||(f=$u(c,this,F(this,_r,"f").getMiddleware(),!0)),f=this[N2](_,f??c),bt(f)&&!r&&(f=f.then(()=>$u(c,this,F(this,_r,"f").getMiddleware(),!1)))}}}catch(A){if(A instanceof _t)F(this,He,"f").fail(A.message,A);else throw A}return this[ts](f??c,o,!!r,!0)}[Xm](t,n,r,i){let u={...this.getDemandedOptions()};return s=>{if(r)throw new _t(r.message);F(this,Gt,"f").nonOptionCount(s),F(this,Gt,"f").requiredArguments(s,u);let o=!1;F(this,Xu,"f")&&(o=F(this,Gt,"f").unknownCommands(s)),F(this,Qu,"f")&&!o?F(this,Gt,"f").unknownArguments(s,t,n,!!i):F(this,Ju,"f")&&F(this,Gt,"f").unknownArguments(s,t,{},!1,!1),F(this,Gt,"f").limitedChoices(s),F(this,Gt,"f").implications(s),F(this,Gt,"f").conflicting(s)}}[z2](){me(this,lr,!0,"f")}[ns](t){if(typeof t=="string")F(this,Te,"f").key[t]=!0;else for(let n of t)F(this,Te,"f").key[n]=!0}};function g2(e){return!!e&&typeof e.getInternalMethods=="function"}var NP=$2(Lm),V2=NP;var W2="0.7.6";import{cosmiconfig as mT}from"cosmiconfig";import{TypeScriptLoader as gT}from"cosmiconfig-typescript-loader";import X8 from"node:fs/promises";import AT from"node:path";var e0=QE(Z2(),1);function t0(e,t,n){if(typeof t=="number"&&(n=t),e0.default.has(e.toLowerCase())){t=e0.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 J8}from"read-pkg";var at;(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})(at||(at={}));var r0;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(r0||(r0={}));var fe=at.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),uu=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=at.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"]),MP=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),fr=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,at.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()}};fr.create=e=>new fr(e);var ho=(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,at.jsonStringifyReplacer)}`;break;case Q.unrecognized_keys:n=`Unrecognized key(s) in object: ${at.joinValues(e.keys,", ")}`;break;case Q.invalid_union:n="Invalid input";break;case Q.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${at.joinValues(e.options)}`;break;case Q.invalid_enum_value:n=`Invalid enum value. Expected ${at.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}"`:at.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,at.assertNever(e)}return{message:n}},J2=ho;function UP(e){J2=e}function Ef(){return J2}var Df=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}},HP=[];function oe(e,t){let n=Ef(),r=Df({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===ho?void 0:ho].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 Pe;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 Pe;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}}},Pe=Object.freeze({status:"aborted"}),fo=e=>({status:"dirty",value:e}),Pn=e=>({status:"valid",value:e}),i0=e=>e.status==="aborted",u0=e=>e.status==="dirty",cl=e=>e.status==="valid",fl=e=>typeof Promise<"u"&&e instanceof Promise;function Af(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 eT(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 ye;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(ye||(ye={}));var al,ll,kr=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}},Q2=(e,t)=>{if(cl(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 fr(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 uu(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:uu(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:uu(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(fl(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:uu(t)},u=this._parseSync({data:t,path:i.path,parent:i});return Q2(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:uu(t)},i=this._parse({data:t,path:r.path,parent:r}),u=await(fl(i)?i:Promise.resolve(i));return Q2(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 dr({schema:this,typeName:Ne.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Fr.create(this,this._def)}nullable(){return ri.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ii.create(this,this._def)}promise(){return au.create(this,this._def)}or(t){return ls.create([this,t],this._def)}and(t){return cs.create(this,t,this._def)}transform(t){return new dr({...Ve(this._def),schema:this,typeName:Ne.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new ms({...Ve(this._def),innerType:this,defaultValue:n,typeName:Ne.ZodDefault})}brand(){return new dl({typeName:Ne.ZodBranded,type:this,...Ve(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new gs({...Ve(this._def),innerType:this,catchValue:n,typeName:Ne.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return hl.create(this,t)}readonly(){return Es.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},jP=/^c[^\s-]{8,}$/i,GP=/^[0-9a-z]+$/,qP=/^[0-9A-HJKMNP-TV-Z]{26}$/,zP=/^[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,$P=/^[a-z0-9_-]{21}$/i,VP=/^[-+]?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)?)??$/,WP=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,YP="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",n0,KP=/^(?:(?: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])$/,ZP=/^(([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})))$/,QP=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,tT="((\\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])))",XP=new RegExp(`^${tT}$`);function nT(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 JP(e){return new RegExp(`^${nT(e)}$`)}function rT(e){let t=`${tT}T${nT(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 e8(e,t){return!!((t==="v4"||!t)&&KP.test(e)||(t==="v6"||!t)&&ZP.test(e))}var su=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}),Pe}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")WP.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")n0||(n0=new RegExp(YP,"u")),n0.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")zP.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")$P.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")jP.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")GP.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")qP.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"?rT(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"?XP.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Q.invalid_string,validation:"date",message:u.message}),r.dirty()):u.kind==="time"?JP(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"?VP.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"duration",code:Q.invalid_string,message:u.message}),r.dirty()):u.kind==="ip"?e8(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"?QP.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"base64",code:Q.invalid_string,message:u.message}),r.dirty()):at.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,...ye.errToObj(r)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ye.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ye.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ye.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ye.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ye.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ye.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ye.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ye.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ye.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ye.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,...ye.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,...ye.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...ye.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ye.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...ye.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ye.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ye.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ye.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ye.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ye.errToObj(n)})}nonempty(t){return this.min(1,ye.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}};su.create=e=>{var t;return new su({checks:[],typeName:Ne.ZodString,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...Ve(e)})};function t8(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 rs=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}),Pe}let r,i=new kn;for(let u of this._def.checks)u.kind==="int"?at.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"?t8(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()):at.assertNever(u);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ye.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ye.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ye.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ye.toString(n))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ye.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ye.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ye.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ye.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ye.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ye.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ye.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ye.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ye.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ye.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"&&at.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)}};rs.create=e=>new rs({checks:[],typeName:Ne.ZodNumber,coerce:e?.coerce||!1,...Ve(e)});var is=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}),Pe}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()):at.assertNever(u);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ye.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ye.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ye.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ye.toString(n))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ye.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:ye.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ye.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ye.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ye.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ye.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}};is.create=e=>{var t;return new is({checks:[],typeName:Ne.ZodBigInt,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...Ve(e)})};var us=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}),Pe}return Pn(t.data)}};us.create=e=>new us({typeName:Ne.ZodBoolean,coerce:e?.coerce||!1,...Ve(e)});var ss=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}),Pe}if(isNaN(t.data.getTime())){let u=this._getOrReturnCtx(t);return oe(u,{code:Q.invalid_date}),Pe}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()):at.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:ye.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ye.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}};ss.create=e=>new ss({checks:[],coerce:e?.coerce||!1,typeName:Ne.ZodDate,...Ve(e)});var po=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}),Pe}return Pn(t.data)}};po.create=e=>new po({typeName:Ne.ZodSymbol,...Ve(e)});var os=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}),Pe}return Pn(t.data)}};os.create=e=>new os({typeName:Ne.ZodUndefined,...Ve(e)});var as=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}),Pe}return Pn(t.data)}};as.create=e=>new as({typeName:Ne.ZodNull,...Ve(e)});var ou=class extends We{constructor(){super(...arguments),this._any=!0}_parse(t){return Pn(t.data)}};ou.create=e=>new ou({typeName:Ne.ZodAny,...Ve(e)});var Si=class extends We{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Pn(t.data)}};Si.create=e=>new Si({typeName:Ne.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}),Pe}};qr.create=e=>new qr({typeName:Ne.ZodNever,...Ve(e)});var mo=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}),Pe}return Pn(t.data)}};mo.create=e=>new mo({typeName:Ne.ZodVoid,...Ve(e)});var Ii=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}),Pe;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 kr(n,s,n.path,o)))).then(s=>kn.mergeArray(r,s));let u=[...n.data].map((s,o)=>i.type._parseSync(new kr(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:ye.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:ye.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:ye.toString(n)}})}nonempty(t){return this.min(1,t)}};Ii.create=(e,t)=>new Ii({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ne.ZodArray,...Ve(t)});function co(e){if(e instanceof Jn){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=Fr.create(co(r))}return new Jn({...e._def,shape:()=>t})}else return e instanceof Ii?new Ii({...e._def,type:co(e.element)}):e instanceof Fr?Fr.create(co(e.unwrap())):e instanceof ri?ri.create(co(e.unwrap())):e instanceof ni?ni.create(e.items.map(t=>co(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=at.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}),Pe}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 kr(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 kr(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,h=await c.value;l.push({key:f,value:h,alwaysSet:c.alwaysSet})}return l}).then(l=>kn.mergeObjectSync(r,l)):kn.mergeObjectSync(r,a)}get shape(){return this._def.shape()}strict(t){return ye.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=ye.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:Ne.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};return at.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 at.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new e({...this._def,shape:()=>n})}deepPartial(){return co(this)}partial(t){let n={};return at.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 at.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let u=this.shape[r];for(;u instanceof Fr;)u=u._def.innerType;n[r]=u}}),new e({...this._def,shape:()=>n})}keyof(){return iT(at.objectKeys(this.shape))}};Jn.create=(e,t)=>new Jn({shape:()=>e,unknownKeys:"strip",catchall:qr.create(),typeName:Ne.ZodObject,...Ve(t)});Jn.strictCreate=(e,t)=>new Jn({shape:()=>e,unknownKeys:"strict",catchall:qr.create(),typeName:Ne.ZodObject,...Ve(t)});Jn.lazycreate=(e,t)=>new Jn({shape:e,unknownKeys:"strip",catchall:qr.create(),typeName:Ne.ZodObject,...Ve(t)});var ls=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 fr(o.ctx.common.issues));return oe(n,{code:Q.invalid_union,unionErrors:s}),Pe}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 fr(a));return oe(n,{code:Q.invalid_union,unionErrors:o}),Pe}}get options(){return this._def.options}};ls.create=(e,t)=>new ls({options:e,typeName:Ne.ZodUnion,...Ve(t)});var ki=e=>e instanceof fs?ki(e.schema):e instanceof dr?ki(e.innerType()):e instanceof ds?[e.value]:e instanceof hs?e.options:e instanceof ps?at.objectValues(e.enum):e instanceof ms?ki(e._def.innerType):e instanceof os?[void 0]:e instanceof as?[null]:e instanceof Fr?[void 0,...ki(e.unwrap())]:e instanceof ri?[null,...ki(e.unwrap())]:e instanceof dl||e instanceof Es?ki(e.unwrap()):e instanceof gs?ki(e._def.innerType):[],Cf=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}),Pe;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]}),Pe)}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=ki(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:Ne.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...Ve(r)})}};function s0(e,t){let n=uu(e),r=uu(t);if(e===t)return{valid:!0,data:e};if(n===fe.object&&r===fe.object){let i=at.objectKeys(t),u=at.objectKeys(e).filter(o=>i.indexOf(o)!==-1),s={...e,...t};for(let o of u){let a=s0(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=s0(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 cs=class extends We{_parse(t){let{status:n,ctx:r}=this._processInputParams(t),i=(u,s)=>{if(i0(u)||i0(s))return Pe;let o=s0(u.value,s.value);return o.valid?((u0(u)||u0(s))&&n.dirty(),{status:n.value,value:o.data}):(oe(r,{code:Q.invalid_intersection_types}),Pe)};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}))}};cs.create=(e,t,n)=>new cs({left:e,right:t,typeName:Ne.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}),Pe;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"}),Pe;!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 kr(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:Ne.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}),Pe;let i=[],u=this._def.keyType,s=this._def.valueType;for(let o in r.data)i.push({key:u._parse(new kr(r,o,r.path,o)),value:s._parse(new kr(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:Ne.ZodRecord,...Ve(r)}):new e({keyType:su.create(),valueType:t,typeName:Ne.ZodRecord,...Ve(n)})}},go=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}),Pe;let i=this._def.keyType,u=this._def.valueType,s=[...r.data.entries()].map(([o,a],l)=>({key:i._parse(new kr(r,o,r.path,[l,"key"])),value:u._parse(new kr(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 Pe;(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 Pe;(l.status==="dirty"||c.status==="dirty")&&n.dirty(),o.set(l.value,c.value)}return{status:n.value,value:o}}}};go.create=(e,t,n)=>new go({valueType:t,keyType:e,typeName:Ne.ZodMap,...Ve(n)});var Eo=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}),Pe;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 Pe;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 kr(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:ye.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:ye.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};Eo.create=(e,t)=>new Eo({valueType:e,minSize:null,maxSize:null,typeName:Ne.ZodSet,...Ve(t)});var xf=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}),Pe;function r(o,a){return Df({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Ef(),ho].filter(l=>!!l),issueData:{code:Q.invalid_arguments,argumentsError:a}})}function i(o,a){return Df({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Ef(),ho].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 au){let o=this;return Pn(async function(...a){let l=new fr([]),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 fr([r(a,l.error)]);let c=Reflect.apply(s,this,l.data),f=o._def.returns.safeParse(c,u);if(!f.success)throw new fr([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(Si.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(Si.create()),returns:n||Si.create(),typeName:Ne.ZodFunction,...Ve(r)})}},fs=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})}};fs.create=(e,t)=>new fs({getter:e,typeName:Ne.ZodLazy,...Ve(t)});var ds=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}),Pe}return{status:"valid",value:t.data}}get value(){return this._def.value}};ds.create=(e,t)=>new ds({value:e,typeName:Ne.ZodLiteral,...Ve(t)});function iT(e,t){return new hs({values:e,typeName:Ne.ZodEnum,...Ve(t)})}var hs=class e extends We{constructor(){super(...arguments),al.set(this,void 0)}_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),r=this._def.values;return oe(n,{expected:at.joinValues(r),received:n.parsedType,code:Q.invalid_type}),Pe}if(Af(this,al,"f")||eT(this,al,new Set(this._def.values),"f"),!Af(this,al,"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}),Pe}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})}};al=new WeakMap;hs.create=iT;var ps=class extends We{constructor(){super(...arguments),ll.set(this,void 0)}_parse(t){let n=at.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==fe.string&&r.parsedType!==fe.number){let i=at.objectValues(n);return oe(r,{expected:at.joinValues(i),received:r.parsedType,code:Q.invalid_type}),Pe}if(Af(this,ll,"f")||eT(this,ll,new Set(at.getValidEnumValues(this._def.values)),"f"),!Af(this,ll,"f").has(t.data)){let i=at.objectValues(n);return oe(r,{received:r.data,code:Q.invalid_enum_value,options:i}),Pe}return Pn(t.data)}get enum(){return this._def.values}};ll=new WeakMap;ps.create=(e,t)=>new ps({values:e,typeName:Ne.ZodNativeEnum,...Ve(t)});var au=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}),Pe;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})))}};au.create=(e,t)=>new au({type:e,typeName:Ne.ZodPromise,...Ve(t)});var dr=class extends We{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ne.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 Pe;let a=await this._def.schema._parseAsync({data:o,path:r.path,parent:r});return a.status==="aborted"?Pe:a.status==="dirty"||n.value==="dirty"?fo(a.value):a});{if(n.value==="aborted")return Pe;let o=this._def.schema._parseSync({data:s,path:r.path,parent:r});return o.status==="aborted"?Pe:o.status==="dirty"||n.value==="dirty"?fo(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"?Pe:(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"?Pe:(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(!cl(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=>cl(s)?Promise.resolve(i.transform(s.value,u)).then(o=>({status:n.value,value:o})):s);at.assertNever(i)}};dr.create=(e,t,n)=>new dr({schema:e,typeName:Ne.ZodEffects,effect:t,...Ve(n)});dr.createWithPreprocess=(e,t,n)=>new dr({schema:t,effect:{type:"preprocess",transform:e},typeName:Ne.ZodEffects,...Ve(n)});var Fr=class extends We{_parse(t){return this._getType(t)===fe.undefined?Pn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Fr.create=(e,t)=>new Fr({innerType:e,typeName:Ne.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:Ne.ZodNullable,...Ve(t)});var ms=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}};ms.create=(e,t)=>new ms({innerType:e,typeName:Ne.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ve(t)});var gs=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 fl(i)?i.then(u=>({status:"valid",value:u.status==="valid"?u.value:this._def.catchValue({get error(){return new fr(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new fr(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};gs.create=(e,t)=>new gs({innerType:e,typeName:Ne.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ve(t)});var Do=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}),Pe}return{status:"valid",value:t.data}}};Do.create=e=>new Do({typeName:Ne.ZodNaN,...Ve(e)});var n8=Symbol("zod_brand"),dl=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}},hl=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"?Pe:u.status==="dirty"?(n.dirty(),fo(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"?Pe: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:Ne.ZodPipeline})}},Es=class extends We{_parse(t){let n=this._def.innerType._parse(t),r=i=>(cl(i)&&(i.value=Object.freeze(i.value)),i);return fl(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}};Es.create=(e,t)=>new Es({innerType:e,typeName:Ne.ZodReadonly,...Ve(t)});function uT(e,t={},n){return e?ou.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})}}):ou.create()}var r8={object:Jn.lazycreate},Ne;(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"})(Ne||(Ne={}));var i8=(e,t={message:`Input not instance of ${e.name}`})=>uT(n=>n instanceof e,t),sT=su.create,oT=rs.create,u8=Do.create,s8=is.create,aT=us.create,o8=ss.create,a8=po.create,l8=os.create,c8=as.create,f8=ou.create,d8=Si.create,h8=qr.create,p8=mo.create,m8=Ii.create,g8=Jn.create,E8=Jn.strictCreate,D8=ls.create,A8=Cf.create,C8=cs.create,T8=ni.create,x8=Tf.create,y8=go.create,_8=Eo.create,b8=xf.create,F8=fs.create,k8=ds.create,S8=hs.create,I8=ps.create,v8=au.create,X2=dr.create,O8=Fr.create,B8=ri.create,w8=dr.createWithPreprocess,N8=hl.create,R8=()=>sT().optional(),L8=()=>oT().optional(),P8=()=>aT().optional(),M8={string:e=>su.create({...e,coerce:!0}),number:e=>rs.create({...e,coerce:!0}),boolean:e=>us.create({...e,coerce:!0}),bigint:e=>is.create({...e,coerce:!0}),date:e=>ss.create({...e,coerce:!0})},U8=Pe,qe=Object.freeze({__proto__:null,defaultErrorMap:ho,setErrorMap:UP,getErrorMap:Ef,makeIssue:Df,EMPTY_PATH:HP,addIssueToContext:oe,ParseStatus:kn,INVALID:Pe,DIRTY:fo,OK:Pn,isAborted:i0,isDirty:u0,isValid:cl,isAsync:fl,get util(){return at},get objectUtil(){return r0},ZodParsedType:fe,getParsedType:uu,ZodType:We,datetimeRegex:rT,ZodString:su,ZodNumber:rs,ZodBigInt:is,ZodBoolean:us,ZodDate:ss,ZodSymbol:po,ZodUndefined:os,ZodNull:as,ZodAny:ou,ZodUnknown:Si,ZodNever:qr,ZodVoid:mo,ZodArray:Ii,ZodObject:Jn,ZodUnion:ls,ZodDiscriminatedUnion:Cf,ZodIntersection:cs,ZodTuple:ni,ZodRecord:Tf,ZodMap:go,ZodSet:Eo,ZodFunction:xf,ZodLazy:fs,ZodLiteral:ds,ZodEnum:hs,ZodNativeEnum:ps,ZodPromise:au,ZodEffects:dr,ZodTransformer:dr,ZodOptional:Fr,ZodNullable:ri,ZodDefault:ms,ZodCatch:gs,ZodNaN:Do,BRAND:n8,ZodBranded:dl,ZodPipeline:hl,ZodReadonly:Es,custom:uT,Schema:We,ZodSchema:We,late:r8,get ZodFirstPartyTypeKind(){return Ne},coerce:M8,any:f8,array:m8,bigint:s8,boolean:aT,date:o8,discriminatedUnion:A8,effect:X2,enum:S8,function:b8,instanceof:i8,intersection:C8,lazy:F8,literal:k8,map:y8,nan:u8,nativeEnum:I8,never:h8,null:c8,nullable:B8,number:oT,object:g8,oboolean:P8,onumber:L8,optional:O8,ostring:R8,pipeline:N8,preprocess:w8,promise:v8,record:x8,set:_8,strictObject:E8,string:sT,symbol:a8,transformer:X2,tuple:T8,undefined:l8,union:D8,unknown:d8,void:p8,NEVER:U8,ZodIssueCode:Q,quotelessJson:MP,ZodError:fr});import{defaultLoaders as H8}from"cosmiconfig";function o0(e,t){let n=H8[".json"],r=n(e,t);return lT(r)}function lT(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)?lT(i,u,n):i===null?n[u]="null":n[u]=i.toString()}return n}import K8 from"node:fs";import vi from"node:path";import $8 from"node:process";import j8 from"node:process";import G8 from"node:fs/promises";import{fileURLToPath as q8}from"node:url";import Ao from"node:path";var cT=e=>e instanceof URL?q8(e):e;async function yf(e,{cwd:t=j8.cwd(),type:n="file",stopAt:r}={}){let i=Ao.resolve(cT(t)??""),{root:u}=Ao.parse(i);for(r=Ao.resolve(i,cT(r??u));i&&i!==r&&i!==u;){let s=Ao.isAbsolute(e)?e:Ao.join(i,e);try{let o=await G8.stat(s);if(n==="file"&&o.isFile()||n==="directory"&&o.isDirectory())return s}catch{}i=Ao.dirname(i)}}async function fT({cwd:e=$8.cwd()}={}){return yf("package.json",{cwd:e})}import V8 from"node:fs";import W8 from"node:fs/promises";async function a0(e,t,n){if(typeof n!="string")throw new TypeError(`Expected a string, got ${typeof n}`);try{return(await W8[e](n))[t]()}catch(r){if(r.code==="ENOENT")return!1;throw r}}function l0(e,t,n){if(typeof n!="string")throw new TypeError(`Expected a string, got ${typeof n}`);try{return V8[e](n)[t]()}catch(r){if(r.code==="ENOENT")return!1;throw r}}var Co=a0.bind(void 0,"stat","isFile"),_X=a0.bind(void 0,"stat","isDirectory"),bX=a0.bind(void 0,"lstat","isSymbolicLink"),c0=l0.bind(void 0,"statSync","isFile"),FX=l0.bind(void 0,"statSync","isDirectory"),kX=l0.bind(void 0,"lstatSync","isSymbolicLink");import Y8 from"node:os";var dT=Y8.homedir();function f0(e){if(typeof e!="string")throw new TypeError(`Expected a string, got ${typeof e}`);return dT?e.replace(/^~(?=$|\/|\\)/,dT):e}function Z8(e,t){let n=t===0?1:Math.floor(Math.log10(Math.abs(t))+1);return e.toString().padStart(n,"0")}function pT(e,t,n,r){let i=[];for(let[u,s]of e.entries()){let o=n&&e.length>1?`-${Z8(u+1,e.length+1)}`:"",a=Q8(s,t,n,r,o);i.push(a)}return i}function Q8(e,t,n,r,i=""){let u=hT(e),s=t?hT(t):void 0;if(!c0(u))throw new Error(`Input file not found: "${u}"`);if(s){if(c0(s))throw new Error(`Output path must be a directory, received a file path: "${s}"`);K8.mkdirSync(s,{recursive:!0})}let o=n?vi.basename(n,vi.extname(n)):vi.basename(u,vi.extname(u)),a=`.${r??(n&&vi.extname(n)!==""?vi.extname(n):vi.extname(e)===""?"":vi.extname(e))}`,l=`${o}${i}${a}`,c=s??vi.dirname(u);return{input:u,name:l,output:c}}function hT(e){return f0(e)}async function _f(){return fT()}function bf(e){return e==null?[]:Array.isArray(e)?e:[e]}var ET=MC.merge(qe.object({assetsPath:qe.string().optional(),packageFile:qe.string().optional()})).describe("Config Extension");async function Ds(e){let{additionalConfig:t,additionalRules:n,searchFrom:r}=e??{},i={addMetaComment:!1,assetsPath:"./assets",closingPrefix:"/",keywordPrefix:"",metaCommentIdentifier:"+",packageFile:await _f(),rules:{mdat:"Powered by the Markdown Autophagic Template system: [mdat](https://github.com/kitschpatrol/mdat)."}},u=mT("mdat",{loaders:{".ts":gT({esmResolve:!0})}}),s=await u.search(r);if(s){let{config:o,filepath:a}=s;Se.info(`Using config from "${a}"`);let l=DT(o,ET);l&&(i=io(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:h,filepath:d}=f;Se.info(`Loaded additional config from "${d}"`),l=h}else l=a;if(l===void 0)continue;Se.info("Merging configuration object");let c=DT(l,ET);c!==void 0&&(i=io(i,c))}}if(n!==void 0){let o=Array.isArray(n)?n:[n],a=mT("mdat",{loaders:{".json":o0,".ts":gT({esmResolve:!0})}});for(let l of o){let c;if(typeof l=="string"){let h;if(AT.basename(l).endsWith("package.json")){let A=await X8.readFile(l,"utf8");h={config:o0(l,A),filepath:l}}else h=await a.load(l);if(h==null)continue;let{config:d,filepath:m}=h;Se.info(`Loaded additional config from "${m}"`),c=d}else c=l;if(c===void 0)continue;Se.info("Merging rules into configuration object");let f=e9(c,zc);f!==void 0&&(i=io(i,f))}}if(i.rules){let o=Object.keys(i.rules).sort().map(a=>`"${bn.bold.green(a)}"`);Se.info(`Loaded ${bn.bold(o.length)} mdat comment expansion ${t0("rule",o.length)}:`);for(let a of o)Se.info(` ${a}`)}else Se.error("No rules loaded from additional configurations or rules, using default.");return Ff=i,i}function e9(e,t){if(t.safeParse(e).success)return{rules:e};Se.error(`Rules object has the wrong shape. Ignoring and using default configuration:
|
|
133
133
|
${JSON.stringify(e,void 0,2)}`)}function DT(e,t){if(t.safeParse(e).success)return e;Se.error(`Config object has the wrong shape. Ignoring and using default configuration:
|
|
134
134
|
${JSON.stringify(e,void 0,2)}`)}var Ff;async function ii(){return Ff===void 0&&(Se.warn("getConfig(): config was undefined"),Ff??=await Ds()),Ff}var d0;async function hr(){let{packageFile:e}=await ii();if(e===void 0)throw new Error("No packageFile found or set in config");if(d0??=await J8({cwd:AT.dirname(e)}),d0===void 0)throw new Error("No package.json found");return d0}var t9={};function Oi(e,t){let n=t||t9,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return TT(e,r,i)}function TT(e,t,n){if(n9(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 CT(e.children,t,n)}return Array.isArray(e)?CT(e,t,n):""}function CT(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=TT(e[i],t,n);return r.join("")}function n9(e){return!!(e&&typeof e=="object")}var h0={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 r9={}.hasOwnProperty;function To(e){return r9.call(h0,e)?h0[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 xT={}.hasOwnProperty;function kf(e){let t={},n=-1;for(;++n<e.length;)i9(t,e[n]);return t}function i9(e,t){let n;for(n in t){let i=(xT.call(e,n)?e[n]:void 0)||(e[n]={}),u=t[n],s;if(u)for(s in u){xT.call(i,s)||(i[s]=[]);let o=u[s];u9(i[s],Array.isArray(o)?o:o?[o]:[])}}}function u9(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 Sf(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=lu(/[A-Za-z]/),ln=lu(/[\dA-Za-z]/),yT=lu(/[#-'*+\--9=?A-Z^-~]/);function As(e){return e!==null&&(e<32||e===127)}var pl=lu(/\d/),_T=lu(/[\dA-Fa-f]/),bT=lu(/[!-/:-@[-`{-~]/);function ue(e){return e!==null&&e<-2}function Qe(e){return e!==null&&(e<0||e===32)}function ve(e){return e===-2||e===-1||e===32}var Cs=lu(new RegExp("\\p{P}|\\p{S}","u")),ui=lu(/\s/);function lu(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Fe(e,t,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,u=0;return s;function s(a){return ve(a)?(e.enter(n),o(a)):t(a)}function o(a){return ve(a)&&u++<i?(e.consume(a),o):(e.exit(n),t(a))}}var FT={tokenize:s9};function s9(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"),Fe(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 ST={tokenize:o9},kT={tokenize:a9};function o9(e){let t=this,n=[],r=0,i,u,s;return o;function o(x){if(r<n.length){let v=n[r];return t.containerState=v[1],e.attempt(v[0].continuation,a,l)(x)}return l(x)}function a(x){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&_();let v=t.events.length,O=v,b;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){b=t.events[O][1].end;break}E(r);let B=v;for(;B<t.events.length;)t.events[B][1].end=Object.assign({},b),B++;return Xt(t.events,O+1,0,t.events.slice(v)),t.events.length=B,l(x)}return o(x)}function l(x){if(r===n.length){if(!i)return h(x);if(i.currentConstruct&&i.currentConstruct.concrete)return m(x);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(kT,c,f)(x)}function c(x){return i&&_(),E(r),h(x)}function f(x){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,m(x)}function h(x){return t.containerState={},e.attempt(kT,d,m)(x)}function d(x){return r++,n.push([t.currentConstruct,t.containerState]),h(x)}function m(x){if(x===null){i&&_(),E(0),e.consume(x);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:u,_tokenizer:i}),A(x)}function A(x){if(x===null){g(e.exit("chunkFlow"),!0),E(0),e.consume(x);return}return ue(x)?(e.consume(x),g(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(x),A)}function g(x,v){let O=t.sliceStream(x);if(v&&O.push(null),x.previous=u,u&&(u.next=x),u=x,i.defineSkip(x.start),i.write(O),t.parser.lazy[x.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 B=t.events.length,L=B,P,T;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){if(P){T=t.events[L][1].end;break}P=!0}for(E(r),b=B;b<t.events.length;)t.events[b][1].end=Object.assign({},T),b++;Xt(t.events,L+1,0,t.events.slice(B)),t.events.length=b}}function E(x){let v=n.length;for(;v-- >x;){let O=n[v];t.containerState=O[1],O[0].exit.call(t,e)}n.length=x}function _(){i.write([null]),u=void 0,i=void 0,t.containerState._closeFlow=void 0}}function a9(e,t,n){return Fe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function xo(e){if(e===null||Qe(e)||ui(e))return 1;if(Cs(e))return 2}function cu(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 ml={name:"attention",tokenize:c9,resolveAll:l9};function l9(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),h=Object.assign({},e[n][1].start);IT(f,-a),IT(h,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:h},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,cu(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 c9(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=xo(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=xo(a),f=!c||c===2&&i||n.includes(a),h=!i||i===2&&c||n.includes(r);return l._open=!!(u===42?f:f&&(i||!h)),l._close=!!(u===42?h:h&&(c||!f)),t(a)}}function IT(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var p0={name:"autolink",tokenize:f9};function f9(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||As(d)?n(d):(e.consume(d),a)}function l(d){return d===64?(e.consume(d),c):yT(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):h(d)}function h(d){if((d===45||ln(d))&&r++<63){let m=d===45?h:f;return e.consume(d),m}return n(d)}}var si={tokenize:d9,partial:!0};function d9(e,t,n){return r;function r(u){return ve(u)?Fe(e,i,"linePrefix")(u):i(u)}function i(u){return u===null||ue(u)?t(u):n(u)}}var If={name:"blockQuote",tokenize:h9,continuation:{tokenize:p9},exit:m9};function h9(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 ve(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function p9(e,t,n){let r=this;return i;function i(s){return ve(s)?Fe(e,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):u(s)}function u(s){return e.attempt(If,t,n)(s)}}function m9(e){e.exit("blockQuote")}var vf={name:"characterEscape",tokenize:g9};function g9(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 bT(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(u)}}var Of={name:"characterReference",tokenize:E9};function E9(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=_T,c):(e.enter("characterReferenceValue"),u=7,s=pl,c(f))}function c(f){if(f===59&&i){let h=e.exit("characterReferenceValue");return s===ln&&!To(r.sliceSerialize(h))?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 vT={tokenize:A9,partial:!0},Bf={name:"codeFenced",tokenize:D9,concrete:!0};function D9(e,t,n){let r=this,i={tokenize:O,partial:!0},u=0,s=0,o;return a;function a(b){return l(b)}function l(b){let B=r.events[r.events.length-1];return u=B&&B[1].type==="linePrefix"?B[2].sliceSerialize(B[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"),ve(b)?Fe(e,f,"whitespace")(b):f(b))}function f(b){return b===null||ue(b)?(e.exit("codeFencedFence"),r.interrupt?t(b):e.check(vT,A,v)(b)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===null||ue(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(b)):ve(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Fe(e,d,"whitespace")(b)):b===96&&b===o?n(b):(e.consume(b),h)}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,v,g)(b)}function g(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),E}function E(b){return u>0&&ve(b)?Fe(e,_,"linePrefix",u+1)(b):_(b)}function _(b){return b===null||ue(b)?e.check(vT,A,v)(b):(e.enter("codeFlowValue"),x(b))}function x(b){return b===null||ue(b)?(e.exit("codeFlowValue"),_(b)):(e.consume(b),x)}function v(b){return e.exit("codeFenced"),t(b)}function O(b,B,L){let P=0;return T;function T($){return b.enter("lineEnding"),b.consume($),b.exit("lineEnding"),G}function G($){return b.enter("codeFencedFence"),ve($)?Fe(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"),ve($)?Fe(b,q,"whitespace")($):q($)):L($)}function q($){return $===null||ue($)?(b.exit("codeFencedFence"),B($)):L($)}}}function A9(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 gl={name:"codeIndented",tokenize:T9},C9={tokenize:x9,partial:!0};function T9(e,t,n){let r=this;return i;function i(l){return e.enter("codeIndented"),Fe(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(C9,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 x9(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):Fe(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 m0={name:"codeText",tokenize:b9,resolve:y9,previous:_9};function y9(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 _9(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function b9(e,t,n){let r=this,i=0,u,s;return o;function o(h){return e.enter("codeText"),e.enter("codeTextSequence"),a(h)}function a(h){return h===96?(e.consume(h),i++,a):(e.exit("codeTextSequence"),l(h))}function l(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),l):h===96?(s=e.enter("codeTextSequence"),u=0,f(h)):ue(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(h))}function c(h){return h===null||h===32||h===96||ue(h)?(e.exit("codeTextData"),l(h)):(e.consume(h),c)}function f(h){return h===96?(e.consume(h),u++,f):u===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(s.type="codeTextData",c(h))}}var wf=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&&El(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),El(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),El(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);El(this.right,n.reverse())}else{let n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);El(this.left,n.reverse())}}};function El(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 Nf(e){let t={},n=-1,r,i,u,s,o,a,l,c=new wf(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,F9(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 F9(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,h=-1,d=n,m=0,A=0,g=[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;++h<o.length;)o[h][0]==="exit"&&o[h-1][0]==="enter"&&o[h][1].type===o[h-1][1].type&&o[h][1].start.line!==o[h][1].end.line&&(A=h+1,g.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):g.pop(),h=g.length;h--;){let E=o.slice(g[h],g[h+1]),_=u.pop();a.push([_,_+E.length-1]),e.splice(_,2,E)}for(a.reverse(),h=-1;++h<a.length;)l[m+a[h][0]]=m+a[h][1],m+=a[h][1]-a[h][0]-1;return l}var g0={tokenize:I9,resolve:S9},k9={tokenize:v9,partial:!0};function S9(e){return Nf(e),e}function I9(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(k9,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 v9(e,t,n){let r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Fe(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 Rf(e,t,n,r,i,u,s,o,a){let l=a||Number.POSITIVE_INFINITY,c=0;return f;function f(E){return E===60?(e.enter(r),e.enter(i),e.enter(u),e.consume(E),e.exit(u),h):E===null||E===32||E===41||As(E)?n(E):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),A(E))}function h(E){return E===62?(e.enter(u),e.consume(E),e.exit(u),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),d(E))}function d(E){return E===62?(e.exit("chunkString"),e.exit(o),h(E)):E===null||E===60||ue(E)?n(E):(e.consume(E),E===92?m:d)}function m(E){return E===60||E===62||E===92?(e.consume(E),d):d(E)}function A(E){return!c&&(E===null||E===41||Qe(E))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(E)):c<l&&E===40?(e.consume(E),c++,A):E===41?(e.consume(E),c--,A):E===null||E===32||E===40||As(E)?n(E):(e.consume(E),E===92?g:A)}function g(E){return E===40||E===41||E===92?(e.consume(E),A):A(E)}}function Lf(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=!ve(d)),d===92?h:f)}function h(d){return d===91||d===92||d===93?(e.consume(d),o++,f):f(d)}}function Pf(e,t,n,r,i,u){let s;return o;function o(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),s=h===40?41:h,a):n(h)}function a(h){return h===s?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(u),l(h))}function l(h){return h===s?(e.exit(u),a(s)):h===null?n(h):ue(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),Fe(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===s||h===null||ue(h)?(e.exit("chunkString"),l(h)):(e.consume(h),h===92?f:c)}function f(h){return h===s||h===92?(e.consume(h),c):c(h)}}function Ts(e,t){let n;return r;function r(i){return ue(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ve(i)?Fe(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}var E0={name:"definition",tokenize:B9},O9={tokenize:w9,partial:!0};function B9(e,t,n){let r=this,i;return u;function u(d){return e.enter("definition"),s(d)}function s(d){return Lf.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)?Ts(e,l)(d):l(d)}function l(d){return Rf(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function c(d){return e.attempt(O9,f,f)(d)}function f(d){return ve(d)?Fe(e,h,"whitespace")(d):h(d)}function h(d){return d===null||ue(d)?(e.exit("definition"),r.parser.defined.push(i),t(d)):n(d)}}function w9(e,t,n){return r;function r(o){return Qe(o)?Ts(e,i)(o):n(o)}function i(o){return Pf(e,u,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function u(o){return ve(o)?Fe(e,s,"whitespace")(o):s(o)}function s(o){return o===null||ue(o)?t(o):n(o)}}var D0={name:"hardBreakEscape",tokenize:N9};function N9(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 A0={name:"headingAtx",tokenize:L9,resolve:R9};function R9(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 L9(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)):ve(c)?Fe(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 OT=["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"],C0=["pre","script","style","textarea"];var T0={name:"htmlFlow",tokenize:H9,resolveTo:U9,concrete:!0},P9={tokenize:G9,partial:!0},M9={tokenize:j9,partial:!0};function U9(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 H9(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),h):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),g):n(C)}function h(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),g):n(C)}function g(C){if(C===null||C===47||C===62||Qe(C)){let ne=C===47,ft=s.toLowerCase();return!ne&&!u&&C0.includes(ft)?(i=1,r.interrupt?t(C):R(C)):OT.includes(s.toLowerCase())?(i=6,ne?(e.consume(C),E):r.interrupt?t(C):R(C)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(C):u?_(C):x(C))}return C===45||ln(C)?(e.consume(C),s+=String.fromCharCode(C),g):n(C)}function E(C){return C===62?(e.consume(C),r.interrupt?t:R):n(C)}function _(C){return ve(C)?(e.consume(C),_):T(C)}function x(C){return C===47?(e.consume(C),T):C===58||C===95||an(C)?(e.consume(C),v):ve(C)?(e.consume(C),x):T(C)}function v(C){return C===45||C===46||C===58||C===95||ln(C)?(e.consume(C),v):O(C)}function O(C){return C===61?(e.consume(C),b):ve(C)?(e.consume(C),O):x(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,B):ve(C)?(e.consume(C),b):L(C)}function B(C){return C===a?(e.consume(C),a=null,P):C===null||ue(C)?n(C):(e.consume(C),B)}function L(C){return C===null||C===34||C===39||C===47||C===60||C===61||C===62||C===96||Qe(C)?O(C):(e.consume(C),L)}function P(C){return C===47||C===62||ve(C)?x(C):n(C)}function T(C){return C===62?(e.consume(C),G):n(C)}function G(C){return C===null||ue(C)?R(C):ve(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(P9,ct,N)(C)):C===null||ue(C)?(e.exit("htmlFlowData"),N(C)):(e.consume(C),R)}function N(C){return e.check(M9,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="",Re):R(C)}function Re(C){if(C===62){let ne=s.toLowerCase();return C0.includes(ne)?(e.consume(C),Ze):R(C)}return an(C)&&s.length<8?(e.consume(C),s+=String.fromCharCode(C),Re):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 j9(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 G9(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(si,t,n)}}var x0={name:"htmlText",tokenize:q9};function q9(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),O):D===63?(e.consume(D),x):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),_):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),h):ue(D)?(s=f,re(D)):(e.consume(D),f)}function h(D){return D===45?(e.consume(D),d):f(D)}function d(D){return D===62?te(D):D===45?h(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),g):ue(D)?(s=A,re(D)):(e.consume(D),A)}function g(D){return D===93?(e.consume(D),E):A(D)}function E(D){return D===62?te(D):D===93?(e.consume(D),E):A(D)}function _(D){return D===null||D===62?te(D):ue(D)?(s=_,re(D)):(e.consume(D),_)}function x(D){return D===null?n(D):D===63?(e.consume(D),v):ue(D)?(s=x,re(D)):(e.consume(D),x)}function v(D){return D===62?te(D):x(D)}function O(D){return an(D)?(e.consume(D),b):n(D)}function b(D){return D===45||ln(D)?(e.consume(D),b):B(D)}function B(D){return ue(D)?(s=B,re(D)):ve(D)?(e.consume(D),B):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),T):ue(D)?(s=P,re(D)):ve(D)?(e.consume(D),P):te(D)}function T(D){return D===45||D===46||D===58||D===95||ln(D)?(e.consume(D),T):G(D)}function G(D){return D===61?(e.consume(D),R):ue(D)?(s=G,re(D)):ve(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)):ve(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"),Re}function Re(D){return ve(D)?Fe(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 xs={name:"labelEnd",tokenize:K9,resolveTo:Y9,resolveAll:W9},z9={tokenize:Z9},$9={tokenize:Q9},V9={tokenize:X9};function W9(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 Y9(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,cu(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 K9(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(h){return u?u._inactive?f(h):(s=r.parser.defined.includes(Sn(r.sliceSerialize({start:u.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),a):n(h)}function a(h){return h===40?e.attempt(z9,c,s?c:f)(h):h===91?e.attempt($9,c,s?l:f)(h):s?c(h):f(h)}function l(h){return e.attempt(V9,c,f)(h)}function c(h){return t(h)}function f(h){return u._balanced=!0,n(h)}}function Z9(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)?Ts(e,u)(f):u(f)}function u(f){return f===41?c(f):Rf(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return Qe(f)?Ts(e,a)(f):c(f)}function o(f){return n(f)}function a(f){return f===34||f===39||f===40?Pf(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function l(f){return Qe(f)?Ts(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 Q9(e,t,n){let r=this;return i;function i(o){return Lf.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 X9(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 y0={name:"labelStartImage",tokenize:J9,resolveAll:xs.resolveAll};function J9(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 _0={name:"labelStartLink",tokenize:e5,resolveAll:xs.resolveAll};function e5(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 Dl={name:"lineEnding",tokenize:t5};function t5(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Fe(e,t,"linePrefix")}}var ys={name:"thematicBreak",tokenize:n5};function n5(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"),ve(l)?Fe(e,o,"whitespace")(l):o(l))}}var In={name:"list",tokenize:u5,continuation:{tokenize:s5},exit:a5},r5={tokenize:l5,partial:!0},i5={tokenize:o5,partial:!0};function u5(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:pl(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(ys,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 pl(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(r5,h,f))}function c(d){return r.containerState.initialBlankLine=!0,u++,h(d)}function f(d){return ve(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),h):n(d)}function h(d){return r.containerState.size=u+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function s5(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,Fe(e,t,"listItemIndent",r.containerState.size+1)(o)}function u(o){return r.containerState.furtherBlankLines||!ve(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(i5,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Fe(e,e.attempt(In,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function o5(e,t,n){let r=this;return Fe(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 l5(e,t,n){let r=this;return Fe(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!ve(u)&&s&&s[1].type==="listItemPrefixWhitespace"?t(u):n(u)}}var Mf={name:"setextUnderline",tokenize:f5,resolveTo:c5};function c5(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 f5(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"),ve(l)?Fe(e,a,"lineSuffix")(l):a(l))}function a(l){return l===null||ue(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}var BT={tokenize:d5};function d5(e){let t=this,n=e.attempt(si,r,e.attempt(this.parser.constructs.flowInitial,i,Fe(e,e.attempt(this.parser.constructs.flow,i,e.attempt(g0,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 wT={resolveAll:PT()},NT=LT("string"),RT=LT("text");function LT(e){return{tokenize:t,resolveAll:PT(e==="text"?h5: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],h=-1;if(f)for(;++h<f.length;){let d=f[h];if(!d.previous||d.previous.call(r,r.previous))return!0}return!1}}}function PT(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 h5(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 MT(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:v,enter:O,exit:b,attempt:P(B),check:P(L),interrupt:P(L,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:A,sliceSerialize:m,now:g,defineSkip:E,write:d},f=t.tokenize.call(c,l),h;return t.resolveAll&&u.push(t),c;function d(N){return s=Mn(s,N),_(),s[s.length-1]!==null?[]:(T(t,0),c.events=cu(u,c.events,c),c.events)}function m(N,q){return m5(A(N),q)}function A(N){return p5(s,N)}function g(){let{line:N,column:q,offset:$,_index:te,_bufferIndex:re}=r;return{line:N,column:q,offset:$,_index:te,_bufferIndex:re}}function E(N){i[N.line]=N.column,R()}function _(){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;)x(q.charCodeAt(r._bufferIndex));else x(q)}}function x(N){a=void 0,h=N,f=f(N)}function v(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 O(N,q){let $=q||{};return $.type=N,$.start=g(),c.events.push(["enter",$,c]),o.push($),$}function b(N){let q=o.pop();return q.end=g(),c.events.push(["exit",q,c]),q}function B(N,q){T(N,q.from)}function L(N,q){q.restore()}function P(N,q){return $;function $(te,re,Re){let lt,D,Ze,ct;return Array.isArray(te)?ne(te):"tokenize"in te?ne([te]):C(te);function C(ae){return be;function be(_e){let Me=_e!==null&&ae[_e],it=_e!==null&&ae.null,ht=[...Array.isArray(Me)?Me:Me?[Me]:[],...Array.isArray(it)?it:it?[it]:[]];return ne(ht)(_e)}}function ne(ae){return lt=ae,D=0,ae.length===0?Re:ft(ae[D])}function ft(ae){return be;function be(_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,De,Oe)(_e)}}function De(ae){return a=!0,N(Ze,ct),re}function Oe(ae){return a=!0,ct.restore(),++D<lt.length?ft(lt[D]):Re}}}function T(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=g(),q=c.previous,$=c.currentConstruct,te=c.events.length,re=Array.from(o);return{restore:Re,from:te};function Re(){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 p5(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 m5(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=`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mdat",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "CLI tool and library implementing the Markdown Autophagic Template (MDAT) system. MDAT lets you use comments as dynamic content templates in Markdown files, making it easy to generate and update readme boilerplate.",
|
|
6
6
|
"repository": "github:kitschpatrol/mdat",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@clack/prompts": "^0.7.0",
|
|
42
|
-
"@kitschpatrol/tldraw-cli": "^4.6.
|
|
42
|
+
"@kitschpatrol/tldraw-cli": "^4.6.19",
|
|
43
43
|
"@types/mdast": "^4.0.4",
|
|
44
44
|
"@types/node": "18.19.0",
|
|
45
45
|
"@types/unist": "^3.0.3",
|
|
@@ -47,14 +47,14 @@
|
|
|
47
47
|
"@types/yargs": "^17.0.33",
|
|
48
48
|
"cosmiconfig": "^9.0.0",
|
|
49
49
|
"cosmiconfig-typescript-loader": "^5.0.0",
|
|
50
|
-
"execa": "^9.
|
|
50
|
+
"execa": "^9.4.0",
|
|
51
51
|
"globby": "^14.0.2",
|
|
52
52
|
"read-pkg": "^9.0.1",
|
|
53
53
|
"which": "^4.0.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@kitschpatrol/shared-config": "^4.7.
|
|
57
|
-
"bumpp": "^9.
|
|
56
|
+
"@kitschpatrol/shared-config": "^4.7.10",
|
|
57
|
+
"bumpp": "^9.6.0",
|
|
58
58
|
"chalk": "^5.3.0",
|
|
59
59
|
"chevrotain": "^11.0.3",
|
|
60
60
|
"find-up": "^7.0.0",
|
|
@@ -68,9 +68,9 @@
|
|
|
68
68
|
"pretty-ms": "^9.1.0",
|
|
69
69
|
"remark": "^15.0.1",
|
|
70
70
|
"remark-gfm": "^4.0.0",
|
|
71
|
-
"remark-mdat": "^0.7.
|
|
71
|
+
"remark-mdat": "^0.7.3",
|
|
72
72
|
"to-vfile": "^8.0.0",
|
|
73
|
-
"tsup": "^8.
|
|
73
|
+
"tsup": "^8.3.0",
|
|
74
74
|
"type-fest": "^4.26.1",
|
|
75
75
|
"typescript": "^5.6.2",
|
|
76
76
|
"untildify": "^5.0.0",
|