-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathtreeview.plug.js
36 lines (35 loc) · 97.5 KB
/
treeview.plug.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
var kt=Object.defineProperty;var U=(n,e)=>{for(var t in e)kt(n,t,{get:e[t],enumerable:!0})};var Xe=typeof window>"u"&&typeof globalThis.WebSocketPair>"u";typeof Deno>"u"&&(self.Deno={args:[],build:{arch:"x86_64"},env:{get(){}}});var Le=new Map,Ee=0;function ve(n){self.postMessage(n)}Xe&&(globalThis.syscall=async(n,...e)=>await new Promise((t,r)=>{Ee++,Le.set(Ee,{resolve:t,reject:r}),ve({type:"sys",id:Ee,name:n,args:e})}));function Je(n,e){Xe&&(self.addEventListener("message",t=>{(async()=>{let r=t.data;switch(r.type){case"inv":{let s=n[r.name];if(!s)throw new Error(`Function not loaded: ${r.name}`);try{let a=await Promise.resolve(s(...r.args||[]));ve({type:"invr",id:r.id,result:a})}catch(a){console.error("An exception was thrown as a result of invoking function",r.name,"error:",a.message),ve({type:"invr",id:r.id,error:a.message})}}break;case"sysr":{let s=r.id,a=Le.get(s);if(!a)throw Error("Invalid request id");Le.delete(s),r.error?a.reject(new Error(r.error)):a.resolve(r.result)}break}})().catch(console.error)}),ve({type:"manifest",manifest:e}))}function At(n){let e=atob(n),t=e.length,r=new Uint8Array(t);for(let s=0;s<t;s++)r[s]=e.charCodeAt(s);return r}function ze(n){typeof n=="string"&&(n=new TextEncoder().encode(n));let e="",t=n.byteLength;for(let r=0;r<t;r++)e+=String.fromCharCode(n[r]);return btoa(e)}async function Pt(n,e){if(typeof n!="string"){let t=new Uint8Array(await n.arrayBuffer()),r=t.length>0?ze(t):void 0;e={method:n.method,headers:Object.fromEntries(n.headers.entries()),base64Body:r},n=n.url}return syscall("sandboxFetch.fetch",n,e)}globalThis.nativeFetch=globalThis.fetch;function Rt(){globalThis.fetch=async function(n,e){let t=e&&e.body?ze(new Uint8Array(await new Response(e.body).arrayBuffer())):void 0,r=await Pt(n,e&&{method:e.method,headers:e.headers,base64Body:t});return new Response(r.base64Body?At(r.base64Body):null,{status:r.status,headers:r.headers})}}Xe&&Rt();var G={};U(G,{confirm:()=>rn,copyToClipboard:()=>fn,deleteLine:()=>Zn,dispatch:()=>tn,downloadFile:()=>Ot,filterBox:()=>jt,flashNotification:()=>Ft,fold:()=>dn,foldAll:()=>ln,getCurrentPage:()=>wt,getCursor:()=>Bt,getSelection:()=>Wt,getText:()=>Kt,getUiOption:()=>sn,goHistory:()=>Ht,hidePanel:()=>zt,insertAtCursor:()=>en,insertAtPos:()=>qt,moveCursor:()=>$t,navigate:()=>_t,openCommandPalette:()=>Et,openPageNavigator:()=>Ut,openSearchPanel:()=>gn,openUrl:()=>Dt,prompt:()=>nn,redo:()=>mn,reloadPage:()=>Lt,reloadSettingsAndCommands:()=>Yt,reloadUI:()=>Xt,replaceRange:()=>Qt,save:()=>Nt,setPage:()=>St,setSelection:()=>Vt,setText:()=>Gt,setUiOption:()=>an,showPanel:()=>Jt,toggleFold:()=>cn,undo:()=>yn,unfold:()=>un,unfoldAll:()=>pn,uploadFile:()=>Mt,vimEx:()=>on});typeof self>"u"&&(self={syscall:()=>{throw new Error("Not implemented here")}});var u=globalThis.syscall;function wt(){return u("editor.getCurrentPage")}function St(n){return u("editor.setPage",n)}function Kt(){return u("editor.getText")}function Gt(n){return u("editor.setText",n)}function Bt(){return u("editor.getCursor")}function Wt(){return u("editor.getSelection")}function Vt(n,e){return u("editor.setSelection",n,e)}function Nt(){return u("editor.save")}function _t(n,e=!1,t=!1){return u("editor.navigate",n,e,t)}function Ut(n="page"){return u("editor.openPageNavigator",n)}function Et(){return u("editor.openCommandPalette")}function Lt(){return u("editor.reloadPage")}function Xt(){return u("editor.reloadUI")}function Yt(){return u("editor.reloadSettingsAndCommands")}function Dt(n,e=!1){return u("editor.openUrl",n,e)}function Ht(n){return u("editor.goHistory",n)}function Ot(n,e){return u("editor.downloadFile",n,e)}function Mt(n,e){return u("editor.uploadFile",n,e)}function Ft(n,e="info"){return u("editor.flashNotification",n,e)}function jt(n,e,t="",r=""){return u("editor.filterBox",n,e,t,r)}function Jt(n,e,t,r=""){return u("editor.showPanel",n,e,t,r)}function zt(n){return u("editor.hidePanel",n)}function qt(n,e){return u("editor.insertAtPos",n,e)}function Qt(n,e,t){return u("editor.replaceRange",n,e,t)}function $t(n,e=!1){return u("editor.moveCursor",n,e)}function en(n){return u("editor.insertAtCursor",n)}function tn(n){return u("editor.dispatch",n)}function nn(n,e=""){return u("editor.prompt",n,e)}function rn(n){return u("editor.confirm",n)}function sn(n){return u("editor.getUiOption",n)}function an(n,e){return u("editor.setUiOption",n,e)}function on(n){return u("editor.vimEx",n)}function dn(){return u("editor.fold")}function un(){return u("editor.unfold")}function cn(){return u("editor.toggleFold")}function ln(){return u("editor.foldAll")}function pn(){return u("editor.unfoldAll")}function yn(){return u("editor.undo")}function mn(){return u("editor.redo")}function gn(){return u("editor.openSearchPanel")}function fn(n){return u("editor.copyToClipboard",n)}function Zn(){return u("editor.deleteLine")}var ke={};U(ke,{parseMarkdown:()=>hn});function hn(n){return u("markdown.parseMarkdown",n)}var re={};U(re,{deleteAttachment:()=>wn,deleteFile:()=>Wn,deletePage:()=>Cn,getAttachmentMeta:()=>An,getFileMeta:()=>Gn,getPageMeta:()=>bn,listAttachments:()=>kn,listFiles:()=>Sn,listPages:()=>In,listPlugs:()=>vn,readAttachment:()=>Pn,readFile:()=>Kn,readPage:()=>xn,writeAttachment:()=>Rn,writeFile:()=>Bn,writePage:()=>Tn});function In(n=!1){return u("space.listPages",n)}function bn(n){return u("space.getPageMeta",n)}function xn(n){return u("space.readPage",n)}function Tn(n,e){return u("space.writePage",n,e)}function Cn(n){return u("space.deletePage",n)}function vn(){return u("space.listPlugs")}function kn(){return u("space.listAttachments")}function An(n){return u("space.getAttachmentMeta",n)}function Pn(n){return u("space.readAttachment",n)}function Rn(n,e){return u("space.writeAttachment",n,e)}function wn(n){return u("space.deleteAttachment",n)}function Sn(){return u("space.listFiles")}function Kn(n){return u("space.readFile",n)}function Gn(n){return u("space.getFileMeta",n)}function Bn(n,e){return u("space.writeFile",n,e)}function Wn(n){return u("space.deleteFile",n)}var E={};U(E,{applyAttributeExtractors:()=>Ln,getEnv:()=>Yn,getMode:()=>Dn,getVersion:()=>Hn,invokeCommand:()=>Nn,invokeFunction:()=>Vn,invokeSpaceFunction:()=>En,listCommands:()=>_n,listSyscalls:()=>Un,reloadPlugs:()=>Xn});function Vn(n,...e){return u("system.invokeFunction",n,...e)}function Nn(n,e){return u("system.invokeCommand",n,e)}function _n(){return u("system.listCommands")}function Un(){return u("system.listSyscalls")}function En(n,...e){return u("system.invokeSpaceFunction",n,...e)}function Ln(n,e,t){return u("system.applyAttributeExtractors",n,e,t)}function Xn(){return u("system.reloadPlugs")}function Yn(){return u("system.getEnv")}function Dn(){return u("system.getMode")}function Hn(){return u("system.getVersion")}var se={};U(se,{del:()=>Fn,get:()=>Mn,set:()=>On});function On(n,e){return u("clientStore.set",n,e)}function Mn(n){return u("clientStore.get",n)}function Fn(n){return u("clientStore.delete",n)}var w={};U(w,{readAsset:()=>er});function $n(n){let e=atob(n),t=e.length,r=new Uint8Array(t);for(let s=0;s<t;s++)r[s]=e.charCodeAt(s);return r}function qe(n){let e=n.split(",",2)[1];return $n(e)}async function er(n,e,t="utf8"){let r=await u("asset.readAsset",n,e);switch(t){case"utf8":return new TextDecoder().decode(qe(r));case"dataurl":return r}}var ae={};U(ae,{parse:()=>rr,stringify:()=>sr});function rr(n){return u("yaml.parse",n)}function sr(n){return u("yaml.stringify",n)}function Ye(n,e){if(e(n))return[n];let t=[];if(n.children)for(let r of n.children)t=[...t,...Ye(r,e)];return t}function De(n,e){return Ye(n,t=>t.type===e)[0]}function Qe(n,e){Ye(n,e)}async function dr(n,e){let t=await re.readPage(n),r=await ke.parseMarkdown(t),s;return Qe(r,a=>{if(a.type!=="FencedCode")return!1;let i=De(a,"CodeInfo");if(e&&!i||e&&!e.includes(i.children[0].text))return!1;let o=De(a,"CodeText");return o?(s=o.children[0].text,!0):!1}),s}async function $e(n,e=["yaml"]){let t=await dr(n,e);if(t!==void 0)try{return ae.parse(t)}catch(r){throw console.error("YAML Page parser error",r),new Error(`YAML Error: ${r.message}`)}}var ur="SETTINGS";async function et(n,e){try{let r=(await $e(ur,["yaml"])||{})[n];return r===void 0?e:r}catch(t){if(t.message==="Not found")return e;throw t}}var C={};U(C,{BRAND:()=>wr,DIRTY:()=>O,EMPTY_PATH:()=>yr,INVALID:()=>g,NEVER:()=>ys,OK:()=>A,ParseStatus:()=>k,Schema:()=>h,ZodAny:()=>$,ZodArray:()=>F,ZodBigInt:()=>de,ZodBoolean:()=>ue,ZodBranded:()=>be,ZodCatch:()=>Ie,ZodDate:()=>ce,ZodDefault:()=>he,ZodDiscriminatedUnion:()=>Se,ZodEffects:()=>Y,ZodEnum:()=>ee,ZodError:()=>R,ZodFirstPartyTypeKind:()=>ut,ZodFunction:()=>We,ZodIntersection:()=>me,ZodIssueCode:()=>d,ZodLazy:()=>ge,ZodLiteral:()=>fe,ZodMap:()=>Ge,ZodNaN:()=>Ve,ZodNativeEnum:()=>Ze,ZodNever:()=>_,ZodNull:()=>pe,ZodNullable:()=>D,ZodNumber:()=>ie,ZodObject:()=>L,ZodOptional:()=>B,ZodParsedType:()=>p,ZodPipeline:()=>xe,ZodPromise:()=>te,ZodReadonly:()=>Te,ZodRecord:()=>Ke,ZodSchema:()=>h,ZodSet:()=>Be,ZodString:()=>Q,ZodSymbol:()=>Re,ZodTransformer:()=>Y,ZodTuple:()=>X,ZodType:()=>h,ZodUndefined:()=>le,ZodUnion:()=>ye,ZodUnknown:()=>M,ZodVoid:()=>we,addIssueToContext:()=>l,any:()=>Ur,array:()=>Yr,bigint:()=>Br,boolean:()=>pt,coerce:()=>ps,custom:()=>dt,date:()=>Wr,datetimeRegex:()=>ot,defaultErrorMap:()=>V,discriminatedUnion:()=>Mr,effect:()=>ss,enum:()=>ts,function:()=>Qr,getErrorMap:()=>j,getParsedType:()=>W,instanceof:()=>Kr,intersection:()=>Fr,isAborted:()=>Ae,isAsync:()=>z,isDirty:()=>Pe,isValid:()=>J,late:()=>Sr,lazy:()=>$r,literal:()=>es,makeIssue:()=>oe,map:()=>zr,nan:()=>Gr,nativeEnum:()=>ns,never:()=>Lr,null:()=>_r,nullable:()=>os,number:()=>lt,object:()=>Dr,objectUtil:()=>tt,oboolean:()=>ls,onumber:()=>cs,optional:()=>as,ostring:()=>us,pipeline:()=>ds,preprocess:()=>is,promise:()=>rs,quotelessJson:()=>cr,record:()=>Jr,set:()=>qr,setErrorMap:()=>pr,strictObject:()=>Hr,string:()=>ct,symbol:()=>Vr,transformer:()=>ss,tuple:()=>jr,undefined:()=>Nr,union:()=>Or,unknown:()=>Er,util:()=>b,void:()=>Xr});var b;(T=>{T.assertEqual=x=>x;function e(x){}T.assertIs=e;function t(x){throw new Error}T.assertNever=t,T.arrayToEnum=x=>{let v={};for(let P of x)v[P]=P;return v},T.getValidEnumValues=x=>{let v=(0,T.objectKeys)(x).filter(Ce=>typeof x[x[Ce]]!="number"),P={};for(let Ce of v)P[Ce]=x[Ce];return(0,T.objectValues)(P)},T.objectValues=x=>(0,T.objectKeys)(x).map(function(v){return x[v]}),T.objectKeys=typeof Object.keys=="function"?x=>Object.keys(x):x=>{let v=[];for(let P in x)Object.prototype.hasOwnProperty.call(x,P)&&v.push(P);return v},T.find=(x,v)=>{for(let P of x)if(v(P))return P},T.isInteger=typeof Number.isInteger=="function"?x=>Number.isInteger(x):x=>typeof x=="number"&&isFinite(x)&&Math.floor(x)===x;function c(x,v=" | "){return x.map(P=>typeof P=="string"?`'${P}'`:P).join(v)}T.joinValues=c,T.jsonStringifyReplacer=(x,v)=>typeof v=="bigint"?v.toString():v})(b||={});var tt;(e=>e.mergeShapes=(t,r)=>({...t,...r}))(tt||={});var p=b.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),W=n=>{switch(typeof n){case"undefined":return p.undefined;case"string":return p.string;case"number":return isNaN(n)?p.nan:p.number;case"boolean":return p.boolean;case"function":return p.function;case"bigint":return p.bigint;case"symbol":return p.symbol;case"object":return Array.isArray(n)?p.array:n===null?p.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?p.promise:typeof Map<"u"&&n instanceof Map?p.map:typeof Set<"u"&&n instanceof Set?p.set:typeof Date<"u"&&n instanceof Date?p.date:p.object;default:return p.unknown}};var d=b.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"]),cr=n=>JSON.stringify(n,null,2).replace(/"([^"]+)":/g,"$1:"),R=class n extends Error{issues=[];get errors(){return this.issues}constructor(e){super();let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(a){return a.message},r={_errors:[]},s=a=>{for(let i of a.issues)if(i.code==="invalid_union")i.unionErrors.map(s);else if(i.code==="invalid_return_type")s(i.returnTypeError);else if(i.code==="invalid_arguments")s(i.argumentsError);else if(i.path.length===0)r._errors.push(t(i));else{let o=r,y=0;for(;y<i.path.length;){let c=i.path[y];y===i.path.length-1?(o[c]=o[c]||{_errors:[]},o[c]._errors.push(t(i))):o[c]=o[c]||{_errors:[]},o=o[c],y++}}};return s(this),r}static create=e=>new n(e);static assert(e){if(!(e instanceof n))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,b.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}addIssue=e=>{this.issues=[...this.issues,e]};addIssues=(e=[])=>{this.issues=[...this.issues,...e]};flatten(e=t=>t.message){let t={},r=[];for(let s of this.issues)s.path.length>0?(t[s.path[0]]=t[s.path[0]]||[],t[s.path[0]].push(e(s))):r.push(e(s));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}};var lr=(n,e)=>{let t;switch(n.code){case d.invalid_type:n.received===p.undefined?t="Required":t=`Expected ${n.expected}, received ${n.received}`;break;case d.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(n.expected,b.jsonStringifyReplacer)}`;break;case d.unrecognized_keys:t=`Unrecognized key(s) in object: ${b.joinValues(n.keys,", ")}`;break;case d.invalid_union:t="Invalid input";break;case d.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${b.joinValues(n.options)}`;break;case d.invalid_enum_value:t=`Invalid enum value. Expected ${b.joinValues(n.options)}, received '${n.received}'`;break;case d.invalid_arguments:t="Invalid function arguments";break;case d.invalid_return_type:t="Invalid function return type";break;case d.invalid_date:t="Invalid date";break;case d.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(t=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?t=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?t=`Invalid input: must end with "${n.validation.endsWith}"`:b.assertNever(n.validation):n.validation!=="regex"?t=`Invalid ${n.validation}`:t="Invalid";break;case d.too_small:n.type==="array"?t=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?t=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?t=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?t=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:t="Invalid input";break;case d.too_big:n.type==="array"?t=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?t=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?t=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?t=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?t=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:t="Invalid input";break;case d.custom:t="Invalid input";break;case d.invalid_intersection_types:t="Intersection results could not be merged";break;case d.not_multiple_of:t=`Number must be a multiple of ${n.multipleOf}`;break;case d.not_finite:t="Number must be finite";break;default:t=e.defaultError,b.assertNever(n)}return{message:t}},V=lr;var nt=V;function pr(n){nt=n}function j(){return nt}var oe=n=>{let{data:e,path:t,errorMaps:r,issueData:s}=n,a=[...t,...s.path||[]],i={...s,path:a};if(s.message!==void 0)return{...s,path:a,message:s.message};let o="",y=r.filter(c=>!!c).slice().reverse();for(let c of y)o=c(i,{data:e,defaultError:o}).message;return{...s,path:a,message:o}},yr=[];function l(n,e){let t=j(),r=oe({issueData:e,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,t,t===V?void 0:V].filter(s=>!!s)});n.common.issues.push(r)}var k=class n{value="valid";dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let s of t){if(s.status==="aborted")return g;s.status==="dirty"&&e.dirty(),r.push(s.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let s of t){let a=await s.key,i=await s.value;r.push({key:a,value:i})}return n.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let s of t){let{key:a,value:i}=s;if(a.status==="aborted"||i.status==="aborted")return g;a.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),a.value!=="__proto__"&&(typeof i.value<"u"||s.alwaysSet)&&(r[a.value]=i.value)}return{status:e.value,value:r}}},g=Object.freeze({status:"aborted"}),O=n=>({status:"dirty",value:n}),A=n=>({status:"valid",value:n}),Ae=n=>n.status==="aborted",Pe=n=>n.status==="dirty",J=n=>n.status==="valid",z=n=>typeof Promise<"u"&&n instanceof Promise;var m;(t=>(t.errToObj=r=>typeof r=="string"?{message:r}:r||{},t.toString=r=>typeof r=="string"?r:r?.message))(m||={});var S=class{parent;data;_path;_key;_cachedPath=[];constructor(e,t,r,s){this.parent=e,this.data=t,this._path=r,this._key=s}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}},rt=(n,e)=>{if(J(e))return{success:!0,data:e.value};if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new R(n.common.issues);return this._error=t,this._error}}};function Z(n){if(!n)return{};let{errorMap:e,invalid_type_error:t,required_error:r,description:s}=n;if(e&&(t||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(i,o)=>{let{message:y}=n;return i.code==="invalid_enum_value"?{message:y??o.defaultError}:typeof o.data>"u"?{message:y??r??o.defaultError}:i.code!=="invalid_type"?{message:o.defaultError}:{message:y??t??o.defaultError}},description:s}}var h=class{_type;_output;_input;_def;get description(){return this._def.description}_getType(e){return W(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:W(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new k,ctx:{common:e.parent.common,data:e.data,parsedType:W(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(z(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:W(e)},s=this._parseSync({data:e,path:r.path,parent:r});return rt(r,s)}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:W(e)},s=this._parse({data:e,path:r.path,parent:r}),a=await(z(s)?s:Promise.resolve(s));return rt(r,a)}spa=this.safeParseAsync;refine(e,t){let r=s=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(s):t;return this._refinement((s,a)=>{let i=e(s),o=()=>a.addIssue({code:d.custom,...r(s)});return typeof Promise<"u"&&i instanceof Promise?i.then(y=>y?!0:(o(),!1)):i?!0:(o(),!1)})}refinement(e,t){return this._refinement((r,s)=>e(r)?!0:(s.addIssue(typeof t=="function"?t(r,s):t),!1))}_refinement(e){return new Y({schema:this,typeName:"ZodEffects",effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this._def=e,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)}optional(){return B.create(this,this._def)}nullable(){return D.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return F.create(this,this._def)}promise(){return te.create(this,this._def)}or(e){return ye.create([this,e],this._def)}and(e){return me.create(this,e,this._def)}transform(e){return new Y({...Z(this._def),schema:this,typeName:"ZodEffects",effect:{type:"transform",transform:e}})}default(e){let t=typeof e=="function"?e:()=>e;return new he({...Z(this._def),innerType:this,defaultValue:t,typeName:"ZodDefault"})}brand(){return new be({typeName:"ZodBranded",type:this,...Z(this._def)})}catch(e){let t=typeof e=="function"?e:()=>e;return new Ie({...Z(this._def),innerType:this,catchValue:t,typeName:"ZodCatch"})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return xe.create(this,e)}readonly(){return Te.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},mr=/^c[^\s-]{8,}$/i,gr=/^[0-9a-z]+$/,fr=/^[0-9A-HJKMNP-TV-Z]{26}$/,Zr=/^[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,hr=/^[a-z0-9_-]{21}$/i,Ir=/^[-+]?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)?)??$/,br=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,xr="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",He,Tr=/^(?:(?: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])$/,Cr=/^(([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})))$/,vr=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,st="((\\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])))",kr=new RegExp(`^${st}$`);function at(n){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return n.precision?e=`${e}\\.\\d{${n.precision}}`:n.precision==null&&(e=`${e}(\\.\\d+)?`),e}function Ar(n){return new RegExp(`^${at(n)}$`)}function ot(n){let e=`${st}T${at(n)}`,t=[];return t.push(n.local?"Z?":"Z"),n.offset&&t.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${t.join("|")})`,new RegExp(`^${e}$`)}function Pr(n,e){return!!((e==="v4"||!e)&&Tr.test(n)||(e==="v6"||!e)&&Cr.test(n))}var Q=class n extends h{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==p.string){let a=this._getOrReturnCtx(e);return l(a,{code:d.invalid_type,expected:p.string,received:a.parsedType}),g}let r=new k,s;for(let a of this._def.checks)if(a.kind==="min")e.data.length<a.value&&(s=this._getOrReturnCtx(e,s),l(s,{code:d.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="max")e.data.length>a.value&&(s=this._getOrReturnCtx(e,s),l(s,{code:d.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="length"){let i=e.data.length>a.value,o=e.data.length<a.value;(i||o)&&(s=this._getOrReturnCtx(e,s),i?l(s,{code:d.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):o&&l(s,{code:d.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),r.dirty())}else if(a.kind==="email")br.test(e.data)||(s=this._getOrReturnCtx(e,s),l(s,{validation:"email",code:d.invalid_string,message:a.message}),r.dirty());else if(a.kind==="emoji")He||(He=new RegExp(xr,"u")),He.test(e.data)||(s=this._getOrReturnCtx(e,s),l(s,{validation:"emoji",code:d.invalid_string,message:a.message}),r.dirty());else if(a.kind==="uuid")Zr.test(e.data)||(s=this._getOrReturnCtx(e,s),l(s,{validation:"uuid",code:d.invalid_string,message:a.message}),r.dirty());else if(a.kind==="nanoid")hr.test(e.data)||(s=this._getOrReturnCtx(e,s),l(s,{validation:"nanoid",code:d.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid")mr.test(e.data)||(s=this._getOrReturnCtx(e,s),l(s,{validation:"cuid",code:d.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid2")gr.test(e.data)||(s=this._getOrReturnCtx(e,s),l(s,{validation:"cuid2",code:d.invalid_string,message:a.message}),r.dirty());else if(a.kind==="ulid")fr.test(e.data)||(s=this._getOrReturnCtx(e,s),l(s,{validation:"ulid",code:d.invalid_string,message:a.message}),r.dirty());else if(a.kind==="url")try{new URL(e.data)}catch{s=this._getOrReturnCtx(e,s),l(s,{validation:"url",code:d.invalid_string,message:a.message}),r.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(e.data)||(s=this._getOrReturnCtx(e,s),l(s,{validation:"regex",code:d.invalid_string,message:a.message}),r.dirty())):a.kind==="trim"?e.data=e.data.trim():a.kind==="includes"?e.data.includes(a.value,a.position)||(s=this._getOrReturnCtx(e,s),l(s,{code:d.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),r.dirty()):a.kind==="toLowerCase"?e.data=e.data.toLowerCase():a.kind==="toUpperCase"?e.data=e.data.toUpperCase():a.kind==="startsWith"?e.data.startsWith(a.value)||(s=this._getOrReturnCtx(e,s),l(s,{code:d.invalid_string,validation:{startsWith:a.value},message:a.message}),r.dirty()):a.kind==="endsWith"?e.data.endsWith(a.value)||(s=this._getOrReturnCtx(e,s),l(s,{code:d.invalid_string,validation:{endsWith:a.value},message:a.message}),r.dirty()):a.kind==="datetime"?ot(a).test(e.data)||(s=this._getOrReturnCtx(e,s),l(s,{code:d.invalid_string,validation:"datetime",message:a.message}),r.dirty()):a.kind==="date"?kr.test(e.data)||(s=this._getOrReturnCtx(e,s),l(s,{code:d.invalid_string,validation:"date",message:a.message}),r.dirty()):a.kind==="time"?Ar(a).test(e.data)||(s=this._getOrReturnCtx(e,s),l(s,{code:d.invalid_string,validation:"time",message:a.message}),r.dirty()):a.kind==="duration"?Ir.test(e.data)||(s=this._getOrReturnCtx(e,s),l(s,{validation:"duration",code:d.invalid_string,message:a.message}),r.dirty()):a.kind==="ip"?Pr(e.data,a.version)||(s=this._getOrReturnCtx(e,s),l(s,{validation:"ip",code:d.invalid_string,message:a.message}),r.dirty()):a.kind==="base64"?vr.test(e.data)||(s=this._getOrReturnCtx(e,s),l(s,{validation:"base64",code:d.invalid_string,message:a.message}),r.dirty()):b.assertNever(a);return{status:r.value,value:e.data}}_regex(e,t,r){return this.refinement(s=>e.test(s),{validation:t,code:d.invalid_string,...m.errToObj(r)})}_addCheck(e){return new n({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...m.errToObj(e)})}url(e){return this._addCheck({kind:"url",...m.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...m.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...m.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...m.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...m.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...m.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...m.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...m.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...m.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...m.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...m.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...m.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...m.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...m.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...m.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...m.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...m.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...m.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...m.errToObj(t)})}nonempty(e){return this.min(1,m.errToObj(e))}trim(){return new n({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new n({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new n({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get minLength(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}static create=e=>new n({checks:[],typeName:"ZodString",coerce:e?.coerce??!1,...Z(e)})};function Rr(n,e){let t=(n.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,s=t>r?t:r,a=parseInt(n.toFixed(s).replace(".","")),i=parseInt(e.toFixed(s).replace(".",""));return a%i/Math.pow(10,s)}var ie=class n extends h{_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==p.number){let a=this._getOrReturnCtx(e);return l(a,{code:d.invalid_type,expected:p.number,received:a.parsedType}),g}let r,s=new k;for(let a of this._def.checks)a.kind==="int"?b.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),l(r,{code:d.invalid_type,expected:"integer",received:"float",message:a.message}),s.dirty()):a.kind==="min"?(a.inclusive?e.data<a.value:e.data<=a.value)&&(r=this._getOrReturnCtx(e,r),l(r,{code:d.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),s.dirty()):a.kind==="max"?(a.inclusive?e.data>a.value:e.data>=a.value)&&(r=this._getOrReturnCtx(e,r),l(r,{code:d.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),s.dirty()):a.kind==="multipleOf"?Rr(e.data,a.value)!==0&&(r=this._getOrReturnCtx(e,r),l(r,{code:d.not_multiple_of,multipleOf:a.value,message:a.message}),s.dirty()):a.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),l(r,{code:d.not_finite,message:a.message}),s.dirty()):b.assertNever(a);return{status:s.value,value:e.data}}static create=e=>new n({checks:[],typeName:"ZodNumber",coerce:e?.coerce||!1,...Z(e)});gte(e,t){return this.setLimit("min",e,!0,m.toString(t))}min=this.gte;gt(e,t){return this.setLimit("min",e,!1,m.toString(t))}lte(e,t){return this.setLimit("max",e,!0,m.toString(t))}max=this.lte;lt(e,t){return this.setLimit("max",e,!1,m.toString(t))}setLimit(e,t,r,s){return new n({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:m.toString(s)}]})}_addCheck(e){return new n({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:m.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:m.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:m.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:m.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:m.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:m.toString(t)})}step=this.multipleOf;finite(e){return this._addCheck({kind:"finite",message:m.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:m.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:m.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&b.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(t===null||r.value>t)&&(t=r.value):r.kind==="max"&&(e===null||r.value<e)&&(e=r.value)}return Number.isFinite(t)&&Number.isFinite(e)}},de=class n extends h{_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==p.bigint){let a=this._getOrReturnCtx(e);return l(a,{code:d.invalid_type,expected:p.bigint,received:a.parsedType}),g}let r,s=new k;for(let a of this._def.checks)a.kind==="min"?(a.inclusive?e.data<a.value:e.data<=a.value)&&(r=this._getOrReturnCtx(e,r),l(r,{code:d.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),s.dirty()):a.kind==="max"?(a.inclusive?e.data>a.value:e.data>=a.value)&&(r=this._getOrReturnCtx(e,r),l(r,{code:d.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),s.dirty()):a.kind==="multipleOf"?e.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),l(r,{code:d.not_multiple_of,multipleOf:a.value,message:a.message}),s.dirty()):b.assertNever(a);return{status:s.value,value:e.data}}static create=e=>new n({checks:[],typeName:"ZodBigInt",coerce:e?.coerce??!1,...Z(e)});gte(e,t){return this.setLimit("min",e,!0,m.toString(t))}min=this.gte;gt(e,t){return this.setLimit("min",e,!1,m.toString(t))}lte(e,t){return this.setLimit("max",e,!0,m.toString(t))}max=this.lte;lt(e,t){return this.setLimit("max",e,!1,m.toString(t))}setLimit(e,t,r,s){return new n({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:m.toString(s)}]})}_addCheck(e){return new n({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:m.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:m.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:m.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:m.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:m.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}},ue=class n extends h{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==p.boolean){let r=this._getOrReturnCtx(e);return l(r,{code:d.invalid_type,expected:p.boolean,received:r.parsedType}),g}return A(e.data)}static create=e=>new n({typeName:"ZodBoolean",coerce:e?.coerce||!1,...Z(e)})},ce=class n extends h{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==p.date){let a=this._getOrReturnCtx(e);return l(a,{code:d.invalid_type,expected:p.date,received:a.parsedType}),g}if(isNaN(e.data.getTime())){let a=this._getOrReturnCtx(e);return l(a,{code:d.invalid_date}),g}let r=new k,s;for(let a of this._def.checks)a.kind==="min"?e.data.getTime()<a.value&&(s=this._getOrReturnCtx(e,s),l(s,{code:d.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),r.dirty()):a.kind==="max"?e.data.getTime()>a.value&&(s=this._getOrReturnCtx(e,s),l(s,{code:d.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):b.assertNever(a);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new n({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:m.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:m.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e!=null?new Date(e):null}static create=e=>new n({checks:[],coerce:e?.coerce||!1,typeName:"ZodDate",...Z(e)})},Re=class n extends h{_parse(e){if(this._getType(e)!==p.symbol){let r=this._getOrReturnCtx(e);return l(r,{code:d.invalid_type,expected:p.symbol,received:r.parsedType}),g}return A(e.data)}static create=e=>new n({typeName:"ZodSymbol",...Z(e)})},le=class n extends h{_parse(e){if(this._getType(e)!==p.undefined){let r=this._getOrReturnCtx(e);return l(r,{code:d.invalid_type,expected:p.undefined,received:r.parsedType}),g}return A(e.data)}params;static create=e=>new n({typeName:"ZodUndefined",...Z(e)})},pe=class n extends h{_parse(e){if(this._getType(e)!==p.null){let r=this._getOrReturnCtx(e);return l(r,{code:d.invalid_type,expected:p.null,received:r.parsedType}),g}return A(e.data)}static create=e=>new n({typeName:"ZodNull",...Z(e)})},$=class n extends h{_any=!0;_parse(e){return A(e.data)}static create=e=>new n({typeName:"ZodAny",...Z(e)})},M=class n extends h{_unknown=!0;_parse(e){return A(e.data)}static create=e=>new n({typeName:"ZodUnknown",...Z(e)})},_=class n extends h{_parse(e){let t=this._getOrReturnCtx(e);return l(t,{code:d.invalid_type,expected:p.never,received:t.parsedType}),g}static create=e=>new n({typeName:"ZodNever",...Z(e)})},we=class n extends h{_parse(e){if(this._getType(e)!==p.undefined){let r=this._getOrReturnCtx(e);return l(r,{code:d.invalid_type,expected:p.void,received:r.parsedType}),g}return A(e.data)}static create=e=>new n({typeName:"ZodVoid",...Z(e)})},F=class n extends h{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),s=this._def;if(t.parsedType!==p.array)return l(t,{code:d.invalid_type,expected:p.array,received:t.parsedType}),g;if(s.exactLength!==null){let i=t.data.length>s.exactLength.value,o=t.data.length<s.exactLength.value;(i||o)&&(l(t,{code:i?d.too_big:d.too_small,minimum:o?s.exactLength.value:void 0,maximum:i?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),r.dirty())}if(s.minLength!==null&&t.data.length<s.minLength.value&&(l(t,{code:d.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),r.dirty()),s.maxLength!==null&&t.data.length>s.maxLength.value&&(l(t,{code:d.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((i,o)=>s.type._parseAsync(new S(t,i,t.path,o)))).then(i=>k.mergeArray(r,i));let a=[...t.data].map((i,o)=>s.type._parseSync(new S(t,i,t.path,o)));return k.mergeArray(r,a)}get element(){return this._def.type}min(e,t){return new n({...this._def,minLength:{value:e,message:m.toString(t)}})}max(e,t){return new n({...this._def,maxLength:{value:e,message:m.toString(t)}})}length(e,t){return new n({...this._def,exactLength:{value:e,message:m.toString(t)}})}nonempty(e){return this.min(1,e)}static create=(e,t)=>new n({type:e,minLength:null,maxLength:null,exactLength:null,typeName:"ZodArray",...Z(t)})};function q(n){if(n instanceof L){let e={};for(let t in n.shape){let r=n.shape[t];e[t]=B.create(q(r))}return new L({...n._def,shape:()=>e})}else return n instanceof F?new F({...n._def,type:q(n.element)}):n instanceof B?B.create(q(n.unwrap())):n instanceof D?D.create(q(n.unwrap())):n instanceof X?X.create(n.items.map(e=>q(e))):n}var L=class n extends h{_cached=null;_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=b.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==p.object){let c=this._getOrReturnCtx(e);return l(c,{code:d.invalid_type,expected:p.object,received:c.parsedType}),g}let{status:r,ctx:s}=this._processInputParams(e),{shape:a,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof _&&this._def.unknownKeys==="strip"))for(let c in s.data)i.includes(c)||o.push(c);let y=[];for(let c of i){let f=a[c],T=s.data[c];y.push({key:{status:"valid",value:c},value:f._parse(new S(s,T,s.path,c)),alwaysSet:c in s.data})}if(this._def.catchall instanceof _){let c=this._def.unknownKeys;if(c==="passthrough")for(let f of o)y.push({key:{status:"valid",value:f},value:{status:"valid",value:s.data[f]}});else if(c==="strict")o.length>0&&(l(s,{code:d.unrecognized_keys,keys:o}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let c=this._def.catchall;for(let f of o){let T=s.data[f];y.push({key:{status:"valid",value:f},value:c._parse(new S(s,T,s.path,f)),alwaysSet:f in s.data})}}return s.common.async?Promise.resolve().then(async()=>{let c=[];for(let f of y){let T=await f.key,x=await f.value;c.push({key:T,value:x,alwaysSet:f.alwaysSet})}return c}).then(c=>k.mergeObjectSync(r,c)):k.mergeObjectSync(r,y)}get shape(){return this._def.shape()}strict(e){return m.errToObj,new n({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,r)=>{let s=this._def.errorMap?.(t,r).message??r.defaultError;return t.code==="unrecognized_keys"?{message:m.errToObj(e).message??s}:{message:s}}}:{}})}strip(){return new n({...this._def,unknownKeys:"strip"})}passthrough(){return new n({...this._def,unknownKeys:"passthrough"})}nonstrict=this.passthrough;extend(e){return new n({...this._def,shape:()=>({...this._def.shape(),...e})})}augment=this.extend;merge(e){return new n({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:"ZodObject"})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new n({...this._def,catchall:e})}pick(e){let t={};return b.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(t[r]=this.shape[r])}),new n({...this._def,shape:()=>t})}omit(e){let t={};return b.objectKeys(this.shape).forEach(r=>{e[r]||(t[r]=this.shape[r])}),new n({...this._def,shape:()=>t})}deepPartial(){return q(this)}partial(e){let t={};return b.objectKeys(this.shape).forEach(r=>{let s=this.shape[r];e&&!e[r]?t[r]=s:t[r]=s.optional()}),new n({...this._def,shape:()=>t})}required(e){let t={};return b.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])t[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof B;)a=a._def.innerType;t[r]=a}}),new n({...this._def,shape:()=>t})}keyof(){return it(b.objectKeys(this.shape))}static create=(e,t)=>new n({shape:()=>e,unknownKeys:"strip",catchall:_.create(),typeName:"ZodObject",...Z(t)});static strictCreate=(e,t)=>new n({shape:()=>e,unknownKeys:"strict",catchall:_.create(),typeName:"ZodObject",...Z(t)});static lazycreate=(e,t)=>new n({shape:e,unknownKeys:"strip",catchall:_.create(),typeName:"ZodObject",...Z(t)})},ye=class n extends h{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;function s(a){for(let o of a)if(o.result.status==="valid")return o.result;for(let o of a)if(o.result.status==="dirty")return t.common.issues.push(...o.ctx.common.issues),o.result;let i=a.map(o=>new R(o.ctx.common.issues));return l(t,{code:d.invalid_union,unionErrors:i}),g}if(t.common.async)return Promise.all(r.map(async a=>{let i={...t,common:{...t.common,issues:[]},parent:null};return{result:await a._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}})).then(s);{let a,i=[];for(let y of r){let c={...t,common:{...t.common,issues:[]},parent:null},f=y._parseSync({data:t.data,path:t.path,parent:c});if(f.status==="valid")return f;f.status==="dirty"&&!a&&(a={result:f,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(a)return t.common.issues.push(...a.ctx.common.issues),a.result;let o=i.map(y=>new R(y));return l(t,{code:d.invalid_union,unionErrors:o}),g}}get options(){return this._def.options}static create=(e,t)=>new n({options:e,typeName:"ZodUnion",...Z(t)})},N=n=>n instanceof ge?N(n.schema):n instanceof Y?N(n.innerType()):n instanceof fe?[n.value]:n instanceof ee?n.options:n instanceof Ze?b.objectValues(n.enum):n instanceof he?N(n._def.innerType):n instanceof le?[void 0]:n instanceof pe?[null]:n instanceof B?[void 0,...N(n.unwrap())]:n instanceof D?[null,...N(n.unwrap())]:n instanceof be||n instanceof Te?N(n.unwrap()):n instanceof Ie?N(n._def.innerType):[],Se=class n extends h{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==p.object)return l(t,{code:d.invalid_type,expected:p.object,received:t.parsedType}),g;let r=this.discriminator,s=t.data[r],a=this.optionsMap.get(s);return a?t.common.async?a._parseAsync({data:t.data,path:t.path,parent:t}):a._parseSync({data:t.data,path:t.path,parent:t}):(l(t,{code:d.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),g)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let s=new Map;for(let a of t){let i=N(a.shape[e]);if(!i.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let o of i){if(s.has(o))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);s.set(o,a)}}return new n({typeName:"ZodDiscriminatedUnion",discriminator:e,options:t,optionsMap:s,...Z(r)})}};function Oe(n,e){let t=W(n),r=W(e);if(n===e)return{valid:!0,data:n};if(t===p.object&&r===p.object){let s=b.objectKeys(e),a=b.objectKeys(n).filter(o=>s.indexOf(o)!==-1),i={...n,...e};for(let o of a){let y=Oe(n[o],e[o]);if(!y.valid)return{valid:!1};i[o]=y.data}return{valid:!0,data:i}}else if(t===p.array&&r===p.array){if(n.length!==e.length)return{valid:!1};let s=[];for(let a=0;a<n.length;a++){let i=n[a],o=e[a],y=Oe(i,o);if(!y.valid)return{valid:!1};s.push(y.data)}return{valid:!0,data:s}}else return t===p.date&&r===p.date&&+n==+e?{valid:!0,data:n}:{valid:!1}}var me=class n extends h{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),s=(a,i)=>{if(Ae(a)||Ae(i))return g;let o=Oe(a.value,i.value);return o.valid?((Pe(a)||Pe(i))&&t.dirty(),{status:t.value,value:o.data}):(l(r,{code:d.invalid_intersection_types}),g)};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(([a,i])=>s(a,i)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}static create=(e,t,r)=>new n({left:e,right:t,typeName:"ZodIntersection",...Z(r)})},X=class n extends h{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==p.array)return l(r,{code:d.invalid_type,expected:p.array,received:r.parsedType}),g;if(r.data.length<this._def.items.length)return l(r,{code:d.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),g;!this._def.rest&&r.data.length>this._def.items.length&&(l(r,{code:d.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let a=[...r.data].map((i,o)=>{let y=this._def.items[o]||this._def.rest;return y?y._parse(new S(r,i,r.path,o)):null}).filter(i=>!!i);return r.common.async?Promise.all(a).then(i=>k.mergeArray(t,i)):k.mergeArray(t,a)}get items(){return this._def.items}rest(e){return new n({...this._def,rest:e})}static create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new n({items:e,typeName:"ZodTuple",rest:null,...Z(t)})}},Ke=class n extends h{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==p.object)return l(r,{code:d.invalid_type,expected:p.object,received:r.parsedType}),g;let s=[],a=this._def.keyType,i=this._def.valueType;for(let o in r.data)s.push({key:a._parse(new S(r,o,r.path,o)),value:i._parse(new S(r,r.data[o],r.path,o)),alwaysSet:o in r.data});return r.common.async?k.mergeObjectAsync(t,s):k.mergeObjectSync(t,s)}get element(){return this._def.valueType}static create(e,t,r){return t instanceof h?new n({keyType:e,valueType:t,typeName:"ZodRecord",...Z(r)}):new n({keyType:Q.create(),valueType:e,typeName:"ZodRecord",...Z(t)})}},Ge=class n extends h{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==p.map)return l(r,{code:d.invalid_type,expected:p.map,received:r.parsedType}),g;let s=this._def.keyType,a=this._def.valueType,i=[...r.data.entries()].map(([o,y],c)=>({key:s._parse(new S(r,o,r.path,[c,"key"])),value:a._parse(new S(r,y,r.path,[c,"value"]))}));if(r.common.async){let o=new Map;return Promise.resolve().then(async()=>{for(let y of i){let c=await y.key,f=await y.value;if(c.status==="aborted"||f.status==="aborted")return g;(c.status==="dirty"||f.status==="dirty")&&t.dirty(),o.set(c.value,f.value)}return{status:t.value,value:o}})}else{let o=new Map;for(let y of i){let c=y.key,f=y.value;if(c.status==="aborted"||f.status==="aborted")return g;(c.status==="dirty"||f.status==="dirty")&&t.dirty(),o.set(c.value,f.value)}return{status:t.value,value:o}}}static create=(e,t,r)=>new n({valueType:t,keyType:e,typeName:"ZodMap",...Z(r)})},Be=class n extends h{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==p.set)return l(r,{code:d.invalid_type,expected:p.set,received:r.parsedType}),g;let s=this._def;s.minSize!==null&&r.data.size<s.minSize.value&&(l(r,{code:d.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),t.dirty()),s.maxSize!==null&&r.data.size>s.maxSize.value&&(l(r,{code:d.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),t.dirty());let a=this._def.valueType;function i(y){let c=new Set;for(let f of y){if(f.status==="aborted")return g;f.status==="dirty"&&t.dirty(),c.add(f.value)}return{status:t.value,value:c}}let o=[...r.data.values()].map((y,c)=>a._parse(new S(r,y,r.path,c)));return r.common.async?Promise.all(o).then(y=>i(y)):i(o)}min(e,t){return new n({...this._def,minSize:{value:e,message:m.toString(t)}})}max(e,t){return new n({...this._def,maxSize:{value:e,message:m.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}static create=(e,t)=>new n({valueType:e,minSize:null,maxSize:null,typeName:"ZodSet",...Z(t)})},We=class n extends h{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==p.function)return l(t,{code:d.invalid_type,expected:p.function,received:t.parsedType}),g;function r(o,y){return oe({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,j(),V].filter(c=>!!c),issueData:{code:d.invalid_arguments,argumentsError:y}})}function s(o,y){return oe({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,j(),V].filter(c=>!!c),issueData:{code:d.invalid_return_type,returnTypeError:y}})}let a={errorMap:t.common.contextualErrorMap},i=t.data;if(this._def.returns instanceof te){let o=this;return A(async function(...y){let c=new R([]),f=await o._def.args.parseAsync(y,a).catch(v=>{throw c.addIssue(r(y,v)),c}),T=await Reflect.apply(i,this,f);return await o._def.returns._def.type.parseAsync(T,a).catch(v=>{throw c.addIssue(s(T,v)),c})})}else{let o=this;return A(function(...y){let c=o._def.args.safeParse(y,a);if(!c.success)throw new R([r(y,c.error)]);let f=Reflect.apply(i,this,c.data),T=o._def.returns.safeParse(f,a);if(!T.success)throw new R([s(f,T.error)]);return T.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new n({...this._def,args:X.create(e).rest(M.create())})}returns(e){return new n({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}validate=this.implement;static create(e,t,r){return new n({args:e||X.create([]).rest(M.create()),returns:t||M.create(),typeName:"ZodFunction",...Z(r)})}},ge=class n extends h{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}static create=(e,t)=>new n({getter:e,typeName:"ZodLazy",...Z(t)})},fe=class n extends h{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return l(t,{received:t.data,code:d.invalid_literal,expected:this._def.value}),g}return{status:"valid",value:e.data}}get value(){return this._def.value}static create=(e,t)=>new n({value:e,typeName:"ZodLiteral",...Z(t)})};function it(n,e){return new ee({values:n,typeName:"ZodEnum",...Z(e)})}var ee=class n extends h{#e;_parse(e){if(typeof e.data!="string"){let t=this._getOrReturnCtx(e),r=this._def.values;return l(t,{expected:b.joinValues(r),received:t.parsedType,code:d.invalid_type}),g}if(this.#e||(this.#e=new Set(this._def.values)),!this.#e.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return l(t,{received:t.data,code:d.invalid_enum_value,options:r}),g}return A(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return n.create(e,{...this._def,...t})}exclude(e,t=this._def){return n.create(this.options.filter(r=>!e.includes(r)),{...this._def,...t})}static create=it},Ze=class n extends h{#e;_parse(e){let t=b.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==p.string&&r.parsedType!==p.number){let s=b.objectValues(t);return l(r,{expected:b.joinValues(s),received:r.parsedType,code:d.invalid_type}),g}if(this.#e||(this.#e=new Set(b.getValidEnumValues(this._def.values))),!this.#e.has(e.data)){let s=b.objectValues(t);return l(r,{received:r.data,code:d.invalid_enum_value,options:s}),g}return A(e.data)}get enum(){return this._def.values}static create=(e,t)=>new n({values:e,typeName:"ZodNativeEnum",...Z(t)})},te=class n extends h{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==p.promise&&t.common.async===!1)return l(t,{code:d.invalid_type,expected:p.promise,received:t.parsedType}),g;let r=t.parsedType===p.promise?t.data:Promise.resolve(t.data);return A(r.then(s=>this._def.type.parseAsync(s,{path:t.path,errorMap:t.common.contextualErrorMap})))}static create=(e,t)=>new n({type:e,typeName:"ZodPromise",...Z(t)})},Y=class n extends h{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName==="ZodEffects"?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),s=this._def.effect||null,a={addIssue:i=>{l(r,i),i.fatal?t.abort():t.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),s.type==="preprocess"){let i=s.transform(r.data,a);if(r.common.async)return Promise.resolve(i).then(async o=>{if(t.value==="aborted")return g;let y=await this._def.schema._parseAsync({data:o,path:r.path,parent:r});return y.status==="aborted"?g:y.status==="dirty"?O(y.value):t.value==="dirty"?O(y.value):y});{if(t.value==="aborted")return g;let o=this._def.schema._parseSync({data:i,path:r.path,parent:r});return o.status==="aborted"?g:o.status==="dirty"?O(o.value):t.value==="dirty"?O(o.value):o}}if(s.type==="refinement"){let i=o=>{let y=s.refinement(o,a);if(r.common.async)return Promise.resolve(y);if(y 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"?g:(o.status==="dirty"&&t.dirty(),i(o.value),{status:t.value,value:o.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>o.status==="aborted"?g:(o.status==="dirty"&&t.dirty(),i(o.value).then(()=>({status:t.value,value:o.value}))))}if(s.type==="transform")if(r.common.async===!1){let i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!J(i))return i;let o=s.transform(i.value,a);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>J(i)?Promise.resolve(s.transform(i.value,a)).then(o=>({status:t.value,value:o})):i);b.assertNever(s)}static create=(e,t,r)=>new n({schema:e,typeName:"ZodEffects",effect:t,...Z(r)});static createWithPreprocess=(e,t,r)=>new n({schema:t,effect:{type:"preprocess",transform:e},typeName:"ZodEffects",...Z(r)})};var B=class n extends h{_parse(e){return this._getType(e)===p.undefined?A(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}static create=(e,t)=>new n({innerType:e,typeName:"ZodOptional",...Z(t)})},D=class n extends h{_parse(e){return this._getType(e)===p.null?A(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}static create=(e,t)=>new n({innerType:e,typeName:"ZodNullable",...Z(t)})},he=class n extends h{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===p.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}static create=(e,t)=>new n({innerType:e,typeName:"ZodDefault",defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Z(t)})},Ie=class n extends h{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return z(s)?s.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new R(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new R(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}static create=(e,t)=>new n({innerType:e,typeName:"ZodCatch",catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Z(t)})},Ve=class n extends h{_parse(e){if(this._getType(e)!==p.nan){let r=this._getOrReturnCtx(e);return l(r,{code:d.invalid_type,expected:p.nan,received:r.parsedType}),g}return{status:"valid",value:e.data}}static create=e=>new n({typeName:"ZodNaN",...Z(e)})},wr=Symbol("zod_brand"),be=class extends h{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}},xe=class n extends h{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let a=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?g:a.status==="dirty"?(t.dirty(),O(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{let s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?g:s.status==="dirty"?(t.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(e,t){return new n({in:e,out:t,typeName:"ZodPipeline"})}},Te=class n extends h{_parse(e){let t=this._def.innerType._parse(e),r=s=>(J(s)&&(s.value=Object.freeze(s.value)),s);return z(t)?t.then(s=>r(s)):r(t)}static create=(e,t)=>new n({innerType:e,typeName:"ZodReadonly",...Z(t)});unwrap(){return this._def.innerType}};function dt(n,e={},t){return n?$.create().superRefine((r,s)=>{if(!n(r)){let a=typeof e=="function"?e(r):typeof e=="string"?{message:e}:e,i=a.fatal??t??!0,o=typeof a=="string"?{message:a}:a;s.addIssue({code:"custom",...o,fatal:i})}}):$.create()}var Sr={object:L.lazycreate},ut=(I=>(I.ZodString="ZodString",I.ZodNumber="ZodNumber",I.ZodNaN="ZodNaN",I.ZodBigInt="ZodBigInt",I.ZodBoolean="ZodBoolean",I.ZodDate="ZodDate",I.ZodSymbol="ZodSymbol",I.ZodUndefined="ZodUndefined",I.ZodNull="ZodNull",I.ZodAny="ZodAny",I.ZodUnknown="ZodUnknown",I.ZodNever="ZodNever",I.ZodVoid="ZodVoid",I.ZodArray="ZodArray",I.ZodObject="ZodObject",I.ZodUnion="ZodUnion",I.ZodDiscriminatedUnion="ZodDiscriminatedUnion",I.ZodIntersection="ZodIntersection",I.ZodTuple="ZodTuple",I.ZodRecord="ZodRecord",I.ZodMap="ZodMap",I.ZodSet="ZodSet",I.ZodFunction="ZodFunction",I.ZodLazy="ZodLazy",I.ZodLiteral="ZodLiteral",I.ZodEnum="ZodEnum",I.ZodEffects="ZodEffects",I.ZodNativeEnum="ZodNativeEnum",I.ZodOptional="ZodOptional",I.ZodNullable="ZodNullable",I.ZodDefault="ZodDefault",I.ZodCatch="ZodCatch",I.ZodPromise="ZodPromise",I.ZodBranded="ZodBranded",I.ZodPipeline="ZodPipeline",I.ZodReadonly="ZodReadonly",I))(ut||{});var Kr=(n,e={message:`Input not instance of ${n.name}`})=>dt(t=>t instanceof n,e),ct=Q.create,lt=ie.create,Gr=Ve.create,Br=de.create,pt=ue.create,Wr=ce.create,Vr=Re.create,Nr=le.create,_r=pe.create,Ur=$.create,Er=M.create,Lr=_.create,Xr=we.create,Yr=F.create,Dr=L.create,Hr=L.strictCreate,Or=ye.create,Mr=Se.create,Fr=me.create,jr=X.create,Jr=Ke.create,zr=Ge.create,qr=Be.create,Qr=We.create,$r=ge.create,es=fe.create,ts=ee.create,ns=Ze.create,rs=te.create,ss=Y.create,as=B.create,os=D.create,is=Y.createWithPreprocess,ds=xe.create,us=()=>ct().optional(),cs=()=>lt().optional(),ls=()=>pt().optional(),ps={string:n=>Q.create({...n,coerce:!0}),number:n=>ie.create({...n,coerce:!0}),boolean:n=>ue.create({...n,coerce:!0}),bigint:n=>de.create({...n,coerce:!0}),date:n=>ce.create({...n,coerce:!0})};var ys=g;var K="treeview",H="TreeView Plug",mt="enableTreeView",ms=["rhs","lhs","bhs","modal"],gs=C.object({type:C.literal("regex"),rule:C.string(),negate:C.boolean().optional().default(!1)}),fs=C.object({type:C.literal("tags"),tags:C.array(C.string()),negate:C.boolean().optional().default(!1),attribute:C.enum(["tags","itags","tag"]).optional().default("tags")}),Zs=C.object({type:C.literal("space-function"),name:C.string(),negate:C.boolean().optional().default(!1)}),yt=C.object({position:C.enum(ms).optional().default("lhs"),size:C.number().gt(0).optional().default(1),dragAndDrop:C.object({enabled:C.boolean().optional().default(!0),confirmOnRename:C.boolean().optional().default(!0)}).optional().default({}),pageExcludeRegex:C.string().optional().default(""),exclusions:C.array(C.discriminatedUnion("type",[gs,fs,Zs])).optional()});async function hs(n){if(Ne)return;Ne=!0;let e=`${typeof n}: ${String(n)}`;if(n instanceof R){let{formErrors:t,fieldErrors:r}=n.flatten(),s=Object.keys(r).map(a=>`\`${a}\` - ${r[a].join(", ")}`);e=[...t,...s].join("; ")}await G.flashNotification(`There was an error with your ${K} configuration. Check your SETTINGS file: ${e}`,"error")}var Ne=!1;async function gt(){let n=await et(K);try{return yt.parse(n||{})}catch(e){return Ne||(hs(e),Ne=!0),yt.parse({})}}async function Me(){return!!await se.get(mt)}async function Fe(n){return await se.set(mt,n)}async function ft(){return await G.getUiOption("customStyles")}var Zt=async(n,{name:e,negate:t})=>{try{let r=await Promise.all(n.map(s=>E.invokeSpaceFunction(e,s)));return n.filter((s,a)=>t?r[a]:!r[a])}catch(r){return console.error(`${H}: filtering pages by function "${e}" failed`,r),n}};var je=(n,{rule:e,negate:t})=>{try{let r=new RegExp(e);return n.filter(({name:s})=>r.test(s)===t)}catch(r){return console.error(`${H}: filtering pages by regex "${e}" failed`,r),n}};var ht=(n,{attribute:e,negate:t,tags:r})=>n.filter(s=>{let a=s[e],i=a!==void 0&&(Array.isArray(a)?a.some(o=>r.includes(o)):r.includes(a));return t?i:!i});async function It(n){let e=await G.getCurrentPage(),t=await E.invokeFunction("index.queryObjects","page"),r={nodes:[]};if(n.pageExcludeRegex){let s=`${H}:
\`pageExcludeRegex\` setting is deprecated. Please use \`exclusions\`:
\`\`\`yaml
treeview:
exclusions:
- type: regex
rule: "${n.pageExcludeRegex}"
\`\`\`
`;console.warn(s),t=je(t,{rule:n.pageExcludeRegex,negate:!1})}if(n.exclusions)for(let s of n.exclusions)switch(s.type){case"regex":{t=je(t,s);break}case"tags":{t=ht(t,s);break}case"space-function":{t=await Zt(t,s);break}}return t.sort((s,a)=>s.name.localeCompare(a.name)),t.forEach(s=>{s.name.split("/").reduce((a,i,o,y)=>{let c=y.length-1===o,f=a.nodes.find(T=>T.data.title===i);if(f)return c&&!("created"in f.data)&&(f.data={...s,title:i,isCurrentPage:e===s.name,nodeType:"page"}),f;if(c)f={data:{...s,title:i,isCurrentPage:e===s.name,nodeType:"page"},nodes:[]};else{let T=y.slice(0,o+1).join("/");f={data:{title:i,isCurrentPage:e===T,name:T,nodeType:"folder"},nodes:[]}}return a.nodes.push(f),f},r)}),{nodes:r.nodes,currentPage:e}}async function bt(){try{return await syscall("system.getVersion"),!0}catch{return!1}}var ne;async function xt(){await Me()?await _e():await Ue()}async function _e(){ne&&(await G.hidePanel(ne),ne=void 0,await Fe(!1))}async function Tt(){try{if(await E.getEnv()==="server")return;if(await Me())return await Ue()}catch(n){console.error(`${H}: showTreeIfEnabled failed`,n)}}async function Ue(){let n=await gt();ne&&n.position!==ne&&await _e();let[e,t,r,s,a,i,o,y,c]=await Promise.all([w.readAsset(K,"assets/sortable-tree/sortable-tree.css"),w.readAsset(K,"assets/sortable-tree/sortable-tree.js"),w.readAsset(K,"assets/treeview.css"),w.readAsset(K,"assets/treeview.js"),w.readAsset(K,"assets/icons/folder-minus.svg"),w.readAsset(K,"assets/icons/folder-plus.svg"),w.readAsset(K,"assets/icons/navigation-2.svg"),w.readAsset(K,"assets/icons/refresh-cw.svg"),w.readAsset(K,"assets/icons/x-circle.svg")]),{currentPage:f,nodes:T}=await It(n),x=await ft(),v={nodes:T,currentPage:f,treeElementId:"treeview-tree",dragAndDrop:{...n.dragAndDrop,enabled:n.dragAndDrop.enabled&&await bt()}};await G.showPanel(n.position,n.size,`
<link rel="stylesheet" href="/.client/main.css" />
<style>
${e}
${r}
${x??""}
</style>
<div class="treeview-root">
<div class="treeview-header">
<div class="treeview-actions">
<div class="treeview-actions-left">
<button type="button" data-treeview-action="expand-all" title="Expand all">${i}</button>
<button type="button" data-treeview-action="collapse-all" title="Collapse all">${a}</button>
<button type="button" data-treeview-action="reveal-current-page" title="Reveal current page">${o}</button>
<button type="button" data-treeview-action="refresh" title="Refresh treeview">${y}</button>
</div>
<div class="treeview-actions-right">
<button type="button" data-treeview-action="close-panel" title="Close tree">${c}</button>
</div>
</div>
</div>
<div id="${v.treeElementId}"></div>
</div>`,`
${t}
${s}
initializeTreeViewPanel(${JSON.stringify(v)});
`),await Fe(!0),ne=n.position}var Ct={hide:_e,show:Ue,showIfEnabled:Tt,toggle:xt},vt={name:"treeview",version:.14,assets:{"assets/treeview.js":{data:"data:application/javascript;base64,LyoqCiAqIE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AgcmV0dXJuIHRydWU7CiAgICAgIH0KICAgICAgY2FzZSAicmVmcmVzaCI6IHsKICAgICAgICBzeXNjYWxsKCJzeXN0ZW0uaW52b2tlRnVuY3Rpb24iLCAidHJlZXZpZXcuc2hvdyIpOwogICAgICAgIHJldHVybiB0cnVlOwogICAgICB9CiAgICAgIGNhc2UgInJldmVhbC1jdXJyZW50LXBhZ2UiOiB7CiAgICAgICAgY29uc3QgY3VycmVudE5vZGUgPSB0cmVlLmZpbmROb2RlKCJpc0N1cnJlbnRQYWdlIiwgdHJ1ZSk7CiAgICAgICAgaWYgKGN1cnJlbnROb2RlKSB7CiAgICAgICAgICBjdXJyZW50Tm9kZS5yZXZlYWwoKTsKICAgICAgICAgIGN1cnJlbnROb2RlLnNjcm9sbEludG9WaWV3KHsKICAgICAgICAgICAgYmVoYXZpb3I6ICJhdXRvIiwKICAgICAgICAgICAgYmxvY2s6ICJuZWFyZXN0IiwKICAgICAgICAgICAgaW5saW5lOiAibmVhcmVzdCIsCiAgICAgICAgICB9KTsKICAgICAgICAgIHJldHVybiB0cnVlOwogICAgICAgIH0KICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgIH0KICAgIH0KCiAgICByZXR1cm4gZmFsc2U7CiAgfQoKICBoYW5kbGVBY3Rpb24oInJldmVhbC1jdXJyZW50LXBhZ2UiKTsKCiAgZG9jdW1lbnQucXVlcnlTZWxlY3RvckFsbCgiW2RhdGEtdHJlZXZpZXctYWN0aW9uXSIpLmZvckVhY2goKGVsKSA9PiB7CiAgICBlbC5hZGRFdmVudExpc3RlbmVyKCJjbGljayIsIChlKSA9PiB7CiAgICAgIGlmIChoYW5kbGVBY3Rpb24oZWwuZGF0YXNldFsidHJlZXZpZXdBY3Rpb24iXSkpIHsKICAgICAgICBlLnN0b3BQcm9wYWdhdGlvbigpOwogICAgICAgIGUucHJldmVudERlZmF1bHQoKTsKICAgICAgfQogICAgfSk7CiAgfSkKfQo=",mtime:1722260426922},"assets/icons/x-circle.svg":{data:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXIteC1jaXJjbGUiPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjEwIj48L2NpcmNsZT48bGluZSB4MT0iMTUiIHkxPSI5IiB4Mj0iOSIgeTI9IjE1Ij48L2xpbmU+PGxpbmUgeDE9IjkiIHkxPSI5IiB4Mj0iMTUiIHkyPSIxNSI+PC9saW5lPjwvc3ZnPg==",mtime:1722260426922},"assets/icons/refresh-cw.svg":{data:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXItcmVmcmVzaC1jdyI+PHBvbHlsaW5lIHBvaW50cz0iMjMgNCAyMyAxMCAxNyAxMCI+PC9wb2x5bGluZT48cG9seWxpbmUgcG9pbnRzPSIxIDIwIDEgMTQgNyAxNCI+PC9wb2x5bGluZT48cGF0aCBkPSJNMy41MSA5YTkgOSAwIDAgMSAxNC44NS0zLjM2TDIzIDEwTTEgMTRsNC42NCA0LjM2QTkgOSAwIDAgMCAyMC40OSAxNSI+PC9wYXRoPjwvc3ZnPg==",mtime:1722260426923},"assets/icons/folder-plus.svg":{data:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXItZm9sZGVyLXBsdXMiPjxwYXRoIGQ9Ik0yMiAxOWEyIDIgMCAwIDEtMiAySDRhMiAyIDAgMCAxLTItMlY1YTIgMiAwIDAgMSAyLTJoNWwyIDNoOWEyIDIgMCAwIDEgMiAyeiI+PC9wYXRoPjxsaW5lIHgxPSIxMiIgeTE9IjExIiB4Mj0iMTIiIHkyPSIxNyI+PC9saW5lPjxsaW5lIHgxPSI5IiB5MT0iMTQiIHgyPSIxNSIgeTI9IjE0Ij48L2xpbmU+PC9zdmc+",mtime:1722260426923},"assets/icons/folder-minus.svg":{data:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXItZm9sZGVyLW1pbnVzIj48cGF0aCBkPSJNMjIgMTlhMiAyIDAgMCAxLTIgMkg0YTIgMiAwIDAgMS0yLTJWNWEyIDIgMCAwIDEgMi0yaDVsMiAzaDlhMiAyIDAgMCAxIDIgMnoiPjwvcGF0aD48bGluZSB4MT0iOSIgeTE9IjE0IiB4Mj0iMTUiIHkyPSIxNCI+PC9saW5lPjwvc3ZnPg==",mtime:1722260426923},"assets/icons/navigation-2.svg":{data:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIgogICAgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIgogICAgY2xhc3M9ImZlYXRoZXIgZmVhdGhlci1uYXZpZ2F0aW9uLTIiPgogICAgPHBvbHlnb24gcG9pbnRzPSIxMiAyIDE5IDIxIDEyIDE3IDUgMjEgMTIgMiI+PC9wb2x5Z29uPgo8L3N2Zz4=",mtime:1722260426923},"assets/sortable-tree/sortable-tree.css":{data:"data:text/css;base64,LyohIFNvcnRhYmxlIFRyZWUgMC43LjIsIChjKSAyMDIzIE1hcmMgQW50b24gRGFobWVuLCBNSVQgbGljZW5zZSAqLwo6cm9vdCB7CiAgICAtLXN0LWxhYmVsLWhlaWdodDogMi41cmVtOwogICAgLS1zdC1zdWJub2Rlcy1wYWRkaW5nLWxlZnQ6IDEuNXJlbTsKICAgIC0tc3QtY29sbGFwc2UtaWNvbi1oZWlnaHQ6IHZhcigtLXN0LWxhYmVsLWhlaWdodCk7CiAgICAtLXN0LWNvbGxhcHNlLWljb24td2lkdGg6IDEuMjVyZW07CiAgICAtLXN0LWNvbGxhcHNlLWljb24tc2l6ZTogMC43NXJlbTsKICB9CiAgc29ydGFibGUtdHJlZS1ub2RlIHsKICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgIHotaW5kZXg6IDE7CiAgICBkaXNwbGF5OiBmbGV4OwogICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICB9CiAgc29ydGFibGUtdHJlZS1ub2RlICogewogICAgdXNlci1zZWxlY3Q6IG5vbmU7CiAgfQogIHNvcnRhYmxlLXRyZWUtbm9kZSA+IDpmaXJzdC1jaGlsZCB7CiAgICBkaXNwbGF5OiBmbGV4OwogICAgYWxpZ24taXRlbXM6IGNlbnRlcjsKICAgIGhlaWdodDogdmFyKC0tc3QtbGFiZWwtaGVpZ2h0KTsKICB9CiAgc29ydGFibGUtdHJlZS1ub2RlID4gOm50aC1jaGlsZCgyKSB7CiAgICBkaXNwbGF5OiBub25lOwogICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICAgIHBhZGRpbmctbGVmdDogdmFyKC0tc3Qtc3Vibm9kZXMtcGFkZGluZy1sZWZ0KTsKICB9CiAgc29ydGFibGUtdHJlZS1ub2RlW29wZW5dID4gZGl2Om50aC1jaGlsZCgyKSB7CiAgICBkaXNwbGF5OiBmbGV4OwogIH0KICBzb3J0YWJsZS10cmVlLW5vZGUgPiA6bnRoLWNoaWxkKDMpIHsKICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgIGRpc3BsYXk6IGZsZXg7CiAgICBhbGlnbi1pdGVtczogY2VudGVyOwogICAgdG9wOiAwOwogICAgbGVmdDogY2FsYyh2YXIoLS1zdC1jb2xsYXBzZS1pY29uLXdpZHRoKSAqIC0xKTsKICAgIGhlaWdodDogdmFyKC0tc3QtY29sbGFwc2UtaWNvbi1oZWlnaHQpOwogICAgZm9udC1zaXplOiB2YXIoLS1zdC1jb2xsYXBzZS1pY29uLXNpemUpOwogICAgY3Vyc29yOiBwb2ludGVyOwogIH0KICBzb3J0YWJsZS10cmVlLW5vZGUgPiA6bnRoLWNoaWxkKDIpOmVtcHR5ICsgc3BhbiB7CiAgICBkaXNwbGF5OiBub25lOwogIH0KICAKICA=",mtime:1722260426923},"assets/sortable-tree/sortable-tree.js":{data:"data:application/javascript;base64,LyohIFNvcnRhYmxlIFRyZWUgMC43LjIsIChjKSAyMDI0IE1hcmMgQW50b24gRGFobWVuLCBNSVQgbGljZW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lzYWJsZVNvcnRpbmcgfHwgKChlLCB0KSA9PiB7IGNvbnN0IG4gPSB7IGRyYWdzdGFydDogRSwgZHJvcDogXywgZHJhZ292ZXI6IHksIGRyYWdlbmQ6IFQsIGRyYWdsZWF2ZTogQSB9OyBmb3IgKGNvbnN0IFtvLCByXSBvZiBPYmplY3QuZW50cmllcyhuKSkgcCh7IG5vZGU6IGUsIGV2ZW50TmFtZTogbywgaGFuZGxlcjogciwgdHJlZTogdCB9KSB9KShvLCB0aGlzKSwgby5jb2xsYXBzZShuID4gdGhpcy5pbml0Q29sbGFwc2VMZXZlbCksIHRoaXMubm9kZUNvbGxlY3Rpb25bby5pZF0gPSBvLCBlLm5vZGVzICYmIHRoaXMucmVuZGVyKHsgbm9kZXM6IGUubm9kZXMsIGVsZW1lbnQ6IG8uc3Vibm9kZXMgfSwgbikgfSkpIH0gcGFyc2VUcmVlKGUpIHsgY29uc3QgdCA9IEFycmF5LmZyb20oZS5xdWVyeVNlbGVjdG9yQWxsKGA6c2NvcGUgPiAke3UuVEFHX05BTUV9YCkpLCBuID0gW107IHJldHVybiB0LmZvckVhY2goKGUgPT4geyBuLnB1c2goeyBlbGVtZW50OiBlLCBpZDogZS5pZCwgc3Vibm9kZXM6IHRoaXMucGFyc2VUcmVlKGUuc3Vibm9kZXMpIH0pIH0pKSwgbiB9IH07IHJldHVybiB0ID0gdC5kZWZhdWx0IH0pKCkpKTs=",mtime:1722260426923},"assets/treeview.css":{data:"data:text/css;base64,LyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgogKiBQYWdlIHZhcmlhYmxlcwogKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovCgogaHRtbCB7CiAgLS10cmVldmlldy1ub2RlLWJvcmRlci13aWR0aDogMnB4OwogIC0tdHJlZXZpZXctbm9kZS1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XdpZHRoOiAxLjI1cmVtOwogIC0tc3QtY29sbGFwc2UtaWNvbi1zaXplOiAxcmVtOwp9CgovKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqCiAqIFBhZ2Ugc3R5bGVzCiAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi8KCmh0bWwsIGJvZHkgewogIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXJvb3QtYmFja2dyb3VuZC1jb2xvcik7CiAgcGFkZGluZzogMDsKICBtYXJnaW46IDA7CiAgb3ZlcmZsb3c6IGluaXRpYWwgIWltcG9ydGFudDsKfQoKLnRyZWV2aWV3LXJvb3QgewogIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXJvb3QtYmFja2dyb3VuZC1jb2xvcik7CiAgY29sb3I6IHZhcigtLXJvb3QtY29sb3IpOwogIGZvbnQtZmFtaWx5OiB2YXIoLS11aS1mb250KTsKfQoKLyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgogKiBIZWFkZXIgc3R5bGVzCiAqCiAqIEFjdGlvbiBzdHlsZXMgYXJlIG1lYW50IHRvIG1pbWljIHRoZSBUb3AgQmFyIGljb25zIChgc2ItYWN0aW9uc2ApCiAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi8KCi50cmVldmlldy1oZWFkZXIgewogIHBvc2l0aW9uOiBzdGlja3k7CiAgdG9wOiAwOwogIHotaW5kZXg6IDI7CiAgcGFkZGluZzogMC41cmVtIDAuNXJlbSAwcmVtOwogIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXJvb3QtYmFja2dyb3VuZC1jb2xvcik7Cn0KCi50cmVldm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Agd2lkdGg6IDE4cHg7Cn0KCi8qKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioKICogU29ydGFibGVUcmVlIHN0eWxlcwogKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovCgoudHJlZSB7CglkaXNwbGF5OiBmbGV4OwoJZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICBtYXJnaW46IDAuMjVyZW0gMC41cmVtIDFyZW07CiAgcGFkZGluZy1sZWZ0OiB2YXIoLS1zdC1zdWJub2Rlcy1wYWRkaW5nLWxlZnQpOwp9CgoudHJlZV9fbGFiZWwgewogIGRpc3BsYXk6IGZsZXg7CiAgcGFkZGluZzogMnB4Owp9CgoudHJlZV9fbGFiZWw6YWZ0ZXIgewogIGNvbnRlbnQ6ICcgJzsKICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgei1pbmRleDogNDsKICBpbnNldDogY2FsYyh2YXIoLS10cmVldmlldy1ub2RlLWJvcmRlci13aWR0aCkgKiAtMSkgdmFyKC0tdHJlZXZpZXctbm9kZS1ib3JkZXItd2lkdGgpOwogIGJvcmRlci10b3A6IGNhbGModmFyKC0tdHJlZXZpZXctbm9kZS1ib3JkZXItd2lkdGgpICogMikgc29saWQgdHJhbnNwYXJlbnQ7CiAgYm9yZGVyLWJvdHRvbTogY2FsYyh2YXIoLS10cmVldmlldy1ub2RlLWJvcmRlci13aWR0aCkgKiAyKSBzb2xpZCB0cmFuc3BhcmVudDsKICB0cmFuc2l0aW9uOiBib3JkZXItY29sb3IgMC4yczsKICBwb2ludGVyLWV2ZW50czogbm9uZTsKfQoKLnRyZWVfX25vZGUtLWRyb3AtYmVmb3JlID4gLnRyZWVfX2xhYmVsOmFmdGVyIHsKICBib3JkZXItdG9wLWNvbG9yOiB2YXIoLS11aS1hY2NlbnQtY29sb3IpOwp9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m9kZS0tZHJvcC1pbnNpZGUgPiAudHJlZV9fbGFiZWwgPiBzcGFuW2RhdGEtY3VycmVudC1wYWdlPSJ0cnVlIl0gewoJY29sb3I6IHZhcigtLXRyZWV2aWV3LXBhZ2UtY29sb3IpOwp9",mtime:1722260426923}},functions:{hide:{path:"./treeview.ts:hideTree"},show:{path:"./treeview.ts:showTree"},showIfEnabled:{path:"./treeview.ts:showTreeIfEnabled",events:["editor:init","editor:pageLoaded","editor:pageSaved","file:deleted"]},toggle:{path:"./treeview.ts:toggleTree",command:{name:"Tree View: Toggle",key:"Ctrl-alt-b",mac:"Cmd-alt-b"}}}},Io={manifest:vt,functionMapping:Ct};Je(Ct,vt);export{Io as plug};