forked from joekrill/silverbullet-treeview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
treeview.plug.js
37 lines (35 loc) · 93.2 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
37
var bt=Object.defineProperty;var _=(n,e)=>{for(var t in e)bt(n,t,{get:e[t],enumerable:!0})};var Ye=typeof window>"u"&&typeof globalThis.WebSocketPair>"u";typeof Deno>"u"&&(self.Deno={args:[],build:{arch:"x86_64"},env:{get(){}}});var Ue=new Map,Xe=0;function he(n){self.postMessage(n)}Ye&&(globalThis.syscall=async(n,...e)=>await new Promise((t,r)=>{Xe++,Ue.set(Xe,{resolve:t,reject:r}),he({type:"sys",id:Xe,name:n,args:e})}));function je(n,e){Ye&&(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||[]));he({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),he({type:"invr",id:r.id,error:a.message})}}break;case"sysr":{let s=r.id,a=Ue.get(s);if(!a)throw Error("Invalid request id");Ue.delete(s),r.error?a.reject(new Error(r.error)):a.resolve(r.result)}break}})().catch(console.error)}),he({type:"manifest",manifest:e}))}function Tt(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 Je(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 xt(n,e){if(typeof n!="string"){let t=new Uint8Array(await n.arrayBuffer()),r=t.length>0?Je(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 Ct(){globalThis.fetch=async function(n,e){let t=e&&e.body?Je(new Uint8Array(await new Response(e.body).arrayBuffer())):void 0,r=await xt(n,e&&{method:e.method,headers:e.headers,base64Body:t});return new Response(r.base64Body?Tt(r.base64Body):null,{status:r.status,headers:r.headers})}}Ye&&Ct();var G={};_(G,{confirm:()=>Qt,dispatch:()=>zt,downloadFile:()=>Yt,filterBox:()=>Ht,flashNotification:()=>Et,fold:()=>nn,foldAll:()=>an,getCurrentPage:()=>vt,getCursor:()=>Pt,getSelection:()=>St,getText:()=>At,getUiOption:()=>$t,goHistory:()=>Ut,hidePanel:()=>Ot,insertAtCursor:()=>Jt,insertAtPos:()=>Ft,moveCursor:()=>jt,navigate:()=>Kt,openCommandPalette:()=>Wt,openPageNavigator:()=>Bt,openSearchPanel:()=>dn,openUrl:()=>Xt,prompt:()=>qt,reloadPage:()=>Vt,reloadSettingsAndCommands:()=>_t,reloadUI:()=>Nt,replaceRange:()=>Mt,save:()=>Gt,setPage:()=>kt,setSelection:()=>wt,setText:()=>Rt,setUiOption:()=>en,showPanel:()=>Dt,toggleFold:()=>sn,unfold:()=>rn,unfoldAll:()=>on,uploadFile:()=>Lt,vimEx:()=>tn});typeof self>"u"&&(self={syscall:()=>{throw new Error("Not implemented here")}});var u=self.syscall;function vt(){return u("editor.getCurrentPage")}function kt(n){return u("editor.setPage",n)}function At(){return u("editor.getText")}function Rt(n){return u("editor.setText",n)}function Pt(){return u("editor.getCursor")}function St(){return u("editor.getSelection")}function wt(n,e){return u("editor.setSelection",n,e)}function Gt(){return u("editor.save")}function Kt(n,e=!1,t=!1){return u("editor.navigate",n,e,t)}function Bt(n="page"){return u("editor.openPageNavigator",n)}function Wt(){return u("editor.openCommandPalette")}function Vt(){return u("editor.reloadPage")}function Nt(){return u("editor.reloadUI")}function _t(){return u("editor.reloadSettingsAndCommands")}function Xt(n,e=!1){return u("editor.openUrl",n,e)}function Ut(n){return u("editor.goHistory",n)}function Yt(n,e){return u("editor.downloadFile",n,e)}function Lt(n,e){return u("editor.uploadFile",n,e)}function Et(n,e="info"){return u("editor.flashNotification",n,e)}function Ht(n,e,t="",r=""){return u("editor.filterBox",n,e,t,r)}function Dt(n,e,t,r=""){return u("editor.showPanel",n,e,t,r)}function Ot(n){return u("editor.hidePanel",n)}function Ft(n,e){return u("editor.insertAtPos",n,e)}function Mt(n,e,t){return u("editor.replaceRange",n,e,t)}function jt(n,e=!1){return u("editor.moveCursor",n,e)}function Jt(n){return u("editor.insertAtCursor",n)}function zt(n){return u("editor.dispatch",n)}function qt(n,e=""){return u("editor.prompt",n,e)}function Qt(n){return u("editor.confirm",n)}function $t(n){return u("editor.getUiOption",n)}function en(n,e){return u("editor.setUiOption",n,e)}function tn(n){return u("editor.vimEx",n)}function nn(){return u("editor.fold")}function rn(){return u("editor.unfold")}function sn(){return u("editor.toggleFold")}function an(){return u("editor.foldAll")}function on(){return u("editor.unfoldAll")}function dn(){return u("editor.openSearchPanel")}var Ie={};_(Ie,{parseMarkdown:()=>un});function un(n){return u("markdown.parseMarkdown",n)}var E={};_(E,{deleteAttachment:()=>bn,deleteFile:()=>kn,deletePage:()=>mn,getAttachmentMeta:()=>Zn,getFileMeta:()=>Cn,getPageMeta:()=>ln,listAttachments:()=>fn,listFiles:()=>Tn,listPages:()=>cn,listPlugs:()=>gn,readAttachment:()=>hn,readFile:()=>xn,readPage:()=>pn,writeAttachment:()=>In,writeFile:()=>vn,writePage:()=>yn});function cn(n=!1){return u("space.listPages",n)}function ln(n){return u("space.getPageMeta",n)}function pn(n){return u("space.readPage",n)}function yn(n,e){return u("space.writePage",n,e)}function mn(n){return u("space.deletePage",n)}function gn(){return u("space.listPlugs")}function fn(){return u("space.listAttachments")}function Zn(n){return u("space.getAttachmentMeta",n)}function hn(n){return u("space.readAttachment",n)}function In(n,e){return u("space.writeAttachment",n,e)}function bn(n){return u("space.deleteAttachment",n)}function Tn(){return u("space.listFiles")}function xn(n){return u("space.readFile",n)}function Cn(n){return u("space.getFileMeta",n)}function vn(n,e){return u("space.writeFile",n,e)}function kn(n){return u("space.deleteFile",n)}var be={};_(be,{getEnv:()=>Gn,getMode:()=>Kn,invokeCommand:()=>Rn,invokeFunction:()=>An,listCommands:()=>Pn,listSyscalls:()=>Sn,reloadPlugs:()=>wn});function An(n,...e){return u("system.invokeFunction",n,...e)}function Rn(n,e){return u("system.invokeCommand",n,e)}function Pn(){return u("system.listCommands")}function Sn(){return u("system.listSyscalls")}function wn(){u("system.reloadPlugs")}function Gn(){return u("system.getEnv")}function Kn(){return u("system.getMode")}var F={};_(F,{del:()=>Vn,get:()=>Wn,set:()=>Bn});function Bn(n,e){return u("clientStore.set",n,e)}function Wn(n){return u("clientStore.get",n)}function Vn(n){return u("clientStore.delete",n)}var P={};_(P,{readAsset:()=>En});function Ln(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){let e=n.split(",",2)[1];return Ln(e)}var B=globalThis.syscall;async function En(n,e,t="utf8"){let r=await B("asset.readAsset",n,e);switch(t){case"utf8":return new TextDecoder().decode(ze(r));case"dataurl":return r}}var te={};_(te,{parse:()=>On,stringify:()=>Fn});function On(n){return B("yaml.parse",n)}function Fn(n){return B("yaml.stringify",n)}async function qe(n){let e=await G.getCurrentPage(),t=await E.listPages(),r={nodes:[]};if(n!=="")try{let s=new RegExp(n);t=t.filter(a=>!s.test(a.name))}catch(s){console.error("filtering by pageExcludeRegex failed",s)}return t.sort((s,a)=>s.name.localeCompare(a.name)).forEach(s=>{s.name.split("/").reduce((a,i,o,y)=>{let c=y.length-1===o,g=a.nodes.find(x=>x.data.title===i);if(g)return c&&!("created"in g.data)&&(g.data={...s,title:i,isCurrentPage:e===s.name,nodeType:"page"}),g;if(c)g={data:{...s,title:i,isCurrentPage:e===s.name,nodeType:"page"},nodes:[]};else{let x=y.slice(0,o+1).join("/");g={data:{title:i,isCurrentPage:e===x,name:x,nodeType:"folder"},nodes:[]}}return a.nodes.push(g),g},r)}),{nodes:r.nodes,currentPage:e}}function Le(n,e){if(e(n))return[n];let t=[];if(n.children)for(let r of n.children)t=[...t,...Le(r,e)];return t}function Ee(n,e){return Le(n,t=>t.type===e)[0]}function Qe(n,e){Le(n,e)}async function Jn(n,e){let t=await E.readPage(n),r=await Ie.parseMarkdown(t),s;return Qe(r,a=>{if(a.type!=="FencedCode")return!1;let i=Ee(a,"CodeInfo");if(e&&!i||e&&!e.includes(i.children[0].text))return!1;let o=Ee(a,"CodeText");return o?(s=o.children[0].text,!0):!1}),s}async function $e(n,e=["yaml"]){let t=await Jn(n,e);if(t!==void 0)try{return te.parse(t)}catch(r){throw console.error("YAML Page parser error",r),new Error(`YAML Error: ${r.message}`)}}var zn="SETTINGS";async function et(n,e){try{let r=(await $e(zn,["yaml"])||{})[n];return r===void 0?e:r}catch(t){if(t.message==="Not found")return e;throw t}}var K={};_(K,{BRAND:()=>pr,DIRTY:()=>He,EMPTY_PATH:()=>er,INVALID:()=>f,NEVER:()=>zr,OK:()=>A,ParseStatus:()=>k,Schema:()=>h,ZodAny:()=>q,ZodArray:()=>D,ZodBigInt:()=>ae,ZodBoolean:()=>oe,ZodBranded:()=>Be,ZodCatch:()=>Ge,ZodDate:()=>ie,ZodDefault:()=>ge,ZodDiscriminatedUnion:()=>Ae,ZodEffects:()=>L,ZodEnum:()=>Q,ZodError:()=>R,ZodFirstPartyTypeKind:()=>ot,ZodFunction:()=>we,ZodIntersection:()=>le,ZodIssueCode:()=>d,ZodLazy:()=>pe,ZodLiteral:()=>ye,ZodMap:()=>Pe,ZodNaN:()=>Ke,ZodNativeEnum:()=>me,ZodNever:()=>V,ZodNull:()=>ue,ZodNullable:()=>O,ZodNumber:()=>se,ZodObject:()=>U,ZodOptional:()=>N,ZodParsedType:()=>l,ZodPipeline:()=>fe,ZodPromise:()=>$,ZodReadonly:()=>We,ZodRecord:()=>Re,ZodSchema:()=>h,ZodSet:()=>Se,ZodString:()=>z,ZodSymbol:()=>ve,ZodTransformer:()=>L,ZodTuple:()=>Y,ZodType:()=>h,ZodUndefined:()=>de,ZodUnion:()=>ce,ZodUnknown:()=>H,ZodVoid:()=>ke,addIssueToContext:()=>p,any:()=>Tr,array:()=>kr,bigint:()=>fr,boolean:()=>ut,coerce:()=>Jr,custom:()=>at,date:()=>Zr,defaultErrorMap:()=>X,discriminatedUnion:()=>Sr,effect:()=>Lr,enum:()=>Xr,function:()=>Vr,getErrorMap:()=>M,getParsedType:()=>W,instanceof:()=>mr,intersection:()=>wr,isAborted:()=>Te,isAsync:()=>re,isDirty:()=>xe,isValid:()=>j,late:()=>yr,lazy:()=>Nr,literal:()=>_r,makeIssue:()=>ne,map:()=>Br,nan:()=>gr,nativeEnum:()=>Ur,never:()=>Cr,null:()=>br,nullable:()=>Hr,number:()=>dt,object:()=>Ar,objectUtil:()=>tt,oboolean:()=>jr,onumber:()=>Mr,optional:()=>Er,ostring:()=>Fr,pipeline:()=>Or,preprocess:()=>Dr,promise:()=>Yr,quotelessJson:()=>qn,record:()=>Kr,set:()=>Wr,setErrorMap:()=>$n,strictObject:()=>Rr,string:()=>it,symbol:()=>hr,transformer:()=>Lr,tuple:()=>Gr,undefined:()=>Ir,union:()=>Pr,unknown:()=>xr,util:()=>b,void:()=>vr});var b;(x=>{x.assertEqual=T=>T;function e(T){}x.assertIs=e;function t(T){throw new Error}x.assertNever=t,x.arrayToEnum=T=>{let C={};for(let v of T)C[v]=v;return C},x.getValidEnumValues=T=>{let C=(0,x.objectKeys)(T).filter(Ze=>typeof T[T[Ze]]!="number"),v={};for(let Ze of C)v[Ze]=T[Ze];return(0,x.objectValues)(v)},x.objectValues=T=>(0,x.objectKeys)(T).map(function(C){return T[C]}),x.objectKeys=typeof Object.keys=="function"?T=>Object.keys(T):T=>{let C=[];for(let v in T)Object.prototype.hasOwnProperty.call(T,v)&&C.push(v);return C},x.find=(T,C)=>{for(let v of T)if(C(v))return v},x.isInteger=typeof Number.isInteger=="function"?T=>Number.isInteger(T):T=>typeof T=="number"&&isFinite(T)&&Math.floor(T)===T;function c(T,C=" | "){return T.map(v=>typeof v=="string"?`'${v}'`:v).join(C)}x.joinValues=c,x.jsonStringifyReplacer=(T,C)=>typeof C=="bigint"?C.toString():C})(b||={});var tt;(e=>e.mergeShapes=(t,r)=>({...t,...r}))(tt||={});var l=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 l.undefined;case"string":return l.string;case"number":return isNaN(n)?l.nan:l.number;case"boolean":return l.boolean;case"function":return l.function;case"bigint":return l.bigint;case"symbol":return l.symbol;case"object":return Array.isArray(n)?l.array:n===null?l.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?l.promise:typeof Map<"u"&&n instanceof Map?l.map:typeof Set<"u"&&n instanceof Set?l.set:typeof Date<"u"&&n instanceof Date?l.date:l.object;default:return l.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"]),qn=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);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 Qn=(n,e)=>{let t;switch(n.code){case d.invalid_type:n.received===l.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}},X=Qn;var nt=X;function $n(n){nt=n}function M(){return nt}var ne=n=>{let{data:e,path:t,errorMaps:r,issueData:s}=n,a=[...t,...s.path||[]],i={...s,path:a},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:s.message||o}},er=[];function p(n,e){let t=ne({issueData:e,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,M(),X].filter(r=>!!r)});n.common.issues.push(t)}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 f;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)r.push({key:await s.key,value:await s.value});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 f;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}}},f=Object.freeze({status:"aborted"}),He=n=>({status:"dirty",value:n}),A=n=>({status:"valid",value:n}),Te=n=>n.status==="aborted",xe=n=>n.status==="dirty",j=n=>n.status==="valid",re=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)=>i.code!=="invalid_type"?{message:o.defaultError}:typeof o.data>"u"?{message:r??o.defaultError}:{message: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(re(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(re(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 L({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 N.create(this,this._def)}nullable(){return O.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return D.create(this,this._def)}promise(){return $.create(this,this._def)}or(e){return ce.create([this,e],this._def)}and(e){return le.create(this,e,this._def)}transform(e){return new L({...Z(this._def),schema:this,typeName:"ZodEffects",effect:{type:"transform",transform:e}})}default(e){let t=typeof e=="function"?e:()=>e;return new ge({...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 Ge({...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 fe.create(this,e)}readonly(){return We.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},tr=/^c[^\s-]{8,}$/i,nr=/^[a-z][a-z0-9]*$/,rr=/^[0-9A-HJKMNP-TV-Z]{26}$/,sr=/^[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,ar=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,or="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",De,ir=/^(((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}))$/,dr=/^(([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})))$/,ur=n=>n.precision?n.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${n.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${n.precision}}Z$`):n.precision===0?n.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):n.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function cr(n,e){return!!((e==="v4"||!e)&&ir.test(n)||(e==="v6"||!e)&&dr.test(n))}var z=class n extends h{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==l.string){let a=this._getOrReturnCtx(e);return p(a,{code:d.invalid_type,expected:l.string,received:a.parsedType}),f}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),p(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),p(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?p(s,{code:d.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):o&&p(s,{code:d.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),r.dirty())}else if(a.kind==="email")ar.test(e.data)||(s=this._getOrReturnCtx(e,s),p(s,{validation:"email",code:d.invalid_string,message:a.message}),r.dirty());else if(a.kind==="emoji")De||(De=new RegExp(or,"u")),De.test(e.data)||(s=this._getOrReturnCtx(e,s),p(s,{validation:"emoji",code:d.invalid_string,message:a.message}),r.dirty());else if(a.kind==="uuid")sr.test(e.data)||(s=this._getOrReturnCtx(e,s),p(s,{validation:"uuid",code:d.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid")tr.test(e.data)||(s=this._getOrReturnCtx(e,s),p(s,{validation:"cuid",code:d.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid2")nr.test(e.data)||(s=this._getOrReturnCtx(e,s),p(s,{validation:"cuid2",code:d.invalid_string,message:a.message}),r.dirty());else if(a.kind==="ulid")rr.test(e.data)||(s=this._getOrReturnCtx(e,s),p(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),p(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),p(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),p(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),p(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),p(s,{code:d.invalid_string,validation:{endsWith:a.value},message:a.message}),r.dirty()):a.kind==="datetime"?ur(a).test(e.data)||(s=this._getOrReturnCtx(e,s),p(s,{code:d.invalid_string,validation:"datetime",message:a.message}),r.dirty()):a.kind==="ip"?cr(e.data,a.version)||(s=this._getOrReturnCtx(e,s),p(s,{validation:"ip",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)})}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)})}ip(e){return this._addCheck({kind:"ip",...m.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,...m.errToObj(e?.message)})}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 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 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 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 lr(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 se=class n extends h{_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==l.number){let a=this._getOrReturnCtx(e);return p(a,{code:d.invalid_type,expected:l.number,received:a.parsedType}),f}let r,s=new k;for(let a of this._def.checks)a.kind==="int"?b.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),p(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),p(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),p(r,{code:d.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),s.dirty()):a.kind==="multipleOf"?lr(e.data,a.value)!==0&&(r=this._getOrReturnCtx(e,r),p(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),p(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)}},ae=class n extends h{_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==l.bigint){let a=this._getOrReturnCtx(e);return p(a,{code:d.invalid_type,expected:l.bigint,received:a.parsedType}),f}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),p(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),p(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),p(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}},oe=class n extends h{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==l.boolean){let r=this._getOrReturnCtx(e);return p(r,{code:d.invalid_type,expected:l.boolean,received:r.parsedType}),f}return A(e.data)}static create=e=>new n({typeName:"ZodBoolean",coerce:e?.coerce||!1,...Z(e)})},ie=class n extends h{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==l.date){let a=this._getOrReturnCtx(e);return p(a,{code:d.invalid_type,expected:l.date,received:a.parsedType}),f}if(isNaN(e.data.getTime())){let a=this._getOrReturnCtx(e);return p(a,{code:d.invalid_date}),f}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),p(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),p(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)})},ve=class n extends h{_parse(e){if(this._getType(e)!==l.symbol){let r=this._getOrReturnCtx(e);return p(r,{code:d.invalid_type,expected:l.symbol,received:r.parsedType}),f}return A(e.data)}static create=e=>new n({typeName:"ZodSymbol",...Z(e)})},de=class n extends h{_parse(e){if(this._getType(e)!==l.undefined){let r=this._getOrReturnCtx(e);return p(r,{code:d.invalid_type,expected:l.undefined,received:r.parsedType}),f}return A(e.data)}params;static create=e=>new n({typeName:"ZodUndefined",...Z(e)})},ue=class n extends h{_parse(e){if(this._getType(e)!==l.null){let r=this._getOrReturnCtx(e);return p(r,{code:d.invalid_type,expected:l.null,received:r.parsedType}),f}return A(e.data)}static create=e=>new n({typeName:"ZodNull",...Z(e)})},q=class n extends h{_any=!0;_parse(e){return A(e.data)}static create=e=>new n({typeName:"ZodAny",...Z(e)})},H=class n extends h{_unknown=!0;_parse(e){return A(e.data)}static create=e=>new n({typeName:"ZodUnknown",...Z(e)})},V=class n extends h{_parse(e){let t=this._getOrReturnCtx(e);return p(t,{code:d.invalid_type,expected:l.never,received:t.parsedType}),f}static create=e=>new n({typeName:"ZodNever",...Z(e)})},ke=class n extends h{_parse(e){if(this._getType(e)!==l.undefined){let r=this._getOrReturnCtx(e);return p(r,{code:d.invalid_type,expected:l.void,received:r.parsedType}),f}return A(e.data)}static create=e=>new n({typeName:"ZodVoid",...Z(e)})},D=class n extends h{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),s=this._def;if(t.parsedType!==l.array)return p(t,{code:d.invalid_type,expected:l.array,received:t.parsedType}),f;if(s.exactLength!==null){let i=t.data.length>s.exactLength.value,o=t.data.length<s.exactLength.value;(i||o)&&(p(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&&(p(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&&(p(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 J(n){if(n instanceof U){let e={};for(let t in n.shape){let r=n.shape[t];e[t]=N.create(J(r))}return new U({...n._def,shape:()=>e})}else return n instanceof D?new D({...n._def,type:J(n.element)}):n instanceof N?N.create(J(n.unwrap())):n instanceof O?O.create(J(n.unwrap())):n instanceof Y?Y.create(n.items.map(e=>J(e))):n}var U=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)!==l.object){let c=this._getOrReturnCtx(e);return p(c,{code:d.invalid_type,expected:l.object,received:c.parsedType}),f}let{status:r,ctx:s}=this._processInputParams(e),{shape:a,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof V&&this._def.unknownKeys==="strip"))for(let c in s.data)i.includes(c)||o.push(c);let y=[];for(let c of i){let g=a[c],x=s.data[c];y.push({key:{status:"valid",value:c},value:g._parse(new S(s,x,s.path,c)),alwaysSet:c in s.data})}if(this._def.catchall instanceof V){let c=this._def.unknownKeys;if(c==="passthrough")for(let g of o)y.push({key:{status:"valid",value:g},value:{status:"valid",value:s.data[g]}});else if(c==="strict")o.length>0&&(p(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 g of o){let x=s.data[g];y.push({key:{status:"valid",value:g},value:c._parse(new S(s,x,s.path,g)),alwaysSet:g in s.data})}}return s.common.async?Promise.resolve().then(async()=>{let c=[];for(let g of y){let x=await g.key;c.push({key:x,value:await g.value,alwaysSet:g.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 J(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 N;)a=a._def.innerType;t[r]=a}}),new n({...this._def,shape:()=>t})}keyof(){return st(b.objectKeys(this.shape))}static create=(e,t)=>new n({shape:()=>e,unknownKeys:"strip",catchall:V.create(),typeName:"ZodObject",...Z(t)});static strictCreate=(e,t)=>new n({shape:()=>e,unknownKeys:"strict",catchall:V.create(),typeName:"ZodObject",...Z(t)});static lazycreate=(e,t)=>new n({shape:e,unknownKeys:"strip",catchall:V.create(),typeName:"ZodObject",...Z(t)})},ce=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 p(t,{code:d.invalid_union,unionErrors:i}),f}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},g=y._parseSync({data:t.data,path:t.path,parent:c});if(g.status==="valid")return g;g.status==="dirty"&&!a&&(a={result:g,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 p(t,{code:d.invalid_union,unionErrors:o}),f}}get options(){return this._def.options}static create=(e,t)=>new n({options:e,typeName:"ZodUnion",...Z(t)})},Ce=n=>n instanceof pe?Ce(n.schema):n instanceof L?Ce(n.innerType()):n instanceof ye?[n.value]:n instanceof Q?n.options:n instanceof me?Object.keys(n.enum):n instanceof ge?Ce(n._def.innerType):n instanceof de?[void 0]:n instanceof ue?[null]:null,Ae=class n extends h{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==l.object)return p(t,{code:d.invalid_type,expected:l.object,received:t.parsedType}),f;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}):(p(t,{code:d.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),f)}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=Ce(a.shape[e]);if(!i)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===l.object&&r===l.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===l.array&&r===l.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===l.date&&r===l.date&&+n==+e?{valid:!0,data:n}:{valid:!1}}var le=class n extends h{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),s=(a,i)=>{if(Te(a)||Te(i))return f;let o=Oe(a.value,i.value);return o.valid?((xe(a)||xe(i))&&t.dirty(),{status:t.value,value:o.data}):(p(r,{code:d.invalid_intersection_types}),f)};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)})},Y=class n extends h{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==l.array)return p(r,{code:d.invalid_type,expected:l.array,received:r.parsedType}),f;if(r.data.length<this._def.items.length)return p(r,{code:d.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),f;!this._def.rest&&r.data.length>this._def.items.length&&(p(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)})}},Re=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!==l.object)return p(r,{code:d.invalid_type,expected:l.object,received:r.parsedType}),f;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))});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:z.create(),valueType:e,typeName:"ZodRecord",...Z(t)})}},Pe=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!==l.map)return p(r,{code:d.invalid_type,expected:l.map,received:r.parsedType}),f;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,g=await y.value;if(c.status==="aborted"||g.status==="aborted")return f;(c.status==="dirty"||g.status==="dirty")&&t.dirty(),o.set(c.value,g.value)}return{status:t.value,value:o}})}else{let o=new Map;for(let y of i){let c=y.key,g=y.value;if(c.status==="aborted"||g.status==="aborted")return f;(c.status==="dirty"||g.status==="dirty")&&t.dirty(),o.set(c.value,g.value)}return{status:t.value,value:o}}}static create=(e,t,r)=>new n({valueType:t,keyType:e,typeName:"ZodMap",...Z(r)})},Se=class n extends h{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==l.set)return p(r,{code:d.invalid_type,expected:l.set,received:r.parsedType}),f;let s=this._def;s.minSize!==null&&r.data.size<s.minSize.value&&(p(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&&(p(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 g of y){if(g.status==="aborted")return f;g.status==="dirty"&&t.dirty(),c.add(g.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!==l.function)return p(t,{code:d.invalid_type,expected:l.function,received:t.parsedType}),f;function r(o,y){return ne({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,M(),X].filter(c=>!!c),issueData:{code:d.invalid_arguments,argumentsError:y}})}function s(o,y){return ne({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,M(),X].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 $){let o=this;return A(async function(...y){let c=new R([]),g=await o._def.args.parseAsync(y,a).catch(C=>{throw c.addIssue(r(y,C)),c}),x=await Reflect.apply(i,this,g);return await o._def.returns._def.type.parseAsync(x,a).catch(C=>{throw c.addIssue(s(x,C)),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 g=Reflect.apply(i,this,c.data),x=o._def.returns.safeParse(g,a);if(!x.success)throw new R([s(g,x.error)]);return x.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new n({...this._def,args:Y.create(e).rest(H.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||Y.create([]).rest(H.create()),returns:t||H.create(),typeName:"ZodFunction",...Z(r)})}},pe=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)})},ye=class n extends h{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return p(t,{received:t.data,code:d.invalid_literal,expected:this._def.value}),f}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 st(n,e){return new Q({values:n,typeName:"ZodEnum",...Z(e)})}var Q=class n extends h{_parse(e){if(typeof e.data!="string"){let t=this._getOrReturnCtx(e),r=this._def.values;return p(t,{expected:b.joinValues(r),received:t.parsedType,code:d.invalid_type}),f}if(this._def.values.indexOf(e.data)===-1){let t=this._getOrReturnCtx(e),r=this._def.values;return p(t,{received:t.data,code:d.invalid_enum_value,options:r}),f}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){return n.create(e)}exclude(e){return n.create(this.options.filter(t=>!e.includes(t)))}static create=st},me=class n extends h{_parse(e){let t=b.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==l.string&&r.parsedType!==l.number){let s=b.objectValues(t);return p(r,{expected:b.joinValues(s),received:r.parsedType,code:d.invalid_type}),f}if(t.indexOf(e.data)===-1){let s=b.objectValues(t);return p(r,{received:r.data,code:d.invalid_enum_value,options:s}),f}return A(e.data)}get enum(){return this._def.values}static create=(e,t)=>new n({values:e,typeName:"ZodNativeEnum",...Z(t)})},$=class n extends h{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==l.promise&&t.common.async===!1)return p(t,{code:d.invalid_type,expected:l.promise,received:t.parsedType}),f;let r=t.parsedType===l.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)})},L=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=>{p(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);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(i).then(o=>this._def.schema._parseAsync({data:o,path:r.path,parent:r})):this._def.schema._parseSync({data:i,path:r.path,parent:r})}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"?f:(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"?f:(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 N=class n extends h{_parse(e){return this._getType(e)===l.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)})},O=class n extends h{_parse(e){return this._getType(e)===l.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)})},ge=class n extends h{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===l.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)})},Ge=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 re(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)})},Ke=class n extends h{_parse(e){if(this._getType(e)!==l.nan){let r=this._getOrReturnCtx(e);return p(r,{code:d.invalid_type,expected:l.nan,received:r.parsedType}),f}return{status:"valid",value:e.data}}static create=e=>new n({typeName:"ZodNaN",...Z(e)})},pr=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}},fe=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"?f:a.status==="dirty"?(t.dirty(),He(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"?f: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"})}},We=class n extends h{_parse(e){let t=this._def.innerType._parse(e);return j(t)&&(t.value=Object.freeze(t.value)),t}static create=(e,t)=>new n({innerType:e,typeName:"ZodReadonly",...Z(t)})},at=(n,e={},t)=>n?q.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})}}):q.create();var yr={object:U.lazycreate},ot=(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))(ot||{});var mr=(n,e={message:`Input not instance of ${n.name}`})=>at(t=>t instanceof n,e),it=z.create,dt=se.create,gr=Ke.create,fr=ae.create,ut=oe.create,Zr=ie.create,hr=ve.create,Ir=de.create,br=ue.create,Tr=q.create,xr=H.create,Cr=V.create,vr=ke.create,kr=D.create,Ar=U.create,Rr=U.strictCreate,Pr=ce.create,Sr=Ae.create,wr=le.create,Gr=Y.create,Kr=Re.create,Br=Pe.create,Wr=Se.create,Vr=we.create,Nr=pe.create,_r=ye.create,Xr=Q.create,Ur=me.create,Yr=$.create,Lr=L.create,Er=N.create,Hr=O.create,Dr=L.createWithPreprocess,Or=fe.create,Fr=()=>it().optional(),Mr=()=>dt().optional(),jr=()=>ut().optional(),Jr={string:n=>z.create({...n,coerce:!0}),number:n=>se.create({...n,coerce:!0}),boolean:n=>oe.create({...n,coerce:!0}),bigint:n=>ae.create({...n,coerce:!0}),date:n=>ie.create({...n,coerce:!0})};var zr=f;var w="treeview",lt="enableTreeView",qr=["rhs","lhs","bhs","modal"],ct=K.object({position:K.enum(qr).optional().default("lhs"),size:K.number().gt(0).optional().default(1),dragAndDrop:K.object({enabled:K.boolean().optional().default(!0),confirmOnRename:K.boolean().optional().default(!0)}).optional().default({}),pageExcludeRegex:K.string().optional().default("")});async function Qr(n){if(Ve)return;Ve=!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 ${w} configuration. Check your SETTINGS file: ${e}`,"error")}var Ve=!1;async function pt(){let n=await et(w);try{return ct.parse(n||{})}catch(e){return Ve||(Qr(e),Ve=!0),ct.parse({})}}async function Fe(){return!!await F.get(lt)}async function Me(n){return await F.set(lt,n)}async function yt(){return await F.get("darkMode")?"dark":"light"}async function mt(){return await G.getUiOption("customStyles")}async function gt(){try{return await syscall("system.getVersion"),!0}catch{return!1}}var ee;async function ft(){await Fe()?await Ne():await _e()}async function Ne(){ee&&(await G.hidePanel(ee),ee=void 0,await Me(!1))}async function Zt(){try{if(await be.getEnv()==="server")return;if(await Fe())return await _e()}catch(n){console.error("showTreeIfEnabled failed",n)}}async function _e(){let n=await yt(),e=await pt();ee&&e.position!==ee&&await Ne();let[t,r,s,a,i,o,y,c,g]=await Promise.all([P.readAsset(w,"assets/sortable-tree/sortable-tree.css"),P.readAsset(w,"assets/sortable-tree/sortable-tree.js"),P.readAsset(w,"assets/treeview.css"),P.readAsset(w,"assets/treeview.js"),P.readAsset(w,"assets/icons/folder-minus.svg"),P.readAsset(w,"assets/icons/folder-plus.svg"),P.readAsset(w,"assets/icons/navigation-2.svg"),P.readAsset(w,"assets/icons/refresh-cw.svg"),P.readAsset(w,"assets/icons/x-circle.svg")]),{currentPage:x,nodes:T}=await qe(e.pageExcludeRegex),C=await mt(),v={nodes:T,currentPage:x,treeElementId:"treeview-tree",dragAndDrop:{...e.dragAndDrop,enabled:e.dragAndDrop.enabled&&await gt()}};await G.showPanel(e.position,e.size,`
<html>
<head>
<link rel="stylesheet" href="/.client/main.css" />
<style>
${t}
${s}
${C??""}
</style>
</head>
<body>
<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">${o}</button>
<button type="button" data-treeview-action="collapse-all" title="Collapse all">${i}</button>
<button type="button" data-treeview-action="reveal-current-page" title="Reveal current page">${y}</button>
<button type="button" data-treeview-action="refresh" title="Refresh treeview">${c}</button>
</div>
<div class="treeview-actions-right">
<button type="button" data-treeview-action="close-panel" title="Close tree">${g}</button>
</div>
</div>
</div>
<div id="${v.treeElementId}"></div>
</div>
</body>
</html>`,`
// Workaound until showPanel provides the current theme
document.documentElement.dataset.theme = ${JSON.stringify(n)};
${r}
${a}
initializeTreeViewPanel(${JSON.stringify(v)});
`),await Me(!0),ee=e.position}var ht={hide:Ne,show:_e,showIfEnabled:Zt,toggle:ft},It={name:"treeview",version:.11,assets:{"assets/treeview.js":{data:"data:application/javascript;base64,LyoqCiAqIEB0eXBlZGVmIHtpbXBvcnQoIi4uL2FwaS50cyIpLlRyZWVOb2RlfSBUcmVlTm9kZQogKi8KCi8qKgogKiBAdHlwZWRlZiBTb3J0YWJsZVRyZWVOb2RlCiAqIEB0eXBlIHtPYmplY3R9CiAqIEBwcm9wZXJ0eSB7VHJlZU5vZGVbImRhdGEiXX0gZGF0YQogKi8KCi8qKgogKgogKiBAdHlwZWRlZiBUcmVlVmlld0NvbmZpZwogKiBAdHlwZSB7T2JqZWN0fQogKiBAcHJvcGVydHkge3N0cmluZ30gY3VycmVudFBhZ2UgLSB0aGUgY3VycmVudCBwYWdlIHNob3duIGluIFNpbHZlckJ1bGx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50Tm9kZS5yZXZlYWwoKTsKICAgICAgICAgIGN1cnJlbnROb2RlLnNjcm9sbEludG9WaWV3KHsKICAgICAgICAgICAgYmVoYXZpb3I6ICJhdXRvIiwKICAgICAgICAgICAgYmxvY2s6ICJuZWFyZXN0IiwKICAgICAgICAgICAgaW5saW5lOiAibmVhcmVzdCIsCiAgICAgICAgICB9KTsKICAgICAgICAgIHJldHVybiB0cnVlOwogICAgICAgIH0KICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgIH0KICAgIH0KCiAgICByZXR1cm4gZmFsc2U7CiAgfQoKICBoYW5kbGVBY3Rpb24oInJldmVhbC1jdXJyZW50LXBhZ2UiKTsKCiAgZG9jdW1lbnQucXVlcnlTZWxlY3RvckFsbCgiW2RhdGEtdHJlZXZpZXctYWN0aW9uXSIpLmZvckVhY2goKGVsKSA9PiB7CiAgICBlbC5hZGRFdmVudExpc3RlbmVyKCJjbGljayIsIChlKSA9PiB7CiAgICAgIGlmIChoYW5kbGVBY3Rpb24oZWwuZGF0YXNldFsidHJlZXZpZXdBY3Rpb24iXSkpIHsKICAgICAgICBlLnN0b3BQcm9wYWdhdGlvbigpOwogICAgICAgIGUucHJldmVudERlZmF1bHQoKTsKICAgICAgfQogICAgfSk7CiAgfSkKfQo=",mtime:1718054999048},"assets/icons/refresh-cw.svg":{data:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXItcmVmcmVzaC1jdyI+PHBvbHlsaW5lIHBvaW50cz0iMjMgNCAyMyAxMCAxNyAxMCI+PC9wb2x5bGluZT48cG9seWxpbmUgcG9pbnRzPSIxIDIwIDEgMTQgNyAxNCI+PC9wb2x5bGluZT48cGF0aCBkPSJNMy41MSA5YTkgOSAwIDAgMSAxNC44NS0zLjM2TDIzIDEwTTEgMTRsNC42NCA0LjM2QTkgOSAwIDAgMCAyMC40OSAxNSI+PC9wYXRoPjwvc3ZnPg==",mtime:1718054999048},"assets/icons/navigation-2.svg":{data:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIgogICAgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIgogICAgY2xhc3M9ImZlYXRoZXIgZmVhdGhlci1uYXZpZ2F0aW9uLTIiPgogICAgPHBvbHlnb24gcG9pbnRzPSIxMiAyIDE5IDIxIDEyIDE3IDUgMjEgMTIgMiI+PC9wb2x5Z29uPgo8L3N2Zz4=",mtime:1718054999048},"assets/icons/folder-minus.svg":{data:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXItZm9sZGVyLW1pbnVzIj48cGF0aCBkPSJNMjIgMTlhMiAyIDAgMCAxLTIgMkg0YTIgMiAwIDAgMS0yLTJWNWEyIDIgMCAwIDEgMi0yaDVsMiAzaDlhMiAyIDAgMCAxIDIgMnoiPjwvcGF0aD48bGluZSB4MT0iOSIgeTE9IjE0IiB4Mj0iMTUiIHkyPSIxNCI+PC9saW5lPjwvc3ZnPg==",mtime:1718054999048},"assets/icons/folder-plus.svg":{data:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXItZm9sZGVyLXBsdXMiPjxwYXRoIGQ9Ik0yMiAxOWEyIDIgMCAwIDEtMiAySDRhMiAyIDAgMCAxLTItMlY1YTIgMiAwIDAgMSAyLTJoNWwyIDNoOWEyIDIgMCAwIDEgMiAyeiI+PC9wYXRoPjxsaW5lIHgxPSIxMiIgeTE9IjExIiB4Mj0iMTIiIHkyPSIxNyI+PC9saW5lPjxsaW5lIHgxPSI5IiB5MT0iMTQiIHgyPSIxNSIgeTI9IjE0Ij48L2xpbmU+PC9zdmc+",mtime:1718054999048},"assets/icons/x-circle.svg":{data:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXIteC1jaXJjbGUiPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjEwIj48L2NpcmNsZT48bGluZSB4MT0iMTUiIHkxPSI5IiB4Mj0iOSIgeTI9IjE1Ij48L2xpbmU+PGxpbmUgeDE9IjkiIHkxPSI5IiB4Mj0iMTUiIHkyPSIxNSI+PC9saW5lPjwvc3ZnPg==",mtime:1718054999048},"assets/treeview.css":{data:"data:text/css;base64,LyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgogKiBQYWdlIHZhcmlhYmxlcwogKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovCgogaHRtbCB7CiAgLS10cmVldmlldy1ub2RlLWJvcmRlci13aWR0aDogMnB4OwogIC0tdHJlZXZpZXctbm9kZS1ib3JkZXItcmFkaXVzOiA1cHg7CgogIC0tdHJlZXZpZXctcGFnZS1jb2xvcjogdmFyKC0tZWRpdG9yLXdpa2ktbGluay1wYWdlLWNvbG9yKTsKICAtLXRyZWV2aWV3LXBhZ2UtYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tZWRpdG9yLXdpa2ktbGluay1wYWdlLWJhY2tncm91bmQtY29sb3IpOwogIC0tdHJlZXZpZXctcGFnZS1ib3JkZXItY29sb3I6IHZhcigtLXRyZWV2aWV3LXBhZ2UtYmFja2dyb3VuZC1jb2xvcik7CgogIC0tdHJlZXZpZXctZm9sZGVyLWNvbG9yOiB2YXIoLS1lZGl0b3Itd2lraS1saW5rLXBhZ2UtbWlzc2luZy1jb2xvcik7CiAgLS10cmVldmlldy1mb2xkZXItYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tdHJlZXZpZXctcGFnZS1iYWNrZ3JvdW5kLWNvbG9yKTsKICAtLXRyZWV2aWV3LWZvbGRlci1ib3JkZXItY29sb3I6IHZhcigtLXRyZWV2aWV3LXBhZ2UtYmFja2dyb3VuZC1jb2xvcik7CgogIC0tdHJlZXZpZXctY3VycmVudC1wYWdlLWNvbG9yOiAjZWVlOwoJLS10cmVldmlldy1jdXJyZW50LXBhZ2UtYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tdWktYWNjZW50LWNvbG9yKTsKICAtLXRyZWV2aWV3LWN1cnJlbnQtcGFnZS1ib3JkZXItY29sb3I6IHZhcigtLXRyZWV2aWV3LXBhZ2UtYm9yZGVyLWNvbG9yKTsKfQoKLnRyZWV2aWV3LXJvb3QgewogIC8qIFNvcnRhYmxlVHJlZSB2YXJpYWJsZXMgKi8KICAtLXN0LWxhYmVsLWhlaWdodDogYXV0bzsKICAtLXN0LXN1Ym5vZGVzLXBhZGRpbmctbGVmdDogMS4yNXJlbTsKICAtLXN0LWNvbGxhcHNlLWljb24taGVpZ2h0OiAyLjFyZW07CiAgLS1zdC1jb2xsYXBzZS1pY29uLXdpZHRoOiAxLjI1cmVtOwogIC0tc3QtY29sbGFwc2UtaWNvbi1zaXplOiAxcmVtOwp9CgovKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqCiAqIFBhZ2Ugc3R5bGVzCiAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi8KCmh0bWwsIGJvZHkgewogIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXJvb3QtYmFja2dyb3VuZC1jb2xvcik7CiAgcGFkZGluZzogMDsKICBtYXJnaW46IDA7CiAgb3ZlcmZsb3c6IGluaXRpYWwgIWltcG9ydGFudDsKfQoKLnRyZWV2aWV3LXJvb3QgewogIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXJvb3QtYmFja2dyb3VuZC1jb2xvcik7CiAgY29sb3I6IHZhcigtLXJvb3QtY29sb3IpOwogIGZvbnQtZmFtaWx5OiB2YXIoLS11aS1mb250KTsKfQoKLyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgogKiBIZWFkZXIgc3R5bGVzCiAqCiAqIEFjdGlvbiBzdHlsZXMgYXJlIG1lYW50IHRvIG1pbWljIHRoZSBUb3AgQmFyIGljb25zIChgc2ItYWN0aW9uc2ApCiAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi8KCi50cmVldmlldy1oZWFkZXIgewogIHBvc2l0aW9uOiBzdGlja3k7CiAgdG9wOiAwOwogIHotaW5kZXg6IDI7CiAgcGFkZGluZzogMC41cmVtIDAuNXJlbSAwcmVtOwogIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXJvb3QtYmFja2dyb3VuZC1jb2xvcik7Cn0KCi50cmVldmlldy1hY3Rpb25zIHsKICBkaXNwbGF5OiBmbGV4OwogIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjsKICBhbGlnbi1pdGVtczogZmxleC1zdGFydDsKICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1lZGl0b3Itd2lkZ2V0LWJhY2tncm91bmQtY29sb3IpOwogIGJvcmRlcjogdmFyKC0tdG9wLWJvcmRlci1jb2xvcikgMXB4IHNvbGlkOwogIGJvcmRlci1yYWRpdXM6IDVweDsKICBjb2xvcjogdmFyKC0tdG9wLWNvbG9yKTsKfQoKLnRyZWV2aWV3LWFjdGlvbnMtbGVmdCwKLnRyZWV2aWV3LWFjdGlvbnMtcmlnaHQgewogIGRpc3BsYXk6IGZsZXg7Cn0KCi50cmVldmlldy1hY3Rpb25zLWxlZnQgewogIGZsZXg6IDE7CiAgZmxleC13cmFwOiB3cmFwOwp9CgoudHJlZXZpZXctYWN0aW9ucyBidXR0b24gewogIGRpc3BsYXk6IGZsZXg7CiAgYWxpZ24taXRlbXM6IGNlbnRlcjsKICBtYXJnaW46IDNweDsKICBwYWRkaW5nOiA1cHg7CiAgYmFja2dyb3VuZC1jb2xvcjog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VidGxlLWNvbG9yKTsKICBib3JkZXItcmFkaXVzOiB2YXIoLS10cmVldmlldy1ub2RlLWJvcmRlci1yYWRpdXMpOwogIGN1cnNvcjogbW92ZSAhaW1wb3J0YW50Owp9CgoudHJlZV9fbm9kZS0tZHJhZ2dpbmcgLnRyZWVfX2xhYmVsID4gc3BhbiB7CiAgb3BhY2l0eTogMC43NTsKfQoKLnRyZWVfX25vZGUtLWRyb3AtaW5zaWRlID4gLnRyZWVfX2xhYmVsID4gc3BhbiB7CiAgei1pbmRleDogMzsKICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1zdWJ0bGUtYmFja2dyb3VuZC1jb2xvcik7CiAgYm9yZGVyLWNvbG9yOiB2YXIoLS11aS1hY2NlbnQtY29sb3IpOwp9CgoudHJlZV9fbm9kZS0tZHJvcC1pbnNpZGUgPiAudHJlZV9fbGFiZWwgPiBzcGFuW2RhdGEtY3VycmVudC1wYWdlPSJ0cnVlIl0gewoJY29sb3I6IHZhcigtLXRyZWV2aWV3LXBhZ2UtY29sb3IpOwp9",mtime:1718054999048},"assets/sortable-tree/sortable-tree.js":{data:"data:application/javascript;base64,LyohIFNvcnRhYmxlIFRyZWUgMC43LjIsIChjKSAyMDI0IE1hcmMgQW50b24gRGFobWVuLCBNSVQgbGljZW5zZSAqLwovKiBNb2RpZmllZCBieSBNck11Z2FtZSAoaHR0cHM6Ly9naXRodWIuY29tL21hcmNhbnRvbmRhaG1lbi9zb3J0YWJsZS10cmVlL3B1bGwvMTEpICovCiFmdW5jdGlvbiAoZSwgdCkgeyAib2JqZWN0IiA9PSB0eXBlb2YgZXhwb3J0cyAmJiAib2JqZWN0IiA9PSB0eXBlb2YgbW9kdWxlID8gbW9kdWxlLmV4cG9ydHMgPSB0KCkgOiAiZnVuY3Rpb24iID09IHR5cGVvZiBkZWZpbmUgJiYgZGVmaW5lLmFtZCA/IGRlZmluZShbXSwgdCkgOiAib2JqZWN0IiA9PSB0eXBlb2YgZXhwb3J0cyA/IG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VzICYmIHRoaXMucmVuZGVyKHsgbm9kZXM6IGUubm9kZXMsIGVsZW1lbnQ6IG8uc3Vibm9kZXMgfSwgbikgfSkpIH0gcGFyc2VUcmVlKGUpIHsgY29uc3QgdCA9IEFycmF5LmZyb20oZS5xdWVyeVNlbGVjdG9yQWxsKGA6c2NvcGUgPiAke3UuVEFHX05BTUV9YCkpLCBuID0gW107IHJldHVybiB0LmZvckVhY2goKGUgPT4geyBuLnB1c2goeyBlbGVtZW50OiBlLCBpZDogZS5pZCwgc3Vibm9kZXM6IHRoaXMucGFyc2VUcmVlKGUuc3Vibm9kZXMpIH0pIH0pKSwgbiB9IH07IHJldHVybiB0ID0gdC5kZWZhdWx0IH0pKCkpKTs=",mtime:1718054999049},"assets/sortable-tree/sortable-tree.css":{data:"data:text/css;base64,LyohIFNvcnRhYmxlIFRyZWUgMC43LjIsIChjKSAyMDIzIE1hcmMgQW50b24gRGFobWVuLCBNSVQgbGljZW5zZSAqLwo6cm9vdCB7CiAgICAtLXN0LWxhYmVsLWhlaWdodDogMi41cmVtOwogICAgLS1zdC1zdWJub2Rlcy1wYWRkaW5nLWxlZnQ6IDEuNXJlbTsKICAgIC0tc3QtY29sbGFwc2UtaWNvbi1oZWlnaHQ6IHZhcigtLXN0LWxhYmVsLWhlaWdodCk7CiAgICAtLXN0LWNvbGxhcHNlLWljb24td2lkdGg6IDEuMjVyZW07CiAgICAtLXN0LWNvbGxhcHNlLWljb24tc2l6ZTogMC43NXJlbTsKICB9CiAgc29ydGFibGUtdHJlZS1ub2RlIHsKICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgIHotaW5kZXg6IDE7CiAgICBkaXNwbGF5OiBmbGV4OwogICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICB9CiAgc29ydGFibGUtdHJlZS1ub2RlICogewogICAgdXNlci1zZWxlY3Q6IG5vbmU7CiAgfQogIHNvcnRhYmxlLXRyZWUtbm9kZSA+IDpmaXJzdC1jaGlsZCB7CiAgICBkaXNwbGF5OiBmbGV4OwogICAgYWxpZ24taXRlbXM6IGNlbnRlcjsKICAgIGhlaWdodDogdmFyKC0tc3QtbGFiZWwtaGVpZ2h0KTsKICB9CiAgc29ydGFibGUtdHJlZS1ub2RlID4gOm50aC1jaGlsZCgyKSB7CiAgICBkaXNwbGF5OiBub25lOwogICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICAgIHBhZGRpbmctbGVmdDogdmFyKC0tc3Qtc3Vibm9kZXMtcGFkZGluZy1sZWZ0KTsKICB9CiAgc29ydGFibGUtdHJlZS1ub2RlW29wZW5dID4gZGl2Om50aC1jaGlsZCgyKSB7CiAgICBkaXNwbGF5OiBmbGV4OwogIH0KICBzb3J0YWJsZS10cmVlLW5vZGUgPiA6bnRoLWNoaWxkKDMpIHsKICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgIGRpc3BsYXk6IGZsZXg7CiAgICBhbGlnbi1pdGVtczogY2VudGVyOwogICAgdG9wOiAwOwogICAgbGVmdDogY2FsYyh2YXIoLS1zdC1jb2xsYXBzZS1pY29uLXdpZHRoKSAqIC0xKTsKICAgIGhlaWdodDogdmFyKC0tc3QtY29sbGFwc2UtaWNvbi1oZWlnaHQpOwogICAgZm9udC1zaXplOiB2YXIoLS1zdC1jb2xsYXBzZS1pY29uLXNpemUpOwogICAgY3Vyc29yOiBwb2ludGVyOwogIH0KICBzb3J0YWJsZS10cmVlLW5vZGUgPiA6bnRoLWNoaWxkKDIpOmVtcHR5ICsgc3BhbiB7CiAgICBkaXNwbGF5OiBub25lOwogIH0KICAKICA=",mtime:1718054999049}},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"}}}},Oa={manifest:It,functionMapping:ht};je(ht,It);export{Oa as plug};