"use strict";vart=Object.defineProperty,e=Object.defineProperties,i=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,a=(e,i,n)=>iine?t(e,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[i]=n,h=(t,e)=>{for(variine||(e={}))o.call(e,i)&&a(t,i,e[i]);if(s)for(variofs(e))r.call(e,i)&&a(t,i,e[i]);returnt},l=(t,n)=>e(t,i(n)),d=require("obsidian"),c=require("electron"),u=require("fs"),p=require("crypto"),m=require("path");functionf(t){if(t&&t.__esModule)returnt;vare=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});returnt&&Object.keys(t).forEach((function(i){if("default"!==i){varn=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:function(){returnt[i]}})}})),e.default=t,Object.freeze(e)}varg=f(c),v=f(u),A=f(p),y=f(m);varx={"Open as mindmap board":"Open as mindmap","Create new mindmap":"Create new mindmap","New mindmap board":"New mindmap board","Untitled mindmap":"Untitled mindmap","Open as markdown":"Open as markdown","Sub title":"Sub title","Export to opml":"Export to opml","Export to image":"Export to image","Canvas size":"Canvas size","Canvas size desc":"Width and height of the canvas","Canvas background":"Canvas background","Canvas background desc":"Background color of canvas","Max level of node to markdown head":"Max level of node to create a Heading","Max level of node to markdown head desc":"Specify which Node Level creates a seperate Heading instead of a List-Item","Font size":"Font Size","Font size desc":"Specify the Font Size","Mind map layout direct":"Mindmap Layout","Mind map layout direct desc":"Specify the direction the nodes are placed in your Mindmap",Right:"Right",Left:"Left",Centered:"Centered","Open PDF File":"Open PDF file...","Save Image error,Please try again":"Save image error,please try again","Creating Rect Annotate":"Creating rect annotate...","Cancel Create Rect Annotate":"Cancel create rect annotate","File Is Not Exist":"File is not exist","Open File Error":"Open file error","PDF Cannot Open More Instances":"PDF reader cannot open more instances","Create Rect Annotate":"Created rect annotate","Stroke Array":"Stroke Color","Stroke Array Desc":"Node link color base on this value or random color","PDFJs Plugin Path":"PDF reader path","PDFJs Plugin Path Desc":"If you want to use PDF annotation,You need download pdf js plugin and set up this value","Andriod pdfjs Plugin Path":"Andriod pdf reader path","Ios pdfjs Plugin Path":"Ios pdf reader path","Mac pdfjs Plugin Path":"Mac pdfjs Plugin Path","PDF Path":"PDF store path","PDF Annotate Path":"PDF annotate store path","PDF Image Path":"Image store path of PDF rect annotate","Miss PDF Reader Path":"Miss PDF plugin path,you need download Pdf js plugin,and set up value of PDF reader path","Please Use Rich Mode":"Please change yaml mindmap-plugin basic to rich","The probation period has ended":"The probation period has ended or active code has expired",Rect:"Rect",Circle:"Circle",Pointer:"Pointer","Show MindMap":"Show mind map","Hide MindMap":"Hide mind map","Open Protocol":"Support protocol","Open Protocol Desc":"Support protocol like 'obsidian://{protocol name}' for function of jump to pdf annotate",Protocol:"Protocol","Protocol Desc":"Protocol name",Open:"Open",Close:"Close","Open as outline":"Open as outline","Show Annotate":"Show annotate","Annotation save type":"PDF annotation save type","Annotation save type desc":"The type of save pdf annotation,there are two file types:`annos` and `md`,`annos` as default,`annos` is `json` file in fact ","Export annotate pdf":"Export annotate pdf","Export annotate pdf tip":"This is a time-consuming operation. Please wait patiently","Export annotate pdf success":"Export pdf success","Export annotate pdf error":"Export pdf error","Active Code":"Active code","Active Code Desc":"You can active markmind by use this value. Web site:<https://www.markmind.net>","Active error":"Active code error","Active success":"Active success","Annotate PDF":"Annotate PDF","Ann
*/Zd.exports=functiont(e,i,n){functions(r,a){if(!i[r]){if(!e[r]){varh="function"==typeofrequire&&require;if(!a&&h)returnh(r,!0);if(o)returno(r,!0);varl=newError("Cannot find module '"+r+"'");throwl.code="MODULE_NOT_FOUND",l}vard=i[r]={exports:{}};e[r][0].call(d.exports,(function(t){returns(e[r][1][t]||t)}),d,d.exports,t,e,i,n)}returni[r].exports}for(varo="function"==typeofrequire&&require,r=0;r<n.length;r++)s(n[r]);returns}({1:[function(t,e,i){varn=t("./utils"),s=t("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(t){for(vare,i,s,r,a,h,l,d=[],c=0,u=t.length,p=u,m="string"!==n.getTypeOf(t);c<t.length;)p=u-c,s=m?(e=t[c++],i=c<u?t[c++]:0,c<u?t[c++]:0):(e=t.charCodeAt(c++),i=c<u?t.charCodeAt(c++):0,c<u?t.charCodeAt(c++):0),r=e>>2,a=(3&e)<<4|i>>4,h=1<p?(15&i)<<2|s>>6:64,l=2<p?63&s:64,d.push(o.charAt(r)+o.charAt(a)+o.charAt(h)+o.charAt(l));returnd.join("")},i.decode=function(t){vare,i,n,r,a,h,l=0,d=0,c="data:";if(t.substr(0,c.length)===c)thrownewError("Invalid base64 input, it looks like a data url.");varu,p=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===o.charAt(64)&&p--,t.charAt(t.length-2)===o.charAt(64)&&p--,p%1!=0)thrownewError("Invalid base64 input, bad content length.");for(u=s.uint8array?newUint8Array(0|p):newArray(0|p);l<t.length;)e=o.indexOf(t.charAt(l++))<<2|(r=o.indexOf(t.charAt(l++)))>>4,i=(15&r)<<4|(a=o.indexOf(t.charAt(l++)))>>2,n=(3&a)<<6|(h=o.indexOf(t.charAt(l++))),u[d++]=e,64!==a&&(u[d++]=i),64!==h&&(u[d++]=n);returnu}},{"./support":30,"./utils":32}],2:[function(t,e,i){varn=t("./external"),s=t("./stream/DataWorker"),o=t("./stream/Crc32Probe"),r=t("./stream/DataLengthProbe");functiona(t,e,i,n,s){this.compressedSize=t,this.uncompressedSize=e,this.crc32=i,this.compression=n,this.compressedContent=s}a.prototype={getContentWorker:function(){vart=news(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(newr("data_length")),e=this;returnt.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)thrownewError("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){returnnews(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},a.createWorkerFrom=function(t,e,i){returnt.pipe(newo).pipe(newr("uncompressedSize")).pipe(e.compressWorker(i)).pipe(newr("compressedSize")).withStreamInfo("compression",e)},e.exports=a},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,i){varn=t("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){returnnewn("STORE compression")},uncompressWorker:function(){returnnewn("STORE decompression")}},i.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,i){varn=t("./utils"),s=function(){for(vart,e=[],i=0;i<256;i++){t=i;for(varn=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[i]=t}returne}();e.exports=function(t,e){returnvoid0!==t&&t.length?"string"!==n.getTypeOf(t)?function(t,e,i,n){varo=s,r=0+i;t^=-1;for(vara=0;a<r;a++)t=t>>>8^o[255&(t^e[a])];return~t}(0|e,t,t.length):function(t,e,i,n){varo=s,r=0+i;t^=-1;for(vara=0;a<r;a++)t=t>>>8^o[255&(t^e.charCodeAt(a))];return~t}(0|e,t,t.length):0}},{"./utils":32}],5:[function(t,e,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(t,e,i){varn;n="undefined"!=typeofPromise?Promise:t("lie"),e.exports={Promise:n}},{lie:37}],7:[function(t,e,i){varn="undefined"!=typeofUint8Array&&"undefined"!=typeofUint16Array&&"undefined"!=typeofUint32Array,s=t("pako"),o=t("./utils"),r=t("./stream/GenericWorker"),a=n?"uint8array":"array";functionh(t,e){r.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}i
*/_d="undefined"!=typeofwindow?window:bl,$d=function(t,e){vari=[],n=Object.getPrototypeOf,s=i.slice,o=i.flat?function(t){returni.flat.call(t)}:function(t){returni.concat.apply([],t)},r=i.push,a=i.indexOf,h={},l=h.toString,d=h.hasOwnProperty,c=d.toString,u=c.call(Object),p={},m=function(t){return"function"==typeoft&&"number"!=typeoft.nodeType&&"function"!=typeoft.item},f=function(t){returnnull!=t&&t===t.window},g=t.document,v={type:!0,src:!0,nonce:!0,noModule:!0};functionA(t,e,i){varn,s,o=(i=i||g).createElement("script");if(o.text=t,e)for(ninv)(s=e[n]||e.getAttribute&&e.getAttribute(n))&&o.setAttribute(n,s);i.head.appendChild(o).parentNode.removeChild(o)}functiony(t){returnnull==t?t+"":"object"==typeoft||"function"==typeoft?h[l.call(t)]||"object":typeoft}varx="3.7.1",w=/HTML$/i,b=function(t,e){returnnewb.fn.init(t,e)};functionE(t){vare=!!t&&"length"int&&t.length,i=y(t);return!m(t)&&!f(t)&&("array"===i||0===e||"number"==typeofe&&e>0&&e-1int)}functionC(t,e){returnt.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}b.fn=b.prototype={jquery:x,constructor:b,length:0,toArray:function(){returns.call(this)},get:function(t){returnnull==t?s.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){vare=b.merge(this.constructor(),t);returne.prevObject=this,e},each:function(t){returnb.each(this,t)},map:function(t){returnthis.pushStack(b.map(this,(function(e,i){returnt.call(e,i,e)})))},slice:function(){returnthis.pushStack(s.apply(this,arguments))},first:function(){returnthis.eq(0)},last:function(){returnthis.eq(-1)},even:function(){returnthis.pushStack(b.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){returnthis.pushStack(b.grep(this,(function(t,e){returne%2})))},eq:function(t){vare=this.length,i=+t+(t<0?e:0);returnthis.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){returnthis.prevObject||this.constructor()},push:r,sort:i.sort,splice:i.splice},b.extend=b.fn.extend=function(){vart,e,i,n,s,o,r=arguments[0]||{},a=1,h=arguments.length,l=!1;for("boolean"==typeofr&&(l=r,r=arguments[a]||{},a++),"object"==typeofr||m(r)||(r={}),a===h&&(r=this,a--);a<h;a++)if(null!=(t=arguments[a]))for(eint)n=t[e],"__proto__"!==e&&r!==n&&(l&&n&&(b.isPlainObject(n)||(s=Array.isArray(n)))?(i=r[e],o=s&&!Array.isArray(i)?[]:s||b.isPlainObject(i)?i:{},s=!1,r[e]=b.extend(l,o,n)):void0!==n&&(r[e]=n));returnr},b.extend({expando:"jQuery"+(x+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){thrownewError(t)},noop:function(){},isPlainObject:function(t){vare,i;return!(!t||"[object Object]"!==l.call(t)||(e=n(t))&&("function"!=typeof(i=d.call(e,"constructor")&&e.constructor)||c.call(i)!==u))},isEmptyObject:function(t){vare;for(eint)return!1;return!0},globalEval:function(t,e,i){A(t,{nonce:e&&e.nonce},i)},each:function(t,e){vari,n=0;if(E(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);elsefor(nint)if(!1===e.call(t[n],n,t[n]))break;returnt},text:function(t){vare,i="",n=0,s=t.nodeType;if(!s)for(;e=t[n++];)i+=b.text(e);return1===s||11===s?t.textContent:9===s?t.documentElement.textContent:3===s||4===s?t.nodeValue:i},makeArray:function(t,e){vari=e||[];returnnull!=t&&(E(Object(t))?b.merge(i,"string"==typeoft?[t]:t):r.call(i,t)),i},inArray:function(t,e,i){returnnull==e?-1:a.call(e,t,i)},isXMLDoc:function(t){vare=t&&t.namespaceURI,i=t&&(t.ownerDocument||t).documentElement;return!w.test(e||i&&i.nodeName||"HTML")},merge:function(t,e){for(vari=+e.length,n=0,s=t.length;n<i;n++)t[s++]=e[n];returnt.length=s,t},grep:function(t,e,i){for(varn=[],s=0,o=t.length,r=!i;s<o;s++)!e(t[s],s)!==r&&n.push(t[s]);returnn},map:function(t,e,i){varn,s,r=0,a=[];if(E(t))for(n=t.length;r<n;r++)null!=(s=e(t[r],r,i))&&a.push(s);elsefor(rint)null!=(s=e(t[r],r,i))&&a.push(s);returno(a)},guid:1,support:p}),"function"==typeofSymbol&&(b.fn[Symbol.iterator]=i[Symbol.iterator]),b.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){h["[object "+e+"]"]=e.toLowerCase()}));vark=i.pop,I=i.sort,B=i.splice,D="[\\x20\\t\\r\\n\\f]",M=newRegExp("^"+D+"+|((?
/*! markmap-common v0.1.5 | MIT License */class o{constructor(){this.listeners=[]}tap(t){return this.listeners.push(t),()=>this.revoke(t)}revoke(t){const e=this.listeners.indexOf(t);e>=0&&this.listeners.splice(e,1)}revokeAll(){this.listeners.splice(0)}call(...t){for(const e of this.listeners)e(...t)}}function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function a(t){return t.replace(/[&<"]/g,(t=>({"&":"&","<":"<",'"':"""}[t])))}functionh(t,e){return`<${t}${e?Object.entries(e).map((([t,e])=>{if(null!=e&&!1!==e)returnt=` ${a(t)}`,!0===e?t:`${t}="${a(e)}"`})).filter(Boolean).join(""):""}>`}functionl(t,e,i){returnnull==e?h(t,i):h(t,i)+(e||"")+`</${t}>`}functiond(t,e){returnt.map((t=>{if("script"===t.type)returnl("script","",t.data);if("iife"===t.type){const{fn:i,getParams:n}=t.data;returnl("script",function(t,e){consti=e.map((t=>"function"==typeoft?t.toString():JSON.stringify(null!=t?t:null))).join(",");return`(${t.toString()})(${i})`}(i,(null==n?void0:n(e))||[]).replace(/<(\/script>)/g,"\\x3c$2"))}return""}))}functionc(t,e,i){constn=document.createElement(t);returne&&Object.entries(e).forEach((([t,e])=>{n[t]=e})),i&&Object.entries(i).forEach((([t,e])=>{n.setAttribute(t,e)})),n}Math.random().toString(36).slice(2,8);constu=function(t){conste={};returnfunction(...i){constn=`${i[0]}`;lets=e[n];returns||(s={value:t(...i)},e[n]=s),s.value}}((t=>{document.head.append(c("link",{rel:"preload",as:"script",href:t}))}));functionp(t,e){if("script"===t.type)returnnewPromise(((e,i)=>{varn;document.head.append(c("script",r({},t.data,{onload:e,onerror:i}))),null!=(n=t.data)&&n.src||e()}));if("iife"===t.type){const{fn:i,getParams:n}=t.data;i(...(null==n?void0:n(e))||[])}}asyncfunctionm(t,e){consti=t.filter((t=>{vare;return"script"===t.type&&(null==(e=t.data)?void0:e.src)}));i.length>1&&i.forEach((t=>u(t.data.src))),e=r({getMarkmap:()=>window.markmap},e);for(constnoft)awaitp(n,e)}constf=["https://cdn.jsdelivr.net/npm/d3@6.6.0","https://cdn.jsdelivr.net/npm/markmap-view@0.2.6"].map((t=>({type:"script",data:{src:t}})));varg={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",b