wpcê¹§webpack/lib/cache/PackFileCacheStrategy�PackContentItems€@·DResolverCachePlugin|normal|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|fullySpecified=|true|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden|request=|./pages/index.js­ResolverCachePlugin|normal|dependencyType=|esm|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden|request=|./pages/index.jsBCompilation/modules|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.jsNResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages|request=|../components/LayoutFResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages|request=|../lib/utilsRResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages|request=|../components/FolderTreeQResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages|request=|../components/MDContentÅResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|esm|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages|request=|next/dynamicHResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages|request=|../components/LayoutLResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages|request=|../components/FolderTreeKResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages|request=|../components/MDContent@ResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages|request=|../lib/utilsÍResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|esm|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages|request=|../components/LayoutÑResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|esm|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages|request=|../components/FolderTreeĞResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|esm|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages|request=|../components/MDContentHCompilation/modules|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/Layout.jsLCompilation/modules|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/FolderTree.js�Compilation/modules|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dynamic.jsÅResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|esm|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages|request=|../lib/utils@Compilation/modules|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib/utils.jsHResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components|request=|next/headLResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components|request=|@mui/materialPResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components|request=|@mui/lab/TreeView]ResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components|request=|@mui/icons-material/ExpandMore_ResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components|request=|@mui/icons-material/ChevronRightPResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components|request=|@mui/lab/TreeItemJResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components|request=|next/routerSResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components|request=|@mui/material/stylesRResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components|request=|@mui/material/AlertWResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components|request=|@mui/material/AlertTitleYResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next|request=|./dist/shared/lib/dynamicâResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|unknown|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next|request=|./dist/shared/lib/dynamic`Compilation/modules|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/shared/lib/dynamic.js>ResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib|request=|./nodeEResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib|request=|./transformer?ResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib|request=|unifiedDResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib|request=|remark-parseLResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib|request=|mdast-util-to-string<ResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib|request=|path:ResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib|request=|fs@ResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib|request=|directory-tree8ResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib|request=|./node?ResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib|request=|./transformerBResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components|request=|next/headDResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components|request=|next/routerDResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden|request=|next/head½ResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|esm|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib|request=|./nodeÄResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|esm|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib|request=|./transformer±Compilation/modules|external commonjs "next/head"?Compilation/modules|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib/node.jsFCompilation/modules|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib/transformer.jsZResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/shared/lib|request=|./loadableFResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden|request=|next/routerJResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components|request=|@mui/lab/TreeViewJResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components|request=|@mui/lab/TreeItemMResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components|request=|@mui/material/stylesLResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components|request=|@mui/material/AlertQResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components|request=|@mui/material/AlertTitleWResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components|request=|@mui/icons-material/ExpandMoreYResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components|request=|@mui/icons-material/ChevronRight³Compilation/modules|external commonjs "next/router"HResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden|request=|@mui/materialµCompilation/modules|external commonjs "@mui/material"YResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden|request=|@mui/icons-material/ExpandMore[ResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden|request=|@mui/icons-material/ChevronRightÈCompilation/modules|external commonjs "next/dist/shared/lib/loadable.js"ÆCompilation/modules|external commonjs "@mui/icons-material/ExpandMore"ÈCompilation/modules|external commonjs "@mui/icons-material/ChevronRight"CResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib|request=|gray-matterHResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib|request=|remark-wiki-linkCResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib|request=|remark-htmlJResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib|request=|remark-frontmatterMResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib|request=|remark-external-linksKResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib|request=|remark-highlight.jsIResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib|request=|rehype-prism-plusEResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib|request=|remark-rehypeHResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib|request=|rehype-stringifyKResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib|request=|./obsidian-image.js?ResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib|request=|./utils9ResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib|request=|./utils¾ResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|esm|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib|request=|./utilsÊResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|esm|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib|request=|./obsidian-image.jsHResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden|request=|mdast-util-to-string?ResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden|request=|pathICompilation/modules|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib/obsidian-image.jsºCompilation/modules|external module "mdast-util-to-string"¬Compilation/modules|external commonjs "path"BResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden|request=|unified¯Compilation/modules|external commonjs "unified"GResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden|request=|remark-parse´Compilation/modules|external commonjs "remark-parse"IResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden|request=|directory-treeSResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden|request=|@mui/material/AlertTitleOResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden|request=|@mui/material/stylesNResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden|request=|@mui/material/Alert¶Compilation/modules|external commonjs "directory-tree"ÀCompilation/modules|external commonjs "@mui/material/AlertTitle"¼Compilation/modules|external commonjs "@mui/material/styles"»Compilation/modules|external commonjs "@mui/material/Alert"HResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib|request=|unist-util-visit4ResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib|request=|fs¯Compilation/modules|external node-commonjs "fs"LResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden|request=|@mui/lab/TreeViewLResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden|request=|@mui/lab/TreeItem¹Compilation/modules|external commonjs "@mui/lab/TreeView"¹Compilation/modules|external commonjs "@mui/lab/TreeItem"AResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden|request=|remark-rehype³Compilation/modules|external module "remark-rehype"DResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden|request=|rehype-stringifyFResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden|request=|gray-matterPResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden|request=|remark-external-linksMResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden|request=|remark-frontmatterFResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden|request=|remark-html¶Compilation/modules|external module "rehype-stringify"³Compilation/modules|external commonjs "gray-matter"½Compilation/modules|external commonjs "remark-external-links"ºCompilation/modules|external commonjs "remark-frontmatter"³Compilation/modules|external commonjs "remark-html"EResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden|request=|rehype-prism-plusKResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden|request=|remark-wiki-linkNResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden|request=|remark-highlight.js·Compilation/modules|external module "rehype-prism-plus"¸Compilation/modules|external commonjs "remark-wiki-link"»Compilation/modules|external commonjs "remark-highlight.js"DResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden|request=|unist-util-visit¶Compilation/modules|external module "unist-util-visit"YCompilation/codeGeneration|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js|webpack-runtime_Compilation/codeGeneration|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/Layout.js|webpack-runtimecCompilation/codeGeneration|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/FolderTree.js|webpack-runtime¦Compilation/codeGeneration|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dynamic.js|webpack-runtimeWCompilation/codeGeneration|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib/utils.js|webpack-runtimewCompilation/codeGeneration|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/shared/lib/dynamic.js|webpack-runtimeÈCompilation/codeGeneration|external commonjs "next/head"|webpack-runtimeVCompilation/codeGeneration|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib/node.js|webpack-runtime]Compilation/codeGeneration|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib/transformer.js|webpack-runtimeÊCompilation/codeGeneration|external commonjs "next/router"|webpack-runtimeÌCompilation/codeGeneration|external commonjs "@mui/material"|webpack-runtimeßCompilation/codeGeneration|external commonjs "next/dist/shared/lib/loadable.js"|webpack-runtimeİCompilation/codeGeneration|external commonjs "@mui/icons-material/ExpandMore"|webpack-runtimeßCompilation/codeGeneration|external commonjs "@mui/icons-material/ChevronRight"|webpack-runtime`Compilation/codeGeneration|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib/obsidian-image.js|webpack-runtimeÑCompilation/codeGeneration|external module "mdast-util-to-string"|webpack-runtimeÃCompilation/codeGeneration|external commonjs "path"|webpack-runtimeÆCompilation/codeGeneration|external commonjs "unified"|webpack-runtimeËCompilation/codeGeneration|external commonjs "remark-parse"|webpack-runtimeÍCompilation/codeGeneration|external commonjs "directory-tree"|webpack-runtime×Compilation/codeGeneration|external commonjs "@mui/material/AlertTitle"|webpack-runtimeÓCompilation/codeGeneration|external commonjs "@mui/material/styles"|webpack-runtimeÒCompilation/codeGeneration|external commonjs "@mui/material/Alert"|webpack-runtimeÆCompilation/codeGeneration|external node-commonjs "fs"|webpack-runtimeĞCompilation/codeGeneration|external commonjs "@mui/lab/TreeView"|webpack-runtimeĞCompilation/codeGeneration|external commonjs "@mui/lab/TreeItem"|webpack-runtimeÊCompilation/codeGeneration|external module "remark-rehype"|webpack-runtimeÍCompilation/codeGeneration|external module "rehype-stringify"|webpack-runtimeÊCompilation/codeGeneration|external commonjs "gray-matter"|webpack-runtimeÔCompilation/codeGeneration|external commonjs "remark-external-links"|webpack-runtimeÑCompilation/codeGeneration|external commonjs "remark-frontmatter"|webpack-runtimeÊCompilation/codeGeneration|external commonjs "remark-html"|webpack-runtimeÎCompilation/codeGeneration|external module "rehype-prism-plus"|webpack-runtimeÏCompilation/codeGeneration|external commonjs "remark-wiki-link"|webpack-runtimeÒCompilation/codeGeneration|external commonjs "remark-highlight.js"|webpack-runtimeÍCompilation/codeGeneration|external module "unist-util-visit"|webpack-runtimeÇCompilation/codeGeneration|webpack/runtime/async module|webpack-runtime£Compilation/assets|chunkpages/indexHResolverCachePlugin|normal|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|fullySpecified=|true|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden|request=|./pages/note/[id].js±ResolverCachePlugin|normal|dependencyType=|esm|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden|request=|./pages/note/[id].jsFCompilation/modules|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].jsHResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note|request=|next/headVResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note|request=|../../components/LayoutNResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note|request=|../../lib/utilsZResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note|request=|../../components/FolderTreeYResolverCachePlugin|normal|fullySpecified=|true|dependencyType=|esm|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|import|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|alias=|false|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note|request=|../../components/MDContentÊResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|esm|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note|request=|next/dynamicPResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note|request=|../../components/LayoutHResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note|request=|../../lib/utilsTResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note|request=|../../components/FolderTreeSResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note|request=|../../components/MDContentBResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|commonjs|modules=[|0=|node_modules|]|fallback=|false|exportsFields=[|0=|exports|]|importsFields=[|0=|imports|]|conditionNames=[|0=|node|1=|require|]|descriptionFiles=[|0=|package.json|]|extensions=[|0=|.js|1=|.json|2=|.node|]|enforceExtensions=|false|symlinks=|true|mainFields=[|0=|main|]|mainFiles=[|0=|index|]|roots=[|]|preferRelative=|false|preferAbsolute=|false|restrictions=[|]|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note|request=|next/headÕResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|esm|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note|request=|../../components/LayoutÍResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|esm|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note|request=|../../lib/utilsÙResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|esm|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note|request=|../../components/FolderTreeØResolverCachePlugin|normal|fullySpecified=|false|dependencyType=|esm|path=|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note|request=|../../components/MDContent]Compilation/codeGeneration|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].js|webpack-runtime¥webpack/lib/cache/ResolverCachePlugin€€`�_ResolverCachePluginCacheMiss‡context„path‡request…queryˆfragment†module‰directory„fileˆinternal�fullySpecified“descriptionFilePath“descriptionFileData“descriptionFileRootŒrelativePathm/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js€€0k/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/package.json„name‡version‡private‡scriptsŒdependencies�devDependencies†my-app…0.1.0ƒdev…build…start†deploy¢rm -rf graph-data.json && next dev¤rm -rf graph-data.json && next buildŠnext startºyarn build && git add . && git commit -m '...' && git push`&�@emotion/cache�@emotion/react�@emotion/server�@emotion/styled“@mui/icons-materialˆ@mui/lab�@mui/material’cytoscape-d3-force™cytoscape-node-html-label‚d3�directory-tree‚fs‹gray-matterŠjsnetworkx”mdast-util-to-string„next�next-plausibleË…react‘react-cytoscapejs‰react-dom‘react-folder-tree‘rehype-prism-plusŒrehype-react�rehype-stringify†remark�remark-collapse•remark-external-links“remark-highlight.js‹remark-htmlŒremark-parse§remark-preset-lint-markdown-style-guide�remark-rehype�remark-wiki-linkˆto-vfile‡unified�unist-util-visit�vfile-reporter†latestÿÿÿÿÿÿ†^1.1.4†^1.2.1†^6.2.0†^3.2.2�^0.0.1-security†^4.0.2†^0.3.4†^3.1.0‚12†^3.1.9‡^0.12.7‡^17.0.2õÿ†^5.0.3†^1.3.2†^7.0.4†^9.0.3‡^13.0.0†^0.1.2†^8.0.0†^6.0.0‡^13.0.1†^9.0.0†^4.0.0‡^10.1.0†^1.0.0†^6.1.0†^9.2.0†^4.1.0†^6.0.1…bimap‰cytoscape†eslint’eslint-config-next’remark-frontmatterŒremark-react�remark-stringify„uuid‡^0.0.15‡^3.17.0†8.13.0†12.1.5†^3.0.0æé†^8.3.2^/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden�./pages/index.jsšwebpack/lib/FileSystemInfoˆSnapshot@ƒ  Óu4]xBq/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/package.json
€@  Óu4]xB�d/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pagesˆsafeTimeˆaccuracy‰timestamp  Be3]xB
 €Ae3]xB@  Óu4]xBˆü Be3]xB
 pAe3]xB  Óu4]xBğO/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes</Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects3/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air‘/Users/wyattwalsh†/Users�/÷÷÷÷÷÷÷uÿÿÿ†issuer‹issuerLayerˆcompiler€†serverqÿÿÿ€€ rÿÿÿÛÜİ@� °Óu4]xBß
ô˜webpack/lib/NormalModule«webpack/lib/util/registerExternalSerializerŸwebpack-sources/SourceMapSourceimport { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
import Layout from "../components/Layout";
import { getSinglePost, getDirectoryData, convertObject, getFlattenArray, getLocalGraphData, constructGraphData } from "../lib/utils";
import FolderTree from "../components/FolderTree";
import dynamic from 'next/dynamic';
import MDContent from "../components/MDContent";
// This trick is to dynamically load component that interact with window object (browser only)
const DynamicGraph = dynamic(null, {
    loadableGenerated: {
        modules: [
            "index.js -> " + "../components/Graph"
        ]
    },
    loading: ()=>/*#__PURE__*/ _jsxDEV("p", {
            children: "Loading ..."
        }, void 0, false, {
            fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js",
            lineNumber: 18,
            columnNumber: 22
        }, this)
    ,
    ssr: false
});
export default function Home({ graphData , content , tree , flattenNodes , backLinks  }) {
    return(/*#__PURE__*/ _jsxDEV(Layout, {
        children: /*#__PURE__*/ _jsxDEV("div", {
            className: "container",
            children: [
                /*#__PURE__*/ _jsxDEV("nav", {
                    className: "nav-bar",
                    children: /*#__PURE__*/ _jsxDEV(FolderTree, {
                        tree: tree,
                        flattenNodes: flattenNodes
                    }, void 0, false, {
                        fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js",
                        lineNumber: 26,
                        columnNumber: 21
                    }, this)
                }, void 0, false, {
                    fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js",
                    lineNumber: 25,
                    columnNumber: 17
                }, this),
                /*#__PURE__*/ _jsxDEV(MDContent, {
                    content: content,
                    handleOpenNewContent: null,
                    backLinks: backLinks
                }, void 0, false, {
                    fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js",
                    lineNumber: 28,
                    columnNumber: 17
                }, this),
                /*#__PURE__*/ _jsxDEV(DynamicGraph, {
                    graph: graphData
                }, void 0, false, {
                    fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js",
                    lineNumber: 29,
                    columnNumber: 17
                }, this)
            ]
        }, void 0, true, {
            fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js",
            lineNumber: 24,
            columnNumber: 13
        }, this)
    }, void 0, false, {
        fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js",
        lineNumber: 23,
        columnNumber: 9
    }, this));
};
const { nodes , edges  } = constructGraphData();
export function getStaticProps() {
    const tree = convertObject(getDirectoryData());
    const contentData = getSinglePost("index");
    const flattenNodes = getFlattenArray(tree);
    const listOfEdges = edges.filter((anEdge)=>anEdge.target === "index"
    );
    const internalLinks = listOfEdges.map((anEdge)=>nodes.find((aNode)=>aNode.slug === anEdge.source
        )
    ).filter((element)=>element !== undefined
    );
    const backLinks = [
        ...new Set(internalLinks)
    ];
    const graphData = getLocalGraphData("index");
    return {
        props: {
            content: contentData.data,
            tree: tree,
            flattenNodes: flattenNodes,
            graphData: graphData,
            backLinks: backLinks
        }
    };
}
şwebpack://./node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!./pages/index.js{"version":3,"sources":["webpack://./pages/index.js"],"sourcesContent":["import Layout from \"../components/Layout\";\nimport {\n    getSinglePost,\n    getDirectoryData,\n    convertObject,\n    getFlattenArray,\n    getLocalGraphData,\n    constructGraphData\n} from \"../lib/utils\";\nimport FolderTree from \"../components/FolderTree\";\nimport dynamic from 'next/dynamic'\nimport MDContent from \"../components/MDContent\";\n\n\n// This trick is to dynamically load component that interact with window object (browser only)\nconst DynamicGraph = dynamic(\n    () => import('../components/Graph'),\n    { loading: () => <p>Loading ...</p>, ssr: false }\n)\n\nexport default function Home({graphData, content, tree, flattenNodes, backLinks}) {\n    return (\n        <Layout>\n            <div className = 'container'>\n                <nav className=\"nav-bar\">\n                    <FolderTree tree={tree} flattenNodes={flattenNodes}/>\n                </nav>\n                <MDContent content={content}  handleOpenNewContent={null} backLinks={backLinks}/>\n                <DynamicGraph graph={graphData}/>\n            </div>\n        </Layout>\n    );\n\n}\nconst {nodes, edges} = constructGraphData()\n\nexport function getStaticProps() {\n    const tree = convertObject(getDirectoryData());\n    const contentData = getSinglePost(\"index\");\n    const flattenNodes = getFlattenArray(tree)\n    const listOfEdges =   edges.filter(anEdge => anEdge.target === \"index\")\n    const internalLinks = listOfEdges.map(anEdge => nodes.find(aNode => aNode.slug === anEdge.source)).filter(element => element !== undefined)\n    const backLinks = [...new Set(internalLinks)]\n\n    const graphData = getLocalGraphData(\"index\");\n    return {\n        props: {\n            content: contentData.data,\n            tree: tree,\n            flattenNodes: flattenNodes,\n            graphData:graphData,\n            backLinks: backLinks\n        },\n    };\n}\n"],"names":["Layout","getSinglePost","getDirectoryData","convertObject","getFlattenArray","getLocalGraphData","constructGraphData","FolderTree","dynamic","MDContent","DynamicGraph","loading","p","ssr","Home","graphData","content","tree","flattenNodes","backLinks","div","className","nav","handleOpenNewContent","graph","nodes","edges","getStaticProps","contentData","listOfEdges","filter","anEdge","target","internalLinks","map","find","aNode","slug","source","element","undefined","Set","props","data"],"mappings":";AAAA,MAAM,CAACA,MAAM,MAAM,CAAsB;AACzC,MAAM,GACFC,aAAa,EACbC,gBAAgB,EAChBC,aAAa,EACbC,eAAe,EACfC,iBAAiB,EACjBC,kBAAkB,QACf,CAAc;AACrB,MAAM,CAACC,UAAU,MAAM,CAA0B;AACjD,MAAM,CAACC,OAAO,MAAM,CAAc;AAClC,MAAM,CAACC,SAAS,MAAM,CAAyB;AAG/C,EAA8F,AAA9F,4FAA8F;AAC9F,KAAK,CAACC,YAAY,GAAGF,OAAO;;;;;;IAEtBG,OAAO,4BAASC,CAAC;sBAAC,CAAW;;;;;;;IAAMC,GAAG,EAAE,KAAK;;AAGnD,MAAM,SAAS,QAAQ,CAACC,IAAI,CAAC,CAACC,CAAAA,SAAS,GAAEC,OAAO,GAAEC,IAAI,GAAEC,YAAY,GAAEC,SAAS,EAAA,CAAC,EAAE,CAAC;IAC/E,MAAM,uBACDnB,MAAM;wCACFoB,CAAG;YAACC,SAAS,EAAG,CAAW;;sCACvBC,CAAG;oBAACD,SAAS,EAAC,CAAS;oDACnBd,UAAU;wBAACU,IAAI,EAAEA,IAAI;wBAAEC,YAAY,EAAEA,YAAY;;;;;;;;;;;sCAErDT,SAAS;oBAACO,OAAO,EAAEA,OAAO;oBAAGO,oBAAoB,EAAE,IAAI;oBAAEJ,SAAS,EAAEA,SAAS;;;;;;sCAC7ET,YAAY;oBAACc,KAAK,EAAET,SAAS;;;;;;;;;;;;;;;;;AAK9C,CAAC;AACD,KAAK,CAAC,CAACU,CAAAA,KAAK,GAAEC,KAAK,EAAA,CAAC,GAAGpB,kBAAkB;AAEzC,MAAM,UAAUqB,cAAc,GAAG,CAAC;IAC9B,KAAK,CAACV,IAAI,GAAGd,aAAa,CAACD,gBAAgB;IAC3C,KAAK,CAAC0B,WAAW,GAAG3B,aAAa,CAAC,CAAO;IACzC,KAAK,CAACiB,YAAY,GAAGd,eAAe,CAACa,IAAI;IACzC,KAAK,CAACY,WAAW,GAAKH,KAAK,CAACI,MAAM,EAACC,MAAM,GAAIA,MAAM,CAACC,MAAM,KAAK,CAAO;;IACtE,KAAK,CAACC,aAAa,GAAGJ,WAAW,CAACK,GAAG,EAACH,MAAM,GAAIN,KAAK,CAACU,IAAI,EAACC,KAAK,GAAIA,KAAK,CAACC,IAAI,KAAKN,MAAM,CAACO,MAAM;;MAAGR,MAAM,EAACS,OAAO,GAAIA,OAAO,KAAKC,SAAS;;IAC1I,KAAK,CAACrB,SAAS,GAAG,CAAC;WAAG,GAAG,CAACsB,GAAG,CAACR,aAAa;IAAC,CAAC;IAE7C,KAAK,CAAClB,SAAS,GAAGV,iBAAiB,CAAC,CAAO;IAC3C,MAAM,CAAC,CAAC;QACJqC,KAAK,EAAE,CAAC;YACJ1B,OAAO,EAAEY,WAAW,CAACe,IAAI;YACzB1B,IAAI,EAAEA,IAAI;YACVC,YAAY,EAAEA,YAAY;YAC1BH,SAAS,EAACA,SAAS;YACnBI,SAAS,EAAEA,SAAS;QACxB,CAAC;IACL,CAAC;AACL,CAAC","file":"x"}‹exportsType‰namespace
�javascript/auto`Ô\ÿÿÿ

ı`‰cacheable†parsed�fileDependencies“contextDependencies“missingDependencies‘buildDependencies‘valueDependencies„hash†assetsŠassetsInfo†strict�exportsArgument”topLevelDeclarationsˆsnapshot˜webpack/lib/util/LazySet�/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js	™webpack/DefinePlugin_hashˆ36bf9f90�d8f8bd5f1e81774a“__webpack_exports__ŒDynamicGraph„Home…nodes…edges�getStaticProps ğÒu4]xB	Fÿÿÿ¼
·webpack/lib/dependencies/HarmonyCompatibilityDependency
dÿÿı¨webpack/lib/dependencies/ConstDependency€`:

`:€a;e

`*€`f@ì

@†€Aí

`2€A C

`#€ADt

`0¶webpack/lib/dependencies/HarmonyExportHeaderDependency	A
	A


cI`‰undefined	A ¤

c	AÎä	A¿ä

cG	`ºwebpack/lib/dependencies/HarmonyImportSideEffectDependency•react/jsx-dev-runtimeÿ

`:”../components/Layoutÿ

`*Œ../lib/utilsÿ

@†˜../components/FolderTreeÿ

`2Œnext/dynamicÿ

`#—../components/MDContentÿ

`0¹webpack/lib/dependencies/HarmonyImportSpecifierDependencya‡default‡dynamicAéğøøÿ

b†jsxDEV‡_jsxDEVAˆ�ëëÿ

c&¹webpack/lib/dependencies/HarmonyExportSpecifierDependency`Ëö

cGúûA3:ççÿ

c ò†LayoutA;A

ååÿ

c!'óôAelààÿ

c 'ğñAĞ×İİÿ

c%íîA7>ÚÚÿ

c,3åŠFolderTreeA?I

ÜÜÿ

c4>æçAıÓÓÿ

c,,%Ş‰MDContentA

ÙÙÿ

c,&,/ßàAÃ	Ê	ÌÌÿ

c55%’constructGraphDataşA

ÌÌÿ

cHH-««

cI`�convertObjectşAK
X
ÇÇÿ

cJJ�getDirectoryDataşAY
i
ÃÃÿ

cJJ/�getSinglePostşA†
“
¿¿ÿ

cKK%�getFlattenArrayşA·
Æ
»»ÿ

cLL(‘getLocalGraphDataşA*··ÿ

cVV'@ƒ ĞÓu4]xBÜşÿÿTÿÿÿ
@€Hÿÿÿv/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/package.jsonp/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/Layout@ƒ ĞÓu4]xBÓşÿÿKÿÿÿ
@€?ÿÿÿo/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib/package.jsonh/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib/utils@ƒ ĞÓu4]xBÊşÿÿBÿÿÿ
@€6ÿÿÿît/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/FolderTree@ƒ ĞÓu4]xBÂşÿÿ:ÿÿÿ
@€.ÿÿÿæs/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent
·şÿÿ
Eÿÿÿ¹şÿÿ@Fÿÿÿ{/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dynamic.js€€ }/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/package.json
`¸şÿÿ¹şÿÿ‹description„main‡licenseŠrepository„bugsˆhomepage…types…filesƒbin²şÿÿ…taskr²şÿÿ�peerDependencies”peerDependenciesMeta±şÿÿ‹resolutions‡engines”optionalDependencies‡gitHeadÉşÿÿ†12.1.0“The React Framework•./dist/server/next.jsƒMIT�vercel/next.js¨https://github.com/vercel/next.js/issues’https://nextjs.orgŠindex.d.ts`)„dist†app.jsˆapp.d.tsˆbabel.jsŠbabel.d.ts‰client.js‹client.d.ts‰config.js‹config.d.tsŒconstants.js�constants.d.ts‡data.js‰data.d.ts‹document.js�document.d.tsŠdynamic.jsŒdynamic.d.tsˆerror.jsŠerror.d.ts‰script.js‹script.d.ts‰server.js‹server.d.ts‡head.js‰head.d.tsˆimage.jsŠimage.d.ts‡link.js‰link.d.ts‰router.js‹router.d.ts‡jest.js‰jest.d.ts†amp.jsˆamp.d.tsŒstreaming.js�streaming.d.tsÚ�types/index.d.ts‘types/global.d.ts—image-types/global.d.ts
˜şÿÿ�./dist/bin/next
}şÿÿ‡releaseŠprepublishÀŠtypescriptŒncc-compiledÀ�taskr release�npm run release && yarn types½tsc --declaration --emitDeclarationOnly --declarationDir distštsc --noEmit --declarationœncc cache clean && taskr ncc
ˆrequires‘./taskfile-ncc.js‘./taskfile-swc.js
‰@next/envŒcaniuse-lite‡postcssŠstyled-jsx�use-subscription·�^1.0.30001283…8.4.5…5.0.0…1.5.1
†fibers‰node-sass{şÿÿ}şÿÿ„sassˆ>= 3.1.0�^6.0.0 || ^7.0.0”^17.0.2 || ^18.0.0-0ÿ†^1.3.0
øù÷
ˆoptional
ş
ı
@¯�@ampproject/toolbox-optimizer‘@babel/code-frame‹@babel/core”@babel/eslint-parser�@babel/generator§@babel/plugin-proposal-class-properties¬@babel/plugin-proposal-export-namespace-from¨@babel/plugin-proposal-numeric-separator©@babel/plugin-proposal-object-rest-spread›@babel/plugin-syntax-bigint£@babel/plugin-syntax-dynamic-import˜@babel/plugin-syntax-jsx¨@babel/plugin-transform-modules-commonjsŸ@babel/plugin-transform-runtime‘@babel/preset-env“@babel/preset-react˜@babel/preset-typescript�@babel/runtime�@babel/traverseŒ@babel/typesŒ@hapi/acceptŒ@napi-rs/cli�@napi-rs/triples•@next/polyfill-module—@next/polyfill-nomodule—@next/react-dev-overlay™@next/react-refresh-utils‰@next/swc“@peculiar/webcryptoŒ@taskr/clear�@taskr/esnextŒ@taskr/watch˜@types/amphtml-validator˜@types/babel__code-frame’@types/babel__core—@types/babel__generator–@types/babel__template–@types/babel__traverse�@types/ci-info’@types/compressionš@types/content-disposition“@types/content-type�@types/cookie’@types/cross-spawnŒ@types/debug‹@types/etagŒ@types/fresh“@types/jsonwebtoken“@types/lodash.curry�@types/lru-cache‘@types/micromatch‘@types/node-fetch•@types/path-to-regexpŒ@types/react�@types/react-dom�@types/react-is�@types/semver‹@types/send‘@types/styled-jsx‘@types/text-table“@types/ua-parser-js‹@types/uuid—@types/webpack-sources1‰@types/ws‹@vercel/ncc‹@vercel/nft…acorn‘amphtml-validatorƒarg†assert‹async-retryŠasync-sema�babel-plugin-transform-define®babel-plugin-transform-react-remove-prop-types�browserify-zlibŒbrowserslist†buffer…chalk‡ci-infoŠcli-selectŒcomment-json‹compression„conf”constants-browserify“content-dispositionŒcontent-type†cookie‹cross-spawn‘crypto-browserify�cssnano-simple…debug‡devalue�domain-browser„etag†events�find-cache-dir‡find-up�formdata-node…fresh�get-orientation„glob‰gzip-sizeŠhttp-proxy�https-browserifyŠicss-utils�ignore-loaderŠimage-size‰is-docker†is-wsl‹jest-worker…json5Œjsonwebtoken�loader-utils2�loader-utils3Œlodash.curry‰lru-cacheŠmicromatch—mini-css-extract-plugin†nanoidŠnative-url‰neo-asyncŠnode-fetch�node-html-parserƒora�os-browserify‡p-limit�path-browserify�path-to-regexp–postcss-flexbugs-fixesŸpostcss-modules-extract-imports postcss-modules-local-by-default•postcss-modules-scope–postcss-modules-values’postcss-preset-env“postcss-safe-parserŒpostcss-scss”postcss-value-parser‡processˆpunycode�querystring-es3ˆraw-bodyˆreact-is�react-refresh˜react-server-dom-webpack“regenerator-runtime‹sass-loader�schema-utils2�schema-utils3†semver„sendŒsetimmediateŠsource-map‘stream-browserify‹stream-http‹string-hash�string_decoderŠstrip-ansişşÿÿ†terserŠtext-table‘timers-browserify�tty-browserifyŒua-parser-jsˆunistore„utilşÿÿ�vm-browserify‰watchpack”web-streams-polyfillŠweb-vitals�webpack-sources1�webpack-sources3ˆwebpack4ˆwebpack5‚ws�2.7.1-alpha.0‡7.12.11†7.15.0‡7.13.14ş†7.14.5ÿÿ†7.14.7…7.8.3ÿıûûûıû†7.15.4úú…5.0.2…1.2.1…1.0.3êşÿÿêşÿÿêşÿÿêşÿÿêşÿÿ…1.1.7…1.1.0ÿÿ…1.0.0…7.0.2†7.1.12…7.6.2…7.4.0†7.11.0…2.0.0†0.0.36…0.5.4…1.1.3…0.3.3…6.0.0…4.1.5…1.8.0…0.5.0…8.3.7…4.1.6…5.1.0…4.0.2…2.3.4…1.7.0‡16.9.17†16.9.4†16.7.1…7.3.1†0.14.4…2.2.8…0.2.1†0.7.36…8.3.1 npm:@types/webpack-sources@0.1.5…8.2.0†0.33.1†0.17.5…8.5.0†1.0.35…4.1.0á…1.2.3…3.0.0ß†0.4.24…0.2.0†4.18.1…5.6.0…2.4.2·watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540…1.1.2…3.0.3…1.7.4ÿÿÿĞ…0.5.3…1.0.4…0.4.1…6.0.5†3.12.0ñ…4.1.1…2.0.1†4.19.0…1.8.1…3.3.0…3.3.1é…4.3.0…0.5.2ğ…7.1.7…5.1.1†1.18.1ÀÑ…0.1.2¿Å…2.2.0�27.0.0-next.5ş…8.5.1–npm:loader-utils@2.0.0–npm:loader-utils@3.1.3ïø…4.0.4…2.4.3†3.1.30…0.3.4…2.6.1…2.6.7…1.4.9ù…0.3.0…3.1.0…1.0.1…6.1.0ªÕ…4.0.0Ôÿ…6.7.0¸…3.0.5Ğ‡0.11.10…2.1.1Å…2.4.1†17.0.2…0.8.3¥0.0.0-experimental-13455d26d-20211104†0.13.4†12.4.0–npm:schema-utils@2.7.1–npm:schema-utils@3.0.0…7.3.2†0.17.1…1.0.5…0.6.1Ä…3.1.1¦…1.3.0§›†5.10.0Ã†2.0.12…0.0.1†0.7.28…3.4.1†0.12.4…8.3.2Â…2.3.1Â…2.1.0™npm:webpack-sources@1.4.3™npm:webpack-sources@3.2.3’npm:webpack@4.44.1’npm:webpack@5.69.1…8.2.3
ÿÿÿ¹şÿÿµŒ1.0.30001283
„node‰>=12.22.0
`—@next/swc-android-arm64–@next/swc-darwin-arm64”@next/swc-darwin-x64�@next/swc-linux-arm-gnueabihf™@next/swc-linux-arm64-gnuš@next/swc-linux-arm64-musl—@next/swc-linux-x64-gnu˜@next/swc-linux-x64-muslš@next/swc-win32-arm64-msvc™@next/swc-win32-ia32-msvc˜@next/swc-win32-x64-msvccşÿÿcşÿÿcşÿÿcşÿÿcşÿÿcşÿÿcşÿÿcşÿÿcşÿÿcşÿÿcşÿÿ¨8545fd1bb02244ced9e8dc9584a764aeae296cd0p/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/nextŒ./dynamic.js@ƒ ĞÓu4]xBk/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modulesxıÿÿoıÿÿÉ/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/package.jsonº/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/package.json§/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/package.json�/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/package.json|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/Users/wyattwalsh/package.jsonq/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/Users/package.json€ôÎ/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/nextÖ/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/package.json‹next@12.1.0ˆ*missingÿ
=şÿÿ<şÿÿï
	Û/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/package.jsonúÖ/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dynamicÙ/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dynamic.jsÚ/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dynamic.mjsÚ/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dynamic.jsxÛ/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dynamic.jsonÛ/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dynamic.wasmx/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dynamic
mıÿÿ
åüÿÿ
s/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/Layout.js€€ æüÿÿOıÿÿPıÿÿ–./components/Layout.js@ ĞÓu4]xBi/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/componentsüYıÿÿ
TıÿÿVıÿÿ!€Ae3]xBpAe3]xB
bıÿÿ	şÿÿ
Úüÿÿ
w/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/FolderTree.js€€ ÛüÿÿDıÿÿEıÿÿš./components/FolderTree.js@ ĞÓu4]xBõıOıÿÿ
ö!€Ae3]xBpAe3]xB
Yıÿÿşÿÿ
Ñüÿÿ
v/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js€€ Òüÿÿ;ıÿÿ<ıÿÿ™./components/MDContent.js@ ĞÓu4]xBìıFıÿÿ
í!€Ae3]xBpAe3]xB
Pıÿÿşÿÿ
Èüÿÿ
k/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib/utils.js€€ Éüÿÿ2ıÿÿ3ıÿÿ�./lib/utils.js@ àÓu4]xBb/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/libü<ıÿÿ
ã!€Ae3]xBpAe3]xB
Fıÿÿöıÿÿ
¾üÿÿ
LıÿÿÀüÿÿ@MıÿÿÙ€€ Àüÿÿ)ıÿÿ*ıÿÿÚ@ àÓu4]xBØÛİ5ıÿÿ
@ıÿÿçıÿÿ
¸üÿÿ
Fıÿÿºüÿÿ@GıÿÿŞ€€ ºüÿÿ#ıÿÿ$ıÿÿß@ àÓu4]xBİÕà/ıÿÿ
:ıÿÿòıÿÿ
²üÿÿ
@ıÿÿ´üÿÿ@Aıÿÿá€€ ´üÿÿıÿÿıÿÿâ@ àÓu4]xBàÏã)ıÿÿ
4ıÿÿôıÿÿ	’import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
import Head from 'next/head';
import { Box } from '@mui/material';
// import BasicTree from 'lib/MyFolderTree'
export const siteTitle = 'Digital Backroom - An Internet Archive';
export default function Layout({ children  }) {
    return(/*#__PURE__*/ _jsxDEV("div", {
        children: /*#__PURE__*/ _jsxDEV("main", {
            className: "theme-light",
            children: children
        }, void 0, false, {
            fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/Layout.js",
            lineNumber: 9,
            columnNumber: 13
        }, this)
    }, void 0, false, {
        fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/Layout.js",
        lineNumber: 8,
        columnNumber: 9
    }, this));
};
„webpack://./node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!./components/Layout.js\{"version":3,"sources":["webpack://./components/Layout.js"],"sourcesContent":["import Head from 'next/head'\n// import BasicTree from 'lib/MyFolderTree'\nexport const siteTitle = 'Digital Backroom - An Internet Archive'\nimport {Box} from '@mui/material'\nexport default function Layout({children}) {\n\n    return (\n        <div>\n            <main className= \"theme-light\">\n                {children}\n            </main>\n        </div>\n    )\n}\n\n"],"names":["Head","Box","siteTitle","Layout","children","div","main","className"],"mappings":";AAAA,MAAM,CAACA,IAAI,MAAM,CAAW;AAG5B,MAAM,GAAEC,GAAG,QAAO,CAAe;AAFjC,EAA2C,AAA3C,yCAA2C;AAC3C,MAAM,CAAC,KAAK,CAACC,SAAS,GAAG,CAAwC;AAEjE,MAAM,SAAS,QAAQ,CAACC,MAAM,CAAC,CAACC,CAAAA,QAAQ,EAAA,CAAC,EAAE,CAAC;IAExC,MAAM,uBACDC,CAAG;wCACCC,CAAI;YAACC,SAAS,EAAE,CAAa;sBACzBH,QAAQ;;;;;;;;;;;AAIzB,CAAC","file":"x"}`
BıÿÿCıÿÿ
Dıÿÿ`ÅEıÿÿ
ÿ
TıÿÿUıÿÿVıÿÿWıÿÿ�aecea86630c79e45Xıÿÿ
‰siteTitle“ıÿÿ ğÒu4]xB½Â

dÿÿı€`:

`:€a;X

`€aY}

`$A±ìAªì

`BAüŒAíŒ

afıÿÿfıÿÿ

`:‰next/headÿ

`ªüÿÿªüÿÿ

`$éé

`B|ıÿÿmıÿÿ

aqıÿÿrıÿÿA6=^ıÿÿ^ıÿÿÿ

b nıÿÿoıÿÿAgn[ıÿÿ[ıÿÿÿ

b '	5
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
import * as React from 'react';
import TreeView from '@mui/lab/TreeView';
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
import ChevronRightIcon from '@mui/icons-material/ChevronRight';
import TreeItem from '@mui/lab/TreeItem';
import { useRouter } from 'next/router';
import { styled } from '@mui/material/styles';
const TCTreeItem = styled(TreeItem)(({ theme  })=>({
        '& .MuiTreeItem-content': {
            '& .MuiTreeItem-label': {
                fontSize: '1rem',
                paddingLeft: '6px',
                fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,',
                lineHeight: 2
            }
        }
    })
);
export default function FolderTree(props) {
    const renderTree = (nodes)=>/*#__PURE__*/ _jsxDEV(TCTreeItem, {
            nodeId: nodes.id,
            label: nodes.name,
            children: Array.isArray(nodes.children) ? nodes.children.map((node)=>renderTree(node)
            ) : null
        }, nodes.id, false, {
            fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/FolderTree.js",
            lineNumber: 23,
            columnNumber: 9
        }, this)
    ;
    const router = useRouter();
    // const childrenNodeIds = props.tree.children.map(aNode => {return aNode.id})
    const expandedNodes = [
        props.tree.id
    ];
    return(/*#__PURE__*/ _jsxDEV(TreeView, {
        "aria-label": "rich object",
        defaultCollapseIcon: /*#__PURE__*/ _jsxDEV(ExpandMoreIcon, {}, void 0, false, void 0, void 0),
        defaultExpanded: expandedNodes,
        defaultExpandIcon: /*#__PURE__*/ _jsxDEV(ChevronRightIcon, {}, void 0, false, void 0, void 0),
        onNodeSelect: (event, nodIds)=>{
            const currentNode = props.flattenNodes.find((aNode)=>{
                return aNode.id === nodIds;
            });
            // console.log(event)
            // console.log(currentNode)
            if (currentNode != null && currentNode.routePath != null) {
                router.push(currentNode.routePath);
            // router.reload()
            }
        },
        sx: {
            flexGrow: 1,
            maxWidth: 400,
            overflowY: 'auto'
        },
        children: renderTree(props.tree)
    }, void 0, false, {
        fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/FolderTree.js",
        lineNumber: 34,
        columnNumber: 9
    }, this));
};
ˆwebpack://./node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!./components/FolderTree.js¬{"version":3,"sources":["webpack://./components/FolderTree.js"],"sourcesContent":["import * as React from 'react';\nimport TreeView from '@mui/lab/TreeView';\nimport ExpandMoreIcon from '@mui/icons-material/ExpandMore';\nimport ChevronRightIcon from '@mui/icons-material/ChevronRight';\nimport TreeItem from '@mui/lab/TreeItem';\nimport {useRouter} from 'next/router'\nimport {styled} from '@mui/material/styles';\n\nconst TCTreeItem = styled(TreeItem)(({theme}) => ({\n    '& .MuiTreeItem-content': {\n        '& .MuiTreeItem-label': {\n            fontSize: '1rem',\n            paddingLeft: '6px',\n            fontFamily: '-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif,',\n            lineHeight: 2.0,\n        },\n    },\n}))\n\n\nexport default function FolderTree(props) {\n    const renderTree = (nodes) => (\n        <TCTreeItem key={nodes.id} nodeId={nodes.id} label={nodes.name}>\n            {Array.isArray(nodes.children)\n                ? nodes.children.map((node) => renderTree(node))\n                : null}\n        </TCTreeItem>\n    );\n\n    const router = useRouter()\n    // const childrenNodeIds = props.tree.children.map(aNode => {return aNode.id})\n    const expandedNodes = [props.tree.id]\n    return (\n        <TreeView\n            aria-label=\"rich object\"\n            defaultCollapseIcon={<ExpandMoreIcon/>}\n            defaultExpanded={expandedNodes}\n            defaultExpandIcon={<ChevronRightIcon/>}\n            onNodeSelect={(event, nodIds) => {\n                const currentNode = props.flattenNodes.find(aNode => {\n                    return aNode.id === nodIds\n                })\n                // console.log(event)\n                // console.log(currentNode)\n                if (currentNode != null && currentNode.routePath != null) {\n                    router.push(currentNode.routePath)\n                    // router.reload()\n                }\n            }}\n            sx={{flexGrow: 1, maxWidth: 400, overflowY: 'auto'}}\n        >\n            {renderTree(props.tree)}\n        </TreeView>\n    );\n}\n"],"names":["React","TreeView","ExpandMoreIcon","ChevronRightIcon","TreeItem","useRouter","styled","TCTreeItem","theme","fontSize","paddingLeft","fontFamily","lineHeight","FolderTree","props","renderTree","nodes","nodeId","id","label","name","Array","isArray","children","map","node","router","expandedNodes","tree","aria-label","defaultCollapseIcon","defaultExpanded","defaultExpandIcon","onNodeSelect","event","nodIds","currentNode","flattenNodes","find","aNode","routePath","push","sx","flexGrow","maxWidth","overflowY"],"mappings":";AAAA,MAAM,MAAMA,KAAK,MAAM,CAAO;AAC9B,MAAM,CAACC,QAAQ,MAAM,CAAmB;AACxC,MAAM,CAACC,cAAc,MAAM,CAAgC;AAC3D,MAAM,CAACC,gBAAgB,MAAM,CAAkC;AAC/D,MAAM,CAACC,QAAQ,MAAM,CAAmB;AACxC,MAAM,GAAEC,SAAS,QAAO,CAAa;AACrC,MAAM,GAAEC,MAAM,QAAO,CAAsB;AAE3C,KAAK,CAACC,UAAU,GAAGD,MAAM,CAACF,QAAQ,GAAG,CAACI,CAAAA,KAAK,EAAA,CAAC,IAAM,CAAC;QAC/C,CAAwB,yBAAE,CAAC;YACvB,CAAsB,uBAAE,CAAC;gBACrBC,QAAQ,EAAE,CAAM;gBAChBC,WAAW,EAAE,CAAK;gBAClBC,UAAU,EAAE,CAAsF;gBAClGC,UAAU,EAAE,CAAG;YACnB,CAAC;QACL,CAAC;IACL,CAAC;;AAGD,MAAM,SAAS,QAAQ,CAACC,UAAU,CAACC,KAAK,EAAE,CAAC;IACvC,KAAK,CAACC,UAAU,IAAIC,KAAK,yBACpBT,UAAU;YAAgBU,MAAM,EAAED,KAAK,CAACE,EAAE;YAAEC,KAAK,EAAEH,KAAK,CAACI,IAAI;sBACzDC,KAAK,CAACC,OAAO,CAACN,KAAK,CAACO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z

`€`[@„

`)€A…Á

`<€AÂ

`@€A,

`)€A-U

`(€AV„

`.A
/
Aş/


c@`4ıÿÿ4ıÿÿ

`:…üÿÿ…üÿÿ

`‘@mui/lab/TreeViewÿ

`)�@mui/icons-material/ExpandMoreÿ

`< @mui/icons-material/ChevronRightÿ

`@‘@mui/lab/TreeItemÿ

`)‹next/routerÿ

`(”@mui/material/stylesÿ

`.†styledşA˜�ûûÿ

	b	.ıÿÿˆTreeItemAŸ§

óóÿ

	b	"Fıÿÿ*ıÿÿ

c@.ıÿÿ/ıÿÿAX_ıÿÿıÿÿÿ

c.5‰useRouterşA1:ííÿ

c  'ıÿÿ(ıÿÿAãêıÿÿıÿÿÿ

c%% ıÿÿˆTreeViewAëó

ŞŞÿ

c%!%) ıÿÿ!ıÿÿAGN
ıÿÿ
ıÿÿÿ

c'+'2ıÿÿ�ExpandMoreIconAO]

ÙÙÿ

c'3'AıÿÿıÿÿAÔÛıÿÿıÿÿÿ

c)))0ıÿÿ�ChevronRightIconAÜì

ÔÔÿ

c)1)A	«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource6module.exports = require('./dist/shared/lib/dynamic')
¨webpack://./node_modules/next/dynamic.js`
Àüÿÿ�defaultObjectıÿÿˆredirect
¿üÿÿ@ÿÿÿÀüÿÿ
ÿ
`ÁüÿÿÂüÿÿÃüÿÿÄüÿÿÅüÿÿÆüÿÿÇüÿÿÈüÿÿÉüÿÿÊüÿÿÍüÿÿÎüÿÿÑüÿÿÒüÿÿ�7539ffabfdf9fd8b@ ğÒu4]xBÿÿÿ(ÿÿÿfıÿÿgıÿÿ
¸webpack/lib/dependencies/CommonJsExportRequireDependency
`5�module.exports
™./dist/shared/lib/dynamicÿû

`5üÿÿ�üÿÿüÿÿ@ŸüÿÿHÿÿÿ€€ üÿÿ{üÿÿ|üÿÿIÿÿÿ
@ àÓu4]xBGÿÿÿJÿÿÿKÿÿÿ‡üÿÿ’üÿÿBıÿÿ
œ import { Node } from "./node";
import { Transformer } from "./transformer";
import unified from "unified";
import markdown from "remark-parse";
import { toString } from 'mdast-util-to-string';
import path from "path";
import fs from "fs";
const dirTree = require("directory-tree");
export function getContent(slug) {
    let currentFilePath = toFilePath(slug);
    if (currentFilePath === undefined || currentFilePath == null) return null;
    return Node.readFileSync(currentFilePath);
}
export function getShortSummary(slug) {
    const content = getContent(slug);
    if (content === undefined || content === null) {
        return;
    }
    const tree = unified().use(markdown).parse(content);
    let plainText = toString(tree);
    return plainText.split(" ").splice(0, 40).join(" ");
}
export function getAllMarkdownFiles() {
    return Node.getFiles(Node.getMarkdownFolder());
}
export function getSinglePost(slug) {
    // List of filenames that will provide existing links to wikilink
    let currentFilePath = toFilePath(slug);
    //console.log("currentFilePath: ", currentFilePath)
    var fileContent = Node.readFileSync(currentFilePath);
    const currentFileFrontMatter = Transformer.getFrontMatterData(fileContent);
    // console.log("===============\n\nFile is scanning: ", slug)
    const [htmlContent] = Transformer.getHtmlContent(fileContent);
    // console.log("==================================")
    //console.log("hrmlcontents and backlinks")
    return {
        id: slug,
        // ...currentFileFrontMatter,
        data: htmlContent
    };
}
const cachedSlugMap = getSlugHashMap();
export function toFilePath(slug) {
    return cachedSlugMap[slug];
}
export function getSlugHashMap() {
    // This is to solve problem of converting between slug and filepath,
    // where previously if I convert a slug to a file path sometime
    // it does not always resolve to correct filepath, converting function is not bi-directional
    // and not conflict-free, other solution was considered (hash file name into a hash, but this
    // is not SEO-friendly and make url look ugly ==> I chose this
    const slugMap = new Map();
    getAllMarkdownFiles().map((aFile)=>{
        const aSlug = toSlug(aFile);
        // if (slugMap.has(aSlug)) {
        //     slugMap[aSlug].push(aFile)
        // } else {
        //     slugMap[aSlug] = [aFile]
        // }
        // Note: [Future improvement] Resolve conflict
        slugMap[aSlug] = aFile;
    });
    slugMap['index'] = Node.getMarkdownFolder() + "/index.md";
    slugMap['/'] = Node.getMarkdownFolder() + "/index.md";
    return slugMap;
}
export function toSlug(filePath) {
    if (Node.isFile(filePath) && filePath.includes(Node.getMarkdownFolder())) {
        return filePath.replace(Node.getMarkdownFolder(), '').replaceAll('/', '__').replaceAll(' ', '++++').replaceAll('&', 'ambersand').replace('.md', '');
    } else {
        //TODO handle this properly
        return '/';
    }
}
export function constructGraphData() {
    const filepath = path.join(process.cwd(), "graph-data.json");
    if (Node.isFile(filepath)) {
        const data = fs.readFileSync(filepath);
        return JSON.parse(String(data));
    } else {
        const filePaths = getAllMarkdownFiles();
        const edges = [];
        const nodes = [];
        filePaths.forEach((aFilePath)=>{
            // const {currentFilePath} = getFileNames(filename)
            const aNode = {
                title: Transformer.parseFileNameFromPath(aFilePath),
                slug: toSlug(aFilePath),
                shortSummary: getShortSummary(toSlug(aFilePath))
            };
            nodes.push(aNode);
            // console.log("Constructing graph for node: " + aFilePath )
            const internalLinks = Transformer.getInternalLinks(aFilePath);
            internalLinks.forEach((aLink)=>{
                if (aLink.slug === null || aLink.slug.length === 0) return;
                const anEdge = {
                    source: toSlug(aFilePath),
                    target: aLink.slug
                };
                edges.push(anEdge);
            // console.log("Source: " + anEdge.source)
            // console.log("Target: " + anEdge.target)
            });
        // console.log("==============Constructing graph" )
        });
        const data = {
            nodes,
            edges
        };
        fs.writeFileSync(filepath, JSON.stringify(data), "utf-8");
        return data;
    }
}
export function getLocalGraphData(currentNodeId) {
    const { nodes , edges  } = constructGraphData();
    const newNodes = nodes.map((aNode)=>({
            data: {
                id: aNode.slug.toString(),
                label: Transformer.parseFileNameFromPath(toFilePath(aNode.slug))
            }
        })
    );
    const newEdges = edges.map((anEdge)=>({
            data: {
                source: anEdge.source,
                target: anEdge.target
            }
        })
    );
    const existingNodeIDs = newNodes.map((aNode)=>aNode.data.id
    );
    currentNodeId = currentNodeId === 'index' ? '__index' : currentNodeId;
    if (currentNodeId != null && existingNodeIDs.includes(currentNodeId)) {
        const outGoingNodeIds = newEdges.filter((anEdge)=>anEdge.data.source === currentNodeId
        ).map((anEdge)=>anEdge.data.target
        );
        const incomingNodeIds = newEdges.filter((anEdge)=>anEdge.data.target === currentNodeId
        ).map((anEdge)=>anEdge.data.source
        );
        outGoingNodeIds.push(currentNodeId);
        const localNodeIds = incomingNodeIds.concat(outGoingNodeIds.filter((item)=>incomingNodeIds.indexOf(item) < 0
        ));
        if (localNodeIds.indexOf(currentNodeId) < 0) {
            localNodeIds.push(currentNodeId);
        }
        const localNodes = newNodes.filter((aNode)=>localNodeIds.includes(aNode.data.id)
        );
        let localEdges = newEdges.filter((edge)=>localNodeIds.includes(edge.data.source)
        ).filter((edge)=>localNodeIds.includes(edge.data.target)
        );
        // Filter self-reference edges
        localEdges = localEdges.filter((edge)=>edge.data.source !== edge.data.target
        );
        // TODO: Find out why target ==='/' in some case
        localEdges = localEdges.filter((edge)=>edge.data.target !== '/'
        );
        return {
            nodes: localNodes,
            edges: localEdges
        };
    } else {
        const filteredEdges = newEdges.filter((edge)=>existingNodeIDs.includes(edge.data.source)
        ).filter((edge)=>existingNodeIDs.includes(edge.data.target)
        );
        return {
            nodes: newNodes,
            edges: filteredEdges
        };
    }
}
export function getAllSlugs() {
    //console.log("\n\nAll Posts are scanning")
    // Get file names under /posts
    const filePaths = Node.getFiles(Node.getMarkdownFolder()).filter((f)=>!(f.endsWith("index") || f.endsWith("sidebar"))
    );
    return filePaths.map((f)=>toSlug(f)
    );
}
export function getDirectoryData() {
    const filteredDirectory = dirTree(Node.getMarkdownFolder(), {
        extensions: /\.md/
    });
    return convertObject(filteredDirectory);
}
let _counter = 0;
export function convertObject(thisObject) {
    const children = [];
    let routerPath = getAllSlugs().find((slug)=>{
        const fileName = Transformer.parseFileNameFromPath(toFilePath(slug));
        return Transformer.normalizeFileName(fileName) === Transformer.normalizeFileName(thisObject.name);
    }) || null;
    routerPath = routerPath ? '/note/' + routerPath : null;
    const newObject = {
        name: thisObject.name,
        children: children,
        id: (_counter++).toString(),
        routePath: routerPath || null
    };
    if (thisObject.children != null && thisObject.children.length > 0) {
        thisObject.children.forEach((aChild)=>{
            const newChild = convertObject(aChild);
            children.push(newChild);
        });
        return newObject;
    } else {
        return newObject;
    }
}
function flat(array) {
    var result = [];
    array.forEach(function(a) {
        result.push(a);
        if (Array.isArray(a.children)) {
            result = result.concat(flat(a.children));
        }
    });
    return result;
}
export function getFlattenArray(thisObject) {
    return flat(thisObject.children);
}
üwebpack://./node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!./lib/utils.js)H{"version":3,"sources":["webpack://./lib/utils.js"],"sourcesContent":["import {Node} from \"./node\"\nimport {Transformer} from \"./transformer\";\nimport unified from \"unified\";\nimport markdown from \"remark-parse\";\nimport {toString} from 'mdast-util-to-string'\nimport path from \"path\";\nimport fs from \"fs\";\n\nconst dirTree = require(\"directory-tree\");\n\n\nexport function getContent(slug) {\n    let currentFilePath = toFilePath(slug)\n    if (currentFilePath === undefined || currentFilePath == null) return null\n    return Node.readFileSync(currentFilePath)\n}\n\nexport function getShortSummary(slug) {\n    const content = getContent(slug)\n    if (content === undefined || content === null) {\n        return\n    }\n\n    const tree = unified().use(markdown)\n        .parse(content)\n    let plainText = toString(tree)\n    return plainText.split(\" \").splice(0, 40).join(\" \")\n}\n\n\nexport function getAllMarkdownFiles() {\n    return Node.getFiles(Node.getMarkdownFolder())\n}\n\nexport function getSinglePost(slug) {\n\n\n    // List of filenames that will provide existing links to wikilink\n    let currentFilePath = toFilePath(slug)\n    //console.log(\"currentFilePath: \", currentFilePath)\n\n    var fileContent = Node.readFileSync(currentFilePath)\n\n    const currentFileFrontMatter = Transformer.getFrontMatterData(fileContent)\n    // console.log(\"===============\\n\\nFile is scanning: \", slug)\n    const [htmlContent] = Transformer.getHtmlContent(fileContent)\n    // console.log(\"==================================\")\n    //console.log(\"hrmlcontents and backlinks\")\n    return {\n        id: slug,\n        // ...currentFileFrontMatter,\n        data: htmlContent,\n    }\n\n}\n\nconst cachedSlugMap = getSlugHashMap()\n\nexport function toFilePath(slug) {\n    return cachedSlugMap[slug]\n}\n\nexport function getSlugHashMap() {\n    // This is to solve problem of converting between slug and filepath,\n    // where previously if I convert a slug to a file path sometime\n    // it does not always resolve to correct filepath, converting function is not bi-directional\n    // and not conflict-free, other solution was considered (hash file name into a hash, but this\n    // is not SEO-friendly and make url look ugly ==> I chose this\n\n    const slugMap = new Map()\n    getAllMarkdownFiles().map(aFile => {\n        const aSlug = toSlug(aFile);\n        // if (slugMap.has(aSlug)) {\n        //     slugMap[aSlug].push(aFile)\n        // } else {\n        //     slugMap[aSlug] = [aFile]\n        // }\n        // Note: [Future improvement] Resolve conflict\n        slugMap[aSlug] = aFile\n    })\n\n    slugMap['index'] = Node.getMarkdownFolder() + \"/index.md\"\n    slugMap['/'] = Node.getMarkdownFolder() + \"/index.md\"\n\n    return slugMap\n}\n\n\nexport function toSlug(filePath) {\n\n    if (Node.isFile(filePath) && filePath.includes(Node.getMarkdownFolder())) {\n        return filePath.replace(Node.getMarkdownFolder(), '')\n            .replaceAll('/', '__')\n            .replaceAll(' ', '++++')\n            .replaceAll('&', 'ambersand')\n            .replace('.md', '')\n    } else {\n        //TODO handle this properly\n        return '/'\n    }\n\n}\n\n\n\nexport function constructGraphData() {\n\n    const filepath = path.join(process.cwd(), \"graph-data.json\");\n    if (Node.isFile(filepath)) {\n        const data = fs.readFileSync(filepath);\n        return JSON.parse(String(data))\n    } else {\n        const filePaths = getAllMarkdownFiles();\n        const edges = []\n        const nodes = []\n        filePaths\n            .forEach(aFilePath => {\n                    // const {currentFilePath} = getFileNames(filename)\n                    const aNode = {\n                        title: Transformer.parseFileNameFromPath(aFilePath),\n                        slug: toSlug(aFilePath),\n                        shortSummary: getShortSummary(toSlug(aFilePath))\n                    }\n                    nodes.push(aNode)\n\n                    // console.log(\"Constructing graph for node: \" + aFilePath )\n                    const internalLinks = Transformer.getInternalLinks(aFilePath)\n                    internalLinks.forEach(aLink => {\n\n                        if (aLink.slug === null || aLink.slug.length === 0) return\n\n                        const anEdge = {\n                            source: toSlug(aFilePath),\n                            target: aLink.slug,\n                        }\n                        edges.push(anEdge)\n                        // console.log(\"Source: \" + anEdge.source)\n                        // console.log(\"Target: \" + anEdge.target)\n                    })\n                    // console.log(\"==============Constructing graph\" )\n                }\n            )\n        const data = {nodes, edges};\n        fs.writeFileSync(filepath, JSON.stringify(data), \"utf-8\");\n        return data;\n    }\n}\n\n\nexport function getLocalGraphData(currentNodeId) {\n\n    const {nodes, edges} = constructGraphData()\n\n    const newNodes = nodes.map(aNode => (\n        {\n            data: {\n                id: aNode.slug.toString(),\n                label: Transformer.parseFileNameFromPath(toFilePath(aNode.slug)),\n            }\n        }\n    ))\n\n    const newEdges = edges.map(anEdge => ({\n        data: {\n            source: anEdge.source,\n            target: anEdge.target,\n        }\n    }))\n\n\n    const existingNodeIDs = newNodes.map(aNode => aNode.data.id)\n    currentNodeId = currentNodeId === 'index' ? '__index' : currentNodeId\n    if (currentNodeId != null && existingNodeIDs.includes(currentNodeId)) {\n        const outGoingNodeIds = newEdges\n            .filter(anEdge => anEdge.data.source === currentNodeId)\n            .map(anEdge => anEdge.data.target)\n\n        const incomingNodeIds = newEdges\n            .filter(anEdge => anEdge.data.target === currentNodeId)\n            .map(anEdge => anEdge.data.source)\n\n        outGoingNodeIds.push(currentNodeId)\n\n        const localNodeIds = incomingNodeIds.concat(outGoingNodeIds.filter(item => incomingNodeIds.indexOf(item) < 0))\n        if (localNodeIds.indexOf(currentNodeId) < 0) {\n            localNodeIds.push(currentNodeId)\n        }\n\n        const localNodes = newNodes.filter(aNode => localNodeIds.includes(aNode.data.id))\n        let localEdges = newEdges.filter(edge => localNodeIds.includes(edge.data.source)).filter(edge => localNodeIds.includes(edge.data.target));\n\n        // Filter self-reference edges\n        localEdges = localEdges.filter(edge => edge.data.source !== edge.data.target)\n\n        // TODO: Find out why target ==='/' in some case\n        localEdges = localEdges.filter(edge => edge.data.target !== '/')\n        return {\n            nodes: localNodes,\n            edges: localEdges\n        }\n    } else {\n        const filteredEdges = newEdges\n            .filter(edge => existingNodeIDs.includes(edge.data.source))\n            .filter(edge => existingNodeIDs.includes(edge.data.target))\n\n        return {\n            nodes: newNodes,\n            edges: filteredEdges\n        }\n    }\n\n\n}\n\nexport function getAllSlugs() {\n    //console.log(\"\\n\\nAll Posts are scanning\")\n    // Get file names under /posts\n    const filePaths = Node.getFiles(Node.getMarkdownFolder()).filter(f => !(f.endsWith(\"index\") || f.endsWith(\"sidebar\")))\n    return filePaths.map(f => toSlug(f))\n}\n\nexport function getDirectoryData() {\n    const filteredDirectory = dirTree(Node.getMarkdownFolder(), {extensions: /\\.md/});\n    return convertObject(filteredDirectory)\n}\n\nlet _counter = 0;\n\nexport function convertObject(thisObject) {\n    const children = []\n\n    let routerPath = getAllSlugs().find(slug => {\n        const fileName = Transformer.parseFileNameFromPath(toFilePath(slug))\n        return Transformer.normalizeFileName(fileName) === Transformer.normalizeFileName(thisObject.name)\n    }) || null\n    routerPath = routerPath ? '/note/' + routerPath : null\n    const newObject = {\n        name: thisObject.name,\n        children: children,\n        id: (_counter++).toString(),\n        routePath: routerPath || null\n    };\n\n    if (thisObject.children != null && thisObject.children.length > 0) {\n        thisObject.children.forEach(aChild => {\n            const newChild = convertObject(aChild)\n            children.push(newChild)\n        })\n        return newObject;\n    } else {\n        return newObject\n    }\n}\n\nfunction flat(array) {\n    var result = [];\n    array.forEach(function (a) {\n        result.push(a);\n        if (Array.isArray(a.children)) {\n            result = result.concat(flat(a.children));\n        }\n    });\n    return result;\n}\n\nexport function getFlattenArray(thisObject) {\n    return flat(thisObject.children)\n}"],"names":["Node","Transformer","unified","markdown","toString","path","fs","dirTree","require","getContent","slug","currentFilePath","toFilePath","undefined","readFileSync","getShortSummary","content","tree","use","parse","plainText","split","splice","join","getAllMarkdownFiles","getFiles","getMarkdownFolder","getSinglePost","fileContent","currentFileFrontMatter","getFrontMatterData","htmlContent","getHtmlContent","id","data","cachedSlugMap","getSlugHashMap","slugMap","Map","map","aFile","aSlug","toSlug","filePath","isFile","includes","replace","replaceAll","constructGraphData","filepath","process","cwd","JSON","String","filePaths","edges","nodes","forEach","aFilePath","aNode","title","parseFileNameFromPath","shortSummary","push","internalLinks","getInternalLinks","aLink","length","anEdge","source","target","writeFileSync","stringify","getLocalGraphData","currentNodeId","newNodes","label","newEdges","existingNodeIDs","outGoingNodeIds","filter","incomingNodeIds","localNodeIds","concat","item","indexOf","localNodes","localEdges","edge","filteredEdges","getAllSlugs","f","endsWith","getDirectoryData","filteredDirectory","extensions","convertObject","_counter","thisObject","children","routerPath","find","fileName","normalizeFileName","name","newObject","routePath","aChild","newChild","flat","array","result","a","Array","isArray","getFlattenArray"],"mappings":"AAAA,MAAM,GAAEA,IAAI,QAAO,CAAQ;AAC3B,MAAM,GAAEC,WAAW,QAAO,CAAe;AACzC,MAAM,CAACC,OAAO,MAAM,CAAS;AAC7B,MAAM,CAACC,QAAQ,MAAM,CAAc;AACnC,MAAM,GAAEC,QAAQ,QAAO,CAAsB;AAC7C,MAAM,CAACC,IAAI,MAAM,CAAM;AACvB,MAAM,CAACC,EAAE,MAAM,CAAI;AAEnB,KAAK,CAACC,OAAO,GAAGC,OAAO,CAAC,CAAgB;AAGxC,MAAM,UAAUC,UAAU,CAACC,IAAI,EAAE,CAAC;IAC9B,GAAG,CAACC,eAAe,GAAGC,UAAU,CAACF,IAAI;IACrC,EAAE,EAAEC,eAAe,KAAKE,SAAS,IAAIF,eAAe,IAAI,IAAI,EAAE,MAAM,CAAC,IAAI;IACzE,MAAM,CAACX,IAAI,CAACc,YAAY,CAACH,eAAe;AAC5C,CAAC;AAED,MAAM,UAAUI,eAAe,CAACL,IAAI,EAAE,CAAC;IACnC,KAAK,CAACM,OAAO,GAAGP,UAAU,CAACC,IAAI;IAC/B,EAAE,EAAEM,OAAO,KAAKH,SAAS,IAAIG,OAAO,KAAK,IAAI,EAAE,CAAC;QAC5C,MAAM;IACV,CAAC;IAED,KAAK,CAACC,IAAI,GAAGf,OAAO,GAAGgB,GAAG,CAACf,QAAQ,EAC9BgB,KAAK,CAACH,OAAO;IAClB,GAAG,CAACI,SAAS,GA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ACC,QAAQ;AACnC,CAAC","file":"x"}` üÿÿ¡üÿÿ
¢üÿÿ@@ÿÿÿ£üÿÿ
ÿ²üÿÿ	³üÿÿ´üÿÿµüÿÿ�95a8aa3c9ed9052a¶üÿÿ`„flat‡dirTreeŠgetContent�getShortSummary“getAllMarkdownFilesıÿÿ�cachedSlugMapŠtoFilePath�getSlugHashMap†toSlugıÿÿıÿÿ‹getAllSlugsıÿÿˆ_counterıÿÿıÿÿ
 ğÒu4]xB.ÿÿÿ2ÿÿÿ`

dÿÿı€`

`€aK

`,€aLj

`€`k@�

`$€A�À

`0€AÁÙ

`€AÚî

`A!èAè

	a
AğAé

cA!wAw

cA'Ax'

c)AW”AP”

c+-Aœ>
A•>


c.BAF
›A?
›

cCJA£zAœz

cKqA‚#A{#

ar@ªA+HA$H

@«@²APAI

@³@¸A[A[

@º@ĞAM › AF › 

@Û@İ°webpack/lib/dependencies/RequireHeaderDependencyaAÿ

b)`0†./nodeÿ

`�./transformerÿ

`,îûÿÿîûÿÿ

`èûÿÿèûÿÿ

`$ØûÿÿØûÿÿ

`0¥ûÿÿ¥ûÿÿ

`ÓûÿÿÓûÿÿ

`²webpack/lib/dependencies/CommonJsRequireDependency@ÑûÿÿÑûÿÿA

b)¯¯

	a
„NodeŒreadFileSyncıAÃÔ
ğğÿ

cªª

c‰üÿÿßûÿÿA“šŞûÿÿŞûÿÿÿ

c†üÿÿˆmarkdownA¡©

ÕûÿÿÕûÿÿÿ

c'ˆtoStringşAÏ×ÂûÿÿÂûÿÿÿ

cŸŸ

cîˆgetFilesìAMZ
ßßÿ

cê‘getMarkdownFolderèA[q
ÛÛÿ

c/«üÿÿ«üÿÿ

c)åæäA^o
××ÿ

c'‹Transformer’getFrontMatterDataıA¥Ã
ÔÔÿ

c#Aû�getHtmlContentùA.H
ĞĞÿ

c!!4‹‹

c+-‹‹

c.B×íÖAÆ	Ü	
ÉÉÿ

c??-ÔêÓA


ÆÆÿ

c@@)……

cCJĞ†isFileÎAj
u

ÁÁÿ

cDDÌâËA•
«

¾¾ÿ

cD3DIÉßÈAÒ
è

»»ÿ

cE E6~üÿÿ~üÿÿ

cKqTüÿÿ„joincûÿÿAØá
bûÿÿbûÿÿÿ

cLLÁñÀA

³³ÿ

cMMMüÿÿ¿ŒûÿÿA;J
‹ûÿÿ‹ûÿÿÿ

cNN$Ù•parseFileNameFromPath×A�
®

®®ÿ

cWW8Õ�getInternalLinksÓA¾Ú
ªªÿ

c]"]>Büÿÿ�writeFileSync€ûÿÿA#3
ûÿÿûÿÿÿ

cnn|üÿÿ|üÿÿ

ar@ªÌóËAd…
¢¢ÿ

cww8`ÿÿÿ`ÿÿÿ

@«@²ª¼©A­º
œœÿ

@®`@®`#§½¦A»Ñ
™™ÿ

@®`$@®`:eüÿÿeüÿÿ

@³@¸£¹¢A”ª
••ÿ

@´`&@´`<]üÿÿ]üÿÿ

@º@Ğ½ä¼A¤Å
““ÿ

@½`@½`:º‘normalizeFileName¸Aè
��ÿ

@¾`@¾`,¶üµA1
ŒŒÿ

@¾`;@¾`X^üÿÿ^üÿÿ

@Û@İ@ƒ ğÓu4]xBAûÿÿ¹ûÿÿfüÿÿv/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/node_modules

8şÿÿFşÿÿ7şÿÿ…üÿÿu/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/head@€\/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/node_modulesI/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/node_modules@/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/node_modules�/Users/wyattwalsh/node_modules“/Users/node_modules�/node_modules@,ûÿÿ‡/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material/node/index.js€€ †/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material/package.json`-ûÿÿ.ûÿÿ/ûÿÿ†authortüÿÿuüÿÿˆkeywordsvüÿÿuüÿÿwüÿÿxüÿÿ‡funding|üÿÿ}üÿÿ.ûÿÿ‹sideEffects�publishConfig}üÿÿûÿÿvüÿÿ@ûÿÿ…5.5.2
ˆMUI TeamØQuickly build beautiful React apps. MUI is a simple and customizable component library to build faster, beautiful, and more accessible React applications. Follow your own design system, or start with Material Design.�./node/index.jsGûÿÿ�react-componentƒmui‹material-ui�material design„typeƒurlûÿÿƒgit¦https://github.com/mui/material-ui.git•packages/mui-materialsüÿÿú©https://github.com/mui/material-ui/issues�https://mui.com/ö÷�opencollective�https://opencollective.com/mui$ûÿÿ&ûÿÿûüÿÿ4ûÿÿ6ûÿÿ‡^11.5.0‡^11.3.0’^16.8.6 || ^17.0.0‡^17.0.0ÿõüÿÿûÿÿ ûÿÿºüÿÿ¹üÿÿ¸üÿÿ`Ìüÿÿ‰@mui/base‹@mui/systemŠ@mui/typesŠ@mui/utils�@types/react-transition-group„clsx‡csstype—hoist-non-react-staticsŠprop-types?ıÿÿ–react-transition-group‡^7.17.2�5.0.0-alpha.73†^5.5.2†^7.1.3†^5.4.4†^4.4.4†^1.1.1‡^3.0.11†^3.3.2‡^15.7.25ûÿÿ†^4.4.2
†access†publicÒıÿÿˆ>=12.0.0Š./index.jsŒ./index.d.tsy/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/materialÁ@ƒ ğÓu4]xBàıÿÿp/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@muiXûÿÿÿıÿÿüÿÿ 

^ûÿÿ@÷}/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/package.jsonx/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/package.json|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material.js~/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material.json~/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material.node“@mui/material@5.5.2ßıÿÿßıÿÿßıÿÿßıÿÿßıÿÿ@¦@î¦~/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material/node@òóéôõö‹/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material/node/package.json@ƒ Ôu4]xBÈúÿÿ@ûÿÿíûÿÿ‡����‘’�t/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/lab—@mui/lab@5.0.0-alpha.74ı�/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/lab/package.json}/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/lab/TreeView@ƒ Ôu4]xB½úÿÿ5ûÿÿâûÿÿ|ÿÿÿ‚ƒ„…†‡�/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/icons-material™@mui/icons-material@5.5.1ıŒ/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/icons-material/package.jsonŠ/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/icons-material/ExpandMore@ƒ Ôu4]xB²úÿÿ*ûÿÿ×ûÿÿqÿÿÿwÿÿÿxÿÿÿyÿÿÿzÿÿÿ{ÿÿÿ|ÿÿÿ�õöô÷Œ/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/icons-material/ChevronRight@ƒ Ôu4]xBªúÿÿ"ûÿÿÏûÿÿiÿÿÿoÿÿÿpÿÿÿqÿÿÿrÿÿÿsÿÿÿtÿÿÿ�âãáä}/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/lab/TreeItem@ƒ Ôu4]xB¢úÿÿûÿÿÇûÿÿaÿÿÿgÿÿÿhÿÿÿiÿÿÿjÿÿÿkÿÿÿlÿÿÿ�šıÿÿ¨ıÿÿ™ıÿÿçûÿÿw/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/router@ƒ Ôu4]xBšúÿÿûÿÿ¿ûÿÿYÿÿÿ_ÿÿÿ`ÿÿÿaÿÿÿbÿÿÿcÿÿÿdÿÿÿ�³Á²jÿÿÿ€/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material/styles@ƒ Ôu4]xB’úÿÿ
ûÿÿ·ûÿÿQÿÿÿWÿÿÿXÿÿÿYÿÿÿZÿÿÿ[ÿÿÿ\ÿÿÿ�«¹ªbÿÿÿ/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material/Alert@ƒ Ôu4]xBŠúÿÿûÿÿ¯ûÿÿIÿÿÿOÿÿÿPÿÿÿQÿÿÿRÿÿÿSÿÿÿTÿÿÿ�£±¢Zÿÿÿ„/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material/AlertTitleúÿÿ‹/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/shared/lib/dynamic.js€€ Èûÿÿyıÿÿzıÿÿœ./dist/shared/lib/dynamic.js@ Ôu4]xB{ıÿÿôúÿÿwıÿÿ…ıÿÿúúÿÿ@ù@Áûÿÿ€/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/shared/lib|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/sharedu/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/distpıÿÿ@ˆ/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/shared/lib/dynamic@�/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/shared/lib/package.json‰/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/shared/package.json‚/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/package.jsoncúÿÿñúÿÿ­ûÿÿ@òúÿÿä€€ ­ûÿÿ^ıÿÿ_ıÿÿå@ Ôu4]xBaıÿÿÚúÿÿ]ıÿÿkıÿÿâúÿÿïø
T"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.noSSR = noSSR;
exports.default = dynamic;
var _react = _interopRequireDefault(require("react"));
var _loadable = _interopRequireDefault(require("./loadable"));
function _interopRequireDefault(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
const isServerSide = "undefined" === 'undefined';
function noSSR(LoadableInitializer, loadableOptions) {
    // Removing webpack and modules means react-loadable won't try preloading
    delete loadableOptions.webpack;
    delete loadableOptions.modules;
    // This check is necessary to prevent react-loadable from initializing on the server
    if (!isServerSide) {
        return LoadableInitializer(loadableOptions);
    }
    const Loading = loadableOptions.loading;
    // This will only be rendered on the server side
    return ()=>/*#__PURE__*/ _react.default.createElement(Loading, {
            error: null,
            isLoading: true,
            pastDelay: false,
            timedOut: false
        })
    ;
}
function dynamic(dynamicOptions, options) {
    let loadableFn = _loadable.default;
    let loadableOptions = {
        // A loading component is not required, so we default it
        loading: ({ error , isLoading , pastDelay  })=>{
            if (!pastDelay) return null;
            if ("development" === 'development') {
                if (isLoading) {
                    return null;
                }
                if (error) {
                    return(/*#__PURE__*/ _react.default.createElement("p", null, error.message, /*#__PURE__*/ _react.default.createElement("br", null), error.stack));
                }
            }
            return null;
        }
    };
    // Support for direct import(), eg: dynamic(import('../hello-world'))
    // Note that this is only kept for the edge case where someone is passing in a promise as first argument
    // The react-loadable babel plugin will turn dynamic(import('../hello-world')) into dynamic(() => import('../hello-world'))
    // To make sure we don't execute the import without rendering first
    if (dynamicOptions instanceof Promise) {
        loadableOptions.loader = ()=>dynamicOptions
        ;
    // Support for having import as a function, eg: dynamic(() => import('../hello-world'))
    } else if (typeof dynamicOptions === 'function') {
        loadableOptions.loader = dynamicOptions;
    // Support for having first argument being options, eg: dynamic({loader: import('../hello-world')})
    } else if (typeof dynamicOptions === 'object') {
        loadableOptions = {
            ...loadableOptions,
            ...dynamicOptions
        };
    }
    // Support for passing options, eg: dynamic(import('../hello-world'), {loading: () => <p>Loading something</p>})
    loadableOptions = {
        ...loadableOptions,
        ...options
    };
    const suspenseOptions = loadableOptions;
    if (!process.env.__NEXT_CONCURRENT_FEATURES) {
        // Error if react root is not enabled and `suspense` option is set to true
        if (!process.env.__NEXT_REACT_ROOT && suspenseOptions.suspense) {
            // TODO: add error doc when this feature is stable
            throw new Error(`Invalid suspense option usage in next/dynamic. Read more: https://nextjs.org/docs/messages/invalid-dynamic-suspense`);
        }
    }
    if (suspenseOptions.suspense) {
        return loadableFn(suspenseOptions);
    }
    // coming from build/babel/plugins/react-loadable-plugin.js
    if (loadableOptions.loadableGenerated) {
        loadableOptions = {
            ...loadableOptions,
            ...loadableOptions.loadableGenerated
        };
        delete loadableOptions.loadableGenerated;
    }
    // support for disabling server side rendering, eg: dynamic(import('../hello-world'), {ssr: false})
    if (typeof loadableOptions.ssr === 'boolean') {
        if (!loadableOptions.ssr) {
            delete loadableOptions.ssr;
            return noSSR(loadableFn, loadableOptions);
        }
        delete loadableOptions.ssr;
    }
    return loadableFn(loadableOptions);
} //# sourceMappingURL=dynamic.js.map
œwebpack://./node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!./node_modules/next/dist/shared/lib/dynamic.jsl{"version":3,"sources":["webpack://./node_modules/next/dist/shared/lib/dynamic.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n    value: true\n});\nexports.noSSR = noSSR;\nexports.default = dynamic;\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _loadable = _interopRequireDefault(require(\"./loadable\"));\nfunction _interopRequireDefault(obj) {\n    return obj && obj.__esModule ? obj : {\n        default: obj\n    };\n}\nconst isServerSide = typeof window === 'undefined';\nfunction noSSR(LoadableInitializer, loadableOptions) {\n    // Removing webpack and modules means react-loadable won't try preloading\n    delete loadableOptions.webpack;\n    delete loadableOptions.modules;\n    // This check is necessary to prevent react-loadable from initializing on the server\n    if (!isServerSide) {\n        return LoadableInitializer(loadableOptions);\n    }\n    const Loading = loadableOptions.loading;\n    // This will only be rendered on the server side\n    return ()=>/*#__PURE__*/ _react.default.createElement(Loading, {\n            error: null,\n            isLoading: true,\n            pastDelay: false,\n            timedOut: false\n        })\n    ;\n}\nfunction dynamic(dynamicOptions, options) {\n    let loadableFn = _loadable.default;\n    let loadableOptions = {\n        // A loading component is not required, so we default it\n        loading: ({ error , isLoading , pastDelay  })=>{\n            if (!pastDelay) return null;\n            if (process.env.NODE_ENV === 'development') {\n                if (isLoading) {\n                    return null;\n                }\n                if (error) {\n                    return(/*#__PURE__*/ _react.default.createElement(\"p\", null, error.message, /*#__PURE__*/ _react.default.createElement(\"br\", null), error.stack));\n                }\n            }\n            return null;\n        }\n    };\n    // Support for direct import(), eg: dynamic(import('../hello-world'))\n    // Note that this is only kept for the edge case where someone is passing in a promise as first argument\n    // The react-loadable babel plugin will turn dynamic(import('../hello-world')) into dynamic(() => import('../hello-world'))\n    // To make sure we don't execute the import without rendering first\n    if (dynamicOptions instanceof Promise) {\n        loadableOptions.loader = ()=>dynamicOptions\n        ;\n    // Support for having import as a function, eg: dynamic(() => import('../hello-world'))\n    } else if (typeof dynamicOptions === 'function') {\n        loadableOptions.loader = dynamicOptions;\n    // Support for having first argument being options, eg: dynamic({loader: import('../hello-world')})\n    } else if (typeof dynamicOptions === 'object') {\n        loadableOptions = {\n            ...loadableOptions,\n            ...dynamicOptions\n        };\n    }\n    // Support for passing options, eg: dynamic(import('../hello-world'), {loading: () => <p>Loading something</p>})\n    loadableOptions = {\n        ...loadableOptions,\n        ...options\n    };\n    const suspenseOptions = loadableOptions;\n    if (!process.env.__NEXT_CONCURRENT_FEATURES) {\n        // Error if react root is not enabled and `suspense` option is set to true\n        if (!process.env.__NEXT_REACT_ROOT && suspenseOptions.suspense) {\n            // TODO: add error doc when this feature is stable\n            throw new Error(`Invalid suspense option usage in next/dynamic. Read more: https://nextjs.org/docs/messages/invalid-dynamic-suspense`);\n        }\n    }\n    if (suspenseOptions.suspense) {\n        return loadableFn(suspenseOptions);\n    }\n    // coming from build/babel/plugins/react-loadable-plugin.js\n    if (loadableOptions.loadableGenerated) {\n        loadableOptions = {\n            ...loadableOptions,\n            ...loadableOptions.loadableGenerated\n        };\n        delete loadableOptions.loadableGenerated;\n    }\n    // support for disabling server side rendering, eg: dynamic(import('../hello-world'), {ssr: false})\n    if (typeof loadableOptions.ssr === 'boolean') {\n        if (!loadableOptions.ssr) {\n            delete loadableOptions.ssr;\n            return noSSR(loadableFn, loadableOptions);\n        }\n        delete loadableOptions.ssr;\n    }\n    return loadableFn(loadableOptions);\n}\n\n//# sourceMappingURL=dynamic.js.map"],"names":["Object","defineProperty","exports","value","noSSR","default","dynamic","_react","_interopRequireDefault","require","_loadable","obj","__esModule","isServerSide","LoadableInitializer","loadableOptions","webpack","modules","Loading","loading","createElement","error","isLoading","pastDelay","timedOut","dynamicOptions","options","loadableFn","message","stack","Promise","loader","suspenseOptions","process","env","__NEXT_CONCURRENT_FEATURES","__NEXT_REACT_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úúÿÿûúÿÿüúÿÿıúÿÿşúÿÿÿúÿÿûÿÿûÿÿûÿÿûÿÿ»webpack/DefinePlugin process.env.__NEXT_CONCURRENT_FEATURES²webpack/DefinePlugin process.env.__NEXT_REACT_ROOTûÿÿ…falseÿ�07e0258d5a0909f7†_react‰_loadable–_interopRequireDefault…noSSR.ûÿÿŒisServerSide@ ğÒu4]xBEıÿÿSıÿÿÉ’ûÿÿ	€`


`
A§®

b$4Aáè

b'<	„trueAb�

c'.
	ıA•¼

cIO	… trueA=

cKKF²webpack/lib/dependencies/CommonJsExportsDependencycOa;N�Object.defineProperty(exports)Š__esModule

aQ^‡exportsâ

`ahw`üûÿÿ

`PúÿÿPúÿÿA¯¶

b$4Š./loadableÿAéõ

b'<@ƒ  Ôu4]xB#úÿÿ›úÿÿQûÿÿg/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib/node

@ƒ  Ôu4]xBúÿÿ–úÿÿLûÿÿn/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib/transformer

úÿÿ|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/unified/index.js€€ €/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/unified/package.json`úÿÿúÿÿ_ûÿÿaûÿÿëşÿÿdûÿÿbûÿÿcûÿÿìşÿÿêşÿÿŒcontributorsdûÿÿ�typesVersionsdûÿÿúÿÿúÿÿúÿÿˆprettier‚xoŒremarkConfigFúÿÿ…9.2.2İInterface for parsing, inspecting, transforming, and serializing content through syntax treeskûÿÿ`DúÿÿNüÿÿ…parse‰transform‡compile‰stringify‰serializeƒastƒcst†syntax„tree‡content†rehype†retext.úÿÿ•https://unifiedjs.com‘unifiedjs/unified«https://github.com/unifiedjs/unified/issuesëşÿÿìşÿÿ¢https://opencollective.com/unified¹Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)ÿ£Junyoung Choi <fluke8259@gmail.com>¥Hernan Rajchert <hrajchert@gmail.com>°Christian Murphy <christian.murphy.42@gmail.com>§Vse Mozhet Byt <vsemozhetbyt@gmail.com>­Richard Littauer <richard.littauer@gmail.com>–types/ts3.4/index.d.ts…>=4.0�types/ts3.4/*�types/ts4.0/*ù–types/ts4.0/index.d.tsˆindex.jsƒlib„bail†extend‰is-bufferŒis-plain-obj†trough…vfile6úÿÿIúÿÿ†^2.0.0ÿ5úÿÿ3úÿÿ
†vfile5Šbrowserify‚c8‡dtslintÉŠremark-cli”remark-preset-wooorm„tape‡tinyifyÆ‹npm:vfile@5Ìşÿÿ†^7.0.0'úÿÿó&úÿÿ#úÿÿ†^5.0.0;úÿÿ‡^0.38.0
†formatŒbuild-bundleŒbuild-mangleÛùÿÿˆtest-api�test-coverageŠtest-types�test-types-3.4�test-types-4.0„testºremark . -qfo && prettier . -w --loglevel warn && xo --fix¬browserify index.js -s unified -o unified.js»browserify index.js -s unified -p tinyify -o unified.min.js¬npm run build-bundle && npm run build-mangle‰node testØc8 --check-coverage --lines 100 --functions 100 --branches 100 --reporter lcov tape test°npm run test-types-3.4 && npm run test-types-4.0“dtslint types/ts3.4“dtslint types/ts4.0Înpm run format && npm run build && npm run test-coverage && npm run test-typesˆtabWidth‡useTabs‹singleQuote�bracketSpacing„semi�trailingComma„none¡†esnext…rules‡ignores
Œguard-for-in“no-unreachable-loop unicorn/prefer-number-properties¥unicorn/prefer-optional-catch-bindingœunicorn/prefer-reflect-apply™unicorn/prefer-type-errorƒoffÿÿÿÿÿ÷úÿÿŠunified.js‡plugins�preset-wooorms/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/unified·şÿÿ@ƒ  Ôu4]xB›üÿÿúÿÿÌúÿÿo/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib/node_modules

úÿÿ@ø½şÿÿv/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/unified.jsx/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/unified.jsonx/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/unified.node�unified@9.2.2�üÿÿ�üÿÿ�üÿÿ�üÿÿ@ò{ÿÿÿzÿÿÿ@µşÿÿğøùúy/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/unified/index‡ùÿÿ�/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-parse/index.js€€ …/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-parse/package.json`ˆùÿÿ‰ùÿÿĞúÿÿÒúÿÿ\şÿÿÖúÿÿÕúÿÿÓúÿÿÔúÿÿ]şÿÿ[şÿÿqÿÿÿ×úÿÿŒùÿÿ‹ùÿÿtÿÿÿ·ùÿÿ…9.0.0Ÿremark plugin to parse Markdownáúÿÿ`ºùÿÿ°ùÿÿ�remark-plugin†pluginÜıÿÿ…mdastˆabstractyÿÿÿzÿÿÿwÿÿÿrÿÿÿûÿÿ•https://remark.js.orgÂhttps://github.com/remarkjs/remark/tree/main/packages/remark-parse©https://github.com/remarkjs/remark/issuesişÿÿjşÿÿ~ÿÿÿÿÿÿÿÿÿ¢Eugene Sharygin <eush77@gmail.com>ÿÿÿªElijah Hamovitz <elijahhamovitz@gmail.com>˜Ika <ikatyang@gmail.com>Šşúÿÿ˜mdast-util-from-markdown†^0.8.0¨Œtape test.js
x/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-parse‡şÿÿ@ƒ  Ôu4]xBküÿÿäùÿÿœúÿÿĞ

ëùÿÿ@ù�şÿÿ{/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-parse.js}/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-parse.json}/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-parse.node’remark-parse@9.0.0nüÿÿnüÿÿnüÿÿnüÿÿ@óÛÚ@†şÿÿñøùú~/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-parse/indexXùÿÿ‰/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/mdast-util-to-string/index.js€€ �/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/mdast-util-to-string/package.json`YùÿÿZùÿÿ¡úÿÿ£úÿÿ-şÿÿ¤úÿÿ¥úÿÿ.şÿÿ,şÿÿBÿÿÿ/şÿÿ;şÿÿ¢úÿÿ§úÿÿ¨úÿÿ^ùÿÿ\ùÿÿDÿÿÿEÿÿÿFÿÿÿŒtypeCoveragexùÿÿüÿÿµmdast utility to get the plain text content of a node²úÿÿ	…unistÒŠmdast-util­ûÿÿ‡utility¬ıÿÿ:üÿÿ†stringGÿÿÿ syntax-tree/mdast-util-to-stringºhttps://github.com/syntax-tree/mdast-util-to-string/issues;şÿÿ<şÿÿPÿÿÿQÿÿÿQÿÿÿ
@ùÿÿ_ÿÿÿ­úÿÿ­úÿÿ_ÿÿÿ
‹@types/tapekÿÿÿ6ÿÿÿmÿÿÿnÿÿÿ†rimrafnÿÿÿ�type-coverage×úÿÿ5ÿÿÿ˜ùÿÿpÿÿÿdÿÿÿ—ùÿÿ”ùÿÿ­ùÿÿqÿÿÿdÿÿÿ˜ùÿÿ‡^0.39.0‡prepackOùÿÿqÿÿÿtÿÿÿuÿÿÿyÿÿÿŸnpm run build && npm run format§rimraf "*.d.ts" && tsc && type-coveragexÿÿÿŒnode test.jsìc8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test.js¸npm run build && npm run format && npm run test-coverage…†(ÿÿÿˆ†no-var•prefer-arrow-callback��‘’‡atLeast†detailÙùÿÿ`d€/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/mdast-util-to-stringFşÿÿ@ƒ  Ôu4]xB*üÿÿ£ùÿÿ[úÿÿ�

ªùÿÿ@ùMşÿÿƒ/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/mdast-util-to-string.js…/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/mdast-util-to-string.json…/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/mdast-util-to-string.nodešmdast-util-to-string@3.1.0-üÿÿ-üÿÿ-üÿÿ-üÿÿ@óÉÈ@Eşÿÿñøùúùÿÿx/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/path/path.js€€ }/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/path/package.json
ìıÿÿùÿÿaúÿÿíıÿÿcúÿÿùÿÿfúÿÿdúÿÿbúÿÿùÿÿùÿÿûıÿÿ†Joyent•http://www.joyent.comùÿÿ“Node.JS path module…enderùÿÿmúÿÿ†0.12.7«http://nodejs.org/docs/latest/api/path.htmlûıÿÿôıÿÿ git://github.com/jinder/path.git‰./path.jsKûÿÿeûÿÿ‡^0.11.1‡^0.10.3p/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/pathù@ƒ  Ôu4]xBüÿÿzùÿÿ2úÿÿfÿÿÿ

�ùÿÿ@ù$şÿÿs/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/path.jsu/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/path.jsonu/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/path.node‹path@0.12.7üÿÿüÿÿüÿÿüÿÿ@óàß@şÿÿñøùú@ƒ  Ôu4]xBòøÿÿjùÿÿ úÿÿTÿÿÿ

n/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/fs{/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/fs/package.json¸ıÿÿ@üşÿÿq/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/fs.jss/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/fs.jsons/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/fs.node‘fs@0.0.1-securityğûÿÿğûÿÿğûÿÿğûÿÿ@`
şÿÿöúûüw/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/fs/index.jsz/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/fs/index.js.js|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/fs/index.js.json|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/fs/index.js.nodet/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/fs/indexy/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/fs/index.jsony/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/fs/index.nodeÖøÿÿ�/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/directory-tree/lib/directory-tree.js€€ ‡/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/directory-tree/package.json`×øÿÿØøÿÿúÿÿ"úÿÿ«ıÿÿ úÿÿªıÿÿ!úÿÿ#úÿÿ$úÿÿÛøÿÿÜøÿÿ'úÿÿ,úÿÿÚøÿÿóøÿÿ…3.2.2¨Convert a directory tree to a JS object.Àıÿÿ¹ıÿÿ¯https://github.com/mihneadb/node-directory-treeÆøÿÿËşÿÿ•lib/directory-tree.js–Mihnea Dobrescu-Balaur+úÿÿ²ıÿÿ¶https://github.com/mihneadb/node-directory-tree/issuesù‘command-line-args’command-line-usage†^5.2.0†^6.1.1„chai…mocha†^2.3.0)ùÿÿŒbin/index.js¨ûÿÿ†>=10.0óşÿÿùz/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/directory-tree—./lib/directory-tree.js@ƒ  Ôu4]xB¶ûÿÿ/ùÿÿçùÿÿÿÿÿ

6ùÿÿ@øÙıÿÿ}/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/directory-tree.js/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/directory-tree.json/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/directory-tree.node”directory-tree@3.2.2¹ûÿÿ¹ûÿÿ¹ûÿÿ¹ûÿÿ@ò×Ö~/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/directory-tree/lib@Ğıÿÿï÷øù‹/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/directory-tree/lib/package.json¢øÿÿj/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib/node.js€€ £øÿÿùÿÿ
ùÿÿ�./lib/node.js@ƒ 0Ôu4]xBÚûÿÿıùÿÿ¾ûÿÿ!€Ae3]xBpAe3]xBÎùÿÿ}şÿÿ

 ùÿÿ˜øÿÿq/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib/transformer.js€€ ™øÿÿùÿÿùÿÿ”./lib/transformer.js@ƒ 0Ôu4]xBĞûÿÿı
ùÿÿ´ûÿÿ!€Ae3]xBpAe3]xBÄùÿÿxşÿÿ

ùÿÿ�øÿÿx/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/head.js€€ ×ùÿÿˆûÿÿ‰ûÿÿ‰./head.js@ƒ @Ôu4]xBŠûÿÿùÿÿ²ùÿÿ
…ûÿÿ“ûÿÿMıÿÿ
ùÿÿ@Ğùÿÿø‚ûÿÿ€øÿÿz/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/router.js€€ Éùÿÿzûÿÿ{ûÿÿ‹./router.js@ƒ @Ôu4]xB|ûÿÿõøÿÿ¤ùÿÿ
wûÿÿ…ûÿÿİıÿÿüøÿÿ@Âùÿÿøtûÿÿrøÿÿä€€ ¼ùÿÿmûÿÿnûÿÿå@ @Ôu4]xBpûÿÿéøÿÿlûÿÿzûÿÿ5ıÿÿòøÿÿéjøÿÿøøÿÿ£ûÿÿ@ùøÿÿÈ€€ løÿÿÕøÿÿÖøÿÿÉ@ƒ PÔu4]xBÇ¤ûÿÿÊáøÿÿ™ùÿÿHşÿÿ

ëøÿÿcøÿÿñøÿÿœûÿÿ@òøÿÿË€€ eøÿÿÎøÿÿÏøÿÿÌ@ƒ PÔu4]xBÊ�ûÿÿÍÚøÿÿ’ùÿÿFşÿÿ

äøÿÿšwebpack/lib/ExternalModule@ÍûÿÿˆcommonjsÌûÿÿ’javascript/dynamic`
…asyncóøÿÿ
;ùÿÿùÿÿùÿÿMøÿÿ
°webpack/lib/dependencies/StaticExportsDependency]import path from 'path';
import fs from "fs";
export const Node = {
    isFile: function(filename) {
        try {
            return fs.lstatSync(filename).isFile();
        } catch (err) {
            console.log(err);
            return false;
        }
    },
    getFullPath: function(folderPath) {
        return fs.readdirSync(folderPath).map((fn)=>path.join(folderPath, fn)
        );
    },
    getFiles: function(dir) {
        var results = [];
        var list = fs.readdirSync(dir);
        list.forEach(function(file) {
            file = dir + '/' + file;
            var stat = fs.statSync(file);
            if (stat && stat.isDirectory()) {
                /* Recurse into a subdirectory */ results = results.concat(Node.getFiles(file));
            } else {
                /* Is a file */ results.push(file);
            }
        });
        return results.filter((f)=>f.endsWith(".md")
        );
    },
    readFileSync: function(fullPath) {
        return fs.readFileSync(fullPath, "utf8");
    },
    getMarkdownFolder: function() {
        return path.join(process.cwd(), 'posts');
    }
};
ûwebpack://./node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!./lib/node.js˜{"version":3,"sources":["webpack://./lib/node.js"],"sourcesContent":["import path from 'path'\nimport fs from \"fs\"\n\n\nexport const Node = {\n    isFile:function(filename){\n        try {\n            return fs.lstatSync(filename).isFile()\n        } catch (err) {\n            console.log(err)\n            return false\n        }\n\n    },\n    getFullPath:function(folderPath){\n        return fs.readdirSync(folderPath).map(fn  => path.join(folderPath, fn))\n    },\n    getFiles: function(dir) {\n        var results = [];\n        var list = fs.readdirSync(dir);\n        list.forEach(function(file) {\n            file = dir + '/' + file;\n            var stat = fs.statSync(file);\n            if (stat && stat.isDirectory()) { \n                /* Recurse into a subdirectory */\n                results = results.concat(Node.getFiles(file));\n            } else { \n                /* Is a file */\n                results.push(file);\n            }\n        });\n        return results.filter(f => f.endsWith(\".md\"))\n    },\n    readFileSync:function(fullPath){\n        return fs.readFileSync(fullPath, \"utf8\")\n    },\n\n    getMarkdownFolder: function () {\n        return path.join(process.cwd(), 'posts')\n    }\n}"],"names":["path","fs","Node","isFile","filename","lstatSync","err","console","log","getFullPath","folderPath","readdirSync","map","fn","join","getFiles","dir","results","list","forEach","file","stat","statSync","isDirectory","concat","push","filter","f","endsWith","readFileSync","fullPath","getMarkdownFolder","process","cwd"],"mappings":"AAAA,MAAM,CAACA,IAAI,MAAM,CAAM;AACvB,MAAM,CAACC,EAAE,MAAM,CAAI;AAGnB,MAAM,CAAC,KAAK,CAACC,IAAI,GAAG,CAAC;IACjBC,MAAM,EAAC,QAAQ,CAACC,QAAQ,EAAC,CAAC;QACtB,GAAG,CAAC,CAAC;YACD,MAAM,CAACH,EAAE,CAACI,SAAS,CAACD,QAAQ,EAAED,MAAM;QACxC,CAAC,CAAC,KAAK,EAAEG,GAAG,EAAE,CAAC;YACXC,OAAO,CAACC,GAAG,CAACF,GAAG;YACf,MAAM,CAAC,KAAK;QAChB,CAAC;IAEL,CAAC;IACDG,WAAW,EAAC,QAAQ,CAACC,UAAU,EAAC,CAAC;QAC7B,MAAM,CAACT,EAAE,CAACU,WAAW,CAACD,UAAU,EAAEE,GAAG,EAACC,EAAE,GAAKb,IAAI,CAACc,IAAI,CAACJ,UAAU,EAAEG,EAAE;;IACzE,CAAC;IACDE,QAAQ,EAAE,QAAQ,CAACC,GAAG,EAAE,CAAC;QACrB,GAAG,CAACC,OAAO,GAAG,CAAC,CAAC;QAChB,GAAG,CAACC,IAAI,GAAGjB,EAAE,CAACU,WAAW,CAACK,GAAG;QAC7BE,IAAI,CAACC,OAAO,CAAC,QAAQ,CAACC,IAAI,EAAE,CAAC;YACzBA,IAAI,GAAGJ,GAAG,GAAG,CAAG,KAAGI,IAAI;YACvB,GAAG,CAACC,IAAI,GAAGpB,EAAE,CAACqB,QAAQ,CAACF,IAAI;YAC3B,EAAE,EAAEC,IAAI,IAAIA,IAAI,CAACE,WAAW,IAAI,CAAC;gBAC7B,EAAiC,AAAjC,6BAAiC,AAAjC,EAAiC,CACjCN,OAAO,GAAGA,OAAO,CAACO,MAAM,CAACtB,IAAI,CAACa,QAAQ,CAACK,IAAI;YAC/C,CAAC,MAAM,CAAC;gBACJ,EAAe,AAAf,WAAe,AAAf,EAAe,CACfH,OAAO,CAACQ,IAAI,CAACL,IAAI;YACrB,CAAC;QACL,CAAC;QACD,MAAM,CAACH,OAAO,CAACS,MAAM,EAACC,CAAC,GAAIA,CAAC,CAACC,QAAQ,CAAC,CAAK;;IAC/C,CAAC;IACDC,YAAY,EAAC,QAAQ,CAACC,QAAQ,EAAC,CAAC;QAC5B,MAAM,CAAC7B,EAAE,CAAC4B,YAAY,CAACC,QAAQ,EAAE,CAAM;IAC3C,CAAC;IAEDC,iBAAiB,EAAE,QAAQ,GAAI,CAAC;QAC5B,MAAM,CAAC/B,IAAI,CAACc,IAAI,CAACkB,OAAO,CAACC,GAAG,IAAI,CAAO;IAC3C,CAAC;AACL,CAAC","file":"x"}`åøÿÿæøÿÿ
çøÿÿ@…ûÿÿèøÿÿ
ÿ÷øÿÿøøÿÿùøÿÿúøÿÿ�efd6170dbb111f87ûøÿÿ™üÿÿ ğÒu4]xB¤§


dÿÿı€`

`€a-

``5@\`.@\

a%

,øÿÿ,øÿÿ

`
ZøÿÿZøÿÿ

`ŠüÿÿŠüÿÿ

a%	ùÿÿ‰lstatSyncVøÿÿA†’
UøÿÿUøÿÿÿ

b	ùÿÿ‹readdirSyncRøÿÿA?M
QøÿÿQøÿÿÿ

c

	ùÿÿ¼üÿÿ øÿÿAdm
øÿÿøÿÿÿ

c
4
=	
ùÿÿùLøÿÿAÛé
KøÿÿKøÿÿÿ

c!	
ùÿÿˆstatSyncHøÿÿAR]
GøÿÿGøÿÿÿ

c"	ùÿÿxüÿÿEøÿÿAÔã
DøÿÿDøÿÿÿ

c  	ùÿÿ¯üÿÿøÿÿA1:
øÿÿøÿÿÿ

c##Êimport matter from 'gray-matter';
import unified from "unified";
import markdown from "remark-parse";
import { wikiLinkPlugin } from "remark-wiki-link";
import html from "remark-html";
import frontmatter from "remark-frontmatter";
import externalLinks from "remark-external-links";
import highlight from "remark-highlight.js";
import { Node } from "./node";
import rehypePrism from 'rehype-prism-plus';
import remarkRehype from 'remark-rehype';
import rehypeStringify from 'rehype-stringify';
import obsidianImage from './obsidian-image.js';
import { getAllMarkdownFiles, toFilePath, toSlug } from "./utils";
export const Transformer = {
    haveFrontMatter: function(content) {
        //console.log("\t Front matter data content", content)
        if (!content) return false;
        const indexOfFirst = content.indexOf("---");
        //console.log("\t Front matter data firstIndex  ", indexOfFirst)
        //console.log("index first", indexOfFirst)
        if (indexOfFirst === -1) {
            return false;
        }
        let indexOfSecond = content.indexOf("---", indexOfFirst + 1);
        return indexOfSecond !== -1;
    },
    getFrontMatterData: function(filecontent) {
        if (Transformer.haveFrontMatter(filecontent)) {
            return matter(filecontent).data;
        }
        return {};
    },
    pageResolver: function(pageName) {
        const allFileNames = getAllMarkdownFiles();
        const result = allFileNames.find((aFile)=>{
            let parseFileNameFromPath = Transformer.parseFileNameFromPath(aFile);
            return Transformer.normalizeFileName(parseFileNameFromPath) === Transformer.normalizeFileName(pageName);
        });
        // permalink = permalink.replace("Ã§", "c").replace("Ä±", "i").replace("ÅŸ", "s")
        // console.log(`/note/${toSlug(result)}`)
        if (result === undefined || result.length === 0) {
        // console.log("Cannot resolve file path   " + pageName)
        }
        // console.log("Internal Link resolved:   [" + pageName + "] ==> [" + temp[0] +"]")
        return result !== undefined && result.length > 0 ? [
            toSlug(result)
        ] : [
            "/"
        ];
    },
    hrefTemplate: function(permalink) {
        // permalink = Transformer.normalizeFileName(permalink)
        permalink = permalink.replace("\xe7", "c").replace("Ä±", "i").replace("ÅŸ", "s");
        return `/note/${permalink}`;
    },
    getHtmlContent: function(content) {
        let htmlContent = [];
        const sanitizedContent = Transformer.preprocessThreeDashes(content);
        unified().use(markdown, {
            gfm: true
        }).use(obsidianImage).use(highlight).use(externalLinks, {
            target: "_blank",
            rel: [
                'noopener'
            ]
        })// .use(frontmatter, ['yaml', 'toml'])
        .use(wikiLinkPlugin, {
            permalinks: null,
            pageResolver: function(pageName) {
                return Transformer.pageResolver(pageName);
            },
            hrefTemplate: function(permalink) {
                return Transformer.hrefTemplate(permalink);
            },
            aliasDivider: "|"
        }).use(remarkRehype).use(rehypePrism).use(rehypeStringify).process(sanitizedContent, function(err, file) {
            htmlContent.push(String(file).replace("\n", ""));
            if (err) {
                console.log("ERRROR:" + err);
            }
        });
        htmlContent = htmlContent.join("");
        htmlContent = htmlContent.split("---");
        return [
            htmlContent
        ];
    },
    /* SANITIZE MARKDOWN FOR --- */ preprocessThreeDashes: function(content) {
        const indexOfFirst = content.indexOf("---");
        if (indexOfFirst === -1) {
            return content;
        }
        const indexOfSecond = content.indexOf("---", indexOfFirst + 1);
        content.slice(0, indexOfSecond);
        const contentPart = content.slice(indexOfSecond);
        return contentPart.split("---").join("");
    },
    /* Normalize File Names */ normalizeFileName: function(filename) {
        let processedFileName = filename.replace(".md", "");
        processedFileName = processedFileName.replace('(', '').replace(')', '');
        processedFileName = processedFileName.split(" ").join("-");
        processedFileName = processedFileName.toLowerCase();
        const conversionLetters = [
            [
                "\xe7",
                "c"
            ],
            [
                "ÅŸ",
                "s"
            ],
            [
                "Ä±",
                "i"
            ],
            [
                "\xfc",
                "u"
            ],
            [
                "\xf6",
                "o"
            ],
            [
                "ÄŸ",
                "g"
            ],
            [
                "\xc7",
                "C"
            ],
            [
                "Å�",
                "S"
            ],
            [
                "Ä°",
                "I"
            ],
            [
                "\xdc",
                "U"
            ],
            [
                "\xd6",
                "O"
            ],
            [
                "Ä�",
                "G"
            ]
        ];
        conversionLetters.forEach((letterPair)=>{
            processedFileName = processedFileName.split(letterPair[0]).join(letterPair[1]);
        //processedFileName = processedFileName.replace(letterPair[0], letterPair[1])
        });
        //console.log("filename", processedFileName)
        return processedFileName;
    },
    /* Parse file name from path then sanitize it */ parseFileNameFromPath: function(filepath) {
        if (typeof filepath === 'string' && filepath.includes("/")) {
            const parsedFileFromPath = filepath.split("/")[filepath.split("/").length - 1];
            return parsedFileFromPath.replace(".md", "");
        } else {
            console.log("Failed: CANNOT Parse" + filepath);
            return null;
        }
    },
    /* Pair provided and existing Filenames*/ getInternalLinks: function(aFilePath) {
        const fileContent = Node.readFileSync(aFilePath);
        const internalLinks = [];
        const sanitizedContent = Transformer.preprocessThreeDashes(fileContent);
        unified().use(markdown, {
            gfm: true
        }).use(wikiLinkPlugin, {
            pageResolver: function(pageName) {
                // let name = [Transformer.parseFileNameFromPath(pageName)];
                let canonicalSlug;
                if (pageName.includes('#')) {
                    // console.log(pageName)
                    const tempSlug = pageName.split('#')[0];
                    if (tempSlug.length === 0) {
                        // Meaning it in form of #Heading1 --> slug will be this file slug
                        canonicalSlug = toSlug(aFilePath);
                    } else {
                        canonicalSlug = Transformer.pageResolver(tempSlug)[0].split('#')[0];
                    }
                } else {
                    canonicalSlug = Transformer.pageResolver(pageName)[0].split('#')[0];
                }
                const backLink = {
                    title: Transformer.parseFileNameFromPath(toFilePath(canonicalSlug)),
                    slug: canonicalSlug,
                    shortSummary: canonicalSlug
                };
                if (canonicalSlug != null && internalLinks.indexOf(canonicalSlug) < 0) {
                    internalLinks.push(backLink);
                }
                return [
                    canonicalSlug
                ];
            },
            hrefTemplate: function(permalink) {
                return Transformer.hrefTemplate(permalink);
            },
            aliasDivider: "|"
        }).use(html).processSync(sanitizedContent);
        // console.log("Internal Links of:   "  + aFilePath)
        // internalLinks.forEach(aLink => {
        //     console.log(aLink.title + " --> " + aLink.slug)
        // })
        // console.log("===============Internal Links")
        return internalLinks;
    }
};
‚webpack://./node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!./lib/transformer.js„>{"version":3,"sources":["webpack://./lib/transformer.js"],"sourcesContent":["import matter from 'gray-matter'\nimport unified from \"unified\";\nimport markdown from \"remark-parse\";\nimport {wikiLinkPlugin} from \"remark-wiki-link\";\nimport html from \"remark-html\";\nimport frontmatter from \"remark-frontmatter\";\nimport externalLinks from \"remark-external-links\";\nimport highlight from \"remark-highlight.js\";\nimport {Node} from \"./node\";\nimport rehypePrism from 'rehype-prism-plus'\nimport remarkRehype from 'remark-rehype'\nimport rehypeStringify from 'rehype-stringify'\nimport obsidianImage from './obsidian-image.js'\nimport {getAllMarkdownFiles, toFilePath, toSlug} from \"./utils\";\n\nexport const Transformer = {\n    haveFrontMatter: function (content) {\n        //console.log(\"\\t Front matter data content\", content)\n        if (!content) return false\n        const indexOfFirst = content.indexOf(\"---\");\n        //console.log(\"\\t Front matter data firstIndex  \", indexOfFirst)\n        //console.log(\"index first\", indexOfFirst)\n        if (indexOfFirst === -1) {\n            return false\n        }\n        let indexOfSecond = content.indexOf(\"---\", (indexOfFirst + 1));\n        return indexOfSecond !== -1;\n\n    },\n    getFrontMatterData: function (filecontent) {\n        if (Transformer.haveFrontMatter(filecontent)) {\n            return matter(filecontent).data\n        }\n        return {}\n    },\n\n\n    pageResolver: function (pageName) {\n        const allFileNames = getAllMarkdownFiles()\n        const result = allFileNames.find(aFile => {\n            let parseFileNameFromPath = Transformer.parseFileNameFromPath(aFile);\n            return Transformer.normalizeFileName(parseFileNameFromPath) === Transformer.normalizeFileName(pageName)\n            }\n        )\n\n        // permalink = permalink.replace(\"Ã§\", \"c\").replace(\"Ä±\", \"i\").replace(\"ÅŸ\", \"s\")\n        // console.log(`/note/${toSlug(result)}`)\n        if (result === undefined || result.length === 0) {\n            // console.log(\"Cannot resolve file path   \" + pageName)\n        }\n\n        // console.log(\"Internal Link resolved:   [\" + pageName + \"] ==> [\" + temp[0] +\"]\")\n        return (result !== undefined && result.length > 0) ? [toSlug(result)] : [\"/\"]\n    },\n    hrefTemplate: function (permalink) {\n        // permalink = Transformer.normalizeFileName(permalink)\n        permalink = permalink.replace(\"Ã§\", \"c\").replace(\"Ä±\", \"i\").replace(\"ÅŸ\", \"s\")\n        return `/note/${permalink}`;\n    }, getHtmlContent: function (content) {\n        let htmlContent = []\n        const sanitizedContent = Transformer.preprocessThreeDashes(content)\n\n        unified()\n            .use(markdown, {gfm: true})\n            .use(obsidianImage)\n            .use(highlight)        \n            .use(externalLinks, {target: \"_blank\", rel: ['noopener']})\n            // .use(frontmatter, ['yaml', 'toml'])\n            .use(wikiLinkPlugin, {\n                permalinks: null,\n                pageResolver: function (pageName) {\n                    return Transformer.pageResolver(pageName)\n                },\n                hrefTemplate: function (permalink) {\n                    return  Transformer.hrefTemplate(permalink);\n                },\n\n                aliasDivider: \"|\"\n            })\n            .use(remarkRehype)\n            .use(rehypePrism)\n            .use(rehypeStringify)\n            .process(sanitizedContent,\n                function (err, file) {\n                    htmlContent.push(String(file).replace(\"\\n\", \"\"))\n                    if (err) {\n                        console.log(\"ERRROR:\" + err)\n                    }\n                }\n            )\n        htmlContent = htmlContent.join(\"\")\n        htmlContent = htmlContent.split(\"---\")\n        return [htmlContent]\n    },\n\n    /* SANITIZE MARKDOWN FOR --- */\n    preprocessThreeDashes: function (content) {\n        const indexOfFirst = content.indexOf(\"---\");\n        if (indexOfFirst === -1) {\n            return content\n        }\n        const indexOfSecond = content.indexOf(\"---\", (indexOfFirst + 1));\n        content.slice(0, indexOfSecond);\n        const contentPart = content.slice(indexOfSecond);\n        return contentPart.split(\"---\").join(\"\")\n    },\n\n    /* Normalize File Names */\n    normalizeFileName: function (filename) {\n        let processedFileName = filename.replace(\".md\", \"\");\n        processedFileName = processedFileName.replace('(', '').replace(')', '')\n        processedFileName = processedFileName.split(\" \").join(\"-\")\n        processedFileName = processedFileName.toLowerCase()\n        const conversionLetters = [\n            [\"Ã§\", \"c\"], [\"ÅŸ\", \"s\"], [\"Ä±\", \"i\"], [\"Ã¼\", \"u\"], [\"Ã¶\", \"o\"], [\"ÄŸ\", \"g\"],\n            [\"Ã‡\", \"C\"], [\"Å�\", \"S\"], [\"Ä°\", \"I\"], [\"Ãœ\", \"U\"], [\"Ã–\", \"O\"], [\"Ä�\", \"G\"]\n\n        ];\n        conversionLetters.forEach(letterPair => {\n                processedFileName = processedFileName.split(letterPair[0]).join(letterPair[1])\n                //processedFileName = processedFileName.replace(letterPair[0], letterPair[1])\n            }\n        )\n        //console.log(\"filename\", processedFileName)\n        return processedFileName\n    },\n    /* Parse file name from path then sanitize it */\n    parseFileNameFromPath: function (filepath) {\n        if (typeof filepath ==='string' && filepath.includes(\"/\")) {\n            const parsedFileFromPath = filepath.split(\"/\")[filepath.split(\"/\").length - 1]\n            return parsedFileFromPath.replace(\".md\", \"\")\n        } else {\n            console.log(\"Failed: CANNOT Parse\" + filepath)\n            return null\n        }\n    },\n    /* Pair provided and existing Filenames*/\n    getInternalLinks: function (aFilePath) {\n        const fileContent = Node.readFileSync(aFilePath);\n        const internalLinks = []\n        const sanitizedContent = Transformer.preprocessThreeDashes(fileContent)\n        unified()\n            .use(markdown, {gfm: true})\n            .use(wikiLinkPlugin, {\n                pageResolver: function (pageName) {\n\n                    // let name = [Transformer.parseFileNameFromPath(pageName)];\n\n                    let canonicalSlug;\n                    if (pageName.includes('#')) {\n                        // console.log(pageName)\n                        const tempSlug = pageName.split('#')[0]\n                        if (tempSlug.length === 0) {\n                            // Meaning it in form of #Heading1 --> slug will be this file slug\n                            canonicalSlug = toSlug(aFilePath)\n                        } else {\n                            canonicalSlug =Transformer.pageResolver(tempSlug)[0].split('#')[0]\n                        }\n                    } else {\n                        canonicalSlug = Transformer.pageResolver(pageName)[0].split('#')[0]\n                    }\n\n\n                    const backLink = {\n                        title: Transformer.parseFileNameFromPath(toFilePath(canonicalSlug)),\n                        slug: canonicalSlug,\n                        shortSummary: canonicalSlug\n                    }\n\n                    if (canonicalSlug != null && internalLinks.indexOf(canonicalSlug) < 0) {\n                        internalLinks.push(backLink);\n                    }\n\n                    return [canonicalSlug]\n                }\n                ,\n                hrefTemplate: function (permalink) {\n                    return Transformer.hrefTemplate(permalink)\n                },\n\n                aliasDivider: \"|\"\n            })\n            .use(html)\n            .processSync(sanitizedContent)\n\n        // console.log(\"Internal Links of:   \"  + aFilePath)\n        // internalLinks.forEach(aLink => {\n        //     console.log(aLink.title + \" --> \" + aLink.slug)\n        // })\n        // console.log(\"===============Internal Links\")\n        return internalLinks;\n    }\n}\n"],"names":["matter","unified","markdown","wikiLinkPlugin","html","frontmatter","externalLinks","highlight","Node","rehypePrism","remarkRehype","rehypeStringify","obsidianImage","getAllMarkdownFiles","toFilePath","toSlug","Transformer","haveFrontMatter","content","indexOfFirst","indexOf","indexOfSecond","getFrontMatterData","filecontent","data","pageResolver","pageName","allFileNames","result","find","aFile","parseFileNameFromPath","normalizeFileName","undefined","length","hrefTemplate","permalink","replace","getHtmlContent","htmlContent","sanitizedContent","preprocessThreeDashes","use","gfm","target","rel","permalinks","aliasDivider","process","err","file","push","String","console","log","join","split","slice","contentPart","filename","processedFileName","toLowerCase","conversionLetters","forEach","letterPair","filepath","includes","parsedFileFromPath","getInternalLinks","aFilePath","fileContent","readFileSync","internalLinks","canonicalSlug","tempSlug","backLink","title","slug","shortSummary","processSync"],"mappings":"AAAA,MAAM,CAACA,MAAM,MAAM,CAAa;AAChC,MAAM,CAACC,OAAO,MAAM,CAAS;AAC7B,MAAM,CAACC,QAAQ,MAAM,CAAc;AACnC,MAAM,GAAEC,cAAc,QAAO,CAAkB;AAC/C,MAAM,CAACC,IAAI,MAAM,CAAa;AAC9B,MAAM,CAACC,WAAW,MAAM,CAAoB;AAC5C,MAAM,CAACC,aAAa,MAAM,CAAuB;AACjD,MAAM,CAACC,SAAS,MAAM,CAAqB;AAC3C,MAAM,GAAEC,IAAI,QAAO,CAAQ;AAC3B,MAAM,CAACC,WAAW,MAAM,CAAmB;AAC3C,MAAM,CAACC,YAAY,MAAM,CAAe;AACxC,MAAM,CAACC,eAAe,MAAM,CAAkB;AAC9C,MAAM,CAACC,aAAa,MAAM,CAAqB;AAC/C,MAAM,GAAEC,mBAAmB,EAAEC,UAAU,EAAEC,MAAM,QAAO,CAAS;AAE/D,MAAM,CAAC,KAAK,CAACC,WAAW,GAAG,CAAC;IACxBC,eAAe,EAAE,QAAQ,CAAEC,OAAO,EAAE,CAAC;QACjC,EAAsD,AAAtD,oDAAsD;QACtD,EAAE,GAAGA,OAAO,EAAE,MAAM,CAAC,KAAK;QAC1B,KAAK,CAACC,YAAY,GAAGD,OAAO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¸

`€A¹æ

`-€Aç

`2€AF

`,€AGe

		`€Af’


`,€A“¼

c)€A½ì

c/€Aí

c

0€A`

cBAh¾Aa¾

a@Ø`"
øÿÿøÿÿ

`!
%øÿÿ%øÿÿ

`
øÿÿøÿÿ

`$
!øÿÿ!øÿÿ

`2
øÿÿøÿÿ

`
HøÿÿHøÿÿ

`-
øÿÿøÿÿ

`2
øÿÿøÿÿ

`,
	,üÿÿ,üÿÿ

		`

øÿÿøÿÿ


`,
`øÿÿøÿÿ

c)
`øÿÿøÿÿ

c/
`
“./obsidian-image.jsÿ

c

0
`‡./utilsÿ

cBNüÿÿNüÿÿ

a@Ø	¾øÿÿ†matterAïõü÷ÿÿü÷ÿÿÿ

c	ÛûÿÿÚûÿÿAq„`÷÷ÿ

c##0	ÜûÿÿÛûÿÿACI`ôôÿ

c//	´øÿÿ
øÿÿA	

	øÿÿ	øÿÿÿ

c<<	±øÿÿ+üÿÿA



øÿÿøÿÿÿ

c<<	®øÿÿ�obsidianImageAH
U


`
èèÿ

c>>	ªøÿÿ‰highlightA[
d


÷÷ÿÿ÷÷ÿÿÿ

c>">+	¦øÿÿ�externalLinksAj
w


ò÷ÿÿò÷ÿÿÿ

c>1>>	�wikiLinkPluginşA!

ô÷ÿÿô÷ÿÿÿ

cD
D	�øÿÿŒremarkRehypeAdp

`ï÷ÿÿï÷ÿÿÿ

cMM	šøÿÿ‹rehypePrismAv�


á÷ÿÿá÷ÿÿÿ

cM!M,	–øÿÿ�rehypeStringifyA‡–

`ß÷ÿÿß÷ÿÿÿ

cM2MA	üÿÿüÿÿüÿÿAÿ
	õûÿÿõûÿÿÿ

@«`@«`-	�øÿÿå÷ÿÿA˜Ÿä÷ÿÿä÷ÿÿÿ

@®@®`	ÛüÿÿA¦®

İ÷ÿÿİ÷ÿÿÿ

@®`@®`	éèA×å

Ş÷ÿÿŞ÷ÿÿÿ

@°`@°`	­ûÿÿ¬ûÿÿAÔÚ`ÅÅÿ

@¹`(@¹`.	¨ûÿÿ§ûÿÿA[e`ÂÂÿ

@Á`=@Á`G	‚øÿÿ„htmlA…‰

Ğ÷ÿÿĞ÷ÿÿÿ

@Ğ`@Ğ`™÷ÿÿŒ/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/shared/lib/loadable.js€€ âøÿÿ“úÿÿ”úÿÿ�./dist/shared/lib/loadable.js@ PÔu4]xB•úÿÿøÿÿ‘úÿÿŸúÿÿû‰/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/next/dist/shared/lib/loadableøÿÿıÿÿ'ıÿÿ�÷ÿÿ
ÿÿÿ€€ ×øÿÿˆúÿÿ‰úÿÿÿÿÿ@ PÔu4]xB‹úÿÿøÿÿ‡úÿÿ•úÿÿîüÿÿ
øÿÿÿÿÿ…÷ÿÿ‹/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/lab/node/TreeView/index.js€€ Ãüÿÿ_üÿÿŸ÷ÿÿ�5.0.0-alpha.74
`üÿÿŸLaboratory for new MUI modules.aüÿÿ©÷ÿÿbüÿÿcüÿÿdüÿÿeüÿÿƒlabgüÿÿhüÿÿiüÿÿ�packages/mui-labİøÿÿdüÿÿjüÿÿ©https://mui.com/components/about-the-lab/küÿÿlüÿÿmüÿÿ—÷ÿÿiùÿÿˆdate-fns…dayjs…luxon†moment�÷ÿÿ ÷ÿÿ¢ıÿÿlüÿÿ‡^2.25.0‡^1.10.7‘^1.28.0 || ^2.0.0‡^2.29.1iüÿÿiüÿÿ_ùÿÿö÷øù$ùÿÿ#ùÿÿ"ùÿÿ!ùÿÿ ùÿÿ`
4ùÿÿ‘@date-io/date-fns�@date-io/dayjs�@date-io/luxon�@date-io/momentdüÿÿeüÿÿgüÿÿiüÿÿlüÿÿ¬ùÿÿmüÿÿ„rifmmüÿÿ‡^2.13.1ÿÿÿmüÿÿnüÿÿpüÿÿrüÿÿuüÿÿ«÷ÿÿvüÿÿ‡^0.12.1
vüÿÿwüÿÿJúÿÿxüÿÿyüÿÿzüÿÿšüÿÿ˜./node/TreeView/index.js@ƒ `Ôu4]xB{üÿÿ[úÿÿ|üÿÿÔ÷ÿÿƒøÿÿüÿÿ

–üÿÿ—üÿÿÛ÷ÿÿ@“üÿÿ–üÿÿy/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/lab/node@•üÿÿŠ/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/lab/TreeView/package.jsonÎ‚/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/lab/node/TreeView@‘üÿÿ€/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/lab/TreeView.js‚/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/lab/TreeView.json‚/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/lab/TreeView.node�/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/lab/node/TreeView/package.json†/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/lab/node/package.jsonE÷ÿÿ‹/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/lab/node/TreeItem/index.js€€ ƒüÿÿå€üÿÿ˜./node/TreeItem/index.js@ƒ `Ôu4]xBaüÿÿAúÿÿbüÿÿº÷ÿÿiøÿÿüÿÿ

|üÿÿ}üÿÿÁ÷ÿÿè@™üÿÿŠ/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/lab/TreeItem/package.json÷‚/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/lab/node/TreeItem@•üÿÿ€/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/lab/TreeItem.js‚/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/lab/TreeItem.json‚/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/lab/TreeItem.node�/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/lab/node/TreeItem/package.jsoné/÷ÿÿ�/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material/node/styles/index.js€€ üÿÿJüÿÿKüÿÿ–./node/styles/index.js@ƒ `Ôu4]xBKüÿÿ+úÿÿLüÿÿ¤÷ÿÿSøÿÿíûÿÿ

GüÿÿUüÿÿ«÷ÿÿXüÿÿ@“üÿÿ�/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material/styles/package.json÷…/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material/node/styles@�üÿÿƒ/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material/styles.js…/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material/styles.json…/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material/styles.node’/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material/node/styles/package.jsonSüÿÿ÷ÿÿ�/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material/node/Alert/index.js€€ íûÿÿ4üÿÿ5üÿÿ•./node/Alert/index.js@ƒ `Ôu4]xB5üÿÿúÿÿ6üÿÿ�÷ÿÿ=øÿÿ×ûÿÿ

1üÿÿ?üÿÿ•÷ÿÿBüÿÿ@…üÿÿŒ/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material/Alert/package.json÷„/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material/node/Alert@�üÿÿ‚/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material/Alert.js„/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material/Alert.json„/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material/Alert.node‘/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material/node/Alert/package.json=üÿÿ÷ÿÿ’/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material/node/AlertTitle/index.js€€ ×ûÿÿüÿÿüÿÿš./node/AlertTitle/index.js@ƒ `Ôu4]xBüÿÿÿùÿÿ üÿÿx÷ÿÿ'øÿÿÁûÿÿ

üÿÿ)üÿÿ÷ÿÿ,üÿÿ@wüÿÿ‘/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material/AlertTitle/package.json÷‰/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material/node/AlertTitle@süÿÿ‡/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material/AlertTitle.js‰/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material/AlertTitle.json‰/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material/AlertTitle.node–/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/material/node/AlertTitle/package.json'üÿÿíöÿÿ�/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/icons-material/ExpandMore.js€€ 6üÿÿÇûÿÿ÷ÿÿ…5.5.1
ÈûÿÿºMaterial Design icons distributed as SVG React components.üÿÿ÷ÿÿÊûÿÿËûÿÿÌûÿÿÍûÿÿ…iconsÏûÿÿĞûÿÿÑûÿÿ›packages/mui-icons-materialEøÿÿÌûÿÿÒûÿÿªhttps://mui.com/components/material-icons/ÓûÿÿÔûÿÿÕûÿÿÿöÿÿÑøÿÿ
÷ÿÿıÿÿØûÿÿÙûÿÿÏøÿÿ•øÿÿ©øÿÿèûÿÿ
óûÿÿôûÿÿÇùÿÿõûÿÿ�./esm/index.jsöûÿÿ!üÿÿ�./ExpandMore.js@ƒ `Ôu4]xB÷ûÿÿ×ùÿÿøûÿÿP÷ÿÿÿ÷ÿÿ™ûÿÿ

üÿÿüÿÿ üÿÿW÷ÿÿ@üÿÿüÿÿæÍöÿÿ�/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/@mui/icons-material/ChevronRight.js€€ üÿÿñüÿÿ‘./ChevronRight.js@ƒ `Ôu4]xBéûÿÿÉùÿÿêûÿÿB÷ÿÿñ÷ÿÿ‹ûÿÿ

üÿÿüÿÿüÿÿI÷ÿÿ@üÿÿüÿÿøkúÿÿcşÿÿkúÿÿdşÿÿ@eşÿÿ
gşÿÿ
£÷ÿÿhşÿÿ
¸öÿÿŒûÿÿ€€ �ûÿÿÔûÿÿÕûÿÿ—ûÿÿ@ �Ôu4]xBÖûÿÿ¶ùÿÿ×ûÿÿ/÷ÿÿ:÷ÿÿãûÿÿéûÿÿìûÿÿÏöÿÿVşÿÿÏöÿÿWşÿÿ@Xşÿÿ
Zşÿÿ
–÷ÿÿ[şÿÿ
«öÿÿ¾€€ õûÿÿĞòûÿÿÑ@  Ôu4]xBÉûÿÿ©ùÿÿÊûÿÿ"÷ÿÿğûÿÿñûÿÿôûÿÿ+÷ÿÿÕ£öÿÿÖ€€ íûÿÿÈêûÿÿ×@  Ôu4]xBÁûÿÿ¡ùÿÿÂûÿÿ÷ÿÿèûÿÿéûÿÿôûÿÿ#÷ÿÿÛ next/dist/shared/lib/loadable.js>şÿÿtüÿÿ?şÿÿ@@şÿÿ
Bşÿÿ
~÷ÿÿCşÿÿ
9úÿÿ7şÿÿ9úÿÿ8şÿÿ@9şÿÿ
;şÿÿ
w÷ÿÿ<şÿÿ
4úÿÿ0şÿÿ4úÿÿ1şÿÿ@2şÿÿ
4şÿÿ
p÷ÿÿ5şÿÿ
…öÿÿ€/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/gray-matter/index.js€€ „/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/gray-matter/package.json`†öÿÿÎ÷ÿÿ‡öÿÿÓ÷ÿÿYûÿÿoüÿÿÑ÷ÿÿÒ÷ÿÿĞ÷ÿÿÕ÷ÿÿÏ÷ÿÿÛ÷ÿÿ‰öÿÿŠöÿÿ‹öÿÿZûÿÿ‡browser‡typingsŒeslintConfig„verb öÿÿParse front-matter from a string or file. Fast, reliable and easy to use. Parses YAML front matter by default, but also has support for YAML, JSON, TOML or Coffee Front-Matter, with options to set custom delimiters. Used by metalsmith, assemble, verb and many other projects.…4.0.3¬https://github.com/jonschlinkert/gray-matter±Jon Schlinkert (https://github.com/jonschlinkert)
©Andrew Meyer (https://github.com/Ajedi32)ªBrian Woodward (https://twitter.com/doowb)ªCaesar Schinas (https://caesarschinas.com)¬Ian Storm Taylor (http://ianstormtaylor.com)±Jon Schlinkert (http://twitter.com/jonschlinkert)(Osman Nuri OkumuÅŸ (http://onokumus.com)ªPawel Kadluczka (http://blog.3d-logic.com)ŸRob Loach (http://robloach.net)œ(https://github.com/heymind)¨Zach Whaley (http://zachwhaleys.website)™jonschlinkert/gray-matterTûÿÿ³https://github.com/jonschlinkert/gray-matter/issuesË÷ÿÿ�gray-matter.d.ts€üÿÿ�üÿÿüÿÿTùÿÿ…>=6.0Ÿüÿÿ¥ıÿÿ‡js-yaml‡kind-of�section-matter�strip-bom-string‡^3.13.1†^6.0.2µöÿÿµöÿÿ`Šansi-green‹benchmarkedŒcoffeescript�delimiter-regex�extend-shallowŒfront-matter�gulp-format-mdˆminimist”ıÿÿ„toml…vinyl…write†^0.1.1qüÿÿ†^2.2.3püÿÿ†^3.0.2�ıÿÿ¥öÿÿ†^1.2.0†^6.1.4†^2.3.3†^2.1.0†^1.0.3`ˆassemble†coffee�coffee-script„data„docs�documentation‡extractŠextracting…frontç‹frontmatterˆgenerate‰generatorˆgh-pages„grayŠjavascript†jekyll‚js„JSON”úÿÿ\şÿÿ,üÿÿ†parser‡parsing„site†staticˆtemplateÜ„yamlƒyfmQöÿÿ
Ã}üÿÿŠno-consoleƒtoc†layout…tasks†üÿÿ‡helpers„lint‡relatedˆreflinks
÷ÿÿ†readmeÉˆexamples”./examples/helper.jsø„listÒŠmetalsmith›Œcoffe-scriptØ±Á†updatew/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/gray-matter-ûÿÿ@ƒ ÀÔu4]xBùÿÿŠöÿÿB÷ÿÿvüÿÿ

‘öÿÿ@ù4ûÿÿz/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/gray-matter.js|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/gray-matter.json|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/gray-matter.node‘gray-matter@4.0.3ùÿÿùÿÿùÿÿùÿÿ@óƒ‚@,ûÿÿñøùúÿõÿÿ�/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-wiki-link/dist/index.cjs.js€€ ‰/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-wiki-link/package.json`
öÿÿH÷ÿÿöÿÿÔúÿÿK÷ÿÿJ÷ÿÿÓúÿÿI÷ÿÿóõÿÿzÿÿÿöÿÿöÿÿöÿÿ2öÿÿ¡Parse and render wiki-style links øÿÿ)öÿÿyüÿÿWúÿÿƒgfm­https://github.com/landakram/remark-wiki-linkW÷ÿÿûõÿÿ…emailİúÿÿŒMark Hudnall’me@markhudnall.com—https://markhudnall.com‘dist/index.cjs.js‘dist/index.esm.js‘dist/index.umd.jsüõÿÿÇ‡prepare‡pretest$üÿÿ‰rollup -c‘eslint src/ test/�npm run buildÿÂnpm run lint && mocha --require @babel/register test/index_test.js±÷ÿÿ”mdast-util-wiki-link�micromark-extension-wiki-link†^7.4.4†^0.0.2†^0.0.4`Š@babel/cliš÷ÿÿ¥÷ÿÿ¦÷ÿÿ�@babel/register”@rollup/plugin-babel—@rollup/plugin-commonjs9öÿÿ–eslint-config-standard”eslint-plugin-import’eslint-plugin-node•eslint-plugin-promise–eslint-plugin-standardcüÿÿıÿÿöÿÿ
öÿÿöÿÿ8öÿÿ†rollupöÿÿ‘unist-util-selectöÿÿˆ^7.12.10ïïïï†^5.2.1‡^15.1.0‡^7.11.0‡^14.1.1‡^2.22.1‡^11.1.0†^4.2.1†^4.0.1†^0.8.4†^6.2.3öÿÿöÿÿöÿÿ†^9.0.1‡^2.32.0öÿÿ†^3.0.4†^2.0.3|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-wiki-link“./dist/index.cjs.js@ƒ ÀÔu4]xB¿øÿÿ8öÿÿğöÿÿ$üÿÿ

?öÿÿ@øâúÿÿ/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-wiki-link.js�/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-wiki-link.json�/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-wiki-link.node–remark-wiki-link@1.0.4ÂøÿÿÂøÿÿÂøÿÿÂøÿÿ@ò·¶�/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-wiki-link/dist@Ùúÿÿï÷øù�/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-wiki-link/dist/package.json«õÿÿ€/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-html/index.js€€ „/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-html/package.json`¬õÿÿ­õÿÿôöÿÿööÿÿ€úÿÿ÷öÿÿøöÿÿ�úÿÿúÿÿ•ûÿÿúöÿÿûöÿÿ°õÿÿ±õÿÿ¯õÿÿƒnyc–ûÿÿ—ûÿÿ˜ûÿÿÙõÿÿ†13.0.1©remark plugin to compile Markdown to HTML÷ÿÿ	İõÿÿÓõÿÿ#üÿÿ$üÿÿ%üÿÿúÿÿşÿÿœûÿÿ›ûÿÿ”remarkjs/remark-html®https://github.com/remarkjs/remark-html/issues‘úÿÿ’úÿÿ¦ûÿÿ§ûÿÿ§ûÿÿ¡Ben Briggs <beneb.info@gmail.com>¤Seth Vincent <sethvincent@gmail.com>¦ûÿÿ«Jonathan Soeder <jonathan.soeder@gmail.com>&÷ÿÿ&÷ÿÿ²ûÿÿ’hast-util-sanitize‘hast-util-to-html’mdast-util-to-hastöÿÿÃûÿÿ‡^10.0.0`¸ûÿÿ�commonmark.json¹ûÿÿ‰is-hiddenƒnotê�ûÿÿŒrehype-parse¿õÿÿÀõÿÿ·ûÿÿ�remark-github·ûÿÿ‹remark-slugŠremark-toc¶ûÿÿ·ûÿÿÆõÿÿÇõÿÿ~ûÿÿ‡^16.0.0‡^0.29.0ßõÿÿáõÿÿ†^0.1.0‡^15.0.0©ûÿÿµûÿÿÙõÿÿ�^13.0.0-alpha.0ØõÿÿÛõÿÿ´ûÿÿÙõÿÿ´ûÿÿµûÿÿñõÿÿÙõÿÿÛõÿÿ‡^0.33.0¶ûÿÿ·ûÿÿ¸ûÿÿ”õÿÿ¹ûÿÿºûÿÿ»ûÿÿ¾ûÿÿÆremark . -qfo --ignore-pattern test/ && prettier . --write && xo --fix«browserify . -s remarkHtml > remark-html.jsºbrowserify . -s remarkHtml -p tinyify > remark-html.min.js¿ûÿÿÀûÿÿ¦nyc --reporter lcov tape test/index.js�dtslint typesÃûÿÿ�check-coverage…lines‰functionsˆbranchesbdddÄûÿÿÅûÿÿÉûÿÿ
£unicorn/no-fn-reference-in-iterator—unicorn/prefer-includesËûÿÿÎûÿÿÎûÿÿÎûÿÿ�remark-html.jsÏûÿÿĞûÿÿw/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-htmlˆúÿÿ@ƒ ÀÔu4]xBløÿÿåõÿÿ�öÿÿÑûÿÿ

ìõÿÿ@ù�úÿÿz/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-html.js|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-html.json|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-html.node’remark-html@13.0.1oøÿÿoøÿÿoøÿÿoøÿÿ@ó¸·@‡úÿÿñøùú}/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-html/indexYõÿÿ‡/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-frontmatter/index.js€€ ‹/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-frontmatter/package.json`Zõÿÿ[õÿÿ¢öÿÿ¤öÿÿ.úÿÿ¥öÿÿ¦öÿÿ/úÿÿ-úÿÿCûÿÿ©öÿÿ¨öÿÿ^õÿÿ_õÿÿ]õÿÿ®EûÿÿFûÿÿGûÿÿµõÿÿğ÷ÿÿ»remark plugin to support frontmatter (yaml, toml, and more)´öÿÿ	�õÿÿƒõÿÿÓûÿÿÔûÿÿÕûÿÿ±ùÿÿÿÿÿ"ÿÿÿşşÿÿ›remarkjs/remark-frontmatterµhttps://github.com/remarkjs/remark-frontmatter/issuesAúÿÿBúÿÿVûÿÿWûÿÿWûÿÿ¡Lars Trieloff <lars@trieloff.net>›Max Kueng <me@maxkueng.com>cûÿÿ×öÿÿÖöÿÿ–mdast-util-frontmatterŸmicromark-extension-frontmatter†^0.2.0ÿ`jûÿÿlûÿÿ³´Ÿ6ûÿÿvõÿÿmûÿÿnûÿÿoûÿÿpûÿÿõÿÿ€õÿÿ7ûÿÿ¹šõÿÿœõÿÿ»¼fûÿÿ�^13.0.0-alpha.1•õÿÿqûÿÿrûÿÿ®õÿÿ–õÿÿ˜õÿÿ½¾¿¹browserify . -s remarkFrontmatter > remark-frontmatter.jsÈbrowserify . -s remarkFrontmatter -p tinyify > remark-frontmatter.min.jsûÿÿ€ûÿÿÀÁ…ûÿÿÆbddd‹ûÿÿŒûÿÿ�ûÿÿ
Ç”ûÿÿ‘ûÿÿ—ûÿÿ—ûÿÿ—ûÿÿ†types/•remark-frontmatter.js—ûÿÿ‚./ÿÿÿâşÿÿ•ûÿÿ~/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-frontmatterMúÿÿ@ƒ ÀÔu4]xB1øÿÿªõÿÿböÿÿ–ûÿÿ

±õÿÿ@ùTúÿÿ�/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-frontmatter.jsƒ/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-frontmatter.jsonƒ/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-frontmatter.node˜remark-frontmatter@3.0.04øÿÿ4øÿÿ4øÿÿ4øÿÿ@óÏÎ@Lúÿÿñøùú„/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-frontmatter/indexõÿÿŠ/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-external-links/index.js€€ �/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-external-links/package.jsontÿÿÿLõÿÿ…8.0.0Îremark plugin to automatically add target and rel attributes to external linksyöÿÿ	RõÿÿHõÿÿ˜ûÿÿ™ûÿÿšûÿÿvùÿÿˆexternal„linkşùÿÿ�remarkjs/remark-external-links¸https://github.com/remarkjs/remark-external-links/issuesúÿÿúÿÿûÿÿ#CÃ©dric Delpoux <xuopled@gmail.com>ÿûÿÿ¡Merlijn Vos <merlijn@soverin.net>¥Takayosi Amagi <fand.gmork@gmail.com> Zach Schnackel <info@zslabs.com>ªTsuyusato Kitsune <make.just.on@gmail.com>£Matsuko Friedland <info@matsuko.ca>–öÿÿ"ûÿÿ–öÿÿ%ûÿÿ�is-absolute-url–mdast-util-definitions–space-separated-tokensBõÿÿpõÿÿpõÿÿ[õÿÿ]õÿÿ'ûÿÿ	+ûÿÿ^ÿÿÿõúÿÿ5õÿÿ,ûÿÿ9õÿÿ-ûÿÿ.ûÿÿöúÿÿYõÿÿ{ÿÿÿ%ûÿÿ|ÿÿÿUõÿÿSõÿÿ1ûÿÿ2ûÿÿ}ÿÿÿ4ûÿÿ7ûÿÿ8ûÿÿ9ûÿÿ<ûÿÿ¯remark . -qfo && prettier . --write && xo --fix@ûÿÿ nyc --reporter lcov tape test.js€½npm run format && npm run test-coverage && npm run test-types„bdddIûÿÿJûÿÿìúÿÿKûÿÿLûÿÿ
…¡import/no-extraneous-dependenciesSûÿÿSûÿÿVûÿÿWûÿÿ�/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-external-linksúÿÿ@ƒ ÀÔu4]xBó÷ÿÿlõÿÿ$öÿÿXûÿÿ

sõÿÿ@ùúÿÿ„/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-external-links.js†/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-external-links.json†/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-external-links.node›remark-external-links@8.0.0ö÷ÿÿö÷ÿÿö÷ÿÿö÷ÿÿ@óÌË@úÿÿñøùú‡/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-external-links/indexàôÿÿ�/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-highlight.js/dist/index.js€€ Œ/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-highlight.js/package.json`áôÿÿâôÿÿ)öÿÿ+öÿÿµùÿÿ,öÿÿ-öÿÿ¶ùÿÿ´ùÿÿÊúÿÿ*öÿÿÔôÿÿ0öÿÿåôÿÿæôÿÿäôÿÿâöÿÿ…babel4ÿÿÿƒavaÊúÿÿËúÿÿÌúÿÿõÿÿZ÷ÿÿ¸remark plugin to highlight code blocks with highlight.js9öÿÿ
õÿÿõÿÿXûÿÿYûÿÿZûÿÿ6ùÿÿıÿÿÕúÿÿŒhighlight.jsˆlowlightœremarkjs/remark-highlight.js¶https://github.com/remarkjs/remark-highlight.js/issuesÄùÿÿÅùÿÿÙúÿÿµBen Briggs <beneb.info@gmail.com> (http://beneb.info)ÿÙúÿÿZûÿÿ�Oleg Proskurin <regx@usul.su>�dist/index.jsŒsrc/index.js3öÿÿÿõõÿÿ}şÿÿìúÿÿ`ìşÿÿ‡öÿÿ“öÿÿíşÿÿïŸbabel-plugin-add-module-exportsíúÿÿ"ÿÿÿ¹úÿÿùôÿÿğúÿÿıôÿÿñúÿÿóúÿÿºúÿÿõúÿÿõúÿÿõúÿÿõúÿÿd÷ÿÿõÿÿ<ÿÿÿ?ÿÿÿéúÿÿ‡^11.0.0ôúÿÿÿõÿÿèúÿÿ‡^0.28.0	�prepublishOnlyõúÿÿ¼úÿÿöúÿÿ÷úÿÿ†bundle÷úÿÿøúÿÿüúÿÿ�npm run compile·remark . -qfo && prettier "**/*.js" --write && xo --fix²babel src --out-dir dist --ignore src/**/__tests__µbrowserify . -s remarkHighlight > remark-highlight.jsÄbrowserify . -s remarkHighlight -p tinyify > remark-highlight.min.jsûúÿÿâ—nyc --reporter lcov avaÌnpm run format && npm run compile && npm run bundle && npm run test-coverage�> 2.5%, node 6‡presetsûÿÿ€öÿÿ’add-module-exports9ÿÿÿbddd‡requireÔşÿÿûúÿÿüúÿÿ�úÿÿûÿÿ
ûÿÿ/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-highlight.js�./dist/index.js@ƒ ÀÔu4]xB¨÷ÿÿ!õÿÿÙõÿÿ
ûÿÿ

(õÿÿ@øËùÿÿ‚/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-highlight.js.js„/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-highlight.js.json„/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-highlight.js.node™remark-highlight.js@6.0.0«÷ÿÿ«÷ÿÿ«÷ÿÿ«÷ÿÿ@ò¿¾„/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-highlight.js/dist@Âùÿÿï÷øù‘/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-highlight.js/dist/package.json”ôÿÿš/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/rehype-prism-plus/dist/rehype-prism-plus.es.js€€ Š/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/rehype-prism-plus/package.json`•ôÿÿ–ôÿÿİõÿÿ†sourceãõÿÿİõÿÿ‡ôÿÿâõÿÿvùÿÿbúÿÿ~úÿÿ—ôÿÿßõÿÿhùÿÿgùÿÿŞõÿÿàõÿÿáõÿÿ˜ôÿÿ™ôÿÿúÿÿ‹lint-staged…husky¹ôÿÿ…1.3.2ñrehype plugin to highlight code blocks in HTML with Prism (via refractor) with line highlighting and line numbers¡úÿÿğõÿÿ�./dist/rehype-prism-plus.es.jsÿ‘./dist/index.d.tsôÿÿ�.ˆ./common…./all‹./generator†importùş“./dist/common.es.jsü�./dist/all.jsú–./dist/generator.es.js�*�.†commonƒall;şÿÿŒ./dist/index‘./dist/src/common�./dist/src/all”./dist/src/generator|ôÿÿƒtscFşÿÿ\úÿÿ¥úÿÿÕtsc -b && microbundle index.js src/common.js src/all.js src/generator.js --format esm‹tsc --watchˆeslint .—prettier --write '*.js'ƒuvuVùÿÿOùÿÿ³git+https://github.com/timlrx/rehype-prism-plus.gitcúÿÿ�rehype-plugin“syntax-highlighting…prismƒmdxƒjsxºTimothy Lin <timothy0336@hotmail.com> (https://timlrx.com)½õÿÿDùÿÿ²https://github.com/timlrx/rehype-prism-plus/issues²https://github.com/timlrx/rehype-prism-plus#readme“hast-util-to-string“parse-numeric-range‰refractorÅşÿÿ‘unist-util-filter�ôÿÿuúÿÿöÿÿ†^4.5.0†^8.0.2§ôÿÿ§ôÿÿ`†dedent¯ôÿÿ–eslint-config-prettierwşÿÿÁÀ‹microbundle>úÿÿNúÿÿáõÿÿˆôÿÿç†^0.7.0‡^7.32.0†^8.3.0~şÿÿŸôÿÿ‡^11.1.2‡^0.14.1†^2.3.2‡^12.0.0…4.4.3›ôÿÿ†^0.5.1ŠprintWidthˆúÿÿ‰úÿÿŠúÿÿ‹úÿÿŒúÿÿ�úÿÿadƒes5’*.+(js|jsx|ts|tsx)¢*.+(js|jsx|ts|tsx|json|css|md|mdx)Œeslint --fix�prettier --write…hooksŠpre-commit¦}/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/rehype-prism-plus¨@ƒ ÀÔu4]xB1÷ÿÿªôÿÿbõÿÿ–úÿÿ

±ôÿÿ@ùTùÿÿ€/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/rehype-prism-plus.js‚/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/rehype-prism-plus.json‚/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/rehype-prism-plus.node—rehype-prism-plus@1.3.24÷ÿÿ4÷ÿÿ4÷ÿÿ4÷ÿÿ@ó”“‚/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/rehype-prism-plus/dist@Kùÿÿğ÷øù�/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/rehype-prism-plus/dist/package.jsonôÿÿ‚/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-rehype/index.js€€ †/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-rehype/package.json`ôÿÿôÿÿfõÿÿhõÿÿòøÿÿiõÿÿjõÿÿóøÿÿñøÿÿúÿÿôøÿÿùÿÿgõÿÿlõÿÿmõÿÿ"ôÿÿ#ôÿÿ!ôÿÿ	úÿÿ
úÿÿúÿÿÅúÿÿOôÿÿ†10.1.0½remark plugin that turns markdown into HTML to support rehypewõÿÿ
PôÿÿFôÿÿúÿÿ–úÿÿ³—úÿÿxüÿÿ„hast—úÿÿsøÿÿ–remarkjs/remark-rehype°https://github.com/remarkjs/remark-rehype/issuesùÿÿùÿÿúÿÿúÿÿúÿÿ¸John Otander <johnotander@gmail.com> (https://johno.com)
ôÿÿ&úÿÿtõÿÿ„lib/sõÿÿ%úÿÿ‹@types/hastŒ@types/mdastsşÿÿEôÿÿ+úÿÿtôÿÿ‡^12.1.0sşÿÿ`
Áúÿÿ-úÿÿøùÿÿ7ôÿÿ/úÿÿ=ôÿÿ0úÿÿkôÿÿÂúÿÿ1úÿÿÃúÿÿ›õÿÿùùÿÿ\ôÿÿ4úÿÿ(úÿÿ[ôÿÿqşÿÿqşÿÿ[ôÿÿqşÿÿqôÿÿ5úÿÿ(úÿÿ\ôÿÿ‡^0.47.0ôÿÿ6úÿÿ9úÿÿ:úÿÿ;úÿÿ>úÿÿ·rimraf "lib/**/*.d.ts" "*.d.ts" && tsc && type-coverage>úÿÿ¥node --conditions development test.jsğc8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api�şÿÿÆúÿÿLúÿÿMúÿÿïùÿÿ]úÿÿ^úÿÿÌúÿÿÍúÿÿ§ôÿÿ‹ignoreCatch�#‹ignoreFiles`d�needed `any`s�lib/index.d.tsŒlib/index.js[õÿÿy/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-rehypeùÿÿ@ƒ ÀÔu4]xBòöÿÿkôÿÿ#õÿÿWúÿÿ

rôÿÿ@ùùÿÿ|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-rehype.js~/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-rehype.json~/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/remark-rehype.node”remark-rehype@10.1.0õöÿÿõöÿÿõöÿÿõöÿÿ@óÌË@
ùÿÿñøùúàóÿÿ…/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/rehype-stringify/index.js€€ ‰/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/rehype-stringify/package.json`áóÿÿâóÿÿ)õÿÿ+õÿÿµøÿÿ.õÿÿ,õÿÿ-õÿÿ¶øÿÿ´øÿÿÊùÿÿ·øÿÿÃøÿÿ*õÿÿ/õÿÿ0õÿÿåóÿÿäóÿÿÍùÿÿˆúÿÿ
ôÿÿ…9.0.3Ÿrehype plugin to serialize HTML:õÿÿ`ôÿÿÙùÿÿvÿÿÿZúÿÿ;üÿÿ\úÿÿÖùÿÿ×ùÿÿÔùÿÿÒùÿÿÓùÿÿÑùÿÿ¢https://github.com/rehypejs/rehypeÆhttps://github.com/rehypejs/rehype/tree/main/packages/rehype-stringify©https://github.com/rehypejs/rehype/issuesÆøÿÿÇøÿÿÛùÿÿÜùÿÿÜùÿÿ
Ëóÿÿêùÿÿ8õÿÿÄ8õÿÿêùÿÿÅ9şÿÿôÿÿòùÿÿ"ôÿÿ;şÿÿßóÿÿ®rimraf "lib/**/*.d.ts" && tsc && type-coverage
�úÿÿŸúÿÿyôÿÿÒ`d|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/rehype-stringifyæøÿÿ@ƒ ÀÔu4]xBÊöÿÿCôÿÿûôÿÿ/úÿÿ

Jôÿÿ@ùíøÿÿ/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/rehype-stringify.js�/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/rehype-stringify.json�/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/rehype-stringify.node–rehype-stringify@9.0.3ÍöÿÿÍöÿÿÍöÿÿÍöÿÿ@óáà@åøÿÿñøùú¸óÿÿt/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/lib/obsidian-image.js€€0¹óÿÿ"ôÿÿ#ôÿÿ—./lib/obsidian-image.js@ƒ ÀÔu4]xBğöÿÿı-ôÿÿÔöÿÿ!€Ae3]xBpAe3]xBäôÿÿ
6ôÿÿ@ƒ ÀÔu4]xB±óÿÿ)ôÿÿßôÿÿàôÿÿ

ªóÿÿâöÿÿ€€ ¬óÿÿôÿÿôÿÿãöÿÿ@ƒ ĞÔu4]xBáöÿÿäöÿÿåöÿÿ!ôÿÿÙôÿÿÚôÿÿ

+ôÿÿ£óÿÿ1ôÿÿûÿÿ@2ôÿÿÛöÿÿ€€ ¥óÿÿôÿÿôÿÿÜöÿÿ@ƒ ĞÔu4]xBÚöÿÿİöÿÿŞöÿÿôÿÿÒôÿÿÓôÿÿ

$ôÿÿœóÿÿ*ôÿÿûÿÿ@+ôÿÿä€€ �óÿÿôÿÿôÿÿå@ƒ àÔu4]xBãÖöÿÿæôÿÿËôÿÿ
ôÿÿ•óÿÿ=úÿÿ€€ >úÿÿgúÿÿhúÿÿ¯øÿÿ@ àÔu4]xB“öÿÿôÿÿôÿÿrúÿÿtúÿÿvúÿÿ�óÿÿwúÿÿ€€ xúÿÿŠúÿÿ‹úÿÿ…úÿÿ@ àÔu4]xB�öÿÿôÿÿôÿÿ•úÿÿ—úÿÿ™úÿÿ‘
import { visit } from "unist-util-visit";
const regex = /\!\[\[(([a-z\-_0-9\\/\:]+\s*)+\.(jpg|jpeg|png|gif|svg|webp))]]/gi;
const regex2 = /\!\[\[(([a-z\-_0-9\\/\:]+\s*)+\.(jpg|jpeg|png|gif|svg|webp))]]/gi; //TODO why can't I reuse regex literal???
function convertTextNode(node) {
    const searchText = node.value;
    /*
    This regex MATCH following type of image link
      ![[youtube.png]]    ==> Image with no folder path, no space in between
      ![[a .png]]         ==> with space
      ![[tuancao/a.png]]  ==> file path WITHOUT space
      ![[tuancao/a .png]] ==> file path WITH space

    Image with extension: jpg, jpeg, gif, svg, webp, png
      ![[/tuancao/a.jpg]]
      ![[/tuancao/a.webp]]
      ![[/tuancao/a.png]]
      ![[/tuancao/a.jpeg]]
      ...

      ---
    Will NOT match following case

      [[picture.jpg]] ==> Link without "!" at the begining won't match
      ![[abc]] ==> without the extension
      ![[/tuancao/a.md]] ==> Unsupported format
      ![[/tuancao/a.mp4]]==> Unsupported format
    */ const matches = searchText.matchAll(regex);
    let startIndex = 0;
    let endIndex = searchText.length;
    let children = [];
    for (const match of matches){
        endIndex = match.index;
        // Constructing text node from un-matched string
        const textNode = {
            // change type child node, so that visit() function won't recursively visit this node with "text" type
            type: "text-temp",
            value: searchText.substring(startIndex, endIndex)
        };
        const imageNode = {
            type: "image",
            //TODO: Use some kind of option to pass in default images path
            url: encodeURI(`/images/${match[1]}`),
            alt: match[1]
        };
        children.push(imageNode);
        let matchEndIndex = match.index + match[0].length;
        startIndex = matchEndIndex;
    }
    if (startIndex < searchText.length) {
        const textNode = {
            type: "text-temp",
            value: searchText.substring(startIndex, searchText.length)
        };
        children.push(textNode);
    }
    return {
        type: "paragraph",
        children: children
    };
}
export default function attacher(options) {
    return function transformer(tree, vfile) {
        visit(tree, "text", (node)=>{
            if (regex2.test(node.value)) {
                const newNode = convertTextNode(node);
                node.type = "paragraph";
                node.children = newNode.children;
            }
        });
        // Change back "text-temp" node ==> "text" to clean up
        visit(tree, "text-temp", (node)=>{
            node.type = "text";
        });
        return tree;
    };
};
…webpack://./node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!./lib/obsidian-image.jsL{"version":3,"sources":["webpack://./lib/obsidian-image.js"],"sourcesContent":["import {visit} from \"unist-util-visit\";\n\nconst regex = /\\!\\[\\[(([a-z\\-_0-9\\\\/\\:]+\\s*)+\\.(jpg|jpeg|png|gif|svg|webp))]]/gi;\nconst regex2 = /\\!\\[\\[(([a-z\\-_0-9\\\\/\\:]+\\s*)+\\.(jpg|jpeg|png|gif|svg|webp))]]/gi; //TODO why can't I reuse regex literal???\n\nfunction convertTextNode(node) {\n    const searchText = node.value;\n\n    /*\n    This regex MATCH following type of image link\n      ![[youtube.png]]    ==> Image with no folder path, no space in between\n      ![[a .png]]         ==> with space\n      ![[tuancao/a.png]]  ==> file path WITHOUT space\n      ![[tuancao/a .png]] ==> file path WITH space\n\n    Image with extension: jpg, jpeg, gif, svg, webp, png\n      ![[/tuancao/a.jpg]]\n      ![[/tuancao/a.webp]]\n      ![[/tuancao/a.png]]\n      ![[/tuancao/a.jpeg]]\n      ...\n\n      ---\n    Will NOT match following case\n\n      [[picture.jpg]] ==> Link without \"!\" at the begining won't match\n      ![[abc]] ==> without the extension\n      ![[/tuancao/a.md]] ==> Unsupported format\n      ![[/tuancao/a.mp4]]==> Unsupported format\n    */\n    const matches = searchText.matchAll(\n        regex\n    );\n\n    let startIndex = 0;\n    let endIndex = searchText.length;\n\n    let children = [];\n    for (const match of matches) {\n        endIndex = match.index;\n\n        // Constructing text node from un-matched string\n        const textNode = {\n            // change type child node, so that visit() function won't recursively visit this node with \"text\" type\n            type: \"text-temp\",\n            value: searchText.substring(startIndex, endIndex),\n        };\n\n        const imageNode = {\n            type: \"image\",\n            //TODO: Use some kind of option to pass in default images path\n            url: encodeURI(`/images/${match[1]}`), //encode white space from file name\n            alt: match[1],\n        };\n\n        children.push(imageNode);\n\n        let matchEndIndex = match.index + match[0].length;\n        startIndex = matchEndIndex;\n    }\n\n    if (startIndex < searchText.length) {\n        const textNode = {\n            type: \"text-temp\",\n            value: searchText.substring(startIndex, searchText.length),\n        };\n        children.push(textNode);\n    }\n\n    return {\n        type: \"paragraph\",\n        children: children,\n    };\n}\n\nexport default function attacher(options) {\n    return function transformer(tree, vfile) {\n        visit(tree, \"text\", (node) => {\n            if (regex2.test(node.value)) {\n                const newNode = convertTextNode(node);\n                node.type = \"paragraph\";\n                node.children = newNode.children;\n            }\n        });\n\n        // Change back \"text-temp\" node ==> \"text\" to clean up\n        visit(tree, \"text-temp\", (node) => {\n            node.type = \"text\";\n        });\n\n        return tree;\n    };\n}\n"],"names":["visit","regex","regex2","convertTextNode","node","searchText","value","matches","matchAll","startIndex","endIndex","length","children","match","index","textNode","type","substring","imageNode","url","encodeURI","alt","push","matchEndIndex","attacher","options","transformer","tree","vfile","test","newNode"],"mappings":"AAAA,MAAM,GAAEA,KAAK,QAAO,CAAkB;AAEtC,KAAK,CAACC,KAAK;AACX,KAAK,CAACC,MAAM,sEAAuE,CAAyC,AAAzC,EAAyC,AAAzC,uCAAyC;SAEnHC,eAAe,CAACC,IAAI,EAAE,CAAC;IAC5B,KAAK,CAACC,UAAU,GAAGD,IAAI,CAACE,KAAK;IAE7B,EAqBE,AArBF;;;;;;;;;;;;;;;;;;;;;IAqBE,AArBF,EAqBE,CACF,KAAK,CAACC,OAAO,GAAGF,UAAU,CAACG,QAAQ,CAC/BP,KAAK;IAGT,GAAG,CAACQ,UAAU,GAAG,CAAC;IAClB,GAAG,CAACC,QAAQ,GAAGL,UAAU,CAACM,MAAM;IAEhC,GAAG,CAACC,QAAQ,GAAG,CAAC,CAAC;IACjB,GAAG,EAAE,KAAK,CAACC,KAAK,IAAIN,OAAO,CAAE,CAAC;QAC1BG,QAAQ,GAAGG,KAAK,CAACC,KAAK;QAEtB,EAAgD,AAAhD,8CAAgD;QAChD,KAAK,CAACC,QAAQ,GAAG,CAAC;YACd,EAAsG,AAAtG,oGAAsG;YACtGC,IAAI,EAAE,CAAW;YACjBV,KAAK,EAAED,UAA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AC;QACL,CAAC;QAED,EAAsD,AAAtD,oDAAsD;QACtDZ,KAAK,CAAC2B,IAAI,EAAE,CAAW,aAAGvB,IAAI,GAAK,CAAC;YAChCA,IAAI,CAACY,IAAI,GAAG,CAAM;QACtB,CAAC;QAED,MAAM,CAACW,IAAI;IACf,CAAC;AACL,CAAC","file":"x"}`ôÿÿ ôÿÿ
!ôÿÿ@¿öÿÿ"ôÿÿ
ÿ1ôÿÿ2ôÿÿ3ôÿÿ4ôÿÿ�13a0dae2cd4cccfd5ôÿÿ�convertTextNode…regex†regex2ˆattacher ğÒu4]xBÄÇ


dÿÿı€`)

`)A“�
A„�


c=L
«óÿÿ«óÿÿ

`)óRôÿÿ

c=L	…visitşAçì¦óÿÿ¦óÿÿÿ

c??
	üûA#
(
£óÿÿ£óÿÿÿ

cGG
Šóÿÿ\óÿÿŠóÿÿ
ûÿÿ@ûÿÿ

ûÿÿôÿÿûÿÿ
QóÿÿûÿÿQóÿÿûÿÿ@ûÿÿ
ûÿÿ
Bôÿÿûÿÿ
WóÿÿAùÿÿ€€ Bùÿÿ¸ùÿÿ¹ùÿÿqøÿÿ@ àÔu4]xBUöÿÿÎóÿÿÙóÿÿÄùÿÿÆùÿÿÉùÿÿŠóÿÿõúÿÿŠóÿÿöúÿÿ@÷úÿÿ
ùúÿÿ
5ôÿÿúúÿÿ
JóÿÿÃùÿÿ€€ ÄùÿÿÛùÿÿÜùÿÿdøÿÿ@ ğÔu4]xBHöÿÿÁóÿÿÌóÿÿæùÿÿèùÿÿëùÿÿxóÿÿèúÿÿxóÿÿéúÿÿ@êúÿÿ
ìúÿÿ
(ôÿÿíúÿÿ
=óÿÿgúÿÿ€€ húÿÿ‚úÿÿƒúÿÿ„úÿÿ@ ğÔu4]xB;öÿÿ´óÿÿ¿óÿÿ�úÿÿ‘úÿÿ”úÿÿ7óÿÿ4üÿÿ€€ øÿÿSøÿÿTøÿÿ5üÿÿ@ Õu4]xBUøÿÿ5öÿÿVøÿÿ®óÿÿRøÿÿ`øÿÿ¸óÿÿeøÿÿ<üÿÿBüÿÿ0óÿÿüÿÿ€€ øÿÿLøÿÿMøÿÿüÿÿ@ Õu4]xBNøÿÿ.öÿÿOøÿÿ§óÿÿKøÿÿYøÿÿ±óÿÿ^øÿÿ	üÿÿüÿÿ)óÿÿüÿÿ€€ ş÷ÿÿEøÿÿFøÿÿüÿÿ@ Õu4]xBGøÿÿ'öÿÿHøÿÿ óÿÿDøÿÿRøÿÿªóÿÿWøÿÿüÿÿüÿÿCóÿÿÆúÿÿCóÿÿÇúÿÿ@Èúÿÿ
Êúÿÿ
ôÿÿËúÿÿ
˜@mui/material/AlertTitle¾úÿÿÿ¿úÿÿ@Àúÿÿ
Âúÿÿ
şóÿÿÃúÿÿ
Áöÿÿ·úÿÿÁöÿÿ¸úÿÿ@¹úÿÿ
»úÿÿ
÷óÿÿ¼úÿÿ
“@mui/material/Alert¯úÿÿÿ°úÿÿ@±úÿÿ
³úÿÿ
ïóÿÿ´úÿÿ
óÿÿ…/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/unist-util-visit/index.js€€ ‰/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/unist-util-visit/package.jsonçşÿÿ;óÿÿšõÿÿœunist utility to visit nodes`ôÿÿ`®ùÿÿŠunist-util\õÿÿ¯ùÿÿ.óÿÿÿøÿÿşøÿÿ€ùÿÿèşÿÿ„xast…nlcst‡naturalˆlanguageX÷ÿÿ\ûÿÿƒxml÷øÿÿôøÿÿåõÿÿ‹„walkœsyntax-tree/unist-util-visit¶https://github.com/syntax-tree/unist-util-visit/issuesæ÷ÿÿç÷ÿÿûøÿÿüøÿÿüøÿÿ}ùÿÿ©Richard Gibson <richard.gibson@gmail.com>
êòÿÿ	ùÿÿWôÿÿ’complex-types.d.tsVôÿÿùÿÿŒ@types/unist�unist-util-is˜unist-util-visit-parents
ùÿÿùÿÿùÿÿ`
¤ùÿÿùÿÿÛøÿÿóÿÿùÿÿŠremark-gfmùÿÿ¤ùÿÿùÿÿƒtsd¤ùÿÿ|ôÿÿÚøÿÿ=óÿÿùÿÿ	ùÿÿ‡^14.0.0Qıÿÿùÿÿ;óÿÿQóÿÿùÿÿ‡^0.17.0ùÿÿ;óÿÿ‡^0.44.0¤ùÿÿ¥ùÿÿ¹rimraf "{index,test}.d.ts" && tsc && tsd && type-coverageùÿÿ¦ùÿÿ§ùÿÿ¨ùÿÿ.ùÿÿ/ùÿÿÑøÿÿ?ùÿÿ@ùÿÿ°ùÿÿ`d|/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/unist-util-visit÷÷ÿÿ@ƒ Õu4]xBÛõÿÿTóÿÿôÿÿ@ùÿÿ

[óÿÿ@ùş÷ÿÿ/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/unist-util-visit.js�/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/unist-util-visit.json�/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/node_modules/unist-util-visit.node–unist-util-visit@4.1.0ŞõÿÿŞõÿÿŞõÿÿŞõÿÿ@óÎÍ@ö÷ÿÿñøùú@ƒ  Õu4]xBÌòÿÿDóÿÿúóÿÿ.ùÿÿ

ÛùÿÿÜùÿÿ–÷ÿÿãùÿÿìùÿÿåòÿÿ�node-commonjsäòÿÿgúÿÿ@húÿÿ
júÿÿ
¦óÿÿkúÿÿ
»òÿÿ6ûÿÿ€€ ú÷ÿÿ\ûÿÿ÷÷ÿÿ]ûÿÿ@ @Õu4]xBÙ÷ÿÿ¹õÿÿÚ÷ÿÿ2óÿÿõ÷ÿÿö÷ÿÿ<óÿÿcûÿÿgûÿÿnûÿÿ´òÿÿoûÿÿ€€ ó÷ÿÿUûÿÿğ÷ÿÿpûÿÿ@ @Õu4]xBÒ÷ÿÿ²õÿÿÓ÷ÿÿ+óÿÿî÷ÿÿï÷ÿÿ5óÿÿ\ûÿÿwûÿÿ}ûÿÿQöÿÿQúÿÿQöÿÿRúÿÿ@Súÿÿ
Uúÿÿ
‘óÿÿVúÿÿ
PöÿÿJúÿÿPöÿÿKúÿÿ@Lúÿÿ
Núÿÿ
ŠóÿÿOúÿÿ
Ÿòÿÿ‚şÿÿ€€ ƒşÿÿ©şÿÿªşÿÿ¹÷ÿÿ@ @Õu4]xB�õÿÿóÿÿ!óÿÿ´şÿÿ¶şÿÿ¸şÿÿÏòÿÿ�òÿÿÏòÿÿ>úÿÿ@?úÿÿ
Aúÿÿ5óÿÿBúÿÿ
’òÿÿ²şÿÿ€€ ³şÿÿÄşÿÿÅşÿÿ¬÷ÿÿ@ PÕu4]xB�õÿÿ	óÿÿóÿÿÏşÿÿÑşÿÿÓşÿÿŒòÿÿüÿÿ€€ üÿÿwüÿÿxüÿÿ¦÷ÿÿ@ PÕu4]xBŠõÿÿóÿÿóÿÿ‚üÿÿ„üÿÿ†üÿÿ†òÿÿhıÿÿ€€ iıÿÿ�ıÿÿ�ıÿÿ ÷ÿÿ@ PÕu4]xB„õÿÿıòÿÿóÿÿšıÿÿœıÿÿŸıÿÿ€òÿÿ'ıÿÿ€€ (ıÿÿKıÿÿLıÿÿš÷ÿÿ@ PÕu4]xB~õÿÿ÷òÿÿóÿÿVıÿÿXıÿÿ[ıÿÿzòÿÿÏüÿÿ€€ Ğüÿÿ
ıÿÿıÿÿ”÷ÿÿ@ PÕu4]xBxõÿÿñòÿÿüòÿÿıÿÿıÿÿıÿÿ¢òÿÿkòÿÿ¢òÿÿúÿÿ@úÿÿ
úÿÿóÿÿúÿÿ
�òÿÿúÿÿ�òÿÿúÿÿ@úÿÿ
úÿÿ
Qóÿÿúÿÿ
—òÿÿ
úÿÿ—òÿÿúÿÿ@úÿÿ
úÿÿ
Jóÿÿúÿÿ
¿òÿÿúÿÿ¿òÿÿúÿÿ@úÿÿ
úÿÿ
Cóÿÿúÿÿ
‹òÿÿüùÿÿ‹òÿÿıùÿÿ@şùÿÿ
úÿÿ
<óÿÿúÿÿ
Qòÿÿ½ıÿÿ€€ ¾ıÿÿşÿÿşÿÿÆıÿÿ@ `Õu4]xBOõÿÿÈòÿÿÓòÿÿ'şÿÿ*şÿÿ-şÿÿKòÿÿLüÿÿ€€ Müÿÿ‡üÿÿˆüÿÿ‰üÿÿ@ `Õu4]xBIõÿÿÂòÿÿÍòÿÿ“üÿÿ–üÿÿ™üÿÿEòÿÿeıÿÿ€€ fıÿÿ˜ıÿÿ™ıÿÿšıÿÿ@ `Õu4]xBCõÿÿ¼òÿÿÇòÿÿ¤ıÿÿ§ıÿÿªıÿÿkòÿÿ6òÿÿkòÿÿäùÿÿ@åùÿÿ
çùÿÿÛòÿÿèùÿÿ
oòÿÿÜùÿÿoòÿÿİùÿÿ@Şùÿÿ
àùÿÿ
óÿÿáùÿÿ
còÿÿÕùÿÿcòÿÿÖùÿÿ@×ùÿÿ
Ùùÿÿ
óÿÿÚùÿÿ
*òÿÿ&ÿÿÿ€€ 'ÿÿÿKÿÿÿLÿÿÿD÷ÿÿ@ `Õu4]xB(õÿÿ¡òÿÿ¬òÿÿVÿÿÿXÿÿÿZÿÿÿ^òÿÿòÿÿ^òÿÿÉùÿÿ@Êùÿÿ
ÌùÿÿÀòÿÿÍùÿÿ
‡sources“runtimeRequirementsÕûÿÿßûÿÿ«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSource4-«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourcec__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ Home),
/* harmony export */   "getStaticProps": () => (/* binding */ getStaticProps)
/* harmony export */ });
/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "react/jsx-dev-runtime");
/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _components_Layout__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/Layout */ "./components/Layout.js");
/* harmony import */ var _lib_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../lib/utils */ "./lib/utils.js");
/* harmony import */ var _components_FolderTree__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../components/FolderTree */ "./components/FolderTree.js");
/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! next/dynamic */ "./node_modules/next/dynamic.js");
/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_dynamic__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _components_MDContent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../components/MDContent */ "./components/MDContent.js");
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_lib_utils__WEBPACK_IMPORTED_MODULE_2__]);
_lib_utils__WEBPACK_IMPORTED_MODULE_2__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
«webpack/lib/util/registerExternalSerializer�webpack-sources/ReplaceSource«webpack/lib/util/registerExternalSerializerŸwebpack-sources/SourceMapSourceimport { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
import Layout from "../components/Layout";
import { getSinglePost, getDirectoryData, convertObject, getFlattenArray, getLocalGraphData, constructGraphData } from "../lib/utils";
import FolderTree from "../components/FolderTree";
import dynamic from 'next/dynamic';
import MDContent from "../components/MDContent";
// This trick is to dynamically load component that interact with window object (browser only)
const DynamicGraph = dynamic(null, {
    loadableGenerated: {
        modules: [
            "index.js -> " + "../components/Graph"
        ]
    },
    loading: ()=>/*#__PURE__*/ _jsxDEV("p", {
            children: "Loading ..."
        }, void 0, false, {
            fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js",
            lineNumber: 18,
            columnNumber: 22
        }, this)
    ,
    ssr: false
});
export default function Home({ graphData , content , tree , flattenNodes , backLinks  }) {
    return(/*#__PURE__*/ _jsxDEV(Layout, {
        children: /*#__PURE__*/ _jsxDEV("div", {
            className: "container",
            children: [
                /*#__PURE__*/ _jsxDEV("nav", {
                    className: "nav-bar",
                    children: /*#__PURE__*/ _jsxDEV(FolderTree, {
                        tree: tree,
                        flattenNodes: flattenNodes
                    }, void 0, false, {
                        fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js",
                        lineNumber: 26,
                        columnNumber: 21
                    }, this)
                }, void 0, false, {
                    fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js",
                    lineNumber: 25,
                    columnNumber: 17
                }, this),
                /*#__PURE__*/ _jsxDEV(MDContent, {
                    content: content,
                    handleOpenNewContent: null,
                    backLinks: backLinks
                }, void 0, false, {
                    fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js",
                    lineNumber: 28,
                    columnNumber: 17
                }, this),
                /*#__PURE__*/ _jsxDEV(DynamicGraph, {
                    graph: graphData
                }, void 0, false, {
                    fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js",
                    lineNumber: 29,
                    columnNumber: 17
                }, this)
            ]
        }, void 0, true, {
            fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js",
            lineNumber: 24,
            columnNumber: 13
        }, this)
    }, void 0, false, {
        fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js",
        lineNumber: 23,
        columnNumber: 9
    }, this));
};
const { nodes , edges  } = constructGraphData();
export function getStaticProps() {
    const tree = convertObject(getDirectoryData());
    const contentData = getSinglePost("index");
    const flattenNodes = getFlattenArray(tree);
    const listOfEdges = edges.filter((anEdge)=>anEdge.target === "index"
    );
    const internalLinks = listOfEdges.map((anEdge)=>nodes.find((aNode)=>aNode.slug === anEdge.source
        )
    ).filter((element)=>element !== undefined
    );
    const backLinks = [
        ...new Set(internalLinks)
    ];
    const graphData = getLocalGraphData("index");
    return {
        props: {
            content: contentData.data,
            tree: tree,
            flattenNodes: flattenNodes,
            graphData: graphData,
            backLinks: backLinks
        }
    };
}
şwebpack://./node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!./pages/index.js{"version":3,"sources":["webpack://./pages/index.js"],"sourcesContent":["import Layout from \"../components/Layout\";\nimport {\n    getSinglePost,\n    getDirectoryData,\n    convertObject,\n    getFlattenArray,\n    getLocalGraphData,\n    constructGraphData\n} from \"../lib/utils\";\nimport FolderTree from \"../components/FolderTree\";\nimport dynamic from 'next/dynamic'\nimport MDContent from \"../components/MDContent\";\n\n\n// This trick is to dynamically load component that interact with window object (browser only)\nconst DynamicGraph = dynamic(\n    () => import('../components/Graph'),\n    { loading: () => <p>Loading ...</p>, ssr: false }\n)\n\nexport default function Home({graphData, content, tree, flattenNodes, backLinks}) {\n    return (\n        <Layout>\n            <div className = 'container'>\n                <nav className=\"nav-bar\">\n                    <FolderTree tree={tree} flattenNodes={flattenNodes}/>\n                </nav>\n                <MDContent content={content}  handleOpenNewContent={null} backLinks={backLinks}/>\n                <DynamicGraph graph={graphData}/>\n            </div>\n        </Layout>\n    );\n\n}\nconst {nodes, edges} = constructGraphData()\n\nexport function getStaticProps() {\n    const tree = convertObject(getDirectoryData());\n    const contentData = getSinglePost(\"index\");\n    const flattenNodes = getFlattenArray(tree)\n    const listOfEdges =   edges.filter(anEdge => anEdge.target === \"index\")\n    const internalLinks = listOfEdges.map(anEdge => nodes.find(aNode => aNode.slug === anEdge.source)).filter(element => element !== undefined)\n    const backLinks = [...new Set(internalLinks)]\n\n    const graphData = getLocalGraphData(\"index\");\n    return {\n        props: {\n            content: contentData.data,\n            tree: tree,\n            flattenNodes: flattenNodes,\n            graphData:graphData,\n            backLinks: backLinks\n        },\n    };\n}\n"],"names":["Layout","getSinglePost","getDirectoryData","convertObject","getFlattenArray","getLocalGraphData","constructGraphData","FolderTree","dynamic","MDContent","DynamicGraph","loading","p","ssr","Home","graphData","content","tree","flattenNodes","backLinks","div","className","nav","handleOpenNewContent","graph","nodes","edges","getStaticProps","contentData","listOfEdges","filter","anEdge","target","internalLinks","map","find","aNode","slug","source","element","undefined","Set","props","data"],"mappings":";AAAA,MAAM,CAACA,MAAM,MAAM,CAAsB;AACzC,MAAM,GACFC,aAAa,EACbC,gBAAgB,EAChBC,aAAa,EACbC,eAAe,EACfC,iBAAiB,EACjBC,kBAAkB,QACf,CAAc;AACrB,MAAM,CAACC,UAAU,MAAM,CAA0B;AACjD,MAAM,CAACC,OAAO,MAAM,CAAc;AAClC,MAAM,CAACC,SAAS,MAAM,CAAyB;AAG/C,EAA8F,AAA9F,4FAA8F;AAC9F,KAAK,CAACC,YAAY,GAAGF,OAAO;;;;;;IAEtBG,OAAO,4BAASC,CAAC;sBAAC,CAAW;;;;;;;IAAMC,GAAG,EAAE,KAAK;;AAGnD,MAAM,SAAS,QAAQ,CAACC,IAAI,CAAC,CAACC,CAAAA,SAAS,GAAEC,OAAO,GAAEC,IAAI,GAAEC,YAAY,GAAEC,SAAS,EAAA,CAAC,EAAE,CAAC;IAC/E,MAAM,uBACDnB,MAAM;wCACFoB,CAAG;YAACC,SAAS,EAAG,CAAW;;sCACvBC,CAAG;oBAACD,SAAS,EAAC,CAAS;oDACnBd,UAAU;wBAACU,IAAI,EAAEA,IAAI;wBAAEC,YA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h
†
’
·
Å
)€€€€€€³next_dynamic__WEBPACK_IMPORTED_MODULE_4___default()½(0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)‰undefined€şº_components_Layout__WEBPACK_IMPORTED_MODULE_1__["default"]ııı¾_components_FolderTree__WEBPACK_IMPORTED_MODULE_3__["default"]ü½_components_MDContent__WEBPACK_IMPORTED_MODULE_5__["default"]û¾(0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.constructGraphData)€¹(0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.convertObject)¼(0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.getDirectoryData)¹(0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.getSinglePost)»(0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.getFlattenArray)½(0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.getLocalGraphData)L
__webpack_async_result__();
} catch(e) { __webpack_async_result__(e); } }); ôÿÿ‰ıÿÿ„size„maps¿òÿÿ—__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ Home),
/* harmony export */   "getStaticProps": () => (/* binding */ getStaticProps)
/* harmony export */ });
/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "react/jsx-dev-runtime");
/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _components_Layout__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/Layout */ "./components/Layout.js");
/* harmony import */ var _lib_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../lib/utils */ "./lib/utils.js");
/* harmony import */ var _components_FolderTree__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../components/FolderTree */ "./components/FolderTree.js");
/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! next/dynamic */ "./node_modules/next/dynamic.js");
/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_dynamic__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _components_MDContent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../components/MDContent */ "./components/MDContent.js");
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_lib_utils__WEBPACK_IMPORTED_MODULE_2__]);
_lib_utils__WEBPACK_IMPORTED_MODULE_2__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];






// This trick is to dynamically load component that interact with window object (browser only)
const DynamicGraph = next_dynamic__WEBPACK_IMPORTED_MODULE_4___default()(null, {
    loadableGenerated: {
        modules: [
            "index.js -> " + "../components/Graph"
        ]
    },
    loading: ()=>/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)("p", {
            children: "Loading ..."
        }, void 0, false, {
            fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js",
            lineNumber: 18,
            columnNumber: 22
        }, undefined)
    ,
    ssr: false
});
function Home({ graphData , content , tree , flattenNodes , backLinks  }) {
    return(/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_Layout__WEBPACK_IMPORTED_MODULE_1__["default"], {
        children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)("div", {
            className: "container",
            children: [
                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)("nav", {
                    className: "nav-bar",
                    children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_FolderTree__WEBPACK_IMPORTED_MODULE_3__["default"], {
                        tree: tree,
                        flattenNodes: flattenNodes
                    }, void 0, false, {
                        fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js",
                        lineNumber: 26,
                        columnNumber: 21
                    }, this)
                }, void 0, false, {
                    fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js",
                    lineNumber: 25,
                    columnNumber: 17
                }, this),
                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_MDContent__WEBPACK_IMPORTED_MODULE_5__["default"], {
                    content: content,
                    handleOpenNewContent: null,
                    backLinks: backLinks
                }, void 0, false, {
                    fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js",
                    lineNumber: 28,
                    columnNumber: 17
                }, this),
                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(DynamicGraph, {
                    graph: graphData
                }, void 0, false, {
                    fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js",
                    lineNumber: 29,
                    columnNumber: 17
                }, this)
            ]
        }, void 0, true, {
            fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js",
            lineNumber: 24,
            columnNumber: 13
        }, this)
    }, void 0, false, {
        fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js",
        lineNumber: 23,
        columnNumber: 9
    }, this));
};
const { nodes , edges  } = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.constructGraphData)();
function getStaticProps() {
    const tree = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.convertObject)((0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.getDirectoryData)());
    const contentData = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.getSinglePost)("index");
    const flattenNodes = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.getFlattenArray)(tree);
    const listOfEdges = edges.filter((anEdge)=>anEdge.target === "index"
    );
    const internalLinks = listOfEdges.map((anEdge)=>nodes.find((aNode)=>aNode.slug === anEdge.source
        )
    ).filter((element)=>element !== undefined
    );
    const backLinks = [
        ...new Set(internalLinks)
    ];
    const graphData = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.getLocalGraphData)("index");
    return {
        props: {
            content: contentData.data,
            tree: tree,
            flattenNodes: flattenNodes,
            graphData: graphData,
            backLinks: backLinks
        }
    };
}

__webpack_async_result__();
} catch(e) { __webpack_async_result__(e); } });ä{"filename":"[file].map[query]","module":true,"columns":true,"noSources":false,"namespace":"my-app"}ƒmap‹bufferedMapòÿÿòÿÿˆmappingsô�sourcesContent…names�xs;;;;;;;;;;;;;;;;;AAAyC;AAQpB;AAC4B;AACf;AACa;AAG/C,EAA8F;AAC9F,KAAK,CAACU,YAAY,GAAGF,mDAAO;;;;;;IAEtBG,OAAO,kFAASC,CAAC;sBAAC,CAAW;;;;;;;IAAMC,GAAG,EAAE,KAAK;;AAGpC,QAAQ,CAACC,IAAI,CAAC,CAACC,CAAAA,SAAS,GAAEC,OAAO,GAAEC,IAAI,GAAEC,YAAY,GAAEC,SAAS,GAAC,EAAE,CAAC;IAC/E,MAAM,6EACDnB,0DAAM;8FACFoB,CAAG;YAACC,SAAS,EAAG,CAAW;;4FACvBC,CAAG;oBAACD,SAAS,EAAC,CAAS;0GACnBd,8DAAU;wBAACU,IAAI,EAAEA,IAAI;wBAAEC,YAAY,EAAEA,YAAY;;;;;;;;;;;4FAErDT,6DAAS;oBAACO,OAAO,EAAEA,OAAO;oBAAGO,oBAAoB,EAAE,IAAI;oBAAEJ,SAAS,EAAEA,SAAS;;;;;;4FAC7ET,YAAY;oBAACc,KAAK,EAAET,SAAS;;;;;;;;;;;;;;;;;AAK9C,CAAC;AACD,KAAK,CAAC,CAACU,CAAAA,KAAK,GAAEC,KAAK,GAAC,GAAGpB,8DAAkB;AAElC,SAASqB,cAAc,GAAG,CAAC;IAC9B,KAAK,CAACV,IAAI,GAAGd,yDAAa,CAACD,4DAAgB;IAC3C,KAAK,CAAC0B,WAAW,GAAG3B,yDAAa,CAAC,CAAO;IACzC,KAAK,CAACiB,YAAY,GAAGd,2DAAe,CAACa,IAAI;IACzC,KAAK,CAACY,WAAW,GAAKH,KAAK,CAACI,MAAM,EAACC,MAAM,GAAIA,MAAM,CAACC,MAAM,KAAK,CAAO;;IACtE,KAAK,CAACC,aAAa,GAAGJ,WAAW,CAACK,GAAG,EAACH,MAAM,GAAIN,KAAK,CAACU,IAAI,EAACC,KAAK,GAAIA,KAAK,CAACC,IAAI,KAAKN,MAAM,CAACO,MAAM;;MAAGR,MAAM,EAACS,OAAO,GAAIA,OAAO,KAAKC,SAAS;;IAC1I,KAAK,CAACrB,SAAS,GAAG,CAAC;WAAG,GAAG,CAACsB,GAAG,CAACR,aAAa;IAAC,CAAC;IAE7C,KAAK,CAAClB,SAAS,GAAGV,6DAAiB,CAAC,CAAO;IAC3C,MAAM,CAAC,CAAC;QACJqC,KAAK,EAAE,CAAC;YACJ1B,OAAO,EAAEY,WAAW,CAACe,IAAI;YACzB1B,IAAI,EAAEA,IAAI;YACVC,YAAY,EAAEA,YAAY;YAC1BH,SAAS,EAACA,SAAS;YACnBI,SAAS,EAAEA,SAAS;QACxB,CAAC;IACL,CAAC;AACL,CAACšwebpack://./pages/index.jsimport Layout from "../components/Layout";
import {
    getSinglePost,
    getDirectoryData,
    convertObject,
    getFlattenArray,
    getLocalGraphData,
    constructGraphData
} from "../lib/utils";
import FolderTree from "../components/FolderTree";
import dynamic from 'next/dynamic'
import MDContent from "../components/MDContent";


// This trick is to dynamically load component that interact with window object (browser only)
const DynamicGraph = dynamic(
    () => import('../components/Graph'),
    { loading: () => <p>Loading ...</p>, ssr: false }
)

export default function Home({graphData, content, tree, flattenNodes, backLinks}) {
    return (
        <Layout>
            <div className = 'container'>
                <nav className="nav-bar">
                    <FolderTree tree={tree} flattenNodes={flattenNodes}/>
                </nav>
                <MDContent content={content}  handleOpenNewContent={null} backLinks={backLinks}/>
                <DynamicGraph graph={graphData}/>
            </div>
        </Layout>
    );

}
const {nodes, edges} = constructGraphData()

export function getStaticProps() {
    const tree = convertObject(getDirectoryData());
    const contentData = getSinglePost("index");
    const flattenNodes = getFlattenArray(tree)
    const listOfEdges =   edges.filter(anEdge => anEdge.target === "index")
    const internalLinks = listOfEdges.map(anEdge => nodes.find(aNode => aNode.slug === anEdge.source)).filter(element => element !== undefined)
    const backLinks = [...new Set(internalLinks)]

    const graphData = getLocalGraphData("index");
    return {
        props: {
            content: contentData.data,
            tree: tree,
            flattenNodes: flattenNodes,
            graphData:graphData,
            backLinks: backLinks
        },
    };
}
`,úòÿÿ!óÿÿóÿÿóÿÿ%óÿÿ)óÿÿóÿÿóÿÿíòÿÿóÿÿ¿òÿÿ‡loading�pƒssr¾òÿÿ‰graphDataøÿÿøÿÿŒflattenNodes‰backLinksƒdiv‰classNameƒnav”handleOpenNewContent…graph·òÿÿ¸òÿÿ¹òÿÿ‹contentData‹listOfEdges†filter†anEdge†target�internalLinksä„find…aNode„slugeıÿÿ‡elementÄòÿÿƒSet…props­ûÿÿ“__webpack_require__•__webpack_require__.n•__webpack_require__.r�òÿÿàñÿÿ•__webpack_require__.a•__webpack_require__.dÊªûÿÿ³
«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource|__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "siteTitle": () => (/* binding */ siteTitle),
/* harmony export */   "default": () => (/* binding */ Layout)
/* harmony export */ });
/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "react/jsx-dev-runtime");
/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! next/head */ "next/head");
/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(next_head__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mui/material */ "@mui/material");
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_material__WEBPACK_IMPORTED_MODULE_2__);
«webpack/lib/util/registerExternalSerializer�webpack-sources/ReplaceSource«webpack/lib/util/registerExternalSerializerŸwebpack-sources/SourceMapSource’import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
import Head from 'next/head';
import { Box } from '@mui/material';
// import BasicTree from 'lib/MyFolderTree'
export const siteTitle = 'Digital Backroom - An Internet Archive';
export default function Layout({ children  }) {
    return(/*#__PURE__*/ _jsxDEV("div", {
        children: /*#__PURE__*/ _jsxDEV("main", {
            className: "theme-light",
            children: children
        }, void 0, false, {
            fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/Layout.js",
            lineNumber: 9,
            columnNumber: 13
        }, this)
    }, void 0, false, {
        fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/Layout.js",
        lineNumber: 8,
        columnNumber: 9
    }, this));
};
„webpack://./node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!./components/Layout.js\{"version":3,"sources":["webpack://./components/Layout.js"],"sourcesContent":["import Head from 'next/head'\n// import BasicTree from 'lib/MyFolderTree'\nexport const siteTitle = 'Digital Backroom - An Internet Archive'\nimport {Box} from '@mui/material'\nexport default function Layout({children}) {\n\n    return (\n        <div>\n            <main className= \"theme-light\">\n                {children}\n            </main>\n        </div>\n    )\n}\n\n"],"names":["Head","Box","siteTitle","Layout","children","div","main","className"],"mappings":";AAAA,MAAM,CAACA,IAAI,MAAM,CAAW;AAG5B,MAAM,GAAEC,GAAG,QAAO,CAAe;AAFjC,EAA2C,AAA3C,yCAA2C;AAC3C,MAAM,CAAC,KAAK,CAACC,SAAS,GAAG,CAAwC;AAEjE,MAAM,SAAS,QAAQ,CAACC,MAAM,CAAC,CAACC,CAAAA,QAAQ,EAAA,CAAC,EAAE,CAAC;IAExC,MAAM,uBACDC,CAAG;wCACCC,CAAI;YAACC,SAAS,EAAE,CAAa;sBACzBH,QAAQ;;;;;;;;;;;AAIzB,CAAC","file":"x"}d9;WY|Gª°íû6<gm€€€€€½(0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)ÿÍé__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "siteTitle": () => (/* binding */ siteTitle),
/* harmony export */   "default": () => (/* binding */ Layout)
/* harmony export */ });
/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "react/jsx-dev-runtime");
/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! next/head */ "next/head");
/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(next_head__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mui/material */ "@mui/material");
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_material__WEBPACK_IMPORTED_MODULE_2__);



// import BasicTree from 'lib/MyFolderTree'
const siteTitle = 'Digital Backroom - An Internet Archive';
function Layout({ children  }) {
    return(/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)("div", {
        children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)("main", {
            className: "theme-light",
            children: children
        }, void 0, false, {
            fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/Layout.js",
            lineNumber: 9,
            columnNumber: 13
        }, this)
    }, void 0, false, {
        fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/Layout.js",
        lineNumber: 8,
        columnNumber: 9
    }, this));
};
ÎÑÕ�xØ;;;;;;;;;;;;AAA4B;AAGK;AAFjC,EAA2C;AACpC,KAAK,CAACE,SAAS,GAAG,CAAwC;AAElD,QAAQ,CAACC,MAAM,CAAC,CAACC,CAAAA,QAAQ,GAAC,EAAE,CAAC;IAExC,MAAM,6EACDC,CAAG;8FACCC,CAAI;YAACC,SAAS,EAAE,CAAa;sBACzBH,QAAQ;;;;;;;;;;;AAIzB,CAAC webpack://./components/Layout.jsiimport Head from 'next/head'
// import BasicTree from 'lib/MyFolderTree'
export const siteTitle = 'Digital Backroom - An Internet Archive'
import {Box} from '@mui/material'
export default function Layout({children}) {

    return (
        <div>
            <main className= "theme-light">
                {children}
            </main>
        </div>
    )
}

„HeadƒBox:õÿÿÎòÿÿˆchildrenØ)óÿÿÙéêëŠòÿÿí¸˜ûÿÿÙ)«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource·
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ FolderTree)
/* harmony export */ });
/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "react/jsx-dev-runtime");
/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _mui_lab_TreeView__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mui/lab/TreeView */ "@mui/lab/TreeView");
/* harmony import */ var _mui_lab_TreeView__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_lab_TreeView__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _mui_icons_material_ExpandMore__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mui/icons-material/ExpandMore */ "@mui/icons-material/ExpandMore");
/* harmony import */ var _mui_icons_material_ExpandMore__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_ExpandMore__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _mui_icons_material_ChevronRight__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mui/icons-material/ChevronRight */ "@mui/icons-material/ChevronRight");
/* harmony import */ var _mui_icons_material_ChevronRight__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_ChevronRight__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _mui_lab_TreeItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mui/lab/TreeItem */ "@mui/lab/TreeItem");
/* harmony import */ var _mui_lab_TreeItem__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_mui_lab_TreeItem__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! next/router */ "next/router");
/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(next_router__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _mui_material_styles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mui/material/styles */ "@mui/material/styles");
/* harmony import */ var _mui_material_styles__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_mui_material_styles__WEBPACK_IMPORTED_MODULE_7__);
«webpack/lib/util/registerExternalSerializer�webpack-sources/ReplaceSource«webpack/lib/util/registerExternalSerializerŸwebpack-sources/SourceMapSource5
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
import * as React from 'react';
import TreeView from '@mui/lab/TreeView';
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
import ChevronRightIcon from '@mui/icons-material/ChevronRight';
import TreeItem from '@mui/lab/TreeItem';
import { useRouter } from 'next/router';
import { styled } from '@mui/material/styles';
const TCTreeItem = styled(TreeItem)(({ theme  })=>({
        '& .MuiTreeItem-content': {
            '& .MuiTreeItem-label': {
                fontSize: '1rem',
                paddingLeft: '6px',
                fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,',
                lineHeight: 2
            }
        }
    })
);
export default function FolderTree(props) {
    const renderTree = (nodes)=>/*#__PURE__*/ _jsxDEV(TCTreeItem, {
            nodeId: nodes.id,
            label: nodes.name,
            children: Array.isArray(nodes.children) ? nodes.children.map((node)=>renderTree(node)
            ) : null
        }, nodes.id, false, {
            fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/FolderTree.js",
            lineNumber: 23,
            columnNumber: 9
        }, this)
    ;
    const router = useRouter();
    // const childrenNodeIds = props.tree.children.map(aNode => {return aNode.id})
    const expandedNodes = [
        props.tree.id
    ];
    return(/*#__PURE__*/ _jsxDEV(TreeView, {
        "aria-label": "rich object",
        defaultCollapseIcon: /*#__PURE__*/ _jsxDEV(ExpandMoreIcon, {}, void 0, false, void 0, void 0),
        defaultExpanded: expandedNodes,
        defaultExpandIcon: /*#__PURE__*/ _jsxDEV(ChevronRightIcon, {}, void 0, false, void 0, void 0),
        onNodeSelect: (event, nodIds)=>{
            const currentNode = props.flattenNodes.find((aNode)=>{
                return aNode.id === nodIds;
            });
            // console.log(event)
            // console.log(currentNode)
            if (currentNode != null && currentNode.routePath != null) {
                router.push(currentNode.routePath);
            // router.reload()
            }
        },
        sx: {
            flexGrow: 1,
            maxWidth: 400,
            overflowY: 'auto'
        },
        children: renderTree(props.tree)
    }, void 0, false, {
        fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/FolderTree.js",
        lineNumber: 34,
        columnNumber: 9
    }, this));
};
ˆwebpack://./node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!./components/FolderTree.js¬{"version":3,"sources":["webpack://./components/FolderTree.js"],"sourcesContent":["import * as React from 'react';\nimport TreeView from '@mui/lab/TreeView';\nimport ExpandMoreIcon from '@mui/icons-material/ExpandMore';\nimport ChevronRightIcon from '@mui/icons-material/ChevronRight';\nimport TreeItem from '@mui/lab/TreeItem';\nimport {useRouter} from 'next/router'\nimport {styled} from '@mui/material/styles';\n\nconst TCTreeItem = styled(TreeItem)(({theme}) => ({\n    '& .MuiTreeItem-content': {\n        '& .MuiTreeItem-label': {\n            fontSize: '1rem',\n            paddingLeft: '6px',\n            fontFamily: '-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif,',\n            lineHeight: 2.0,\n        },\n    },\n}))\n\n\nexport default function FolderTree(props) {\n    const renderTree = (nodes) => (\n        <TCTreeItem key={nodes.id} nodeId={nodes.id} label={nodes.name}>\n            {Array.isArray(nodes.children)\n                ? nodes.children.map((node) => renderTree(node))\n                : null}\n        </TCTreeItem>\n    );\n\n    const router = useRouter()\n    // const childrenNodeIds = props.tree.children.map(aNode => {return aNode.id})\n    const expandedNodes = [props.tree.id]\n    return (\n        <TreeView\n            aria-label=\"rich object\"\n            defaultCollapseIcon={<ExpandMoreIcon/>}\n            defaultExpanded={expandedNodes}\n            defaultExpandIcon={<ChevronRightIcon/>}\n            onNodeSelect={(event, nodIds) => {\n                const currentNode = props.flattenNodes.find(aNode => {\n                    return aNode.id === nodIds\n                })\n                // console.log(event)\n                // console.log(currentNode)\n                if (currentNode != null && currentNode.routePath != null) {\n                    router.push(currentNode.routePath)\n                    // router.reload()\n                }\n            }}\n            sx={{flexGrow: 1, maxWidth: 400, overflowY: 'auto'}}\n        >\n            {renderTree(props.tree)}\n        </TreeView>\n    );\n}\n"],"names":["React","TreeView","ExpandMoreIcon","ChevronRightIcon","TreeItem","useRouter","styled","TCTreeItem","theme","fontSize","paddingLeft","fontFamily","lineHeight","FolderTree","props","renderTree","nodes","nodeId","id","label","name","Array","isArray","children","map","node","router","expandedNodes","tree","aria-label","defaultCollapseIcon","defaultExpanded","defaultExpandIcon","onNodeSelect","event","nodIds","currentNode","flattenNodes","find","aNode","routePath","push","sx","flexGrow","maxWidth","overflowY"],"mappings":";AAAA,MAAM,MAAMA,KAAK,MAAM,CAAO;AAC9B,MAAM,CAACC,QAAQ,MAAM,CAAmB;AACxC,MAAM,CAACC,cAAc,MAAM,CAAgC;AAC3D,MAAM,CAACC,gBAAgB,MAAM,CAAkC;AAC/D,MAAM,CAACC,QAAQ,MAAM,CAAmB;AACxC,MAAM,GAAEC,SAAS,QAAO,CAAa;AACrC,MAAM,GA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,EAA2B,AAA3B,yBAA2B;YAC3B,EAAE,EAAEC,WAAW,IAAI,IAAI,IAAIA,WAAW,CAACI,SAAS,IAAI,IAAI,EAAE,CAAC;gBACvDd,MAAM,CAACe,IAAI,CAACL,WAAW,CAACI,SAAS;YACjC,EAAkB,AAAlB,gBAAkB;YACtB,CAAC;QACL,CAAC;QACDE,EAAE,EAAE,CAACC;YAAAA,QAAQ,EAAE,CAAC;YAAEC,QAAQ,EAAE,GAAG;YAAEC,SAAS,EAAE,CAAM;QAAA,CAAC;kBAElD9B,UAAU,CAACD,KAAK,CAACc,IAAI;;;;;;AAGlC,CAAC","file":"x"}e9;Y[_ƒ…ÀÂ+-TVƒ˜�Ÿ¦şX^19ãéëòGMO\ÔÚÜ@ë€€€€€€€€¼(0,_mui_material_styles__WEBPACK_IMPORTED_MODULE_7__.styled)º(_mui_lab_TreeItem__WEBPACK_IMPORTED_MODULE_5___default())€½(0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)¶(0,next_router__WEBPACK_IMPORTED_MODULE_6__.useRouter)şº(_mui_lab_TreeView__WEBPACK_IMPORTED_MODULE_2___default())ıÇ(_mui_icons_material_ExpandMore__WEBPACK_IMPORTED_MODULE_3___default())üÉ(_mui_icons_material_ChevronRight__WEBPACK_IMPORTED_MODULE_4___default())»q__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ FolderTree)
/* harmony export */ });
/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "react/jsx-dev-runtime");
/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _mui_lab_TreeView__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mui/lab/TreeView */ "@mui/lab/TreeView");
/* harmony import */ var _mui_lab_TreeView__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_lab_TreeView__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _mui_icons_material_ExpandMore__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mui/icons-material/ExpandMore */ "@mui/icons-material/ExpandMore");
/* harmony import */ var _mui_icons_material_ExpandMore__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_ExpandMore__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _mui_icons_material_ChevronRight__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mui/icons-material/ChevronRight */ "@mui/icons-material/ChevronRight");
/* harmony import */ var _mui_icons_material_ChevronRight__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_ChevronRight__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _mui_lab_TreeItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mui/lab/TreeItem */ "@mui/lab/TreeItem");
/* harmony import */ var _mui_lab_TreeItem__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_mui_lab_TreeItem__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! next/router */ "next/router");
/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(next_router__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _mui_material_styles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mui/material/styles */ "@mui/material/styles");
/* harmony import */ var _mui_material_styles__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_mui_material_styles__WEBPACK_IMPORTED_MODULE_7__);








const TCTreeItem = (0,_mui_material_styles__WEBPACK_IMPORTED_MODULE_7__.styled)((_mui_lab_TreeItem__WEBPACK_IMPORTED_MODULE_5___default()))(({ theme  })=>({
        '& .MuiTreeItem-content': {
            '& .MuiTreeItem-label': {
                fontSize: '1rem',
                paddingLeft: '6px',
                fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,',
                lineHeight: 2
            }
        }
    })
);
function FolderTree(props) {
    const renderTree = (nodes)=>/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(TCTreeItem, {
            nodeId: nodes.id,
            label: nodes.name,
            children: Array.isArray(nodes.children) ? nodes.children.map((node)=>renderTree(node)
            ) : null
        }, nodes.id, false, {
            fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/FolderTree.js",
            lineNumber: 23,
            columnNumber: 9
        }, this)
    ;
    const router = (0,next_router__WEBPACK_IMPORTED_MODULE_6__.useRouter)();
    // const childrenNodeIds = props.tree.children.map(aNode => {return aNode.id})
    const expandedNodes = [
        props.tree.id
    ];
    return(/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)((_mui_lab_TreeView__WEBPACK_IMPORTED_MODULE_2___default()), {
        "aria-label": "rich object",
        defaultCollapseIcon: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)((_mui_icons_material_ExpandMore__WEBPACK_IMPORTED_MODULE_3___default()), {}, void 0, false, void 0, void 0),
        defaultExpanded: expandedNodes,
        defaultExpandIcon: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)((_mui_icons_material_ChevronRight__WEBPACK_IMPORTED_MODULE_4___default()), {}, void 0, false, void 0, void 0),
        onNodeSelect: (event, nodIds)=>{
            const currentNode = props.flattenNodes.find((aNode)=>{
                return aNode.id === nodIds;
            });
            // console.log(event)
            // console.log(currentNode)
            if (currentNode != null && currentNode.routePath != null) {
                router.push(currentNode.routePath);
            // router.reload()
            }
        },
        sx: {
            flexGrow: 1,
            maxWidth: 400,
            overflowY: 'auto'
        },
        children: renderTree(props.tree)
    }, void 0, false, {
        fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/FolderTree.js",
        lineNumber: 34,
        columnNumber: 9
    }, this));
};
¼¿Ã�x_;;;;;;;;;;;;;;;;;;;;;AAA8B;AACU;AACmB;AACI;AACvB;AACH;AACM;AAE3C,KAAK,CAACO,UAAU,GAAGD,4DAAM,CAACF,0DAAQ,GAAG,CAACI,CAAAA,KAAK,GAAC,IAAM,CAAC;QAC/C,CAAwB,yBAAE,CAAC;YACvB,CAAsB,uBAAE,CAAC;gBACrBC,QAAQ,EAAE,CAAM;gBAChBC,WAAW,EAAE,CAAK;gBAClBC,UAAU,EAAE,CAAsF;gBAClGC,UAAU,EAAE,CAAG;YACnB,CAAC;QACL,CAAC;IACL,CAAC;;AAGc,QAAQ,CAACC,UAAU,CAACC,KAAK,EAAE,CAAC;IACvC,KAAK,CAACC,UAAU,IAAIC,KAAK,+EACpBT,UAAU;YAAgBU,MAAM,EAAED,KAAK,CAACE,EAAE;YAAEC,KAAK,EAAEH,KAAK,CAACI,IAAI;sBACzDC,KAAK,CAACC,OAAO,CAACN,KAAK,CAACO,QAAQ,IACvBP,KAAK,CAACO,QAAQ,CAACC,GAAG,EAAEC,IAAI,GAAKV,UAAU,CAACU,IAAI;gBAC5C,IAAI;WAHGT,KAAK,CAACE,EAAE;;;;;;IAO7B,KAAK,CAACQ,MAAM,GAAGrB,sDAAS;IACxB,EAA8E;IAC9E,KAAK,CAACsB,aAAa,GAAG,CAACb;QAAAA,KAAK,CAACc,IAAI,CAACV,EAAE;IAAA,CAAC;IACrC,MAAM,6EACDjB,0DAAQ;QACL4B,CAAU,aAAC,CAAa;QACxBC,mBAAmB,8EAAG5B,uEAAc;QACpC6B,eAAe,EAAEJ,aAAa;QAC9BK,iBAAiB,8EAAG7B,yEAAgB;QACpC8B,YAAY,GAAGC,KAAK,EAAEC,MAAM,GAAK,CAAC;YAC9B,KAAK,CAACC,WAAW,GAAGtB,KAAK,CAACuB,YAAY,CAACC,IAAI,EAACC,KAAK,GAAI,CAAC;gBAClD,MAAM,CAACA,KAAK,CAACrB,EAAE,KAAKiB,MAAM;YAC9B,CAAC;YACD,EAAqB;YACrB,EAA2B;YAC3B,EAAE,EAAEC,WAAW,IAAI,IAAI,IAAIA,WAAW,CAACI,SAAS,IAAI,IAAI,EAAE,CAAC;gBACvDd,MAAM,CAACe,IAAI,CAACL,WAAW,CAACI,SAAS;YACjC,EAAkB;YACtB,CAAC;QACL,CAAC;QACDE,EAAE,EAAE,CAACC;YAAAA,QAAQ,EAAE,CAAC;YAAEC,QAAQ,EAAE,GAAG;YAAEC,SAAS,EAAE,CAAM;QAAA,CAAC;kBAElD9B,UAAU,CAACD,KAAK,CAACc,IAAI;;;;;;AAGlC,CAAC¤webpack://./components/FolderTree.js°import * as React from 'react';
import TreeView from '@mui/lab/TreeView';
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
import ChevronRightIcon from '@mui/icons-material/ChevronRight';
import TreeItem from '@mui/lab/TreeItem';
import {useRouter} from 'next/router'
import {styled} from '@mui/material/styles';

const TCTreeItem = styled(TreeItem)(({theme}) => ({
    '& .MuiTreeItem-content': {
        '& .MuiTreeItem-label': {
            fontSize: '1rem',
            paddingLeft: '6px',
            fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,',
            lineHeight: 2.0,
        },
    },
}))


export default function FolderTree(props) {
    const renderTree = (nodes) => (
        <TCTreeItem key={nodes.id} nodeId={nodes.id} label={nodes.name}>
            {Array.isArray(nodes.children)
                ? nodes.children.map((node) => renderTree(node))
                : null}
        </TCTreeItem>
    );

    const router = useRouter()
    // const childrenNodeIds = props.tree.children.map(aNode => {return aNode.id})
    const expandedNodes = [props.tree.id]
    return (
        <TreeView
            aria-label="rich object"
            defaultCollapseIcon={<ExpandMoreIcon/>}
            defaultExpanded={expandedNodes}
            defaultExpandIcon={<ChevronRightIcon/>}
            onNodeSelect={(event, nodIds) => {
                const currentNode = props.flattenNodes.find(aNode => {
                    return aNode.id === nodIds
                })
                // console.log(event)
                // console.log(currentNode)
                if (currentNode != null && currentNode.routePath != null) {
                    router.push(currentNode.routePath)
                    // router.reload()
                }
            }}
            sx={{flexGrow: 1, maxWidth: 400, overflowY: 'auto'}}
        >
            {renderTree(props.tree)}
        </TreeView>
    );
}
`.…React�õÿÿ—õÿÿ�õÿÿ�õÿÿˆõÿÿ|õÿÿTõÿÿ…themeˆfontSize‹paddingLeftŠfontFamilyŠlineHeightÅòÿÿÓŠrenderTree~òÿÿ†nodeId‚id…labelÇñÿÿ…Array‡isArrayä¬¬ôÿÿ†router�expandedNodes¼÷ÿÿŠaria-label“defaultCollapseIcon�defaultExpanded‘defaultExpandIconŒonNodeSelect…event†nodIds‹currentNode±¾¿‰routePath„push‚sxˆflexGrowˆmaxWidth‰overflowY¾¿À_òÿÿÂ�mûÿÿ|«webpack/lib/util/registerExternalSerializer�webpack-sources/ReplaceSource«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource6module.exports = require('./dist/shared/lib/dynamic')
¨webpack://./node_modules/next/dynamic.js`4÷module.exports = __webpack_require__(/*! ./dist/shared/lib/dynamic */ "./node_modules/next/dist/shared/lib/dynamic.js")�xmodule.exports = __webpack_require__(/*! ./dist/shared/lib/dynamic */ "./node_modules/next/dist/shared/lib/dynamic.js")
‘”˜�xAAAA,uHAAqDõÿÿ}õÿÿ”ñÿÿ±€`ûÿÿb|«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourceô__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "getContent": () => (/* binding */ getContent),
/* harmony export */   "getShortSummary": () => (/* binding */ getShortSummary),
/* harmony export */   "getAllMarkdownFiles": () => (/* binding */ getAllMarkdownFiles),
/* harmony export */   "getSinglePost": () => (/* binding */ getSinglePost),
/* harmony export */   "toFilePath": () => (/* binding */ toFilePath),
/* harmony export */   "getSlugHashMap": () => (/* binding */ getSlugHashMap),
/* harmony export */   "toSlug": () => (/* binding */ toSlug),
/* harmony export */   "constructGraphData": () => (/* binding */ constructGraphData),
/* harmony export */   "getLocalGraphData": () => (/* binding */ getLocalGraphData),
/* harmony export */   "getAllSlugs": () => (/* binding */ getAllSlugs),
/* harmony export */   "getDirectoryData": () => (/* binding */ getDirectoryData),
/* harmony export */   "convertObject": () => (/* binding */ convertObject),
/* harmony export */   "getFlattenArray": () => (/* binding */ getFlattenArray)
/* harmony export */ });
/* harmony import */ var _node__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node */ "./lib/node.js");
/* harmony import */ var _transformer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./transformer */ "./lib/transformer.js");
/* harmony import */ var unified__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! unified */ "unified");
/* harmony import */ var unified__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(unified__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var remark_parse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! remark-parse */ "remark-parse");
/* harmony import */ var remark_parse__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(remark_parse__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var mdast_util_to_string__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! mdast-util-to-string */ "mdast-util-to-string");
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! path */ "path");
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! fs */ "fs");
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_6__);
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_transformer__WEBPACK_IMPORTED_MODULE_1__, mdast_util_to_string__WEBPACK_IMPORTED_MODULE_4__]);
([_transformer__WEBPACK_IMPORTED_MODULE_1__, mdast_util_to_string__WEBPACK_IMPORTED_MODULE_4__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
«webpack/lib/util/registerExternalSerializer�webpack-sources/ReplaceSource«webpack/lib/util/registerExternalSerializerŸwebpack-sources/SourceMapSourceœ import { Node } from "./node";
import { Transformer } from "./transformer";
import unified from "unified";
import markdown from "remark-parse";
import { toString } from 'mdast-util-to-string';
import path from "path";
import fs from "fs";
const dirTree = require("directory-tree");
export function getContent(slug) {
    let currentFilePath = toFilePath(slug);
    if (currentFilePath === undefined || currentFilePath == null) return null;
    return Node.readFileSync(currentFilePath);
}
export function getShortSummary(slug) {
    const content = getContent(slug);
    if (content === undefined || content === null) {
        return;
    }
    const tree = unified().use(markdown).parse(content);
    let plainText = toString(tree);
    return plainText.split(" ").splice(0, 40).join(" ");
}
export function getAllMarkdownFiles() {
    return Node.getFiles(Node.getMarkdownFolder());
}
export function getSinglePost(slug) {
    // List of filenames that will provide existing links to wikilink
    let currentFilePath = toFilePath(slug);
    //console.log("currentFilePath: ", currentFilePath)
    var fileContent = Node.readFileSync(currentFilePath);
    const currentFileFrontMatter = Transformer.getFrontMatterData(fileContent);
    // console.log("===============\n\nFile is scanning: ", slug)
    const [htmlContent] = Transformer.getHtmlContent(fileContent);
    // console.log("==================================")
    //console.log("hrmlcontents and backlinks")
    return {
        id: slug,
        // ...currentFileFrontMatter,
        data: htmlContent
    };
}
const cachedSlugMap = getSlugHashMap();
export function toFilePath(slug) {
    return cachedSlugMap[slug];
}
export function getSlugHashMap() {
    // This is to solve problem of converting between slug and filepath,
    // where previously if I convert a slug to a file path sometime
    // it does not always resolve to correct filepath, converting function is not bi-directional
    // and not conflict-free, other solution was considered (hash file name into a hash, but this
    // is not SEO-friendly and make url look ugly ==> I chose this
    const slugMap = new Map();
    getAllMarkdownFiles().map((aFile)=>{
        const aSlug = toSlug(aFile);
        // if (slugMap.has(aSlug)) {
        //     slugMap[aSlug].push(aFile)
        // } else {
        //     slugMap[aSlug] = [aFile]
        // }
        // Note: [Future improvement] Resolve conflict
        slugMap[aSlug] = aFile;
    });
    slugMap['index'] = Node.getMarkdownFolder() + "/index.md";
    slugMap['/'] = Node.getMarkdownFolder() + "/index.md";
    return slugMap;
}
export function toSlug(filePath) {
    if (Node.isFile(filePath) && filePath.includes(Node.getMarkdownFolder())) {
        return filePath.replace(Node.getMarkdownFolder(), '').replaceAll('/', '__').replaceAll(' ', '++++').replaceAll('&', 'ambersand').replace('.md', '');
    } else {
        //TODO handle this properly
        return '/';
    }
}
export function constructGraphData() {
    const filepath = path.join(process.cwd(), "graph-data.json");
    if (Node.isFile(filepath)) {
        const data = fs.readFileSync(filepath);
        return JSON.parse(String(data));
    } else {
        const filePaths = getAllMarkdownFiles();
        const edges = [];
        const nodes = [];
        filePaths.forEach((aFilePath)=>{
            // const {currentFilePath} = getFileNames(filename)
            const aNode = {
                title: Transformer.parseFileNameFromPath(aFilePath),
                slug: toSlug(aFilePath),
                shortSummary: getShortSummary(toSlug(aFilePath))
            };
            nodes.push(aNode);
            // console.log("Constructing graph for node: " + aFilePath )
            const internalLinks = Transformer.getInternalLinks(aFilePath);
            internalLinks.forEach((aLink)=>{
                if (aLink.slug === null || aLink.slug.length === 0) return;
                const anEdge = {
                    source: toSlug(aFilePath),
                    target: aLink.slug
                };
                edges.push(anEdge);
            // console.log("Source: " + anEdge.source)
            // console.log("Target: " + anEdge.target)
            });
        // console.log("==============Constructing graph" )
        });
        const data = {
            nodes,
            edges
        };
        fs.writeFileSync(filepath, JSON.stringify(data), "utf-8");
        return data;
    }
}
export function getLocalGraphData(currentNodeId) {
    const { nodes , edges  } = constructGraphData();
    const newNodes = nodes.map((aNode)=>({
            data: {
                id: aNode.slug.toString(),
                label: Transformer.parseFileNameFromPath(toFilePath(aNode.slug))
            }
        })
    );
    const newEdges = edges.map((anEdge)=>({
            data: {
                source: anEdge.source,
                target: anEdge.target
            }
        })
    );
    const existingNodeIDs = newNodes.map((aNode)=>aNode.data.id
    );
    currentNodeId = currentNodeId === 'index' ? '__index' : currentNodeId;
    if (currentNodeId != null && existingNodeIDs.includes(currentNodeId)) {
        const outGoingNodeIds = newEdges.filter((anEdge)=>anEdge.data.source === currentNodeId
        ).map((anEdge)=>anEdge.data.target
        );
        const incomingNodeIds = newEdges.filter((anEdge)=>anEdge.data.target === currentNodeId
        ).map((anEdge)=>anEdge.data.source
        );
        outGoingNodeIds.push(currentNodeId);
        const localNodeIds = incomingNodeIds.concat(outGoingNodeIds.filter((item)=>incomingNodeIds.indexOf(item) < 0
        ));
        if (localNodeIds.indexOf(currentNodeId) < 0) {
            localNodeIds.push(currentNodeId);
        }
        const localNodes = newNodes.filter((aNode)=>localNodeIds.includes(aNode.data.id)
        );
        let localEdges = newEdges.filter((edge)=>localNodeIds.includes(edge.data.source)
        ).filter((edge)=>localNodeIds.includes(edge.data.target)
        );
        // Filter self-reference edges
        localEdges = localEdges.filter((edge)=>edge.data.source !== edge.data.target
        );
        // TODO: Find out why target ==='/' in some case
        localEdges = localEdges.filter((edge)=>edge.data.target !== '/'
        );
        return {
            nodes: localNodes,
            edges: localEdges
        };
    } else {
        const filteredEdges = newEdges.filter((edge)=>existingNodeIDs.includes(edge.data.source)
        ).filter((edge)=>existingNodeIDs.includes(edge.data.target)
        );
        return {
            nodes: newNodes,
            edges: filteredEdges
        };
    }
}
export function getAllSlugs() {
    //console.log("\n\nAll Posts are scanning")
    // Get file names under /posts
    const filePaths = Node.getFiles(Node.getMarkdownFolder()).filter((f)=>!(f.endsWith("index") || f.endsWith("sidebar"))
    );
    return filePaths.map((f)=>toSlug(f)
    );
}
export function getDirectoryData() {
    const filteredDirectory = dirTree(Node.getMarkdownFolder(), {
        extensions: /\.md/
    });
    return convertObject(filteredDirectory);
}
let _counter = 0;
export function convertObject(thisObject) {
    const children = [];
    let routerPath = getAllSlugs().find((slug)=>{
        const fileName = Transformer.parseFileNameFromPath(toFilePath(slug));
        return Transformer.normalizeFileName(fileName) === Transformer.normalizeFileName(thisObject.name);
    }) || null;
    routerPath = routerPath ? '/note/' + routerPath : null;
    const newObject = {
        name: thisObject.name,
        children: children,
        id: (_counter++).toString(),
        routePath: routerPath || null
    };
    if (thisObject.children != null && thisObject.children.length > 0) {
        thisObject.children.forEach((aChild)=>{
            const newChild = convertObject(aChild);
            children.push(newChild);
        });
        return newObject;
    } else {
        return newObject;
    }
}
function flat(array) {
    var result = [];
    array.forEach(function(a) {
        result.push(a);
        if (Array.isArray(a.children)) {
            result = result.concat(flat(a.children));
        }
    });
    return result;
}
export function getFlattenArray(thisObject) {
    return flat(thisObject.children);
}
üwebpack://./node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!./lib/utils.js)H{"version":3,"sources":["webpack://./lib/utils.js"],"sourcesContent":["import {Node} from \"./node\"\nimport {Transformer} from \"./transformer\";\nimport unified from \"unified\";\nimport markdown from \"remark-parse\";\nimport {toString} from 'mdast-util-to-string'\nimport path from \"path\";\nimport fs from \"fs\";\n\nconst dirTree = require(\"directory-tree\");\n\n\nexport function getContent(slug) {\n    let currentFilePath = toFilePath(slug)\n    if (currentFilePath === undefined || currentFilePath == null) return null\n    return Node.readFileSync(currentFilePath)\n}\n\nexport function getShortSummary(slug) {\n    const content = getContent(slug)\n    if (content === undefined || content === null) {\n        return\n    }\n\n    const tree = unified().use(markdown)\n        .parse(content)\n    let plainText = toString(tree)\n    return plainText.split(\" \").splice(0, 40).join(\" \")\n}\n\n\nexport function getAllMarkdownFiles() {\n    return Node.getFiles(Node.getMarkdownFolder())\n}\n\nexport function getSinglePost(slug) {\n\n\n    // List of filenames that will provide existing links to wikilink\n    let currentFilePath = toFilePath(slug)\n    //console.log(\"currentFilePath: \", currentFilePath)\n\n    var fileContent = Node.readFileSync(currentFilePath)\n\n    const currentFileFrontMatter = Transformer.getFrontMatterData(fileContent)\n    // console.log(\"===============\\n\\nFile is scanning: \", slug)\n    const [htmlContent] = Transformer.getHtmlContent(fileContent)\n    // console.log(\"==================================\")\n    //console.log(\"hrmlcontents and backlinks\")\n    return {\n        id: slug,\n        // ...currentFileFrontMatter,\n        data: htmlContent,\n    }\n\n}\n\nconst cachedSlugMap = getSlugHashMap()\n\nexport function toFilePath(slug) {\n    return cachedSlugMap[slug]\n}\n\nexport function getSlugHashMap() {\n    // This is to solve problem of converting between slug and filepath,\n    // where previously if I convert a slug to a file path sometime\n    // it does not always resolve to correct filepath, converting function is not bi-directional\n    // and not conflict-free, other solution was considered (hash file name into a hash, but this\n    // is not SEO-friendly and make url look ugly ==> I chose this\n\n    const slugMap = new Map()\n    getAllMarkdownFiles().map(aFile => {\n        const aSlug = toSlug(aFile);\n        // if (slugMap.has(aSlug)) {\n        //     slugMap[aSlug].push(aFile)\n        // } else {\n        //     slugMap[aSlug] = [aFile]\n        // }\n        // Note: [Future improvement] Resolve conflict\n        slugMap[aSlug] = aFile\n    })\n\n    slugMap['index'] = Node.getMarkdownFolder() + \"/index.md\"\n    slugMap['/'] = Node.getMarkdownFolder() + \"/index.md\"\n\n    return slugMap\n}\n\n\nexport function toSlug(filePath) {\n\n    if (Node.isFile(filePath) && filePath.includes(Node.getMarkdownFolder())) {\n        return filePath.replace(Node.getMarkdownFolder(), '')\n            .replaceAll('/', '__')\n            .replaceAll(' ', '++++')\n            .replaceAll('&', 'ambersand')\n            .replace('.md', '')\n    } else {\n        //TODO handle this properly\n        return '/'\n    }\n\n}\n\n\n\nexport function constructGraphData() {\n\n    const filepath = path.join(process.cwd(), \"graph-data.json\");\n    if (Node.isFile(filepath)) {\n        const data = fs.readFileSync(filepath);\n        return JSON.parse(String(data))\n    } else {\n        const filePaths = getAllMarkdownFiles();\n        const edges = []\n        const nodes = []\n        filePaths\n            .forEach(aFilePath => {\n                    // const {currentFilePath} = getFileNames(filename)\n                    const aNode = {\n                        title: Transformer.parseFileNameFromPath(aFilePath),\n                        slug: toSlug(aFilePath),\n                        shortSummary: getShortSummary(toSlug(aFilePath))\n                    }\n                    nodes.push(aNode)\n\n                    // console.log(\"Constructing graph for node: \" + aFilePath )\n                    const internalLinks = Transformer.getInternalLinks(aFilePath)\n                    internalLinks.forEach(aLink => {\n\n                        if (aLink.slug === null || aLink.slug.length === 0) return\n\n                        const anEdge = {\n                            source: toSlug(aFilePath),\n                            target: aLink.slug,\n                        }\n                        edges.push(anEdge)\n                        // console.log(\"Source: \" + anEdge.source)\n                        // console.log(\"Target: \" + anEdge.target)\n                    })\n                    // console.log(\"==============Constructing graph\" )\n                }\n            )\n        const data = {nodes, edges};\n        fs.writeFileSync(filepath, JSON.stringify(data), \"utf-8\");\n        return data;\n    }\n}\n\n\nexport function getLocalGraphData(currentNodeId) {\n\n    const {nodes, edges} = constructGraphData()\n\n    const newNodes = nodes.map(aNode => (\n        {\n            data: {\n                id: aNode.slug.toString(),\n                label: Transformer.parseFileNameFromPath(toFilePath(aNode.slug)),\n            }\n        }\n    ))\n\n    const newEdges = edges.map(anEdge => ({\n        data: {\n            source: anEdge.source,\n            target: anEdge.target,\n        }\n    }))\n\n\n    const existingNodeIDs = newNodes.map(aNode => aNode.data.id)\n    currentNodeId = currentNodeId === 'index' ? '__index' : currentNodeId\n    if (currentNodeId != null && existingNodeIDs.includes(currentNodeId)) {\n        const outGoingNodeIds = newEdges\n            .filter(anEdge => anEdge.data.source === currentNodeId)\n            .map(anEdge => anEdge.data.target)\n\n        const incomingNodeIds = newEdges\n            .filter(anEdge => anEdge.data.target === currentNodeId)\n            .map(anEdge => anEdge.data.source)\n\n        outGoingNodeIds.push(currentNodeId)\n\n        const localNodeIds = incomingNodeIds.concat(outGoingNodeIds.filter(item => incomingNodeIds.indexOf(item) < 0))\n        if (localNodeIds.indexOf(currentNodeId) < 0) {\n            localNodeIds.push(currentNodeId)\n        }\n\n        const localNodes = newNodes.filter(aNode => localNodeIds.includes(aNode.data.id))\n        let localEdges = newEdges.filter(edge => localNodeIds.includes(edge.data.source)).filter(edge => localNodeIds.includes(edge.data.target));\n\n        // Filter self-reference edges\n        localEdges = localEdges.filter(edge => edge.data.source !== edge.data.target)\n\n        // TODO: Find out why target ==='/' in some case\n        localEdges = localEdges.filter(edge => edge.data.target !== '/')\n        return {\n            nodes: localNodes,\n            edges: localEdges\n        }\n    } else {\n        const filteredEdges = newEdges\n            .filter(edge => existingNodeIDs.includes(edge.data.source))\n            .filter(edge => existingNodeIDs.includes(edge.data.target))\n\n        return {\n            nodes: newNodes,\n            edges: filteredEdges\n        }\n    }\n\n\n}\n\nexport function getAllSlugs() {\n    //console.log(\"\\n\\nAll Posts are scanning\")\n    // Get file names under /posts\n    const filePaths = Node.getFiles(Node.getMarkdownFolder()).filter(f => !(f.endsWith(\"index\") || f.endsWith(\"sidebar\")))\n    return filePaths.map(f => toSlug(f))\n}\n\nexport function getDirectoryData() {\n    const filteredDirectory = dirTree(Node.getMarkdownFolder(), {extensions: /\\.md/});\n    return convertObject(filteredDirectory)\n}\n\nlet _counter = 0;\n\nexport function convertObject(thisObject) {\n    const children = []\n\n    let routerPath = getAllSlugs().find(slug => {\n        const fileName = Transformer.parseFileNameFromPath(toFilePath(slug))\n        return Transformer.normalizeFileName(fileName) === Transformer.normalizeFileName(thisObject.name)\n    }) || null\n    routerPath = routerPath ? '/note/' + routerPath : null\n    const newObject = {\n        name: thisObject.name,\n        children: children,\n        id: (_counter++).toString(),\n        routePath: routerPath || null\n    };\n\n    if (thisObject.children != null && thisObject.children.length > 0) {\n        thisObject.children.forEach(aChild => {\n            const newChild = convertObject(aChild)\n            children.push(newChild)\n        })\n        return newObject;\n    } else {\n        return newObject\n    }\n}\n\nfunction flat(array) {\n    var result = [];\n    array.forEach(function (a) {\n        result.push(a);\n        if (Array.isArray(a.children)) {\n            result = result.concat(flat(a.children));\n        }\n    });\n    return result;\n}\n\nexport function getFlattenArray(thisObject) {\n    return flat(thisObject.children)\n}"],"names":["Node","Transformer","unified","markdown","toString","path","fs","dirTree","require","getContent","slug","currentFilePath","toFilePath","undefined","readFileSync","getShortSummary","content","tree","use","parse","plainText","split","splice","join","getAllMarkdownFiles","getFiles","getMarkdownFolder","getSinglePost","fileContent","currentFileFrontMatter","getFrontMatterData","htmlContent","getHtmlContent","id","data","cachedSlugMap","getSlugHashMap","slugMap","Map","map","aFile","aSlug","toSlug","filePath","isFile","includes","replace","replaceAll","constructGraphData","filepath","process","cwd","JSON","String","filePaths","edges","nodes","forEach","aFilePath","aNode","title","parseFileNameFromPath","shortSummary","push","internalLinks","getInternalLinks","aLink","length","anEdge","source","target","writeFileSync","stringify","getLocalGraphData","currentNodeId","newNodes","label","newEdges","existingNodeIDs","outGoingNodeIds","filter","incomingNodeIds","localNodeIds","concat","item","indexOf","localNodes","localEdges","edge","filteredEdges","getAllSlugs","f","endsWith","getDirectoryData","filteredDirectory","extensions","convertObject","_counter","thisObject","children","routerPath","find","fileName","normalizeFileName","name","newObject","routePath","aChild","newChild","flat","array","result","a","Array","isArray","getFlattenArray"],"mappings":"AAAA,MAAM,GAAEA,IAAI,QAAO,CAAQ;AAC3B,MAAM,GAAEC,WAAW,QAAO,CAAe;AACzC,MAAM,CAACC,OAAO,MAAM,CAAS;AAC7B,MAAM,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;QAChE+B,UAAU,CAACC,QAAQ,CAAC1C,OAAO,EAACkD,MAAM,GAAI,CAAC;YACnC,KAAK,CAACC,QAAQ,GAAGZ,aAAa,CAACW,MAAM;YACrCR,QAAQ,CAACpC,IAAI,CAAC6C,QAAQ;QAC1B,CAAC;QACD,MAAM,CAACH,SAAS;IACpB,CAAC,MAAM,CAAC;QACJ,MAAM,CAACA,SAAS;IACpB,CAAC;AACL,CAAC;SAEQI,IAAI,CAACC,KAAK,EAAE,CAAC;IAClB,GAAG,CAACC,MAAM,GAAG,CAAC,CAAC;IACfD,KAAK,CAACrD,OAAO,CAAC,QAAQ,CAAEuD,CAAC,EAAE,CAAC;QACxBD,MAAM,CAAChD,IAAI,CAACiD,CAAC;QACb,EAAE,EAAEC,KAAK,CAACC,OAAO,CAACF,CAAC,CAACb,QAAQ,GAAG,CAAC;YAC5BY,MAAM,GAAGA,MAAM,CAAC5B,MAAM,CAAC0B,IAAI,CAACG,CAAC,CAACb,QAAQ;QAC1C,CAAC;IACL,CAAC;IACD,MAAM,CAACY,MAAM;AACjB,CAAC;AAED,MAAM,UAAUI,eAAe,CAACjB,UAAU,EAAE,CAAC;IACzC,MAAM,CAACW,IAAI,CAACX,UAAU,CAACC,QAAQ;AACnC,CAAC","file":"x"}g1JLik_��¿ÁØÚíÿ ÃÓéï“™¡¨ÏÖ MY[px~^_n¥Â.GPV•›Æ	Û	

?
E
j
t
•
ª
Ò
ç
œ¢Øà
;I�
­
¾ZÙ#2{�d„$*­¹»ĞIO”©¤Äè0F L €€€€€€€“__webpack_require__¦/*! directory-tree */ "directory-tree"€´_node__WEBPACK_IMPORTED_MODULE_0__.Node.readFileSync€®unified__WEBPACK_IMPORTED_MODULE_2___default()µ(remark_parse__WEBPACK_IMPORTED_MODULE_3___default())¾(0,mdast_util_to_string__WEBPACK_IMPORTED_MODULE_4__.toString)€°_node__WEBPACK_IMPORTED_MODULE_0__.Node.getFiles¹_node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder€úÈ_transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.getFrontMatterDataÄ_transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.getHtmlContent€€ıı€®_node__WEBPACK_IMPORTED_MODULE_0__.Node.isFileüü€°path__WEBPACK_IMPORTED_MODULE_5___default().joinş¶fs__WEBPACK_IMPORTED_MODULE_6___default().readFileSyncË_transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.parseFileNameFromPathÆ_transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.getInternalLinks·fs__WEBPACK_IMPORTED_MODULE_6___default().writeFileSync€ı€ö÷€÷€ıÇ_transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.normalizeFileNameÿ€L
__webpack_async_result__();
} catch(e) { __webpack_async_result__(e); } });ƒÑ/__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "getContent": () => (/* binding */ getContent),
/* harmony export */   "getShortSummary": () => (/* binding */ getShortSummary),
/* harmony export */   "getAllMarkdownFiles": () => (/* binding */ getAllMarkdownFiles),
/* harmony export */   "getSinglePost": () => (/* binding */ getSinglePost),
/* harmony export */   "toFilePath": () => (/* binding */ toFilePath),
/* harmony export */   "getSlugHashMap": () => (/* binding */ getSlugHashMap),
/* harmony export */   "toSlug": () => (/* binding */ toSlug),
/* harmony export */   "constructGraphData": () => (/* binding */ constructGraphData),
/* harmony export */   "getLocalGraphData": () => (/* binding */ getLocalGraphData),
/* harmony export */   "getAllSlugs": () => (/* binding */ getAllSlugs),
/* harmony export */   "getDirectoryData": () => (/* binding */ getDirectoryData),
/* harmony export */   "convertObject": () => (/* binding */ convertObject),
/* harmony export */   "getFlattenArray": () => (/* binding */ getFlattenArray)
/* harmony export */ });
/* harmony import */ var _node__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node */ "./lib/node.js");
/* harmony import */ var _transformer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./transformer */ "./lib/transformer.js");
/* harmony import */ var unified__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! unified */ "unified");
/* harmony import */ var unified__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(unified__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var remark_parse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! remark-parse */ "remark-parse");
/* harmony import */ var remark_parse__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(remark_parse__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var mdast_util_to_string__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! mdast-util-to-string */ "mdast-util-to-string");
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! path */ "path");
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! fs */ "fs");
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_6__);
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_transformer__WEBPACK_IMPORTED_MODULE_1__, mdast_util_to_string__WEBPACK_IMPORTED_MODULE_4__]);
([_transformer__WEBPACK_IMPORTED_MODULE_1__, mdast_util_to_string__WEBPACK_IMPORTED_MODULE_4__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);







const dirTree = __webpack_require__(/*! directory-tree */ "directory-tree");
function getContent(slug) {
    let currentFilePath = toFilePath(slug);
    if (currentFilePath === undefined || currentFilePath == null) return null;
    return _node__WEBPACK_IMPORTED_MODULE_0__.Node.readFileSync(currentFilePath);
}
function getShortSummary(slug) {
    const content = getContent(slug);
    if (content === undefined || content === null) {
        return;
    }
    const tree = unified__WEBPACK_IMPORTED_MODULE_2___default()().use((remark_parse__WEBPACK_IMPORTED_MODULE_3___default())).parse(content);
    let plainText = (0,mdast_util_to_string__WEBPACK_IMPORTED_MODULE_4__.toString)(tree);
    return plainText.split(" ").splice(0, 40).join(" ");
}
function getAllMarkdownFiles() {
    return _node__WEBPACK_IMPORTED_MODULE_0__.Node.getFiles(_node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder());
}
function getSinglePost(slug) {
    // List of filenames that will provide existing links to wikilink
    let currentFilePath = toFilePath(slug);
    //console.log("currentFilePath: ", currentFilePath)
    var fileContent = _node__WEBPACK_IMPORTED_MODULE_0__.Node.readFileSync(currentFilePath);
    const currentFileFrontMatter = _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.getFrontMatterData(fileContent);
    // console.log("===============\n\nFile is scanning: ", slug)
    const [htmlContent] = _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.getHtmlContent(fileContent);
    // console.log("==================================")
    //console.log("hrmlcontents and backlinks")
    return {
        id: slug,
        // ...currentFileFrontMatter,
        data: htmlContent
    };
}
const cachedSlugMap = getSlugHashMap();
function toFilePath(slug) {
    return cachedSlugMap[slug];
}
function getSlugHashMap() {
    // This is to solve problem of converting between slug and filepath,
    // where previously if I convert a slug to a file path sometime
    // it does not always resolve to correct filepath, converting function is not bi-directional
    // and not conflict-free, other solution was considered (hash file name into a hash, but this
    // is not SEO-friendly and make url look ugly ==> I chose this
    const slugMap = new Map();
    getAllMarkdownFiles().map((aFile)=>{
        const aSlug = toSlug(aFile);
        // if (slugMap.has(aSlug)) {
        //     slugMap[aSlug].push(aFile)
        // } else {
        //     slugMap[aSlug] = [aFile]
        // }
        // Note: [Future improvement] Resolve conflict
        slugMap[aSlug] = aFile;
    });
    slugMap['index'] = _node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder() + "/index.md";
    slugMap['/'] = _node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder() + "/index.md";
    return slugMap;
}
function toSlug(filePath) {
    if (_node__WEBPACK_IMPORTED_MODULE_0__.Node.isFile(filePath) && filePath.includes(_node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder())) {
        return filePath.replace(_node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder(), '').replaceAll('/', '__').replaceAll(' ', '++++').replaceAll('&', 'ambersand').replace('.md', '');
    } else {
        //TODO handle this properly
        return '/';
    }
}
function constructGraphData() {
    const filepath = path__WEBPACK_IMPORTED_MODULE_5___default().join(process.cwd(), "graph-data.json");
    if (_node__WEBPACK_IMPORTED_MODULE_0__.Node.isFile(filepath)) {
        const data = fs__WEBPACK_IMPORTED_MODULE_6___default().readFileSync(filepath);
        return JSON.parse(String(data));
    } else {
        const filePaths = getAllMarkdownFiles();
        const edges = [];
        const nodes = [];
        filePaths.forEach((aFilePath)=>{
            // const {currentFilePath} = getFileNames(filename)
            const aNode = {
                title: _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.parseFileNameFromPath(aFilePath),
                slug: toSlug(aFilePath),
                shortSummary: getShortSummary(toSlug(aFilePath))
            };
            nodes.push(aNode);
            // console.log("Constructing graph for node: " + aFilePath )
            const internalLinks = _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.getInternalLinks(aFilePath);
            internalLinks.forEach((aLink)=>{
                if (aLink.slug === null || aLink.slug.length === 0) return;
                const anEdge = {
                    source: toSlug(aFilePath),
                    target: aLink.slug
                };
                edges.push(anEdge);
            // console.log("Source: " + anEdge.source)
            // console.log("Target: " + anEdge.target)
            });
        // console.log("==============Constructing graph" )
        });
        const data = {
            nodes,
            edges
        };
        fs__WEBPACK_IMPORTED_MODULE_6___default().writeFileSync(filepath, JSON.stringify(data), "utf-8");
        return data;
    }
}
function getLocalGraphData(currentNodeId) {
    const { nodes , edges  } = constructGraphData();
    const newNodes = nodes.map((aNode)=>({
            data: {
                id: aNode.slug.toString(),
                label: _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.parseFileNameFromPath(toFilePath(aNode.slug))
            }
        })
    );
    const newEdges = edges.map((anEdge)=>({
            data: {
                source: anEdge.source,
                target: anEdge.target
            }
        })
    );
    const existingNodeIDs = newNodes.map((aNode)=>aNode.data.id
    );
    currentNodeId = currentNodeId === 'index' ? '__index' : currentNodeId;
    if (currentNodeId != null && existingNodeIDs.includes(currentNodeId)) {
        const outGoingNodeIds = newEdges.filter((anEdge)=>anEdge.data.source === currentNodeId
        ).map((anEdge)=>anEdge.data.target
        );
        const incomingNodeIds = newEdges.filter((anEdge)=>anEdge.data.target === currentNodeId
        ).map((anEdge)=>anEdge.data.source
        );
        outGoingNodeIds.push(currentNodeId);
        const localNodeIds = incomingNodeIds.concat(outGoingNodeIds.filter((item)=>incomingNodeIds.indexOf(item) < 0
        ));
        if (localNodeIds.indexOf(currentNodeId) < 0) {
            localNodeIds.push(currentNodeId);
        }
        const localNodes = newNodes.filter((aNode)=>localNodeIds.includes(aNode.data.id)
        );
        let localEdges = newEdges.filter((edge)=>localNodeIds.includes(edge.data.source)
        ).filter((edge)=>localNodeIds.includes(edge.data.target)
        );
        // Filter self-reference edges
        localEdges = localEdges.filter((edge)=>edge.data.source !== edge.data.target
        );
        // TODO: Find out why target ==='/' in some case
        localEdges = localEdges.filter((edge)=>edge.data.target !== '/'
        );
        return {
            nodes: localNodes,
            edges: localEdges
        };
    } else {
        const filteredEdges = newEdges.filter((edge)=>existingNodeIDs.includes(edge.data.source)
        ).filter((edge)=>existingNodeIDs.includes(edge.data.target)
        );
        return {
            nodes: newNodes,
            edges: filteredEdges
        };
    }
}
function getAllSlugs() {
    //console.log("\n\nAll Posts are scanning")
    // Get file names under /posts
    const filePaths = _node__WEBPACK_IMPORTED_MODULE_0__.Node.getFiles(_node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder()).filter((f)=>!(f.endsWith("index") || f.endsWith("sidebar"))
    );
    return filePaths.map((f)=>toSlug(f)
    );
}
function getDirectoryData() {
    const filteredDirectory = dirTree(_node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder(), {
        extensions: /\.md/
    });
    return convertObject(filteredDirectory);
}
let _counter = 0;
function convertObject(thisObject) {
    const children = [];
    let routerPath = getAllSlugs().find((slug)=>{
        const fileName = _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.parseFileNameFromPath(toFilePath(slug));
        return _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.normalizeFileName(fileName) === _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.normalizeFileName(thisObject.name);
    }) || null;
    routerPath = routerPath ? '/note/' + routerPath : null;
    const newObject = {
        name: thisObject.name,
        children: children,
        id: (_counter++).toString(),
        routePath: routerPath || null
    };
    if (thisObject.children != null && thisObject.children.length > 0) {
        thisObject.children.forEach((aChild)=>{
            const newChild = convertObject(aChild);
            children.push(newChild);
        });
        return newObject;
    } else {
        return newObject;
    }
}
function flat(array) {
    var result = [];
    array.forEach(function(a) {
        result.push(a);
        if (Array.isArray(a.children)) {
            result = result.concat(flat(a.children));
        }
    });
    return result;
}
function getFlattenArray(thisObject) {
    return flat(thisObject.children);
}

__webpack_async_result__();
} catch(e) { __webpack_async_result__(e); } });„‡‹�xÊ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAA2B;AACc;AACZ;AACM;AACU;AACtB;AACJ;AAEnB,KAAK,CAACO,OAAO,GAAGC,mBAAO,CAAC,sCAAgB;AAGjC,SAASC,UAAU,CAACC,IAAI,EAAE,CAAC;IAC9B,GAAG,CAACC,eAAe,GAAGC,UAAU,CAACF,IAAI;IACrC,EAAE,EAAEC,eAAe,KAAKE,SAAS,IAAIF,eAAe,IAAI,IAAI,EAAE,MAAM,CAAC,IAAI;IACzE,MAAM,CAACX,oDAAiB,CAACW,eAAe;AAC5C,CAAC;AAEM,SAASI,eAAe,CAACL,IAAI,EAAE,CAAC;IACnC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,OAAO,EAACkD,MAAM,GAAI,CAAC;YACnC,KAAK,CAACC,QAAQ,GAAGZ,aAAa,CAACW,MAAM;YACrCR,QAAQ,CAACpC,IAAI,CAAC6C,QAAQ;QAC1B,CAAC;QACD,MAAM,CAACH,SAAS;IACpB,CAAC,MAAM,CAAC;QACJ,MAAM,CAACA,SAAS;IACpB,CAAC;AACL,CAAC;SAEQI,IAAI,CAACC,KAAK,EAAE,CAAC;IAClB,GAAG,CAACC,MAAM,GAAG,CAAC,CAAC;IACfD,KAAK,CAACrD,OAAO,CAAC,QAAQ,CAAEuD,CAAC,EAAE,CAAC;QACxBD,MAAM,CAAChD,IAAI,CAACiD,CAAC;QACb,EAAE,EAAEC,KAAK,CAACC,OAAO,CAACF,CAAC,CAACb,QAAQ,GAAG,CAAC;YAC5BY,MAAM,GAAGA,MAAM,CAAC5B,MAAM,CAAC0B,IAAI,CAACG,CAAC,CAACb,QAAQ;QAC1C,CAAC;IACL,CAAC;IACD,MAAM,CAACY,MAAM;AACjB,CAAC;AAEM,SAASI,eAAe,CAACjB,UAAU,EAAE,CAAC;IACzC,MAAM,CAACW,IAAI,CAACX,UAAU,CAACC,QAAQ;AACnC,CAAC˜webpack://./lib/utils.js(!import {Node} from "./node"
import {Transformer} from "./transformer";
import unified from "unified";
import markdown from "remark-parse";
import {toString} from 'mdast-util-to-string'
import path from "path";
import fs from "fs";

const dirTree = require("directory-tree");


export function getContent(slug) {
    let currentFilePath = toFilePath(slug)
    if (currentFilePath === undefined || currentFilePath == null) return null
    return Node.readFileSync(currentFilePath)
}

export function getShortSummary(slug) {
    const content = getContent(slug)
    if (content === undefined || content === null) {
        return
    }

    const tree = unified().use(markdown)
        .parse(content)
    let plainText = toString(tree)
    return plainText.split(" ").splice(0, 40).join(" ")
}


export function getAllMarkdownFiles() {
    return Node.getFiles(Node.getMarkdownFolder())
}

export function getSinglePost(slug) {


    // List of filenames that will provide existing links to wikilink
    let currentFilePath = toFilePath(slug)
    //console.log("currentFilePath: ", currentFilePath)

    var fileContent = Node.readFileSync(currentFilePath)

    const currentFileFrontMatter = Transformer.getFrontMatterData(fileContent)
    // console.log("===============\n\nFile is scanning: ", slug)
    const [htmlContent] = Transformer.getHtmlContent(fileContent)
    // console.log("==================================")
    //console.log("hrmlcontents and backlinks")
    return {
        id: slug,
        // ...currentFileFrontMatter,
        data: htmlContent,
    }

}

const cachedSlugMap = getSlugHashMap()

export function toFilePath(slug) {
    return cachedSlugMap[slug]
}

export function getSlugHashMap() {
    // This is to solve problem of converting between slug and filepath,
    // where previously if I convert a slug to a file path sometime
    // it does not always resolve to correct filepath, converting function is not bi-directional
    // and not conflict-free, other solution was considered (hash file name into a hash, but this
    // is not SEO-friendly and make url look ugly ==> I chose this

    const slugMap = new Map()
    getAllMarkdownFiles().map(aFile => {
        const aSlug = toSlug(aFile);
        // if (slugMap.has(aSlug)) {
        //     slugMap[aSlug].push(aFile)
        // } else {
        //     slugMap[aSlug] = [aFile]
        // }
        // Note: [Future improvement] Resolve conflict
        slugMap[aSlug] = aFile
    })

    slugMap['index'] = Node.getMarkdownFolder() + "/index.md"
    slugMap['/'] = Node.getMarkdownFolder() + "/index.md"

    return slugMap
}


export function toSlug(filePath) {

    if (Node.isFile(filePath) && filePath.includes(Node.getMarkdownFolder())) {
        return filePath.replace(Node.getMarkdownFolder(), '')
            .replaceAll('/', '__')
            .replaceAll(' ', '++++')
            .replaceAll('&', 'ambersand')
            .replace('.md', '')
    } else {
        //TODO handle this properly
        return '/'
    }

}



export function constructGraphData() {

    const filepath = path.join(process.cwd(), "graph-data.json");
    if (Node.isFile(filepath)) {
        const data = fs.readFileSync(filepath);
        return JSON.parse(String(data))
    } else {
        const filePaths = getAllMarkdownFiles();
        const edges = []
        const nodes = []
        filePaths
            .forEach(aFilePath => {
                    // const {currentFilePath} = getFileNames(filename)
                    const aNode = {
                        title: Transformer.parseFileNameFromPath(aFilePath),
                        slug: toSlug(aFilePath),
                        shortSummary: getShortSummary(toSlug(aFilePath))
                    }
                    nodes.push(aNode)

                    // console.log("Constructing graph for node: " + aFilePath )
                    const internalLinks = Transformer.getInternalLinks(aFilePath)
                    internalLinks.forEach(aLink => {

                        if (aLink.slug === null || aLink.slug.length === 0) return

                        const anEdge = {
                            source: toSlug(aFilePath),
                            target: aLink.slug,
                        }
                        edges.push(anEdge)
                        // console.log("Source: " + anEdge.source)
                        // console.log("Target: " + anEdge.target)
                    })
                    // console.log("==============Constructing graph" )
                }
            )
        const data = {nodes, edges};
        fs.writeFileSync(filepath, JSON.stringify(data), "utf-8");
        return data;
    }
}


export function getLocalGraphData(currentNodeId) {

    const {nodes, edges} = constructGraphData()

    const newNodes = nodes.map(aNode => (
        {
            data: {
                id: aNode.slug.toString(),
                label: Transformer.parseFileNameFromPath(toFilePath(aNode.slug)),
            }
        }
    ))

    const newEdges = edges.map(anEdge => ({
        data: {
            source: anEdge.source,
            target: anEdge.target,
        }
    }))


    const existingNodeIDs = newNodes.map(aNode => aNode.data.id)
    currentNodeId = currentNodeId === 'index' ? '__index' : currentNodeId
    if (currentNodeId != null && existingNodeIDs.includes(currentNodeId)) {
        const outGoingNodeIds = newEdges
            .filter(anEdge => anEdge.data.source === currentNodeId)
            .map(anEdge => anEdge.data.target)

        const incomingNodeIds = newEdges
            .filter(anEdge => anEdge.data.target === currentNodeId)
            .map(anEdge => anEdge.data.source)

        outGoingNodeIds.push(currentNodeId)

        const localNodeIds = incomingNodeIds.concat(outGoingNodeIds.filter(item => incomingNodeIds.indexOf(item) < 0))
        if (localNodeIds.indexOf(currentNodeId) < 0) {
            localNodeIds.push(currentNodeId)
        }

        const localNodes = newNodes.filter(aNode => localNodeIds.includes(aNode.data.id))
        let localEdges = newEdges.filter(edge => localNodeIds.includes(edge.data.source)).filter(edge => localNodeIds.includes(edge.data.target));

        // Filter self-reference edges
        localEdges = localEdges.filter(edge => edge.data.source !== edge.data.target)

        // TODO: Find out why target ==='/' in some case
        localEdges = localEdges.filter(edge => edge.data.target !== '/')
        return {
            nodes: localNodes,
            edges: localEdges
        }
    } else {
        const filteredEdges = newEdges
            .filter(edge => existingNodeIDs.includes(edge.data.source))
            .filter(edge => existingNodeIDs.includes(edge.data.target))

        return {
            nodes: newNodes,
            edges: filteredEdges
        }
    }


}

export function getAllSlugs() {
    //console.log("\n\nAll Posts are scanning")
    // Get file names under /posts
    const filePaths = Node.getFiles(Node.getMarkdownFolder()).filter(f => !(f.endsWith("index") || f.endsWith("sidebar")))
    return filePaths.map(f => toSlug(f))
}

export function getDirectoryData() {
    const filteredDirectory = dirTree(Node.getMarkdownFolder(), {extensions: /\.md/});
    return convertObject(filteredDirectory)
}

let _counter = 0;

export function convertObject(thisObject) {
    const children = []

    let routerPath = getAllSlugs().find(slug => {
        const fileName = Transformer.parseFileNameFromPath(toFilePath(slug))
        return Transformer.normalizeFileName(fileName) === Transformer.normalizeFileName(thisObject.name)
    }) || null
    routerPath = routerPath ? '/note/' + routerPath : null
    const newObject = {
        name: thisObject.name,
        children: children,
        id: (_counter++).toString(),
        routePath: routerPath || null
    };

    if (thisObject.children != null && thisObject.children.length > 0) {
        thisObject.children.forEach(aChild => {
            const newChild = convertObject(aChild)
            children.push(newChild)
        })
        return newObject;
    } else {
        return newObject
    }
}

function flat(array) {
    var result = [];
    array.forEach(function (a) {
        result.push(a);
        if (Array.isArray(a.children)) {
            result = result.concat(flat(a.children));
        }
    });
    return result;
}

export function getFlattenArray(thisObject) {
    return flat(thisObject.children)
}`tèõÿÿöÿÿÎñÿÿòõÿÿõõÿÿˆñÿÿ·ñÿÿ•õÿÿâüÿÿ–õÿÿ��currentFilePath™õÿÿcòÿÿèõÿÿ–õÿÿ’÷ÿÿ‘÷ÿÿƒuseˆ÷ÿÿ‰plainText…split†spliceöÿÿ“õÿÿõõÿÿùõÿÿ¨òÿÿ‹fileContent–currentFileFrontMatteröÿÿ‹htmlContentöÿÿÈGûÿÿ‘õÿÿ“õÿÿ‡slugMapƒMapvÿÿÿ…aFile…aSlug�õÿÿˆfilePathöÿÿˆincludes‡replaceŠreplaceAll�òÿÿˆfilepathÇóÿÿƒcwdKûÿÿ†String‰filePaths:òÿÿ9òÿÿ‡forEach‰aFilePath‡…titleöÿÿŒshortSummaryÇƒöÿÿ…aLink†lengthÿÿÿêüÿÿ€öÿÿs÷ÿÿ›òÿÿ�currentNodeIdˆnewNodesµˆnewEdges�existingNodeIDs�outGoingNodeIdsyÿÿÿ�incomingNodeIdsŒlocalNodeIds†concat„item‡indexOfŠlocalNodesŠlocalEdges„edge�filteredEdgesuõÿÿ�fˆendsWith€òÿÿ‘filteredDirectoryŠextensionszòÿÿsõÿÿŠthisObjectŒŠrouterPathoÿÿÿˆfileNameöÿÿkñÿÿ‰newObject¯†aChildˆnewChildcõÿÿ…array†result�aŸ ~òÿÿoÿÿÿpÿÿÿqÿÿÿòÿÿRñÿÿrÿÿÿsÿÿÿ>ÿÿÿûÿÿ2«webpack/lib/util/registerExternalSerializer�webpack-sources/ReplaceSource«webpack/lib/util/registerExternalSerializerŸwebpack-sources/SourceMapSource€T"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.noSSR = noSSR;
exports.default = dynamic;
var _react = _interopRequireDefault(require("react"));
var _loadable = _interopRequireDefault(require("./loadable"));
function _interopRequireDefault(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
const isServerSide = "undefined" === 'undefined';
function noSSR(LoadableInitializer, loadableOptions) {
    // Removing webpack and modules means react-loadable won't try preloading
    delete loadableOptions.webpack;
    delete loadableOptions.modules;
    // This check is necessary to prevent react-loadable from initializing on the server
    if (!isServerSide) {
        return LoadableInitializer(loadableOptions);
    }
    const Loading = loadableOptions.loading;
    // This will only be rendered on the server side
    return ()=>/*#__PURE__*/ _react.default.createElement(Loading, {
            error: null,
            isLoading: true,
            pastDelay: false,
            timedOut: false
        })
    ;
}
function dynamic(dynamicOptions, options) {
    let loadableFn = _loadable.default;
    let loadableOptions = {
        // A loading component is not required, so we default it
        loading: ({ error , isLoading , pastDelay  })=>{
            if (!pastDelay) return null;
            if ("development" === 'development') {
                if (isLoading) {
                    return null;
                }
                if (error) {
                    return(/*#__PURE__*/ _react.default.createElement("p", null, error.message, /*#__PURE__*/ _react.default.createElement("br", null), error.stack));
                }
            }
            return null;
        }
    };
    // Support for direct import(), eg: dynamic(import('../hello-world'))
    // Note that this is only kept for the edge case where someone is passing in a promise as first argument
    // The react-loadable babel plugin will turn dynamic(import('../hello-world')) into dynamic(() => import('../hello-world'))
    // To make sure we don't execute the import without rendering first
    if (dynamicOptions instanceof Promise) {
        loadableOptions.loader = ()=>dynamicOptions
        ;
    // Support for having import as a function, eg: dynamic(() => import('../hello-world'))
    } else if (typeof dynamicOptions === 'function') {
        loadableOptions.loader = dynamicOptions;
    // Support for having first argument being options, eg: dynamic({loader: import('../hello-world')})
    } else if (typeof dynamicOptions === 'object') {
        loadableOptions = {
            ...loadableOptions,
            ...dynamicOptions
        };
    }
    // Support for passing options, eg: dynamic(import('../hello-world'), {loading: () => <p>Loading something</p>})
    loadableOptions = {
        ...loadableOptions,
        ...options
    };
    const suspenseOptions = loadableOptions;
    if (!process.env.__NEXT_CONCURRENT_FEATURES) {
        // Error if react root is not enabled and `suspense` option is set to true
        if (!process.env.__NEXT_REACT_ROOT && suspenseOptions.suspense) {
            // TODO: add error doc when this feature is stable
            throw new Error(`Invalid suspense option usage in next/dynamic. Read more: https://nextjs.org/docs/messages/invalid-dynamic-suspense`);
        }
    }
    if (suspenseOptions.suspense) {
        return loadableFn(suspenseOptions);
    }
    // coming from build/babel/plugins/react-loadable-plugin.js
    if (loadableOptions.loadableGenerated) {
        loadableOptions = {
            ...loadableOptions,
            ...loadableOptions.loadableGenerated
        };
        delete loadableOptions.loadableGenerated;
    }
    // support for disabling server side rendering, eg: dynamic(import('../hello-world'), {ssr: false})
    if (typeof loadableOptions.ssr === 'boolean') {
        if (!loadableOptions.ssr) {
            delete loadableOptions.ssr;
            return noSSR(loadableFn, loadableOptions);
        }
        delete loadableOptions.ssr;
    }
    return loadableFn(loadableOptions);
} //# sourceMappingURL=dynamic.js.map
œwebpack://./node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!./node_modules/next/dist/shared/lib/dynamic.jsl{"version":3,"sources":["webpack://./node_modules/next/dist/shared/lib/dynamic.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n    value: true\n});\nexports.noSSR = noSSR;\nexports.default = dynamic;\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _loadable = _interopRequireDefault(require(\"./loadable\"));\nfunction _interopRequireDefault(obj) {\n    return obj && obj.__esModule ? obj : {\n        default: obj\n    };\n}\nconst isServerSide = typeof window === 'undefined';\nfunction noSSR(LoadableInitializer, loadableOptions) {\n    // Removing webpack and modules means react-loadable won't try preloading\n    delete loadableOptions.webpack;\n    delete loadableOptions.modules;\n    // This check is necessary to prevent react-loadable from initializing on the server\n    if (!isServerSide) {\n        return LoadableInitializer(loadableOptions);\n    }\n    const Loading = loadableOptions.loading;\n    // This will only be rendered on the server side\n    return ()=>/*#__PURE__*/ _react.default.createElement(Loading, {\n            error: null,\n            isLoading: true,\n            pastDelay: false,\n            timedOut: false\n        })\n    ;\n}\nfunction dynamic(dynamicOptions, options) {\n    let loadableFn = _loadable.default;\n    let loadableOptions = {\n        // A loading component is not required, so we default it\n        loading: ({ error , isLoading , pastDelay  })=>{\n            if (!pastDelay) return null;\n            if (process.env.NODE_ENV === 'development') {\n                if (isLoading) {\n                    return null;\n                }\n                if (error) {\n                    return(/*#__PURE__*/ _react.default.createElement(\"p\", null, error.message, /*#__PURE__*/ _react.default.createElement(\"br\", null), error.stack));\n                }\n            }\n            return null;\n        }\n    };\n    // Support for direct import(), eg: dynamic(import('../hello-world'))\n    // Note that this is only kept for the edge case where someone is passing in a promise as first argument\n    // The react-loadable babel plugin will turn dynamic(import('../hello-world')) into dynamic(() => import('../hello-world'))\n    // To make sure we don't execute the import without rendering first\n    if (dynamicOptions instanceof Promise) {\n        loadableOptions.loader = ()=>dynamicOptions\n        ;\n    // Support for having import as a function, eg: dynamic(() => import('../hello-world'))\n    } else if (typeof dynamicOptions === 'function') {\n        loadableOptions.loader = dynamicOptions;\n    // Support for having first argument being options, eg: dynamic({loader: import('../hello-world')})\n    } else if (typeof dynamicOptions === 'object') {\n        loadableOptions = {\n            ...loadableOptions,\n            ...dynamicOptions\n        };\n    }\n    // Support for passing options, eg: dynamic(import('../hello-world'), {loading: () => <p>Loading something</p>})\n    loadableOptions = {\n        ...loadableOptions,\n        ...options\n    };\n    const suspenseOptions = loadableOptions;\n    if (!process.env.__NEXT_CONCURRENT_FEATURES) {\n        // Error if react root is not enabled and `suspense` option is set to true\n        if (!process.env.__NEXT_REACT_ROOT && suspenseOptions.suspense) {\n            // TODO: add error doc when this feature is stable\n            throw new Error(`Invalid suspense option usage in next/dynamic. Read more: https://nextjs.org/docs/messages/invalid-dynamic-suspense`);\n        }\n    }\n    if (suspenseOptions.suspense) {\n        return loadableFn(suspenseOptions);\n    }\n    // coming from build/babel/plugins/react-loadable-plugin.js\n    if (loadableOptions.loadableGenerated) {\n        loadableOptions = {\n            ...loadableOptions,\n            ...loadableOptions.loadableGenerated\n        };\n        delete loadableOptions.loadableGenerated;\n    }\n    // support for disabling server side rendering, eg: dynamic(import('../hello-world'), {ssr: false})\n    if (typeof loadableOptions.ssr === 'boolean') {\n        if (!loadableOptions.ssr) {\n            delete loadableOptions.ssr;\n            return noSSR(loadableFn, loadableOptions);\n        }\n        delete loadableOptions.ssr;\n    }\n    return loadableFn(loadableOptions);\n}\n\n//# sourceMappingURL=dynamic.js.map"],"names":["Object","defineProperty","exports","value","noSSR","default","dynamic","_react","_interopRequireDefault","require","_loadable","obj","__esModule","isServerSide","LoadableInitializer","loadableOptions","webpack","modules","Loading","loading","createElement","error","isLoading","pastDelay","timedOut","dynamicOptions","options","loadableFn","message","stack","Promise","loader","suspenseOptions","process","env","__NEXT_CONCURRENT_FEATURES","__NEXT_REACT_ROOT","suspense","Error","loadableGener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H,8GAAgH;IAChHV,eAAe,GAAG,CAAC;WACZA,eAAe;WACfW,OAAO;IACd,CAAC;IACD,KAAK,CAACM,eAAe,GAAGjB,eAAe;IACvC,EAAE,GAAGkB,OAAO,CAACC,GAAG,CAACC,0BAA0B,EAAE,CAAC;QAC1C,EAA0E,AAA1E,wEAA0E;QAC1E,EAAE,GAAGF,OAAO,CAACC,GAAG,CAACE,iBAAiB,IAAIJ,eAAe,CAACK,QAAQ,EAAE,CAAC;YAC7D,EAAkD,AAAlD,gDAAkD;YAClD,KAAK,CAAC,GAAG,CAACC,KAAK,EAAE,mHAAmH;QACxI,CAAC;IACL,CAAC;IACD,EAAE,EAAEN,eAAe,CAACK,QAAQ,EAAE,CAAC;QAC3B,MAAM,CAACV,UAAU,CAACK,eAAe;IACrC,CAAC;IACD,EAA2D,AAA3D,yDAA2D;IAC3D,EAAE,EAAEjB,eAAe,CAACwB,iBAAiB,EAAE,CAAC;QACpCxB,eAAe,GAAG,CAAC;eACZA,eAAe;eACfA,eAAe,CAACwB,iBAAiB;QACxC,CAAC;QACD,MAAM,CAACxB,eAAe,CAACwB,iBAAiB;IAC5C,CAAC;IACD,EAAmG,AAAnG,iGAAmG;IACnG,EAAE,EAAE,MAAM,CAACxB,eAAe,CAACyB,GAAG,KAAK,CAAS,UAAE,CAAC;QAC3C,EAAE,GAAGzB,eAAe,CAACyB,GAAG,EAAE,CAAC;YACvB,MAAM,CAACzB,eAAe,CAACyB,GAAG;YAC1B,MAAM,CAACpC,KAAK,CAACuB,UAAU,EAAEZ,eAAe;QAC5C,CAAC;QACD,MAAM,CAACA,eAAe,CAACyB,GAAG;IAC9B,CAAC;IACD,MAAM,CAACb,UAAU,CAACZ,eAAe;AACrC,CAAC,AAED,CAAmC,AAAnC,EAAmC,AAAnC,iCAAmC","file":"x"}j:NNQ]hvM§­¯µáçéôb€•»<€®Object.defineProperty(exports, "__esModule", (‚))�exports.noSSR’exports["default"]“__webpack_require__”/*! react */ "react"ş�/*! ./loadable */ "./loadable"„trueÿ… trueAÿÿÿ,
Object.defineProperty(exports, "__esModule", ({
    value: true
}));
exports.noSSR = noSSR;
exports["default"] = dynamic;
var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
var _loadable = _interopRequireDefault(__webpack_require__(/*! ./loadable */ "./loadable"));
function _interopRequireDefault(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
const isServerSide = "undefined" === 'undefined';
function noSSR(LoadableInitializer, loadableOptions) {
    // Removing webpack and modules means react-loadable won't try preloading
    delete loadableOptions.webpack;
    delete loadableOptions.modules;
    // This check is necessary to prevent react-loadable from initializing on the server
    if (!isServerSide) {
        return LoadableInitializer(loadableOptions);
    }
    const Loading = loadableOptions.loading;
    // This will only be rendered on the server side
    return ()=>/*#__PURE__*/ _react.default.createElement(Loading, {
            error: null,
            isLoading: true,
            pastDelay: false,
            timedOut: false
        })
    ;
}
function dynamic(dynamicOptions, options) {
    let loadableFn = _loadable.default;
    let loadableOptions = {
        // A loading component is not required, so we default it
        loading: ({ error , isLoading , pastDelay  })=>{
            if (!pastDelay) return null;
            if (true) {
                if (isLoading) {
                    return null;
                }
                if (error) {
                    return(/*#__PURE__*/ _react.default.createElement("p", null, error.message, /*#__PURE__*/ _react.default.createElement("br", null), error.stack));
                }
            }
            return null;
        }
    };
    // Support for direct import(), eg: dynamic(import('../hello-world'))
    // Note that this is only kept for the edge case where someone is passing in a promise as first argument
    // The react-loadable babel plugin will turn dynamic(import('../hello-world')) into dynamic(() => import('../hello-world'))
    // To make sure we don't execute the import without rendering first
    if (dynamicOptions instanceof Promise) {
        loadableOptions.loader = ()=>dynamicOptions
        ;
    // Support for having import as a function, eg: dynamic(() => import('../hello-world'))
    } else if (typeof dynamicOptions === 'function') {
        loadableOptions.loader = dynamicOptions;
    // Support for having first argument being options, eg: dynamic({loader: import('../hello-world')})
    } else if (typeof dynamicOptions === 'object') {
        loadableOptions = {
            ...loadableOptions,
            ...dynamicOptions
        };
    }
    // Support for passing options, eg: dynamic(import('../hello-world'), {loading: () => <p>Loading something</p>})
    loadableOptions = {
        ...loadableOptions,
        ...options
    };
    const suspenseOptions = loadableOptions;
    if (true) {
        // Error if react root is not enabled and `suspense` option is set to true
        if ( true && suspenseOptions.suspense) {
            // TODO: add error doc when this feature is stable
            throw new Error(`Invalid suspense option usage in next/dynamic. Read more: https://nextjs.org/docs/messages/invalid-dynamic-suspense`);
        }
    }
    if (suspenseOptions.suspense) {
        return loadableFn(suspenseOptions);
    }
    // coming from build/babel/plugins/react-loadable-plugin.js
    if (loadableOptions.loadableGenerated) {
        loadableOptions = {
            ...loadableOptions,
            ...loadableOptions.loadableGenerated
        };
        delete loadableOptions.loadableGenerated;
    }
    // support for disabling server side rendering, eg: dynamic(import('../hello-world'), {ssr: false})
    if (typeof loadableOptions.ssr === 'boolean') {
        if (!loadableOptions.ssr) {
            delete loadableOptions.ssr;
            return noSSR(loadableFn, loadableOptions);
        }
        delete loadableOptions.ssr;
    }
    return loadableFn(loadableOptions);
} //# sourceMappingURL=dynamic.js.map
BÿÿÿEÿÿÿIÿÿÿ�x‹
AAAY;AACZA,8CAA6C,CAAC;IAC1CG,KAAK,EAAE,IAAI;AACf,CAAC,EAAC;AACFD,aAAa,GAAGE,KAAK;AACrBF,kBAAe,GAAGI,OAAO;AACzB,GAAG,CAACC,MAAM,GAAGC,sBAAsB,CAACC,mBAAO,CAAC,oBAAO;AACnD,GAAG,CAACC,SAAS,GAAGF,sBAAsB,CAACC,mBAAO,CAAC,8BAAY;SAClDD,sBAAsB,CAACG,GAAG,EAAE,CAAC;IAClC,MAAM,CAACA,GAAG,IAAIA,GAAG,CAACC,UAAU,GAAGD,GAAG,GAAG,CAAC;QAClCN,OAAO,EAAEM,GAAG;IAChB,CAAC;AACL,CAAC;AACD,KAAK,CAACE,YAAY,GAAG,CAAa,eAAK,CAAW;SACzCT,KAAK,CAACU,mBAAmB,EAAEC,eAAe,EAAE,CAAC;IAClD,EAAyE;IACzE,MAAM,CAACA,eAAe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yB,GAAG;IAC9B,CAAC;IACD,MAAM,CAACb,UAAU,CAACZ,eAAe;AACrC,CAAC,CAEkC¸webpack://./node_modules/next/dist/shared/lib/dynamic.js]"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.noSSR = noSSR;
exports.default = dynamic;
var _react = _interopRequireDefault(require("react"));
var _loadable = _interopRequireDefault(require("./loadable"));
function _interopRequireDefault(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
const isServerSide = typeof window === 'undefined';
function noSSR(LoadableInitializer, loadableOptions) {
    // Removing webpack and modules means react-loadable won't try preloading
    delete loadableOptions.webpack;
    delete loadableOptions.modules;
    // This check is necessary to prevent react-loadable from initializing on the server
    if (!isServerSide) {
        return LoadableInitializer(loadableOptions);
    }
    const Loading = loadableOptions.loading;
    // This will only be rendered on the server side
    return ()=>/*#__PURE__*/ _react.default.createElement(Loading, {
            error: null,
            isLoading: true,
            pastDelay: false,
            timedOut: false
        })
    ;
}
function dynamic(dynamicOptions, options) {
    let loadableFn = _loadable.default;
    let loadableOptions = {
        // A loading component is not required, so we default it
        loading: ({ error , isLoading , pastDelay  })=>{
            if (!pastDelay) return null;
            if (process.env.NODE_ENV === 'development') {
                if (isLoading) {
                    return null;
                }
                if (error) {
                    return(/*#__PURE__*/ _react.default.createElement("p", null, error.message, /*#__PURE__*/ _react.default.createElement("br", null), error.stack));
                }
            }
            return null;
        }
    };
    // Support for direct import(), eg: dynamic(import('../hello-world'))
    // Note that this is only kept for the edge case where someone is passing in a promise as first argument
    // The react-loadable babel plugin will turn dynamic(import('../hello-world')) into dynamic(() => import('../hello-world'))
    // To make sure we don't execute the import without rendering first
    if (dynamicOptions instanceof Promise) {
        loadableOptions.loader = ()=>dynamicOptions
        ;
    // Support for having import as a function, eg: dynamic(() => import('../hello-world'))
    } else if (typeof dynamicOptions === 'function') {
        loadableOptions.loader = dynamicOptions;
    // Support for having first argument being options, eg: dynamic({loader: import('../hello-world')})
    } else if (typeof dynamicOptions === 'object') {
        loadableOptions = {
            ...loadableOptions,
            ...dynamicOptions
        };
    }
    // Support for passing options, eg: dynamic(import('../hello-world'), {loading: () => <p>Loading something</p>})
    loadableOptions = {
        ...loadableOptions,
        ...options
    };
    const suspenseOptions = loadableOptions;
    if (!process.env.__NEXT_CONCURRENT_FEATURES) {
        // Error if react root is not enabled and `suspense` option is set to true
        if (!process.env.__NEXT_REACT_ROOT && suspenseOptions.suspense) {
            // TODO: add error doc when this feature is stable
            throw new Error(`Invalid suspense option usage in next/dynamic. Read more: https://nextjs.org/docs/messages/invalid-dynamic-suspense`);
        }
    }
    if (suspenseOptions.suspense) {
        return loadableFn(suspenseOptions);
    }
    // coming from build/babel/plugins/react-loadable-plugin.js
    if (loadableOptions.loadableGenerated) {
        loadableOptions = {
            ...loadableOptions,
            ...loadableOptions.loadableGenerated
        };
        delete loadableOptions.loadableGenerated;
    }
    // support for disabling server side rendering, eg: dynamic(import('../hello-world'), {ssr: false})
    if (typeof loadableOptions.ssr === 'boolean') {
        if (!loadableOptions.ssr) {
            delete loadableOptions.ssr;
            return noSSR(loadableFn, loadableOptions);
        }
        delete loadableOptions.ssr;
    }
    return loadableFn(loadableOptions);
}

//# sourceMappingURL=dynamic.js.map`)†Object�defineProperty#÷ÿÿ…value÷ÿÿ2òÿÿ4òÿÿ÷ÿÿ÷ÿÿ�üÿÿ÷ÿÿƒobj÷ÿÿ÷ÿÿ“LoadableInitializer�loadableOptions‡webpack‡modules‡LoadingAÿÿÿ�createElement…error‰isLoading‰pastDelayˆtimedOut�dynamicOptions‡optionsŠloadableFn‡message…stack‡Promise†loader�suspenseOptions€óÿÿƒenvš__NEXT_CONCURRENT_FEATURES‘__NEXT_REACT_ROOTˆsuspense…Error‘loadableGenerated/ÿÿÿåñÿÿDÿÿÿÿÿÿóúÿÿ&module.exports = require("next/head");�external commonjs "next/head"!ñÿÿ
ÿÿÿíúÿÿ®«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource›__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Node": () => (/* binding */ Node)
/* harmony export */ });
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! path */ "path");
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fs */ "fs");
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_1__);
«webpack/lib/util/registerExternalSerializer�webpack-sources/ReplaceSource«webpack/lib/util/registerExternalSerializerŸwebpack-sources/SourceMapSource]import path from 'path';
import fs from "fs";
export const Node = {
    isFile: function(filename) {
        try {
            return fs.lstatSync(filename).isFile();
        } catch (err) {
            console.log(err);
            return false;
        }
    },
    getFullPath: function(folderPath) {
        return fs.readdirSync(folderPath).map((fn)=>path.join(folderPath, fn)
        );
    },
    getFiles: function(dir) {
        var results = [];
        var list = fs.readdirSync(dir);
        list.forEach(function(file) {
            file = dir + '/' + file;
            var stat = fs.statSync(file);
            if (stat && stat.isDirectory()) {
                /* Recurse into a subdirectory */ results = results.concat(Node.getFiles(file));
            } else {
                /* Is a file */ results.push(file);
            }
        });
        return results.filter((f)=>f.endsWith(".md")
        );
    },
    readFileSync: function(fullPath) {
        return fs.readFileSync(fullPath, "utf8");
    },
    getMarkdownFolder: function() {
        return path.join(process.cwd(), 'posts');
    }
};
ûwebpack://./node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!./lib/node.js˜{"version":3,"sources":["webpack://./lib/node.js"],"sourcesContent":["import path from 'path'\nimport fs from \"fs\"\n\n\nexport const Node = {\n    isFile:function(filename){\n        try {\n            return fs.lstatSync(filename).isFile()\n        } catch (err) {\n            console.log(err)\n            return false\n        }\n\n    },\n    getFullPath:function(folderPath){\n        return fs.readdirSync(folderPath).map(fn  => path.join(folderPath, fn))\n    },\n    getFiles: function(dir) {\n        var results = [];\n        var list = fs.readdirSync(dir);\n        list.forEach(function(file) {\n            file = dir + '/' + file;\n            var stat = fs.statSync(file);\n            if (stat && stat.isDirectory()) { \n                /* Recurse into a subdirectory */\n                results = results.concat(Node.getFiles(file));\n            } else { \n                /* Is a file */\n                results.push(file);\n            }\n        });\n        return results.filter(f => f.endsWith(\".md\"))\n    },\n    readFileSync:function(fullPath){\n        return fs.readFileSync(fullPath, \"utf8\")\n    },\n\n    getMarkdownFolder: function () {\n        return path.join(process.cwd(), 'posts')\n    }\n}"],"names":["path","fs","Node","isFile","filename","lstatSync","err","console","log","getFullPath","folderPath","readdirSync","map","fn","join","getFiles","dir","results","list","forEach","file","stat","statSync","isDirectory","concat","push","filter","f","endsWith","readFileSync","fullPath","getMarkdownFolder","process","cwd"],"mappings":"AAAA,MAAM,CAACA,IAAI,MAAM,CAAM;AACvB,MAAM,CAACC,EAAE,MAAM,CAAI;AAGnB,MAAM,CAAC,KAAK,CAACC,IAAI,GAAG,CAAC;IACjBC,MAAM,EAAC,QAAQ,CAACC,QAAQ,EAAC,CAAC;QACtB,GAAG,CAAC,CAAC;YACD,MAAM,CAACH,EAAE,CAACI,SAAS,CAACD,QAAQ,EAAED,MAAM;QACxC,CAAC,CAAC,KAAK,EAAEG,GAAG,EAAE,CAAC;YACXC,OAAO,CAACC,GAAG,CAACF,GAAG;YACf,MAAM,CAAC,KAAK;QAChB,CAAC;IAEL,CAAC;IACDG,WAAW,EAAC,QAAQ,CAACC,UAAU,EAAC,CAAC;QAC7B,MAAM,CAACT,EAAE,CAACU,WAAW,CAACD,UAAU,EAAEE,GAAG,EAACC,EAAE,GAAKb,IAAI,CAACc,IAAI,CAACJ,UAAU,EAAEG,EAAE;;IACzE,CAAC;IACDE,QAAQ,EAAE,QAAQ,CAACC,GAAG,EAAE,CAAC;QACrB,GAAG,CAACC,OAAO,GAAG,CAAC,CAAC;QAChB,GAAG,CAACC,IAAI,GAAGjB,EAAE,CAACU,WAAW,CAACK,GAAG;QAC7BE,IAAI,CAACC,OAAO,CAAC,QAAQ,CAACC,IAAI,EAAE,CAAC;YACzBA,IAAI,GAAGJ,GAAG,GAAG,CAAG,KAAGI,IAAI;YACvB,GAAG,CAACC,IAAI,GAAGpB,EAAE,CAACqB,QAAQ,CAACF,IAAI;YAC3B,EAAE,EAAEC,IAAI,IAAIA,IAAI,CAACE,WAAW,IAAI,CAAC;gBAC7B,EAAiC,AAAjC,6BAAiC,AAAjC,EAAiC,CACjCN,OAAO,GAAGA,OAAO,CAACO,MAAM,CAACtB,IAAI,CAACa,QAAQ,CAACK,IAAI;YAC/C,CAAC,MAAM,CAAC;gBACJ,EAAe,AAAf,WAAe,AAAf,EAAe,CACfH,OAAO,CAACQ,IAAI,CAACL,IAAI;YACrB,CAAC;QACL,CAAC;QACD,MAAM,CAACH,OAAO,CAACS,MAAM,EAACC,CAAC,GAAIA,CAAC,CAACC,QAAQ,CAAC,CAAK;;IAC/C,CAAC;IACDC,YAAY,EAAC,QAAQ,CAACC,QAAQ,EAAC,CAAC;QAC5B,MAAM,CAAC7B,EAAE,CAAC4B,YAAY,CAACC,QAAQ,EAAE,CAAM;IAC3C,CAAC;IAEDC,iBAAiB,EAAE,QAAQ,GAAI,CAAC;QAC5B,MAAM,CAAC/B,IAAI,CAACc,IAAI,CAACkB,OAAO,CAACC,GAAG,IAAI,CAAO;IAC3C,CAAC;AACL,CAAC","file":"x"}
d,.4M†‘?LdlÛèR\Ôâ19€€€³fs__WEBPACK_IMPORTED_MODULE_1___default().lstatSyncµfs__WEBPACK_IMPORTED_MODULE_1___default().readdirSync°path__WEBPACK_IMPORTED_MODULE_0___default().joinş²fs__WEBPACK_IMPORTED_MODULE_1___default().statSync¶fs__WEBPACK_IMPORTED_MODULE_1___default().readFileSyncıÿÿÿÖ__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Node": () => (/* binding */ Node)
/* harmony export */ });
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! path */ "path");
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fs */ "fs");
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_1__);


const Node = {
    isFile: function(filename) {
        try {
            return fs__WEBPACK_IMPORTED_MODULE_1___default().lstatSync(filename).isFile();
        } catch (err) {
            console.log(err);
            return false;
        }
    },
    getFullPath: function(folderPath) {
        return fs__WEBPACK_IMPORTED_MODULE_1___default().readdirSync(folderPath).map((fn)=>path__WEBPACK_IMPORTED_MODULE_0___default().join(folderPath, fn)
        );
    },
    getFiles: function(dir) {
        var results = [];
        var list = fs__WEBPACK_IMPORTED_MODULE_1___default().readdirSync(dir);
        list.forEach(function(file) {
            file = dir + '/' + file;
            var stat = fs__WEBPACK_IMPORTED_MODULE_1___default().statSync(file);
            if (stat && stat.isDirectory()) {
                /* Recurse into a subdirectory */ results = results.concat(Node.getFiles(file));
            } else {
                /* Is a file */ results.push(file);
            }
        });
        return results.filter((f)=>f.endsWith(".md")
        );
    },
    readFileSync: function(fullPath) {
        return fs__WEBPACK_IMPORTED_MODULE_1___default().readFileSync(fullPath, "utf8");
    },
    getMarkdownFolder: function() {
        return path__WEBPACK_IMPORTED_MODULE_0___default().join(process.cwd(), 'posts');
    }
};
ÿÿÿÿÿÿÿÿÿ�x¶;;;;;;;;AAAuB;AACJ;AAGZ,KAAK,CAACE,IAAI,GAAG,CAAC;IACjBC,MAAM,EAAC,QAAQ,CAACC,QAAQ,EAAC,CAAC;QACtB,G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OAAO,CAACC,GAAG,IAAI,CAAO;IAC3C,CAAC;AACL,CAAC—webpack://./lib/node.jsbimport path from 'path'
import fs from "fs"


export const Node = {
    isFile:function(filename){
        try {
            return fs.lstatSync(filename).isFile()
        } catch (err) {
            console.log(err)
            return false
        }

    },
    getFullPath:function(folderPath){
        return fs.readdirSync(folderPath).map(fn  => path.join(folderPath, fn))
    },
    getFiles: function(dir) {
        var results = [];
        var list = fs.readdirSync(dir);
        list.forEach(function(file) {
            file = dir + '/' + file;
            var stat = fs.statSync(file);
            if (stat && stat.isDirectory()) { 
                /* Recurse into a subdirectory */
                results = results.concat(Node.getFiles(file));
            } else { 
                /* Is a file */
                results.push(file);
            }
        });
        return results.filter(f => f.endsWith(".md"))
    },
    readFileSync:function(fullPath){
        return fs.readFileSync(fullPath, "utf8")
    },

    getMarkdownFolder: function () {
        return path.join(process.cwd(), 'posts')
    }
}`"ñÿÿDñÿÿuõÿÿ¥õÿÿˆfilenameëøÿÿƒerr‡consoleƒlog‹getFullPathŠfolderPathêøÿÿÿÿÿ‚fn©õÿÿ€õÿÿƒdir‡resultsıúÿÿ˜ñÿÿ„statğøÿÿ‹isDirectory£aÿÿÿÿÿÿ�fªkõÿÿˆfullPathõÿÿYóÿÿ’#ÿÿÿ$ÿÿÿ%ÿÿÿÄñÿÿ'ÿÿÿòşÿÿÒúÿÿu«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Transformer": () => (/* binding */ Transformer)
/* harmony export */ });
/* harmony import */ var gray_matter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! gray-matter */ "gray-matter");
/* harmony import */ var gray_matter__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(gray_matter__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var unified__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! unified */ "unified");
/* harmony import */ var unified__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(unified__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var remark_parse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! remark-parse */ "remark-parse");
/* harmony import */ var remark_parse__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(remark_parse__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var remark_wiki_link__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! remark-wiki-link */ "remark-wiki-link");
/* harmony import */ var remark_wiki_link__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(remark_wiki_link__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var remark_html__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! remark-html */ "remark-html");
/* harmony import */ var remark_html__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(remark_html__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var remark_frontmatter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! remark-frontmatter */ "remark-frontmatter");
/* harmony import */ var remark_frontmatter__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(remark_frontmatter__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var remark_external_links__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! remark-external-links */ "remark-external-links");
/* harmony import */ var remark_external_links__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(remark_external_links__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var remark_highlight_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! remark-highlight.js */ "remark-highlight.js");
/* harmony import */ var remark_highlight_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(remark_highlight_js__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _node__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./node */ "./lib/node.js");
/* harmony import */ var rehype_prism_plus__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rehype-prism-plus */ "rehype-prism-plus");
/* harmony import */ var remark_rehype__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! remark-rehype */ "remark-rehype");
/* harmony import */ var rehype_stringify__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rehype-stringify */ "rehype-stringify");
/* harmony import */ var _obsidian_image_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./obsidian-image.js */ "./lib/obsidian-image.js");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./utils */ "./lib/utils.js");
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([rehype_prism_plus__WEBPACK_IMPORTED_MODULE_9__, remark_rehype__WEBPACK_IMPORTED_MODULE_10__, rehype_stringify__WEBPACK_IMPORTED_MODULE_11__, _obsidian_image_js__WEBPACK_IMPORTED_MODULE_12__, _utils__WEBPACK_IMPORTED_MODULE_13__]);
([rehype_prism_plus__WEBPACK_IMPORTED_MODULE_9__, remark_rehype__WEBPACK_IMPORTED_MODULE_10__, rehype_stringify__WEBPACK_IMPORTED_MODULE_11__, _obsidian_image_js__WEBPACK_IMPORTED_MODULE_12__, _utils__WEBPACK_IMPORTED_MODULE_13__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
«webpack/lib/util/registerExternalSerializer�webpack-sources/ReplaceSource«webpack/lib/util/registerExternalSerializerŸwebpack-sources/SourceMapSourceÊimport matter from 'gray-matter';
import unified from "unified";
import markdown from "remark-parse";
import { wikiLinkPlugin } from "remark-wiki-link";
import html from "remark-html";
import frontmatter from "remark-frontmatter";
import externalLinks from "remark-external-links";
import highlight from "remark-highlight.js";
import { Node } from "./node";
import rehypePrism from 'rehype-prism-plus';
import remarkRehype from 'remark-rehype';
import rehypeStringify from 'rehype-stringify';
import obsidianImage from './obsidian-image.js';
import { getAllMarkdownFiles, toFilePath, toSlug } from "./utils";
export const Transformer = {
    haveFrontMatter: function(content) {
        //console.log("\t Front matter data content", content)
        if (!content) return false;
        const indexOfFirst = content.indexOf("---");
        //console.log("\t Front matter data firstIndex  ", indexOfFirst)
        //console.log("index first", indexOfFirst)
        if (indexOfFirst === -1) {
            return false;
        }
        let indexOfSecond = content.indexOf("---", indexOfFirst + 1);
        return indexOfSecond !== -1;
    },
    getFrontMatterData: function(filecontent) {
        if (Transformer.haveFrontMatter(filecontent)) {
            return matter(filecontent).data;
        }
        return {};
    },
    pageResolver: function(pageName) {
        const allFileNames = getAllMarkdownFiles();
        const result = allFileNames.find((aFile)=>{
            let parseFileNameFromPath = Transformer.parseFileNameFromPath(aFile);
            return Transformer.normalizeFileName(parseFileNameFromPath) === Transformer.normalizeFileName(pageName);
        });
        // permalink = permalink.replace("Ã§", "c").replace("Ä±", "i").replace("ÅŸ", "s")
        // console.log(`/note/${toSlug(result)}`)
        if (result === undefined || result.length === 0) {
        // console.log("Cannot resolve file path   " + pageName)
        }
        // console.log("Internal Link resolved:   [" + pageName + "] ==> [" + temp[0] +"]")
        return result !== undefined && result.length > 0 ? [
            toSlug(result)
        ] : [
            "/"
        ];
    },
    hrefTemplate: function(permalink) {
        // permalink = Transformer.normalizeFileName(permalink)
        permalink = permalink.replace("\xe7", "c").replace("Ä±", "i").replace("ÅŸ", "s");
        return `/note/${permalink}`;
    },
    getHtmlContent: function(content) {
        let htmlContent = [];
        const sanitizedContent = Transformer.preprocessThreeDashes(content);
        unified().use(markdown, {
            gfm: true
        }).use(obsidianImage).use(highlight).use(externalLinks, {
            target: "_blank",
            rel: [
                'noopener'
            ]
        })// .use(frontmatter, ['yaml', 'toml'])
        .use(wikiLinkPlugin, {
            permalinks: null,
            pageResolver: function(pageName) {
                return Transformer.pageResolver(pageName);
            },
            hrefTemplate: function(permalink) {
                return Transformer.hrefTemplate(permalink);
            },
            aliasDivider: "|"
        }).use(remarkRehype).use(rehypePrism).use(rehypeStringify).process(sanitizedContent, function(err, file) {
            htmlContent.push(String(file).replace("\n", ""));
            if (err) {
                console.log("ERRROR:" + err);
            }
        });
        htmlContent = htmlContent.join("");
        htmlContent = htmlContent.split("---");
        return [
            htmlContent
        ];
    },
    /* SANITIZE MARKDOWN FOR --- */ preprocessThreeDashes: function(content) {
        const indexOfFirst = content.indexOf("---");
        if (indexOfFirst === -1) {
            return content;
        }
        const indexOfSecond = content.indexOf("---", indexOfFirst + 1);
        content.slice(0, indexOfSecond);
        const contentPart = content.slice(indexOfSecond);
        return contentPart.split("---").join("");
    },
    /* Normalize File Names */ normalizeFileName: function(filename) {
        let processedFileName = filename.replace(".md", "");
        processedFileName = processedFileName.replace('(', '').replace(')', '');
        processedFileName = processedFileName.split(" ").join("-");
        processedFileName = processedFileName.toLowerCase();
        const conversionLetters = [
            [
                "\xe7",
                "c"
            ],
            [
                "ÅŸ",
                "s"
            ],
            [
                "Ä±",
                "i"
            ],
            [
                "\xfc",
                "u"
            ],
            [
                "\xf6",
                "o"
            ],
            [
                "ÄŸ",
                "g"
            ],
            [
                "\xc7",
                "C"
            ],
            [
                "Å�",
                "S"
            ],
            [
                "Ä°",
                "I"
            ],
            [
                "\xdc",
                "U"
            ],
            [
                "\xd6",
                "O"
            ],
            [
                "Ä�",
                "G"
            ]
        ];
        conversionLetters.forEach((letterPair)=>{
            processedFileName = processedFileName.split(letterPair[0]).join(letterPair[1]);
        //processedFileName = processedFileName.replace(letterPair[0], letterPair[1])
        });
        //console.log("filename", processedFileName)
        return processedFileName;
    },
    /* Parse file name from path then sanitize it */ parseFileNameFromPath: function(filepath) {
        if (typeof filepath === 'string' && filepath.includes("/")) {
            const parsedFileFromPath = filepath.split("/")[filepath.split("/").length - 1];
            return parsedFileFromPath.replace(".md", "");
        } else {
            console.log("Failed: CANNOT Parse" + filepath);
            return null;
        }
    },
    /* Pair provided and existing Filenames*/ getInternalLinks: function(aFilePath) {
        const fileContent = Node.readFileSync(aFilePath);
        const internalLinks = [];
        const sanitizedContent = Transformer.preprocessThreeDashes(fileContent);
        unified().use(markdown, {
            gfm: true
        }).use(wikiLinkPlugin, {
            pageResolver: function(pageName) {
                // let name = [Transformer.parseFileNameFromPath(pageName)];
                let canonicalSlug;
                if (pageName.includes('#')) {
                    // console.log(pageName)
                    const tempSlug = pageName.split('#')[0];
                    if (tempSlug.length === 0) {
                        // Meaning it in form of #Heading1 --> slug will be this file slug
                        canonicalSlug = toSlug(aFilePath);
                    } else {
                        canonicalSlug = Transformer.pageResolver(tempSlug)[0].split('#')[0];
                    }
                } else {
                    canonicalSlug = Transformer.pageResolver(pageName)[0].split('#')[0];
                }
                const backLink = {
                    title: Transformer.parseFileNameFromPath(toFilePath(canonicalSlug)),
                    slug: canonicalSlug,
                    shortSummary: canonicalSlug
                };
                if (canonicalSlug != null && internalLinks.indexOf(canonicalSlug) < 0) {
                    internalLinks.push(backLink);
                }
                return [
                    canonicalSlug
                ];
            },
            hrefTemplate: function(permalink) {
                return Transformer.hrefTemplate(permalink);
            },
            aliasDivider: "|"
        }).use(html).processSync(sanitizedContent);
        // console.log("Internal Links of:   "  + aFilePath)
        // internalLinks.forEach(aLink => {
        //     console.log(aLink.title + " --> " + aLink.slug)
        // })
        // console.log("===============Internal Links")
        return internalLinks;
    }
};
‚webpack://./node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!./lib/transformer.js„>{"version":3,"sources":["webpack://./lib/transformer.js"],"sourcesContent":["import matter from 'gray-matter'\nimport unified from \"unified\";\nimport markdown from \"remark-parse\";\nimport {wikiLinkPlugin} from \"remark-wiki-link\";\nimport html from \"remark-html\";\nimport frontmatter from \"remark-frontmatter\";\nimport externalLinks from \"remark-external-links\";\nimport highlight from \"remark-highlight.js\";\nimport {Node} from \"./node\";\nimport rehypePrism from 'rehype-prism-plus'\nimport remarkRehype from 'remark-rehype'\nimport rehypeStringify from 'rehype-stringify'\nimport obsidianImage from './obsidian-image.js'\nimport {getAllMarkdownFiles, toFilePath, toSlug} from \"./utils\";\n\nexport const Transformer = {\n    haveFrontMatter: function (content) {\n        //console.log(\"\\t Front matter data content\", content)\n        if (!content) return false\n        const indexOfFirst = content.indexOf(\"---\");\n        //console.log(\"\\t Front matter data firstIndex  \", indexOfFirst)\n        //console.log(\"index first\", indexOfFirst)\n        if (indexOfFirst === -1) {\n            return false\n        }\n        let indexOfSecond = content.indexOf(\"---\", (indexOfFirst + 1));\n        return indexOfSecond !== -1;\n\n    },\n    getFrontMatterData: function (filecontent) {\n        if (Transformer.haveFrontMatter(filecontent)) {\n            return matter(filecontent).data\n        }\n        return {}\n    },\n\n\n    pageResolver: function (pageName) {\n        const allFileNames = getAllMarkdownFiles()\n        const result = allFileNames.find(aFile => {\n            let parseFileNameFromPath = Transformer.parseFileNameFromPath(aFile);\n            return Transformer.normalizeFileName(parseFileNameFromPath) === Transformer.normalizeFileName(pageName)\n            }\n        )\n\n        // permalink = permalink.replace(\"Ã§\", \"c\").replace(\"Ä±\", \"i\").replace(\"ÅŸ\", \"s\")\n        // console.log(`/note/${toSlug(result)}`)\n        if (result === undefined || result.length === 0) {\n            // console.log(\"Cannot resolve file path   \" + pageName)\n        }\n\n        // console.log(\"Internal Link resolved:   [\" + pageName + \"] ==> [\" + temp[0] +\"]\")\n        return (result !== undefined && result.length > 0) ? [toSlug(result)] : [\"/\"]\n    },\n    hrefTemplate: function (permalink) {\n        // permalink = Transformer.normalizeFileName(permalink)\n        permalink = permalink.replace(\"Ã§\", \"c\").replace(\"Ä±\", \"i\").replace(\"ÅŸ\", \"s\")\n        return `/note/${permalink}`;\n    }, getHtmlContent: function (content) {\n        let htmlContent = []\n        const sanitizedContent = Transformer.preprocessThreeDashes(content)\n\n        unified()\n            .use(markdown, {gfm: true})\n            .use(obsidianImage)\n            .use(highlight)        \n            .use(externalLinks, {target: \"_blank\", rel: ['noopener']})\n            // .use(frontmatter, ['yaml', 'toml'])\n            .use(wikiLinkPlugin, {\n                permalinks: null,\n                pageResolver: function (pageName) {\n                    return Transformer.pageResolver(pageName)\n                },\n                hrefTemplate: function (permalink) {\n                    return  Transformer.hrefTemplate(permalink);\n                },\n\n                aliasDivider: \"|\"\n            })\n            .use(remarkRehype)\n            .use(rehypePrism)\n            .use(rehypeStringify)\n            .process(sanitizedContent,\n                function (err, file) {\n                    htmlContent.push(String(file).replace(\"\\n\", \"\"))\n                    if (err) {\n                        console.log(\"ERRROR:\" + err)\n                    }\n                }\n            )\n        htmlContent = htmlContent.join(\"\")\n        htmlContent = htmlContent.split(\"---\")\n        return [htmlContent]\n    },\n\n    /* SANITIZE MARKDOWN FOR --- */\n    preprocessThreeDashes: function (content) {\n        const indexOfFirst = content.indexOf(\"---\");\n        if (indexOfFirst === -1) {\n            return content\n        }\n        const indexOfSecond = content.indexOf(\"---\", (indexOfFirst + 1));\n        content.slice(0, indexOfSecond);\n        const contentPart = content.slice(indexOfSecond);\n        return contentPart.split(\"---\").join(\"\")\n    },\n\n    /* Normalize File Names */\n    normalizeFileName: function (filename) {\n        let processedFileName = filename.replace(\".md\", \"\");\n        processedFileName = processedFileName.replace('(', '').replace(')', '')\n        processedFileName = processedFileName.split(\" \").join(\"-\")\n        processedFileName = processedFileName.toLowerCase()\n        const conversionLetters = [\n            [\"Ã§\", \"c\"], [\"ÅŸ\", \"s\"], [\"Ä±\", \"i\"], [\"Ã¼\", \"u\"], [\"Ã¶\", \"o\"], [\"ÄŸ\", \"g\"],\n            [\"Ã‡\", \"C\"], [\"Å�\", \"S\"], [\"Ä°\", \"I\"], [\"Ãœ\", \"U\"], [\"Ã–\", \"O\"], [\"Ä�\", \"G\"]\n\n        ];\n        conversionLetters.forEach(letterPair => {\n                processedFileName = processedFileName.split(letterPair[0]).join(letterPair[1])\n                //processedFileName = processedFileName.replace(letterPair[0], letterPair[1])\n            }\n        )\n        //console.log(\"filename\", processedFileName)\n        return processedFileName\n    },\n    /* Parse file name from path then sanitize it */\n    parseFileNameFromPath: function (filepath) {\n        if (typeof filepath ==='string' && filepath.includes(\"/\")) {\n            const parsedFileFromPath = filepath.split(\"/\")[filepath.split(\"/\").length - 1]\n            return parsedFileFromPath.replace(\".md\", \"\")\n        } else {\n            console.log(\"Failed: CANNOT Parse\" + filepath)\n            return null\n        }\n    },\n    /* Pair provided and existing Filenames*/\n    getInternalLinks: function (aFilePath) {\n        const fileContent = Node.readFileSync(aFilePath);\n        const internalLinks = []\n        const sanitizedContent = Transformer.preprocessThreeDashes(fileContent)\n        unified()\n            .use(markdown, {gfm: true})\n            .use(wikiLinkPlugin, {\n                pageResolver: function (pageName) {\n\n                    // let name = [Transformer.parseFileNameFromPath(pageName)];\n\n                    let canonicalSlug;\n                    if (pageName.includes('#')) {\n                        // console.log(pageName)\n                        const tempSlug = pageName.split('#')[0]\n                        if (tempSlug.length === 0) {\n                            // Meaning it in form of #Heading1 --> slug will be this file slug\n                            canonicalSlug = toSlug(aFilePath)\n                        } else {\n                            canonicalSlug =Transformer.pageResolver(tempSlug)[0].split('#')[0]\n                        }\n                    } else {\n                        canonicalSlug = Transformer.pageResolver(pageName)[0].split('#')[0]\n                    }\n\n\n                    const backLink = {\n                        title: Transformer.parseFileNameFromPath(toFilePath(canonicalSlug)),\n                        slug: canonicalSlug,\n                        shortSummary: canonicalSlug\n                    }\n\n                    if (canonicalSlug != null && internalLinks.indexOf(canonicalSlug) < 0) {\n                        internalLinks.push(backLink);\n                    }\n\n                    return [canonicalSlug]\n                }\n                ,\n                hrefTemplate: function (permalink) {\n                    return Transformer.hrefTemplate(permalink)\n                },\n\n                aliasDivider: \"|\"\n            })\n            .use(html)\n            .processSync(sanitizedContent)\n\n        // console.log(\"Internal Links of:   \"  + aFilePath)\n        // internalLinks.forEach(aLink => {\n        //     console.log(aLink.title + \" --> \" + aLink.slug)\n        // })\n        // console.log(\"===============Internal Links\")\n        return internalLinks;\n    }\n}\n"],"names":["matter","unified","markdown","wikiLinkPlugin","html","frontmatter","externalLinks","highlight","Node","rehypePrism","remarkRehype","rehypeStringify","obsidianImage","getAllMarkdownFiles","toFilePath","toSlug","Transformer","haveFrontMatter","content","indexOfFirst","indexOf","indexOfSecond","getFrontMatterData","filecontent","data","pageResolver","pageName","allFileNames","result","find","aFile","parseFileNameFromPath","normalizeFileName","undefined","length","hrefTemplate","permalink","replace","getHtmlContent","htmlContent","sanitizedContent","preprocessThreeDashes","use","gfm","target","rel","permalinks","aliasDivider","process","err","file","push","String","console","log","join","split","slice","contentPart","filename","processedFileName","toLowerCase","conversionLetters","forEach","letterPair","filepath","includes","parsedFileFromPath","getInternalLinks","aFilePath","fileContent","readFileSync","internalLinks","canonicalSlug","tempSlug","backLink","title","slug","shortSummary","processSync"],"mappings":"AAAA,MAAM,CAACA,MAAM,MAAM,CAAa;AAChC,MAAM,CAACC,OAAO,MAAM,CAAS;AAC7B,MAAM,CAACC,QAAQ,MAAM,CAAc;AACnC,MAAM,GAAEC,cAAc,QAAO,CAAkB;AAC/C,MAAM,CAACC,IAAI,MAAM,CAAa;AAC9B,MAAM,CAACC,WAAW,MAAM,CAAoB;AAC5C,MAAM,CAACC,aAAa,MAAM,CAAuB;AACjD,MAAM,CAACC,SAAS,MAAM,CAAqB;AAC3C,MAAM,GAAEC,IAAI,QAAO,CAAQ;AAC3B,MAAM,CAACC,WAAW,MAAM,CAAmB;AAC3C,MAAM,CAACC,YAAY,MAAM,CAAe;AACxC,MAAM,CAACC,eAAe,MAAM,CAAkB;AAC9C,MAAM,CAACC,aAAa,MAAM,CAAqB;AAC/C,MAAM,GAAEC,mBAAmB,EAAEC,UAAU,EAAEC,MAAM,QAAO,CAAS;AAE/D,MAAM,CAAC,KAAK,CAACC,WAAW,GAAG,CAAC;IACxBC,eAAe,EAAE,QAAQ,CAAEC,OA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€‡•ÿ˜�¦­×äÔÙ[d…ˆ€€€€€€€€€€€€€€€²gray_matter__WEBPACK_IMPORTED_MODULE_0___default()¼(0,_utils__WEBPACK_IMPORTED_MODULE_13__.getAllMarkdownFiles)¯(0,_utils__WEBPACK_IMPORTED_MODULE_13__.toSlug)®unified__WEBPACK_IMPORTED_MODULE_1___default()µ(remark_parse__WEBPACK_IMPORTED_MODULE_2___default())»_obsidian_image_js__WEBPACK_IMPORTED_MODULE_12__["default"]¼(remark_highlight_js__WEBPACK_IMPORTED_MODULE_7___default())¾(remark_external_links__WEBPACK_IMPORTED_MODULE_6___default())¼remark_wiki_link__WEBPACK_IMPORTED_MODULE_3__.wikiLinkPlugin¶remark_rehype__WEBPACK_IMPORTED_MODULE_10__["default"]¹rehype_prism_plus__WEBPACK_IMPORTED_MODULE_9__["default"]¹rehype_stringify__WEBPACK_IMPORTED_MODULE_11__["default"]´_node__WEBPACK_IMPORTED_MODULE_8__.Node.readFileSyncö÷ûõ³(0,_utils__WEBPACK_IMPORTED_MODULE_13__.toFilePath)´(remark_html__WEBPACK_IMPORTED_MODULE_4___default())L
__webpack_async_result__();
} catch(e) { __webpack_async_result__(e); } });õşÿÿ
1__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Transformer": () => (/* binding */ Transformer)
/* harmony export */ });
/* harmony import */ var gray_matter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! gray-matter */ "gray-matter");
/* harmony import */ var gray_matter__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(gray_matter__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var unified__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! unified */ "unified");
/* harmony import */ var unified__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(unified__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var remark_parse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! remark-parse */ "remark-parse");
/* harmony import */ var remark_parse__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(remark_parse__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var remark_wiki_link__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! remark-wiki-link */ "remark-wiki-link");
/* harmony import */ var remark_wiki_link__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(remark_wiki_link__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var remark_html__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! remark-html */ "remark-html");
/* harmony import */ var remark_html__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(remark_html__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var remark_frontmatter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! remark-frontmatter */ "remark-frontmatter");
/* harmony import */ var remark_frontmatter__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(remark_frontmatter__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var remark_external_links__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! remark-external-links */ "remark-external-links");
/* harmony import */ var remark_external_links__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(remark_external_links__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var remark_highlight_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! remark-highlight.js */ "remark-highlight.js");
/* harmony import */ var remark_highlight_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(remark_highlight_js__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _node__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./node */ "./lib/node.js");
/* harmony import */ var rehype_prism_plus__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rehype-prism-plus */ "rehype-prism-plus");
/* harmony import */ var remark_rehype__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! remark-rehype */ "remark-rehype");
/* harmony import */ var rehype_stringify__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rehype-stringify */ "rehype-stringify");
/* harmony import */ var _obsidian_image_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./obsidian-image.js */ "./lib/obsidian-image.js");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./utils */ "./lib/utils.js");
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([rehype_prism_plus__WEBPACK_IMPORTED_MODULE_9__, remark_rehype__WEBPACK_IMPORTED_MODULE_10__, rehype_stringify__WEBPACK_IMPORTED_MODULE_11__, _obsidian_image_js__WEBPACK_IMPORTED_MODULE_12__, _utils__WEBPACK_IMPORTED_MODULE_13__]);
([rehype_prism_plus__WEBPACK_IMPORTED_MODULE_9__, remark_rehype__WEBPACK_IMPORTED_MODULE_10__, rehype_stringify__WEBPACK_IMPORTED_MODULE_11__, _obsidian_image_js__WEBPACK_IMPORTED_MODULE_12__, _utils__WEBPACK_IMPORTED_MODULE_13__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);














const Transformer = {
    haveFrontMatter: function(content) {
        //console.log("\t Front matter data content", content)
        if (!content) return false;
        const indexOfFirst = content.indexOf("---");
        //console.log("\t Front matter data firstIndex  ", indexOfFirst)
        //console.log("index first", indexOfFirst)
        if (indexOfFirst === -1) {
            return false;
        }
        let indexOfSecond = content.indexOf("---", indexOfFirst + 1);
        return indexOfSecond !== -1;
    },
    getFrontMatterData: function(filecontent) {
        if (Transformer.haveFrontMatter(filecontent)) {
            return gray_matter__WEBPACK_IMPORTED_MODULE_0___default()(filecontent).data;
        }
        return {};
    },
    pageResolver: function(pageName) {
        const allFileNames = (0,_utils__WEBPACK_IMPORTED_MODULE_13__.getAllMarkdownFiles)();
        const result = allFileNames.find((aFile)=>{
            let parseFileNameFromPath = Transformer.parseFileNameFromPath(aFile);
            return Transformer.normalizeFileName(parseFileNameFromPath) === Transformer.normalizeFileName(pageName);
        });
        // permalink = permalink.replace("Ã§", "c").replace("Ä±", "i").replace("ÅŸ", "s")
        // console.log(`/note/${toSlug(result)}`)
        if (result === undefined || result.length === 0) {
        // console.log("Cannot resolve file path   " + pageName)
        }
        // console.log("Internal Link resolved:   [" + pageName + "] ==> [" + temp[0] +"]")
        return result !== undefined && result.length > 0 ? [
            (0,_utils__WEBPACK_IMPORTED_MODULE_13__.toSlug)(result)
        ] : [
            "/"
        ];
    },
    hrefTemplate: function(permalink) {
        // permalink = Transformer.normalizeFileName(permalink)
        permalink = permalink.replace("\xe7", "c").replace("Ä±", "i").replace("ÅŸ", "s");
        return `/note/${permalink}`;
    },
    getHtmlContent: function(content) {
        let htmlContent = [];
        const sanitizedContent = Transformer.preprocessThreeDashes(content);
        unified__WEBPACK_IMPORTED_MODULE_1___default()().use((remark_parse__WEBPACK_IMPORTED_MODULE_2___default()), {
            gfm: true
        }).use(_obsidian_image_js__WEBPACK_IMPORTED_MODULE_12__["default"]).use((remark_highlight_js__WEBPACK_IMPORTED_MODULE_7___default())).use((remark_external_links__WEBPACK_IMPORTED_MODULE_6___default()), {
            target: "_blank",
            rel: [
                'noopener'
            ]
        })// .use(frontmatter, ['yaml', 'toml'])
        .use(remark_wiki_link__WEBPACK_IMPORTED_MODULE_3__.wikiLinkPlugin, {
            permalinks: null,
            pageResolver: function(pageName) {
                return Transformer.pageResolver(pageName);
            },
            hrefTemplate: function(permalink) {
                return Transformer.hrefTemplate(permalink);
            },
            aliasDivider: "|"
        }).use(remark_rehype__WEBPACK_IMPORTED_MODULE_10__["default"]).use(rehype_prism_plus__WEBPACK_IMPORTED_MODULE_9__["default"]).use(rehype_stringify__WEBPACK_IMPORTED_MODULE_11__["default"]).process(sanitizedContent, function(err, file) {
            htmlContent.push(String(file).replace("\n", ""));
            if (err) {
                console.log("ERRROR:" + err);
            }
        });
        htmlContent = htmlContent.join("");
        htmlContent = htmlContent.split("---");
        return [
            htmlContent
        ];
    },
    /* SANITIZE MARKDOWN FOR --- */ preprocessThreeDashes: function(content) {
        const indexOfFirst = content.indexOf("---");
        if (indexOfFirst === -1) {
            return content;
        }
        const indexOfSecond = content.indexOf("---", indexOfFirst + 1);
        content.slice(0, indexOfSecond);
        const contentPart = content.slice(indexOfSecond);
        return contentPart.split("---").join("");
    },
    /* Normalize File Names */ normalizeFileName: function(filename) {
        let processedFileName = filename.replace(".md", "");
        processedFileName = processedFileName.replace('(', '').replace(')', '');
        processedFileName = processedFileName.split(" ").join("-");
        processedFileName = processedFileName.toLowerCase();
        const conversionLetters = [
            [
                "\xe7",
                "c"
            ],
            [
                "ÅŸ",
                "s"
            ],
            [
                "Ä±",
                "i"
            ],
            [
                "\xfc",
                "u"
            ],
            [
                "\xf6",
                "o"
            ],
            [
                "ÄŸ",
                "g"
            ],
            [
                "\xc7",
                "C"
            ],
            [
                "Å�",
                "S"
            ],
            [
                "Ä°",
                "I"
            ],
            [
                "\xdc",
                "U"
            ],
            [
                "\xd6",
                "O"
            ],
            [
                "Ä�",
                "G"
            ]
        ];
        conversionLetters.forEach((letterPair)=>{
            processedFileName = processedFileName.split(letterPair[0]).join(letterPair[1]);
        //processedFileName = processedFileName.replace(letterPair[0], letterPair[1])
        });
        //console.log("filename", processedFileName)
        return processedFileName;
    },
    /* Parse file name from path then sanitize it */ parseFileNameFromPath: function(filepath) {
        if (typeof filepath === 'string' && filepath.includes("/")) {
            const parsedFileFromPath = filepath.split("/")[filepath.split("/").length - 1];
            return parsedFileFromPath.replace(".md", "");
        } else {
            console.log("Failed: CANNOT Parse" + filepath);
            return null;
        }
    },
    /* Pair provided and existing Filenames*/ getInternalLinks: function(aFilePath) {
        const fileContent = _node__WEBPACK_IMPORTED_MODULE_8__.Node.readFileSync(aFilePath);
        const internalLinks = [];
        const sanitizedContent = Transformer.preprocessThreeDashes(fileContent);
        unified__WEBPACK_IMPORTED_MODULE_1___default()().use((remark_parse__WEBPACK_IMPORTED_MODULE_2___default()), {
            gfm: true
        }).use(remark_wiki_link__WEBPACK_IMPORTED_MODULE_3__.wikiLinkPlugin, {
            pageResolver: function(pageName) {
                // let name = [Transformer.parseFileNameFromPath(pageName)];
                let canonicalSlug;
                if (pageName.includes('#')) {
                    // console.log(pageName)
                    const tempSlug = pageName.split('#')[0];
                    if (tempSlug.length === 0) {
                        // Meaning it in form of #Heading1 --> slug will be this file slug
                        canonicalSlug = (0,_utils__WEBPACK_IMPORTED_MODULE_13__.toSlug)(aFilePath);
                    } else {
                        canonicalSlug = Transformer.pageResolver(tempSlug)[0].split('#')[0];
                    }
                } else {
                    canonicalSlug = Transformer.pageResolver(pageName)[0].split('#')[0];
                }
                const backLink = {
                    title: Transformer.parseFileNameFromPath((0,_utils__WEBPACK_IMPORTED_MODULE_13__.toFilePath)(canonicalSlug)),
                    slug: canonicalSlug,
                    shortSummary: canonicalSlug
                };
                if (canonicalSlug != null && internalLinks.indexOf(canonicalSlug) < 0) {
                    internalLinks.push(backLink);
                }
                return [
                    canonicalSlug
                ];
            },
            hrefTemplate: function(permalink) {
                return Transformer.hrefTemplate(permalink);
            },
            aliasDivider: "|"
        }).use((remark_html__WEBPACK_IMPORTED_MODULE_4___default())).processSync(sanitizedContent);
        // console.log("Internal Links of:   "  + aFilePath)
        // internalLinks.forEach(aLink => {
        //     console.log(aLink.title + " --> " + aLink.slug)
        // })
        // console.log("===============Internal Links")
        return internalLinks;
    }
};

__webpack_async_result__();
} catch(e) { __webpack_async_result__(e); } });öşÿÿùşÿÿışÿÿ�xÕ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAgC;AACH;AACM;AACY;AACjB;AACc;AACK;AACN;AAChB;AACgB;AACH;AACM;AACC;AACgB;AAExD,KAAK,CAACg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W,CAACS,YAAY,CAACC,QAAQ,EAAE,CAAC,EAAE8B,KAAK,CAAC,CAAG,IAAE,CAAC;gBACtE,CAAC;gBAGD,KAAK,CAACmB,QAAQ,GAAG,CAAC;oBACdC,KAAK,EAAE5D,WAAW,CAACe,qBAAqB,CAACjB,mDAAU,CAAC2D,aAAa;oBACjEI,IAAI,EAAEJ,aAAa;oBACnBK,YAAY,EAAEL,aAAa;gBAC/B,CAAC;gBAED,EAAE,EAAEA,aAAa,IAAI,IAAI,IAAID,aAAa,CAACpD,OAAO,CAACqD,aAAa,IAAI,CAAC,EAAE,CAAC;oBACpED,aAAa,CAACrB,IAAI,CAACwB,QAAQ;gBAC/B,CAAC;gBAED,MAAM,CAAC,CAACF;oBAAAA,aAAa;gBAAA,CAAC;YAC1B,CAAC;YAEDtC,YAAY,EAAE,QAAQ,CAAEC,SAAS,EAAE,CAAC;gBAChC,MAAM,CAACpB,WAAW,CAACmB,YAAY,CAACC,SAAS;YAC7C,CAAC;YAEDW,YAAY,EAAE,CAAG;QACrB,CAAC,EACAL,GAAG,CAACtC,oDAAI,EACR2E,WAAW,CAACvC,gBAAgB;QAEjC,EAAoD;QACpD,EAAmC;QACnC,EAAsD;QACtD,EAAK;QACL,EAA+C;QAC/C,MAAM,CAACgC,aAAa;IACxB,CAAC;AACL,CAAC�webpack://./lib/transformer.jsimport matter from 'gray-matter'
import unified from "unified";
import markdown from "remark-parse";
import {wikiLinkPlugin} from "remark-wiki-link";
import html from "remark-html";
import frontmatter from "remark-frontmatter";
import externalLinks from "remark-external-links";
import highlight from "remark-highlight.js";
import {Node} from "./node";
import rehypePrism from 'rehype-prism-plus'
import remarkRehype from 'remark-rehype'
import rehypeStringify from 'rehype-stringify'
import obsidianImage from './obsidian-image.js'
import {getAllMarkdownFiles, toFilePath, toSlug} from "./utils";

export const Transformer = {
    haveFrontMatter: function (content) {
        //console.log("\t Front matter data content", content)
        if (!content) return false
        const indexOfFirst = content.indexOf("---");
        //console.log("\t Front matter data firstIndex  ", indexOfFirst)
        //console.log("index first", indexOfFirst)
        if (indexOfFirst === -1) {
            return false
        }
        let indexOfSecond = content.indexOf("---", (indexOfFirst + 1));
        return indexOfSecond !== -1;

    },
    getFrontMatterData: function (filecontent) {
        if (Transformer.haveFrontMatter(filecontent)) {
            return matter(filecontent).data
        }
        return {}
    },


    pageResolver: function (pageName) {
        const allFileNames = getAllMarkdownFiles()
        const result = allFileNames.find(aFile => {
            let parseFileNameFromPath = Transformer.parseFileNameFromPath(aFile);
            return Transformer.normalizeFileName(parseFileNameFromPath) === Transformer.normalizeFileName(pageName)
            }
        )

        // permalink = permalink.replace("Ã§", "c").replace("Ä±", "i").replace("ÅŸ", "s")
        // console.log(`/note/${toSlug(result)}`)
        if (result === undefined || result.length === 0) {
            // console.log("Cannot resolve file path   " + pageName)
        }

        // console.log("Internal Link resolved:   [" + pageName + "] ==> [" + temp[0] +"]")
        return (result !== undefined && result.length > 0) ? [toSlug(result)] : ["/"]
    },
    hrefTemplate: function (permalink) {
        // permalink = Transformer.normalizeFileName(permalink)
        permalink = permalink.replace("Ã§", "c").replace("Ä±", "i").replace("ÅŸ", "s")
        return `/note/${permalink}`;
    }, getHtmlContent: function (content) {
        let htmlContent = []
        const sanitizedContent = Transformer.preprocessThreeDashes(content)

        unified()
            .use(markdown, {gfm: true})
            .use(obsidianImage)
            .use(highlight)        
            .use(externalLinks, {target: "_blank", rel: ['noopener']})
            // .use(frontmatter, ['yaml', 'toml'])
            .use(wikiLinkPlugin, {
                permalinks: null,
                pageResolver: function (pageName) {
                    return Transformer.pageResolver(pageName)
                },
                hrefTemplate: function (permalink) {
                    return  Transformer.hrefTemplate(permalink);
                },

                aliasDivider: "|"
            })
            .use(remarkRehype)
            .use(rehypePrism)
            .use(rehypeStringify)
            .process(sanitizedContent,
                function (err, file) {
                    htmlContent.push(String(file).replace("\n", ""))
                    if (err) {
                        console.log("ERRROR:" + err)
                    }
                }
            )
        htmlContent = htmlContent.join("")
        htmlContent = htmlContent.split("---")
        return [htmlContent]
    },

    /* SANITIZE MARKDOWN FOR --- */
    preprocessThreeDashes: function (content) {
        const indexOfFirst = content.indexOf("---");
        if (indexOfFirst === -1) {
            return content
        }
        const indexOfSecond = content.indexOf("---", (indexOfFirst + 1));
        content.slice(0, indexOfSecond);
        const contentPart = content.slice(indexOfSecond);
        return contentPart.split("---").join("")
    },

    /* Normalize File Names */
    normalizeFileName: function (filename) {
        let processedFileName = filename.replace(".md", "");
        processedFileName = processedFileName.replace('(', '').replace(')', '')
        processedFileName = processedFileName.split(" ").join("-")
        processedFileName = processedFileName.toLowerCase()
        const conversionLetters = [
            ["Ã§", "c"], ["ÅŸ", "s"], ["Ä±", "i"], ["Ã¼", "u"], ["Ã¶", "o"], ["ÄŸ", "g"],
            ["Ã‡", "C"], ["Å�", "S"], ["Ä°", "I"], ["Ãœ", "U"], ["Ã–", "O"], ["Ä�", "G"]

        ];
        conversionLetters.forEach(letterPair => {
                processedFileName = processedFileName.split(letterPair[0]).join(letterPair[1])
                //processedFileName = processedFileName.replace(letterPair[0], letterPair[1])
            }
        )
        //console.log("filename", processedFileName)
        return processedFileName
    },
    /* Parse file name from path then sanitize it */
    parseFileNameFromPath: function (filepath) {
        if (typeof filepath ==='string' && filepath.includes("/")) {
            const parsedFileFromPath = filepath.split("/")[filepath.split("/").length - 1]
            return parsedFileFromPath.replace(".md", "")
        } else {
            console.log("Failed: CANNOT Parse" + filepath)
            return null
        }
    },
    /* Pair provided and existing Filenames*/
    getInternalLinks: function (aFilePath) {
        const fileContent = Node.readFileSync(aFilePath);
        const internalLinks = []
        const sanitizedContent = Transformer.preprocessThreeDashes(fileContent)
        unified()
            .use(markdown, {gfm: true})
            .use(wikiLinkPlugin, {
                pageResolver: function (pageName) {

                    // let name = [Transformer.parseFileNameFromPath(pageName)];

                    let canonicalSlug;
                    if (pageName.includes('#')) {
                        // console.log(pageName)
                        const tempSlug = pageName.split('#')[0]
                        if (tempSlug.length === 0) {
                            // Meaning it in form of #Heading1 --> slug will be this file slug
                            canonicalSlug = toSlug(aFilePath)
                        } else {
                            canonicalSlug =Transformer.pageResolver(tempSlug)[0].split('#')[0]
                        }
                    } else {
                        canonicalSlug = Transformer.pageResolver(pageName)[0].split('#')[0]
                    }


                    const backLink = {
                        title: Transformer.parseFileNameFromPath(toFilePath(canonicalSlug)),
                        slug: canonicalSlug,
                        shortSummary: canonicalSlug
                    }

                    if (canonicalSlug != null && internalLinks.indexOf(canonicalSlug) < 0) {
                        internalLinks.push(backLink);
                    }

                    return [canonicalSlug]
                }
                ,
                hrefTemplate: function (permalink) {
                    return Transformer.hrefTemplate(permalink)
                },

                aliasDivider: "|"
            })
            .use(html)
            .processSync(sanitizedContent)

        // console.log("Internal Links of:   "  + aFilePath)
        // internalLinks.forEach(aLink => {
        //     console.log(aLink.title + " --> " + aLink.slug)
        // })
        // console.log("===============Internal Links")
        return internalLinks;
    }
}
`P,ùÿÿ@ñÿÿdõÿÿGùÿÿhùÿÿÇúÿÿDùÿÿ@ùÿÿZõÿÿPùÿÿLùÿÿTùÿÿ<ùÿÿ
õÿÿõÿÿõÿÿxõÿÿ�haveFrontMatter÷ÿÿŒindexOfFirst“�indexOfSecondvõÿÿ‹filecontent½úÿÿŒpageResolverˆpageNameŒallFileNames�ÿÿÿuÿÿÿ˜õÿÿ·õÿÿÏñÿÿ„ŒhrefTemplate‰permalinkwÿÿÿtõÿÿpÿÿÿ�sanitizedContent•preprocessThreeDasheshÿÿÿûÿÿÿÿÿƒrelŠpermalinksŒaliasDivider<óÿÿØòğÿÿCÿÿÿvÿÿÿÙÚ‡õÿÿgÿÿÿ…slice‹contentPartÕ‘processedFileName‹toLowerCase‘conversionLetterssÿÿÿŠletterPairnÿÿÿkÿÿÿ’parsedFileFromPath�õÿÿrÿÿÿbÿÿÿFõÿÿøşÿÿ�canonicalSlugˆtempSlugˆbackLinkpÿÿÿøşÿÿqÿÿÿ‹processSyncûşÿÿüşÿÿışÿÿœñÿÿŞğÿÿşşÿÿÿşÿÿÊşÿÿªúÿÿ(module.exports = require("next/router");Ÿexternal commonjs "next/router"·Åşÿÿ¥úÿÿ*module.exports = require("@mui/material");¡external commonjs "@mui/material"²Àşÿÿ úÿÿ=module.exports = require("next/dist/shared/lib/loadable.js");´external commonjs "next/dist/shared/lib/loadable.js"­»şÿÿ›úÿÿ;module.exports = require("@mui/icons-material/ExpandMore");²external commonjs "@mui/icons-material/ExpandMore"¨¶şÿÿ–úÿÿ=module.exports = require("@mui/icons-material/ChevronRight");´external commonjs "@mui/icons-material/ChevronRight"£±şÿÿ‘úÿÿJ$«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourceæ__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ attacher)
/* harmony export */ });
/* harmony import */ var unist_util_visit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! unist-util-visit */ "unist-util-visit");
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([unist_util_visit__WEBPACK_IMPORTED_MODULE_0__]);
unist_util_visit__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
«webpack/lib/util/registerExternalSerializer�webpack-sources/ReplaceSource«webpack/lib/util/registerExternalSerializerŸwebpack-sources/SourceMapSource‘
import { visit } from "unist-util-visit";
const regex = /\!\[\[(([a-z\-_0-9\\/\:]+\s*)+\.(jpg|jpeg|png|gif|svg|webp))]]/gi;
const regex2 = /\!\[\[(([a-z\-_0-9\\/\:]+\s*)+\.(jpg|jpeg|png|gif|svg|webp))]]/gi; //TODO why can't I reuse regex literal???
function convertTextNode(node) {
    const searchText = node.value;
    /*
    This regex MATCH following type of image link
      ![[youtube.png]]    ==> Image with no folder path, no space in between
      ![[a .png]]         ==> with space
      ![[tuancao/a.png]]  ==> file path WITHOUT space
      ![[tuancao/a .png]] ==> file path WITH space

    Image with extension: jpg, jpeg, gif, svg, webp, png
      ![[/tuancao/a.jpg]]
      ![[/tuancao/a.webp]]
      ![[/tuancao/a.png]]
      ![[/tuancao/a.jpeg]]
      ...

      ---
    Will NOT match following case

      [[picture.jpg]] ==> Link without "!" at the begining won't match
      ![[abc]] ==> without the extension
      ![[/tuancao/a.md]] ==> Unsupported format
      ![[/tuancao/a.mp4]]==> Unsupported format
    */ const matches = searchText.matchAll(regex);
    let startIndex = 0;
    let endIndex = searchText.length;
    let children = [];
    for (const match of matches){
        endIndex = match.index;
        // Constructing text node from un-matched string
        const textNode = {
            // change type child node, so that visit() function won't recursively visit this node with "text" type
            type: "text-temp",
            value: searchText.substring(startIndex, endIndex)
        };
        const imageNode = {
            type: "image",
            //TODO: Use some kind of option to pass in default images path
            url: encodeURI(`/images/${match[1]}`),
            alt: match[1]
        };
        children.push(imageNode);
        let matchEndIndex = match.index + match[0].length;
        startIndex = matchEndIndex;
    }
    if (startIndex < searchText.length) {
        const textNode = {
            type: "text-temp",
            value: searchText.substring(startIndex, searchText.length)
        };
        children.push(textNode);
    }
    return {
        type: "paragraph",
        children: children
    };
}
export default function attacher(options) {
    return function transformer(tree, vfile) {
        visit(tree, "text", (node)=>{
            if (regex2.test(node.value)) {
                const newNode = convertTextNode(node);
                node.type = "paragraph";
                node.children = newNode.children;
            }
        });
        // Change back "text-temp" node ==> "text" to clean up
        visit(tree, "text-temp", (node)=>{
            node.type = "text";
        });
        return tree;
    };
};
…webpack://./node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!./lib/obsidian-image.jsL{"version":3,"sources":["webpack://./lib/obsidian-image.js"],"sourcesContent":["import {visit} from \"unist-util-visit\";\n\nconst regex = /\\!\\[\\[(([a-z\\-_0-9\\\\/\\:]+\\s*)+\\.(jpg|jpeg|png|gif|svg|webp))]]/gi;\nconst regex2 = /\\!\\[\\[(([a-z\\-_0-9\\\\/\\:]+\\s*)+\\.(jpg|jpeg|png|gif|svg|webp))]]/gi; //TODO why can't I reuse regex literal???\n\nfunction convertTextNode(node) {\n    const searchText = node.value;\n\n    /*\n    This regex MATCH following type of image link\n      ![[youtube.png]]    ==> Image with no folder path, no space in between\n      ![[a .png]]         ==> with space\n      ![[tuancao/a.png]]  ==> file path WITHOUT space\n      ![[tuancao/a .png]] ==> file path WITH space\n\n    Image with extension: jpg, jpeg, gif, svg, webp, png\n      ![[/tuancao/a.jpg]]\n      ![[/tuancao/a.webp]]\n      ![[/tuancao/a.png]]\n      ![[/tuancao/a.jpeg]]\n      ...\n\n      ---\n    Will NOT match following case\n\n      [[picture.jpg]] ==> Link without \"!\" at the begining won't match\n      ![[abc]] ==> without the extension\n      ![[/tuancao/a.md]] ==> Unsupported format\n      ![[/tuancao/a.mp4]]==> Unsupported format\n    */\n    const matches = searchText.matchAll(\n        regex\n    );\n\n    let startIndex = 0;\n    let endIndex = searchText.length;\n\n    let children = [];\n    for (const match of matches) {\n        endIndex = match.index;\n\n        // Constructing text node from un-matched string\n        const textNode = {\n            // change type child node, so that visit() function won't recursively visit this node with \"text\" type\n            type: \"text-temp\",\n            value: searchText.substring(startIndex, endIndex),\n        };\n\n        const imageNode = {\n            type: \"image\",\n            //TODO: Use some kind of option to pass in default images path\n            url: encodeURI(`/images/${match[1]}`), //encode white space from file name\n            alt: match[1],\n        };\n\n        children.push(imageNode);\n\n        let matchEndIndex = match.index + match[0].length;\n        startIndex = matchEndIndex;\n    }\n\n    if (startIndex < searchText.length) {\n        const textNode = {\n            type: \"text-temp\",\n            value: searchText.substring(startIndex, searchText.length),\n        };\n        children.push(textNode);\n    }\n\n    return {\n        type: \"paragraph\",\n        children: children,\n    };\n}\n\nexport default function attacher(options) {\n    return function transformer(tree, vfile) {\n        visit(tree, \"text\", (node) => {\n            if (regex2.test(node.value)) {\n                const newNode = convertTextNode(node);\n                node.type = \"paragraph\";\n                node.children = newNode.children;\n            }\n        });\n\n        // Change back \"text-temp\" node ==> \"text\" to clean up\n        visit(tree, \"text-temp\", (node) => {\n            node.type = \"text\";\n        });\n\n        return tree;\n    };\n}\n"],"names":["visit","regex","regex2","convertTextNode","node","searchText","value","matches","matchAll","startIndex","endIndex","length","children","match","index","textNode","type","substring","imageNode","url","encodeURI","alt","push","matchEndIndex","attacher","options","transformer","tree","vfile","test","newNode"],"mappings":"AAAA,MAAM,GAAEA,KAAK,QAAO,CAAkB;AAEtC,KAAK,CAACC,KAAK;AACX,KAAK,CAACC,MAAM,sEAAuE,CAAyC,AAAzC,EAAyC,AAAzC,uCAAyC;SAEnHC,eAAe,CAACC,IAAI,EAAE,CAAC;IAC5B,KAAK,CAACC,UAAU,GAAGD,IAAI,CAACE,KAAK;IAE7B,EAqBE,AArBF;;;;;;;;;;;;;;;;;;;;;IAqBE,AArBF,EAqBE,CACF,KAAK,CAACC,OAAO,GAAGF,UAAU,CAACG,QAAQ,CAC/BP,KAAK;IAGT,GAAG,CAACQ,UAAU,GAAG,CAAC;IAClB,GAAG,CAACC,QAAQ,GAAGL,UAAU,CAACM,MAAM;IAEhC,GAAG,CAACC,QAAQ,GAAG,CAAC,CAAC;IACjB,GAAG,EAAE,KAAK,CAACC,KAAK,IAAIN,OAAO,CAAE,CAAC;QAC1BG,QAAQ,GAAGG,KAAK,CAACC,KAAK;QAEtB,EAAgD,AAAhD,8CAAgD;QAChD,KAAK,CAACC,QAAQ,GAAG,CAAC;YACd,EAAsG,AAAtG,oGAAsG;YACtGC,IAAI,EAAE,CAAW;YACjBV,KAAK,EAAED,UAAU,CAACY,SAAS,CAACR,UAAU,EAAEC,QAAQ;QACpD,CAAC;QAED,KAAK,CAACQ,SAAS,GAAG,CAAC;YACfF,IAAI,EAAE,CAAO;YACb,EAA8D,AAA9D,4DAA8D;YAC9DG,GAAG,EAAEC,SAAS,EAAE,QAAQ,EAAEP,KAAK,CAAC,CAAC;YACjCQ,GAAG,EAAER,KAAK,C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util_visit__WEBPACK_IMPORTED_MODULE_0__.visit)ÿL
__webpack_async_result__();
} catch(e) { __webpack_async_result__(e); } });´şÿÿï
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ attacher)
/* harmony export */ });
/* harmony import */ var unist_util_visit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! unist-util-visit */ "unist-util-visit");
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([unist_util_visit__WEBPACK_IMPORTED_MODULE_0__]);
unist_util_visit__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];

const regex = /\!\[\[(([a-z\-_0-9\\/\:]+\s*)+\.(jpg|jpeg|png|gif|svg|webp))]]/gi;
const regex2 = /\!\[\[(([a-z\-_0-9\\/\:]+\s*)+\.(jpg|jpeg|png|gif|svg|webp))]]/gi; //TODO why can't I reuse regex literal???
function convertTextNode(node) {
    const searchText = node.value;
    /*
    This regex MATCH following type of image link
      ![[youtube.png]]    ==> Image with no folder path, no space in between
      ![[a .png]]         ==> with space
      ![[tuancao/a.png]]  ==> file path WITHOUT space
      ![[tuancao/a .png]] ==> file path WITH space

    Image with extension: jpg, jpeg, gif, svg, webp, png
      ![[/tuancao/a.jpg]]
      ![[/tuancao/a.webp]]
      ![[/tuancao/a.png]]
      ![[/tuancao/a.jpeg]]
      ...

      ---
    Will NOT match following case

      [[picture.jpg]] ==> Link without "!" at the begining won't match
      ![[abc]] ==> without the extension
      ![[/tuancao/a.md]] ==> Unsupported format
      ![[/tuancao/a.mp4]]==> Unsupported format
    */ const matches = searchText.matchAll(regex);
    let startIndex = 0;
    let endIndex = searchText.length;
    let children = [];
    for (const match of matches){
        endIndex = match.index;
        // Constructing text node from un-matched string
        const textNode = {
            // change type child node, so that visit() function won't recursively visit this node with "text" type
            type: "text-temp",
            value: searchText.substring(startIndex, endIndex)
        };
        const imageNode = {
            type: "image",
            //TODO: Use some kind of option to pass in default images path
            url: encodeURI(`/images/${match[1]}`),
            alt: match[1]
        };
        children.push(imageNode);
        let matchEndIndex = match.index + match[0].length;
        startIndex = matchEndIndex;
    }
    if (startIndex < searchText.length) {
        const textNode = {
            type: "text-temp",
            value: searchText.substring(startIndex, searchText.length)
        };
        children.push(textNode);
    }
    return {
        type: "paragraph",
        children: children
    };
}
function attacher(options) {
    return function transformer(tree, vfile) {
        (0,unist_util_visit__WEBPACK_IMPORTED_MODULE_0__.visit)(tree, "text", (node)=>{
            if (regex2.test(node.value)) {
                const newNode = convertTextNode(node);
                node.type = "paragraph";
                node.children = newNode.children;
            }
        });
        // Change back "text-temp" node ==> "text" to clean up
        (0,unist_util_visit__WEBPACK_IMPORTED_MODULE_0__.visit)(tree, "text-temp", (node)=>{
            node.type = "text";
        });
        return tree;
    };
};

__webpack_async_result__();
} catch(e) { __webpack_async_result__(e); } });µşÿÿ¸şÿÿ¼şÿÿ�xÄ;;;;;;;;AAAsC;AAEtC,KAAK,CAACC,KAAK;AACX,KAAK,CAACC,MAAM,sEAAuE,CAAyC;SAEnHC,eAAe,CAACC,IAAI,EAAE,CAAC;IAC5B,KAAK,CAACC,UAAU,GAAGD,IAAI,CAACE,KAAK;IAE7B,EAqBE;;;;;;;;;;;;;;;;;;;;;IAAA,GACF,KAAK,CAACC,OAAO,GAAGF,UAAU,CAACG,QAAQ,CAC/BP,KAAK;IAGT,GAAG,CAACQ,UAAU,GAAG,CAAC;IAClB,GAAG,CAACC,QAAQ,GAAGL,UAAU,CAACM,MAAM;IAEhC,GAAG,CAACC,QAAQ,GAAG,CAAC,CAAC;IACjB,GAAG,EAAE,KAAK,CAACC,KAAK,IAAIN,OAAO,CAAE,CAAC;QAC1BG,QAAQ,GAAGG,KAAK,CAACC,KAAK;QAEtB,EAAgD;QAChD,KAAK,CAACC,QAAQ,GAAG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AQ,GAAGkB,OAAO,CAAClB,QAAQ;YACpC,CAAC;QACL,CAAC;QAED,EAAsD;QACtDZ,uDAAK,CAAC2B,IAAI,EAAE,CAAW,aAAGvB,IAAI,GAAK,CAAC;YAChCA,IAAI,CAACY,IAAI,GAAG,CAAM;QACtB,CAAC;QAED,MAAM,CAACW,IAAI;IACf,CAAC;AACL,CAAC¡webpack://./lib/obsidian-image.jsÛ
import {visit} from "unist-util-visit";

const regex = /\!\[\[(([a-z\-_0-9\\/\:]+\s*)+\.(jpg|jpeg|png|gif|svg|webp))]]/gi;
const regex2 = /\!\[\[(([a-z\-_0-9\\/\:]+\s*)+\.(jpg|jpeg|png|gif|svg|webp))]]/gi; //TODO why can't I reuse regex literal???

function convertTextNode(node) {
    const searchText = node.value;

    /*
    This regex MATCH following type of image link
      ![[youtube.png]]    ==> Image with no folder path, no space in between
      ![[a .png]]         ==> with space
      ![[tuancao/a.png]]  ==> file path WITHOUT space
      ![[tuancao/a .png]] ==> file path WITH space

    Image with extension: jpg, jpeg, gif, svg, webp, png
      ![[/tuancao/a.jpg]]
      ![[/tuancao/a.webp]]
      ![[/tuancao/a.png]]
      ![[/tuancao/a.jpeg]]
      ...

      ---
    Will NOT match following case

      [[picture.jpg]] ==> Link without "!" at the begining won't match
      ![[abc]] ==> without the extension
      ![[/tuancao/a.md]] ==> Unsupported format
      ![[/tuancao/a.mp4]]==> Unsupported format
    */
    const matches = searchText.matchAll(
        regex
    );

    let startIndex = 0;
    let endIndex = searchText.length;

    let children = [];
    for (const match of matches) {
        endIndex = match.index;

        // Constructing text node from un-matched string
        const textNode = {
            // change type child node, so that visit() function won't recursively visit this node with "text" type
            type: "text-temp",
            value: searchText.substring(startIndex, endIndex),
        };

        const imageNode = {
            type: "image",
            //TODO: Use some kind of option to pass in default images path
            url: encodeURI(`/images/${match[1]}`), //encode white space from file name
            alt: match[1],
        };

        children.push(imageNode);

        let matchEndIndex = match.index + match[0].length;
        startIndex = matchEndIndex;
    }

    if (startIndex < searchText.length) {
        const textNode = {
            type: "text-temp",
            value: searchText.substring(startIndex, searchText.length),
        };
        children.push(textNode);
    }

    return {
        type: "paragraph",
        children: children,
    };
}

export default function attacher(options) {
    return function transformer(tree, vfile) {
        visit(tree, "text", (node) => {
            if (regex2.test(node.value)) {
                const newNode = convertTextNode(node);
                node.type = "paragraph";
                node.children = newNode.children;
            }
        });

        // Change back "text-temp" node ==> "text" to clean up
        visit(tree, "text-temp", (node) => {
            node.type = "text";
        });

        return tree;
    };
}
`WıÿÿGıÿÿHıÿÿFıÿÿ±óÿÿŠsearchTexttÿÿÿ‡matchesˆmatchAllŠstartIndexˆendIndexEÿÿÿäşÿÿ…match…indexˆtextNode¤õÿÿ‰substring‰imageNode£õÿÿ‰encodeURIƒaltÿÿÿ�matchEndIndex<ıÿÿuÿÿÿ‹transformerµöÿÿÖöÿÿğöÿÿ‡newNodeÄşÿÿÆşÿÿeñÿÿ§ğÿÿÇşÿÿÈşÿÿ“şÿÿsúÿÿ1module.exports = import("mdast-util-to-string");;¦external module "mdast-util-to-string"€�şÿÿnúÿÿ!module.exports = require("path");˜external commonjs "path"{ÿÿÿ‰şÿÿiúÿÿ$module.exports = require("unified");›external commonjs "unified"vÿÿÿ„şÿÿdúÿÿ)module.exports = require("remark-parse"); external commonjs "remark-parse"qÿÿÿşÿÿ_úÿÿ+module.exports = require("directory-tree");¢external commonjs "directory-tree"lÿÿÿzşÿÿZúÿÿ5module.exports = require("@mui/material/AlertTitle");¬external commonjs "@mui/material/AlertTitle"gÿÿÿuşÿÿUúÿÿ1module.exports = require("@mui/material/styles");¨external commonjs "@mui/material/styles"bÿÿÿpşÿÿPúÿÿ0module.exports = require("@mui/material/Alert");§external commonjs "@mui/material/Alert"]ÿÿÿkşÿÿKúÿÿmodule.exports = require("fs");›external node-commonjs "fs"XÿÿÿfşÿÿFúÿÿ.module.exports = require("@mui/lab/TreeView");¥external commonjs "@mui/lab/TreeView"SÿÿÿaşÿÿAúÿÿ.module.exports = require("@mui/lab/TreeItem");¥external commonjs "@mui/lab/TreeItem"Nÿÿÿ\şÿÿ<úÿÿ*module.exports = import("remark-rehype");;Ÿexternal module "remark-rehype"IÿÿÿWşÿÿ7úÿÿ-module.exports = import("rehype-stringify");;¢external module "rehype-stringify"DÿÿÿRşÿÿ2úÿÿ(module.exports = require("gray-matter");Ÿexternal commonjs "gray-matter"?ÿÿÿMşÿÿ-úÿÿ2module.exports = require("remark-external-links");©external commonjs "remark-external-links":ÿÿÿHşÿÿ(úÿÿ/module.exports = require("remark-frontmatter");¦external commonjs "remark-frontmatter"5ÿÿÿCşÿÿ#úÿÿ(module.exports = require("remark-html");Ÿexternal commonjs "remark-html"0ÿÿÿ>şÿÿúÿÿ.module.exports = import("rehype-prism-plus");;£external module "rehype-prism-plus"+ÿÿÿ9şÿÿúÿÿ-module.exports = require("remark-wiki-link");¤external commonjs "remark-wiki-link"&ÿÿÿ4şÿÿúÿÿ0module.exports = require("remark-highlight.js");§external commonjs "remark-highlight.js"!ÿÿÿ/şÿÿúÿÿ-module.exports = import("unist-util-visit");;¢external module "unist-util-visit"ÿÿÿ(şÿÿ)şÿÿ‡runtimeœ	var webpackThen = typeof Symbol === "function" ? Symbol("webpack then") : "__webpack_then__";
var webpackExports = typeof Symbol === "function" ? Symbol("webpack exports") : "__webpack_exports__";
var webpackError = typeof Symbol === "function" ? Symbol("webpack error") : "__webpack_error__";
var completeQueue = (queue) => {
	if(queue) {
		queue.forEach((fn) => (fn.r--));
		queue.forEach((fn) => (fn.r-- ? fn.r++ : fn()));
	}
}
var completeFunction = (fn) => (!--fn.r && fn());
var queueFunction = (queue, fn) => (queue ? queue.push(fn) : completeFunction(fn));
var wrapDeps = (deps) => (deps.map((dep) => {
	if(dep !== null && typeof dep === "object") {
		if(dep[webpackThen]) return dep;
		if(dep.then) {
			var queue = [];
			dep.then((r) => {
				obj[webpackExports] = r;
				completeQueue(queue);
				queue = 0;
			}, (e) => {
				obj[webpackError] = e;
				completeQueue(queue);
				queue = 0;
			});
			var obj = {};
			obj[webpackThen] = (fn, reject) => (queueFunction(queue, fn), dep['catch'](reject));
			return obj;
		}
	}
	var ret = {};
	ret[webpackThen] = (fn) => (completeFunction(fn));
	ret[webpackExports] = dep;
	return ret;
}));
__webpack_require__.a = (module, body, hasAwait) => {
	var queue = hasAwait && [];
	var exports = module.exports;
	var currentDeps;
	var outerResolve;
	var reject;
	var isEvaluating = true;
	var nested = false;
	var whenAll = (deps, onResolve, onReject) => {
		if (nested) return;
		nested = true;
		onResolve.r += deps.length;
		deps.map((dep, i) => (dep[webpackThen](onResolve, onReject)));
		nested = false;
	};
	var promise = new Promise((resolve, rej) => {
		reject = rej;
		outerResolve = () => (resolve(exports), completeQueue(queue), queue = 0);
	});
	promise[webpackExports] = exports;
	promise[webpackThen] = (fn, rejectFn) => {
		if (isEvaluating) { return completeFunction(fn); }
		if (currentDeps) whenAll(currentDeps, fn, rejectFn);
		queueFunction(queue, fn);
		promise['catch'](rejectFn);
	};
	module.exports = promise;
	body((deps) => {
		currentDeps = wrapDeps(deps);
		var fn;
		var getResult = () => (currentDeps.map((d) => {
			if(d[webpackError]) throw d[webpackError];
			return d[webpackExports];
		}))
		var promise = new Promise((resolve, reject) => {
			fn = () => (resolve(getResult));
			fn.r = 0;
			whenAll(currentDeps, fn, reject);
		});
		return fn.r ? promise : getResult();
	}, (err) => (err && reject(promise[webpackError] = err), outerResolve()));
	isEvaluating = false;
};œwebpack/runtime/async module-}«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€`R«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource,/*
 * ATTENTION: An "eval-source-map" devtool has been used.
 * This devtool is neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
 * or disable the default devtool with "devtool: false".
 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
 */
�(() => {
var exports = {};
exports.id = "pages/index";
exports.ids = ["pages/index"];
exports.modules = {

/***/ "./components/FolderTree.js":
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSourceÃZ«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourcew/*!**********************************!*\
  !*** ./components/FolderTree.js ***!
  \**********************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSourceì,«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource_/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
Ò+eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ FolderTree)\n/* harmony export */ });\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ \"react/jsx-dev-runtime\");\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _mui_lab_TreeView__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mui/lab/TreeView */ \"@mui/lab/TreeView\");\n/* harmony import */ var _mui_lab_TreeView__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_lab_TreeView__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _mui_icons_material_ExpandMore__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mui/icons-material/ExpandMore */ \"@mui/icons-material/ExpandMore\");\n/* harmony import */ var _mui_icons_material_ExpandMore__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_ExpandMore__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _mui_icons_material_ChevronRight__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mui/icons-material/ChevronRight */ \"@mui/icons-material/ChevronRight\");\n/* harmony import */ var _mui_icons_material_ChevronRight__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_ChevronRight__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _mui_lab_TreeItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mui/lab/TreeItem */ \"@mui/lab/TreeItem\");\n/* harmony import */ var _mui_lab_TreeItem__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_mui_lab_TreeItem__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! next/router */ \"next/router\");\n/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(next_router__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _mui_material_styles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mui/material/styles */ \"@mui/material/styles\");\n/* harmony import */ var _mui_material_styles__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_mui_material_styles__WEBPACK_IMPORTED_MODULE_7__);\n\n\n\n\n\n\n\n\nconst TCTreeItem = (0,_mui_material_styles__WEBPACK_IMPORTED_MODULE_7__.styled)((_mui_lab_TreeItem__WEBPACK_IMPORTED_MODULE_5___default()))(({ theme  })=>({\n        '& .MuiTreeItem-content': {\n            '& .MuiTreeItem-label': {\n                fontSize: '1rem',\n                paddingLeft: '6px',\n                fontFamily: '-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif,',\n                lineHeight: 2\n            }\n        }\n    })\n);\nfunction FolderTree(props) {\n    const renderTree = (nodes)=>/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(TCTreeItem, {\n            nodeId: nodes.id,\n            label: nodes.name,\n            children: Array.isArray(nodes.children) ? nodes.children.map((node)=>renderTree(node)\n            ) : null\n        }, nodes.id, false, {\n            fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/FolderTree.js\",\n            lineNumber: 23,\n            columnNumber: 9\n        }, this)\n    ;\n    const router = (0,next_router__WEBPACK_IMPORTED_MODULE_6__.useRouter)();\n    // const childrenNodeIds = props.tree.children.map(aNode => {return aNode.id})\n    const expandedNodes = [\n        props.tree.id\n    ];\n    return(/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)((_mui_lab_TreeView__WEBPACK_IMPORTED_MODULE_2___default()), {\n        \"aria-label\": \"rich object\",\n        defaultCollapseIcon: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)((_mui_icons_material_ExpandMore__WEBPACK_IMPORTED_MODULE_3___default()), {}, void 0, false, void 0, void 0),\n        defaultExpanded: expandedNodes,\n        defaultExpandIcon: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)((_mui_icons_material_ChevronRight__WEBPACK_IMPORTED_MODULE_4___default()), {}, void 0, false, void 0, void 0),\n        onNodeSelect: (event, nodIds)=>{\n            const currentNode = props.flattenNodes.find((aNode)=>{\n                return aNode.id === nodIds;\n            });\n            // console.log(event)\n            // console.log(currentNode)\n            if (currentNode != null && currentNode.routePath != null) {\n                router.push(currentNode.routePath);\n            // router.reload()\n            }\n        },\n        sx: {\n            flexGrow: 1,\n            maxWidth: 400,\n            overflowY: 'auto'\n        },\n        children: renderTree(props.tree)\n    }, void 0, false, {\n        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/FolderTree.js\",\n        lineNumber: 34,\n        columnNumber: 9\n    }, this));\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9jb21wb25lbnRzL0ZvbGRlclRyZWUuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQThCO0FBQ1U7QUFDbUI7QUFDSTtBQUN2QjtBQUNIO0FBQ007QUFFM0MsS0FBSyxDQUFDTyxVQUFVLEdBQUdELDREQUFNLENBQUNGLDBEQUFRLEdBQUcsQ0FBQ0ksQ0FBQUEsS0FBSyxHQUFDLElBQU0sQ0FBQztRQUMvQyxDQUF3Qix5QkFBRSxDQUFDO1lBQ3ZCLENBQXNCLHVCQUFFLENBQUM7Z0JBQ3JCQyxRQUFRLEVBQUUsQ0FBTTtnQkFDaEJDLFdBQVcsRUFBRSxDQUFLO2dCQUNsQkMsVUFBVSxFQUFFLENBQXNGO2dCQUNsR0MsVUFBVSxFQUFFLENBQUc7WUFDbkIsQ0FBQztRQUNMLENBQUM7SUFDTCxDQUFDOztBQUdjLFFBQVEsQ0FBQ0MsVUFBVSxDQUFDQyxLQUFLLEVBQUUsQ0FBQztJQUN2QyxLQUFLLENBQUNDLFVBQVUsSUFBSUMsS0FBSywrRUFDcEJULFVBQVU7WUFBZ0JVLE1BQU0sRUFBRUQsS0FBSyxDQUFDRSxFQUFFO1lBQUVDLEtBQUssRUFBRUgsS0FBSyxDQUFDSSxJQUFJO3NCQUN6REMsS0FBSyxDQUFDQyxPQUFPLENBQUNOLEtBQUssQ0FBQ08sUUFBUSxJQUN2QlAsS0FBSyxDQUFDTyxRQUFRLENBQUNDLEdBQUcsRUFBRUMsSUFBSSxHQUFL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BvcnQgZGVmYXVsdCBmdW5jdGlvbiBGb2xkZXJUcmVlKHByb3BzKSB7XG4gICAgY29uc3QgcmVuZGVyVHJlZSA9IChub2RlcykgPT4gKFxuICAgICAgICA8VENUcmVlSXRlbSBrZXk9e25vZGVzLmlkfSBub2RlSWQ9e25vZGVzLmlkfSBsYWJlbD17bm9kZXMubmFtZX0+XG4gICAgICAgICAgICB7QXJyYXkuaXNBcnJheShub2Rlcy5jaGlsZHJlbilcbiAgICAgICAgICAgICAgICA/IG5vZGVzLmNoaWxkcmVuLm1hcCgobm9kZSkgPT4gcmVuZGVyVHJlZShub2RlKSlcbiAgICAgICAgICAgICAgICA6IG51bGx9XG4gICAgICAgIDwvVENUcmVlSXRlbT5cbiAgICApO1xuXG4gICAgY29uc3Qgcm91dGVyID0gdXNlUm91dGVyKClcbiAgICAvLyBjb25zdCBjaGlsZHJlbk5vZGVJZHMgPSBwcm9wcy50cmVlLmNoaWxkcmVuLm1hcChhTm9kZSA9PiB7cmV0dXJuIGFOb2RlLmlkfSlcbiAgICBjb25zdCBleHBhbmRlZE5vZGVzID0gW3Byb3BzLnRyZWUuaWRdXG4gICAgcmV0dXJuIChcbiAgICAgICAgPFRyZWVWaWV3XG4gICAgICAgICAgICBhcmlhLWxhYmVsPVwicmljaCBvYmplY3RcIlxuICAgICAgICAgICAgZGVmYXVsdENvbGxhcHNlSWNvbj17PEV4cGFuZE1vcmVJY29uLz59XG4gICAgICAgICAgICBkZWZhdWx0RXhwYW5kZWQ9e2V4cGFuZGVkTm9kZXN9XG4gICAgICAgICAgICBkZWZhdWx0RXhwYW5kSWNvbj17PENoZXZyb25SaWdodEljb24vPn1cbiAgICAgICAgICAgIG9uTm9kZVNlbGVjdD17KGV2ZW50LCBub2RJZHMpID0+IHtcbiAgICAgICAgICAgICAgICBjb25zdCBjdXJyZW50Tm9kZSA9IHByb3BzLmZsYXR0ZW5Ob2Rlcy5maW5kKGFOb2RlID0+IHtcbiAgICAgICAgICAgICAgICAgICAgc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JkZWZhdWx0RXhwYW5kZWQiLCJkZWZhdWx0RXhwYW5kSWNvbiIsIm9uTm9kZVNlbGVjdCIsImV2ZW50Iiwibm9kSWRzIiwiY3VycmVudE5vZGUiLCJmbGF0dGVuTm9kZXMiLCJmaW5kIiwiYU5vZGUiLCJyb3V0ZVBhdGgiLCJwdXNoIiwic3giLCJmbGV4R3JvdyIsIm1heFdpZHRoIiwib3ZlcmZsb3dZIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./components/FolderTree.js\n");


/***/ })€†buffer†source„size„maps„hash;,/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ FolderTree)\n/* harmony export */ });\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ \"react/jsx-dev-runtime\");\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _mui_lab_TreeView__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mui/lab/TreeView */ \"@mui/lab/TreeView\");\n/* harmony import */ var _mui_lab_TreeView__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_lab_TreeView__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _mui_icons_material_ExpandMore__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mui/icons-material/ExpandMore */ \"@mui/icons-material/ExpandMore\");\n/* harmony import */ var _mui_icons_material_ExpandMore__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_ExpandMore__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _mui_icons_material_ChevronRight__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mui/icons-material/ChevronRight */ \"@mui/icons-material/ChevronRight\");\n/* harmony import */ var _mui_icons_material_ChevronRight__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_ChevronRight__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _mui_lab_TreeItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mui/lab/TreeItem */ \"@mui/lab/TreeItem\");\n/* harmony import */ var _mui_lab_TreeItem__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_mui_lab_TreeItem__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! next/router */ \"next/router\");\n/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(next_router__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _mui_material_styles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mui/material/styles */ \"@mui/material/styles\");\n/* harmony import */ var _mui_material_styles__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_mui_material_styles__WEBPACK_IMPORTED_MODULE_7__);\n\n\n\n\n\n\n\n\nconst TCTreeItem = (0,_mui_material_styles__WEBPACK_IMPORTED_MODULE_7__.styled)((_mui_lab_TreeItem__WEBPACK_IMPORTED_MODULE_5___default()))(({ theme  })=>({\n        '& .MuiTreeItem-content': {\n            '& .MuiTreeItem-label': {\n                fontSize: '1rem',\n                paddingLeft: '6px',\n                fontFamily: '-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif,',\n                lineHeight: 2\n            }\n        }\n    })\n);\nfunction FolderTree(props) {\n    const renderTree = (nodes)=>/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(TCTreeItem, {\n            nodeId: nodes.id,\n            label: nodes.name,\n            children: Array.isArray(nodes.children) ? nodes.children.map((node)=>renderTree(node)\n            ) : null\n        }, nodes.id, false, {\n            fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/FolderTree.js\",\n            lineNumber: 23,\n            columnNumber: 9\n        }, this)\n    ;\n    const router = (0,next_router__WEBPACK_IMPORTED_MODULE_6__.useRouter)();\n    // const childrenNodeIds = props.tree.children.map(aNode => {return aNode.id})\n    const expandedNodes = [\n        props.tree.id\n    ];\n    return(/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)((_mui_lab_TreeView__WEBPACK_IMPORTED_MODULE_2___default()), {\n        \"aria-label\": \"rich object\",\n        defaultCollapseIcon: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)((_mui_icons_material_ExpandMore__WEBPACK_IMPORTED_MODULE_3___default()), {}, void 0, false, void 0, void 0),\n        defaultExpanded: expandedNodes,\n        defaultExpandIcon: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)((_mui_icons_material_ChevronRight__WEBPACK_IMPORTED_MODULE_4___default()), {}, void 0, false, void 0, void 0),\n        onNodeSelect: (event, nodIds)=>{\n            const currentNode = props.flattenNodes.find((aNode)=>{\n                return aNode.id === nodIds;\n            });\n            // console.log(event)\n            // console.log(currentNode)\n            if (currentNode != null && currentNode.routePath != null) {\n                router.push(currentNode.routePath);\n            // router.reload()\n            }\n        },\n        sx: {\n            flexGrow: 1,\n            maxWidth: 400,\n            overflowY: 'auto'\n        },\n        children: renderTree(props.tree)\n    }, void 0, false, {\n        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/FolderTree.js\",\n        lineNumber: 34,\n        columnNumber: 9\n    }, this));\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9jb21wb25lbnRzL0ZvbGRlclRyZWUuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQThCO0FBQ1U7QUFDbUI7QUFDSTtBQUN2QjtBQUNIO0FBQ007QUFFM0MsS0FBSyxDQUFDTyxVQUFVLEdBQUdELDREQUFNLENBQUNGLDBEQUFRLEdBQUcsQ0FBQ0ksQ0FBQUEsS0FBSyxHQUFDLElBQU0sQ0FBQztRQUMvQyxDQUF3Qix5QkFBRSxDQUFDO1lBQ3ZCLENBQXNCLHVCQUFFLENBQUM7Z0JBQ3JCQyxRQUFRLEVBQUUsQ0FBTTtnQkFDaEJDLFdBQVcsRUFBRSxDQUFLO2dCQUNsQkMsVUFBVSxFQUFFLENBQXNGO2dCQUNsR0MsVUFBVSxFQUFFLENBQUc7WUFDbkIsQ0FBQztRQUNMLENBQUM7SUFDTCxDQUFDOztBQUdjLFFBQVEsQ0FBQ0MsVUFBVSxDQUFDQyxLQUFLLEVBQUUsQ0FBQztJQUN2QyxLQUFLLENBQUNDLFVBQVUsSUFBSUMsS0FBSywrRUFDcEJULFVBQVU7WUFBZ0JVLE1BQU0sRUFBRUQsS0FBSyxDQUFDRSxFQUFFO1lBQUVDLEtBQUssRUFBRUgsS0FBSyxDQUFDSSxJQUFJO3NCQUN6REMsS0FBSyxDQUFDQyxPQUFPLENBQUNOLEtBQUssQ0FBQ08sUUFBUSxJQUN2QlAsS0FBSyxDQUFDTyxRQUFRLENBQUNDLEdBQUcsRUFBRUMsSUFBSSxHQ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5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBGb2xkZXJUcmVlKHByb3BzKSB7XG4gICAgY29uc3QgcmVuZGVyVHJlZSA9IChub2RlcykgPT4gKFxuICAgICAgICA8VENUcmVlSXRlbSBrZXk9e25vZGVzLmlkfSBub2RlSWQ9e25vZGVzLmlkfSBsYWJlbD17bm9kZXMubmFtZX0+XG4gICAgICAgICAgICB7QXJyYXkuaXNBcnJheShub2Rlcy5jaGlsZHJlbilcbiAgICAgICAgICAgICAgICA/IG5vZGVzLmNoaWxkcmVuLm1hcCgobm9kZSkgPT4gcmVuZGVyVHJlZShub2RlKSlcbiAgICAgICAgICAgICAgICA6IG51bGx9XG4gICAgICAgIDwvVENUcmVlSXRlbT5cbiAgICApO1xuXG4gICAgY29uc3Qgcm91dGVyID0gdXNlUm91dGVyKClcbiAgICAvLyBjb25zdCBjaGlsZHJlbk5vZGVJZHMgPSBwcm9wcy50cmVlLmNoaWxkcmVuLm1hcChhTm9kZSA9PiB7cmV0dXJuIGFOb2RlLmlkfSlcbiAgICBjb25zdCBleHBhbmRlZE5vZGVzID0gW3Byb3BzLnRyZWUuaWRdXG4gICAgcmV0dXJuIChcbiAgICAgICAgPFRyZWVWaWV3XG4gICAgICAgICAgICBhcmlhLWxhYmVsPVwicmljaCBvYmplY3RcIlxuICAgICAgICAgICAgZGVmYXVsdENvbGxhcHNlSWNvbj17PEV4cGFuZE1vcmVJY29uLz59XG4gICAgICAgICAgICBkZWZhdWx0RXhwYW5kZWQ9e2V4cGFuZGVkTm9kZXN9XG4gICAgICAgICAgICBkZWZhdWx0RXhwYW5kSWNvbj17PENoZXZyb25SaWdodEljb24vPn1cbiAgICAgICAgICAgIG9uTm9kZVNlbGVjdD17KGV2ZW50LCBub2RJZHMpID0+IHtcbiAgICAgICAgICAgICAgICBjb25zdCBjdXJyZW50Tm9kZSA9IHByb3BzLmZsYXR0ZW5Ob2Rlcy5maW5kKGFOb2RlID0+IHtcbiAgICAgICAgICAgICAgICAgIC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iLCJkZWZhdWx0RXhwYW5kZWQiLCJkZWZhdWx0RXhwYW5kSWNvbiIsIm9uTm9kZVNlbGVjdCIsImV2ZW50Iiwibm9kSWRzIiwiY3VycmVudE5vZGUiLCJmbGF0dGVuTm9kZXMiLCJmaW5kIiwiYU5vZGUiLCJyb3V0ZVBhdGgiLCJwdXNoIiwic3giLCJmbGV4R3JvdyIsIm1heFdpZHRoIiwib3ZlcmZsb3dZIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./components/FolderTree.js\n");

/***/ })€€†buffer†source„size„maps„hash²,/*!**********************************!*\
  !*** ./components/FolderTree.js ***!
  \**********************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ FolderTree)\n/* harmony export */ });\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ \"react/jsx-dev-runtime\");\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _mui_lab_TreeView__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mui/lab/TreeView */ \"@mui/lab/TreeView\");\n/* harmony import */ var _mui_lab_TreeView__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_lab_TreeView__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _mui_icons_material_ExpandMore__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mui/icons-material/ExpandMore */ \"@mui/icons-material/ExpandMore\");\n/* harmony import */ var _mui_icons_material_ExpandMore__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_ExpandMore__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _mui_icons_material_ChevronRight__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mui/icons-material/ChevronRight */ \"@mui/icons-material/ChevronRight\");\n/* harmony import */ var _mui_icons_material_ChevronRight__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_ChevronRight__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _mui_lab_TreeItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mui/lab/TreeItem */ \"@mui/lab/TreeItem\");\n/* harmony import */ var _mui_lab_TreeItem__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_mui_lab_TreeItem__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! next/router */ \"next/router\");\n/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(next_router__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _mui_material_styles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mui/material/styles */ \"@mui/material/styles\");\n/* harmony import */ var _mui_material_styles__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_mui_material_styles__WEBPACK_IMPORTED_MODULE_7__);\n\n\n\n\n\n\n\n\nconst TCTreeItem = (0,_mui_material_styles__WEBPACK_IMPORTED_MODULE_7__.styled)((_mui_lab_TreeItem__WEBPACK_IMPORTED_MODULE_5___default()))(({ theme  })=>({\n        '& .MuiTreeItem-content': {\n            '& .MuiTreeItem-label': {\n                fontSize: '1rem',\n                paddingLeft: '6px',\n                fontFamily: '-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif,',\n                lineHeight: 2\n            }\n        }\n    })\n);\nfunction FolderTree(props) {\n    const renderTree = (nodes)=>/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(TCTreeItem, {\n            nodeId: nodes.id,\n            label: nodes.name,\n            children: Array.isArray(nodes.children) ? nodes.children.map((node)=>renderTree(node)\n            ) : null\n        }, nodes.id, false, {\n            fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/FolderTree.js\",\n            lineNumber: 23,\n            columnNumber: 9\n        }, this)\n    ;\n    const router = (0,next_router__WEBPACK_IMPORTED_MODULE_6__.useRouter)();\n    // const childrenNodeIds = props.tree.children.map(aNode => {return aNode.id})\n    const expandedNodes = [\n        props.tree.id\n    ];\n    return(/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)((_mui_lab_TreeView__WEBPACK_IMPORTED_MODULE_2___default()), {\n        \"aria-label\": \"rich object\",\n        defaultCollapseIcon: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)((_mui_icons_material_ExpandMore__WEBPACK_IMPORTED_MODULE_3___default()), {}, void 0, false, void 0, void 0),\n        defaultExpanded: expandedNodes,\n        defaultExpandIcon: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)((_mui_icons_material_ChevronRight__WEBPACK_IMPORTED_MODULE_4___default()), {}, void 0, false, void 0, void 0),\n        onNodeSelect: (event, nodIds)=>{\n            const currentNode = props.flattenNodes.find((aNode)=>{\n                return aNode.id === nodIds;\n            });\n            // console.log(event)\n            // console.log(currentNode)\n            if (currentNode != null && currentNode.routePath != null) {\n                router.push(currentNode.routePath);\n            // router.reload()\n            }\n        },\n        sx: {\n            flexGrow: 1,\n            maxWidth: 400,\n            overflowY: 'auto'\n        },\n        children: renderTree(props.tree)\n    }, void 0, false, {\n        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/FolderTree.js\",\n        lineNumber: 34,\n        columnNumber: 9\n    }, this));\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9jb21wb25lbnRzL0ZvbGRlclRyZWUuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQThCO0FBQ1U7QUFDbUI7QUFDSTtBQUN2QjtBQUNIO0FBQ007QUFFM0MsS0FBSyxDQUFDTyxVQUFVLEdBQUdELDREQUFNLENBQUNGLDBEQUFRLEdBQUcsQ0FBQ0ksQ0FBQUEsS0FBSyxHQUFDLElBQU0sQ0FBQztRQUMvQyxDQUF3Qix5QkFBRSxDQUFDO1lBQ3ZCLENBQXNCLHVCQUFFLENBQUM7Z0JBQ3JCQyxRQUFRLEVBQUUsQ0FBTTtnQkFDaEJDLFdBQVcsRUFBRSxDQUFLO2dCQUNsQkMsVUFBVSxFQUFFLENBQXNGO2dCQUNsR0MsVUFBVSxFQUFFLENBQUc7WUFDbkIsQ0FBQztRQUNMLENBQUM7SUFDTCxDQUFDOztBQUdjLFFBQVEsQ0FBQ0MsVUFBVSxDQUFDQyxLQUFLLEVBQUUsQ0FBQztJQUN2QyxLQUFLLENBQUNDLFVBQVUsSUFBSUMsS0FBSywrRUFDcEJULFVBQVU7WUFBZ0JVLE1BQU0sRUFBRUQsS0FBSyxDQUFDRSxFQUFFO1lBQUVDLEtBQUssRUFBRUgsS0FBSyxDQUFDSSxJQUFJO3NCQUN6REMsS0FBSyxDQUFDQyxPQUFPLENBQUNOLEtBQUssQ0FBQ08sUUFBUSxJQUN2QlAsS0FBSyxDQU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DogMi4wLFxuICAgICAgICB9LFxuICAgIH0sXG59KSlcblxuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBGb2xkZXJUcmVlKHByb3BzKSB7XG4gICAgY29uc3QgcmVuZGVyVHJlZSA9IChub2RlcykgPT4gKFxuICAgICAgICA8VENUcmVlSXRlbSBrZXk9e25vZGVzLmlkfSBub2RlSWQ9e25vZGVzLmlkfSBsYWJlbD17bm9kZXMubmFtZX0+XG4gICAgICAgICAgICB7QXJyYXkuaXNBcnJheShub2Rlcy5jaGlsZHJlbilcbiAgICAgICAgICAgICAgICA/IG5vZGVzLmNoaWxkcmVuLm1hcCgobm9kZSkgPT4gcmVuZGVyVHJlZShub2RlKSlcbiAgICAgICAgICAgICAgICA6IG51bGx9XG4gICAgICAgIDwvVENUcmVlSXRlbT5cbiAgICApO1xuXG4gICAgY29uc3Qgcm91dGVyID0gdXNlUm91dGVyKClcbiAgICAvLyBjb25zdCBjaGlsZHJlbk5vZGVJZHMgPSBwcm9wcy50cmVlLmNoaWxkcmVuLm1hcChhTm9kZSA9PiB7cmV0dXJuIGFOb2RlLmlkfSlcbiAgICBjb25zdCBleHBhbmRlZE5vZGVzID0gW3Byb3BzLnRyZWUuaWRdXG4gICAgcmV0dXJuIChcbiAgICAgICAgPFRyZWVWaWV3XG4gICAgICAgICAgICBhcmlhLWxhYmVsPVwicmljaCBvYmplY3RcIlxuICAgICAgICAgICAgZGVmYXVsdENvbGxhcHNlSWNvbj17PEV4cGFuZE1vcmVJY29uLz59XG4gICAgICAgICAgICBkZWZhdWx0RXhwYW5kZWQ9e2V4cGFuZGVkTm9kZXN9XG4gICAgICAgICAgICBkZWZhdWx0RXhwYW5kSWNvbj17PENoZXZyb25SaWdodEljb24vPn1cbiAgICAgICAgICAgIG9uTm9kZVNlbGVjdD17KGV2ZW50LCBub2RJZHMpID0+IHtcbiAgICAgICAgICAgICAgICBjb25zdCBjdXJyZW50Tm9kZSA9IHByb3BzLmZsYXR0ZW5Ob2Rl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wiYXJpYS1sYWJlbCIsImRlZmF1bHRDb2xsYXBzZUljb24iLCJkZWZhdWx0RXhwYW5kZWQiLCJkZWZhdWx0RXhwYW5kSWNvbiIsIm9uTm9kZVNlbGVjdCIsImV2ZW50Iiwibm9kSWRzIiwiY3VycmVudE5vZGUiLCJmbGF0dGVuTm9kZXMiLCJmaW5kIiwiYU5vZGUiLCJyb3V0ZVBhdGgiLCJwdXNoIiwic3giLCJmbGV4R3JvdyIsIm1heFdpZHRoIiwib3ZlcmZsb3dZIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./components/FolderTree.js\n");

/***/ })€#,

/***/ "./components/Layout.js":
7«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourcek/*!******************************!*\
  !*** ./components/Layout.js ***!
  \******************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSource,«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource_/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"siteTitle\": () => (/* binding */ siteTitle),\n/* harmony export */   \"default\": () => (/* binding */ Layout)\n/* harmony export */ });\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ \"react/jsx-dev-runtime\");\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! next/head */ \"next/head\");\n/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(next_head__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mui/material */ \"@mui/material\");\n/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_material__WEBPACK_IMPORTED_MODULE_2__);\n\n\n\n// import BasicTree from 'lib/MyFolderTree'\nconst siteTitle = 'Digital Backroom - An Internet Archive';\nfunction Layout({ children  }) {\n    return(/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n        children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"main\", {\n            className: \"theme-light\",\n            children: children\n        }, void 0, false, {\n            fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/Layout.js\",\n            lineNumber: 9,\n            columnNumber: 13\n        }, this)\n    }, void 0, false, {\n        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/Layout.js\",\n        lineNumber: 8,\n        columnNumber: 9\n    }, this));\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9jb21wb25lbnRzL0xheW91dC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBNEI7QUFHSztBQUZqQyxFQUEyQztBQUNwQyxLQUFLLENBQUNFLFNBQVMsR0FBRyxDQUF3QztBQUVsRCxRQUFRLENBQUNDLE1BQU0sQ0FBQyxDQUFDQyxDQUFBQSxRQUFRLEdBQUMsRUFBRSxDQUFDO0lBRXhDLE1BQU0sNkVBQ0RDLENBQUc7OEZBQ0NDLENBQUk7WUFBQ0MsU0FBUyxFQUFFLENBQWE7c0JBQ3pCSCxRQUFROzs7Ozs7Ozs7OztBQUl6QixDQUFDIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbXktYXBwLy4vY29tcG9uZW50cy9MYXlvdXQuanM/NTE1YyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgSGVhZCBmcm9tICduZXh0L2hlYWQnXG4vLyBpbXBvcnQgQmFzaWNUcmVlIGZyb20gJ2xpYi9NeUZvbGRlclRyZWUnXG5leHBvcnQgY29uc3Qgc2l0ZVRpdGxlID0gJ0RpZ2l0YWwgQmFja3Jvb20gLSBBbiBJbnRlcm5ldCBBcmNoaXZlJ1xuaW1wb3J0IHtCb3h9IGZyb20gJ0BtdWkvbWF0ZXJpYWwnXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBMYXlvdXQoe2NoaWxkcmVufSkge1xuXG4gICAgcmV0dXJuIChcbiAgICAgICAgPGRpdj5cbiAgICAgICAgICAgIDxtYWluIGNsYXNzTmFtZT0gXCJ0aGVtZS1saWdodFwiPlxuICAgICAgICAgICAgICAgIHtjaGlsZHJlbn1cbiAgICAgICAgICAgIDwvbWFpbj5cbiAgICAgICAgPC9kaXY+XG4gICAgKVxufVxuXG4iXSwibmFtZXMiOlsiSGVhZCIsIkJveCIsInNpdGVUaXRsZSIsIkxheW91dCIsImNoaWxkcmVuIiwiZGl2IiwibWFpbiIsImNsYXNzTmFtZSJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./components/Layout.js\n");


/***/ })€†buffer†source„size„maps„hash{
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"siteTitle\": () => (/* binding */ siteTitle),\n/* harmony export */   \"default\": () => (/* binding */ Layout)\n/* harmony export */ });\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ \"react/jsx-dev-runtime\");\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! next/head */ \"next/head\");\n/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(next_head__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mui/material */ \"@mui/material\");\n/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_material__WEBPACK_IMPORTED_MODULE_2__);\n\n\n\n// import BasicTree from 'lib/MyFolderTree'\nconst siteTitle = 'Digital Backroom - An Internet Archive';\nfunction Layout({ children  }) {\n    return(/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n        children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"main\", {\n            className: \"theme-light\",\n            children: children\n        }, void 0, false, {\n            fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/Layout.js\",\n            lineNumber: 9,\n            columnNumber: 13\n        }, this)\n    }, void 0, false, {\n        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/Layout.js\",\n        lineNumber: 8,\n        columnNumber: 9\n    }, this));\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9jb21wb25lbnRzL0xheW91dC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBNEI7QUFHSztBQUZqQyxFQUEyQztBQUNwQyxLQUFLLENBQUNFLFNBQVMsR0FBRyxDQUF3QztBQUVsRCxRQUFRLENBQUNDLE1BQU0sQ0FBQyxDQUFDQyxDQUFBQSxRQUFRLEdBQUMsRUFBRSxDQUFDO0lBRXhDLE1BQU0sNkVBQ0RDLENBQUc7OEZBQ0NDLENBQUk7WUFBQ0MsU0FBUyxFQUFFLENBQWE7c0JBQ3pCSCxRQUFROzs7Ozs7Ozs7OztBQUl6QixDQUFDIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbXktYXBwLy4vY29tcG9uZW50cy9MYXlvdXQuanM/NTE1YyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgSGVhZCBmcm9tICduZXh0L2hlYWQnXG4vLyBpbXBvcnQgQmFzaWNUcmVlIGZyb20gJ2xpYi9NeUZvbGRlclRyZWUnXG5leHBvcnQgY29uc3Qgc2l0ZVRpdGxlID0gJ0RpZ2l0YWwgQmFja3Jvb20gLSBBbiBJbnRlcm5ldCBBcmNoaXZlJ1xuaW1wb3J0IHtCb3h9IGZyb20gJ0BtdWkvbWF0ZXJpYWwnXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBMYXlvdXQoe2NoaWxkcmVufSkge1xuXG4gICAgcmV0dXJuIChcbiAgICAgICAgPGRpdj5cbiAgICAgICAgICAgIDxtYWluIGNsYXNzTmFtZT0gXCJ0aGVtZS1saWdodFwiPlxuICAgICAgICAgICAgICAgIHtjaGlsZHJlbn1cbiAgICAgICAgICAgIDwvbWFpbj5cbiAgICAgICAgPC9kaXY+XG4gICAgKVxufVxuXG4iXSwibmFtZXMiOlsiSGVhZCIsIkJveCIsInNpdGVUaXRsZSIsIkxheW91dCIsImNoaWxkcmVuIiwiZGl2IiwibWFpbiIsImNsYXNzTmFtZSJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./components/Layout.js\n");

/***/ })€ùæ
/*!******************************!*\
  !*** ./components/Layout.js ***!
  \******************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"siteTitle\": () => (/* binding */ siteTitle),\n/* harmony export */   \"default\": () => (/* binding */ Layout)\n/* harmony export */ });\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ \"react/jsx-dev-runtime\");\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! next/head */ \"next/head\");\n/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(next_head__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mui/material */ \"@mui/material\");\n/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_material__WEBPACK_IMPORTED_MODULE_2__);\n\n\n\n// import BasicTree from 'lib/MyFolderTree'\nconst siteTitle = 'Digital Backroom - An Internet Archive';\nfunction Layout({ children  }) {\n    return(/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n        children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"main\", {\n            className: \"theme-light\",\n            children: children\n        }, void 0, false, {\n            fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/Layout.js\",\n            lineNumber: 9,\n            columnNumber: 13\n        }, this)\n    }, void 0, false, {\n        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/Layout.js\",\n        lineNumber: 8,\n        columnNumber: 9\n    }, this));\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9jb21wb25lbnRzL0xheW91dC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBNEI7QUFHSztBQUZqQyxFQUEyQztBQUNwQyxLQUFLLENBQUNFLFNBQVMsR0FBRyxDQUF3QztBQUVsRCxRQUFRLENBQUNDLE1BQU0sQ0FBQyxDQUFDQyxDQUFBQSxRQUFRLEdBQUMsRUFBRSxDQUFDO0lBRXhDLE1BQU0sNkVBQ0RDLENBQUc7OEZBQ0NDLENBQUk7WUFBQ0MsU0FBUyxFQUFFLENBQWE7c0JBQ3pCSCxRQUFROzs7Ozs7Ozs7OztBQUl6QixDQUFDIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbXktYXBwLy4vY29tcG9uZW50cy9MYXlvdXQuanM/NTE1YyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgSGVhZCBmcm9tICduZXh0L2hlYWQnXG4vLyBpbXBvcnQgQmFzaWNUcmVlIGZyb20gJ2xpYi9NeUZvbGRlclRyZWUnXG5leHBvcnQgY29uc3Qgc2l0ZVRpdGxlID0gJ0RpZ2l0YWwgQmFja3Jvb20gLSBBbiBJbnRlcm5ldCBBcmNoaXZlJ1xuaW1wb3J0IHtCb3h9IGZyb20gJ0BtdWkvbWF0ZXJpYWwnXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBMYXlvdXQoe2NoaWxkcmVufSkge1xuXG4gICAgcmV0dXJuIChcbiAgICAgICAgPGRpdj5cbiAgICAgICAgICAgIDxtYWluIGNsYXNzTmFtZT0gXCJ0aGVtZS1saWdodFwiPlxuICAgICAgICAgICAgICAgIHtjaGlsZHJlbn1cbiAgICAgICAgICAgIDwvbWFpbj5cbiAgICAgICAgPC9kaXY+XG4gICAgKVxufVxuXG4iXSwibmFtZXMiOlsiSGVhZCIsIkJveCIsInNpdGVUaXRsZSIsIkxheW91dCIsImNoaWxkcmVuIiwiZGl2IiwibWFpbiIsImNsYXNzTmFtZSJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./components/Layout.js\n");

/***/ })&,

/***/ "./components/MDContent.js":
|�«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourcet/*!*********************************!*\
  !*** ./components/MDContent.js ***!
  \*********************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSourceJN«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource_/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
0Meval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ \"react/jsx-dev-runtime\");\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _mui_material_Alert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mui/material/Alert */ \"@mui/material/Alert\");\n/* harmony import */ var _mui_material_Alert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_material_Alert__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _mui_material_AlertTitle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mui/material/AlertTitle */ \"@mui/material/AlertTitle\");\n/* harmony import */ var _mui_material_AlertTitle__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_mui_material_AlertTitle__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! next/router */ \"next/router\");\n/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_router__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n\nfunction BackLinks({ linkList  }) {\n    return(/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n        className: \"note-footer\",\n        children: [\n            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"h3\", {\n                className: \"backlink-heading\",\n                children: \"Link to this note\"\n            }, void 0, false, {\n                fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                lineNumber: 9,\n                columnNumber: 13\n            }, this),\n            linkList != null && linkList.length > 0 ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {\n                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                    className: \"backlink-container\",\n                    children: linkList.map((aLink)=>/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                            className: \"backlink\",\n                            children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"a\", {\n                                href: aLink.slug,\n                                children: [\n                                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                                        className: \"backlink-title\",\n                                        children: aLink.title\n                                    }, void 0, false, {\n                                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                                        lineNumber: 19,\n                                        columnNumber: 33\n                                    }, this),\n                                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                                        className: \"backlink-preview\",\n                                        children: [\n                                            aLink.shortSummary,\n                                            \" \"\n                                        ]\n                                    }, void 0, true, {\n                                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                                        lineNumber: 20,\n                                        columnNumber: 33\n                                    }, this)\n                                ]\n                            }, void 0, true, {\n                                fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                                lineNumber: 18,\n                                columnNumber: 29\n                            }, this)\n                        }, aLink.slug, false, {\n                            fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                            lineNumber: 16,\n                            columnNumber: 25\n                        }, this)\n                    )\n                }, void 0, false, {\n                    fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                    lineNumber: 14,\n                    columnNumber: 17\n                }, this)\n            }, void 0, false) : /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {\n                children: [\n                    \" \",\n                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                        className: \"no-backlinks\",\n                        children: \" No backlinks found\"\n                    }, void 0, false, {\n                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                        lineNumber: 27,\n                        columnNumber: 18\n                    }, this),\n                    \" \"\n                ]\n            }, void 0, true)\n        ]\n    }, void 0, true, {\n        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n        lineNumber: 8,\n        columnNumber: 13\n    }, this));\n}\nfunction MDContent({ content , backLinks , handleOpenNewContent  }) {\n    function handleInternalLinkClick() {\n        //Processing fetching\n        //pass result up to parent container\n        //TODO: handle clicking on internal link, go fetching md content from file then passing it up to parent\n        handleOpenNewContent(content);\n    }\n    (0,next_router__WEBPACK_IMPORTED_MODULE_4__.useRouter)();\n    return(/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n        className: \"markdown-rendered\",\n        children: [\n            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)((_mui_material_Alert__WEBPACK_IMPORTED_MODULE_2___default()), {\n                severity: \"info\",\n                children: [\n                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)((_mui_material_AlertTitle__WEBPACK_IMPORTED_MODULE_3___default()), {\n                        children: \"Want to know more?\"\n                    }, void 0, false, {\n                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                        lineNumber: 45,\n                        columnNumber: 17\n                    }, this),\n                    \"ğŸŒ± \",\n                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"strong\", {\n                        children: \"Follow\"\n                    }, void 0, false, {\n                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                        lineNumber: 46,\n                        columnNumber: 19\n                    }, this),\n                    \" or \",\n                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"strong\", {\n                        children: \"DM\"\n                    }, void 0, false, {\n                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                        lineNumber: 46,\n                        columnNumber: 46\n                    }, this),\n                    \" me on Twitter at \",\n                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"span\", {\n                        children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"a\", {\n                            href: \"https://twitter.com/tuancm\",\n                            children: \"@tuancm\"\n                        }, void 0, false, {\n                            fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                            lineNumber: 46,\n                            columnNumber: 89\n                        }, this)\n                    }, void 0, false, {\n                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                        lineNumber: 46,\n                        columnNumber: 83\n                    }, this)\n                ]\n            }, void 0, true, {\n                fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                lineNumber: 44,\n                columnNumber: 13\n            }, this),\n            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                dangerouslySetInnerHTML: {\n                    __html: content\n                }\n            }, void 0, false, {\n                fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                lineNumber: 49,\n                columnNumber: 13\n            }, this),\n            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(BackLinks, {\n                    linkList: backLinks\n                }, void 0, false, {\n                    fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                    lineNumber: 53,\n                    columnNumber: 17\n                }, this)\n            }, void 0, false, {\n                fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                lineNumber: 52,\n                columnNumber: 13\n            }, this),\n            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"hr\", {}, void 0, false, {\n                fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                lineNumber: 55,\n                columnNumber: 13\n            }, this),\n            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"footer\", {\n                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                    children: [\n                        \"Powered by  \",\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"a\", {\n                            href: \"https://github.com/TuanManhCao/digital-garden\",\n                            children: \"Mind Stone\"\n                        }, void 0, false, {\n                            fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                            lineNumber: 57,\n                            columnNumber: 32\n                        }, this),\n                        \", \\xa9 2022\"\n                    ]\n                }, void 0, true, {\n                    fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                    lineNumber: 57,\n                    columnNumber: 17\n                }, this)\n            }, void 0, false, {\n                fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                lineNumber: 56,\n                columnNumber: 13\n            }, this)\n        ]\n    }, void 0, true, {\n        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n        lineNumber: 43,\n        columnNumber: 9\n    }, this));\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MDContent);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9jb21wb25lbnRzL01EQ29udGVudC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFBeUI7QUFDYztBQUNVO0FBQ1o7U0FFNUJJLFNBQVMsQ0FBQyxDQUFDQyxDQUFBQSxRQUFRLEdBQUMsRUFBRSxDQUFDO0lBRTVCLE1BQU0sNkVBQUdDLENBQUc7UUFBQ0MsU0FBUyxFQUFDLENBQWE7O3dGQUMzQkMsQ0FBRTtnQkFBQ0QsU0FBUyxFQUFDLENBQWtCOzBCQUFDLENBQWlCOzs7Ozs7WUFDcERGLFFBQVEsSUFBSSxJQUFJLElBQUlBLFFBQVEsQ0FBQ0ksTUFBTSxHQUFHLENBQUM7c0dBSWhDSCxDQUFHO29CQUFDQyxTQUFTLEVBQUMsQ0FBb0I7OEJBQzlCRixRQUFRLENBQUNLLEdBQUcsRUFBQ0MsS0FBSywrRUFDZEwsQ0FBRzs0QkFBa0JDLFNBQVMsRUFBQyxDQUFVO2tIQUVyQ0ssQ0FBQztnQ0FBQ0MsSUFBSSxFQUFFRixLQUFLLENBQUNHLElBQUk7O2dIQUNkQyxDQUFDO3dDQUFDUixTQUFTLEVBQUMsQ0FBZ0I7a0RBQUVJLEtBQUssQ0FBQ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AgICAgICAgICAgICA8ZGl2IGtleT17YUxpbmsuc2x1Z30gY2xhc3NOYW1lPVwiYmFja2xpbmtcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7Lyo8TGluayBocmVmPXthTGluay5zbHVnfT4qL31cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8YSBocmVmPXthTGluay5zbHVnfT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHAgY2xhc3NOYW1lPVwiYmFja2xpbmstdGl0bGVcIj57YUxpbmsudGl0bGV9PC9wPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cCBjbGFzc05hbWU9XCJiYWNrbGluay1wcmV2aWV3XCI+e2FMaW5rLnNob3J0U3VtbWFyeX0gPC9wPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvYT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7Lyo8L0xpbms+Ki99XG4gICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgIDwvPlxuICAgICAgICAgICAgOiA8PiA8cCBjbGFzc05hbWU9XCJuby1iYWNrbGlua3NcIj4gTm8gYmFja2xpbmtzIGZvdW5kPC9wPiA8Lz59XG4gICAgPC9kaXY+KTtcbn1cblxuZnVuY3Rpb24gTURDb250ZW50KHtjb250ZW50LCBiYWNrTGlua3MsIGhhbmRsZU9wZW5OZXdDb250ZW50fSkge1xuXG4gICAgZnVuY3Rpb24gaGFuZGxlSW50ZXJuYWxMaW5rQ2xpY2soKSB7XG4gICAgICAgIC8vUHJvY2Vzc2luZyBmZXRjaGluZ1xuICAgICAgICAvL3Bhc3MgcmVzdWx0IHVwIHRvIHBhcmVudCBjb250YWluZXJcbiAgICAgICAgLy9UT0RPOiBoYW5kbGUgY2xpY2tpbmcgb24gaW50ZXJuYWwgbGluaywgZ28gZmV0Y2hpbmcgbWQgY29udGVudCBmcm9tIGZpbGUgdGhlbiBwYXNzaW5nIGl0IHVwIHRvIHBhcmVudFxuICAgICAgICBoYW5kbGVPcGVuTmV3Q29udGVudChjb250ZW50KVxuICAgIH1cblxuICAgIHVzZVJvdXRlcigpO1xuICAgIHJldHVybiAoXG5cbiAgICAgICAgPGRpdiBjbGFzc05hbWU9XCJtYXJrZG93bi1yZW5kZXJlZFwiPlxuICAgICAgICAgICAgPEFsZXJ0IHNldmVyaXR5PVwiaW5mb1wiPlxuICAgICAgICAgICAgICAgIDxBbGVydFRpdGxlPldhbnQgdG8ga25vdyBtb3JlPzwvQWxlcnRUaXRsZT5cbiAgICAgICAgICAgICAgICDwn4yxIDxzdHJvbmc+Rm9sbG93PC9zdHJvbmc+IG9yIDxzdHJvbmc+RE08L3N0cm9uZz4gbWUgb24gVHdpdHRlciBhdCA8c3Bhbj48YVxuICAgICAgICAgICAgICAgIGhyZWY9XCJodHRwczovL3R3aXR0ZXIuY29tL3R1YW5jbVwiPkB0dWFuY208L2E+PC9zcGFuPlxuICAgICAgICAgICAgPC9BbGVydD5cbiAgICAgICAgICAgIDxkaXYgZGFuZ2Vyb3VzbHlTZXRJbm5lckhUTUw9e3tfX2h0bWw6IGNvbnRlbnR9fS8+XG4gICAgICAgICAgICB7Lyo8YnV0dG9uIG9uQ2xpY2s9e2hhbmRsZUludGVybmFsTGlua0NsaWNrfT5DbGljayBtZTwvYnV0dG9uPiovfVxuICAgICAgICAgICAgey8qPGhyLz4qL31cbiAgICAgICAgICAgIDxkaXY+XG4gICAgICAgICAgICAgICAgPEJhY2tMaW5rcyBsaW5rTGlzdD17YmFja0xpbmtzfS8+XG4gICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgIDxoci8+XG4gICAgICAgICAgICA8Zm9vdGVyPlxuICAgICAgICAgICAgICAgIDxwPlBvd2VyZWQgYnkgIDxhIGhyZWY9XCJodHRwczovL2dpdGh1Yi5jb20vVHVhbk1hbmhDYW8vZGlnaXRhbC1nYXJkZW5cIj5NaW5kIFN0b25lPC9hPiwgwqkgMjAyMjwvcD5cbiAgICAgICAgICAgIDwvZm9vdGVyPlxuICAgICAgICA8L2Rpdj5cbiAgICApO1xufVxuXG5leHBvcnQgZGVmYXVsdCBNRENvbnRlbnQ7Il0sIm5hbWVzIjpbIlJlYWN0IiwiQWxlcnQiLCJBbGVydFRpdGxlIiwidXNlUm91dGVyIiwiQmFja0xpbmtzIiwibGlua0xpc3QiLCJkaXYiLCJjbGFzc05hbWUiLCJoMyIsImxlbmd0aCIsIm1hcCIsImFMaW5rIiwiYSIsImhyZWYiLCJzbHVnIiwicCIsInRpdGxlIiwic2hvcnRTdW1tYXJ5IiwiTURDb250ZW50IiwiY29udGVudCIsImJhY2tMaW5rcyIsImhhbmRsZU9wZW5OZXdDb250ZW50IiwiaGFuZGxlSW50ZXJuYWxMaW5rQ2xpY2siLCJzZXZlcml0eSIsInN0cm9uZyIsInNwYW4iLCJkYW5nZXJvdXNseVNldElubmVySFRNTCIsIl9faHRtbCIsImhyIiwiZm9vdGVyIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./components/MDContent.js\n");


/***/ })€†buffer†source„size„maps„hash™M/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ \"react/jsx-dev-runtime\");\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _mui_material_Alert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mui/material/Alert */ \"@mui/material/Alert\");\n/* harmony import */ var _mui_material_Alert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_material_Alert__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _mui_material_AlertTitle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mui/material/AlertTitle */ \"@mui/material/AlertTitle\");\n/* harmony import */ var _mui_material_AlertTitle__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_mui_material_AlertTitle__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! next/router */ \"next/router\");\n/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_router__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n\nfunction BackLinks({ linkList  }) {\n    return(/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n        className: \"note-footer\",\n        children: [\n            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"h3\", {\n                className: \"backlink-heading\",\n                children: \"Link to this note\"\n            }, void 0, false, {\n                fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                lineNumber: 9,\n                columnNumber: 13\n            }, this),\n            linkList != null && linkList.length > 0 ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {\n                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                    className: \"backlink-container\",\n                    children: linkList.map((aLink)=>/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                            className: \"backlink\",\n                            children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"a\", {\n                                href: aLink.slug,\n                                children: [\n                                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                                        className: \"backlink-title\",\n                                        children: aLink.title\n                                    }, void 0, false, {\n                                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                                        lineNumber: 19,\n                                        columnNumber: 33\n                                    }, this),\n                                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                                        className: \"backlink-preview\",\n                                        children: [\n                                            aLink.shortSummary,\n                                            \" \"\n                                        ]\n                                    }, void 0, true, {\n                                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                                        lineNumber: 20,\n                                        columnNumber: 33\n                                    }, this)\n                                ]\n                            }, void 0, true, {\n                                fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                                lineNumber: 18,\n                                columnNumber: 29\n                            }, this)\n                        }, aLink.slug, false, {\n                            fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                            lineNumber: 16,\n                            columnNumber: 25\n                        }, this)\n                    )\n                }, void 0, false, {\n                    fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                    lineNumber: 14,\n                    columnNumber: 17\n                }, this)\n            }, void 0, false) : /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {\n                children: [\n                    \" \",\n                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                        className: \"no-backlinks\",\n                        children: \" No backlinks found\"\n                    }, void 0, false, {\n                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                        lineNumber: 27,\n                        columnNumber: 18\n                    }, this),\n                    \" \"\n                ]\n            }, void 0, true)\n        ]\n    }, void 0, true, {\n        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n        lineNumber: 8,\n        columnNumber: 13\n    }, this));\n}\nfunction MDContent({ content , backLinks , handleOpenNewContent  }) {\n    function handleInternalLinkClick() {\n        //Processing fetching\n        //pass result up to parent container\n        //TODO: handle clicking on internal link, go fetching md content from file then passing it up to parent\n        handleOpenNewContent(content);\n    }\n    (0,next_router__WEBPACK_IMPORTED_MODULE_4__.useRouter)();\n    return(/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n        className: \"markdown-rendered\",\n        children: [\n            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)((_mui_material_Alert__WEBPACK_IMPORTED_MODULE_2___default()), {\n                severity: \"info\",\n                children: [\n                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)((_mui_material_AlertTitle__WEBPACK_IMPORTED_MODULE_3___default()), {\n                        children: \"Want to know more?\"\n                    }, void 0, false, {\n                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                        lineNumber: 45,\n                        columnNumber: 17\n                    }, this),\n                    \"ğŸŒ± \",\n                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"strong\", {\n                        children: \"Follow\"\n                    }, void 0, false, {\n                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                        lineNumber: 46,\n                        columnNumber: 19\n                    }, this),\n                    \" or \",\n                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"strong\", {\n                        children: \"DM\"\n                    }, void 0, false, {\n                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                        lineNumber: 46,\n                        columnNumber: 46\n                    }, this),\n                    \" me on Twitter at \",\n                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"span\", {\n                        children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"a\", {\n                            href: \"https://twitter.com/tuancm\",\n                            children: \"@tuancm\"\n                        }, void 0, false, {\n                            fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                            lineNumber: 46,\n                            columnNumber: 89\n                        }, this)\n                    }, void 0, false, {\n                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                        lineNumber: 46,\n                        columnNumber: 83\n                    }, this)\n                ]\n            }, void 0, true, {\n                fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                lineNumber: 44,\n                columnNumber: 13\n            }, this),\n            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                dangerouslySetInnerHTML: {\n                    __html: content\n                }\n            }, void 0, false, {\n                fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                lineNumber: 49,\n                columnNumber: 13\n            }, this),\n            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(BackLinks, {\n                    linkList: backLinks\n                }, void 0, false, {\n                    fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                    lineNumber: 53,\n                    columnNumber: 17\n                }, this)\n            }, void 0, false, {\n                fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                lineNumber: 52,\n                columnNumber: 13\n            }, this),\n            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"hr\", {}, void 0, false, {\n                fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                lineNumber: 55,\n                columnNumber: 13\n            }, this),\n            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"footer\", {\n                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                    children: [\n                        \"Powered by  \",\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"a\", {\n                            href: \"https://github.com/TuanManhCao/digital-garden\",\n                            children: \"Mind Stone\"\n                        }, void 0, false, {\n                            fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                            lineNumber: 57,\n                            columnNumber: 32\n                        }, this),\n                        \", \\xa9 2022\"\n                    ]\n                }, void 0, true, {\n                    fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                    lineNumber: 57,\n                    columnNumber: 17\n                }, this)\n            }, void 0, false, {\n                fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                lineNumber: 56,\n                columnNumber: 13\n            }, this)\n        ]\n    }, void 0, true, {\n        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n        lineNumber: 43,\n        columnNumber: 9\n    }, this));\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MDContent);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9jb21wb25lbnRzL01EQ29udGVudC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFBeUI7QUFDYztBQUNVO0FBQ1o7U0FFNUJJLFNBQVMsQ0FBQyxDQUFDQyxDQUFBQSxRQUFRLEdBQUMsRUFBRSxDQUFDO0lBRTVCLE1BQU0sNkVBQUdDLENBQUc7UUFBQ0MsU0FBUyxFQUFDLENBQWE7O3dGQUMzQkMsQ0FBRTtnQkFBQ0QsU0FBUyxFQUFDLENBQWtCOzBCQUFDLENBQWlCOzs7Ozs7WUFDcERGLFFBQVEsSUFBSSxJQUFJLElBQUlBLFFBQVEsQ0FBQ0ksTUFBTSxHQUFHLENBQUM7c0dBSWhDSCxDQUFHO29CQUFDQyxTQUFTLEVBQUMsQ0FBb0I7OEJBQzlCRixRQUFRL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XN0ICE9IG51bGwgJiYgbGlua0xpc3QubGVuZ3RoID4gMClcbiAgICAgICAgICAgID9cbiAgICAgICAgICAgIDw+XG5cbiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzTmFtZT1cImJhY2tsaW5rLWNvbnRhaW5lclwiPlxuICAgICAgICAgICAgICAgICAgICB7bGlua0xpc3QubWFwKGFMaW5rID0+XG4gICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGtleT17YUxpbmsuc2x1Z30gY2xhc3NOYW1lPVwiYmFja2xpbmtcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7Lyo8TGluayBocmVmPXthTGluay5zbHVnfT4qL31cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8YSBocmVmPXthTGluay5zbHVnfT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHAgY2xhc3NOYW1lPVwiYmFja2xpbmstdGl0bGVcIj57YUxpbmsudGl0bGV9PC9wPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cCBjbGFzc05hbWU9XCJiYWNrbGluay1wcmV2aWV3XCI+e2FMaW5rLnNob3J0U3VtbWFyeX0gPC9wPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvYT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7Lyo8L0xpbms+Ki99XG4gICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgIDwvPlxuICAgICAgICAgICAgOiA8PiA8cCBjbGFzc05hbWU9XCJuby1iYWNrbGlua3NcIj4gTm8gYmFja2xpbmtzIGZvdW5kPC9wPiA8Lz59XG4gICAgPC9kaXY+KTtcbn1cblxuZnVuY3Rpb24gTURDb250ZW50KHtjb250ZW50LCBiYWNrTGlua3MsIGhhbmRsZU9wZW5OZXdDb250ZW50fSkge1xuXG4gICAgZnVuY3Rpb24gaGFuZ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Y2tMaW5rcyBsaW5rTGlzdD17YmFja0xpbmtzfS8+XG4gICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgIDxoci8+XG4gICAgICAgICAgICA8Zm9vdGVyPlxuICAgICAgICAgICAgICAgIDxwPlBvd2VyZWQgYnkgIDxhIGhyZWY9XCJodHRwczovL2dpdGh1Yi5jb20vVHVhbk1hbmhDYW8vZGlnaXRhbC1nYXJkZW5cIj5NaW5kIFN0b25lPC9hPiwgwqkgMjAyMjwvcD5cbiAgICAgICAgICAgIDwvZm9vdGVyPlxuICAgICAgICA8L2Rpdj5cbiAgICApO1xufVxuXG5leHBvcnQgZGVmYXVsdCBNRENvbnRlbnQ7Il0sIm5hbWVzIjpbIlJlYWN0IiwiQWxlcnQiLCJBbGVydFRpdGxlIiwidXNlUm91dGVyIiwiQmFja0xpbmtzIiwibGlua0xpc3QiLCJkaXYiLCJjbGFzc05hbWUiLCJoMyIsImxlbmd0aCIsIm1hcCIsImFMaW5rIiwiYSIsImhyZWYiLCJzbHVnIiwicCIsInRpdGxlIiwic2hvcnRTdW1tYXJ5IiwiTURDb250ZW50IiwiY29udGVudCIsImJhY2tMaW5rcyIsImhhbmRsZU9wZW5OZXdDb250ZW50IiwiaGFuZGxlSW50ZXJuYWxMaW5rQ2xpY2siLCJzZXZlcml0eSIsInN0cm9uZyIsInNwYW4iLCJkYW5nZXJvdXNseVNldElubmVySFRNTCIsIl9faHRtbCIsImhyIiwiZm9vdGVyIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./components/MDContent.js\n");

/***/ })€ó
N/*!*********************************!*\
  !*** ./components/MDContent.js ***!
  \*********************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ \"react/jsx-dev-runtime\");\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _mui_material_Alert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mui/material/Alert */ \"@mui/material/Alert\");\n/* harmony import */ var _mui_material_Alert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_material_Alert__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _mui_material_AlertTitle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mui/material/AlertTitle */ \"@mui/material/AlertTitle\");\n/* harmony import */ var _mui_material_AlertTitle__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_mui_material_AlertTitle__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! next/router */ \"next/router\");\n/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_router__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n\nfunction BackLinks({ linkList  }) {\n    return(/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n        className: \"note-footer\",\n        children: [\n            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"h3\", {\n                className: \"backlink-heading\",\n                children: \"Link to this note\"\n            }, void 0, false, {\n                fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                lineNumber: 9,\n                columnNumber: 13\n            }, this),\n            linkList != null && linkList.length > 0 ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {\n                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                    className: \"backlink-container\",\n                    children: linkList.map((aLink)=>/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                            className: \"backlink\",\n                            children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"a\", {\n                                href: aLink.slug,\n                                children: [\n                                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                                        className: \"backlink-title\",\n                                        children: aLink.title\n                                    }, void 0, false, {\n                                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                                        lineNumber: 19,\n                                        columnNumber: 33\n                                    }, this),\n                                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                                        className: \"backlink-preview\",\n                                        children: [\n                                            aLink.shortSummary,\n                                            \" \"\n                                        ]\n                                    }, void 0, true, {\n                                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                                        lineNumber: 20,\n                                        columnNumber: 33\n                                    }, this)\n                                ]\n                            }, void 0, true, {\n                                fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                                lineNumber: 18,\n                                columnNumber: 29\n                            }, this)\n                        }, aLink.slug, false, {\n                            fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                            lineNumber: 16,\n                            columnNumber: 25\n                        }, this)\n                    )\n                }, void 0, false, {\n                    fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                    lineNumber: 14,\n                    columnNumber: 17\n                }, this)\n            }, void 0, false) : /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {\n                children: [\n                    \" \",\n                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                        className: \"no-backlinks\",\n                        children: \" No backlinks found\"\n                    }, void 0, false, {\n                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                        lineNumber: 27,\n                        columnNumber: 18\n                    }, this),\n                    \" \"\n                ]\n            }, void 0, true)\n        ]\n    }, void 0, true, {\n        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n        lineNumber: 8,\n        columnNumber: 13\n    }, this));\n}\nfunction MDContent({ content , backLinks , handleOpenNewContent  }) {\n    function handleInternalLinkClick() {\n        //Processing fetching\n        //pass result up to parent container\n        //TODO: handle clicking on internal link, go fetching md content from file then passing it up to parent\n        handleOpenNewContent(content);\n    }\n    (0,next_router__WEBPACK_IMPORTED_MODULE_4__.useRouter)();\n    return(/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n        className: \"markdown-rendered\",\n        children: [\n            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)((_mui_material_Alert__WEBPACK_IMPORTED_MODULE_2___default()), {\n                severity: \"info\",\n                children: [\n                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)((_mui_material_AlertTitle__WEBPACK_IMPORTED_MODULE_3___default()), {\n                        children: \"Want to know more?\"\n                    }, void 0, false, {\n                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                        lineNumber: 45,\n                        columnNumber: 17\n                    }, this),\n                    \"ğŸŒ± \",\n                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"strong\", {\n                        children: \"Follow\"\n                    }, void 0, false, {\n                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                        lineNumber: 46,\n                        columnNumber: 19\n                    }, this),\n                    \" or \",\n                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"strong\", {\n                        children: \"DM\"\n                    }, void 0, false, {\n                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                        lineNumber: 46,\n                        columnNumber: 46\n                    }, this),\n                    \" me on Twitter at \",\n                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"span\", {\n                        children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"a\", {\n                            href: \"https://twitter.com/tuancm\",\n                            children: \"@tuancm\"\n                        }, void 0, false, {\n                            fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                            lineNumber: 46,\n                            columnNumber: 89\n                        }, this)\n                    }, void 0, false, {\n                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                        lineNumber: 46,\n                        columnNumber: 83\n                    }, this)\n                ]\n            }, void 0, true, {\n                fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                lineNumber: 44,\n                columnNumber: 13\n            }, this),\n            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                dangerouslySetInnerHTML: {\n                    __html: content\n                }\n            }, void 0, false, {\n                fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                lineNumber: 49,\n                columnNumber: 13\n            }, this),\n            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(BackLinks, {\n                    linkList: backLinks\n                }, void 0, false, {\n                    fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                    lineNumber: 53,\n                    columnNumber: 17\n                }, this)\n            }, void 0, false, {\n                fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                lineNumber: 52,\n                columnNumber: 13\n            }, this),\n            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"hr\", {}, void 0, false, {\n                fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                lineNumber: 55,\n                columnNumber: 13\n            }, this),\n            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"footer\", {\n                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                    children: [\n                        \"Powered by  \",\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"a\", {\n                            href: \"https://github.com/TuanManhCao/digital-garden\",\n                            children: \"Mind Stone\"\n                        }, void 0, false, {\n                            fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                            lineNumber: 57,\n                            columnNumber: 32\n                        }, this),\n                        \", \\xa9 2022\"\n                    ]\n                }, void 0, true, {\n                    fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                    lineNumber: 57,\n                    columnNumber: 17\n                }, this)\n            }, void 0, false, {\n                fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                lineNumber: 56,\n                columnNumber: 13\n            }, this)\n        ]\n    }, void 0, true, {\n        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n        lineNumber: 43,\n        columnNumber: 9\n    }, this));\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MDContent);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9jb21wb25lbnRzL01EQ29udGVudC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFBeUI7QUFDYztBQUNVO0FBQ1o7U0FFNUJJLFNBQVMsQ0FBQyxDQUFDQyxDQUFBQSxRQUFRLEdBQUMsRUFBRSxDQUFDO0lBRTVCLE1BQU0sNkVBQUdDLENBQUc7U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JvbSAnbmV4dC9yb3V0ZXInXG5cbmZ1bmN0aW9uIEJhY2tMaW5rcyh7bGlua0xpc3R9KSB7XG5cbiAgICByZXR1cm4gKDxkaXYgY2xhc3NOYW1lPVwibm90ZS1mb290ZXJcIj5cbiAgICAgICAgICAgIDxoMyBjbGFzc05hbWU9XCJiYWNrbGluay1oZWFkaW5nXCI+TGluayB0byB0aGlzIG5vdGU8L2gzPlxuICAgICAgICB7KGxpbmtMaXN0ICE9IG51bGwgJiYgbGlua0xpc3QubGVuZ3RoID4gMClcbiAgICAgICAgICAgID9cbiAgICAgICAgICAgIDw+XG5cbiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzTmFtZT1cImJhY2tsaW5rLWNvbnRhaW5lclwiPlxuICAgICAgICAgICAgICAgICAgICB7bGlua0xpc3QubWFwKGFMaW5rID0+XG4gICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGtleT17YUxpbmsuc2x1Z30gY2xhc3NOYW1lPVwiYmFja2xpbmtcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7Lyo8TGluayBocmVmPXthTGluay5zbHVnfT4qL31cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8YSBocmVmPXthTGluay5zbHVnfT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHAgY2xhc3NOYW1lPVwiYmFja2xpbmstdGl0bGVcIj57YUxpbmsudGl0bGV9PC9wPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cCBjbGFzc05hbWU9XCJiYWNrbGluay1wcmV2aWV3XCI+e2FMaW5rLnNob3J0U3VtbWFyeX0gPC9wPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvYT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7Lyo8L0xpbms+Ki99XG4gICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAg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=webpack-internal:///./components/MDContent.js\n");

/***/ }),

/***/ "./lib/node.js":
Ú1«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourceP/*!*********************!*\
  !*** ./lib/node.js ***!
  \*********************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSource‹«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource_/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
qeval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"Node\": () => (/* binding */ Node)\n/* harmony export */ });\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! path */ \"path\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fs */ \"fs\");\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_1__);\n\n\nconst Node = {\n    isFile: function(filename) {\n        try {\n            return fs__WEBPACK_IMPORTED_MODULE_1___default().lstatSync(filename).isFile();\n        } catch (err) {\n            console.log(err);\n            return false;\n        }\n    },\n    getFullPath: function(folderPath) {\n        return fs__WEBPACK_IMPORTED_MODULE_1___default().readdirSync(folderPath).map((fn)=>path__WEBPACK_IMPORTED_MODULE_0___default().join(folderPath, fn)\n        );\n    },\n    getFiles: function(dir) {\n        var results = [];\n        var list = fs__WEBPACK_IMPORTED_MODULE_1___default().readdirSync(dir);\n        list.forEach(function(file) {\n            file = dir + '/' + file;\n            var stat = fs__WEBPACK_IMPORTED_MODULE_1___default().statSync(file);\n            if (stat && stat.isDirectory()) {\n                /* Recurse into a subdirectory */ results = results.concat(Node.getFiles(file));\n            } else {\n                /* Is a file */ results.push(file);\n            }\n        });\n        return results.filter((f)=>f.endsWith(\".md\")\n        );\n    },\n    readFileSync: function(fullPath) {\n        return fs__WEBPACK_IMPORTED_MODULE_1___default().readFileSync(fullPath, \"utf8\");\n    },\n    getMarkdownFolder: function() {\n        return path__WEBPACK_IMPORTED_MODULE_0___default().join(process.cwd(), 'posts');\n    }\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9saWIvbm9kZS5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUF1QjtBQUNKO0FBR1osS0FBSyxDQUFDRSxJQUFJLEdBQUcsQ0FBQztJQUNqQkMsTUFBTSxFQUFDLFFBQVEsQ0FBQ0MsUUFBUSxFQUFDLENBQUM7UUFDdEIsR0FBRyxDQUFDLENBQUM7WUFDRCxNQUFNLENBQUNILG1EQUFZLENBQUNHLFFBQVEsRUFBRUQsTUFBTTtRQUN4QyxDQUFDLENBQUMsS0FBSyxFQUFFRyxHQUFHLEVBQUUsQ0FBQztZQUNYQyxPQUFPLENBQUNDLEdBQUcsQ0FBQ0YsR0FBRztZQUNmLE1BQU0sQ0FBQyxLQUFLO1FBQ2hCLENBQUM7SUFFTCxDQUFDO0lBQ0RHLFdBQVcsRUFBQyxRQUFRLENBQUNDLFVBQVUsRUFBQyxDQUFDO1FBQzdCLE1BQU0sQ0FBQ1QscURBQWMsQ0FBQ1MsVUFBVSxFQUFFRSxHQUFHLEVBQUNDLEVBQUUsR0FBS2IsZ0RBQVMsQ0FBQ1UsVUFBVSxFQUFFRyxFQUFFOztJQUN6RSxDQUFDO0lBQ0RFLFFBQVEsRUFBRSxRQUFRLENBQUNDLEdBQUcsRUFBRSxDQUFDO1FBQ3JCLEdBQUcsQ0FBQ0MsT0FBTyxHQUFHLENBQUMsQ0FBQztRQUNoQixHQUFHLENBQ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XN1bHRzLnB1c2goZmlsZSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgICAgICByZXR1cm4gcmVzdWx0cy5maWx0ZXIoZiA9PiBmLmVuZHNXaXRoKFwiLm1kXCIpKVxuICAgIH0sXG4gICAgcmVhZEZpbGVTeW5jOmZ1bmN0aW9uKGZ1bGxQYXRoKXtcbiAgICAgICAgcmV0dXJuIGZzLnJlYWRGaWxlU3luYyhmdWxsUGF0aCwgXCJ1dGY4XCIpXG4gICAgfSxcblxuICAgIGdldE1hcmtkb3duRm9sZGVyOiBmdW5jdGlvbiAoKSB7XG4gICAgICAgIHJldHVybiBwYXRoLmpvaW4ocHJvY2Vzcy5jd2QoKSwgJ3Bvc3RzJylcbiAgICB9XG59Il0sIm5hbWVzIjpbInBhdGgiLCJmcyIsIk5vZGUiLCJpc0ZpbGUiLCJmaWxlbmFtZSIsImxzdGF0U3luYyIsImVyciIsImNvbnNvbGUiLCJsb2ciLCJnZXRGdWxsUGF0aCIsImZvbGRlclBhdGgiLCJyZWFkZGlyU3luYyIsIm1hcCIsImZuIiwiam9pbiIsImdldEZpbGVzIiwiZGlyIiwicmVzdWx0cyIsImxpc3QiLCJmb3JFYWNoIiwiZmlsZSIsInN0YXQiLCJzdGF0U3luYyIsImlzRGlyZWN0b3J5IiwiY29uY2F0IiwicHVzaCIsImZpbHRlciIsImYiLCJlbmRzV2l0aCIsInJlYWRGaWxlU3luYyIsImZ1bGxQYXRoIiwiZ2V0TWFya2Rvd25Gb2xkZXIiLCJwcm9jZXNzIiwiY3dkIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./lib/node.js\n");


/***/ })€†buffer†source„size„maps„hashÚ/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"Node\": () => (/* binding */ Node)\n/* harmony export */ });\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! path */ \"path\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fs */ \"fs\");\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_1__);\n\n\nconst Node = {\n    isFile: function(filename) {\n        try {\n            return fs__WEBPACK_IMPORTED_MODULE_1___default().lstatSync(filename).isFile();\n        } catch (err) {\n            console.log(err);\n            return false;\n        }\n    },\n    getFullPath: function(folderPath) {\n        return fs__WEBPACK_IMPORTED_MODULE_1___default().readdirSync(folderPath).map((fn)=>path__WEBPACK_IMPORTED_MODULE_0___default().join(folderPath, fn)\n        );\n    },\n    getFiles: function(dir) {\n        var results = [];\n        var list = fs__WEBPACK_IMPORTED_MODULE_1___default().readdirSync(dir);\n        list.forEach(function(file) {\n            file = dir + '/' + file;\n            var stat = fs__WEBPACK_IMPORTED_MODULE_1___default().statSync(file);\n            if (stat && stat.isDirectory()) {\n                /* Recurse into a subdirectory */ results = results.concat(Node.getFiles(file));\n            } else {\n                /* Is a file */ results.push(file);\n            }\n        });\n        return results.filter((f)=>f.endsWith(\".md\")\n        );\n    },\n    readFileSync: function(fullPath) {\n        return fs__WEBPACK_IMPORTED_MODULE_1___default().readFileSync(fullPath, \"utf8\");\n    },\n    getMarkdownFolder: function() {\n        return path__WEBPACK_IMPORTED_MODULE_0___default().join(process.cwd(), 'posts');\n    }\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9saWIvbm9kZS5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUF1QjtBQUNKO0FBR1osS0FBSyxDQUFDRSxJQUFJL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5hbWVzIjpbInBhdGgiLCJmcyIsIk5vZGUiLCJpc0ZpbGUiLCJmaWxlbmFtZSIsImxzdGF0U3luYyIsImVyciIsImNvbnNvbGUiLCJsb2ciLCJnZXRGdWxsUGF0aCIsImZvbGRlclBhdGgiLCJyZWFkZGlyU3luYyIsIm1hcCIsImZuIiwiam9pbiIsImdldEZpbGVzIiwiZGlyIiwicmVzdWx0cyIsImxpc3QiLCJmb3JFYWNoIiwiZmlsZSIsInN0YXQiLCJzdGF0U3luYyIsImlzRGlyZWN0b3J5IiwiY29uY2F0IiwicHVzaCIsImZpbHRlciIsImYiLCJlbmRzV2l0aCIsInJlYWRGaWxlU3luYyIsImZ1bGxQYXRoIiwiZ2V0TWFya2Rvd25Gb2xkZXIiLCJwcm9jZXNzIiwiY3dkIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./lib/node.js\n");

/***/ })€í*/*!*********************!*\
  !*** ./lib/node.js ***!
  \*********************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"Node\": () => (/* binding */ Node)\n/* harmony export */ });\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! path */ \"path\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fs */ \"fs\");\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_1__);\n\n\nconst Node = {\n    isFile: function(filename) {\n        try {\n            return fs__WEBPACK_IMPORTED_MODULE_1___default().lstatSync(filename).isFile();\n        } catch (err) {\n            console.log(err);\n            return false;\n        }\n    },\n    getFullPath: function(folderPath) {\n        return fs__WEBPACK_IMPORTED_MODULE_1___default().readdirSync(folderPath).map((fn)=>path__WEBPACK_IMPORTED_MODULE_0___default().join(folderPath, fn)\n        );\n    },\n    getFiles: function(dir) {\n        var results = [];\n        var list = fs__WEBPACK_IMPORTED_MODULE_1___default().readdirSync(dir);\n        list.forEach(function(file) {\n            file = dir + '/' + file;\n            var stat = fs__WEBPACK_IMPORTED_MODULE_1___default().statSync(file);\n            if (stat && stat.isDirectory()) {\n                /* Recurse into a subdirectory */ results = results.concat(Node.getFiles(file));\n            } else {\n                /* Is a file */ results.push(file);\n            }\n        });\n        return results.filter((f)=>f.endsWith(\".md\")\n        );\n    },\n    readFileSync: function(fullPath) {\n        return fs__WEBPACK_IMPORTED_MODULE_1___default().readFileSync(fullPath, \"utf8\");\n    },\n    getMarkdownFolder: function() {\n        return path__WEBPACK_IMPORTED_MODULE_0___default().join(process.cwd(), 'posts');\n    }\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9saWIvbm9kZS5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUF1QjtBQUNKO0FBR1osS0FBSyxDQUFDRSxJQUFJLEdBQUcsQ0FBQztJQUNqQkMsTUFBTSxFQUFDLFFBQVEsQ0FBQ0MsUUFBUSxFQUFDLENBQUM7UUFDdEIsR0FBRyxDQUFDLENBQUM7WUFDRCxNQUFNLENBQUNILG1EQUFZLENBQUNHLFFBQVEsRUFBRUQsTUFBTTtRQUN4QyxDQUFDLENBQUMsS0FBSyxFQUFFRyxHQUFHLEVBQUUsQ0FBQztZQUNYQyxPQUFPLENBQUNDLEdBQUcsQ0FBQ0YsR0FBRztZQUNmLE1BQU0sQ0FBQyxLQUFLO1FBQ2hCLENBQUM7SUFFTCxDQUFDO0lBQ0RHLFdBQVcsRUFBQyxRQUFRLENBQUNDLFVBQVUsRUFBQyxDQUFDO1FBQzdCLE1BQ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Gb2xkZXIiLCJwcm9jZXNzIiwiY3dkIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./lib/node.js\n");

/***/ })$,

/***/ "./lib/obsidian-image.js":
~V«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourcen/*!*******************************!*\
  !*** ./lib/obsidian-image.js ***!
  \*******************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSourceÎ*«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourceN/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
Å)eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ attacher)\n/* harmony export */ });\n/* harmony import */ var unist_util_visit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! unist-util-visit */ \"unist-util-visit\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([unist_util_visit__WEBPACK_IMPORTED_MODULE_0__]);\nunist_util_visit__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];\n\nconst regex = /\\!\\[\\[(([a-z\\-_0-9\\\\/\\:]+\\s*)+\\.(jpg|jpeg|png|gif|svg|webp))]]/gi;\nconst regex2 = /\\!\\[\\[(([a-z\\-_0-9\\\\/\\:]+\\s*)+\\.(jpg|jpeg|png|gif|svg|webp))]]/gi; //TODO why can't I reuse regex literal???\nfunction convertTextNode(node) {\n    const searchText = node.value;\n    /*\n    This regex MATCH following type of image link\n      ![[youtube.png]]    ==> Image with no folder path, no space in between\n      ![[a .png]]         ==> with space\n      ![[tuancao/a.png]]  ==> file path WITHOUT space\n      ![[tuancao/a .png]] ==> file path WITH space\n\n    Image with extension: jpg, jpeg, gif, svg, webp, png\n      ![[/tuancao/a.jpg]]\n      ![[/tuancao/a.webp]]\n      ![[/tuancao/a.png]]\n      ![[/tuancao/a.jpeg]]\n      ...\n\n      ---\n    Will NOT match following case\n\n      [[picture.jpg]] ==> Link without \"!\" at the begining won't match\n      ![[abc]] ==> without the extension\n      ![[/tuancao/a.md]] ==> Unsupported format\n      ![[/tuancao/a.mp4]]==> Unsupported format\n    */ const matches = searchText.matchAll(regex);\n    let startIndex = 0;\n    let endIndex = searchText.length;\n    let children = [];\n    for (const match of matches){\n        endIndex = match.index;\n        // Constructing text node from un-matched string\n        const textNode = {\n            // change type child node, so that visit() function won't recursively visit this node with \"text\" type\n            type: \"text-temp\",\n            value: searchText.substring(startIndex, endIndex)\n        };\n        const imageNode = {\n            type: \"image\",\n            //TODO: Use some kind of option to pass in default images path\n            url: encodeURI(`/images/${match[1]}`),\n            alt: match[1]\n        };\n        children.push(imageNode);\n        let matchEndIndex = match.index + match[0].length;\n        startIndex = matchEndIndex;\n    }\n    if (startIndex < searchText.length) {\n        const textNode = {\n            type: \"text-temp\",\n            value: searchText.substring(startIndex, searchText.length)\n        };\n        children.push(textNode);\n    }\n    return {\n        type: \"paragraph\",\n        children: children\n    };\n}\nfunction attacher(options) {\n    return function transformer(tree, vfile) {\n        (0,unist_util_visit__WEBPACK_IMPORTED_MODULE_0__.visit)(tree, \"text\", (node)=>{\n            if (regex2.test(node.value)) {\n                const newNode = convertTextNode(node);\n                node.type = \"paragraph\";\n                node.children = newNode.children;\n            }\n        });\n        // Change back \"text-temp\" node ==> \"text\" to clean up\n        (0,unist_util_visit__WEBPACK_IMPORTED_MODULE_0__.visit)(tree, \"text-temp\", (node)=>{\n            node.type = \"text\";\n        });\n        return tree;\n    };\n};\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9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yY2hUZXh0IiwidmFsdWUiLCJtYXRjaGVzIiwibWF0Y2hBbGwiLCJzdGFydEluZGV4IiwiZW5kSW5kZXgiLCJsZW5ndGgiLCJjaGlsZHJlbiIsIm1hdGNoIiwiaW5kZXgiLCJ0ZXh0Tm9kZSIsInR5cGUiLCJzdWJzdHJpbmciLCJpbWFnZU5vZGUiLCJ1cmwiLCJlbmNvZGVVUkkiLCJhbHQiLCJwdXNoIiwibWF0Y2hFbmRJbmRleCIsImF0dGFjaGVyIiwib3B0aW9ucyIsInRyYW5zZm9ybWVyIiwidHJlZSIsInZmaWxlIiwidGVzdCIsIm5ld05vZGUiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./lib/obsidian-image.js\n");


/***/ })€†buffer†source„size„maps„hash*/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ attacher)\n/* harmony export */ });\n/* harmony import */ var unist_util_visit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! unist-util-visit */ \"unist-util-visit\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([unist_util_visit__WEBPACK_IMPORTED_MODULE_0__]);\nunist_util_visit__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];\n\nconst regex = /\\!\\[\\[(([a-z\\-_0-9\\\\/\\:]+\\s*)+\\.(jpg|jpeg|png|gif|svg|webp))]]/gi;\nconst regex2 = /\\!\\[\\[(([a-z\\-_0-9\\\\/\\:]+\\s*)+\\.(jpg|jpeg|png|gif|svg|webp))]]/gi; //TODO why can't I reuse regex literal???\nfunction convertTextNode(node) {\n    const searchText = node.value;\n    /*\n    This regex MATCH following type of image link\n      ![[youtube.png]]    ==> Image with no folder path, no space in between\n      ![[a .png]]         ==> with space\n      ![[tuancao/a.png]]  ==> file path WITHOUT space\n      ![[tuancao/a .png]] ==> file path WITH space\n\n    Image with extension: jpg, jpeg, gif, svg, webp, png\n      ![[/tuancao/a.jpg]]\n      ![[/tuancao/a.webp]]\n      ![[/tuancao/a.png]]\n      ![[/tuancao/a.jpeg]]\n      ...\n\n      ---\n    Will NOT match following case\n\n      [[picture.jpg]] ==> Link without \"!\" at the begining won't match\n      ![[abc]] ==> without the extension\n      ![[/tuancao/a.md]] ==> Unsupported format\n      ![[/tuancao/a.mp4]]==> Unsupported format\n    */ const matches = searchText.matchAll(regex);\n    let startIndex = 0;\n    let endIndex = searchText.length;\n    let children = [];\n    for (const match of matches){\n        endIndex = match.index;\n        // Constructing text node from un-matched string\n        const textNode = {\n            // change type child node, so that visit() function won't recursively visit this node with \"text\" type\n            type: \"text-temp\",\n            value: searchText.substring(startIndex, endIndex)\n        };\n        const imageNode = {\n            type: \"image\",\n            //TODO: Use some kind of option to pass in default images path\n            url: encodeURI(`/images/${match[1]}`),\n            alt: match[1]\n        };\n        children.push(imageNode);\n        let matchEndIndex = match.index + match[0].length;\n        startIndex = matchEndIndex;\n    }\n    if (startIndex < searchText.length) {\n        const textNode = {\n            type: \"text-temp\",\n            value: searchText.substring(startIndex, searchText.length)\n        };\n        children.push(textNode);\n    }\n    return {\n        type: \"paragraph\",\n        children: children\n    };\n}\nfunction attacher(options) {\n    return function transformer(tree, vfile) {\n        (0,unist_util_visit__WEBPACK_IMPORTED_MODULE_0__.visit)(tree, \"text\", (node)=>{\n            if (regex2.test(node.value)) {\n                const newNode = convertTextNode(node);\n                node.type = \"paragraph\";\n                node.children = newNode.children;\n            }\n        });\n        // Change back \"text-temp\" node ==> \"text\" to clean up\n        (0,unist_util_visit__WEBPACK_IMPORTED_MODULE_0__.visit)(tree, \"text-temp\", (node)=>{\n            node.type = \"text\";\n        });\n        return tree;\n    };\n};\n\n__webpack_async_result__();\n}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ICAgICAgICBjb25zdCB0ZXh0Tm9kZSA9IHtcbiAgICAgICAgICAgIHR5cGU6IFwidGV4dC10ZW1wXCIsXG4gICAgICAgICAgICB2YWx1ZTogc2VhcmNoVGV4dC5zdWJzdHJpbmcoc3RhcnRJbmRleCwgc2VhcmNoVGV4dC5sZW5ndGgpLFxuICAgICAgICB9O1xuICAgICAgICBjaGlsZHJlbi5wdXNoKHRleHROb2RlKTtcbiAgICB9XG5cbiAgICByZXR1cm4ge1xuICAgICAgICB0eXBlOiBcInBhcmFncmFwaFwiLFxuICAgICAgICBjaGlsZHJlbjogY2hpbGRyZW4sXG4gICAgfTtcbn1cblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gYXR0YWNoZXIob3B0aW9ucykge1xuICAgIHJldHVybiBmdW5jdGlvbiB0cmFuc2Zvcm1lcih0cmVlLCB2ZmlsZSkge1xuICAgICAgICB2aXNpdCh0cmVlLCBcInRleHRcIiwgKG5vZGUpID0+IHtcbiAgICAgICAgICAgIGlmIChyZWdleDIudGVzdChub2RlLnZhbHVlKSkge1xuICAgICAgICAgICAgICAgIGNvbnN0IG5ld05vZGUgPSBjb252ZXJ0VGV4dE5vZGUobm9kZSk7XG4gICAgICAgICAgICAgICAgbm9kZS50eXBlID0gXCJwYXJhZ3JhcGhcIjtcbiAgICAgICAgICAgICAgICBub2RlLmNoaWxkcmVuID0gbmV3Tm9kZS5jaGlsZHJlbjtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG5cbiAgICAgICAgLy8gQ2hhbmdlIGJhY2sgXCJ0ZXh0LXRlbXBcIiBub2RlID09PiBcInRleHRcIiB0byBjbGVhbiB1cFxuICAgICAgICB2aXNpdCh0cmVlLCBcInRleHQtdGVtcFwiLCAobm9kZSkgPT4ge1xuICAgICAgICAgICAgbm9kZS50eXBlID0gXCJ0ZXh0XCI7XG4gICAgICAgIH0pO1xuXG4gICAgICAgIHJldHVybiB0cmVlO1xuICAgIH07XG59XG4iXSwibmFtZXMiOlsidmlzaXQiLCJyZWdleCIsInJlZ2V4MiIsImNvbnZlcnRUZXh0Tm9kZSIsIm5vZGUiLCJzZWFyY2hUZXh0IiwidmFsdWUiLCJtYXRjaGVzIiwibWF0Y2hBbGwiLCJzdGFydEluZGV4IiwiZW5kSW5kZXgiLCJsZW5ndGgiLCJjaGlsZHJlbiIsIm1hdGNoIiwiaW5kZXgiLCJ0ZXh0Tm9kZSIsInR5cGUiLCJzdWJzdHJpbmciLCJpbWFnZU5vZGUiLCJ1cmwiLCJlbmNvZGVVUkkiLCJhbHQiLCJwdXNoIiwibWF0Y2hFbmRJbmRleCIsImF0dGFjaGVyIiwib3B0aW9ucyIsInRyYW5zZm9ybWVyIiwidHJlZSIsInZmaWxlIiwidGVzdCIsIm5ld05vZGUiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./lib/obsidian-image.js\n");

/***/ })€ç‹*/*!*******************************!*\
  !*** ./lib/obsidian-image.js ***!
  \*******************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ attacher)\n/* harmony export */ });\n/* harmony import */ var unist_util_visit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! unist-util-visit */ \"unist-util-visit\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([unist_util_visit__WEBPACK_IMPORTED_MODULE_0__]);\nunist_util_visit__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];\n\nconst regex = /\\!\\[\\[(([a-z\\-_0-9\\\\/\\:]+\\s*)+\\.(jpg|jpeg|png|gif|svg|webp))]]/gi;\nconst regex2 = /\\!\\[\\[(([a-z\\-_0-9\\\\/\\:]+\\s*)+\\.(jpg|jpeg|png|gif|svg|webp))]]/gi; //TODO why can't I reuse regex literal???\nfunction convertTextNode(node) {\n    const searchText = node.value;\n    /*\n    This regex MATCH following type of image link\n      ![[youtube.png]]    ==> Image with no folder path, no space in between\n      ![[a .png]]         ==> with space\n      ![[tuancao/a.png]]  ==> file path WITHOUT space\n      ![[tuancao/a .png]] ==> file path WITH space\n\n    Image with extension: jpg, jpeg, gif, svg, webp, png\n      ![[/tuancao/a.jpg]]\n      ![[/tuancao/a.webp]]\n      ![[/tuancao/a.png]]\n      ![[/tuancao/a.jpeg]]\n      ...\n\n      ---\n    Will NOT match following case\n\n      [[picture.jpg]] ==> Link without \"!\" at the begining won't match\n      ![[abc]] ==> without the extension\n      ![[/tuancao/a.md]] ==> Unsupported format\n      ![[/tuancao/a.mp4]]==> Unsupported format\n    */ const matches = searchText.matchAll(regex);\n    let startIndex = 0;\n    let endIndex = searchText.length;\n    let children = [];\n    for (const match of matches){\n        endIndex = match.index;\n        // Constructing text node from un-matched string\n        const textNode = {\n            // change type child node, so that visit() function won't recursively visit this node with \"text\" type\n            type: \"text-temp\",\n            value: searchText.substring(startIndex, endIndex)\n        };\n        const imageNode = {\n            type: \"image\",\n            //TODO: Use some kind of option to pass in default images path\n            url: encodeURI(`/images/${match[1]}`),\n            alt: match[1]\n        };\n        children.push(imageNode);\n        let matchEndIndex = match.index + match[0].length;\n        startIndex = matchEndIndex;\n    }\n    if (startIndex < searchText.length) {\n        const textNode = {\n            type: \"text-temp\",\n            value: searchText.substring(startIndex, searchText.length)\n        };\n        children.push(textNode);\n    }\n    return {\n        type: \"paragraph\",\n        children: children\n    };\n}\nfunction attacher(options) {\n    return function transformer(tree, vfile) {\n        (0,unist_util_visit__WEBPACK_IMPORTED_MODULE_0__.visit)(tree, \"text\", (node)=>{\n            if (regex2.test(node.value)) {\n                const newNode = convertTextNode(node);\n                node.type = \"paragraph\";\n                node.children = newNode.children;\n            }\n        });\n        // Change back \"text-temp\" node ==> \"text\" to clean up\n        (0,unist_util_visit__WEBPACK_IMPORTED_MODULE_0__.visit)(tree, \"text-temp\", (node)=>{\n            node.type = \"text\";\n        });\n        return tree;\n    };\n};\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9saWIvb2JzaWRpYW4taW1hZ2UuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBc0M7QUFFdEMsS0FBSyxDQUFDQyxLQUFLO0FBQ1gsS0FBSyxDQUFDQyxNQUFNLHNFQUF1RSxDQUF5QztTQUVuSEMsZUFBZSxDQUFDQyxJQUFJLEVBQUUsQ0FBQztJQUM1QixLQUFLLENBQUNDLFVBQVUsR0FBR0QsSUFBSSxDQUFDRSxLQUFLO0lBRTdCLEVBcUJFOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7SUFBQSxHQUNGLEtBQUssQ0FBQ0MsT0FBTyxHQUFHRixVQUFVLENBQUNHLFFBQVEsQ0FDL0JQLEtBQUs7SUFHVCxHQUFHLENBQUNRLFVBQVUsR0FBRyxDQUFDO0lBQ2xCLEdBQUcsQ0FBQ0MsUUFBUSxHQUFHTCxVQUFVLENBQUNNLE1BQU07SUFFaEMsR0FBRyxDQUFDQyxRQUFRLEdBQUcsQ0FBQyxDQUFDO0lBQ2pCLEdBQUcsRUFBRSxLQUFLLENBQUNDLEtBQUssSUFBSU4sT0FBTyxDQUFFLENBQUM7UUFDMUJHLFFBQVEsR0FBR0csS0FBSyxDQUFDQyxLQUFLO1FBRXRCLEVBQWdEO1FBQ2hELEtBQUssQ0FBQ0MsUUFBUSxHQUFHLENBQUM7WUFDZCxFQUFzRztZQUN0R0MsSUFBSSxFQUFFLENBQVc7WUFDakJWLEtBQUssRUFBRUQsVUFBVSxDQUFDWSxTQUFTLENBQUNSLFVBQVUsRUFBRUMsUUFBUTtRQUNwRCxDQUFDO1FBR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gICAgICAgbm9kZS50eXBlID0gXCJ0ZXh0XCI7XG4gICAgICAgIH0pO1xuXG4gICAgICAgIHJldHVybiB0cmVlO1xuICAgIH07XG59XG4iXSwibmFtZXMiOlsidmlzaXQiLCJyZWdleCIsInJlZ2V4MiIsImNvbnZlcnRUZXh0Tm9kZSIsIm5vZGUiLCJzZWFyY2hUZXh0IiwidmFsdWUiLCJtYXRjaGVzIiwibWF0Y2hBbGwiLCJzdGFydEluZGV4IiwiZW5kSW5kZXgiLCJsZW5ndGgiLCJjaGlsZHJlbiIsIm1hdGNoIiwiaW5kZXgiLCJ0ZXh0Tm9kZSIsInR5cGUiLCJzdWJzdHJpbmciLCJpbWFnZU5vZGUiLCJ1cmwiLCJlbmNvZGVVUkkiLCJhbHQiLCJwdXNoIiwibWF0Y2hFbmRJbmRleCIsImF0dGFjaGVyIiwib3B0aW9ucyIsInRyYW5zZm9ybWVyIiwidHJlZSIsInZmaWxlIiwidGVzdCIsIm5ld05vZGUiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./lib/obsidian-image.js\n");

/***/ })!,

/***/ "./lib/transformer.js":
q	«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourcee/*!****************************!*\
  !*** ./lib/transformer.js ***!
  \****************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSourceL„«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourceN/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
Cƒeval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"Transformer\": () => (/* binding */ Transformer)\n/* harmony export */ });\n/* harmony import */ var gray_matter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! gray-matter */ \"gray-matter\");\n/* harmony import */ var gray_matter__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(gray_matter__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var unified__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! unified */ \"unified\");\n/* harmony import */ var unified__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(unified__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var remark_parse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! remark-parse */ \"remark-parse\");\n/* harmony import */ var remark_parse__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(remark_parse__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var remark_wiki_link__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! remark-wiki-link */ \"remark-wiki-link\");\n/* harmony import */ var remark_wiki_link__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(remark_wiki_link__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var remark_html__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! remark-html */ \"remark-html\");\n/* harmony import */ var remark_html__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(remark_html__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var remark_frontmatter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! remark-frontmatter */ \"remark-frontmatter\");\n/* harmony import */ var remark_frontmatter__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(remark_frontmatter__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var remark_external_links__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! remark-external-links */ \"remark-external-links\");\n/* harmony import */ var remark_external_links__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(remark_external_links__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var remark_highlight_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! remark-highlight.js */ \"remark-highlight.js\");\n/* harmony import */ var remark_highlight_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(remark_highlight_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _node__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./node */ \"./lib/node.js\");\n/* harmony import */ var rehype_prism_plus__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rehype-prism-plus */ \"rehype-prism-plus\");\n/* harmony import */ var remark_rehype__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! remark-rehype */ \"remark-rehype\");\n/* harmony import */ var rehype_stringify__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rehype-stringify */ \"rehype-stringify\");\n/* harmony import */ var _obsidian_image_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./obsidian-image.js */ \"./lib/obsidian-image.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./utils */ \"./lib/utils.js\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([rehype_prism_plus__WEBPACK_IMPORTED_MODULE_9__, remark_rehype__WEBPACK_IMPORTED_MODULE_10__, rehype_stringify__WEBPACK_IMPORTED_MODULE_11__, _obsidian_image_js__WEBPACK_IMPORTED_MODULE_12__, _utils__WEBPACK_IMPORTED_MODULE_13__]);\n([rehype_prism_plus__WEBPACK_IMPORTED_MODULE_9__, remark_rehype__WEBPACK_IMPORTED_MODULE_10__, rehype_stringify__WEBPACK_IMPORTED_MODULE_11__, _obsidian_image_js__WEBPACK_IMPORTED_MODULE_12__, _utils__WEBPACK_IMPORTED_MODULE_13__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst Transformer = {\n    haveFrontMatter: function(content) {\n        //console.log(\"\\t Front matter data content\", content)\n        if (!content) return false;\n        const indexOfFirst = content.indexOf(\"---\");\n        //console.log(\"\\t Front matter data firstIndex  \", indexOfFirst)\n        //console.log(\"index first\", indexOfFirst)\n        if (indexOfFirst === -1) {\n            return false;\n        }\n        let indexOfSecond = content.indexOf(\"---\", indexOfFirst + 1);\n        return indexOfSecond !== -1;\n    },\n    getFrontMatterData: function(filecontent) {\n        if (Transformer.haveFrontMatter(filecontent)) {\n            return gray_matter__WEBPACK_IMPORTED_MODULE_0___default()(filecontent).data;\n        }\n        return {};\n    },\n    pageResolver: function(pageName) {\n        const allFileNames = (0,_utils__WEBPACK_IMPORTED_MODULE_13__.getAllMarkdownFiles)();\n        const result = allFileNames.find((aFile)=>{\n            let parseFileNameFromPath = Transformer.parseFileNameFromPath(aFile);\n            return Transformer.normalizeFileName(parseFileNameFromPath) === Transformer.normalizeFileName(pageName);\n        });\n        // permalink = permalink.replace(\"Ã§\", \"c\").replace(\"Ä±\", \"i\").replace(\"ÅŸ\", \"s\")\n        // console.log(`/note/${toSlug(result)}`)\n        if (result === undefined || result.length === 0) {\n        // console.log(\"Cannot resolve file path   \" + pageName)\n        }\n        // console.log(\"Internal Link resolved:   [\" + pageName + \"] ==> [\" + temp[0] +\"]\")\n        return result !== undefined && result.length > 0 ? [\n            (0,_utils__WEBPACK_IMPORTED_MODULE_13__.toSlug)(result)\n        ] : [\n            \"/\"\n        ];\n    },\n    hrefTemplate: function(permalink) {\n        // permalink = Transformer.normalizeFileName(permalink)\n        permalink = permalink.replace(\"\\xe7\", \"c\").replace(\"Ä±\", \"i\").replace(\"ÅŸ\", \"s\");\n        return `/note/${permalink}`;\n    },\n    getHtmlContent: function(content) {\n        let htmlContent = [];\n        const sanitizedContent = Transformer.preprocessThreeDashes(content);\n        unified__WEBPACK_IMPORTED_MODULE_1___default()().use((remark_parse__WEBPACK_IMPORTED_MODULE_2___default()), {\n            gfm: true\n        }).use(_obsidian_image_js__WEBPACK_IMPORTED_MODULE_12__[\"default\"]).use((remark_highlight_js__WEBPACK_IMPORTED_MODULE_7___default())).use((remark_external_links__WEBPACK_IMPORTED_MODULE_6___default()), {\n            target: \"_blank\",\n            rel: [\n                'noopener'\n            ]\n        })// .use(frontmatter, ['yaml', 'toml'])\n        .use(remark_wiki_link__WEBPACK_IMPORTED_MODULE_3__.wikiLinkPlugin, {\n            permalinks: null,\n            pageResolver: function(pageName) {\n                return Transformer.pageResolver(pageName);\n            },\n            hrefTemplate: function(permalink) {\n                return Transformer.hrefTemplate(permalink);\n            },\n            aliasDivider: \"|\"\n        }).use(remark_rehype__WEBPACK_IMPORTED_MODULE_10__[\"default\"]).use(rehype_prism_plus__WEBPACK_IMPORTED_MODULE_9__[\"default\"]).use(rehype_stringify__WEBPACK_IMPORTED_MODULE_11__[\"default\"]).process(sanitizedContent, function(err, file) {\n            htmlContent.push(String(file).replace(\"\\n\", \"\"));\n            if (err) {\n                console.log(\"ERRROR:\" + err);\n            }\n        });\n        htmlContent = htmlContent.join(\"\");\n        htmlContent = htmlContent.split(\"---\");\n        return [\n            htmlContent\n        ];\n    },\n    /* SANITIZE MARKDOWN FOR --- */ preprocessThreeDashes: function(content) {\n        const indexOfFirst = content.indexOf(\"---\");\n        if (indexOfFirst === -1) {\n            return content;\n        }\n        const indexOfSecond = content.indexOf(\"---\", indexOfFirst + 1);\n        content.slice(0, indexOfSecond);\n        const contentPart = content.slice(indexOfSecond);\n        return contentPart.split(\"---\").join(\"\");\n    },\n    /* Normalize File Names */ normalizeFileName: function(filename) {\n        let processedFileName = filename.replace(\".md\", \"\");\n        processedFileName = processedFileName.replace('(', '').replace(')', '');\n        processedFileName = processedFileName.split(\" \").join(\"-\");\n        processedFileName = processedFileName.toLowerCase();\n        const conversionLetters = [\n            [\n                \"\\xe7\",\n                \"c\"\n            ],\n            [\n                \"ÅŸ\",\n                \"s\"\n            ],\n            [\n                \"Ä±\",\n                \"i\"\n            ],\n            [\n                \"\\xfc\",\n                \"u\"\n            ],\n            [\n                \"\\xf6\",\n                \"o\"\n            ],\n            [\n                \"ÄŸ\",\n                \"g\"\n            ],\n            [\n                \"\\xc7\",\n                \"C\"\n            ],\n            [\n                \"Å�\",\n                \"S\"\n            ],\n            [\n                \"Ä°\",\n                \"I\"\n            ],\n            [\n                \"\\xdc\",\n                \"U\"\n            ],\n            [\n                \"\\xd6\",\n                \"O\"\n            ],\n            [\n                \"Ä�\",\n                \"G\"\n            ]\n        ];\n        conversionLetters.forEach((letterPair)=>{\n            processedFileName = processedFileName.split(letterPair[0]).join(letterPair[1]);\n        //processedFileName = processedFileName.replace(letterPair[0], letterPair[1])\n        });\n        //console.log(\"filename\", processedFileName)\n        return processedFileName;\n    },\n    /* Parse file name from path then sanitize it */ parseFileNameFromPath: function(filepath) {\n        if (typeof filepath === 'string' && filepath.includes(\"/\")) {\n            const parsedFileFromPath = filepath.split(\"/\")[filepath.split(\"/\").length - 1];\n            return parsedFileFromPath.replace(\".md\", \"\");\n        } else {\n            console.log(\"Failed: CANNOT Parse\" + filepath);\n            return null;\n        }\n    },\n    /* Pair provided and existing Filenames*/ getInternalLinks: function(aFilePath) {\n        const fileContent = _node__WEBPACK_IMPORTED_MODULE_8__.Node.readFileSync(aFilePath);\n        const internalLinks = [];\n        const sanitizedContent = Transformer.preprocessThreeDashes(fileContent);\n        unified__WEBPACK_IMPORTED_MODULE_1___default()().use((remark_parse__WEBPACK_IMPORTED_MODULE_2___default()), {\n            gfm: true\n        }).use(remark_wiki_link__WEBPACK_IMPORTED_MODULE_3__.wikiLinkPlugin, {\n            pageResolver: function(pageName) {\n                // let name = [Transformer.parseFileNameFromPath(pageName)];\n                let canonicalSlug;\n                if (pageName.includes('#')) {\n                    // console.log(pageName)\n                    const tempSlug = pageName.split('#')[0];\n                    if (tempSlug.length === 0) {\n                        // Meaning it in form of #Heading1 --> slug will be this file slug\n                        canonicalSlug = (0,_utils__WEBPACK_IMPORTED_MODULE_13__.toSlug)(aFilePath);\n                    } else {\n                        canonicalSlug = Transformer.pageResolver(tempSlug)[0].split('#')[0];\n                    }\n                } else {\n                    canonicalSlug = Transformer.pageResolver(pageName)[0].split('#')[0];\n                }\n                const backLink = {\n                    title: Transformer.parseFileNameFromPath((0,_utils__WEBPACK_IMPORTED_MODULE_13__.toFilePath)(canonicalSlug)),\n                    slug: canonicalSlug,\n                    shortSummary: canonicalSlug\n                };\n                if (canonicalSlug != null && internalLinks.indexOf(canonicalSlug) < 0) {\n                    internalLinks.push(backLink);\n                }\n                return [\n                    canonicalSlug\n                ];\n            },\n            hrefTemplate: function(permalink) {\n                return Transformer.hrefTemplate(permalink);\n            },\n            aliasDivider: \"|\"\n        }).use((remark_html__WEBPACK_IMPORTED_MODULE_4___default())).processSync(sanitizedContent);\n        // console.log(\"Internal Links of:   \"  + aFilePath)\n        // internalLinks.forEach(aLink => {\n        //     console.log(aLink.title + \" --> \" + aLink.slug)\n        // })\n        // console.log(\"===============Internal Links\")\n        return internalLinks;\n    }\n};\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9saWIvdHJhbnNmb3JtZXIuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBZ0M7QUFDSDtBQUNNO0FBQ1k7QUFDakI7QUFDYztBQUNLO0FBQ047QUFDaEI7QUFDZ0I7QUFDSDtBQUNNO0FBQ0M7QUFDZ0I7QUFFeEQsS0FBSyxDQUFDZ0IsV0FBVyxHQUFHLENBQUM7SUFDeEJDLGVBQWUsRUFBRSxRQUFRLENBQUVDLE9BQU8sRUFBRSxDQUFDO1FBQ2pDLEVBQXNEO1FBQ3RELEVBQUUsR0FBR0EsT0FBTyxFQUFFLE1BQU0sQ0FBQyxLQUFLO1FB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KSAgICAgICAgXG4gICAgICAgICAgICAudXNlKGV4dGVybmFsTGlua3MsIHt0YXJnZXQ6IFwiX2JsYW5rXCIsIHJlbDogWydub29wZW5lciddfSlcbiAgICAgICAgICAgIC8vIC51c2UoZnJvbnRtYXR0ZXIsIFsneWFtbCcsICd0b21sJ10pXG4gICAgICAgICAgICAudXNlKHdpa2lMaW5rUGx1Z2luLCB7XG4gICAgICAgICAgICAgICAgcGVybWFsaW5rczogbnVsbCxcbiAgICAgICAgICAgICAgICBwYWdlUmVzb2x2ZXI6IGZ1bmN0aW9uIChwYWdlTmFtZSkge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gVHJhbnNmb3JtZXIucGFnZVJlc29sdmVyKHBhZ2VOYW1lKVxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgaHJlZlRlbXBsYXRlOiBmdW5jdGlvbiAocGVybWFsaW5rKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiAgVHJhbnNmb3JtZXIuaHJlZlRlbXBsYXRlKHBlcm1hbGluayk7XG4gICAgICAgICAgICAgICAgfSxcblxuICAgICAgICAgICAgICAgIGFsaWFzRGl2aWRlcjogXCJ8XCJcbiAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAudXNlKHJlbWFya1JlaHlwZSlcbiAgICAgICAgICAgIC51c2UocmVoeXBlUHJpc20pXG4gICAgICAgICAgICAudXNlKHJlaHlwZVN0cmluZ2lmeSlcbiAgICAgICAgICAgIC5wcm9jZXNzKHNhbml0aXplZENvbnRlbnQsXG4gICAgICAgICAgICAgICAgZnVuY3Rpb24gKGVyciwgZmlsZSkge1xuICAgICAgICAgICAgICAgICAgICBodG1sQ29udGVudC5wdXNoKFN0cmluZyhmaWxlKS5yZXBsYWNlKFwiXFxuXCIsIFwiXCIpKVxuICAgICAgICAgICAgICAgICAgICBpZiAoZXJyKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhcIkVSUlJPUjpcIiArI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gICAgIHBhZ2VSZXNvbHZlcjogZnVuY3Rpb24gKHBhZ2VOYW1lKSB7XG5cbiAgICAgICAgICAgICAgICAgICAgLy8gbGV0IG5hbWUgPSBbVHJhbnNmb3JtZXIucGFyc2VGaWxlTmFtZUZyb21QYXRoKHBhZ2VOYW1lKV07XG5cbiAgICAgICAgICAgICAgICAgICAgbGV0IGNhbm9uaWNhbFNsdWc7XG4gICAgICAgICAgICAgICAgICAgIGlmIChwYWdlTmFtZS5pbmNsdWRlcygnIycpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBjb25zb2xlLmxvZyhwYWdlTmFtZSlcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IHRlbXBTbHVnID0gcGFnZU5hbWUuc3BsaXQoJyMnKVswXVxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHRlbXBTbHVnLmxlbmd0aCA9PT0gMCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIE1lYW5pbmcgaXQgaW4gZm9ybSBvZiAjSGVhZGluZzEgLS0+IHNsdWcgd2lsbCBiZSB0aGlzIGZpbGUgc2x1Z1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhbm9uaWNhbFNsdWcgPSB0b1NsdWcoYUZpbGVQYXRoKVxuICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYW5vbmljYWxTbHVnID1UcmFuc2Zvcm1lci5wYWdlUmVzb2x2ZXIodGVtcFNsdWcpWzBdLnNwbGl0KCcjJylbMF1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNhbm9uaWNhbFNsdWcgPSBUcmFuc2Zvcm1lci5wYWdlUmVzb2x2ZXIocGFnZU5hbWUpWzBdLnNwbGl0KCcjJylbMF1cbiAgICAgICAgICAgICAgICAgICAgfVxuXG5cbiAgICAgICAgICAgICAgICAgICAgY29uc3QgYmFja0xpbmsgPSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aXRsZTogVHJhbnNmb3JtZXIucGFyc2VGaWxlTmFtZUZyb21QYXRoKHRvRmlsZVBhdGgoY2Fub25pY2FsU2x1ZykpLFxuICAgICAgICAgICAgICAgICAgICAgICAgc2x1ZzogY2Fub25pY2FsU2x1ZyxcbiAgICAgICAgICAgICAgICAgICAgICAgIHNob3J0U3VtbWFyeTogY2Fub25pY2FsU2x1Z1xuICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgaWYgKGNhbm9uaWNhbFNsdWcgIT0gbnVsbCAmJiBpbnRlcm5hbExpbmtzLmluZGV4T2YoY2Fub25pY2FsU2x1ZykgPCAwKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpbnRlcm5hbExpbmtzLnB1c2goYmFja0xpbmspO1xuICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFtjYW5vbmljYWxTbHVnXVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAsXG4gICAgICAgICAgICAgICAgaHJlZlRlbXBsYXRlOiBmdW5jdGlvbiAocGVybWFsaW5rKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBUcmFuc2Zvcm1lci5ocmVmVGVtcGxhdGUocGVybWFsaW5rKVxuICAgICAgICAgICAgICAgIH0sXG5cbiAgICAgICAgICAgICAgICBhbGlhc0RpdmlkZXI6IFwifFwiXG4gICAgICAgICAgICB9KVxuICAgICAgICAgICAgLnVzZShodG1sKVxuICAgICAgICAgICAgLnByb2Nlc3NTeW5jKHNhbml0aXplZENvbnRlbnQpXG5cbiAgICAgICAgLy8gY29uc29sZS5sb2coXCJJbnRlcm5hbCBMaW5rcyBvZjogICBcIiAgKyBhRmlsZVBhdGgpXG4gICAgICAgIC8vIGludGVybmFsTGlua3MuZm9yRWFjaChhTGluayA9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XIiLCJwcm9jZXNzIiwiZXJyIiwiZmlsZSIsInB1c2giLCJTdHJpbmciLCJjb25zb2xlIiwibG9nIiwiam9pbiIsInNwbGl0Iiwic2xpY2UiLCJjb250ZW50UGFydCIsImZpbGVuYW1lIiwicHJvY2Vzc2VkRmlsZU5hbWUiLCJ0b0xvd2VyQ2FzZSIsImNvbnZlcnNpb25MZXR0ZXJzIiwiZm9yRWFjaCIsImxldHRlclBhaXIiLCJmaWxlcGF0aCIsImluY2x1ZGVzIiwicGFyc2VkRmlsZUZyb21QYXRoIiwiZ2V0SW50ZXJuYWxMaW5rcyIsImFGaWxlUGF0aCIsImZpbGVDb250ZW50IiwicmVhZEZpbGVTeW5jIiwiaW50ZXJuYWxMaW5rcyIsImNhbm9uaWNhbFNsdWciLCJ0ZW1wU2x1ZyIsImJhY2tMaW5rIiwidGl0bGUiLCJzbHVnIiwic2hvcnRTdW1tYXJ5IiwicHJvY2Vzc1N5bmMiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./lib/transformer.js\n");


/***/ })€†buffer†source„size„maps„hash›ƒ/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"Transformer\": () => (/* binding */ Transformer)\n/* harmony export */ });\n/* harmony import */ var gray_matter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! gray-matter */ \"gray-matter\");\n/* harmony import */ var gray_matter__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(gray_matter__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var unified__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! unified */ \"unified\");\n/* harmony import */ var unified__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(unified__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var remark_parse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! remark-parse */ \"remark-parse\");\n/* harmony import */ var remark_parse__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(remark_parse__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var remark_wiki_link__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! remark-wiki-link */ \"remark-wiki-link\");\n/* harmony import */ var remark_wiki_link__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(remark_wiki_link__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var remark_html__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! remark-html */ \"remark-html\");\n/* harmony import */ var remark_html__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(remark_html__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var remark_frontmatter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! remark-frontmatter */ \"remark-frontmatter\");\n/* harmony import */ var remark_frontmatter__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(remark_frontmatter__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var remark_external_links__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! remark-external-links */ \"remark-external-links\");\n/* harmony import */ var remark_external_links__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(remark_external_links__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var remark_highlight_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! remark-highlight.js */ \"remark-highlight.js\");\n/* harmony import */ var remark_highlight_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(remark_highlight_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _node__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./node */ \"./lib/node.js\");\n/* harmony import */ var rehype_prism_plus__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rehype-prism-plus */ \"rehype-prism-plus\");\n/* harmony import */ var remark_rehype__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! remark-rehype */ \"remark-rehype\");\n/* harmony import */ var rehype_stringify__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rehype-stringify */ \"rehype-stringify\");\n/* harmony import */ var _obsidian_image_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./obsidian-image.js */ \"./lib/obsidian-image.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./utils */ \"./lib/utils.js\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([rehype_prism_plus__WEBPACK_IMPORTED_MODULE_9__, remark_rehype__WEBPACK_IMPORTED_MODULE_10__, rehype_stringify__WEBPACK_IMPORTED_MODULE_11__, _obsidian_image_js__WEBPACK_IMPORTED_MODULE_12__, _utils__WEBPACK_IMPORTED_MODULE_13__]);\n([rehype_prism_plus__WEBPACK_IMPORTED_MODULE_9__, remark_rehype__WEBPACK_IMPORTED_MODULE_10__, rehype_stringify__WEBPACK_IMPORTED_MODULE_11__, _obsidian_image_js__WEBPACK_IMPORTED_MODULE_12__, _utils__WEBPACK_IMPORTED_MODULE_13__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst Transformer = {\n    haveFrontMatter: function(content) {\n        //console.log(\"\\t Front matter data content\", content)\n        if (!content) return false;\n        const indexOfFirst = content.indexOf(\"---\");\n        //console.log(\"\\t Front matter data firstIndex  \", indexOfFirst)\n        //console.log(\"index first\", indexOfFirst)\n        if (indexOfFirst === -1) {\n            return false;\n        }\n        let indexOfSecond = content.indexOf(\"---\", indexOfFirst + 1);\n        return indexOfSecond !== -1;\n    },\n    getFrontMatterData: function(filecontent) {\n        if (Transformer.haveFrontMatter(filecontent)) {\n            return gray_matter__WEBPACK_IMPORTED_MODULE_0___default()(filecontent).data;\n        }\n        return {};\n    },\n    pageResolver: function(pageName) {\n        const allFileNames = (0,_utils__WEBPACK_IMPORTED_MODULE_13__.getAllMarkdownFiles)();\n        const result = allFileNames.find((aFile)=>{\n            let parseFileNameFromPath = Transformer.parseFileNameFromPath(aFile);\n            return Transformer.normalizeFileName(parseFileNameFromPath) === Transformer.normalizeFileName(pageName);\n        });\n        // permalink = permalink.replace(\"Ã§\", \"c\").replace(\"Ä±\", \"i\").replace(\"ÅŸ\", \"s\")\n        // console.log(`/note/${toSlug(result)}`)\n        if (result === undefined || result.length === 0) {\n        // console.log(\"Cannot resolve file path   \" + pageName)\n        }\n        // console.log(\"Internal Link resolved:   [\" + pageName + \"] ==> [\" + temp[0] +\"]\")\n        return result !== undefined && result.length > 0 ? [\n            (0,_utils__WEBPACK_IMPORTED_MODULE_13__.toSlug)(result)\n        ] : [\n            \"/\"\n        ];\n    },\n    hrefTemplate: function(permalink) {\n        // permalink = Transformer.normalizeFileName(permalink)\n        permalink = permalink.replace(\"\\xe7\", \"c\").replace(\"Ä±\", \"i\").replace(\"ÅŸ\", \"s\");\n        return `/note/${permalink}`;\n    },\n    getHtmlContent: function(content) {\n        let htmlContent = [];\n        const sanitizedContent = Transformer.preprocessThreeDashes(content);\n        unified__WEBPACK_IMPORTED_MODULE_1___default()().use((remark_parse__WEBPACK_IMPORTED_MODULE_2___default()), {\n            gfm: true\n        }).use(_obsidian_image_js__WEBPACK_IMPORTED_MODULE_12__[\"default\"]).use((remark_highlight_js__WEBPACK_IMPORTED_MODULE_7___default())).use((remark_external_links__WEBPACK_IMPORTED_MODULE_6___default()), {\n            target: \"_blank\",\n            rel: [\n                'noopener'\n            ]\n        })// .use(frontmatter, ['yaml', 'toml'])\n        .use(remark_wiki_link__WEBPACK_IMPORTED_MODULE_3__.wikiLinkPlugin, {\n            permalinks: null,\n            pageResolver: function(pageName) {\n                return Transformer.pageResolver(pageName);\n            },\n            hrefTemplate: function(permalink) {\n                return Transformer.hrefTemplate(permalink);\n            },\n            aliasDivider: \"|\"\n        }).use(remark_rehype__WEBPACK_IMPORTED_MODULE_10__[\"default\"]).use(rehype_prism_plus__WEBPACK_IMPORTED_MODULE_9__[\"default\"]).use(rehype_stringify__WEBPACK_IMPORTED_MODULE_11__[\"default\"]).process(sanitizedContent, function(err, file) {\n            htmlContent.push(String(file).replace(\"\\n\", \"\"));\n            if (err) {\n                console.log(\"ERRROR:\" + err);\n            }\n        });\n        htmlContent = htmlContent.join(\"\");\n        htmlContent = htmlContent.split(\"---\");\n        return [\n            htmlContent\n        ];\n    },\n    /* SANITIZE MARKDOWN FOR --- */ preprocessThreeDashes: function(content) {\n        const indexOfFirst = content.indexOf(\"---\");\n        if (indexOfFirst === -1) {\n            return content;\n        }\n        const indexOfSecond = content.indexOf(\"---\", indexOfFirst + 1);\n        content.slice(0, indexOfSecond);\n        const contentPart = content.slice(indexOfSecond);\n        return contentPart.split(\"---\").join(\"\");\n    },\n    /* Normalize File Names */ normalizeFileName: function(filename) {\n        let processedFileName = filename.replace(\".md\", \"\");\n        processedFileName = processedFileName.replace('(', '').replace(')', '');\n        processedFileName = processedFileName.split(\" \").join(\"-\");\n        processedFileName = processedFileName.toLowerCase();\n        const conversionLetters = [\n            [\n                \"\\xe7\",\n                \"c\"\n            ],\n            [\n                \"ÅŸ\",\n                \"s\"\n            ],\n            [\n                \"Ä±\",\n                \"i\"\n            ],\n            [\n                \"\\xfc\",\n                \"u\"\n            ],\n            [\n                \"\\xf6\",\n                \"o\"\n            ],\n            [\n                \"ÄŸ\",\n                \"g\"\n            ],\n            [\n                \"\\xc7\",\n                \"C\"\n            ],\n            [\n                \"Å�\",\n                \"S\"\n            ],\n            [\n                \"Ä°\",\n                \"I\"\n            ],\n            [\n                \"\\xdc\",\n                \"U\"\n            ],\n            [\n                \"\\xd6\",\n                \"O\"\n            ],\n            [\n                \"Ä�\",\n                \"G\"\n            ]\n        ];\n        conversionLetters.forEach((letterPair)=>{\n            processedFileName = processedFileName.split(letterPair[0]).join(letterPair[1]);\n        //processedFileName = processedFileName.replace(letterPair[0], letterPair[1])\n        });\n        //console.log(\"filename\", processedFileName)\n        return processedFileName;\n    },\n    /* Parse file name from path then sanitize it */ parseFileNameFromPath: function(filepath) {\n        if (typeof filepath === 'string' && filepath.includes(\"/\")) {\n            const parsedFileFromPath = filepath.split(\"/\")[filepath.split(\"/\").length - 1];\n            return parsedFileFromPath.replace(\".md\", \"\");\n        } else {\n            console.log(\"Failed: CANNOT Parse\" + filepath);\n            return null;\n        }\n    },\n    /* Pair provided and existing Filenames*/ getInternalLinks: function(aFilePath) {\n        const fileContent = _node__WEBPACK_IMPORTED_MODULE_8__.Node.readFileSync(aFilePath);\n        const internalLinks = [];\n        const sanitizedContent = Transformer.preprocessThreeDashes(fileContent);\n        unified__WEBPACK_IMPORTED_MODULE_1___default()().use((remark_parse__WEBPACK_IMPORTED_MODULE_2___default()), {\n            gfm: true\n        }).use(remark_wiki_link__WEBPACK_IMPORTED_MODULE_3__.wikiLinkPlugin, {\n            pageResolver: function(pageName) {\n                // let name = [Transformer.parseFileNameFromPath(pageName)];\n                let canonicalSlug;\n                if (pageName.includes('#')) {\n                    // console.log(pageName)\n                    const tempSlug = pageName.split('#')[0];\n                    if (tempSlug.length === 0) {\n                        // Meaning it in form of #Heading1 --> slug will be this file slug\n                        canonicalSlug = (0,_utils__WEBPACK_IMPORTED_MODULE_13__.toSlug)(aFilePath);\n                    } else {\n                        canonicalSlug = Transformer.pageResolver(tempSlug)[0].split('#')[0];\n                    }\n                } else {\n                    canonicalSlug = Transformer.pageResolver(pageName)[0].split('#')[0];\n                }\n                const backLink = {\n                    title: Transformer.parseFileNameFromPath((0,_utils__WEBPACK_IMPORTED_MODULE_13__.toFilePath)(canonicalSlug)),\n                    slug: canonicalSlug,\n                    shortSummary: canonicalSlug\n                };\n                if (canonicalSlug != null && internalLinks.indexOf(canonicalSlug) < 0) {\n                    internalLinks.push(backLink);\n                }\n                return [\n                    canonicalSlug\n                ];\n            },\n            hrefTemplate: function(permalink) {\n                return Transformer.hrefTemplate(permalink);\n            },\n            aliasDivider: \"|\"\n        }).use((remark_html__WEBPACK_IMPORTED_MODULE_4___default())).processSync(sanitizedContent);\n        // console.log(\"Internal Links of:   \"  + aFilePath)\n        // internalLinks.forEach(aLink => {\n        //     console.log(aLink.title + \" --> \" + aLink.slug)\n        // })\n        // console.log(\"===============Internal Links\")\n        return internalLinks;\n    }\n};\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9saWIvdHJhbnNmb3JtZXIuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBZ0M7QUFDSDtBQUNNO0FBQ1k7QUFDakI7QUFDYztBQUNLO0FBQ047QUFDaEI7QUFDZ0I7QUFDSDtBQUNNO0FBQ0M7QUFDZ0I7QUFFeEQsS0FBSyxDQUFDZ0IsV0FBVyxHQUFHLENBQUM7SUFDeEJDLGVBQWUsRUFBRSxRQUFRLENBQUVDLE9BQU8sRUFBRSxDQUFDO1FBQ2pDLEVBQXNEO1FBQ3RELEVBQUUsR0FBR0EsT0FBTyxFQUFFLE1BQU0sQ0FBQyxLQUFLO1FBQzFCLEtBQUssQ0FBQ0MsWUFBWSxHQUFHRCxPQUFPLENBQUNFLE9BQU8sQ0FBQyxDQUFLO1FBQzFDLEVBQWdFO1FBQ2hFLEVBQTBDO1FBQzFDLEVBQUUsRUFBRUQsWUFBWSxNQUFNLENBQUMsRUFBRSxDQUFDO1lBQ3RCLE1BQU0sQ0FBQyxLQUFLO1FBQ2hCLENBQUM7UUFDRCxHQUFHLENBQUNFLGFBQWEsR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5rczogbnVsbCxcbiAgICAgICAgICAgICAgICBwYWdlUmVzb2x2ZXI6IGZ1bmN0aW9uIChwYWdlTmFtZSkge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gVHJhbnNmb3JtZXIucGFnZVJlc29sdmVyKHBhZ2VOYW1lKVxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgaHJlZlRlbXBsYXRlOiBmdW5jdGlvbiAocGVybWFsaW5rKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiAgVHJhbnNmb3JtZXIuaHJlZlRlbXBsYXRlKHBlcm1hbGluayk7XG4gICAgICAgICAgICAgICAgfSxcblxuICAgICAgICAgICAgICAgIGFsaWFzRGl2aWRlcjogXCJ8XCJcbiAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAudXNlKHJlbWFya1JlaHlwZSlcbiAgICAgICAgICAgIC51c2UocmVoeXBlUHJpc20pXG4gICAgICAgICAgICAudXNlKHJlaHlwZVN0cmluZ2lmeSlcbiAgICAgICAgICAgIC5wcm9jZXNzKHNhbml0aXplZENvbnRlbnQsXG4gICAgICAgICAgICAgICAgZnVuY3Rpb24gKGVyciwgZmlsZSkge1xuICAgICAgICAgICAgICAgICAgICBodG1sQ29udGVudC5wdXNoKFN0cmluZyhmaWxlKS5yZXBsYWNlKFwiXFxuXCIsIFwiXCIpKVxuICAgICAgICAgICAgICAgICAgICBpZiAoZXJyKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhcIkVSUlJPUjpcIiArIGVycilcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIClcbiAgICAgICAgaHRtbENvbnRlbnQgPSBodG1sQ29udGVudC5qb2luKFwiXCIpXG4gICAgICAgIGh0bWxDb250ZW50ID0gaHRtbENvbnRlbnQuc3BsaXQoXCItLS1cIilcbiAgICAgICAgcmV0dXJuIFtodG1sQ29udGVudF1cbiAgICB9LFxuXG4gIC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lmIChwYWdlTmFtZS5pbmNsdWRlcygnIycpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBjb25zb2xlLmxvZyhwYWdlTmFtZSlcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IHRlbXBTbHVnID0gcGFnZU5hbWUuc3BsaXQoJyMnKVswXVxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHRlbXBTbHVnLmxlbmd0aCA9PT0gMCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIE1lYW5pbmcgaXQgaW4gZm9ybSBvZiAjSGVhZGluZzEgLS0+IHNsdWcgd2lsbCBiZSB0aGlzIGZpbGUgc2x1Z1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhbm9uaWNhbFNsdWcgPSB0b1NsdWcoYUZpbGVQYXRoKVxuICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYW5vbmljYWxTbHVnID1UcmFuc2Zvcm1lci5wYWdlUmVzb2x2ZXIodGVtcFNsdWcpWzBdLnNwbGl0KCcjJylbMF1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNhbm9uaWNhbFNsdWcgPSBUcmFuc2Zvcm1lci5wYWdlUmVzb2x2ZXIocGFnZU5hbWUpWzBdLnNwbGl0KCcjJylbMF1cbiAgICAgICAgICAgICAgICAgICAgfVxuXG5cbiAgICAgICAgICAgICAgICAgICAgY29uc3QgYmFja0xpbmsgPSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aXRsZTogVHJhbnNmb3JtZXIucGFyc2VGaWxlTmFtZUZyb21QYXRoKHRvRmlsZVBhdGgoY2Fub25pY2FsU2x1ZykpLFxuICAgICAgICAgICAgICAgICAgICAgICAgc2x1ZzogY2Fub25pY2FsU2x1ZyxcbiAgICAgICAgICAgICAgICAgICAgICAgIHNob3J0U3VtbWFyeTogY2Fub25pY2FsU2x1Z1xuICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgaWYgKGNhbm9uaWNhbFNsdWcgIT0gbnVsbCAmJiBpbnRlcm5hbExpbmtzLmluZGV4T2YoY2Fub25pY2FsU2x1ZykgPCAwKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpbnRlcm5hbExpbmtzLnB1c2goYmFja0xpbmspO1xuICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFtjYW5vbmljYWxTbHVnXVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAsXG4gICAgICAgICAgICAgICAgaHJlZlRlbXBsYXRlOiBmdW5jdGlvbiAocGVybWFsaW5rKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBUcmFuc2Zvcm1lci5ocmVmVGVtcGxhdGUocGVybWFsaW5rKVxuICAgICAgICAgICAgICAgIH0sXG5cbiAgICAgICAgICAgICAgICBhbGlhc0RpdmlkZXI6IFwifFwiXG4gICAgICAgICAgICB9KVxuICAgICAgICAgICAgLnVzZShodG1sKVxuICAgICAgICAgICAgLnByb2Nlc3NTeW5jKHNhbml0aXplZENvbnRlbnQpXG5cbiAgICAgICAgLy8gY29uc29sZS5sb2coXCJJbnRlcm5hbCBMaW5rcyBvZjogICBcIiAgKyBhRmlsZVBhdGgpXG4gICAgICAgIC8vIGludGVybmFsTGlua3MuZm9yRWFjaChhTGluayA9PiB7XG4gICAgICAgIC8vICAgICBjb25zb2xlLmxvZyhhTGluay50aXRsZSArIFwiIC0tPiBcIiArIGFMaW5rLnNsdWcpXG4gICAgICAgIC8vIH0pXG4gICAgICAgIC8vIGNvbnNvbGUubG9nKFwiPT09PT09PT09PT09PT09SW50ZXJuYWwgTGlua3NcIilcbiAgICAgICAgcmV0dXJuIGludGVybmFsTGlua3M7XG4gICAgfVxufVxuIl0sIm5hbWVzI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CJmaWxlcGF0aCIsImluY2x1ZGVzIiwicGFyc2VkRmlsZUZyb21QYXRoIiwiZ2V0SW50ZXJuYWxMaW5rcyIsImFGaWxlUGF0aCIsImZpbGVDb250ZW50IiwicmVhZEZpbGVTeW5jIiwiaW50ZXJuYWxMaW5rcyIsImNhbm9uaWNhbFNsdWciLCJ0ZW1wU2x1ZyIsImJhY2tMaW5rIiwidGl0bGUiLCJzbHVnIiwic2hvcnRTdW1tYXJ5IiwicHJvY2Vzc1N5bmMiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./lib/transformer.js\n");

/***/ })€á„/*!****************************!*\
  !*** ./lib/transformer.js ***!
  \****************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"Transformer\": () => (/* binding */ Transformer)\n/* harmony export */ });\n/* harmony import */ var gray_matter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! gray-matter */ \"gray-matter\");\n/* harmony import */ var gray_matter__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(gray_matter__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var unified__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! unified */ \"unified\");\n/* harmony import */ var unified__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(unified__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var remark_parse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! remark-parse */ \"remark-parse\");\n/* harmony import */ var remark_parse__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(remark_parse__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var remark_wiki_link__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! remark-wiki-link */ \"remark-wiki-link\");\n/* harmony import */ var remark_wiki_link__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(remark_wiki_link__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var remark_html__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! remark-html */ \"remark-html\");\n/* harmony import */ var remark_html__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(remark_html__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var remark_frontmatter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! remark-frontmatter */ \"remark-frontmatter\");\n/* harmony import */ var remark_frontmatter__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(remark_frontmatter__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var remark_external_links__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! remark-external-links */ \"remark-external-links\");\n/* harmony import */ var remark_external_links__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(remark_external_links__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var remark_highlight_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! remark-highlight.js */ \"remark-highlight.js\");\n/* harmony import */ var remark_highlight_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(remark_highlight_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _node__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./node */ \"./lib/node.js\");\n/* harmony import */ var rehype_prism_plus__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rehype-prism-plus */ \"rehype-prism-plus\");\n/* harmony import */ var remark_rehype__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! remark-rehype */ \"remark-rehype\");\n/* harmony import */ var rehype_stringify__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rehype-stringify */ \"rehype-stringify\");\n/* harmony import */ var _obsidian_image_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./obsidian-image.js */ \"./lib/obsidian-image.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./utils */ \"./lib/utils.js\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([rehype_prism_plus__WEBPACK_IMPORTED_MODULE_9__, remark_rehype__WEBPACK_IMPORTED_MODULE_10__, rehype_stringify__WEBPACK_IMPORTED_MODULE_11__, _obsidian_image_js__WEBPACK_IMPORTED_MODULE_12__, _utils__WEBPACK_IMPORTED_MODULE_13__]);\n([rehype_prism_plus__WEBPACK_IMPORTED_MODULE_9__, remark_rehype__WEBPACK_IMPORTED_MODULE_10__, rehype_stringify__WEBPACK_IMPORTED_MODULE_11__, _obsidian_image_js__WEBPACK_IMPORTED_MODULE_12__, _utils__WEBPACK_IMPORTED_MODULE_13__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst Transformer = {\n    haveFrontMatter: function(content) {\n        //console.log(\"\\t Front matter data content\", content)\n        if (!content) return false;\n        const indexOfFirst = content.indexOf(\"---\");\n        //console.log(\"\\t Front matter data firstIndex  \", indexOfFirst)\n        //console.log(\"index first\", indexOfFirst)\n        if (indexOfFirst === -1) {\n            return false;\n        }\n        let indexOfSecond = content.indexOf(\"---\", indexOfFirst + 1);\n        return indexOfSecond !== -1;\n    },\n    getFrontMatterData: function(filecontent) {\n        if (Transformer.haveFrontMatter(filecontent)) {\n            return gray_matter__WEBPACK_IMPORTED_MODULE_0___default()(filecontent).data;\n        }\n        return {};\n    },\n    pageResolver: function(pageName) {\n        const allFileNames = (0,_utils__WEBPACK_IMPORTED_MODULE_13__.getAllMarkdownFiles)();\n        const result = allFileNames.find((aFile)=>{\n            let parseFileNameFromPath = Transformer.parseFileNameFromPath(aFile);\n            return Transformer.normalizeFileName(parseFileNameFromPath) === Transformer.normalizeFileName(pageName);\n        });\n        // permalink = permalink.replace(\"Ã§\", \"c\").replace(\"Ä±\", \"i\").replace(\"ÅŸ\", \"s\")\n        // console.log(`/note/${toSlug(result)}`)\n        if (result === undefined || result.length === 0) {\n        // console.log(\"Cannot resolve file path   \" + pageName)\n        }\n        // console.log(\"Internal Link resolved:   [\" + pageName + \"] ==> [\" + temp[0] +\"]\")\n        return result !== undefined && result.length > 0 ? [\n            (0,_utils__WEBPACK_IMPORTED_MODULE_13__.toSlug)(result)\n        ] : [\n            \"/\"\n        ];\n    },\n    hrefTemplate: function(permalink) {\n        // permalink = Transformer.normalizeFileName(permalink)\n        permalink = permalink.replace(\"\\xe7\", \"c\").replace(\"Ä±\", \"i\").replace(\"ÅŸ\", \"s\");\n        return `/note/${permalink}`;\n    },\n    getHtmlContent: function(content) {\n        let htmlContent = [];\n        const sanitizedContent = Transformer.preprocessThreeDashes(content);\n        unified__WEBPACK_IMPORTED_MODULE_1___default()().use((remark_parse__WEBPACK_IMPORTED_MODULE_2___default()), {\n            gfm: true\n        }).use(_obsidian_image_js__WEBPACK_IMPORTED_MODULE_12__[\"default\"]).use((remark_highlight_js__WEBPACK_IMPORTED_MODULE_7___default())).use((remark_external_links__WEBPACK_IMPORTED_MODULE_6___default()), {\n            target: \"_blank\",\n            rel: [\n                'noopener'\n            ]\n        })// .use(frontmatter, ['yaml', 'toml'])\n        .use(remark_wiki_link__WEBPACK_IMPORTED_MODULE_3__.wikiLinkPlugin, {\n            permalinks: null,\n            pageResolver: function(pageName) {\n                return Transformer.pageResolver(pageName);\n            },\n            hrefTemplate: function(permalink) {\n                return Transformer.hrefTemplate(permalink);\n            },\n            aliasDivider: \"|\"\n        }).use(remark_rehype__WEBPACK_IMPORTED_MODULE_10__[\"default\"]).use(rehype_prism_plus__WEBPACK_IMPORTED_MODULE_9__[\"default\"]).use(rehype_stringify__WEBPACK_IMPORTED_MODULE_11__[\"default\"]).process(sanitizedContent, function(err, file) {\n            htmlContent.push(String(file).replace(\"\\n\", \"\"));\n            if (err) {\n                console.log(\"ERRROR:\" + err);\n            }\n        });\n        htmlContent = htmlContent.join(\"\");\n        htmlContent = htmlContent.split(\"---\");\n        return [\n            htmlContent\n        ];\n    },\n    /* SANITIZE MARKDOWN FOR --- */ preprocessThreeDashes: function(content) {\n        const indexOfFirst = content.indexOf(\"---\");\n        if (indexOfFirst === -1) {\n            return content;\n        }\n        const indexOfSecond = content.indexOf(\"---\", indexOfFirst + 1);\n        content.slice(0, indexOfSecond);\n        const contentPart = content.slice(indexOfSecond);\n        return contentPart.split(\"---\").join(\"\");\n    },\n    /* Normalize File Names */ normalizeFileName: function(filename) {\n        let processedFileName = filename.replace(\".md\", \"\");\n        processedFileName = processedFileName.replace('(', '').replace(')', '');\n        processedFileName = processedFileName.split(\" \").join(\"-\");\n        processedFileName = processedFileName.toLowerCase();\n        const conversionLetters = [\n            [\n                \"\\xe7\",\n                \"c\"\n            ],\n            [\n                \"ÅŸ\",\n                \"s\"\n            ],\n            [\n                \"Ä±\",\n                \"i\"\n            ],\n            [\n                \"\\xfc\",\n                \"u\"\n            ],\n            [\n                \"\\xf6\",\n                \"o\"\n            ],\n            [\n                \"ÄŸ\",\n                \"g\"\n            ],\n            [\n                \"\\xc7\",\n                \"C\"\n            ],\n            [\n                \"Å�\",\n                \"S\"\n            ],\n            [\n                \"Ä°\",\n                \"I\"\n            ],\n            [\n                \"\\xdc\",\n                \"U\"\n            ],\n            [\n                \"\\xd6\",\n                \"O\"\n            ],\n            [\n                \"Ä�\",\n                \"G\"\n            ]\n        ];\n        conversionLetters.forEach((letterPair)=>{\n            processedFileName = processedFileName.split(letterPair[0]).join(letterPair[1]);\n        //processedFileName = processedFileName.replace(letterPair[0], letterPair[1])\n        });\n        //console.log(\"filename\", processedFileName)\n        return processedFileName;\n    },\n    /* Parse file name from path then sanitize it */ parseFileNameFromPath: function(filepath) {\n        if (typeof filepath === 'string' && filepath.includes(\"/\")) {\n            const parsedFileFromPath = filepath.split(\"/\")[filepath.split(\"/\").length - 1];\n            return parsedFileFromPath.replace(\".md\", \"\");\n        } else {\n            console.log(\"Failed: CANNOT Parse\" + filepath);\n            return null;\n        }\n    },\n    /* Pair provided and existing Filenames*/ getInternalLinks: function(aFilePath) {\n        const fileContent = _node__WEBPACK_IMPORTED_MODULE_8__.Node.readFileSync(aFilePath);\n        const internalLinks = [];\n        const sanitizedContent = Transformer.preprocessThreeDashes(fileContent);\n        unified__WEBPACK_IMPORTED_MODULE_1___default()().use((remark_parse__WEBPACK_IMPORTED_MODULE_2___default()), {\n            gfm: true\n        }).use(remark_wiki_link__WEBPACK_IMPORTED_MODULE_3__.wikiLinkPlugin, {\n            pageResolver: function(pageName) {\n                // let name = [Transformer.parseFileNameFromPath(pageName)];\n                let canonicalSlug;\n                if (pageName.includes('#')) {\n                    // console.log(pageName)\n                    const tempSlug = pageName.split('#')[0];\n                    if (tempSlug.length === 0) {\n                        // Meaning it in form of #Heading1 --> slug will be this file slug\n                        canonicalSlug = (0,_utils__WEBPACK_IMPORTED_MODULE_13__.toSlug)(aFilePath);\n                    } else {\n                        canonicalSlug = Transformer.pageResolver(tempSlug)[0].split('#')[0];\n                    }\n                } else {\n                    canonicalSlug = Transformer.pageResolver(pageName)[0].split('#')[0];\n                }\n                const backLink = {\n                    title: Transformer.parseFileNameFromPath((0,_utils__WEBPACK_IMPORTED_MODULE_13__.toFilePath)(canonicalSlug)),\n                    slug: canonicalSlug,\n                    shortSummary: canonicalSlug\n                };\n                if (canonicalSlug != null && internalLinks.indexOf(canonicalSlug) < 0) {\n                    internalLinks.push(backLink);\n                }\n                return [\n                    canonicalSlug\n                ];\n            },\n            hrefTemplate: function(permalink) {\n                return Transformer.hrefTemplate(permalink);\n            },\n            aliasDivider: \"|\"\n        }).use((remark_html__WEBPACK_IMPORTED_MODULE_4___default())).processSync(sanitizedContent);\n        // console.log(\"Internal Links of:   \"  + aFilePath)\n        // internalLinks.forEach(aLink => {\n        //     console.log(aLink.title + \" --> \" + aLink.slug)\n        // })\n        // console.log(\"===============Internal Links\")\n        return internalLinks;\n    }\n};\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9saWIvdHJhbnNmb3JtZXIuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBZ0M7QUFDSDtBQUNNO0FBQ1k7QUFDakI7QUFDYztBQUNLO0FBQ047QUFDaEI7QUFDZ0I7QUFDSDtBQUNNO0FBQ0M7QUFDZ0I7QUFFeEQsS0FBSyxDQUFDZ0IsV0FBVyxHQUFHLENBQUM7SUFDeEJDLGVBQWUsRUFBRSxRQUFRLENBQUVDLE9BQU8sRUFBRSxDQUFDO1FBQ2pDLEVBQXNEO1FBQ3RELEVBQUUsR0FBR0EsT0FBTyxFQUFFLE1BQU0sQ0FBQyxLQUFLO1FBQzFCLEtBQUssQ0FBQ0MsWUFBWSxHQUFHRCxPQUFPLENBQUNFLE9BQU8sQ0FBQyxDQUFLO1FBQzFDLEVBQWdFO1FBQ2hFLEVBQTBDO1FBQzFDLEVBQUUsRUFBRUQsWUFBWSxNQUFNLENBQUMsRUFBRSxDQUFDO1lBQ3RCLE1BQU0sQ0FBQyxLQUFLO1FBQ2hCLENBQUM7UUFDRCxHQUFHLENBQUNFLGFBQWEsR0FBR0gsT0FBTyxDQUFDRSxPQUFPLENBQUMsQ0FBSyxNQUFHRCxZQUFZLEdBQUcsQ0FBQztRQUM1RCxNQUFNLENBQUNFLGFBQWEsTUFBTSxDQUFDO0lBRS9CLENBQUM7SUFDREMsa0JBQWtCLEVBQUUsUUFBUSxDQUFFQyxXQUFXLEVBQUUsQ0FBQztRQUN4QyxFQUFFLEVBQUVQLFdBQVcsQ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ICAgICAgLy8gcGVybWFsaW5rID0gVHJhbnNmb3JtZXIubm9ybWFsaXplRmlsZU5hbWUocGVybWFsaW5rKVxuICAgICAgICBwZXJtYWxpbmsgPSBwZXJtYWxpbmsucmVwbGFjZShcIsOnXCIsIFwiY1wiKS5yZXBsYWNlKFwixLFcIiwgXCJpXCIpLnJlcGxhY2UoXCLFn1wiLCBcInNcIilcbiAgICAgICAgcmV0dXJuIGAvbm90ZS8ke3Blcm1hbGlua31gO1xuICAgIH0sIGdldEh0bWxDb250ZW50OiBmdW5jdGlvbiAoY29udGVudCkge1xuICAgICAgICBsZXQgaHRtbENvbnRlbnQgPSBbXVxuICAgICAgICBjb25zdCBzYW5pdGl6ZWRDb250ZW50ID0gVHJhbnNmb3JtZXIucHJlcHJvY2Vzc1RocmVlRGFzaGVzKGNvbnRlbnQpXG5cbiAgICAgICAgdW5pZmllZCgpXG4gICAgICAgICAgICAudXNlKG1hcmtkb3duLCB7Z2ZtOiB0cnVlfSlcbiAgICAgICAgICAgIC51c2Uob2JzaWRpYW5JbWFnZSlcbiAgICAgICAgICAgIC51c2UoaGlnaGxpZ2h0KSAgICAgICAgXG4gICAgICAgICAgICAudXNlKGV4dGVybmFsTGlua3MsIHt0YXJnZXQ6IFwiX2JsYW5rXCIsIHJlbDogWydub29wZW5lciddfSlcbiAgICAgICAgICAgIC8vIC51c2UoZnJvbnRtYXR0ZXIsIFsneWFtbCcsICd0b21sJ10pXG4gICAgICAgICAgICAudXNlKHdpa2lMaW5rUGx1Z2luLCB7XG4gICAgICAgICAgICAgICAgcGVybWFsaW5rczogbnVsbCxcbiAgICAgICAgICAgICAgICBwYWdlUmVzb2x2ZXI6IGZ1bmN0aW9uIChwYWdlTmFtZSkge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gVHJhbnNmb3JtZXIucGFnZVJlc29sdmVyKHBhZ2VOYW1lKVxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgaHJlZlRlbXBsYXRlOiBmdW5jdGlvbiAocGVybWFsaW5rKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiAgVHJhbnNmb3JtZXIuaHJlZlRlbXBsYXRlKHBlcm1hbGluayk7XG4gICAgICAgICAgICAgICAgfSxcblxuICAgICAgICAgICAgICAgIGFsaWFzRGl2aWRlcjogXCJ8XCJcbiAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAudXNlKHJlbWFya1JlaHlwZSlcbiAgICAgICAgICAgIC51c2UocmVoeXBlUHJpc20pXG4gICAgICAgICAgICAudXNlKHJlaHlwZVN0cmluZ2lmeSlcbiAgICAgICAgICAgIC5wcm9jZXNzKHNhbml0aXplZENvbnRlbnQsXG4gICAgICAgICAgICAgICAgZnVuY3Rpb24gKGVyciwgZmlsZSkge1xuICAgICAgICAgICAgICAgICAgICBodG1sQ29udGVudC5wdXNoKFN0cmluZyhmaWxlKS5yZXBsYWNlKFwiXFxuXCIsIFwiXCIpKVxuICAgICAgICAgICAgICAgICAgICBpZiAoZXJyKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhcIkVSUlJPUjpcIiArIGVycilcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIClcbiAgICAgICAgaHRtbENvbnRlbnQgPSBodG1sQ29udGVudC5qb2luKFwiXCIpXG4gICAgICAgIGh0bWxDb250ZW50ID0gaHRtbENvbnRlbnQuc3BsaXQoXCItLS1cIilcbiAgICAgICAgcmV0dXJuIFtodG1sQ29udGVudF1cbiAgICB9LFxuXG4gICAgLyogU0FOSVRJWkUgTUFSS0RPV04gRk9SIC0tLSAqL1xuICAgIHByZXByb2Nlc3NUaHJlZURhc2hlczogZnVuY3Rpb24gKGNvbnRlbnQpIHtcbiAgICAgICAgY29uc3QgaW5kZXhPZkZpcnN0ID0gY29udGVudC5pbmRleE9mKFwiLS0tXCIpO1xuICAgICAgICBpZiAoaW5kZXhPZkZpcnN0ID09PSAtMSkge1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XG4gICAgICAgICAgICBjb25zb2xlLmxvZyhcIkZhaWxlZDogQ0FOTk9UIFBhcnNlXCIgKyBmaWxlcGF0aClcbiAgICAgICAgICAgIHJldHVybiBudWxsXG4gICAgICAgIH1cbiAgICB9LFxuICAgIC8qIFBhaXIgcHJvdmlkZWQgYW5kIGV4aXN0aW5nIEZpbGVuYW1lcyovXG4gICAgZ2V0SW50ZXJuYWxMaW5rczogZnVuY3Rpb24gKGFGaWxlUGF0aCkge1xuICAgICAgICBjb25zdCBmaWxlQ29udGVudCA9IE5vZGUucmVhZEZpbGVTeW5jKGFGaWxlUGF0aCk7XG4gICAgICAgIGNvbnN0IGludGVybmFsTGlua3MgPSBbXVxuICAgICAgICBjb25zdCBzYW5pdGl6ZWRDb250ZW50ID0gVHJhbnNmb3JtZXIucHJlcHJvY2Vzc1RocmVlRGFzaGVzKGZpbGVDb250ZW50KVxuICAgICAgICB1bmlmaWVkKClcbiAgICAgICAgICAgIC51c2UobWFya2Rvd24sIHtnZm06IHRydWV9KVxuICAgICAgICAgICAgLnVzZSh3aWtpTGlua1BsdWdpbiwge1xuICAgICAgICAgICAgICAgIHBhZ2VSZXNvbHZlcjogZnVuY3Rpb24gKHBhZ2VOYW1lKSB7XG5cbiAgICAgICAgICAgICAgICAgICAgLy8gbGV0IG5hbWUgPSBbVHJhbnNmb3JtZXIucGFyc2VGaWxlTmFtZUZyb21QYXRoKHBhZ2VOYW1lKV07XG5cbiAgICAgICAgICAgICAgICAgICAgbGV0IGNhbm9uaWNhbFNsdWc7XG4gICAgICAgICAgICAgICAgICAgIGlmIChwYWdlTmFtZS5pbmNsdWRlcygnIycpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBjb25zb2xlLmxvZyhwYWdlTmFtZSlcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IHRlbXBTbHVnID0gcGFnZU5hbWUuc3BsaXQoJyMnKVswXVxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHRlbXBTbHVnLmxlbmd0aCA9PT0gMCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIE1lYW5pbmcgaXQgaW4gZm9ybSBvZiAjSGVhZGluZzEgLS0+IHNsdWcgd2lsbCBiZSB0aGlzIGZpbGUgc2x1Z1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhbm9uaWNhbFNsdWcgPSB0b1NsdWcoYUZpbGVQYXRoKVxuICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYW5vbmljYWxTbHVnID1UcmFuc2Zvcm1lci5wYWdlUmVzb2x2ZXIodGVtcFNsdWcpWzBdLnNwbGl0KCcjJylbMF1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNhbm9uaWNhbFNsdWcgPSBUcmFuc2Zvcm1lci5wYWdlUmVzb2x2ZXIocGFnZU5hbWUpWzBdLnNwbGl0KCcjJylbMF1cbiAgICAgICAgICAgICAgICAgICAgfVxuXG5cbiAgICAgICAgICAgICAgICAgICAgY29uc3QgYmFja0xpbmsgPSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aXRsZTogVHJhbnNmb3JtZXIucGFyc2VGaWxlTmFtZUZyb21QYXRoKHRvRmlsZVBhdGgoY2Fub25pY2FsU2x1ZykpLFxuICAgICAgICAgICAgICAgICAgICAgICAgc2x1ZzogY2Fub25pY2FsU2x1ZyxcbiAgICAgICAgICAgICAgICAgICAgICAgIHNob3J0U3VtbWFyeTogY2Fub25pY2FsU2x1Z1xuICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgaWYgKGNhbm9uaWNhbFNsdWcgIT0gbnVsbCAmJiBpbnRlcm5hbExpbmtzLmluZGV4T2YoY2Fub25pY2FsU2x1ZykgPCAwKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpbnRlcm5hbExpbmtzLnB1c2goYmFja0xpbmspO1xuICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFtjYW5vbmljYWxTbHVnXVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAsXG4gICAgICAgICAgICAgICAgaHJlZlRlbXBsYXRlOiBmdW5jdGlvbiAocGVybWFsaW5rKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBUcmFuc2Zvcm1lci5ocmVmVGVtcGxhdGUocGVybWFsaW5rKVxuICAgICAgICAgICAgICAgIH0sXG5cbiAgICAgICAgICAgICAgICBhbGlhc0RpdmlkZXI6IFwifFwiXG4gICAgICAgICAgICB9KVxuICAgICAgICAgICAgLnVzZShodG1sKVxuICAgICAgICAgICAgLnByb2Nlc3NTeW5jKHNhbml0aXplZENvbnRlbnQpXG5cbiAgICAgICAgLy8gY29uc29sZS5sb2coXCJJbnRlcm5hbCBMaW5rcyBvZjogICBcIiAgKyBhRmlsZVBhdGgpXG4gICAgICAgIC8vIGludGVybmFsTGlua3MuZm9yRWFjaChhTGluayA9PiB7XG4gICAgICAgIC8vICAgICBjb25zb2xlLmxvZyhhTGluay50aXRsZSArIFwiIC0tPiBcIiArIGFMaW5rLnNsdWcpXG4gICAgICAgIC8vIH0pXG4gICAgICAgIC8vIGNvbnNvbGUubG9nKFwiPT09PT09PT09PT09PT09SW50ZXJuYWwgTGlua3NcIilcbiAgICAgICAgcmV0dXJuIGludGVybmFsTGlua3M7XG4gICAgfVxufVxuIl0sIm5hbWVzIjpbIm1hdHRlciIsInVuaWZpZWQiLCJtYXJrZG93biIsIndpa2lMaW5rUGx1Z2luIiwiaHRtbCIsImZyb250bWF0dGVyIiwiZXh0ZXJuYWxMaW5rcyIsImhpZ2hsaWdodCIsIk5vZGUiLCJyZWh5cGVQcmlzbSIsInJlbWFya1JlaHlwZSIsInJlaHlwZVN0cmluZ2lmeSIsIm9ic2lkaWFuSW1hZ2Ui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JzbHVnIiwic2hvcnRTdW1tYXJ5IiwicHJvY2Vzc1N5bmMiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./lib/transformer.js\n");

/***/ }),

/***/ "./lib/utils.js":
y«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourceS/*!**********************!*\
  !*** ./lib/utils.js ***!
  \**********************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSourceÙ�«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourceN/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
Ğ�eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"getContent\": () => (/* binding */ getContent),\n/* harmony export */   \"getShortSummary\": () => (/* binding */ getShortSummary),\n/* harmony export */   \"getAllMarkdownFiles\": () => (/* binding */ getAllMarkdownFiles),\n/* harmony export */   \"getSinglePost\": () => (/* binding */ getSinglePost),\n/* harmony export */   \"toFilePath\": () => (/* binding */ toFilePath),\n/* harmony export */   \"getSlugHashMap\": () => (/* binding */ getSlugHashMap),\n/* harmony export */   \"toSlug\": () => (/* binding */ toSlug),\n/* harmony export */   \"constructGraphData\": () => (/* binding */ constructGraphData),\n/* harmony export */   \"getLocalGraphData\": () => (/* binding */ getLocalGraphData),\n/* harmony export */   \"getAllSlugs\": () => (/* binding */ getAllSlugs),\n/* harmony export */   \"getDirectoryData\": () => (/* binding */ getDirectoryData),\n/* harmony export */   \"convertObject\": () => (/* binding */ convertObject),\n/* harmony export */   \"getFlattenArray\": () => (/* binding */ getFlattenArray)\n/* harmony export */ });\n/* harmony import */ var _node__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node */ \"./lib/node.js\");\n/* harmony import */ var _transformer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./transformer */ \"./lib/transformer.js\");\n/* harmony import */ var unified__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! unified */ \"unified\");\n/* harmony import */ var unified__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(unified__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var remark_parse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! remark-parse */ \"remark-parse\");\n/* harmony import */ var remark_parse__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(remark_parse__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var mdast_util_to_string__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! mdast-util-to-string */ \"mdast-util-to-string\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! path */ \"path\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! fs */ \"fs\");\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_6__);\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_transformer__WEBPACK_IMPORTED_MODULE_1__, mdast_util_to_string__WEBPACK_IMPORTED_MODULE_4__]);\n([_transformer__WEBPACK_IMPORTED_MODULE_1__, mdast_util_to_string__WEBPACK_IMPORTED_MODULE_4__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\n\n\n\n\nconst dirTree = __webpack_require__(/*! directory-tree */ \"directory-tree\");\nfunction getContent(slug) {\n    let currentFilePath = toFilePath(slug);\n    if (currentFilePath === undefined || currentFilePath == null) return null;\n    return _node__WEBPACK_IMPORTED_MODULE_0__.Node.readFileSync(currentFilePath);\n}\nfunction getShortSummary(slug) {\n    const content = getContent(slug);\n    if (content === undefined || content === null) {\n        return;\n    }\n    const tree = unified__WEBPACK_IMPORTED_MODULE_2___default()().use((remark_parse__WEBPACK_IMPORTED_MODULE_3___default())).parse(content);\n    let plainText = (0,mdast_util_to_string__WEBPACK_IMPORTED_MODULE_4__.toString)(tree);\n    return plainText.split(\" \").splice(0, 40).join(\" \");\n}\nfunction getAllMarkdownFiles() {\n    return _node__WEBPACK_IMPORTED_MODULE_0__.Node.getFiles(_node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder());\n}\nfunction getSinglePost(slug) {\n    // List of filenames that will provide existing links to wikilink\n    let currentFilePath = toFilePath(slug);\n    //console.log(\"currentFilePath: \", currentFilePath)\n    var fileContent = _node__WEBPACK_IMPORTED_MODULE_0__.Node.readFileSync(currentFilePath);\n    const currentFileFrontMatter = _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.getFrontMatterData(fileContent);\n    // console.log(\"===============\\n\\nFile is scanning: \", slug)\n    const [htmlContent] = _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.getHtmlContent(fileContent);\n    // console.log(\"==================================\")\n    //console.log(\"hrmlcontents and backlinks\")\n    return {\n        id: slug,\n        // ...currentFileFrontMatter,\n        data: htmlContent\n    };\n}\nconst cachedSlugMap = getSlugHashMap();\nfunction toFilePath(slug) {\n    return cachedSlugMap[slug];\n}\nfunction getSlugHashMap() {\n    // This is to solve problem of converting between slug and filepath,\n    // where previously if I convert a slug to a file path sometime\n    // it does not always resolve to correct filepath, converting function is not bi-directional\n    // and not conflict-free, other solution was considered (hash file name into a hash, but this\n    // is not SEO-friendly and make url look ugly ==> I chose this\n    const slugMap = new Map();\n    getAllMarkdownFiles().map((aFile)=>{\n        const aSlug = toSlug(aFile);\n        // if (slugMap.has(aSlug)) {\n        //     slugMap[aSlug].push(aFile)\n        // } else {\n        //     slugMap[aSlug] = [aFile]\n        // }\n        // Note: [Future improvement] Resolve conflict\n        slugMap[aSlug] = aFile;\n    });\n    slugMap['index'] = _node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder() + \"/index.md\";\n    slugMap['/'] = _node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder() + \"/index.md\";\n    return slugMap;\n}\nfunction toSlug(filePath) {\n    if (_node__WEBPACK_IMPORTED_MODULE_0__.Node.isFile(filePath) && filePath.includes(_node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder())) {\n        return filePath.replace(_node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder(), '').replaceAll('/', '__').replaceAll(' ', '++++').replaceAll('&', 'ambersand').replace('.md', '');\n    } else {\n        //TODO handle this properly\n        return '/';\n    }\n}\nfunction constructGraphData() {\n    const filepath = path__WEBPACK_IMPORTED_MODULE_5___default().join(process.cwd(), \"graph-data.json\");\n    if (_node__WEBPACK_IMPORTED_MODULE_0__.Node.isFile(filepath)) {\n        const data = fs__WEBPACK_IMPORTED_MODULE_6___default().readFileSync(filepath);\n        return JSON.parse(String(data));\n    } else {\n        const filePaths = getAllMarkdownFiles();\n        const edges = [];\n        const nodes = [];\n        filePaths.forEach((aFilePath)=>{\n            // const {currentFilePath} = getFileNames(filename)\n            const aNode = {\n                title: _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.parseFileNameFromPath(aFilePath),\n                slug: toSlug(aFilePath),\n                shortSummary: getShortSummary(toSlug(aFilePath))\n            };\n            nodes.push(aNode);\n            // console.log(\"Constructing graph for node: \" + aFilePath )\n            const internalLinks = _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.getInternalLinks(aFilePath);\n            internalLinks.forEach((aLink)=>{\n                if (aLink.slug === null || aLink.slug.length === 0) return;\n                const anEdge = {\n                    source: toSlug(aFilePath),\n                    target: aLink.slug\n                };\n                edges.push(anEdge);\n            // console.log(\"Source: \" + anEdge.source)\n            // console.log(\"Target: \" + anEdge.target)\n            });\n        // console.log(\"==============Constructing graph\" )\n        });\n        const data = {\n            nodes,\n            edges\n        };\n        fs__WEBPACK_IMPORTED_MODULE_6___default().writeFileSync(filepath, JSON.stringify(data), \"utf-8\");\n        return data;\n    }\n}\nfunction getLocalGraphData(currentNodeId) {\n    const { nodes , edges  } = constructGraphData();\n    const newNodes = nodes.map((aNode)=>({\n            data: {\n                id: aNode.slug.toString(),\n                label: _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.parseFileNameFromPath(toFilePath(aNode.slug))\n            }\n        })\n    );\n    const newEdges = edges.map((anEdge)=>({\n            data: {\n                source: anEdge.source,\n                target: anEdge.target\n            }\n        })\n    );\n    const existingNodeIDs = newNodes.map((aNode)=>aNode.data.id\n    );\n    currentNodeId = currentNodeId === 'index' ? '__index' : currentNodeId;\n    if (currentNodeId != null && existingNodeIDs.includes(currentNodeId)) {\n        const outGoingNodeIds = newEdges.filter((anEdge)=>anEdge.data.source === currentNodeId\n        ).map((anEdge)=>anEdge.data.target\n        );\n        const incomingNodeIds = newEdges.filter((anEdge)=>anEdge.data.target === currentNodeId\n        ).map((anEdge)=>anEdge.data.source\n        );\n        outGoingNodeIds.push(currentNodeId);\n        const localNodeIds = incomingNodeIds.concat(outGoingNodeIds.filter((item)=>incomingNodeIds.indexOf(item) < 0\n        ));\n        if (localNodeIds.indexOf(currentNodeId) < 0) {\n            localNodeIds.push(currentNodeId);\n        }\n        const localNodes = newNodes.filter((aNode)=>localNodeIds.includes(aNode.data.id)\n        );\n        let localEdges = newEdges.filter((edge)=>localNodeIds.includes(edge.data.source)\n        ).filter((edge)=>localNodeIds.includes(edge.data.target)\n        );\n        // Filter self-reference edges\n        localEdges = localEdges.filter((edge)=>edge.data.source !== edge.data.target\n        );\n        // TODO: Find out why target ==='/' in some case\n        localEdges = localEdges.filter((edge)=>edge.data.target !== '/'\n        );\n        return {\n            nodes: localNodes,\n            edges: localEdges\n        };\n    } else {\n        const filteredEdges = newEdges.filter((edge)=>existingNodeIDs.includes(edge.data.source)\n        ).filter((edge)=>existingNodeIDs.includes(edge.data.target)\n        );\n        return {\n            nodes: newNodes,\n            edges: filteredEdges\n        };\n    }\n}\nfunction getAllSlugs() {\n    //console.log(\"\\n\\nAll Posts are scanning\")\n    // Get file names under /posts\n    const filePaths = _node__WEBPACK_IMPORTED_MODULE_0__.Node.getFiles(_node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder()).filter((f)=>!(f.endsWith(\"index\") || f.endsWith(\"sidebar\"))\n    );\n    return filePaths.map((f)=>toSlug(f)\n    );\n}\nfunction getDirectoryData() {\n    const filteredDirectory = dirTree(_node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder(), {\n        extensions: /\\.md/\n    });\n    return convertObject(filteredDirectory);\n}\nlet _counter = 0;\nfunction convertObject(thisObject) {\n    const children = [];\n    let routerPath = getAllSlugs().find((slug)=>{\n        const fileName = _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.parseFileNameFromPath(toFilePath(slug));\n        return _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.normalizeFileName(fileName) === _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.normalizeFileName(thisObject.name);\n    }) || null;\n    routerPath = routerPath ? '/note/' + routerPath : null;\n    const newObject = {\n        name: thisObject.name,\n        children: children,\n        id: (_counter++).toString(),\n        routePath: routerPath || null\n    };\n    if (thisObject.children != null && thisObject.children.length > 0) {\n        thisObject.children.forEach((aChild)=>{\n            const newChild = convertObject(aChild);\n            children.push(newChild);\n        });\n        return newObject;\n    } else {\n        return newObject;\n    }\n}\nfunction flat(array) {\n    var result = [];\n    array.forEach(function(a) {\n        result.push(a);\n        if (Array.isArray(a.children)) {\n            result = result.concat(flat(a.children));\n        }\n    });\n    return result;\n}\nfunction getFlattenArray(thisObject) {\n    return flat(thisObject.children);\n}\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//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sZVBhdGh9ID0gZ2V0RmlsZU5hbWVzKGZpbGVuYW1lKVxuICAgICAgICAgICAgICAgICAgICBjb25zdCBhTm9kZSA9IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiBUcmFuc2Zvcm1lci5wYXJzZUZpbGVOYW1lRnJvbVBhdGgoYUZpbGVQYXRoKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHNsdWc6IHRvU2x1ZyhhRmlsZVBhdGgpLFxuICAgICAgICAgICAgICAgICAgICAgICAgc2hvcnRTdW1tYXJ5OiBnZXRTaG9ydFN1bW1hcnkodG9TbHVnKGFGaWxlUGF0aCkpXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgbm9kZXMucHVzaChhTm9kZSlcblxuICAgICAgICAgICAgICAgICAgICAvLyBjb25zb2xlLmxvZyhcIkNvbnN0cnVjdGluZyBncmFwaCBmb3Igbm9kZTogXCIgKyBhRmlsZVBhdGggKVxuICAgICAgICAgICAgICAgICAgICBjb25zdCBpbnRlcm5hbExpbmtzID0gVHJhbnNmb3JtZXIuZ2V0SW50ZXJuYWxMaW5rcyhhRmlsZVBhdGgpXG4gICAgICAgICAgICAgICAgICAgIGludGVybmFsTGlua3MuZm9yRWFjaChhTGluayA9PiB7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChhTGluay5zbHVnID09PSBudWxsIHx8IGFMaW5rLnNsdWcubGVuZ3RoID09PSAwKSByZXR1cm5cblxuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgYW5FZGdlID0ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNvdXJjZTogdG9TbHVnKGFGaWxlUGF0aCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGFyZ2V0OiBhTGluay5zbHVnLFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgZWRnZXMucHVzaChhbkVkZ2UpXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBjb25zb2xlLmxvZyhcIlNvdXJjZTogXCIgKyBhbkVkZ2Uuc291cmNlKVxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gY29uc29sZS5sb2coXCJUYXJnZXQ6IFwiICsgYW5FZGdlLnRhcmdldClcbiAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgLy8gY29uc29sZS5sb2coXCI9PT09PT09PT09PT09PUNvbnN0cnVjdGluZyBncmFwaFwiIClcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICApXG4gICAgICAgIGNvbnN0IGRhdGEgPSB7bm9kZXMsIGVkZ2VzfTtcbiAgICAgICAgZnMud3JpdGVGaWxlU3luYyhmaWxlcGF0aCwgSlNPTi5zdHJpbmdpZnkoZGF0YSksIFwidXRmLThcIik7XG4gICAgICAgIHJldHVybiBkYXRhO1xuICAgIH1cbn1cblxuXG5leHBvcnQgZnVuY3Rpb24gZ2V0TG9jYWxHcmFwaERhdGEoY3VycmVudE5vZGVJZCkge1xuXG4gICAgY29uc3Qge25vZGVzLCBlZGdlc30gPSBjb25zdHJ1Y3RHcmFwaERhdGEoKVxuXG4gICAgY29uc3QgbmV3Tm9kZXMgPSBub2Rlcy5tYXAoYU5vZGUgPT4gKFxuICAgICAgICB7XG4gICAgICAgICAgICBkYXRhOiB7XG4gICAgICAgICAgICAgICAgaWQ6IGFOb2RlLnNsdWcudG9TdHJpbmcoKSxcbiAgICAgICAgICAgICAgICBsYWJlbDogVHJhbnNmb3JtZXIucGFyc2VGaWxlTmFtZUZyb21QYXRoKHRvRmlsZVBhdGgoYU5vZGUuc2x1ZykpLFxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgKSlcblxuICAgIGNvbnN0IG5ld0VkZ2VzID0gZWRnZXMubWFwKGFuRWRnZSA9PiAoe1xuICAgICAgICBkYXRhOiB7XG4gICAgICAgICAgICBzb3VyY2U6IGFuRWRnZS5zb3VyY2UsXG4gICAgICAgICAgIC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ImZpbGVQYXRocyIsImVkZ2VzIiwibm9kZXMiLCJmb3JFYWNoIiwiYUZpbGVQYXRoIiwiYU5vZGUiLCJ0aXRsZSIsInBhcnNlRmlsZU5hbWVGcm9tUGF0aCIsInNob3J0U3VtbWFyeSIsInB1c2giLCJpbnRlcm5hbExpbmtzIiwiZ2V0SW50ZXJuYWxMaW5rcyIsImFMaW5rIiwibGVuZ3RoIiwiYW5FZGdlIiwic291cmNlIiwidGFyZ2V0Iiwid3JpdGVGaWxlU3luYyIsInN0cmluZ2lmeSIsImdldExvY2FsR3JhcGhEYXRhIiwiY3VycmVudE5vZGVJZCIsIm5ld05vZGVzIiwibGFiZWwiLCJuZXdFZGdlcyIsImV4aXN0aW5nTm9kZUlEcyIsIm91dEdvaW5nTm9kZUlkcyIsImZpbHRlciIsImluY29taW5nTm9kZUlkcyIsImxvY2FsTm9kZUlkcyIsImNvbmNhdCIsIml0ZW0iLCJpbmRleE9mIiwibG9jYWxOb2RlcyIsImxvY2FsRWRnZXMiLCJlZGdlIiwiZmlsdGVyZWRFZGdlcyIsImdldEFsbFNsdWdzIiwiZiIsImVuZHNXaXRoIiwiZ2V0RGlyZWN0b3J5RGF0YSIsImZpbHRlcmVkRGlyZWN0b3J5IiwiZXh0ZW5zaW9ucyIsImNvbnZlcnRPYmplY3QiLCJfY291bnRlciIsInRoaXNPYmplY3QiLCJjaGlsZHJlbiIsInJvdXRlclBhdGgiLCJmaW5kIiwiZmlsZU5hbWUiLCJub3JtYWxpemVGaWxlTmFtZSIsIm5hbWUiLCJuZXdPYmplY3QiLCJyb3V0ZVBhdGgiLCJhQ2hpbGQiLCJuZXdDaGlsZCIsImZsYXQiLCJhcnJheSIsInJlc3VsdCIsImEiLCJBcnJheSIsImlzQXJyYXkiLCJnZXRGbGF0dGVuQXJyYXkiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./lib/utils.js\n");


/***/ })€†buffer†source„size„maps„hash(�/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"getContent\": () => (/* binding */ getContent),\n/* harmony export */   \"getShortSummary\": () => (/* binding */ getShortSummary),\n/* harmony export */   \"getAllMarkdownFiles\": () => (/* binding */ getAllMarkdownFiles),\n/* harmony export */   \"getSinglePost\": () => (/* binding */ getSinglePost),\n/* harmony export */   \"toFilePath\": () => (/* binding */ toFilePath),\n/* harmony export */   \"getSlugHashMap\": () => (/* binding */ getSlugHashMap),\n/* harmony export */   \"toSlug\": () => (/* binding */ toSlug),\n/* harmony export */   \"constructGraphData\": () => (/* binding */ constructGraphData),\n/* harmony export */   \"getLocalGraphData\": () => (/* binding */ getLocalGraphData),\n/* harmony export */   \"getAllSlugs\": () => (/* binding */ getAllSlugs),\n/* harmony export */   \"getDirectoryData\": () => (/* binding */ getDirectoryData),\n/* harmony export */   \"convertObject\": () => (/* binding */ convertObject),\n/* harmony export */   \"getFlattenArray\": () => (/* binding */ getFlattenArray)\n/* harmony export */ });\n/* harmony import */ var _node__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node */ \"./lib/node.js\");\n/* harmony import */ var _transformer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./transformer */ \"./lib/transformer.js\");\n/* harmony import */ var unified__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! unified */ \"unified\");\n/* harmony import */ var unified__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(unified__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var remark_parse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! remark-parse */ \"remark-parse\");\n/* harmony import */ var remark_parse__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(remark_parse__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var mdast_util_to_string__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! mdast-util-to-string */ \"mdast-util-to-string\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! path */ \"path\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! fs */ \"fs\");\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_6__);\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_transformer__WEBPACK_IMPORTED_MODULE_1__, mdast_util_to_string__WEBPACK_IMPORTED_MODULE_4__]);\n([_transformer__WEBPACK_IMPORTED_MODULE_1__, mdast_util_to_string__WEBPACK_IMPORTED_MODULE_4__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\n\n\n\n\nconst dirTree = __webpack_require__(/*! directory-tree */ \"directory-tree\");\nfunction getContent(slug) {\n    let currentFilePath = toFilePath(slug);\n    if (currentFilePath === undefined || currentFilePath == null) return null;\n    return _node__WEBPACK_IMPORTED_MODULE_0__.Node.readFileSync(currentFilePath);\n}\nfunction getShortSummary(slug) {\n    const content = getContent(slug);\n    if (content === undefined || content === null) {\n        return;\n    }\n    const tree = unified__WEBPACK_IMPORTED_MODULE_2___default()().use((remark_parse__WEBPACK_IMPORTED_MODULE_3___default())).parse(content);\n    let plainText = (0,mdast_util_to_string__WEBPACK_IMPORTED_MODULE_4__.toString)(tree);\n    return plainText.split(\" \").splice(0, 40).join(\" \");\n}\nfunction getAllMarkdownFiles() {\n    return _node__WEBPACK_IMPORTED_MODULE_0__.Node.getFiles(_node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder());\n}\nfunction getSinglePost(slug) {\n    // List of filenames that will provide existing links to wikilink\n    let currentFilePath = toFilePath(slug);\n    //console.log(\"currentFilePath: \", currentFilePath)\n    var fileContent = _node__WEBPACK_IMPORTED_MODULE_0__.Node.readFileSync(currentFilePath);\n    const currentFileFrontMatter = _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.getFrontMatterData(fileContent);\n    // console.log(\"===============\\n\\nFile is scanning: \", slug)\n    const [htmlContent] = _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.getHtmlContent(fileContent);\n    // console.log(\"==================================\")\n    //console.log(\"hrmlcontents and backlinks\")\n    return {\n        id: slug,\n        // ...currentFileFrontMatter,\n        data: htmlContent\n    };\n}\nconst cachedSlugMap = getSlugHashMap();\nfunction toFilePath(slug) {\n    return cachedSlugMap[slug];\n}\nfunction getSlugHashMap() {\n    // This is to solve problem of converting between slug and filepath,\n    // where previously if I convert a slug to a file path sometime\n    // it does not always resolve to correct filepath, converting function is not bi-directional\n    // and not conflict-free, other solution was considered (hash file name into a hash, but this\n    // is not SEO-friendly and make url look ugly ==> I chose this\n    const slugMap = new Map();\n    getAllMarkdownFiles().map((aFile)=>{\n        const aSlug = toSlug(aFile);\n        // if (slugMap.has(aSlug)) {\n        //     slugMap[aSlug].push(aFile)\n        // } else {\n        //     slugMap[aSlug] = [aFile]\n        // }\n        // Note: [Future improvement] Resolve conflict\n        slugMap[aSlug] = aFile;\n    });\n    slugMap['index'] = _node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder() + \"/index.md\";\n    slugMap['/'] = _node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder() + \"/index.md\";\n    return slugMap;\n}\nfunction toSlug(filePath) {\n    if (_node__WEBPACK_IMPORTED_MODULE_0__.Node.isFile(filePath) && filePath.includes(_node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder())) {\n        return filePath.replace(_node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder(), '').replaceAll('/', '__').replaceAll(' ', '++++').replaceAll('&', 'ambersand').replace('.md', '');\n    } else {\n        //TODO handle this properly\n        return '/';\n    }\n}\nfunction constructGraphData() {\n    const filepath = path__WEBPACK_IMPORTED_MODULE_5___default().join(process.cwd(), \"graph-data.json\");\n    if (_node__WEBPACK_IMPORTED_MODULE_0__.Node.isFile(filepath)) {\n        const data = fs__WEBPACK_IMPORTED_MODULE_6___default().readFileSync(filepath);\n        return JSON.parse(String(data));\n    } else {\n        const filePaths = getAllMarkdownFiles();\n        const edges = [];\n        const nodes = [];\n        filePaths.forEach((aFilePath)=>{\n            // const {currentFilePath} = getFileNames(filename)\n            const aNode = {\n                title: _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.parseFileNameFromPath(aFilePath),\n                slug: toSlug(aFilePath),\n                shortSummary: getShortSummary(toSlug(aFilePath))\n            };\n            nodes.push(aNode);\n            // console.log(\"Constructing graph for node: \" + aFilePath )\n            const internalLinks = _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.getInternalLinks(aFilePath);\n            internalLinks.forEach((aLink)=>{\n                if (aLink.slug === null || aLink.slug.length === 0) return;\n                const anEdge = {\n                    source: toSlug(aFilePath),\n                    target: aLink.slug\n                };\n                edges.push(anEdge);\n            // console.log(\"Source: \" + anEdge.source)\n            // console.log(\"Target: \" + anEdge.target)\n            });\n        // console.log(\"==============Constructing graph\" )\n        });\n        const data = {\n            nodes,\n            edges\n        };\n        fs__WEBPACK_IMPORTED_MODULE_6___default().writeFileSync(filepath, JSON.stringify(data), \"utf-8\");\n        return data;\n    }\n}\nfunction getLocalGraphData(currentNodeId) {\n    const { nodes , edges  } = constructGraphData();\n    const newNodes = nodes.map((aNode)=>({\n            data: {\n                id: aNode.slug.toString(),\n                label: _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.parseFileNameFromPath(toFilePath(aNode.slug))\n            }\n        })\n    );\n    const newEdges = edges.map((anEdge)=>({\n            data: {\n                source: anEdge.source,\n                target: anEdge.target\n            }\n        })\n    );\n    const existingNodeIDs = newNodes.map((aNode)=>aNode.data.id\n    );\n    currentNodeId = currentNodeId === 'index' ? '__index' : currentNodeId;\n    if (currentNodeId != null && existingNodeIDs.includes(currentNodeId)) {\n        const outGoingNodeIds = newEdges.filter((anEdge)=>anEdge.data.source === currentNodeId\n        ).map((anEdge)=>anEdge.data.target\n        );\n        const incomingNodeIds = newEdges.filter((anEdge)=>anEdge.data.target === currentNodeId\n        ).map((anEdge)=>anEdge.data.source\n        );\n        outGoingNodeIds.push(currentNodeId);\n        const localNodeIds = incomingNodeIds.concat(outGoingNodeIds.filter((item)=>incomingNodeIds.indexOf(item) < 0\n        ));\n        if (localNodeIds.indexOf(currentNodeId) < 0) {\n            localNodeIds.push(currentNodeId);\n        }\n        const localNodes = newNodes.filter((aNode)=>localNodeIds.includes(aNode.data.id)\n        );\n        let localEdges = newEdges.filter((edge)=>localNodeIds.includes(edge.data.source)\n        ).filter((edge)=>localNodeIds.includes(edge.data.target)\n        );\n        // Filter self-reference edges\n        localEdges = localEdges.filter((edge)=>edge.data.source !== edge.data.target\n        );\n        // TODO: Find out why target ==='/' in some case\n        localEdges = localEdges.filter((edge)=>edge.data.target !== '/'\n        );\n        return {\n            nodes: localNodes,\n            edges: localEdges\n        };\n    } else {\n        const filteredEdges = newEdges.filter((edge)=>existingNodeIDs.includes(edge.data.source)\n        ).filter((edge)=>existingNodeIDs.includes(edge.data.target)\n        );\n        return {\n            nodes: newNodes,\n            edges: filteredEdges\n        };\n    }\n}\nfunction getAllSlugs() {\n    //console.log(\"\\n\\nAll Posts are scanning\")\n    // Get file names under /posts\n    const filePaths = _node__WEBPACK_IMPORTED_MODULE_0__.Node.getFiles(_node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder()).filter((f)=>!(f.endsWith(\"index\") || f.endsWith(\"sidebar\"))\n    );\n    return filePaths.map((f)=>toSlug(f)\n    );\n}\nfunction getDirectoryData() {\n    const filteredDirectory = dirTree(_node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder(), {\n        extensions: /\\.md/\n    });\n    return convertObject(filteredDirectory);\n}\nlet _counter = 0;\nfunction convertObject(thisObject) {\n    const children = [];\n    let routerPath = getAllSlugs().find((slug)=>{\n        const fileName = _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.parseFileNameFromPath(toFilePath(slug));\n        return _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.normalizeFileName(fileName) === _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.normalizeFileName(thisObject.name);\n    }) || null;\n    routerPath = routerPath ? '/note/' + routerPath : null;\n    const newObject = {\n        name: thisObject.name,\n        children: children,\n        id: (_counter++).toString(),\n        routePath: routerPath || null\n    };\n    if (thisObject.children != null && thisObject.children.length > 0) {\n        thisObject.children.forEach((aChild)=>{\n            const newChild = convertObject(aChild);\n            children.push(newChild);\n        });\n        return newObject;\n    } else {\n        return newObject;\n    }\n}\nfunction flat(array) {\n    var result = [];\n    array.forEach(function(a) {\n        result.push(a);\n        if (Array.isArray(a.children)) {\n            result = result.concat(flat(a.children));\n        }\n    });\n    return result;\n}\nfunction getFlattenArray(thisObject) {\n    return flat(thisObject.children);\n}\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9saWIvdXRpbHMuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQTJCO0FBQ2M7QUFDWjtBQUNNO0FBQ1U7QUFDdEI7QUFDSjtBQUVuQixLQUFLLENBQUNPLE9BQU8sR0FBR0MsbUJBQU8sQ0FBQyxzQ0FBZ0I7QUFHakMsU0FBU0MsVUFBVSxDQUFDQyxJQUFJLEVBQUUsQ0FBQztJQUM5QixHQUFHLENBQUNDLGVBQWUsR0FBR0MsVUFBVSxDQUFDR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H1cbiAgICAgICAgICAgICAgICAgICAgbm9kZXMucHVzaChhTm9kZSlcblxuICAgICAgICAgICAgICAgICAgICAvLyBjb25zb2xlLmxvZyhcIkNvbnN0cnVjdGluZyBncmFwaCBmb3Igbm9kZTogXCIgKyBhRmlsZVBhdGggKVxuICAgICAgICAgICAgICAgICAgICBjb25zdCBpbnRlcm5hbExpbmtzID0gVHJhbnNmb3JtZXIuZ2V0SW50ZXJuYWxMaW5rcyhhRmlsZVBhdGgpXG4gICAgICAgICAgICAgICAgICAgIGludGVybmFsTGlua3MuZm9yRWFjaChhTGluayA9PiB7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChhTGluay5zbHVnID09PSBudWxsIHx8IGFMaW5rLnNsdWcubGVuZ3RoID09PSAwKSByZXR1cm5cblxuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgYW5FZGdlID0ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNvdXJjZTogdG9TbHVnKGFGaWxlUGF0aCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGFyZ2V0OiBhTGluay5zbHVnLFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgZWRnZXMucHVzaChhbkVkZ2UpXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBjb25zb2xlLmxvZyhcIlNvdXJjZTogXCIgKyBhbkVkZ2Uuc291cmNlKVxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gY29uc29sZS5sb2coXCJUYXJnZXQ6IFwiICsgYW5FZGdlLnRhcmdldClcbiAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgLy8gY29uc29sZS5sb2coXCI9PT09PT09PT09PT09PUNvbnN0cnVjdGluZyBncmFwaFwiIClcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICApXG4gICAgICAgIGNvbnN0IGRhdGEgPSB7bm9kZXMsIGVkZ2VzfTtcbiAgICAgICAgZnM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cyIsImV4aXN0aW5nTm9kZUlEcyIsIm91dEdvaW5nTm9kZUlkcyIsImZpbHRlciIsImluY29taW5nTm9kZUlkcyIsImxvY2FsTm9kZUlkcyIsImNvbmNhdCIsIml0ZW0iLCJpbmRleE9mIiwibG9jYWxOb2RlcyIsImxvY2FsRWRnZXMiLCJlZGdlIiwiZmlsdGVyZWRFZGdlcyIsImdldEFsbFNsdWdzIiwiZiIsImVuZHNXaXRoIiwiZ2V0RGlyZWN0b3J5RGF0YSIsImZpbHRlcmVkRGlyZWN0b3J5IiwiZXh0ZW5zaW9ucyIsImNvbnZlcnRPYmplY3QiLCJfY291bnRlciIsInRoaXNPYmplY3QiLCJjaGlsZHJlbiIsInJvdXRlclBhdGgiLCJmaW5kIiwiZmlsZU5hbWUiLCJub3JtYWxpemVGaWxlTmFtZSIsIm5hbWUiLCJuZXdPYmplY3QiLCJyb3V0ZVBhdGgiLCJhQ2hpbGQiLCJuZXdDaGlsZCIsImZsYXQiLCJhcnJheSIsInJlc3VsdCIsImEiLCJBcnJheSIsImlzQXJyYXkiLCJnZXRGbGF0dGVuQXJyYXkiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./lib/utils.js\n");

/***/ })€Û{�/*!**********************!*\
  !*** ./lib/utils.js ***!
  \**********************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"getContent\": () => (/* binding */ getContent),\n/* harmony export */   \"getShortSummary\": () => (/* binding */ getShortSummary),\n/* harmony export */   \"getAllMarkdownFiles\": () => (/* binding */ getAllMarkdownFiles),\n/* harmony export */   \"getSinglePost\": () => (/* binding */ getSinglePost),\n/* harmony export */   \"toFilePath\": () => (/* binding */ toFilePath),\n/* harmony export */   \"getSlugHashMap\": () => (/* binding */ getSlugHashMap),\n/* harmony export */   \"toSlug\": () => (/* binding */ toSlug),\n/* harmony export */   \"constructGraphData\": () => (/* binding */ constructGraphData),\n/* harmony export */   \"getLocalGraphData\": () => (/* binding */ getLocalGraphData),\n/* harmony export */   \"getAllSlugs\": () => (/* binding */ getAllSlugs),\n/* harmony export */   \"getDirectoryData\": () => (/* binding */ getDirectoryData),\n/* harmony export */   \"convertObject\": () => (/* binding */ convertObject),\n/* harmony export */   \"getFlattenArray\": () => (/* binding */ getFlattenArray)\n/* harmony export */ });\n/* harmony import */ var _node__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node */ \"./lib/node.js\");\n/* harmony import */ var _transformer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./transformer */ \"./lib/transformer.js\");\n/* harmony import */ var unified__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! unified */ \"unified\");\n/* harmony import */ var unified__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(unified__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var remark_parse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! remark-parse */ \"remark-parse\");\n/* harmony import */ var remark_parse__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(remark_parse__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var mdast_util_to_string__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! mdast-util-to-string */ \"mdast-util-to-string\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! path */ \"path\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! fs */ \"fs\");\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_6__);\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_transformer__WEBPACK_IMPORTED_MODULE_1__, mdast_util_to_string__WEBPACK_IMPORTED_MODULE_4__]);\n([_transformer__WEBPACK_IMPORTED_MODULE_1__, mdast_util_to_string__WEBPACK_IMPORTED_MODULE_4__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\n\n\n\n\nconst dirTree = __webpack_require__(/*! directory-tree */ \"directory-tree\");\nfunction getContent(slug) {\n    let currentFilePath = toFilePath(slug);\n    if (currentFilePath === undefined || currentFilePath == null) return null;\n    return _node__WEBPACK_IMPORTED_MODULE_0__.Node.readFileSync(currentFilePath);\n}\nfunction getShortSummary(slug) {\n    const content = getContent(slug);\n    if (content === undefined || content === null) {\n        return;\n    }\n    const tree = unified__WEBPACK_IMPORTED_MODULE_2___default()().use((remark_parse__WEBPACK_IMPORTED_MODULE_3___default())).parse(content);\n    let plainText = (0,mdast_util_to_string__WEBPACK_IMPORTED_MODULE_4__.toString)(tree);\n    return plainText.split(\" \").splice(0, 40).join(\" \");\n}\nfunction getAllMarkdownFiles() {\n    return _node__WEBPACK_IMPORTED_MODULE_0__.Node.getFiles(_node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder());\n}\nfunction getSinglePost(slug) {\n    // List of filenames that will provide existing links to wikilink\n    let currentFilePath = toFilePath(slug);\n    //console.log(\"currentFilePath: \", currentFilePath)\n    var fileContent = _node__WEBPACK_IMPORTED_MODULE_0__.Node.readFileSync(currentFilePath);\n    const currentFileFrontMatter = _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.getFrontMatterData(fileContent);\n    // console.log(\"===============\\n\\nFile is scanning: \", slug)\n    const [htmlContent] = _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.getHtmlContent(fileContent);\n    // console.log(\"==================================\")\n    //console.log(\"hrmlcontents and backlinks\")\n    return {\n        id: slug,\n        // ...currentFileFrontMatter,\n        data: htmlContent\n    };\n}\nconst cachedSlugMap = getSlugHashMap();\nfunction toFilePath(slug) {\n    return cachedSlugMap[slug];\n}\nfunction getSlugHashMap() {\n    // This is to solve problem of converting between slug and filepath,\n    // where previously if I convert a slug to a file path sometime\n    // it does not always resolve to correct filepath, converting function is not bi-directional\n    // and not conflict-free, other solution was considered (hash file name into a hash, but this\n    // is not SEO-friendly and make url look ugly ==> I chose this\n    const slugMap = new Map();\n    getAllMarkdownFiles().map((aFile)=>{\n        const aSlug = toSlug(aFile);\n        // if (slugMap.has(aSlug)) {\n        //     slugMap[aSlug].push(aFile)\n        // } else {\n        //     slugMap[aSlug] = [aFile]\n        // }\n        // Note: [Future improvement] Resolve conflict\n        slugMap[aSlug] = aFile;\n    });\n    slugMap['index'] = _node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder() + \"/index.md\";\n    slugMap['/'] = _node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder() + \"/index.md\";\n    return slugMap;\n}\nfunction toSlug(filePath) {\n    if (_node__WEBPACK_IMPORTED_MODULE_0__.Node.isFile(filePath) && filePath.includes(_node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder())) {\n        return filePath.replace(_node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder(), '').replaceAll('/', '__').replaceAll(' ', '++++').replaceAll('&', 'ambersand').replace('.md', '');\n    } else {\n        //TODO handle this properly\n        return '/';\n    }\n}\nfunction constructGraphData() {\n    const filepath = path__WEBPACK_IMPORTED_MODULE_5___default().join(process.cwd(), \"graph-data.json\");\n    if (_node__WEBPACK_IMPORTED_MODULE_0__.Node.isFile(filepath)) {\n        const data = fs__WEBPACK_IMPORTED_MODULE_6___default().readFileSync(filepath);\n        return JSON.parse(String(data));\n    } else {\n        const filePaths = getAllMarkdownFiles();\n        const edges = [];\n        const nodes = [];\n        filePaths.forEach((aFilePath)=>{\n            // const {currentFilePath} = getFileNames(filename)\n            const aNode = {\n                title: _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.parseFileNameFromPath(aFilePath),\n                slug: toSlug(aFilePath),\n                shortSummary: getShortSummary(toSlug(aFilePath))\n            };\n            nodes.push(aNode);\n            // console.log(\"Constructing graph for node: \" + aFilePath )\n            const internalLinks = _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.getInternalLinks(aFilePath);\n            internalLinks.forEach((aLink)=>{\n                if (aLink.slug === null || aLink.slug.length === 0) return;\n                const anEdge = {\n                    source: toSlug(aFilePath),\n                    target: aLink.slug\n                };\n                edges.push(anEdge);\n            // console.log(\"Source: \" + anEdge.source)\n            // console.log(\"Target: \" + anEdge.target)\n            });\n        // console.log(\"==============Constructing graph\" )\n        });\n        const data = {\n            nodes,\n            edges\n        };\n        fs__WEBPACK_IMPORTED_MODULE_6___default().writeFileSync(filepath, JSON.stringify(data), \"utf-8\");\n        return data;\n    }\n}\nfunction getLocalGraphData(currentNodeId) {\n    const { nodes , edges  } = constructGraphData();\n    const newNodes = nodes.map((aNode)=>({\n            data: {\n                id: aNode.slug.toString(),\n                label: _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.parseFileNameFromPath(toFilePath(aNode.slug))\n            }\n        })\n    );\n    const newEdges = edges.map((anEdge)=>({\n            data: {\n                source: anEdge.source,\n                target: anEdge.target\n            }\n        })\n    );\n    const existingNodeIDs = newNodes.map((aNode)=>aNode.data.id\n    );\n    currentNodeId = currentNodeId === 'index' ? '__index' : currentNodeId;\n    if (currentNodeId != null && existingNodeIDs.includes(currentNodeId)) {\n        const outGoingNodeIds = newEdges.filter((anEdge)=>anEdge.data.source === currentNodeId\n        ).map((anEdge)=>anEdge.data.target\n        );\n        const incomingNodeIds = newEdges.filter((anEdge)=>anEdge.data.target === currentNodeId\n        ).map((anEdge)=>anEdge.data.source\n        );\n        outGoingNodeIds.push(currentNodeId);\n        const localNodeIds = incomingNodeIds.concat(outGoingNodeIds.filter((item)=>incomingNodeIds.indexOf(item) < 0\n        ));\n        if (localNodeIds.indexOf(currentNodeId) < 0) {\n            localNodeIds.push(currentNodeId);\n        }\n        const localNodes = newNodes.filter((aNode)=>localNodeIds.includes(aNode.data.id)\n        );\n        let localEdges = newEdges.filter((edge)=>localNodeIds.includes(edge.data.source)\n        ).filter((edge)=>localNodeIds.includes(edge.data.target)\n        );\n        // Filter self-reference edges\n        localEdges = localEdges.filter((edge)=>edge.data.source !== edge.data.target\n        );\n        // TODO: Find out why target ==='/' in some case\n        localEdges = localEdges.filter((edge)=>edge.data.target !== '/'\n        );\n        return {\n            nodes: localNodes,\n            edges: localEdges\n        };\n    } else {\n        const filteredEdges = newEdges.filter((edge)=>existingNodeIDs.includes(edge.data.source)\n        ).filter((edge)=>existingNodeIDs.includes(edge.data.target)\n        );\n        return {\n            nodes: newNodes,\n            edges: filteredEdges\n        };\n    }\n}\nfunction getAllSlugs() {\n    //console.log(\"\\n\\nAll Posts are scanning\")\n    // Get file names under /posts\n    const filePaths = _node__WEBPACK_IMPORTED_MODULE_0__.Node.getFiles(_node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder()).filter((f)=>!(f.endsWith(\"index\") || f.endsWith(\"sidebar\"))\n    );\n    return filePaths.map((f)=>toSlug(f)\n    );\n}\nfunction getDirectoryData() {\n    const filteredDirectory = dirTree(_node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder(), {\n        extensions: /\\.md/\n    });\n    return convertObject(filteredDirectory);\n}\nlet _counter = 0;\nfunction convertObject(thisObject) {\n    const children = [];\n    let routerPath = getAllSlugs().find((slug)=>{\n        const fileName = _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.parseFileNameFromPath(toFilePath(slug));\n        return _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.normalizeFileName(fileName) === _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.normalizeFileName(thisObject.name);\n    }) || null;\n    routerPath = routerPath ? '/note/' + routerPath : null;\n    const newObject = {\n        name: thisObject.name,\n        children: children,\n        id: (_counter++).toString(),\n        routePath: routerPath || null\n    };\n    if (thisObject.children != null && thisObject.children.length > 0) {\n        thisObject.children.forEach((aChild)=>{\n            const newChild = convertObject(aChild);\n            children.push(newChild);\n        });\n        return newObject;\n    } else {\n        return newObject;\n    }\n}\nfunction flat(array) {\n    var result = [];\n    array.forEach(function(a) {\n        result.push(a);\n        if (Array.isArray(a.children)) {\n            result = result.concat(flat(a.children));\n        }\n    });\n    return result;\n}\nfunction getFlattenArray(thisObject) {\n    return flat(thisObject.children);\n}\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9saWIvdXRpbHMuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQTJCO0FBQ2M7QUFDWjtBQUNNO0FBQ1U7QUFDdEI7QUFDSjtBQUVuQixLQUFLLENBQUNPLE9BQU8sR0FBR0MsbUJBQU8sQ0FBQyxzQ0FBZ0I7QUFHakMsU0FBU0MsVUFBVSxDQUFDQyxJQUFJLEVBQUUsQ0FBQztJQUM5QixHQUFHLENBQUNDLGVBQWUsR0FBR0MsVUFBVSxDQUFDRixJQUFJO0lBQ3JDLEVBQUUsRUFBRUMsZUFBZSxLQUFLRSxTQUFTLElBQUlGLGVBQWUsSUFBSSxJQUFJLEVBQUUsTUFBTSxDQUFDLElBQUk7SUFDekUsTUFBTSxDQUFDWCxvREFBaUIsQ0FBQ1csZUFBZTtBQUM1QyxDQUFDO0FBRU0sU0FBU0ksZUFBZSxDQUFDTCxJQUFJLEVBQUUsQ0FBQztJQUNuQyxLQUFLLENBQUNNLE9BQU8sR0FBR1AsVUFBVSxDQUFDQyxJQUFJO0lBQy9CLEVBQUUsRUFBRU0sT0FBTyxLQUFLSCxTQUFTLElBQUlHLE9BQU8sS0FB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RGaWxlU3luYyhmaWxlcGF0aCk7XG4gICAgICAgIHJldHVybiBKU09OLnBhcnNlKFN0cmluZyhkYXRhKSlcbiAgICB9IGVsc2Uge1xuICAgICAgICBjb25zdCBmaWxlUGF0aHMgPSBnZXRBbGxNYXJrZG93bkZpbGVzKCk7XG4gICAgICAgIGNvbnN0IGVkZ2VzID0gW11cbiAgICAgICAgY29uc3Qgbm9kZXMgPSBbXVxuICAgICAgICBmaWxlUGF0aHNcbiAgICAgICAgICAgIC5mb3JFYWNoKGFGaWxlUGF0aCA9PiB7XG4gICAgICAgICAgICAgICAgICAgIC8vIGNvbnN0IHtjdXJyZW50RmlsZVBhdGh9ID0gZ2V0RmlsZU5hbWVzKGZpbGVuYW1lKVxuICAgICAgICAgICAgICAgICAgICBjb25zdCBhTm9kZSA9IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiBUcmFuc2Zvcm1lci5wYXJzZUZpbGVOYW1lRnJvbVBhdGgoYUZpbGVQYXRoKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHNsdWc6IHRvU2x1ZyhhRmlsZVBhdGgpLFxuICAgICAgICAgICAgICAgICAgICAgICAgc2hvcnRTdW1tYXJ5OiBnZXRTaG9ydFN1bW1hcnkodG9TbHVnKGFGaWxlUGF0aCkpXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgbm9kZXMucHVzaChhTm9kZSlcblxuICAgICAgICAgICAgICAgICAgICAvLyBjb25zb2xlLmxvZyhcIkNvbnN0cnVjdGluZyBncmFwaCBmb3Igbm9kZTogXCIgKyBhRmlsZVBhdGggKVxuICAgICAgICAgICAgICAgICAgICBjb25zdCBpbnRlcm5hbExpbmtzID0gVHJhbnNmb3JtZXIuZ2V0SW50ZXJuYWxMaW5rcyhhRmlsZVBhdGgpXG4gICAgICAgICAgICAgICAgICAgIGludGVybmFsTGlua3MuZm9yRWFjaChhTGluayA9PiB7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChhTGluay5zbHVnID09PSBudWxsIHx8IGFMaW5rLnNsdWcubGVuZ3RoID09PSAwKSByZXR1cm5cblxuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgYW5FZGdlID0ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNvdXJjZTogdG9TbHVnKGFGaWxlUGF0aCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGFyZ2V0OiBhTGluay5zbHVnLFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgZWRnZXMucHVzaChhbkVkZ2UpXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBjb25zb2xlLmxvZyhcIlNvdXJjZTogXCIgKyBhbkVkZ2Uuc291cmNlKVxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gY29uc29sZS5sb2coXCJUYXJnZXQ6IFwiICsgYW5FZGdlLnRhcmdldClcbiAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgLy8gY29uc29sZS5sb2coXCI9PT09PT09PT09PT09PUNvbnN0cnVjdGluZyBncmFwaFwiIClcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICApXG4gICAgICAgIGNvbnN0IGRhdGEgPSB7bm9kZXMsIGVkZ2VzfTtcbiAgICAgICAgZnMud3JpdGVGaWxlU3luYyhmaWxlcGF0aCwgSlNPTi5zdHJpbmdpZnkoZGF0YSksIFwidXRmLThcIik7XG4gICAgICAgIHJldHVybiBkYXRhO1xuICAgIH1cbn1cblxuXG5leHBvcnQgZnVuY3Rpb24gZ2V0TG9jYWxHcmFwaERhdGEoY3VycmVudE5vZGVJZCkge1xuXG4gICAgY29uc3Qge25vZGVzLCBlZGdlc30gPSBjb25zdHJ1Y3RHcmFwaERhdGEoKVxuXG4gICAgY29uc3QgbmV3Tm9kZXMgPSBub2Rlcy5tYXAoYU5vZGUgPT4gKFxuICAgICAgICB7XG4gICAgICAgICAgICBkYXRhO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oaXNPYmplY3QiLCJjaGlsZHJlbiIsInJvdXRlclBhdGgiLCJmaW5kIiwiZmlsZU5hbWUiLCJub3JtYWxpemVGaWxlTmFtZSIsIm5hbWUiLCJuZXdPYmplY3QiLCJyb3V0ZVBhdGgiLCJhQ2hpbGQiLCJuZXdDaGlsZCIsImZsYXQiLCJhcnJheSIsInJlc3VsdCIsImEiLCJBcnJheSIsImlzQXJyYXkiLCJnZXRGbGF0dGVuQXJyYXkiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./lib/utils.js\n");

/***/ });,

/***/ "./node_modules/next/dist/shared/lib/dynamic.js":
av«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource³/*!******************************************************!*\
  !*** ./node_modules/next/dist/shared/lib/dynamic.js ***!
  \******************************************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSource�:«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourceS/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
�9eval("\nObject.defineProperty(exports, \"__esModule\", ({\n    value: true\n}));\nexports.noSSR = noSSR;\nexports[\"default\"] = dynamic;\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"react\"));\nvar _loadable = _interopRequireDefault(__webpack_require__(/*! ./loadable */ \"./loadable\"));\nfunction _interopRequireDefault(obj) {\n    return obj && obj.__esModule ? obj : {\n        default: obj\n    };\n}\nconst isServerSide = \"undefined\" === 'undefined';\nfunction noSSR(LoadableInitializer, loadableOptions) {\n    // Removing webpack and modules means react-loadable won't try preloading\n    delete loadableOptions.webpack;\n    delete loadableOptions.modules;\n    // This check is necessary to prevent react-loadable from initializing on the server\n    if (!isServerSide) {\n        return LoadableInitializer(loadableOptions);\n    }\n    const Loading = loadableOptions.loading;\n    // This will only be rendered on the server side\n    return ()=>/*#__PURE__*/ _react.default.createElement(Loading, {\n            error: null,\n            isLoading: true,\n            pastDelay: false,\n            timedOut: false\n        })\n    ;\n}\nfunction dynamic(dynamicOptions, options) {\n    let loadableFn = _loadable.default;\n    let loadableOptions = {\n        // A loading component is not required, so we default it\n        loading: ({ error , isLoading , pastDelay  })=>{\n            if (!pastDelay) return null;\n            if (true) {\n                if (isLoading) {\n                    return null;\n                }\n                if (error) {\n                    return(/*#__PURE__*/ _react.default.createElement(\"p\", null, error.message, /*#__PURE__*/ _react.default.createElement(\"br\", null), error.stack));\n                }\n            }\n            return null;\n        }\n    };\n    // Support for direct import(), eg: dynamic(import('../hello-world'))\n    // Note that this is only kept for the edge case where someone is passing in a promise as first argument\n    // The react-loadable babel plugin will turn dynamic(import('../hello-world')) into dynamic(() => import('../hello-world'))\n    // To make sure we don't execute the import without rendering first\n    if (dynamicOptions instanceof Promise) {\n        loadableOptions.loader = ()=>dynamicOptions\n        ;\n    // Support for having import as a function, eg: dynamic(() => import('../hello-world'))\n    } else if (typeof dynamicOptions === 'function') {\n        loadableOptions.loader = dynamicOptions;\n    // Support for having first argument being options, eg: dynamic({loader: import('../hello-world')})\n    } else if (typeof dynamicOptions === 'object') {\n        loadableOptions = {\n            ...loadableOptions,\n            ...dynamicOptions\n        };\n    }\n    // Support for passing options, eg: dynamic(import('../hello-world'), {loading: () => <p>Loading something</p>})\n    loadableOptions = {\n        ...loadableOptions,\n        ...options\n    };\n    const suspenseOptions = loadableOptions;\n    if (true) {\n        // Error if react root is not enabled and `suspense` option is set to true\n        if ( true && suspenseOptions.suspense) {\n            // TODO: add error doc when this feature is stable\n            throw new Error(`Invalid suspense option usage in next/dynamic. Read more: https://nextjs.org/docs/messages/invalid-dynamic-suspense`);\n        }\n    }\n    if (suspenseOptions.suspense) {\n        return loadableFn(suspenseOptions);\n    }\n    // coming from build/babel/plugins/react-loadable-plugin.js\n    if (loadableOptions.loadableGenerated) {\n        loadableOptions = {\n            ...loadableOptions,\n            ...loadableOptions.loadableGenerated\n        };\n        delete loadableOptions.loadableGenerated;\n    }\n    // support for disabling server side rendering, eg: dynamic(import('../hello-world'), {ssr: false})\n    if (typeof loadableOptions.ssr === 'boolean') {\n        if (!loadableOptions.ssr) {\n            delete loadableOptions.ssr;\n            return noSSR(loadableFn, loadableOptions);\n        }\n        delete loadableOptions.ssr;\n    }\n    return loadableFn(loadableOptions);\n} //# sourceMappingURL=dynamic.js.map\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvbmV4dC9kaXN0L3NoYXJlZC9saWIvZHluYW1pYy5qcy5qcyIsIm1hcHBpbmdzIjoiQUFBWTtBQUNaQSw4Q0FBNkMsQ0FBQztJQUMxQ0csS0FBSyxFQUFFLElBQUk7QUFDZixDQUFDLEVBQUM7QUFDRkQsYUFBYSxHQUFHRSxLQUFLO0FBQ3JCRixrQkFBZSxHQUFHSSxPQUFPO0FBQ3pCLEdBQUcsQ0FBQ0MsTUFBTSxHQUFHQyxzQkFBc0IsQ0FBQ0MsbUJBQU8sQ0FBQyxvQkFBTztBQUNuRCxHQUFHLENBQUNDLFNBQVMsR0FBR0Ysc0JBQXNCLENBQUNDLG1CQUFPLENBQUMsOEJBQVk7U0FDbERELHNCQUFzQixDQUFDRyxHQUFHLEVBQUUsQ0FBQztJQUNsQyxNQUFNLENBQUNBLEdBQUcsSUFBSUEsR0FBRyxDQUFDQyxVQUFVLEdBQUdELEdBQUcsR0FBRyxDQUFDO1FBQ2xDTixPQUFPLEVBQUVNLEdBQUc7SUFDaEIsQ0FBQztBQUNMLENBQUM7QUFDRCxLQUFLLENBQUNFLFlBQVksR0FBRyxDQUFhLGVBQUssQ0FBVztTQUN6Q1QsS0FBSyxDQUFDVSxtQkFBbUIsRUFBRUMsZUFBZSxFQUFFLENBQUM7SUFDbEQsRUFBeUU7SUFDekUsTUFBTSxDQUFDQSxlQUFlLENBQUNDLE9BQU87SUFDOUIsTUFBT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pbmcgPSBsb2FkYWJsZU9wdGlvbnMubG9hZGluZztcbiAgICAvLyBUaGlzIHdpbGwgb25seSBiZSByZW5kZXJlZCBvbiB0aGUgc2VydmVyIHNpZGVcbiAgICByZXR1cm4gKCk9Pi8qI19fUFVSRV9fKi8gX3JlYWN0LmRlZmF1bHQuY3JlYXRlRWxlbWVudChMb2FkaW5nLCB7XG4gICAgICAgICAgICBlcnJvcjogbnVsbCxcbiAgICAgICAgICAgIGlzTG9hZGluZzogdHJ1ZSxcbiAgICAgICAgICAgIHBhc3REZWxheTogZmFsc2UsXG4gICAgICAgICAgICB0aW1lZE91dDogZmFsc2VcbiAgICAgICAgfSlcbiAgICA7XG59XG5mdW5jdGlvbiBkeW5hbWljKGR5bmFtaWNPcHRpb25zLCBvcHRpb25zKSB7XG4gICAgbGV0IGxvYWRhYmxlRm4gPSBfbG9hZGFibGUuZGVmYXVsdDtcbiAgICBsZXQgbG9hZGFibGVPcHRpb25zID0ge1xuICAgICAgICAvLyBBIGxvYWRpbmcgY29tcG9uZW50IGlzIG5vdCByZXF1aXJlZCwgc28gd2UgZGVmYXVsdCBpdFxuICAgICAgICBsb2FkaW5nOiAoeyBlcnJvciAsIGlzTG9hZGluZyAsIHBhc3REZWxheSAgfSk9PntcbiAgICAgICAgICAgIGlmICghcGFzdERlbGF5KSByZXR1cm4gbnVsbDtcbiAgICAgICAgICAgIGlmIChwcm9jZXNzLmVudi5OT0RFX0VOViA9PT0gJ2RldmVsb3BtZW50Jykge1xuICAgICAgICAgICAgICAgIGlmIChpc0xvYWRpbmcpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGlmIChlcnJvcikge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4oLyojX19QVVJFX18qLyBfcmVhY3QuZGVmYXVsdC5jcmVhdGVFbGVtZW50KFwicFwiLCBudWxsLCBlcnJvci5tZXNzYWdlLCAvKiNfX1B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CBsb2FkYWJsZU9wdGlvbnMpO1xuICAgICAgICB9XG4gICAgICAgIGRlbGV0ZSBsb2FkYWJsZU9wdGlvbnMuc3NyO1xuICAgIH1cbiAgICByZXR1cm4gbG9hZGFibGVGbihsb2FkYWJsZU9wdGlvbnMpO1xufVxuXG4vLyMgc291cmNlTWFwcGluZ1VSTD1keW5hbWljLmpzLm1hcCJdLCJuYW1lcyI6WyJPYmplY3QiLCJkZWZpbmVQcm9wZXJ0eSIsImV4cG9ydHMiLCJ2YWx1ZSIsIm5vU1NSIiwiZGVmYXVsdCIsImR5bmFtaWMiLCJfcmVhY3QiLCJfaW50ZXJvcFJlcXVpcmVEZWZhdWx0IiwicmVxdWlyZSIsIl9sb2FkYWJsZSIsIm9iaiIsIl9fZXNNb2R1bGUiLCJpc1NlcnZlclNpZGUiLCJMb2FkYWJsZUluaXRpYWxpemVyIiwibG9hZGFibGVPcHRpb25zIiwid2VicGFjayIsIm1vZHVsZXMiLCJMb2FkaW5nIiwibG9hZGluZyIsImNyZWF0ZUVsZW1lbnQiLCJlcnJvciIsImlzTG9hZGluZyIsInBhc3REZWxheSIsInRpbWVkT3V0IiwiZHluYW1pY09wdGlvbnMiLCJvcHRpb25zIiwibG9hZGFibGVGbiIsIm1lc3NhZ2UiLCJzdGFjayIsIlByb21pc2UiLCJsb2FkZXIiLCJzdXNwZW5zZU9wdGlvbnMiLCJwcm9jZXNzIiwiZW52IiwiX19ORVhUX0NPTkNVUlJFTlRfRkVBVFVSRVMiLCJfX05FWFRfUkVBQ1RfUk9PVCIsInN1c3BlbnNlIiwiRXJyb3IiLCJsb2FkYWJsZUdlbmVyYXRlZCIsInNzciJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/next/dist/shared/lib/dynamic.js\n");


/***/ })€†buffer†source„size„maps„hashì9/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
eval("\nObject.defineProperty(exports, \"__esModule\", ({\n    value: true\n}));\nexports.noSSR = noSSR;\nexports[\"default\"] = dynamic;\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"react\"));\nvar _loadable = _interopRequireDefault(__webpack_require__(/*! ./loadable */ \"./loadable\"));\nfunction _interopRequireDefault(obj) {\n    return obj && obj.__esModule ? obj : {\n        default: obj\n    };\n}\nconst isServerSide = \"undefined\" === 'undefined';\nfunction noSSR(LoadableInitializer, loadableOptions) {\n    // Removing webpack and modules means react-loadable won't try preloading\n    delete loadableOptions.webpack;\n    delete loadableOptions.modules;\n    // This check is necessary to prevent react-loadable from initializing on the server\n    if (!isServerSide) {\n        return LoadableInitializer(loadableOptions);\n    }\n    const Loading = loadableOptions.loading;\n    // This will only be rendered on the server side\n    return ()=>/*#__PURE__*/ _react.default.createElement(Loading, {\n            error: null,\n            isLoading: true,\n            pastDelay: false,\n            timedOut: false\n        })\n    ;\n}\nfunction dynamic(dynamicOptions, options) {\n    let loadableFn = _loadable.default;\n    let loadableOptions = {\n        // A loading component is not required, so we default it\n        loading: ({ error , isLoading , pastDelay  })=>{\n            if (!pastDelay) return null;\n            if (true) {\n                if (isLoading) {\n                    return null;\n                }\n                if (error) {\n                    return(/*#__PURE__*/ _react.default.createElement(\"p\", null, error.message, /*#__PURE__*/ _react.default.createElement(\"br\", null), error.stack));\n                }\n            }\n            return null;\n        }\n    };\n    // Support for direct import(), eg: dynamic(import('../hello-world'))\n    // Note that this is only kept for the edge case where someone is passing in a promise as first argument\n    // The react-loadable babel plugin will turn dynamic(import('../hello-world')) into dynamic(() => import('../hello-world'))\n    // To make sure we don't execute the import without rendering first\n    if (dynamicOptions instanceof Promise) {\n        loadableOptions.loader = ()=>dynamicOptions\n        ;\n    // Support for having import as a function, eg: dynamic(() => import('../hello-world'))\n    } else if (typeof dynamicOptions === 'function') {\n        loadableOptions.loader = dynamicOptions;\n    // Support for having first argument being options, eg: dynamic({loader: import('../hello-world')})\n    } else if (typeof dynamicOptions === 'object') {\n        loadableOptions = {\n            ...loadableOptions,\n            ...dynamicOptions\n        };\n    }\n    // Support for passing options, eg: dynamic(import('../hello-world'), {loading: () => <p>Loading something</p>})\n    loadableOptions = {\n        ...loadableOptions,\n        ...options\n    };\n    const suspenseOptions = loadableOptions;\n    if (true) {\n        // Error if react root is not enabled and `suspense` option is set to true\n        if ( true && suspenseOptions.suspense) {\n            // TODO: add error doc when this feature is stable\n            throw new Error(`Invalid suspense option usage in next/dynamic. Read more: https://nextjs.org/docs/messages/invalid-dynamic-suspense`);\n        }\n    }\n    if (suspenseOptions.suspense) {\n        return loadableFn(suspenseOptions);\n    }\n    // coming from build/babel/plugins/react-loadable-plugin.js\n    if (loadableOptions.loadableGenerated) {\n        loadableOptions = {\n            ...loadableOptions,\n            ...loadableOptions.loadableGenerated\n        };\n        delete loadableOptions.loadableGenerated;\n    }\n    // support for disabling server side rendering, eg: dynamic(import('../hello-world'), {ssr: false})\n    if (typeof loadableOptions.ssr === 'boolean') {\n        if (!loadableOptions.ssr) {\n            delete loadableOptions.ssr;\n            return noSSR(loadableFn, loadableOptions);\n        }\n        delete loadableOptions.ssr;\n    }\n    return loadableFn(loadableOptions);\n} //# sourceMappingURL=dynamic.js.map\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvbmV4dC9kaXN0L3NoYXJlZC9saWIvZHluYW1pYy5qcy5qcyIsIm1hcHBpbmdzIjoiQUFBWTtBQUNaQSw4Q0FBNkMsQ0FBQztJQUMxQ0csS0FBSyxFQUFFLElBQUk7QUFDZixDQUFDLEVBQUM7QUFDRkQsYUFBYSxHQUFHRSxLQUFLO0FBQ3JCRixrQkFBZSxHQUFHSSxPQUFPO0FBQ3pCLEdBQUcsQ0FBQ0MsTUFBTSxHQUFHQyxzQkFBc0IsQ0FBQ0MsbUJBQU8sQ0FBQyxvQkFBTztBQUNuRCxHQUFHLENBQUNDLFNBQVMsR0FBR0Ysc0JBQXNCLENBQUNDLG1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ZWxheSAgfSk9PntcbiAgICAgICAgICAgIGlmICghcGFzdERlbGF5KSByZXR1cm4gbnVsbDtcbiAgICAgICAgICAgIGlmIChwcm9jZXNzLmVudi5OT0RFX0VOViA9PT0gJ2RldmVsb3BtZW50Jykge1xuICAgICAgICAgICAgICAgIGlmIChpc0xvYWRpbmcpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGlmIChlcnJvcikge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4oLyojX19QVVJFX18qLyBfcmVhY3QuZGVmYXVsdC5jcmVhdGVFbGVtZW50KFwicFwiLCBudWxsLCBlcnJvci5tZXNzYWdlLCAvKiNfX1BVUkVfXyovIF9yZWFjdC5kZWZhdWx0LmNyZWF0ZUVsZW1lbnQoXCJiclwiLCBudWxsKSwgZXJyb3Iuc3RhY2spKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZXR1cm4gbnVsbDtcbiAgICAgICAgfVxuICAgIH07XG4gICAgLy8gU3VwcG9ydCBmb3IgZGlyZWN0IGltcG9ydCgpLCBlZzogZHluYW1pYyhpbXBvcnQoJy4uL2hlbGxvLXdvcmxkJykpXG4gICAgLy8gTm90ZSB0aGF0IHRoaXMgaXMgb25seSBrZXB0IGZvciB0aGUgZWRnZSBjYXNlIHdoZXJlIHNvbWVvbmUgaXMgcGFzc2luZyBpbiBhIHByb21pc2UgYXMgZmlyc3QgYXJndW1lbnRcbiAgICAvLyBUaGUgcmVhY3QtbG9hZGFibGUgYmFiZWwgcGx1Z2luIHdpbGwgdHVybiBkeW5hbWljKGltcG9ydCgnLi4vaGVsbG8td29ybGQnKSkgaW50byBkeW5hbWljKCgpID0+IGltcG9ydCgnLi4vaGVsbG8td29ybGQnKSlcbiAgICAvLyBUbyBtYWtlIHN1cmUgd2UgZG9uJ3QgZXhlY3V0ZSB0aGUgaW1wb3J0IHdp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VGbiIsIm1lc3NhZ2UiLCJzdGFjayIsIlByb21pc2UiLCJsb2FkZXIiLCJzdXNwZW5zZU9wdGlvbnMiLCJwcm9jZXNzIiwiZW52IiwiX19ORVhUX0NPTkNVUlJFTlRfRkVBVFVSRVMiLCJfX05FWFRfUkVBQ1RfUk9PVCIsInN1c3BlbnNlIiwiRXJyb3IiLCJsb2FkYWJsZUdlbmVyYXRlZCIsInNzciJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/next/dist/shared/lib/dynamic.js\n");

/***/ })€ÕŸ:/*!******************************************************!*\
  !*** ./node_modules/next/dist/shared/lib/dynamic.js ***!
  \******************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
eval("\nObject.defineProperty(exports, \"__esModule\", ({\n    value: true\n}));\nexports.noSSR = noSSR;\nexports[\"default\"] = dynamic;\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"react\"));\nvar _loadable = _interopRequireDefault(__webpack_require__(/*! ./loadable */ \"./loadable\"));\nfunction _interopRequireDefault(obj) {\n    return obj && obj.__esModule ? obj : {\n        default: obj\n    };\n}\nconst isServerSide = \"undefined\" === 'undefined';\nfunction noSSR(LoadableInitializer, loadableOptions) {\n    // Removing webpack and modules means react-loadable won't try preloading\n    delete loadableOptions.webpack;\n    delete loadableOptions.modules;\n    // This check is necessary to prevent react-loadable from initializing on the server\n    if (!isServerSide) {\n        return LoadableInitializer(loadableOptions);\n    }\n    const Loading = loadableOptions.loading;\n    // This will only be rendered on the server side\n    return ()=>/*#__PURE__*/ _react.default.createElement(Loading, {\n            error: null,\n            isLoading: true,\n            pastDelay: false,\n            timedOut: false\n        })\n    ;\n}\nfunction dynamic(dynamicOptions, options) {\n    let loadableFn = _loadable.default;\n    let loadableOptions = {\n        // A loading component is not required, so we default it\n        loading: ({ error , isLoading , pastDelay  })=>{\n            if (!pastDelay) return null;\n            if (true) {\n                if (isLoading) {\n                    return null;\n                }\n                if (error) {\n                    return(/*#__PURE__*/ _react.default.createElement(\"p\", null, error.message, /*#__PURE__*/ _react.default.createElement(\"br\", null), error.stack));\n                }\n            }\n            return null;\n        }\n    };\n    // Support for direct import(), eg: dynamic(import('../hello-world'))\n    // Note that this is only kept for the edge case where someone is passing in a promise as first argument\n    // The react-loadable babel plugin will turn dynamic(import('../hello-world')) into dynamic(() => import('../hello-world'))\n    // To make sure we don't execute the import without rendering first\n    if (dynamicOptions instanceof Promise) {\n        loadableOptions.loader = ()=>dynamicOptions\n        ;\n    // Support for having import as a function, eg: dynamic(() => import('../hello-world'))\n    } else if (typeof dynamicOptions === 'function') {\n        loadableOptions.loader = dynamicOptions;\n    // Support for having first argument being options, eg: dynamic({loader: import('../hello-world')})\n    } else if (typeof dynamicOptions === 'object') {\n        loadableOptions = {\n            ...loadableOptions,\n            ...dynamicOptions\n        };\n    }\n    // Support for passing options, eg: dynamic(import('../hello-world'), {loading: () => <p>Loading something</p>})\n    loadableOptions = {\n        ...loadableOptions,\n        ...options\n    };\n    const suspenseOptions = loadableOptions;\n    if (true) {\n        // Error if react root is not enabled and `suspense` option is set to true\n        if ( true && suspenseOptions.suspense) {\n            // TODO: add error doc when this feature is stable\n            throw new Error(`Invalid suspense option usage in next/dynamic. Read more: https://nextjs.org/docs/messages/invalid-dynamic-suspense`);\n        }\n    }\n    if (suspenseOptions.suspense) {\n        return loadableFn(suspenseOptions);\n    }\n    // coming from build/babel/plugins/react-loadable-plugin.js\n    if (loadableOptions.loadableGenerated) {\n        loadableOptions = {\n            ...loadableOptions,\n            ...loadableOptions.loadableGenerated\n        };\n        delete loadableOptions.loadableGenerated;\n    }\n    // support for disabling server side rendering, eg: dynamic(import('../hello-world'), {ssr: false})\n    if (typeof loadableOptions.ssr === 'boolean') {\n        if (!loadableOptions.ssr) {\n            delete loadableOptions.ssr;\n            return noSSR(loadableFn, loadableOptions);\n        }\n        delete loadableOptions.ssr;\n    }\n    return loadableFn(loadableOptions);\n} //# sourceMappingURL=dynamic.js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gICAgICBlcnJvcjogbnVsbCxcbiAgICAgICAgICAgIGlzTG9hZGluZzogdHJ1ZSxcbiAgICAgICAgICAgIHBhc3REZWxheTogZmFsc2UsXG4gICAgICAgICAgICB0aW1lZE91dDogZmFsc2VcbiAgICAgICAgfSlcbiAgICA7XG59XG5mdW5jdGlvbiBkeW5hbWljKGR5bmFtaWNPcHRpb25zLCBvcHRpb25zKSB7XG4gICAgbGV0IGxvYWRhYmxlRm4gPSBfbG9hZGFibGUuZGVmYXVsdDtcbiAgICBsZXQgbG9hZGFibGVPcHRpb25zID0ge1xuICAgICAgICAvLyBBIGxvYWRpbmcgY29tcG9uZW50IGlzIG5vdCByZXF1aXJlZCwgc28gd2UgZGVmYXVsdCBpdFxuICAgICAgICBsb2FkaW5nOiAoeyBlcnJvciAsIGlzTG9hZGluZyAsIHBhc3REZWxheSAgfSk9PntcbiAgICAgICAgICAgIGlmICghcGFzdERlbGF5KSByZXR1cm4gbnVsbDtcbiAgICAgICAgICAgIGlmIChwcm9jZXNzLmVudi5OT0RFX0VOViA9PT0gJ2RldmVsb3BtZW50Jykge1xuICAgICAgICAgICAgICAgIGlmIChpc0xvYWRpbmcpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGlmIChlcnJvcikge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4oLyojX19QVVJFX18qLyBfcmVhY3QuZGVmYXVsdC5jcmVhdGVFbGVtZW50KFwicFwiLCBudWxsLCBlcnJvci5tZXNzYWdlLCAvKiNfX1BVUkVfXyovIF9yZWFjdC5kZWZhdWx0LmNyZWF0ZUVsZW1lbnQoXCJiclwiLCBudWxsKSwgZXJyb3Iuc3RhY2spKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZXR1cm4gbnVsbDtcbiAgICAgICAgfVxuICAgIH07XG4gICAgLy8gU3VwcG9ydCBmb3IgZG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W1lcyI6WyJPYmplY3QiLCJkZWZpbmVQcm9wZXJ0eSIsImV4cG9ydHMiLCJ2YWx1ZSIsIm5vU1NSIiwiZGVmYXVsdCIsImR5bmFtaWMiLCJfcmVhY3QiLCJfaW50ZXJvcFJlcXVpcmVEZWZhdWx0IiwicmVxdWlyZSIsIl9sb2FkYWJsZSIsIm9iaiIsIl9fZXNNb2R1bGUiLCJpc1NlcnZlclNpZGUiLCJMb2FkYWJsZUluaXRpYWxpemVyIiwibG9hZGFibGVPcHRpb25zIiwid2VicGFjayIsIm1vZHVsZXMiLCJMb2FkaW5nIiwibG9hZGluZyIsImNyZWF0ZUVsZW1lbnQiLCJlcnJvciIsImlzTG9hZGluZyIsInBhc3REZWxheSIsInRpbWVkT3V0IiwiZHluYW1pY09wdGlvbnMiLCJvcHRpb25zIiwibG9hZGFibGVGbiIsIm1lc3NhZ2UiLCJzdGFjayIsIlByb21pc2UiLCJsb2FkZXIiLCJzdXNwZW5zZU9wdGlvbnMiLCJwcm9jZXNzIiwiZW52IiwiX19ORVhUX0NPTkNVUlJFTlRfRkVBVFVSRVMiLCJfX05FWFRfUkVBQ1RfUk9PVCIsInN1c3BlbnNlIiwiRXJyb3IiLCJsb2FkYWJsZUdlbmVyYXRlZCIsInNzciJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/next/dist/shared/lib/dynamic.js\n");

/***/ }),

/***/ "./pages/index.js":
‹a«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourceY/*!************************!*\
  !*** ./pages/index.js ***!
  \************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSource_0«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourceN/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
V/eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ Home),\n/* harmony export */   \"getStaticProps\": () => (/* binding */ getStaticProps)\n/* harmony export */ });\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ \"react/jsx-dev-runtime\");\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _components_Layout__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/Layout */ \"./components/Layout.js\");\n/* harmony import */ var _lib_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../lib/utils */ \"./lib/utils.js\");\n/* harmony import */ var _components_FolderTree__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../components/FolderTree */ \"./components/FolderTree.js\");\n/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! next/dynamic */ \"./node_modules/next/dynamic.js\");\n/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_dynamic__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _components_MDContent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../components/MDContent */ \"./components/MDContent.js\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_lib_utils__WEBPACK_IMPORTED_MODULE_2__]);\n_lib_utils__WEBPACK_IMPORTED_MODULE_2__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];\n\n\n\n\n\n\n// This trick is to dynamically load component that interact with window object (browser only)\nconst DynamicGraph = next_dynamic__WEBPACK_IMPORTED_MODULE_4___default()(null, {\n    loadableGenerated: {\n        modules: [\n            \"index.js -> \" + \"../components/Graph\"\n        ]\n    },\n    loading: ()=>/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n            children: \"Loading ...\"\n        }, void 0, false, {\n            fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js\",\n            lineNumber: 18,\n            columnNumber: 22\n        }, undefined)\n    ,\n    ssr: false\n});\nfunction Home({ graphData , content , tree , flattenNodes , backLinks  }) {\n    return(/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_Layout__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n        children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n            className: \"container\",\n            children: [\n                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"nav\", {\n                    className: \"nav-bar\",\n                    children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_FolderTree__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n                        tree: tree,\n                        flattenNodes: flattenNodes\n                    }, void 0, false, {\n                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js\",\n                        lineNumber: 26,\n                        columnNumber: 21\n                    }, this)\n                }, void 0, false, {\n                    fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js\",\n                    lineNumber: 25,\n                    columnNumber: 17\n                }, this),\n                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_MDContent__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n                    content: content,\n                    handleOpenNewContent: null,\n                    backLinks: backLinks\n                }, void 0, false, {\n                    fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js\",\n                    lineNumber: 28,\n                    columnNumber: 17\n                }, this),\n                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(DynamicGraph, {\n                    graph: graphData\n                }, void 0, false, {\n                    fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js\",\n                    lineNumber: 29,\n                    columnNumber: 17\n                }, this)\n            ]\n        }, void 0, true, {\n            fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js\",\n            lineNumber: 24,\n            columnNumber: 13\n        }, this)\n    }, void 0, false, {\n        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js\",\n        lineNumber: 23,\n        columnNumber: 9\n    }, this));\n};\nconst { nodes , edges  } = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.constructGraphData)();\nfunction getStaticProps() {\n    const tree = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.convertObject)((0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.getDirectoryData)());\n    const contentData = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.getSinglePost)(\"index\");\n    const flattenNodes = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.getFlattenArray)(tree);\n    const listOfEdges = edges.filter((anEdge)=>anEdge.target === \"index\"\n    );\n    const internalLinks = listOfEdges.map((anEdge)=>nodes.find((aNode)=>aNode.slug === anEdge.source\n        )\n    ).filter((element)=>element !== undefined\n    );\n    const backLinks = [\n        ...new Set(internalLinks)\n    ];\n    const graphData = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.getLocalGraphData)(\"index\");\n    return {\n        props: {\n            content: contentData.data,\n            tree: tree,\n            flattenNodes: flattenNodes,\n            graphData: graphData,\n            backLinks: backLinks\n        }\n    };\n}\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9wYWdlcy9pbmRleC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7OztBQUF5QztBQVFwQjtBQUM0QjtBQUNmO0FBQ2E7QUFHL0MsRUFBOEY7QUFDOUYsS0FBSyxDQUFDVSxZQUFZLEdBQUdGLG1EQUFPOzs7Ozs7SUFFdEJHLE9BQU8sa0ZBQVNDLENBQUM7c0JBQUMsQ0FBVzs7Ozs7OztJQUFNQyxHQUFHLEVBQUUsS0FBSzs7QUFHcEMsUUFBUSxDQUFDQyxJQUFJLENBQUMsQ0FBQ0MsQ0FBQUEsU0FBUyxHQUFFQyxPQUFPLEdBQUVDLElBQUksR0FBRUMsWUFBWSxHQUFFQyxTQUFTLEdBQUMsRUFBRSxDQUFDO0lBQy9FLE1BQU0sNkVBQ0RuQiwwREFBTTs4RkFDRm9CLENBQUc7WUFBQ0MsU0FBUyxFQUFHLENBQVc7OzRGQUN2QkMsQ0FBRztvQkFBQ0QsU0FBUyxFQUFDLENBQVM7MEdBQ25CZCw4REFBVTt3QkFBQ1UsSUFBSSxFQUFFQSxJQUFJO3dCQUFFQyxZQUFZLEVBQUVBLFlBQVk7Ozs7Ozs7Ozs7OzRGQUVyRFQsNkRBQVM7b0JBQUNPLE9BQU8sRUFBRUEsT0FBTztvQkFBR08sb0JBQW9CLEVBQUUsSUFBSTtvQkFBRUosU0FBUyxFQUFFQSxTQUFTOzs7Ozs7NEZBQzdFVCxZQUFZO29CQUFDYyxLQUFLLEVBQUVULFNBQVM7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBSzlDLENBQUM7QUFDRCxLQUFLLENBQUMsQ0FBQ1UsQ0FBQUEsS0F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Swic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./pages/index.js\n");


/***/ })€†buffer†source„size„maps„hash®//***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ Home),\n/* harmony export */   \"getStaticProps\": () => (/* binding */ getStaticProps)\n/* harmony export */ });\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ \"react/jsx-dev-runtime\");\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _components_Layout__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/Layout */ \"./components/Layout.js\");\n/* harmony import */ var _lib_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../lib/utils */ \"./lib/utils.js\");\n/* harmony import */ var _components_FolderTree__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../components/FolderTree */ \"./components/FolderTree.js\");\n/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! next/dynamic */ \"./node_modules/next/dynamic.js\");\n/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_dynamic__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _components_MDContent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../components/MDContent */ \"./components/MDContent.js\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_lib_utils__WEBPACK_IMPORTED_MODULE_2__]);\n_lib_utils__WEBPACK_IMPORTED_MODULE_2__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];\n\n\n\n\n\n\n// This trick is to dynamically load component that interact with window object (browser only)\nconst DynamicGraph = next_dynamic__WEBPACK_IMPORTED_MODULE_4___default()(null, {\n    loadableGenerated: {\n        modules: [\n            \"index.js -> \" + \"../components/Graph\"\n        ]\n    },\n    loading: ()=>/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n            children: \"Loading ...\"\n        }, void 0, false, {\n            fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js\",\n            lineNumber: 18,\n            columnNumber: 22\n        }, undefined)\n    ,\n    ssr: false\n});\nfunction Home({ graphData , content , tree , flattenNodes , backLinks  }) {\n    return(/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_Layout__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n        children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n            className: \"container\",\n            children: [\n                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"nav\", {\n                    className: \"nav-bar\",\n                    children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_FolderTree__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n                        tree: tree,\n                        flattenNodes: flattenNodes\n                    }, void 0, false, {\n                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js\",\n                        lineNumber: 26,\n                        columnNumber: 21\n                    }, this)\n                }, void 0, false, {\n                    fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js\",\n                    lineNumber: 25,\n                    columnNumber: 17\n                }, this),\n                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_MDContent__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n                    content: content,\n                    handleOpenNewContent: null,\n                    backLinks: backLinks\n                }, void 0, false, {\n                    fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js\",\n                    lineNumber: 28,\n                    columnNumber: 17\n                }, this),\n                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(DynamicGraph, {\n                    graph: graphData\n                }, void 0, false, {\n                    fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js\",\n                    lineNumber: 29,\n                    columnNumber: 17\n                }, this)\n            ]\n        }, void 0, true, {\n            fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js\",\n            lineNumber: 24,\n            columnNumber: 13\n        }, this)\n    }, void 0, false, {\n        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js\",\n        lineNumber: 23,\n        columnNumber: 9\n    }, this));\n};\nconst { nodes , edges  } = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.constructGraphData)();\nfunction getStaticProps() {\n    const tree = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.convertObject)((0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.getDirectoryData)());\n    const contentData = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.getSinglePost)(\"index\");\n    const flattenNodes = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.getFlattenArray)(tree);\n    const listOfEdges = edges.filter((anEdge)=>anEdge.target === \"index\"\n    );\n    const internalLinks = listOfEdges.map((anEdge)=>nodes.find((aNode)=>aNode.slug === anEdge.source\n        )\n    ).filter((element)=>element !== undefined\n    );\n    const backLinks = [\n        ...new Set(internalLinks)\n    ];\n    const graphData = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.getLocalGraphData)(\"index\");\n    return {\n        props: {\n            content: contentData.data,\n            tree: tree,\n            flattenNodes: flattenNodes,\n            graphData: graphData,\n            backLinks: backLinks\n        }\n    };\n}\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9wYWdlcy9pbmRleC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7OztBQUF5QztBQVFwQjtBQUM0QjtBQUNmO0FBQ2E7QUFHL0MsRUFBOEY7QUFDOUYsS0FBSyxDQUFDVSxZQUFZLEdBQUdGLG1EQUFPOzs7Ozs7SUFFdEJHLE9BQU8sa0ZBQVNDLENBQUM7c0JBQUMsQ0FBVzs7Ozs7OztJQUFNQyxHQUFHLEVBQUUsS0FBSzs7QUFHcEMsUUFBUSxDQUFDQyxJQUFJLENBQUMsQ0FBQ0MsQ0FBQUEsU0FBUyxHQUFFQyxPQUFPLEdBQUVDLElBQUksR0FBRUMsWUFBWSxHQUFFQyxTQUFTLEdBQUMsRUFBRSxDQUFDO0lBQy9FLE1BQU0sNkVBQ0RuQiwwREFBTTs4RkFDRm9CLENBQUc7WUFBQ0MsU0FBUyxFQUFHLENBQVc7OzRGQUN2QkMsQ0FBRztvQkFBQ0QsU0FBUyxFQUFDLENBQVM7MEdBQ25CZCw4REFBVTt3QkFBQ1UsSUFBSSxFQUFFQSxJQUFJO3dCQUFFQyxZQUFZLEVBQUVBLFlBQVk7Ozs7Ozs7Ozs7OzRGQUVyRFQsNkRBQVM7b0JBQUNPLE9BQU8sRUFBRUEsT0FBTztvQkFBR08sb0JBQW9CLEVBQUUsSUFBSTtvQkFBRUosU0FBUyxF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LCJhbkVkZ2UiLCJ0YXJnZXQiLCJpbnRlcm5hbExpbmtzIiwibWFwIiwiZmluZCIsImFOb2RlIiwic2x1ZyIsInNvdXJjZSIsImVsZW1lbnQiLCJ1bmRlZmluZWQiLCJTZXQiLCJwcm9wcyIsImRhdGEiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./pages/index.js\n");

/***/ })€Ï0/*!************************!*\
  !*** ./pages/index.js ***!
  \************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ Home),\n/* harmony export */   \"getStaticProps\": () => (/* binding */ getStaticProps)\n/* harmony export */ });\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ \"react/jsx-dev-runtime\");\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _components_Layout__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/Layout */ \"./components/Layout.js\");\n/* harmony import */ var _lib_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../lib/utils */ \"./lib/utils.js\");\n/* harmony import */ var _components_FolderTree__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../components/FolderTree */ \"./components/FolderTree.js\");\n/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! next/dynamic */ \"./node_modules/next/dynamic.js\");\n/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_dynamic__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _components_MDContent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../components/MDContent */ \"./components/MDContent.js\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_lib_utils__WEBPACK_IMPORTED_MODULE_2__]);\n_lib_utils__WEBPACK_IMPORTED_MODULE_2__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];\n\n\n\n\n\n\n// This trick is to dynamically load component that interact with window object (browser only)\nconst DynamicGraph = next_dynamic__WEBPACK_IMPORTED_MODULE_4___default()(null, {\n    loadableGenerated: {\n        modules: [\n            \"index.js -> \" + \"../components/Graph\"\n        ]\n    },\n    loading: ()=>/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n            children: \"Loading ...\"\n        }, void 0, false, {\n            fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js\",\n            lineNumber: 18,\n            columnNumber: 22\n        }, undefined)\n    ,\n    ssr: false\n});\nfunction Home({ graphData , content , tree , flattenNodes , backLinks  }) {\n    return(/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_Layout__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n        children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n            className: \"container\",\n            children: [\n                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"nav\", {\n                    className: \"nav-bar\",\n                    children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_FolderTree__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n                        tree: tree,\n                        flattenNodes: flattenNodes\n                    }, void 0, false, {\n                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js\",\n                        lineNumber: 26,\n                        columnNumber: 21\n                    }, this)\n                }, void 0, false, {\n                    fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js\",\n                    lineNumber: 25,\n                    columnNumber: 17\n                }, this),\n                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_MDContent__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n                    content: content,\n                    handleOpenNewContent: null,\n                    backLinks: backLinks\n                }, void 0, false, {\n                    fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js\",\n                    lineNumber: 28,\n                    columnNumber: 17\n                }, this),\n                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(DynamicGraph, {\n                    graph: graphData\n                }, void 0, false, {\n                    fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js\",\n                    lineNumber: 29,\n                    columnNumber: 17\n                }, this)\n            ]\n        }, void 0, true, {\n            fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js\",\n            lineNumber: 24,\n            columnNumber: 13\n        }, this)\n    }, void 0, false, {\n        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js\",\n        lineNumber: 23,\n        columnNumber: 9\n    }, this));\n};\nconst { nodes , edges  } = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.constructGraphData)();\nfunction getStaticProps() {\n    const tree = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.convertObject)((0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.getDirectoryData)());\n    const contentData = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.getSinglePost)(\"index\");\n    const flattenNodes = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.getFlattenArray)(tree);\n    const listOfEdges = edges.filter((anEdge)=>anEdge.target === \"index\"\n    );\n    const internalLinks = listOfEdges.map((anEdge)=>nodes.find((aNode)=>aNode.slug === anEdge.source\n        )\n    ).filter((element)=>element !== undefined\n    );\n    const backLinks = [\n        ...new Set(internalLinks)\n    ];\n    const graphData = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.getLocalGraphData)(\"index\");\n    return {\n        props: {\n            content: contentData.data,\n            tree: tree,\n            flattenNodes: flattenNodes,\n            graphData: graphData,\n            backLinks: backLinks\n        }\n    };\n}\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9wYWdlcy9pbmRleC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7OztBQUF5QztBQVFwQjtBQUM0QjtBQUNmO0FBQ2E7QUFHL0MsRUFBOEY7QUFDOUYsS0FBSyxDQUFDVSxZQUFZLEdBQUdGLG1EQUFPOzs7Ozs7SUFFdEJHLE9BQU8sa0ZBQVNDLENBQUM7c0JBQUMsQ0FBVzs7Ozs7OztJQUFNQyxHQUFHLEVBQUUsS0FBSzs7QUFHcEMsUUFBUSxDQUFDQyxJQUFJLENBQUMsQ0FBQ0MsQ0FBQUEsU0FBUyxHQUFFQyxPQUFPLEdBQUVDLElBQUksR0FBRUMsWUFBWSxHQUFFQyxTQUFTLEdBQUMsRUFBRSxDQUFDO0lBQy9FLE1BQU0sNkVBQ0RuQiwwREFBTTs4RkFDRm9CLENBQUc7WUFBQ0MsU0FBUyxFQUFHLENBQVc7OzRGQUN2QkMsQ0FBRztvQkFBQ0QsU0FBUyxFQUFDLENBQVM7MEdBQ25CZCw4REFBVTt3QkFBQ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bmtzIiwiZGl2IiwiY2xhc3NOYW1lIiwibmF2IiwiaGFuZGxlT3Blbk5ld0NvbnRlbnQiLCJncmFwaCIsIm5vZGVzIiwiZWRnZXMiLCJnZXRTdGF0aWNQcm9wcyIsImNvbnRlbnREYXRhIiwibGlzdE9mRWRnZXMiLCJmaWx0ZXIiLCJhbkVkZ2UiLCJ0YXJnZXQiLCJpbnRlcm5hbExpbmtzIiwibWFwIiwiZmluZCIsImFOb2RlIiwic2x1ZyIsInNvdXJjZSIsImVsZW1lbnQiLCJ1bmRlZmluZWQiLCJTZXQiLCJwcm9wcyIsImRhdGEiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./pages/index.js\n");

/***/ })+,

/***/ "./node_modules/next/dynamic.js":
×«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourceƒ/*!**************************************!*\
  !*** ./node_modules/next/dynamic.js ***!
  \**************************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSourcep«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourceE/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

peval("module.exports = __webpack_require__(/*! ./dist/shared/lib/dynamic */ \"./node_modules/next/dist/shared/lib/dynamic.js\")\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvbmV4dC9keW5hbWljLmpzLmpzIiwibWFwcGluZ3MiOiJBQUFBLHVIQUFxRCIsInNvdXJjZXMiOlsid2VicGFjazovL215LWFwcC8uL25vZGVfbW9kdWxlcy9uZXh0L2R5bmFtaWMuanM/NzNkNCJdLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IHJlcXVpcmUoJy4vZGlzdC9zaGFyZWQvbGliL2R5bmFtaWMnKVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/next/dynamic.js\n");


/***/ })€†buffer†source„size„maps„hash¿/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

eval("module.exports = __webpack_require__(/*! ./dist/shared/lib/dynamic */ \"./node_modules/next/dist/shared/lib/dynamic.js\")\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvbmV4dC9keW5hbWljLmpzLmpzIiwibWFwcGluZ3MiOiJBQUFBLHVIQUFxRCIsInNvdXJjZXMiOlsid2VicGFjazovL215LWFwcC8uL25vZGVfbW9kdWxlcy9uZXh0L2R5bmFtaWMuanM/NzNkNCJdLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IHJlcXVpcmUoJy4vZGlzdC9zaGFyZWQvbGliL2R5bmFtaWMnKVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/next/dynamic.js\n");

/***/ })€ÉB/*!**************************************!*\
  !*** ./node_modules/next/dynamic.js ***!
  \**************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

eval("module.exports = __webpack_require__(/*! ./dist/shared/lib/dynamic */ \"./node_modules/next/dist/shared/lib/dynamic.js\")\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvbmV4dC9keW5hbWljLmpzLmpzIiwibWFwcGluZ3MiOiJBQUFBLHVIQUFxRCIsInNvdXJjZXMiOlsid2VicGFjazovL215LWFwcC8uL25vZGVfbW9kdWxlcy9uZXh0L2R5bmFtaWMuanM/NzNkNCJdLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IHJlcXVpcmUoJy4vZGlzdC9zaGFyZWQvbGliL2R5bmFtaWMnKVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/next/dynamic.js\n");

/***/ })-,

/***/ "@mui/icons-material/ChevronRight":
Ô«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourceª/*!***************************************************!*\
  !*** external "@mui/icons-material/ChevronRight" ***!
  \***************************************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSourceš«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource$/***/ ((module) => {

"use strict";
«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource=module.exports = require("@mui/icons-material/ChevronRight");´external commonjs "@mui/icons-material/ChevronRight"


/***/ })€†buffer†source„size„maps„hashk/***/ ((module) => {

"use strict";
module.exports = require("@mui/icons-material/ChevronRight");

/***/ })€Ã/*!***************************************************!*\
  !*** external "@mui/icons-material/ChevronRight" ***!
  \***************************************************/
/***/ ((module) => {

"use strict";
module.exports = require("@mui/icons-material/ChevronRight");

/***/ })+,

/***/ "@mui/icons-material/ExpandMore":
È«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource¤/*!*************************************************!*\
  !*** external "@mui/icons-material/ExpandMore" ***!
  \*************************************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSource–«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource$/***/ ((module) => {

"use strict";
«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource;module.exports = require("@mui/icons-material/ExpandMore");²external commonjs "@mui/icons-material/ExpandMore"


/***/ })€†buffer†source„size„maps„hashi/***/ ((module) => {

"use strict";
module.exports = require("@mui/icons-material/ExpandMore");

/***/ })€½
/*!*************************************************!*\
  !*** external "@mui/icons-material/ExpandMore" ***!
  \*************************************************/
/***/ ((module) => {

"use strict";
module.exports = require("@mui/icons-material/ExpandMore");

/***/ }),

/***/ "@mui/lab/TreeItem":
z«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource}/*!************************************!*\
  !*** external "@mui/lab/TreeItem" ***!
  \************************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSource|«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource$/***/ ((module) => {

"use strict";
«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource.module.exports = require("@mui/lab/TreeItem");¥external commonjs "@mui/lab/TreeItem"


/***/ })€†buffer†source„size„maps„hash\/***/ ((module) => {

"use strict";
module.exports = require("@mui/lab/TreeItem");

/***/ })€·Ù/*!************************************!*\
  !*** external "@mui/lab/TreeItem" ***!
  \************************************/
/***/ ((module) => {

"use strict";
module.exports = require("@mui/lab/TreeItem");

/***/ }),

/***/ "@mui/lab/TreeView":
z«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource}/*!************************************!*\
  !*** external "@mui/lab/TreeView" ***!
  \************************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSource|«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource$/***/ ((module) => {

"use strict";
«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource.module.exports = require("@mui/lab/TreeView");¥external commonjs "@mui/lab/TreeView"


/***/ })€†buffer†source„size„maps„hash\/***/ ((module) => {

"use strict";
module.exports = require("@mui/lab/TreeView");

/***/ })€±Ù/*!************************************!*\
  !*** external "@mui/lab/TreeView" ***!
  \************************************/
/***/ ((module) => {

"use strict";
module.exports = require("@mui/lab/TreeView");

/***/ }),

/***/ "@mui/material":
b«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourceq/*!********************************!*\
  !*** external "@mui/material" ***!
  \********************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSourcet«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource$/***/ ((module) => {

"use strict";
«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource*module.exports = require("@mui/material");¡external commonjs "@mui/material"


/***/ })€†buffer†source„size„maps„hashX/***/ ((module) => {

"use strict";
module.exports = require("@mui/material");

/***/ })€«É/*!********************************!*\
  !*** external "@mui/material" ***!
  \********************************/
/***/ ((module) => {

"use strict";
module.exports = require("@mui/material");

/***/ }) ,

/***/ "@mui/material/Alert":
†«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourceƒ/*!**************************************!*\
  !*** external "@mui/material/Alert" ***!
  \**************************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSource€«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource$/***/ ((module) => {

"use strict";
«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource0module.exports = require("@mui/material/Alert");§external commonjs "@mui/material/Alert"


/***/ })€†buffer†source„size„maps„hash^/***/ ((module) => {

"use strict";
module.exports = require("@mui/material/Alert");

/***/ })€¥á/*!**************************************!*\
  !*** external "@mui/material/Alert" ***!
  \**************************************/
/***/ ((module) => {

"use strict";
module.exports = require("@mui/material/Alert");

/***/ })%,

/***/ "@mui/material/AlertTitle":
¤«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource’/*!*******************************************!*\
  !*** external "@mui/material/AlertTitle" ***!
  \*******************************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSourceŠ«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource$/***/ ((module) => {

"use strict";
«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource5module.exports = require("@mui/material/AlertTitle");¬external commonjs "@mui/material/AlertTitle"


/***/ })€†buffer†source„size„maps„hashc/***/ ((module) => {

"use strict";
module.exports = require("@mui/material/AlertTitle");

/***/ })€Ÿõ/*!*******************************************!*\
  !*** external "@mui/material/AlertTitle" ***!
  \*******************************************/
/***/ ((module) => {

"use strict";
module.exports = require("@mui/material/AlertTitle");

/***/ })!,

/***/ "@mui/material/styles":
Œ«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource†/*!***************************************!*\
  !*** external "@mui/material/styles" ***!
  \***************************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSource‚«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource$/***/ ((module) => {

"use strict";
«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource1module.exports = require("@mui/material/styles");¨external commonjs "@mui/material/styles"


/***/ })€†buffer†source„size„maps„hash_/***/ ((module) => {

"use strict";
module.exports = require("@mui/material/styles");

/***/ })€™å/*!***************************************!*\
  !*** external "@mui/material/styles" ***!
  \***************************************/
/***/ ((module) => {

"use strict";
module.exports = require("@mui/material/styles");

/***/ }),

/***/ "directory-tree":
h«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourcet/*!*********************************!*\
  !*** external "directory-tree" ***!
  \*********************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSourcev«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource$/***/ ((module) => {

"use strict";
«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource+module.exports = require("directory-tree");¢external commonjs "directory-tree"


/***/ })€†buffer†source„size„maps„hashY/***/ ((module) => {

"use strict";
module.exports = require("directory-tree");

/***/ })€“Í/*!*********************************!*\
  !*** external "directory-tree" ***!
  \*********************************/
/***/ ((module) => {

"use strict";
module.exports = require("directory-tree");

/***/ }),

/***/ "gray-matter":
V«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourcek/*!******************************!*\
  !*** external "gray-matter" ***!
  \******************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSourcep«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource$/***/ ((module) => {

"use strict";
«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource(module.exports = require("gray-matter");Ÿexternal commonjs "gray-matter"


/***/ })€†buffer†source„size„maps„hashV/***/ ((module) => {

"use strict";
module.exports = require("gray-matter");

/***/ })€�Á/*!******************************!*\
  !*** external "gray-matter" ***!
  \******************************/
/***/ ((module) => {

"use strict";
module.exports = require("gray-matter");

/***/ }),

/***/ "./loadable":
Ô«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourceª/*!***************************************************!*\
  !*** external "next/dist/shared/lib/loadable.js" ***!
  \***************************************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSourceš«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource$/***/ ((module) => {

"use strict";
«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource=module.exports = require("next/dist/shared/lib/loadable.js");´external commonjs "next/dist/shared/lib/loadable.js"


/***/ })€†buffer†source„size„maps„hashk/***/ ((module) => {

"use strict";
module.exports = require("next/dist/shared/lib/loadable.js");

/***/ })€‡/*!***************************************************!*\
  !*** external "next/dist/shared/lib/loadable.js" ***!
  \***************************************************/
/***/ ((module) => {

"use strict";
module.exports = require("next/dist/shared/lib/loadable.js");

/***/ }),

/***/ "next/head":
J«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourcee/*!****************************!*\
  !*** external "next/head" ***!
  \****************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSourcel«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource$/***/ ((module) => {

"use strict";
«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource&module.exports = require("next/head");�external commonjs "next/head"


/***/ })€†buffer†source„size„maps„hashT/***/ ((module) => {

"use strict";
module.exports = require("next/head");

/***/ })€�¹/*!****************************!*\
  !*** external "next/head" ***!
  \****************************/
/***/ ((module) => {

"use strict";
module.exports = require("next/head");

/***/ }),

/***/ "next/router":
V«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourcek/*!******************************!*\
  !*** external "next/router" ***!
  \******************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSourcep«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource$/***/ ((module) => {

"use strict";
«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource(module.exports = require("next/router");Ÿexternal commonjs "next/router"


/***/ })€†buffer†source„size„maps„hashV/***/ ((module) => {

"use strict";
module.exports = require("next/router");

/***/ })€{ÿÿÿÁ/*!******************************!*\
  !*** external "next/router" ***!
  \******************************/
/***/ ((module) => {

"use strict";
module.exports = require("next/router");

/***/ }),

/***/ "path":
,«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourceV/*!***********************!*\
  !*** external "path" ***!
  \***********************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSourceb«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource$/***/ ((module) => {

"use strict";
«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource!module.exports = require("path");˜external commonjs "path"


/***/ })€†buffer†source„size„maps„hashO/***/ ((module) => {

"use strict";
module.exports = require("path");

/***/ })€uÿÿÿ¥/*!***********************!*\
  !*** external "path" ***!
  \***********************/
/***/ ((module) => {

"use strict";
module.exports = require("path");

/***/ }),

/***/ "react":
2«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourceY/*!************************!*\
  !*** external "react" ***!
  \************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSourced«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource$/***/ ((module) => {

"use strict";
«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource"module.exports = require("react");™external commonjs "react"


/***/ })€†buffer†source„size„maps„hashP/***/ ((module) => {

"use strict";
module.exports = require("react");

/***/ })€oÿÿÿ©/*!************************!*\
  !*** external "react" ***!
  \************************/
/***/ ((module) => {

"use strict";
module.exports = require("react");

/***/ })",

/***/ "react/jsx-dev-runtime":
’«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource‰/*!****************************************!*\
  !*** external "react/jsx-dev-runtime" ***!
  \****************************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSource„«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource$/***/ ((module) => {

"use strict";
«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource2module.exports = require("react/jsx-dev-runtime");©external commonjs "react/jsx-dev-runtime"


/***/ })€†buffer†source„size„maps„hash`/***/ ((module) => {

"use strict";
module.exports = require("react/jsx-dev-runtime");

/***/ })€iÿÿÿé/*!****************************************!*\
  !*** external "react/jsx-dev-runtime" ***!
  \****************************************/
/***/ ((module) => {

"use strict";
module.exports = require("react/jsx-dev-runtime");

/***/ })",

/***/ "remark-external-links":
’«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource‰/*!****************************************!*\
  !*** external "remark-external-links" ***!
  \****************************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSource„«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource$/***/ ((module) => {

"use strict";
«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource2module.exports = require("remark-external-links");©external commonjs "remark-external-links"


/***/ })€†buffer†source„size„maps„hash`/***/ ((module) => {

"use strict";
module.exports = require("remark-external-links");

/***/ })€cÿÿÿé/*!****************************************!*\
  !*** external "remark-external-links" ***!
  \****************************************/
/***/ ((module) => {

"use strict";
module.exports = require("remark-external-links");

/***/ }),

/***/ "remark-frontmatter":
€«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource€/*!*************************************!*\
  !*** external "remark-frontmatter" ***!
  \*************************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSource~«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource$/***/ ((module) => {

"use strict";
«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource/module.exports = require("remark-frontmatter");¦external commonjs "remark-frontmatter"


/***/ })€†buffer†source„size„maps„hash]/***/ ((module) => {

"use strict";
module.exports = require("remark-frontmatter");

/***/ })€]ÿÿÿİ/*!*************************************!*\
  !*** external "remark-frontmatter" ***!
  \*************************************/
/***/ ((module) => {

"use strict";
module.exports = require("remark-frontmatter");

/***/ }) ,

/***/ "remark-highlight.js":
†«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourceƒ/*!**************************************!*\
  !*** external "remark-highlight.js" ***!
  \**************************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSource€«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource$/***/ ((module) => {

"use strict";
«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource0module.exports = require("remark-highlight.js");§external commonjs "remark-highlight.js"


/***/ })€†buffer†source„size„maps„hash^/***/ ((module) => {

"use strict";
module.exports = require("remark-highlight.js");

/***/ })€Wÿÿÿá/*!**************************************!*\
  !*** external "remark-highlight.js" ***!
  \**************************************/
/***/ ((module) => {

"use strict";
module.exports = require("remark-highlight.js");

/***/ }),

/***/ "remark-html":
V«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourcek/*!******************************!*\
  !*** external "remark-html" ***!
  \******************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSourcep«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource$/***/ ((module) => {

"use strict";
«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource(module.exports = require("remark-html");Ÿexternal commonjs "remark-html"


/***/ })€†buffer†source„size„maps„hashV/***/ ((module) => {

"use strict";
module.exports = require("remark-html");

/***/ })€QÿÿÿÁ/*!******************************!*\
  !*** external "remark-html" ***!
  \******************************/
/***/ ((module) => {

"use strict";
module.exports = require("remark-html");

/***/ }),

/***/ "remark-parse":
\«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourcen/*!*******************************!*\
  !*** external "remark-parse" ***!
  \*******************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSourcer«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource$/***/ ((module) => {

"use strict";
«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource)module.exports = require("remark-parse"); external commonjs "remark-parse"


/***/ })€†buffer†source„size„maps„hashW/***/ ((module) => {

"use strict";
module.exports = require("remark-parse");

/***/ })€KÿÿÿÅ/*!*******************************!*\
  !*** external "remark-parse" ***!
  \*******************************/
/***/ ((module) => {

"use strict";
module.exports = require("remark-parse");

/***/ }),

/***/ "remark-wiki-link":
t«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourcez/*!***********************************!*\
  !*** external "remark-wiki-link" ***!
  \***********************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSourcez«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource$/***/ ((module) => {

"use strict";
«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource-module.exports = require("remark-wiki-link");¤external commonjs "remark-wiki-link"


/***/ })€†buffer†source„size„maps„hash[/***/ ((module) => {

"use strict";
module.exports = require("remark-wiki-link");

/***/ })€EÿÿÿÕ/*!***********************************!*\
  !*** external "remark-wiki-link" ***!
  \***********************************/
/***/ ((module) => {

"use strict";
module.exports = require("remark-wiki-link");

/***/ }),

/***/ "unified":
>«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource_/*!**************************!*\
  !*** external "unified" ***!
  \**************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSourceh«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource$/***/ ((module) => {

"use strict";
«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource$module.exports = require("unified");›external commonjs "unified"


/***/ })€†buffer†source„size„maps„hashR/***/ ((module) => {

"use strict";
module.exports = require("unified");

/***/ })€?ÿÿÿ±/*!**************************!*\
  !*** external "unified" ***!
  \**************************/
/***/ ((module) => {

"use strict";
module.exports = require("unified");

/***/ })!,

/***/ "mdast-util-to-string":
Š«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource†/*!***************************************!*\
  !*** external "mdast-util-to-string" ***!
  \***************************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSource€«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource$/***/ ((module) => {

"use strict";
«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource1module.exports = import("mdast-util-to-string");;¦external module "mdast-util-to-string"


/***/ })€†buffer†source„size„maps„hash_/***/ ((module) => {

"use strict";
module.exports = import("mdast-util-to-string");;

/***/ })€9ÿÿÿå/*!***************************************!*\
  !*** external "mdast-util-to-string" ***!
  \***************************************/
/***/ ((module) => {

"use strict";
module.exports = import("mdast-util-to-string");;

/***/ }),

/***/ "rehype-prism-plus":
x«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource}/*!************************************!*\
  !*** external "rehype-prism-plus" ***!
  \************************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSourcez«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource$/***/ ((module) => {

"use strict";
«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource.module.exports = import("rehype-prism-plus");;£external module "rehype-prism-plus"


/***/ })€†buffer†source„size„maps„hash\/***/ ((module) => {

"use strict";
module.exports = import("rehype-prism-plus");;

/***/ })€3ÿÿÿÙ/*!************************************!*\
  !*** external "rehype-prism-plus" ***!
  \************************************/
/***/ ((module) => {

"use strict";
module.exports = import("rehype-prism-plus");;

/***/ }),

/***/ "rehype-stringify":
r«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourcez/*!***********************************!*\
  !*** external "rehype-stringify" ***!
  \***********************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSourcex«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource$/***/ ((module) => {

"use strict";
«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource-module.exports = import("rehype-stringify");;¢external module "rehype-stringify"


/***/ })€†buffer†source„size„maps„hash[/***/ ((module) => {

"use strict";
module.exports = import("rehype-stringify");;

/***/ })€-ÿÿÿÕ/*!***********************************!*\
  !*** external "rehype-stringify" ***!
  \***********************************/
/***/ ((module) => {

"use strict";
module.exports = import("rehype-stringify");;

/***/ }),

/***/ "remark-rehype":
`«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourceq/*!********************************!*\
  !*** external "remark-rehype" ***!
  \********************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSourcer«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource$/***/ ((module) => {

"use strict";
«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource*module.exports = import("remark-rehype");;Ÿexternal module "remark-rehype"


/***/ })€†buffer†source„size„maps„hashX/***/ ((module) => {

"use strict";
module.exports = import("remark-rehype");;

/***/ })€'ÿÿÿÉ/*!********************************!*\
  !*** external "remark-rehype" ***!
  \********************************/
/***/ ((module) => {

"use strict";
module.exports = import("remark-rehype");;

/***/ }),

/***/ "unist-util-visit":
r«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourcez/*!***********************************!*\
  !*** external "unist-util-visit" ***!
  \***********************************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSourcex«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource$/***/ ((module) => {

"use strict";
«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSource-module.exports = import("unist-util-visit");;¢external module "unist-util-visit"


/***/ })€†buffer†source„size„maps„hash[/***/ ((module) => {

"use strict";
module.exports = import("unist-util-visit");;

/***/ })€!ÿÿÿÕ/*!***********************************!*\
  !*** external "unist-util-visit" ***!
  \***********************************/
/***/ ((module) => {

"use strict";
module.exports = import("unist-util-visit");;

/***/ }),

/***/ "fs":
%«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourceP/*!*********************!*\
  !*** external "fs" ***!
  \*********************/
«webpack/lib/util/registerExternalSerializerœwebpack-sources/CachedSourcec«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSource$/***/ ((module) => {

"use strict";
«webpack/lib/util/registerExternalSerializer�webpack-sources/OriginalSourcemodule.exports = require("fs");›external node-commonjs "fs"


/***/ })€†buffer†source„size„maps„hashM/***/ ((module) => {

"use strict";
module.exports = require("fs");

/***/ })€ÿÿÿ�/*!*********************!*\
  !*** external "fs" ***!
  \*********************/
/***/ ((module) => {

"use strict";
module.exports = require("fs");

/***/ })t

};
;

// load runtime
var __webpack_require__ = require("../webpack-runtime.js");
__webpack_require__.C(exports);
Ÿvar __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = (__webpack_exec__("./pages/index.js"));
,module.exports = __webpack_exports__;

})();&şÿÿ`l/*
 * ATTENTION: An "eval-source-map" devtool has been used.
 * This devtool is neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
 * or disable the default devtool with "devtool: false".
 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
 */
(() => {
var exports = {};
exports.id = "pages/index";
exports.ids = ["pages/index"];
exports.modules = {

/***/ "./components/FolderTree.js":
/*!**********************************!*\
  !*** ./components/FolderTree.js ***!
  \**********************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ FolderTree)\n/* harmony export */ });\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ \"react/jsx-dev-runtime\");\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _mui_lab_TreeView__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mui/lab/TreeView */ \"@mui/lab/TreeView\");\n/* harmony import */ var _mui_lab_TreeView__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_lab_TreeView__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _mui_icons_material_ExpandMore__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mui/icons-material/ExpandMore */ \"@mui/icons-material/ExpandMore\");\n/* harmony import */ var _mui_icons_material_ExpandMore__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_ExpandMore__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _mui_icons_material_ChevronRight__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mui/icons-material/ChevronRight */ \"@mui/icons-material/ChevronRight\");\n/* harmony import */ var _mui_icons_material_ChevronRight__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_ChevronRight__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _mui_lab_TreeItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mui/lab/TreeItem */ \"@mui/lab/TreeItem\");\n/* harmony import */ var _mui_lab_TreeItem__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_mui_lab_TreeItem__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! next/router */ \"next/router\");\n/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(next_router__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _mui_material_styles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mui/material/styles */ \"@mui/material/styles\");\n/* harmony import */ var _mui_material_styles__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_mui_material_styles__WEBPACK_IMPORTED_MODULE_7__);\n\n\n\n\n\n\n\n\nconst TCTreeItem = (0,_mui_material_styles__WEBPACK_IMPORTED_MODULE_7__.styled)((_mui_lab_TreeItem__WEBPACK_IMPORTED_MODULE_5___default()))(({ theme  })=>({\n        '& .MuiTreeItem-content': {\n            '& .MuiTreeItem-label': {\n                fontSize: '1rem',\n                paddingLeft: '6px',\n                fontFamily: '-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif,',\n                lineHeight: 2\n            }\n        }\n    })\n);\nfunction FolderTree(props) {\n    const renderTree = (nodes)=>/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(TCTreeItem, {\n            nodeId: nodes.id,\n            label: nodes.name,\n            children: Array.isArray(nodes.children) ? nodes.children.map((node)=>renderTree(node)\n            ) : null\n        }, nodes.id, false, {\n            fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/FolderTree.js\",\n            lineNumber: 23,\n            columnNumber: 9\n        }, this)\n    ;\n    const router = (0,next_router__WEBPACK_IMPORTED_MODULE_6__.useRouter)();\n    // const childrenNodeIds = props.tree.children.map(aNode => {return aNode.id})\n    const expandedNodes = [\n        props.tree.id\n    ];\n    return(/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)((_mui_lab_TreeView__WEBPACK_IMPORTED_MODULE_2___default()), {\n        \"aria-label\": \"rich object\",\n        defaultCollapseIcon: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)((_mui_icons_material_ExpandMore__WEBPACK_IMPORTED_MODULE_3___default()), {}, void 0, false, void 0, void 0),\n        defaultExpanded: expandedNodes,\n        defaultExpandIcon: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)((_mui_icons_material_ChevronRight__WEBPACK_IMPORTED_MODULE_4___default()), {}, void 0, false, void 0, void 0),\n        onNodeSelect: (event, nodIds)=>{\n            const currentNode = props.flattenNodes.find((aNode)=>{\n                return aNode.id === nodIds;\n            });\n            // console.log(event)\n            // console.log(currentNode)\n            if (currentNode != null && currentNode.routePath != null) {\n                router.push(currentNode.routePath);\n            // router.reload()\n            }\n        },\n        sx: {\n            flexGrow: 1,\n            maxWidth: 400,\n            overflowY: 'auto'\n        },\n        children: renderTree(props.tree)\n    }, void 0, false, {\n        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/FolderTree.js\",\n        lineNumber: 34,\n        columnNumber: 9\n    }, this));\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9jb21wb25lbnRzL0ZvbGRlclRyZWUuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQThCO0FBQ1U7QUFDbUI7QUFDSTtBQUN2QjtBQUNIO0FBQ007QUFFM0MsS0FBSyxDQUFDTyxVQUFVLEdBQUdELDREQUFNLENBQUNGLDBEQUFRLEdBQUcsQ0FBQ0ksQ0FBQUEsS0FBSyxHQUFDLElBQU0sQ0FBQztRQUMvQyxDQUF3Qix5QkFBRSxDQUFDO1lBQ3ZCLENBQXNCLHVCQUFFLENBQUM7Z0JBQ3JCQyxRQUFRLEVBQUUsQ0FBTTtnQkFDaEJDLFdBQVcsRUFBRSxDQUFLO2dCQUNsQkMsVUFBVSxFQUFFLENBQXNGO2dCQUNsR0MsVUFBVSxFQUFFLENBQUc7WUFDbkIsQ0FBQztRQUNMLENBQUM7SUFDTCxDQUFDOztBQUdjLFFBQVEsQ0FBQ0MsVUFBVSxDQUFDQyxLQUFLLEVBQUUsQ0FBQztJQUN2QyxLQUFLLENBQUNDLFVBQVUsSUFBSUMsS0FBSywrRUFDcEJULFVBQVU7WUFBZ0JVLE1BQU0sRUFBRUQsS0FBSyxDQUFDRSxFQUFFO1lBQUVDLEtBQUssRUFBRUgsS0FBSyxDQUFDSSxJQUFJO3NCQUN6REMsS0FBSyxDQUFDQyxPQUFPLENBQUNOLEtBQUssQ0FBQ08sUUFBUSxJQUN2QlAsS0FBSyxDQUFDTyxRQUFRLENBQUNDLEdBQUcsRUFBRUM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sYXBzZUljb24iLCJkZWZhdWx0RXhwYW5kZWQiLCJkZWZhdWx0RXhwYW5kSWNvbiIsIm9uTm9kZVNlbGVjdCIsImV2ZW50Iiwibm9kSWRzIiwiY3VycmVudE5vZGUiLCJmbGF0dGVuTm9kZXMiLCJmaW5kIiwiYU5vZGUiLCJyb3V0ZVBhdGgiLCJwdXNoIiwic3giLCJmbGV4R3JvdyIsIm1heFdpZHRoIiwib3ZlcmZsb3dZIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./components/FolderTree.js\n");

/***/ }),

/***/ "./components/Layout.js":
/*!******************************!*\
  !*** ./components/Layout.js ***!
  \******************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"siteTitle\": () => (/* binding */ siteTitle),\n/* harmony export */   \"default\": () => (/* binding */ Layout)\n/* harmony export */ });\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ \"react/jsx-dev-runtime\");\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! next/head */ \"next/head\");\n/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(next_head__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mui/material */ \"@mui/material\");\n/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_material__WEBPACK_IMPORTED_MODULE_2__);\n\n\n\n// import BasicTree from 'lib/MyFolderTree'\nconst siteTitle = 'Digital Backroom - An Internet Archive';\nfunction Layout({ children  }) {\n    return(/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n        children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"main\", {\n            className: \"theme-light\",\n            children: children\n        }, void 0, false, {\n            fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/Layout.js\",\n            lineNumber: 9,\n            columnNumber: 13\n        }, this)\n    }, void 0, false, {\n        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/Layout.js\",\n        lineNumber: 8,\n        columnNumber: 9\n    }, this));\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9jb21wb25lbnRzL0xheW91dC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBNEI7QUFHSztBQUZqQyxFQUEyQztBQUNwQyxLQUFLLENBQUNFLFNBQVMsR0FBRyxDQUF3QztBQUVsRCxRQUFRLENBQUNDLE1BQU0sQ0FBQyxDQUFDQyxDQUFBQSxRQUFRLEdBQUMsRUFBRSxDQUFDO0lBRXhDLE1BQU0sNkVBQ0RDLENBQUc7OEZBQ0NDLENBQUk7WUFBQ0MsU0FBUyxFQUFFLENBQWE7c0JBQ3pCSCxRQUFROzs7Ozs7Ozs7OztBQUl6QixDQUFDIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbXktYXBwLy4vY29tcG9uZW50cy9MYXlvdXQuanM/NTE1YyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgSGVhZCBmcm9tICduZXh0L2hlYWQnXG4vLyBpbXBvcnQgQmFzaWNUcmVlIGZyb20gJ2xpYi9NeUZvbGRlclRyZWUnXG5leHBvcnQgY29uc3Qgc2l0ZVRpdGxlID0gJ0RpZ2l0YWwgQmFja3Jvb20gLSBBbiBJbnRlcm5ldCBBcmNoaXZlJ1xuaW1wb3J0IHtCb3h9IGZyb20gJ0BtdWkvbWF0ZXJpYWwnXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBMYXlvdXQoe2NoaWxkcmVufSkge1xuXG4gICAgcmV0dXJuIChcbiAgICAgICAgPGRpdj5cbiAgICAgICAgICAgIDxtYWluIGNsYXNzTmFtZT0gXCJ0aGVtZS1saWdodFwiPlxuICAgICAgICAgICAgICAgIHtjaGlsZHJlbn1cbiAgICAgICAgICAgIDwvbWFpbj5cbiAgICAgICAgPC9kaXY+XG4gICAgKVxufVxuXG4iXSwibmFtZXMiOlsiSGVhZCIsIkJveCIsInNpdGVUaXRsZSIsIkxheW91dCIsImNoaWxkcmVuIiwiZGl2IiwibWFpbiIsImNsYXNzTmFtZSJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./components/Layout.js\n");

/***/ }),

/***/ "./components/MDContent.js":
/*!*********************************!*\
  !*** ./components/MDContent.js ***!
  \*********************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ \"react/jsx-dev-runtime\");\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _mui_material_Alert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mui/material/Alert */ \"@mui/material/Alert\");\n/* harmony import */ var _mui_material_Alert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_material_Alert__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _mui_material_AlertTitle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mui/material/AlertTitle */ \"@mui/material/AlertTitle\");\n/* harmony import */ var _mui_material_AlertTitle__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_mui_material_AlertTitle__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! next/router */ \"next/router\");\n/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_router__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n\nfunction BackLinks({ linkList  }) {\n    return(/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n        className: \"note-footer\",\n        children: [\n            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"h3\", {\n                className: \"backlink-heading\",\n                children: \"Link to this note\"\n            }, void 0, false, {\n                fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                lineNumber: 9,\n                columnNumber: 13\n            }, this),\n            linkList != null && linkList.length > 0 ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {\n                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                    className: \"backlink-container\",\n                    children: linkList.map((aLink)=>/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                            className: \"backlink\",\n                            children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"a\", {\n                                href: aLink.slug,\n                                children: [\n                                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                                        className: \"backlink-title\",\n                                        children: aLink.title\n                                    }, void 0, false, {\n                                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                                        lineNumber: 19,\n                                        columnNumber: 33\n                                    }, this),\n                                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                                        className: \"backlink-preview\",\n                                        children: [\n                                            aLink.shortSummary,\n                                            \" \"\n                                        ]\n                                    }, void 0, true, {\n                                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                                        lineNumber: 20,\n                                        columnNumber: 33\n                                    }, this)\n                                ]\n                            }, void 0, true, {\n                                fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                                lineNumber: 18,\n                                columnNumber: 29\n                            }, this)\n                        }, aLink.slug, false, {\n                            fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                            lineNumber: 16,\n                            columnNumber: 25\n                        }, this)\n                    )\n                }, void 0, false, {\n                    fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                    lineNumber: 14,\n                    columnNumber: 17\n                }, this)\n            }, void 0, false) : /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {\n                children: [\n                    \" \",\n                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                        className: \"no-backlinks\",\n                        children: \" No backlinks found\"\n                    }, void 0, false, {\n                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                        lineNumber: 27,\n                        columnNumber: 18\n                    }, this),\n                    \" \"\n                ]\n            }, void 0, true)\n        ]\n    }, void 0, true, {\n        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n        lineNumber: 8,\n        columnNumber: 13\n    }, this));\n}\nfunction MDContent({ content , backLinks , handleOpenNewContent  }) {\n    function handleInternalLinkClick() {\n        //Processing fetching\n        //pass result up to parent container\n        //TODO: handle clicking on internal link, go fetching md content from file then passing it up to parent\n        handleOpenNewContent(content);\n    }\n    (0,next_router__WEBPACK_IMPORTED_MODULE_4__.useRouter)();\n    return(/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n        className: \"markdown-rendered\",\n        children: [\n            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)((_mui_material_Alert__WEBPACK_IMPORTED_MODULE_2___default()), {\n                severity: \"info\",\n                children: [\n                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)((_mui_material_AlertTitle__WEBPACK_IMPORTED_MODULE_3___default()), {\n                        children: \"Want to know more?\"\n                    }, void 0, false, {\n                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                        lineNumber: 45,\n                        columnNumber: 17\n                    }, this),\n                    \"ğŸŒ± \",\n                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"strong\", {\n                        children: \"Follow\"\n                    }, void 0, false, {\n                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                        lineNumber: 46,\n                        columnNumber: 19\n                    }, this),\n                    \" or \",\n                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"strong\", {\n                        children: \"DM\"\n                    }, void 0, false, {\n                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                        lineNumber: 46,\n                        columnNumber: 46\n                    }, this),\n                    \" me on Twitter at \",\n                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"span\", {\n                        children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"a\", {\n                            href: \"https://twitter.com/tuancm\",\n                            children: \"@tuancm\"\n                        }, void 0, false, {\n                            fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                            lineNumber: 46,\n                            columnNumber: 89\n                        }, this)\n                    }, void 0, false, {\n                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                        lineNumber: 46,\n                        columnNumber: 83\n                    }, this)\n                ]\n            }, void 0, true, {\n                fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                lineNumber: 44,\n                columnNumber: 13\n            }, this),\n            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                dangerouslySetInnerHTML: {\n                    __html: content\n                }\n            }, void 0, false, {\n                fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                lineNumber: 49,\n                columnNumber: 13\n            }, this),\n            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(BackLinks, {\n                    linkList: backLinks\n                }, void 0, false, {\n                    fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                    lineNumber: 53,\n                    columnNumber: 17\n                }, this)\n            }, void 0, false, {\n                fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                lineNumber: 52,\n                columnNumber: 13\n            }, this),\n            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"hr\", {}, void 0, false, {\n                fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                lineNumber: 55,\n                columnNumber: 13\n            }, this),\n            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"footer\", {\n                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                    children: [\n                        \"Powered by  \",\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"a\", {\n                            href: \"https://github.com/TuanManhCao/digital-garden\",\n                            children: \"Mind Stone\"\n                        }, void 0, false, {\n                            fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                            lineNumber: 57,\n                            columnNumber: 32\n                        }, this),\n                        \", \\xa9 2022\"\n                    ]\n                }, void 0, true, {\n                    fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                    lineNumber: 57,\n                    columnNumber: 17\n                }, this)\n            }, void 0, false, {\n                fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n                lineNumber: 56,\n                columnNumber: 13\n            }, this)\n        ]\n    }, void 0, true, {\n        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/components/MDContent.js\",\n        lineNumber: 43,\n        columnNumber: 9\n    }, this));\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MDContent);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9jb21wb25lbnRzL01EQ29udGVudC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFBeUI7QUFDYztBQUNVO0FBQ1o7U0FFNUJJLFNBQVMsQ0FBQyxDQUFDQyxDQUFBQSxRQUFRLEdBQUMsRUFBRSxDQUFDO0lBRTVCLE1BQU0sNkVBQUdDLENBQUc7UUFBQ0MsU0FBUyxFQUFDLENBQWE7O3dGQUMzQkMsQ0FBRTtnQkFBQ0QsU0FBUyxFQUFDLENBQWtCOzBCQUFDLENBQWlCOzs7Ozs7WUFDcERGLFFBQVEsSUFBSSxJQUFJLElBQUlBLFFBQVEsQ0FBQ0ksTUFBTSxHQUFHLENBQUM7c0dBSWhDSCxDQUFHO29CQUFDQyxTQUFTLEVBQUMsQ0FBb0I7OEJBQzlCRixRQUFRLENBQUNLLEdBQUcsRUFBQ0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ua0xpc3QubGVuZ3RoID4gMClcbiAgICAgICAgICAgID9cbiAgICAgICAgICAgIDw+XG5cbiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzTmFtZT1cImJhY2tsaW5rLWNvbnRhaW5lclwiPlxuICAgICAgICAgICAgICAgICAgICB7bGlua0xpc3QubWFwKGFMaW5rID0+XG4gICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGtleT17YUxpbmsuc2x1Z30gY2xhc3NOYW1lPVwiYmFja2xpbmtcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7Lyo8TGluayBocmVmPXthTGluay5zbHVnfT4qL31cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8YSBocmVmPXthTGluay5zbHVnfT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHAgY2xhc3NOYW1lPVwiYmFja2xpbmstdGl0bGVcIj57YUxpbmsudGl0bGV9PC9wPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cCBjbGFzc05hbWU9XCJiYWNrbGluay1wcmV2aWV3XCI+e2FMaW5rLnNob3J0U3VtbWFyeX0gPC9wPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvYT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7Lyo8L0xpbms+Ki99XG4gICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgIDwvPlxuICAgICAgICAgICAgOiA8PiA8cCBjbGFzc05hbWU9XCJuby1iYWNrbGlua3NcIj4gTm8gYmFja2xpbmtzIGZvdW5kPC9wPiA8Lz59XG4gICAgPC9kaXY+KTtcbn1cblxuZnVuY3Rpb24gTURDb250ZW50KHtjb250ZW50LCBiYWNrTGlua3MsIGhhbmRsZU9wZW5OZXdDb250ZW50fSkge1xuXG4gICAgZnVuY3Rpb24gaGFuZGxlSW50ZXJuYWxMaW5rQ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D17YmFja0xpbmtzfS8+XG4gICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgIDxoci8+XG4gICAgICAgICAgICA8Zm9vdGVyPlxuICAgICAgICAgICAgICAgIDxwPlBvd2VyZWQgYnkgIDxhIGhyZWY9XCJodHRwczovL2dpdGh1Yi5jb20vVHVhbk1hbmhDYW8vZGlnaXRhbC1nYXJkZW5cIj5NaW5kIFN0b25lPC9hPiwgwqkgMjAyMjwvcD5cbiAgICAgICAgICAgIDwvZm9vdGVyPlxuICAgICAgICA8L2Rpdj5cbiAgICApO1xufVxuXG5leHBvcnQgZGVmYXVsdCBNRENvbnRlbnQ7Il0sIm5hbWVzIjpbIlJlYWN0IiwiQWxlcnQiLCJBbGVydFRpdGxlIiwidXNlUm91dGVyIiwiQmFja0xpbmtzIiwibGlua0xpc3QiLCJkaXYiLCJjbGFzc05hbWUiLCJoMyIsImxlbmd0aCIsIm1hcCIsImFMaW5rIiwiYSIsImhyZWYiLCJzbHVnIiwicCIsInRpdGxlIiwic2hvcnRTdW1tYXJ5IiwiTURDb250ZW50IiwiY29udGVudCIsImJhY2tMaW5rcyIsImhhbmRsZU9wZW5OZXdDb250ZW50IiwiaGFuZGxlSW50ZXJuYWxMaW5rQ2xpY2siLCJzZXZlcml0eSIsInN0cm9uZyIsInNwYW4iLCJkYW5nZXJvdXNseVNldElubmVySFRNTCIsIl9faHRtbCIsImhyIiwiZm9vdGVyIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./components/MDContent.js\n");

/***/ }),

/***/ "./lib/node.js":
/*!*********************!*\
  !*** ./lib/node.js ***!
  \*********************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"Node\": () => (/* binding */ Node)\n/* harmony export */ });\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! path */ \"path\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fs */ \"fs\");\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_1__);\n\n\nconst Node = {\n    isFile: function(filename) {\n        try {\n            return fs__WEBPACK_IMPORTED_MODULE_1___default().lstatSync(filename).isFile();\n        } catch (err) {\n            console.log(err);\n            return false;\n        }\n    },\n    getFullPath: function(folderPath) {\n        return fs__WEBPACK_IMPORTED_MODULE_1___default().readdirSync(folderPath).map((fn)=>path__WEBPACK_IMPORTED_MODULE_0___default().join(folderPath, fn)\n        );\n    },\n    getFiles: function(dir) {\n        var results = [];\n        var list = fs__WEBPACK_IMPORTED_MODULE_1___default().readdirSync(dir);\n        list.forEach(function(file) {\n            file = dir + '/' + file;\n            var stat = fs__WEBPACK_IMPORTED_MODULE_1___default().statSync(file);\n            if (stat && stat.isDirectory()) {\n                /* Recurse into a subdirectory */ results = results.concat(Node.getFiles(file));\n            } else {\n                /* Is a file */ results.push(file);\n            }\n        });\n        return results.filter((f)=>f.endsWith(\".md\")\n        );\n    },\n    readFileSync: function(fullPath) {\n        return fs__WEBPACK_IMPORTED_MODULE_1___default().readFileSync(fullPath, \"utf8\");\n    },\n    getMarkdownFolder: function() {\n        return path__WEBPACK_IMPORTED_MODULE_0___default().join(process.cwd(), 'posts');\n    }\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9saWIvbm9kZS5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUF1QjtBQUNKO0FBR1osS0FBSyxDQUFDRSxJQUFJLEdBQUcsQ0FBQztJQUNqQkMsTUFBTSxFQUFDL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pc0ZpbGUiLCJmaWxlbmFtZSIsImxzdGF0U3luYyIsImVyciIsImNvbnNvbGUiLCJsb2ciLCJnZXRGdWxsUGF0aCIsImZvbGRlclBhdGgiLCJyZWFkZGlyU3luYyIsIm1hcCIsImZuIiwiam9pbiIsImdldEZpbGVzIiwiZGlyIiwicmVzdWx0cyIsImxpc3QiLCJmb3JFYWNoIiwiZmlsZSIsInN0YXQiLCJzdGF0U3luYyIsImlzRGlyZWN0b3J5IiwiY29uY2F0IiwicHVzaCIsImZpbHRlciIsImYiLCJlbmRzV2l0aCIsInJlYWRGaWxlU3luYyIsImZ1bGxQYXRoIiwiZ2V0TWFya2Rvd25Gb2xkZXIiLCJwcm9jZXNzIiwiY3dkIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./lib/node.js\n");

/***/ }),

/***/ "./lib/obsidian-image.js":
/*!*******************************!*\
  !*** ./lib/obsidian-image.js ***!
  \*******************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ attacher)\n/* harmony export */ });\n/* harmony import */ var unist_util_visit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! unist-util-visit */ \"unist-util-visit\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([unist_util_visit__WEBPACK_IMPORTED_MODULE_0__]);\nunist_util_visit__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];\n\nconst regex = /\\!\\[\\[(([a-z\\-_0-9\\\\/\\:]+\\s*)+\\.(jpg|jpeg|png|gif|svg|webp))]]/gi;\nconst regex2 = /\\!\\[\\[(([a-z\\-_0-9\\\\/\\:]+\\s*)+\\.(jpg|jpeg|png|gif|svg|webp))]]/gi; //TODO why can't I reuse regex literal???\nfunction convertTextNode(node) {\n    const searchText = node.value;\n    /*\n    This regex MATCH following type of image link\n      ![[youtube.png]]    ==> Image with no folder path, no space in between\n      ![[a .png]]         ==> with space\n      ![[tuancao/a.png]]  ==> file path WITHOUT space\n      ![[tuancao/a .png]] ==> file path WITH space\n\n    Image with extension: jpg, jpeg, gif, svg, webp, png\n      ![[/tuancao/a.jpg]]\n      ![[/tuancao/a.webp]]\n      ![[/tuancao/a.png]]\n      ![[/tuancao/a.jpeg]]\n      ...\n\n      ---\n    Will NOT match following case\n\n      [[picture.jpg]] ==> Link without \"!\" at the begining won't match\n      ![[abc]] ==> without the extension\n      ![[/tuancao/a.md]] ==> Unsupported format\n      ![[/tuancao/a.mp4]]==> Unsupported format\n    */ const matches = searchText.matchAll(regex);\n    let startIndex = 0;\n    let endIndex = searchText.length;\n    let children = [];\n    for (const match of matches){\n        endIndex = match.index;\n        // Constructing text node from un-matched string\n        const textNode = {\n            // change type child node, so that visit() function won't recursively visit this node with \"text\" type\n            type: \"text-temp\",\n            value: searchText.substring(startIndex, endIndex)\n        };\n        const imageNode = {\n            type: \"image\",\n            //TODO: Use some kind of option to pass in default images path\n            url: encodeURI(`/images/${match[1]}`),\n            alt: match[1]\n        };\n        children.push(imageNode);\n        let matchEndIndex = match.index + match[0].length;\n        startIndex = matchEndIndex;\n    }\n    if (startIndex < searchText.length) {\n        const textNode = {\n            type: \"text-temp\",\n            value: searchText.substring(startIndex, searchText.length)\n        };\n        children.push(textNode);\n    }\n    return {\n        type: \"paragraph\",\n        children: children\n    };\n}\nfunction attacher(options) {\n    return function transformer(tree, vfile) {\n        (0,unist_util_visit__WEBPACK_IMPORTED_MODULE_0__.visit)(tree, \"text\", (node)=>{\n            if (regex2.test(node.value)) {\n                const newNode = convertTextNode(node);\n                node.type = \"paragraph\";\n                node.children = newNode.children;\n            }\n        });\n        // Change back \"text-temp\" node ==> \"text\" to clean up\n        (0,unist_util_visit__WEBPACK_IMPORTED_MODULE_0__.visit)(tree, \"text-temp\", (node)=>{\n            node.type = \"text\";\n        });\n        return tree;\n    };\n};\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9saWIvb2JzaWRpYW4taW1hZ2UuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBc0M7QUFFdEMsS0FBSyxDQUFDQyxLQUFLO0FBQ1gsS0FBSyxDQUFDQyxNQUFNLHNFQUF1RSxDQUF5QztTQUVuSEMsZUFBZSxDQUFDQyxJQUFJLEVBQUUsQ0FBQztJQUM1QixLQUFLLENBQUNDLFVBQVUsR0FBR0QsSUFBSSxDQUFDRSxLQUFLO0lBRTdCLEVBcUJFOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7SUFBQSxHQUNGLEtBQUssQ0FBQ0MsT0FBTyxHQUFHRixVQUFVLENBQUNHLFFBQVEsQ0FDL0JQLEtBQUs7SUFHVCxHQUFHLENBQUNRLFVBQVUsR0FBRyxDQUFDO0lBQ2xCLEdBQUcsQ0FBQ0MsUUFBUSxHQUFHTCxVQUFVLENBQUNNLE1BQU07SUFFaEMsR0FBRyxDQUFDQyxRQUFRLEdBQUcsQ0FBQyxDQUFDO0lBQ2pCLEdBQUcsRUFBRSxLQUFLLENBQUNDLEtBQUssSUFBSU4sT0FBTyxDQUFFLENBQUM7UUFDMUJHLFFBQVEsR0FBR0csS0FBSyxDQUFDQyxLQUFLO1FBRXRCLEVBQWdEO1FBQ2hELEtBQUssQ0FBQ0MsUUFBUSxHQUFHLENBQUM7WUFDZCxFQUFzRztZQUN0R0MsSUFBSSxFQUFFLENBQVc7WUFDakJWLEtBQUssRUFBRUQsVUFBVSxDQUFDWSxTQUFTLENBQUNSLFVBQVUsRUFBRUMsUUFBUTtRQUNwRCxDQUFDO1FBRUQsS0FBSyxDQUFDUS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lID0gXCJ0ZXh0XCI7XG4gICAgICAgIH0pO1xuXG4gICAgICAgIHJldHVybiB0cmVlO1xuICAgIH07XG59XG4iXSwibmFtZXMiOlsidmlzaXQiLCJyZWdleCIsInJlZ2V4MiIsImNvbnZlcnRUZXh0Tm9kZSIsIm5vZGUiLCJzZWFyY2hUZXh0IiwidmFsdWUiLCJtYXRjaGVzIiwibWF0Y2hBbGwiLCJzdGFydEluZGV4IiwiZW5kSW5kZXgiLCJsZW5ndGgiLCJjaGlsZHJlbiIsIm1hdGNoIiwiaW5kZXgiLCJ0ZXh0Tm9kZSIsInR5cGUiLCJzdWJzdHJpbmciLCJpbWFnZU5vZGUiLCJ1cmwiLCJlbmNvZGVVUkkiLCJhbHQiLCJwdXNoIiwibWF0Y2hFbmRJbmRleCIsImF0dGFjaGVyIiwib3B0aW9ucyIsInRyYW5zZm9ybWVyIiwidHJlZSIsInZmaWxlIiwidGVzdCIsIm5ld05vZGUiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./lib/obsidian-image.js\n");

/***/ }),

/***/ "./lib/transformer.js":
/*!****************************!*\
  !*** ./lib/transformer.js ***!
  \****************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"Transformer\": () => (/* binding */ Transformer)\n/* harmony export */ });\n/* harmony import */ var gray_matter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! gray-matter */ \"gray-matter\");\n/* harmony import */ var gray_matter__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(gray_matter__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var unified__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! unified */ \"unified\");\n/* harmony import */ var unified__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(unified__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var remark_parse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! remark-parse */ \"remark-parse\");\n/* harmony import */ var remark_parse__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(remark_parse__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var remark_wiki_link__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! remark-wiki-link */ \"remark-wiki-link\");\n/* harmony import */ var remark_wiki_link__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(remark_wiki_link__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var remark_html__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! remark-html */ \"remark-html\");\n/* harmony import */ var remark_html__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(remark_html__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var remark_frontmatter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! remark-frontmatter */ \"remark-frontmatter\");\n/* harmony import */ var remark_frontmatter__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(remark_frontmatter__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var remark_external_links__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! remark-external-links */ \"remark-external-links\");\n/* harmony import */ var remark_external_links__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(remark_external_links__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var remark_highlight_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! remark-highlight.js */ \"remark-highlight.js\");\n/* harmony import */ var remark_highlight_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(remark_highlight_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _node__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./node */ \"./lib/node.js\");\n/* harmony import */ var rehype_prism_plus__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rehype-prism-plus */ \"rehype-prism-plus\");\n/* harmony import */ var remark_rehype__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! remark-rehype */ \"remark-rehype\");\n/* harmony import */ var rehype_stringify__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rehype-stringify */ \"rehype-stringify\");\n/* harmony import */ var _obsidian_image_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./obsidian-image.js */ \"./lib/obsidian-image.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./utils */ \"./lib/utils.js\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([rehype_prism_plus__WEBPACK_IMPORTED_MODULE_9__, remark_rehype__WEBPACK_IMPORTED_MODULE_10__, rehype_stringify__WEBPACK_IMPORTED_MODULE_11__, _obsidian_image_js__WEBPACK_IMPORTED_MODULE_12__, _utils__WEBPACK_IMPORTED_MODULE_13__]);\n([rehype_prism_plus__WEBPACK_IMPORTED_MODULE_9__, remark_rehype__WEBPACK_IMPORTED_MODULE_10__, rehype_stringify__WEBPACK_IMPORTED_MODULE_11__, _obsidian_image_js__WEBPACK_IMPORTED_MODULE_12__, _utils__WEBPACK_IMPORTED_MODULE_13__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst Transformer = {\n    haveFrontMatter: function(content) {\n        //console.log(\"\\t Front matter data content\", content)\n        if (!content) return false;\n        const indexOfFirst = content.indexOf(\"---\");\n        //console.log(\"\\t Front matter data firstIndex  \", indexOfFirst)\n        //console.log(\"index first\", indexOfFirst)\n        if (indexOfFirst === -1) {\n            return false;\n        }\n        let indexOfSecond = content.indexOf(\"---\", indexOfFirst + 1);\n        return indexOfSecond !== -1;\n    },\n    getFrontMatterData: function(filecontent) {\n        if (Transformer.haveFrontMatter(filecontent)) {\n            return gray_matter__WEBPACK_IMPORTED_MODULE_0___default()(filecontent).data;\n        }\n        return {};\n    },\n    pageResolver: function(pageName) {\n        const allFileNames = (0,_utils__WEBPACK_IMPORTED_MODULE_13__.getAllMarkdownFiles)();\n        const result = allFileNames.find((aFile)=>{\n            let parseFileNameFromPath = Transformer.parseFileNameFromPath(aFile);\n            return Transformer.normalizeFileName(parseFileNameFromPath) === Transformer.normalizeFileName(pageName);\n        });\n        // permalink = permalink.replace(\"Ã§\", \"c\").replace(\"Ä±\", \"i\").replace(\"ÅŸ\", \"s\")\n        // console.log(`/note/${toSlug(result)}`)\n        if (result === undefined || result.length === 0) {\n        // console.log(\"Cannot resolve file path   \" + pageName)\n        }\n        // console.log(\"Internal Link resolved:   [\" + pageName + \"] ==> [\" + temp[0] +\"]\")\n        return result !== undefined && result.length > 0 ? [\n            (0,_utils__WEBPACK_IMPORTED_MODULE_13__.toSlug)(result)\n        ] : [\n            \"/\"\n        ];\n    },\n    hrefTemplate: function(permalink) {\n        // permalink = Transformer.normalizeFileName(permalink)\n        permalink = permalink.replace(\"\\xe7\", \"c\").replace(\"Ä±\", \"i\").replace(\"ÅŸ\", \"s\");\n        return `/note/${permalink}`;\n    },\n    getHtmlContent: function(content) {\n        let htmlContent = [];\n        const sanitizedContent = Transformer.preprocessThreeDashes(content);\n        unified__WEBPACK_IMPORTED_MODULE_1___default()().use((remark_parse__WEBPACK_IMPORTED_MODULE_2___default()), {\n            gfm: true\n        }).use(_obsidian_image_js__WEBPACK_IMPORTED_MODULE_12__[\"default\"]).use((remark_highlight_js__WEBPACK_IMPORTED_MODULE_7___default())).use((remark_external_links__WEBPACK_IMPORTED_MODULE_6___default()), {\n            target: \"_blank\",\n            rel: [\n                'noopener'\n            ]\n        })// .use(frontmatter, ['yaml', 'toml'])\n        .use(remark_wiki_link__WEBPACK_IMPORTED_MODULE_3__.wikiLinkPlugin, {\n            permalinks: null,\n            pageResolver: function(pageName) {\n                return Transformer.pageResolver(pageName);\n            },\n            hrefTemplate: function(permalink) {\n                return Transformer.hrefTemplate(permalink);\n            },\n            aliasDivider: \"|\"\n        }).use(remark_rehype__WEBPACK_IMPORTED_MODULE_10__[\"default\"]).use(rehype_prism_plus__WEBPACK_IMPORTED_MODULE_9__[\"default\"]).use(rehype_stringify__WEBPACK_IMPORTED_MODULE_11__[\"default\"]).process(sanitizedContent, function(err, file) {\n            htmlContent.push(String(file).replace(\"\\n\", \"\"));\n            if (err) {\n                console.log(\"ERRROR:\" + err);\n            }\n        });\n        htmlContent = htmlContent.join(\"\");\n        htmlContent = htmlContent.split(\"---\");\n        return [\n            htmlContent\n        ];\n    },\n    /* SANITIZE MARKDOWN FOR --- */ preprocessThreeDashes: function(content) {\n        const indexOfFirst = content.indexOf(\"---\");\n        if (indexOfFirst === -1) {\n            return content;\n        }\n        const indexOfSecond = content.indexOf(\"---\", indexOfFirst + 1);\n        content.slice(0, indexOfSecond);\n        const contentPart = content.slice(indexOfSecond);\n        return contentPart.split(\"---\").join(\"\");\n    },\n    /* Normalize File Names */ normalizeFileName: function(filename) {\n        let processedFileName = filename.replace(\".md\", \"\");\n        processedFileName = processedFileName.replace('(', '').replace(')', '');\n        processedFileName = processedFileName.split(\" \").join(\"-\");\n        processedFileName = processedFileName.toLowerCase();\n        const conversionLetters = [\n            [\n                \"\\xe7\",\n                \"c\"\n            ],\n            [\n                \"ÅŸ\",\n                \"s\"\n            ],\n            [\n                \"Ä±\",\n                \"i\"\n            ],\n            [\n                \"\\xfc\",\n                \"u\"\n            ],\n            [\n                \"\\xf6\",\n                \"o\"\n            ],\n            [\n                \"ÄŸ\",\n                \"g\"\n            ],\n            [\n                \"\\xc7\",\n                \"C\"\n            ],\n            [\n                \"Å�\",\n                \"S\"\n            ],\n            [\n                \"Ä°\",\n                \"I\"\n            ],\n            [\n                \"\\xdc\",\n                \"U\"\n            ],\n            [\n                \"\\xd6\",\n                \"O\"\n            ],\n            [\n                \"Ä�\",\n                \"G\"\n            ]\n        ];\n        conversionLetters.forEach((letterPair)=>{\n            processedFileName = processedFileName.split(letterPair[0]).join(letterPair[1]);\n        //processedFileName = processedFileName.replace(letterPair[0], letterPair[1])\n        });\n        //console.log(\"filename\", processedFileName)\n        return processedFileName;\n    },\n    /* Parse file name from path then sanitize it */ parseFileNameFromPath: function(filepath) {\n        if (typeof filepath === 'string' && filepath.includes(\"/\")) {\n            const parsedFileFromPath = filepath.split(\"/\")[filepath.split(\"/\").length - 1];\n            return parsedFileFromPath.replace(\".md\", \"\");\n        } else {\n            console.log(\"Failed: CANNOT Parse\" + filepath);\n            return null;\n        }\n    },\n    /* Pair provided and existing Filenames*/ getInternalLinks: function(aFilePath) {\n        const fileContent = _node__WEBPACK_IMPORTED_MODULE_8__.Node.readFileSync(aFilePath);\n        const internalLinks = [];\n        const sanitizedContent = Transformer.preprocessThreeDashes(fileContent);\n        unified__WEBPACK_IMPORTED_MODULE_1___default()().use((remark_parse__WEBPACK_IMPORTED_MODULE_2___default()), {\n            gfm: true\n        }).use(remark_wiki_link__WEBPACK_IMPORTED_MODULE_3__.wikiLinkPlugin, {\n            pageResolver: function(pageName) {\n                // let name = [Transformer.parseFileNameFromPath(pageName)];\n                let canonicalSlug;\n                if (pageName.includes('#')) {\n                    // console.log(pageName)\n                    const tempSlug = pageName.split('#')[0];\n                    if (tempSlug.length === 0) {\n                        // Meaning it in form of #Heading1 --> slug will be this file slug\n                        canonicalSlug = (0,_utils__WEBPACK_IMPORTED_MODULE_13__.toSlug)(aFilePath);\n                    } else {\n                        canonicalSlug = Transformer.pageResolver(tempSlug)[0].split('#')[0];\n                    }\n                } else {\n                    canonicalSlug = Transformer.pageResolver(pageName)[0].split('#')[0];\n                }\n                const backLink = {\n                    title: Transformer.parseFileNameFromPath((0,_utils__WEBPACK_IMPORTED_MODULE_13__.toFilePath)(canonicalSlug)),\n                    slug: canonicalSlug,\n                    shortSummary: canonicalSlug\n                };\n                if (canonicalSlug != null && internalLinks.indexOf(canonicalSlug) < 0) {\n                    internalLinks.push(backLink);\n                }\n                return [\n                    canonicalSlug\n                ];\n            },\n            hrefTemplate: function(permalink) {\n                return Transformer.hrefTemplate(permalink);\n            },\n            aliasDivider: \"|\"\n        }).use((remark_html__WEBPACK_IMPORTED_MODULE_4___default())).processSync(sanitizedContent);\n        // console.log(\"Internal Links of:   \"  + aFilePath)\n        // internalLinks.forEach(aLink => {\n        //     console.log(aLink.title + \" --> \" + aLink.slug)\n        // })\n        // console.log(\"===============Internal Links\")\n        return internalLinks;\n    }\n};\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9saWIvdHJhbnNmb3JtZXIuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBZ0M7QUFDSDtBQUNNO0FBQ1k7QUFDakI7QUFDYztBQUNLO0FBQ047QUFDaEI7QUFDZ0I7QUFDSDtBQUNNO0FBQ0M7QUFDZ0I7QUFFeEQsS0FBSyxDQUFDZ0IsV0FBVyxHQUFHLENBQUM7SUFDeEJDLGVBQWUsRUFBRSxRQUFRLENBQUVDLE9BQU8sRUFBRSxDQUFDO1FBQ2pDLEVBQXNEO1FBQ3RELEVBQUUsR0FBR0EsT0FBTyxFQUFFLE1BQU0sQ0FBQyxLQUFLO1FBQzFCLEtBQUssQ0FBQ0MsWUFBWSxHQUFHRCxPQUFPLENBQUNFLE9BQU8sQ0FBQyxDQUFLO1FBQzFDLEVBQWdFO1FBQ2hFLEVBQTBDO1FBQzFDLEVBQUUsRUFBRUQsWUFBWSxNQUFNLENBQUMsRUFBRSxDQUFDO1lBQ3RCLE1BQU0sQ0FBQyxLQUFLO1FBQ2hC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z2luLCB7XG4gICAgICAgICAgICAgICAgcGVybWFsaW5rczogbnVsbCxcbiAgICAgICAgICAgICAgICBwYWdlUmVzb2x2ZXI6IGZ1bmN0aW9uIChwYWdlTmFtZSkge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gVHJhbnNmb3JtZXIucGFnZVJlc29sdmVyKHBhZ2VOYW1lKVxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgaHJlZlRlbXBsYXRlOiBmdW5jdGlvbiAocGVybWFsaW5rKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiAgVHJhbnNmb3JtZXIuaHJlZlRlbXBsYXRlKHBlcm1hbGluayk7XG4gICAgICAgICAgICAgICAgfSxcblxuICAgICAgICAgICAgICAgIGFsaWFzRGl2aWRlcjogXCJ8XCJcbiAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAudXNlKHJlbWFya1JlaHlwZSlcbiAgICAgICAgICAgIC51c2UocmVoeXBlUHJpc20pXG4gICAgICAgICAgICAudXNlKHJlaHlwZVN0cmluZ2lmeSlcbiAgICAgICAgICAgIC5wcm9jZXNzKHNhbml0aXplZENvbnRlbnQsXG4gICAgICAgICAgICAgICAgZnVuY3Rpb24gKGVyciwgZmlsZSkge1xuICAgICAgICAgICAgICAgICAgICBodG1sQ29udGVudC5wdXNoKFN0cmluZyhmaWxlKS5yZXBsYWNlKFwiXFxuXCIsIFwiXCIpKVxuICAgICAgICAgICAgICAgICAgICBpZiAoZXJyKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhcIkVSUlJPUjpcIiArIGVycilcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIClcbiAgICAgICAgaHRtbENvbnRlbnQgPSBodG1sQ29udGVudC5qb2luKFwiXCIpXG4gICAgICAgIGh0bWxDb250ZW50ID0gaHRtbENvbnRlbnQuc3BsaXQoXCItLS1cIilcbiAgICAgICAgcmV0dX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WNhbFNsdWc7XG4gICAgICAgICAgICAgICAgICAgIGlmIChwYWdlTmFtZS5pbmNsdWRlcygnIycpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBjb25zb2xlLmxvZyhwYWdlTmFtZSlcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IHRlbXBTbHVnID0gcGFnZU5hbWUuc3BsaXQoJyMnKVswXVxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHRlbXBTbHVnLmxlbmd0aCA9PT0gMCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIE1lYW5pbmcgaXQgaW4gZm9ybSBvZiAjSGVhZGluZzEgLS0+IHNsdWcgd2lsbCBiZSB0aGlzIGZpbGUgc2x1Z1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhbm9uaWNhbFNsdWcgPSB0b1NsdWcoYUZpbGVQYXRoKVxuICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYW5vbmljYWxTbHVnID1UcmFuc2Zvcm1lci5wYWdlUmVzb2x2ZXIodGVtcFNsdWcpWzBdLnNwbGl0KCcjJylbMF1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNhbm9uaWNhbFNsdWcgPSBUcmFuc2Zvcm1lci5wYWdlUmVzb2x2ZXIocGFnZU5hbWUpWzBdLnNwbGl0KCcjJylbMF1cbiAgICAgICAgICAgICAgICAgICAgfVxuXG5cbiAgICAgICAgICAgICAgICAgICAgY29uc3QgYmFja0xpbmsgPSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aXRsZTogVHJhbnNmb3JtZXIucGFyc2VGaWxlTmFtZUZyb21QYXRoKHRvRmlsZVBhdGgoY2Fub25pY2FsU2x1ZykpLFxuICAgICAgICAgICAgICAgICAgICAgICAgc2x1ZzogY2Fub25pY2FsU2x1ZyxcbiAgICAgICAgICAgICAgICAgICAgICAgIHNob3J0U3VtbWFyeTogY2Fub25pY2FsU2x1Z1xuICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgaWYgKGNhbm9uaWNhbFNsdWcgIT0gbnVsbCAmJiBpbnRlcm5hbExpbmtzLmluZGV4T2YoY2Fub25pY2FsU2x1ZykgPCAwKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpbnRlcm5hbExpbmtzLnB1c2goYmFja0xpbmspO1xuICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFtjYW5vbmljYWxTbHVnXVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAsXG4gICAgICAgICAgICAgICAgaHJlZlRlbXBsYXRlOiBmdW5jdGlvbiAocGVybWFsaW5rKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBUcmFuc2Zvcm1lci5ocmVmVGVtcGxhdGUocGVybWFsaW5rKVxuICAgICAgICAgICAgICAgIH0sXG5cbiAgICAgICAgICAgICAgICBhbGlhc0RpdmlkZXI6IFwifFwiXG4gICAgICAgICAgICB9KVxuICAgICAgICAgICAgLnVzZShodG1sKVxuICAgICAgICAgICAgLnByb2Nlc3NTeW5jKHNhbml0aXplZENvbnRlbnQpXG5cbiAgICAgICAgLy8gY29uc29sZS5sb2coXCJJbnRlcm5hbCBMaW5rcyBvZjogICBcIiAgKyBhRmlsZVBhdGgpXG4gICAgICAgIC8vIGludGVybmFsTGlua3MuZm9yRWFjaChhTGluayA9PiB7XG4gICAgICAgIC8vICAgICBjb25zb2xlLmxvZyhhTGluay50aXRsZSArIFwiIC0tPiBcIiArIGFMaW5rLnNsdWcpXG4gICAgICAgIC8vIH0pXG4gICAgICAgIC8vIGNvbnNvbGUubG9nKFwiPT09PT09PT09PT09PT09SW50ZXJuYWwgTGlua3NcIilcbiAgICAgICAgcmV0dXJuIGludGVybmF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ZXJzIiwiZm9yRWFjaCIsImxldHRlclBhaXIiLCJmaWxlcGF0aCIsImluY2x1ZGVzIiwicGFyc2VkRmlsZUZyb21QYXRoIiwiZ2V0SW50ZXJuYWxMaW5rcyIsImFGaWxlUGF0aCIsImZpbGVDb250ZW50IiwicmVhZEZpbGVTeW5jIiwiaW50ZXJuYWxMaW5rcyIsImNhbm9uaWNhbFNsdWciLCJ0ZW1wU2x1ZyIsImJhY2tMaW5rIiwidGl0bGUiLCJzbHVnIiwic2hvcnRTdW1tYXJ5IiwicHJvY2Vzc1N5bmMiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./lib/transformer.js\n");

/***/ }),

/***/ "./lib/utils.js":
/*!**********************!*\
  !*** ./lib/utils.js ***!
  \**********************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"getContent\": () => (/* binding */ getContent),\n/* harmony export */   \"getShortSummary\": () => (/* binding */ getShortSummary),\n/* harmony export */   \"getAllMarkdownFiles\": () => (/* binding */ getAllMarkdownFiles),\n/* harmony export */   \"getSinglePost\": () => (/* binding */ getSinglePost),\n/* harmony export */   \"toFilePath\": () => (/* binding */ toFilePath),\n/* harmony export */   \"getSlugHashMap\": () => (/* binding */ getSlugHashMap),\n/* harmony export */   \"toSlug\": () => (/* binding */ toSlug),\n/* harmony export */   \"constructGraphData\": () => (/* binding */ constructGraphData),\n/* harmony export */   \"getLocalGraphData\": () => (/* binding */ getLocalGraphData),\n/* harmony export */   \"getAllSlugs\": () => (/* binding */ getAllSlugs),\n/* harmony export */   \"getDirectoryData\": () => (/* binding */ getDirectoryData),\n/* harmony export */   \"convertObject\": () => (/* binding */ convertObject),\n/* harmony export */   \"getFlattenArray\": () => (/* binding */ getFlattenArray)\n/* harmony export */ });\n/* harmony import */ var _node__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node */ \"./lib/node.js\");\n/* harmony import */ var _transformer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./transformer */ \"./lib/transformer.js\");\n/* harmony import */ var unified__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! unified */ \"unified\");\n/* harmony import */ var unified__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(unified__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var remark_parse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! remark-parse */ \"remark-parse\");\n/* harmony import */ var remark_parse__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(remark_parse__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var mdast_util_to_string__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! mdast-util-to-string */ \"mdast-util-to-string\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! path */ \"path\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! fs */ \"fs\");\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_6__);\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_transformer__WEBPACK_IMPORTED_MODULE_1__, mdast_util_to_string__WEBPACK_IMPORTED_MODULE_4__]);\n([_transformer__WEBPACK_IMPORTED_MODULE_1__, mdast_util_to_string__WEBPACK_IMPORTED_MODULE_4__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\n\n\n\n\nconst dirTree = __webpack_require__(/*! directory-tree */ \"directory-tree\");\nfunction getContent(slug) {\n    let currentFilePath = toFilePath(slug);\n    if (currentFilePath === undefined || currentFilePath == null) return null;\n    return _node__WEBPACK_IMPORTED_MODULE_0__.Node.readFileSync(currentFilePath);\n}\nfunction getShortSummary(slug) {\n    const content = getContent(slug);\n    if (content === undefined || content === null) {\n        return;\n    }\n    const tree = unified__WEBPACK_IMPORTED_MODULE_2___default()().use((remark_parse__WEBPACK_IMPORTED_MODULE_3___default())).parse(content);\n    let plainText = (0,mdast_util_to_string__WEBPACK_IMPORTED_MODULE_4__.toString)(tree);\n    return plainText.split(\" \").splice(0, 40).join(\" \");\n}\nfunction getAllMarkdownFiles() {\n    return _node__WEBPACK_IMPORTED_MODULE_0__.Node.getFiles(_node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder());\n}\nfunction getSinglePost(slug) {\n    // List of filenames that will provide existing links to wikilink\n    let currentFilePath = toFilePath(slug);\n    //console.log(\"currentFilePath: \", currentFilePath)\n    var fileContent = _node__WEBPACK_IMPORTED_MODULE_0__.Node.readFileSync(currentFilePath);\n    const currentFileFrontMatter = _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.getFrontMatterData(fileContent);\n    // console.log(\"===============\\n\\nFile is scanning: \", slug)\n    const [htmlContent] = _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.getHtmlContent(fileContent);\n    // console.log(\"==================================\")\n    //console.log(\"hrmlcontents and backlinks\")\n    return {\n        id: slug,\n        // ...currentFileFrontMatter,\n        data: htmlContent\n    };\n}\nconst cachedSlugMap = getSlugHashMap();\nfunction toFilePath(slug) {\n    return cachedSlugMap[slug];\n}\nfunction getSlugHashMap() {\n    // This is to solve problem of converting between slug and filepath,\n    // where previously if I convert a slug to a file path sometime\n    // it does not always resolve to correct filepath, converting function is not bi-directional\n    // and not conflict-free, other solution was considered (hash file name into a hash, but this\n    // is not SEO-friendly and make url look ugly ==> I chose this\n    const slugMap = new Map();\n    getAllMarkdownFiles().map((aFile)=>{\n        const aSlug = toSlug(aFile);\n        // if (slugMap.has(aSlug)) {\n        //     slugMap[aSlug].push(aFile)\n        // } else {\n        //     slugMap[aSlug] = [aFile]\n        // }\n        // Note: [Future improvement] Resolve conflict\n        slugMap[aSlug] = aFile;\n    });\n    slugMap['index'] = _node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder() + \"/index.md\";\n    slugMap['/'] = _node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder() + \"/index.md\";\n    return slugMap;\n}\nfunction toSlug(filePath) {\n    if (_node__WEBPACK_IMPORTED_MODULE_0__.Node.isFile(filePath) && filePath.includes(_node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder())) {\n        return filePath.replace(_node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder(), '').replaceAll('/', '__').replaceAll(' ', '++++').replaceAll('&', 'ambersand').replace('.md', '');\n    } else {\n        //TODO handle this properly\n        return '/';\n    }\n}\nfunction constructGraphData() {\n    const filepath = path__WEBPACK_IMPORTED_MODULE_5___default().join(process.cwd(), \"graph-data.json\");\n    if (_node__WEBPACK_IMPORTED_MODULE_0__.Node.isFile(filepath)) {\n        const data = fs__WEBPACK_IMPORTED_MODULE_6___default().readFileSync(filepath);\n        return JSON.parse(String(data));\n    } else {\n        const filePaths = getAllMarkdownFiles();\n        const edges = [];\n        const nodes = [];\n        filePaths.forEach((aFilePath)=>{\n            // const {currentFilePath} = getFileNames(filename)\n            const aNode = {\n                title: _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.parseFileNameFromPath(aFilePath),\n                slug: toSlug(aFilePath),\n                shortSummary: getShortSummary(toSlug(aFilePath))\n            };\n            nodes.push(aNode);\n            // console.log(\"Constructing graph for node: \" + aFilePath )\n            const internalLinks = _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.getInternalLinks(aFilePath);\n            internalLinks.forEach((aLink)=>{\n                if (aLink.slug === null || aLink.slug.length === 0) return;\n                const anEdge = {\n                    source: toSlug(aFilePath),\n                    target: aLink.slug\n                };\n                edges.push(anEdge);\n            // console.log(\"Source: \" + anEdge.source)\n            // console.log(\"Target: \" + anEdge.target)\n            });\n        // console.log(\"==============Constructing graph\" )\n        });\n        const data = {\n            nodes,\n            edges\n        };\n        fs__WEBPACK_IMPORTED_MODULE_6___default().writeFileSync(filepath, JSON.stringify(data), \"utf-8\");\n        return data;\n    }\n}\nfunction getLocalGraphData(currentNodeId) {\n    const { nodes , edges  } = constructGraphData();\n    const newNodes = nodes.map((aNode)=>({\n            data: {\n                id: aNode.slug.toString(),\n                label: _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.parseFileNameFromPath(toFilePath(aNode.slug))\n            }\n        })\n    );\n    const newEdges = edges.map((anEdge)=>({\n            data: {\n                source: anEdge.source,\n                target: anEdge.target\n            }\n        })\n    );\n    const existingNodeIDs = newNodes.map((aNode)=>aNode.data.id\n    );\n    currentNodeId = currentNodeId === 'index' ? '__index' : currentNodeId;\n    if (currentNodeId != null && existingNodeIDs.includes(currentNodeId)) {\n        const outGoingNodeIds = newEdges.filter((anEdge)=>anEdge.data.source === currentNodeId\n        ).map((anEdge)=>anEdge.data.target\n        );\n        const incomingNodeIds = newEdges.filter((anEdge)=>anEdge.data.target === currentNodeId\n        ).map((anEdge)=>anEdge.data.source\n        );\n        outGoingNodeIds.push(currentNodeId);\n        const localNodeIds = incomingNodeIds.concat(outGoingNodeIds.filter((item)=>incomingNodeIds.indexOf(item) < 0\n        ));\n        if (localNodeIds.indexOf(currentNodeId) < 0) {\n            localNodeIds.push(currentNodeId);\n        }\n        const localNodes = newNodes.filter((aNode)=>localNodeIds.includes(aNode.data.id)\n        );\n        let localEdges = newEdges.filter((edge)=>localNodeIds.includes(edge.data.source)\n        ).filter((edge)=>localNodeIds.includes(edge.data.target)\n        );\n        // Filter self-reference edges\n        localEdges = localEdges.filter((edge)=>edge.data.source !== edge.data.target\n        );\n        // TODO: Find out why target ==='/' in some case\n        localEdges = localEdges.filter((edge)=>edge.data.target !== '/'\n        );\n        return {\n            nodes: localNodes,\n            edges: localEdges\n        };\n    } else {\n        const filteredEdges = newEdges.filter((edge)=>existingNodeIDs.includes(edge.data.source)\n        ).filter((edge)=>existingNodeIDs.includes(edge.data.target)\n        );\n        return {\n            nodes: newNodes,\n            edges: filteredEdges\n        };\n    }\n}\nfunction getAllSlugs() {\n    //console.log(\"\\n\\nAll Posts are scanning\")\n    // Get file names under /posts\n    const filePaths = _node__WEBPACK_IMPORTED_MODULE_0__.Node.getFiles(_node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder()).filter((f)=>!(f.endsWith(\"index\") || f.endsWith(\"sidebar\"))\n    );\n    return filePaths.map((f)=>toSlug(f)\n    );\n}\nfunction getDirectoryData() {\n    const filteredDirectory = dirTree(_node__WEBPACK_IMPORTED_MODULE_0__.Node.getMarkdownFolder(), {\n        extensions: /\\.md/\n    });\n    return convertObject(filteredDirectory);\n}\nlet _counter = 0;\nfunction convertObject(thisObject) {\n    const children = [];\n    let routerPath = getAllSlugs().find((slug)=>{\n        const fileName = _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.parseFileNameFromPath(toFilePath(slug));\n        return _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.normalizeFileName(fileName) === _transformer__WEBPACK_IMPORTED_MODULE_1__.Transformer.normalizeFileName(thisObject.name);\n    }) || null;\n    routerPath = routerPath ? '/note/' + routerPath : null;\n    const newObject = {\n        name: thisObject.name,\n        children: children,\n        id: (_counter++).toString(),\n        routePath: routerPath || null\n    };\n    if (thisObject.children != null && thisObject.children.length > 0) {\n        thisObject.children.forEach((aChild)=>{\n            const newChild = convertObject(aChild);\n            children.push(newChild);\n        });\n        return newObject;\n    } else {\n        return newObject;\n    }\n}\nfunction flat(array) {\n    var result = [];\n    array.forEach(function(a) {\n        result.push(a);\n        if (Array.isArray(a.children)) {\n            result = result.concat(flat(a.children));\n        }\n    });\n    return result;\n}\nfunction getFlattenArray(thisObject) {\n    return flat(thisObject.children);\n}\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9saWIvdXRpbHMuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQTJCO0FBQ2M7QUFDWjtBQUNNO0FBQ1U7QUFDdEI7QUFDSjtBQUVuQixLQUFLLENBQUNPLE9BQU8sR0FBR0MsbUJBQU8sQ0FBQyxzQ0FBZ0I7QUFHakMsU0FBU0MsVUFBVSxDQUFDQyxJQUFJLEVBQUUsQ0FBQztJQUM5QixHQUFHLENBQUNDLGVBQWUsR0FBR0MsVUFBVSxDQUFDRixJQUFJO0lBQ3JDLEVBQUUsRUFBRUMsZUFBZSxLQUFLRSxTQUFTLElBQUlGLGVBQWUsSUFBSSxJQUFJLEVBQUUsTUFBTSxDQUFDLElBQUk7SUFDekUsTUFBTSxDQUFDWCxvREFBaUIsQ0FBQ1csZUFBZTtBQUM1QyxDQUFDO0FBRU0sU0FBU0ksZUFBZSxDQUFDTCxJQUFJLEVBQUUsQ0FBQztJQUNuQyxLQUFLLENBQUNNLE9BQU8sR0FBR1AsVUFBVSxDQUFDQyxJQUFJO0lBQy9CLEVBQUUsRUFBRU0sT0FBTyxLQUFLSCxTQUFTLElBQUlHLE9BQU8sS0FBSyxJQUFJLEVBQUUsQ0FBQztRQUM1QyxNQUFNO0lBQ1YsQ0FBQztJQUVELEtBQUssQ0FBQ0MsSUFBSSxHQUFHZiw4Q0FBTyxHQUFHZ0IsR0FBRyxDQUFDZixxREFBUSxFQUM5QmdCLEtBQUssQ0FBQ0gsT0FBTztJQUNsQixHQUFHLENBQUNJLFNBQVMsR0FBR2hCLDhEQUFRLENBQUNhLElBQUk7SUFDN0IsTUFBTSxDQUFDRyxTQUFTLENBQUNDLEtBQUssQ0FBQy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KGFGaWxlUGF0aCA9PiB7XG4gICAgICAgICAgICAgICAgICAgIC8vIGNvbnN0IHtjdXJyZW50RmlsZVBhdGh9ID0gZ2V0RmlsZU5hbWVzKGZpbGVuYW1lKVxuICAgICAgICAgICAgICAgICAgICBjb25zdCBhTm9kZSA9IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiBUcmFuc2Zvcm1lci5wYXJzZUZpbGVOYW1lRnJvbVBhdGgoYUZpbGVQYXRoKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHNsdWc6IHRvU2x1ZyhhRmlsZVBhdGgpLFxuICAgICAgICAgICAgICAgICAgICAgICAgc2hvcnRTdW1tYXJ5OiBnZXRTaG9ydFN1bW1hcnkodG9TbHVnKGFGaWxlUGF0aCkpXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgbm9kZXMucHVzaChhTm9kZSlcblxuICAgICAgICAgICAgICAgICAgICAvLyBjb25zb2xlLmxvZyhcIkNvbnN0cnVjdGluZyBncmFwaCBmb3Igbm9kZTogXCIgKyBhRmlsZVBhdGggKVxuICAgICAgICAgICAgICAgICAgICBjb25zdCBpbnRlcm5hbExpbmtzID0gVHJhbnNmb3JtZXIuZ2V0SW50ZXJuYWxMaW5rcyhhRmlsZVBhdGgpXG4gICAgICAgICAgICAgICAgICAgIGludGVybmFsTGlua3MuZm9yRWFjaChhTGluayA9PiB7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChhTGluay5zbHVnID09PSBudWxsIHx8IGFMaW5rLnNsdWcubGVuZ3RoID09PSAwKSByZXR1cm5cblxuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgYW5FZGdlID0ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNvdXJjZTogdG9TbHVnKGFGaWxlUGF0aCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGFyZ2V0OiBhTGluay5zbHVnLFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgZWRnZXMucHVzaChhbkVkZ2UpXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBjb25zb2xlLmxvZyhcIlNvdXJjZTogXCIgKyBhbkVkZ2Uuc291cmNlKVxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gY29uc29sZS5sb2coXCJUYXJnZXQ6IFwiICsgYW5FZGdlLnRhcmdldClcbiAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgLy8gY29uc29sZS5sb2coXCI9PT09PT09PT09PT09PUNvbnN0cnVjdGluZyBncmFwaFwiIClcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICApXG4gICAgICAgIGNvbnN0IGRhdGEgPSB7bm9kZXMsIGVkZ2VzfTtcbiAgICAgICAgZnMud3JpdGVGaWxlU3luYyhmaWxlcGF0aCwgSlNPTi5zdHJpbmdpZnkoZGF0YSksIFwidXRmLThcIik7XG4gICAgICAgIHJldHVybiBkYXRhO1xuICAgIH1cbn1cblxuXG5leHBvcnQgZnVuY3Rpb24gZ2V0TG9jYWxHcmFwaERhdGEoY3VycmVudE5vZGVJZCkge1xuXG4gICAgY29uc3Qge25vZGVzLCBlZGdlc30gPSBjb25zdHJ1Y3RHcmFwaERhdGEoKVxuXG4gICAgY29uc3QgbmV3Tm9kZXMgPSBub2Rlcy5tYXAoYU5vZGUgPT4gKFxuICAgICAgICB7XG4gICAgICAgICAgICBkYXRhOiB7XG4gICAgICAgICAgICAgICAgaWQ6IGFOb2RlLnNsdWcudG9TdHJpbmcoKSxcbiAgICAgICAgICAgICAgICBsYWJlbDogVHJhbnNmb3JtZXIucGFyc2VGaWxlTmFtZUZyb21QYXRoKHRvRmlsZVBhdGgoYU5vZGUuc2x1ZykpLFxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgKSlcblxuICAgIGNvbnN0IG5ld0VkZ2VzID0gZWRnZXMubWFwKGFuRWRnZSA9PiAoe1xuICAgICAgIC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ourceURL=webpack-internal:///./lib/utils.js\n");

/***/ }),

/***/ "./node_modules/next/dist/shared/lib/dynamic.js":
/*!******************************************************!*\
  !*** ./node_modules/next/dist/shared/lib/dynamic.js ***!
  \******************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
eval("\nObject.defineProperty(exports, \"__esModule\", ({\n    value: true\n}));\nexports.noSSR = noSSR;\nexports[\"default\"] = dynamic;\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"react\"));\nvar _loadable = _interopRequireDefault(__webpack_require__(/*! ./loadable */ \"./loadable\"));\nfunction _interopRequireDefault(obj) {\n    return obj && obj.__esModule ? obj : {\n        default: obj\n    };\n}\nconst isServerSide = \"undefined\" === 'undefined';\nfunction noSSR(LoadableInitializer, loadableOptions) {\n    // Removing webpack and modules means react-loadable won't try preloading\n    delete loadableOptions.webpack;\n    delete loadableOptions.modules;\n    // This check is necessary to prevent react-loadable from initializing on the server\n    if (!isServerSide) {\n        return LoadableInitializer(loadableOptions);\n    }\n    const Loading = loadableOptions.loading;\n    // This will only be rendered on the server side\n    return ()=>/*#__PURE__*/ _react.default.createElement(Loading, {\n            error: null,\n            isLoading: true,\n            pastDelay: false,\n            timedOut: false\n        })\n    ;\n}\nfunction dynamic(dynamicOptions, options) {\n    let loadableFn = _loadable.default;\n    let loadableOptions = {\n        // A loading component is not required, so we default it\n        loading: ({ error , isLoading , pastDelay  })=>{\n            if (!pastDelay) return null;\n            if (true) {\n                if (isLoading) {\n                    return null;\n                }\n                if (error) {\n                    return(/*#__PURE__*/ _react.default.createElement(\"p\", null, error.message, /*#__PURE__*/ _react.default.createElement(\"br\", null), error.stack));\n                }\n            }\n            return null;\n        }\n    };\n    // Support for direct import(), eg: dynamic(import('../hello-world'))\n    // Note that this is only kept for the edge case where someone is passing in a promise as first argument\n    // The react-loadable babel plugin will turn dynamic(import('../hello-world')) into dynamic(() => import('../hello-world'))\n    // To make sure we don't execute the import without rendering first\n    if (dynamicOptions instanceof Promise) {\n        loadableOptions.loader = ()=>dynamicOptions\n        ;\n    // Support for having import as a function, eg: dynamic(() => import('../hello-world'))\n    } else if (typeof dynamicOptions === 'function') {\n        loadableOptions.loader = dynamicOptions;\n    // Support for having first argument being options, eg: dynamic({loader: import('../hello-world')})\n    } else if (typeof dynamicOptions === 'object') {\n        loadableOptions = {\n            ...loadableOptions,\n            ...dynamicOptions\n        };\n    }\n    // Support for passing options, eg: dynamic(import('../hello-world'), {loading: () => <p>Loading something</p>})\n    loadableOptions = {\n        ...loadableOptions,\n        ...options\n    };\n    const suspenseOptions = loadableOptions;\n    if (true) {\n        // Error if react root is not enabled and `suspense` option is set to true\n        if ( true && suspenseOptions.suspense) {\n            // TODO: add error doc when this feature is stable\n            throw new Error(`Invalid suspense option usage in next/dynamic. Read more: https://nextjs.org/docs/messages/invalid-dynamic-suspense`);\n        }\n    }\n    if (suspenseOptions.suspense) {\n        return loadableFn(suspenseOptions);\n    }\n    // coming from build/babel/plugins/react-loadable-plugin.js\n    if (loadableOptions.loadableGenerated) {\n        loadableOptions = {\n            ...loadableOptions,\n            ...loadableOptions.loadableGenerated\n        };\n        delete loadableOptions.loadableGenerated;\n    }\n    // support for disabling server side rendering, eg: dynamic(import('../hello-world'), {ssr: false})\n    if (typeof loadableOptions.ssr === 'boolean') {\n        if (!loadableOptions.ssr) {\n            delete loadableOptions.ssr;\n            return noSSR(loadableFn, loadableOptions);\n        }\n        delete loadableOptions.ssr;\n    }\n    return loadableFn(loadableOptions);\n} //# sourceMappingURL=dynamic.js.map\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvbmV4dC9kaXN0L3NoYXJlZC9saWIvZHluYW1pYy5qcy5qcyIsIm1hcHBpbmdzIjoiQUFBWTtBQUNaQSw4Q0FBNkMsQ0FBQztJQUMxQ0csS0FBSyxFQUFFLElBQUk7QUFDZixDQUFDLEVBQUM7QUF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BfbG9hZGFibGUuZGVmYXVsdDtcbiAgICBsZXQgbG9hZGFibGVPcHRpb25zID0ge1xuICAgICAgICAvLyBBIGxvYWRpbmcgY29tcG9uZW50IGlzIG5vdCByZXF1aXJlZCwgc28gd2UgZGVmYXVsdCBpdFxuICAgICAgICBsb2FkaW5nOiAoeyBlcnJvciAsIGlzTG9hZGluZyAsIHBhc3REZWxheSAgfSk9PntcbiAgICAgICAgICAgIGlmICghcGFzdERlbGF5KSByZXR1cm4gbnVsbDtcbiAgICAgICAgICAgIGlmIChwcm9jZXNzLmVudi5OT0RFX0VOViA9PT0gJ2RldmVsb3BtZW50Jykge1xuICAgICAgICAgICAgICAgIGlmIChpc0xvYWRpbmcpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGlmIChlcnJvcikge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4oLyojX19QVVJFX18qLyBfcmVhY3QuZGVmYXVsdC5jcmVhdGVFbGVtZW50KFwicFwiLCBudWxsLCBlcnJvci5tZXNzYWdlLCAvKiNfX1BVUkVfXyovIF9yZWFjdC5kZWZhdWx0LmNyZWF0ZUVsZW1lbnQoXCJiclwiLCBudWxsKSwgZXJyb3Iuc3RhY2spKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZXR1cm4gbnVsbDtcbiAgICAgICAgfVxuICAgIH07XG4gICAgLy8gU3VwcG9ydCBmb3IgZGlyZWN0IGltcG9ydCgpLCBlZzogZHluYW1pYyhpbXBvcnQoJy4uL2hlbGxvLXdvcmxkJykpXG4gICAgLy8gTm90ZSB0aGF0IHRoaXMgaXMgb25seSBrZXB0IGZvciB0aGUgZWRnZSBjYXNlIHdoZXJlIHNvbWVvbmUgaXMgcGFzc2luZyBpbiBhIHByb21pc2UgYXMgZmlyc3QgYXJndW1lbnRcbiAgICAvLyBUaGUgcmVhY3QtbG9hZGFib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XRpYWxpemVyIiwibG9hZGFibGVPcHRpb25zIiwid2VicGFjayIsIm1vZHVsZXMiLCJMb2FkaW5nIiwibG9hZGluZyIsImNyZWF0ZUVsZW1lbnQiLCJlcnJvciIsImlzTG9hZGluZyIsInBhc3REZWxheSIsInRpbWVkT3V0IiwiZHluYW1pY09wdGlvbnMiLCJvcHRpb25zIiwibG9hZGFibGVGbiIsIm1lc3NhZ2UiLCJzdGFjayIsIlByb21pc2UiLCJsb2FkZXIiLCJzdXNwZW5zZU9wdGlvbnMiLCJwcm9jZXNzIiwiZW52IiwiX19ORVhUX0NPTkNVUlJFTlRfRkVBVFVSRVMiLCJfX05FWFRfUkVBQ1RfUk9PVCIsInN1c3BlbnNlIiwiRXJyb3IiLCJsb2FkYWJsZUdlbmVyYXRlZCIsInNzciJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/next/dist/shared/lib/dynamic.js\n");

/***/ }),

/***/ "./pages/index.js":
/*!************************!*\
  !*** ./pages/index.js ***!
  \************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ Home),\n/* harmony export */   \"getStaticProps\": () => (/* binding */ getStaticProps)\n/* harmony export */ });\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ \"react/jsx-dev-runtime\");\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _components_Layout__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/Layout */ \"./components/Layout.js\");\n/* harmony import */ var _lib_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../lib/utils */ \"./lib/utils.js\");\n/* harmony import */ var _components_FolderTree__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../components/FolderTree */ \"./components/FolderTree.js\");\n/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! next/dynamic */ \"./node_modules/next/dynamic.js\");\n/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_dynamic__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _components_MDContent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../components/MDContent */ \"./components/MDContent.js\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_lib_utils__WEBPACK_IMPORTED_MODULE_2__]);\n_lib_utils__WEBPACK_IMPORTED_MODULE_2__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];\n\n\n\n\n\n\n// This trick is to dynamically load component that interact with window object (browser only)\nconst DynamicGraph = next_dynamic__WEBPACK_IMPORTED_MODULE_4___default()(null, {\n    loadableGenerated: {\n        modules: [\n            \"index.js -> \" + \"../components/Graph\"\n        ]\n    },\n    loading: ()=>/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n            children: \"Loading ...\"\n        }, void 0, false, {\n            fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js\",\n            lineNumber: 18,\n            columnNumber: 22\n        }, undefined)\n    ,\n    ssr: false\n});\nfunction Home({ graphData , content , tree , flattenNodes , backLinks  }) {\n    return(/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_Layout__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n        children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n            className: \"container\",\n            children: [\n                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"nav\", {\n                    className: \"nav-bar\",\n                    children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_FolderTree__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n                        tree: tree,\n                        flattenNodes: flattenNodes\n                    }, void 0, false, {\n                        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js\",\n                        lineNumber: 26,\n                        columnNumber: 21\n                    }, this)\n                }, void 0, false, {\n                    fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js\",\n                    lineNumber: 25,\n                    columnNumber: 17\n                }, this),\n                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_MDContent__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n                    content: content,\n                    handleOpenNewContent: null,\n                    backLinks: backLinks\n                }, void 0, false, {\n                    fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js\",\n                    lineNumber: 28,\n                    columnNumber: 17\n                }, this),\n                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(DynamicGraph, {\n                    graph: graphData\n                }, void 0, false, {\n                    fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js\",\n                    lineNumber: 29,\n                    columnNumber: 17\n                }, this)\n            ]\n        }, void 0, true, {\n            fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js\",\n            lineNumber: 24,\n            columnNumber: 13\n        }, this)\n    }, void 0, false, {\n        fileName: \"/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/index.js\",\n        lineNumber: 23,\n        columnNumber: 9\n    }, this));\n};\nconst { nodes , edges  } = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.constructGraphData)();\nfunction getStaticProps() {\n    const tree = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.convertObject)((0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.getDirectoryData)());\n    const contentData = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.getSinglePost)(\"index\");\n    const flattenNodes = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.getFlattenArray)(tree);\n    const listOfEdges = edges.filter((anEdge)=>anEdge.target === \"index\"\n    );\n    const internalLinks = listOfEdges.map((anEdge)=>nodes.find((aNode)=>aNode.slug === anEdge.source\n        )\n    ).filter((element)=>element !== undefined\n    );\n    const backLinks = [\n        ...new Set(internalLinks)\n    ];\n    const graphData = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_2__.getLocalGraphData)(\"index\");\n    return {\n        props: {\n            content: contentData.data,\n            tree: tree,\n            flattenNodes: flattenNodes,\n            graphData: graphData,\n            backLinks: backLinks\n        }\n    };\n}\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9wYWdlcy9pbmRleC5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7OztBQUF5QztBQVFwQjtBQUM0QjtBQUNmO0FBQ2E7QUFHL0MsRUFBOEY7QUFDOUYsS0FBSyxDQUFDVSxZQUFZLEdBQUdGLG1EQUFPOzs7Ozs7SUFFdEJHLE9BQU8sa0ZBQVNDLENBQUM7c0JBQUMsQ0FBVzs7Ozs7OztJQUFNQyxHQUFHLEVBQUUs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2xlUG9zdCIsImdldERpcmVjdG9yeURhdGEiLCJjb252ZXJ0T2JqZWN0IiwiZ2V0RmxhdHRlbkFycmF5IiwiZ2V0TG9jYWxHcmFwaERhdGEiLCJjb25zdHJ1Y3RHcmFwaERhdGEiLCJGb2xkZXJUcmVlIiwiZHluYW1pYyIsIk1EQ29udGVudCIsIkR5bmFtaWNHcmFwaCIsImxvYWRpbmciLCJwIiwic3NyIiwiSG9tZSIsImdyYXBoRGF0YSIsImNvbnRlbnQiLCJ0cmVlIiwiZmxhdHRlbk5vZGVzIiwiYmFja0xpbmtzIiwiZGl2IiwiY2xhc3NOYW1lIiwibmF2IiwiaGFuZGxlT3Blbk5ld0NvbnRlbnQiLCJncmFwaCIsIm5vZGVzIiwiZWRnZXMiLCJnZXRTdGF0aWNQcm9wcyIsImNvbnRlbnREYXRhIiwibGlzdE9mRWRnZXMiLCJmaWx0ZXIiLCJhbkVkZ2UiLCJ0YXJnZXQiLCJpbnRlcm5hbExpbmtzIiwibWFwIiwiZmluZCIsImFOb2RlIiwic2x1ZyIsInNvdXJjZSIsImVsZW1lbnQiLCJ1bmRlZmluZWQiLCJTZXQiLCJwcm9wcyIsImRhdGEiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./pages/index.js\n");

/***/ }),

/***/ "./node_modules/next/dynamic.js":
/*!**************************************!*\
  !*** ./node_modules/next/dynamic.js ***!
  \**************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

eval("module.exports = __webpack_require__(/*! ./dist/shared/lib/dynamic */ \"./node_modules/next/dist/shared/lib/dynamic.js\")\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvbmV4dC9keW5hbWljLmpzLmpzIiwibWFwcGluZ3MiOiJBQUFBLHVIQUFxRCIsInNvdXJjZXMiOlsid2VicGFjazovL215LWFwcC8uL25vZGVfbW9kdWxlcy9uZXh0L2R5bmFtaWMuanM/NzNkNCJdLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IHJlcXVpcmUoJy4vZGlzdC9zaGFyZWQvbGliL2R5bmFtaWMnKVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/next/dynamic.js\n");

/***/ }),

/***/ "@mui/icons-material/ChevronRight":
/*!***************************************************!*\
  !*** external "@mui/icons-material/ChevronRight" ***!
  \***************************************************/
/***/ ((module) => {

"use strict";
module.exports = require("@mui/icons-material/ChevronRight");

/***/ }),

/***/ "@mui/icons-material/ExpandMore":
/*!*************************************************!*\
  !*** external "@mui/icons-material/ExpandMore" ***!
  \*************************************************/
/***/ ((module) => {

"use strict";
module.exports = require("@mui/icons-material/ExpandMore");

/***/ }),

/***/ "@mui/lab/TreeItem":
/*!************************************!*\
  !*** external "@mui/lab/TreeItem" ***!
  \************************************/
/***/ ((module) => {

"use strict";
module.exports = require("@mui/lab/TreeItem");

/***/ }),

/***/ "@mui/lab/TreeView":
/*!************************************!*\
  !*** external "@mui/lab/TreeView" ***!
  \************************************/
/***/ ((module) => {

"use strict";
module.exports = require("@mui/lab/TreeView");

/***/ }),

/***/ "@mui/material":
/*!********************************!*\
  !*** external "@mui/material" ***!
  \********************************/
/***/ ((module) => {

"use strict";
module.exports = require("@mui/material");

/***/ }),

/***/ "@mui/material/Alert":
/*!**************************************!*\
  !*** external "@mui/material/Alert" ***!
  \**************************************/
/***/ ((module) => {

"use strict";
module.exports = require("@mui/material/Alert");

/***/ }),

/***/ "@mui/material/AlertTitle":
/*!*******************************************!*\
  !*** external "@mui/material/AlertTitle" ***!
  \*******************************************/
/***/ ((module) => {

"use strict";
module.exports = require("@mui/material/AlertTitle");

/***/ }),

/***/ "@mui/material/styles":
/*!***************************************!*\
  !*** external "@mui/material/styles" ***!
  \***************************************/
/***/ ((module) => {

"use strict";
module.exports = require("@mui/material/styles");

/***/ }),

/***/ "directory-tree":
/*!*********************************!*\
  !*** external "directory-tree" ***!
  \*********************************/
/***/ ((module) => {

"use strict";
module.exports = require("directory-tree");

/***/ }),

/***/ "gray-matter":
/*!******************************!*\
  !*** external "gray-matter" ***!
  \******************************/
/***/ ((module) => {

"use strict";
module.exports = require("gray-matter");

/***/ }),

/***/ "./loadable":
/*!***************************************************!*\
  !*** external "next/dist/shared/lib/loadable.js" ***!
  \***************************************************/
/***/ ((module) => {

"use strict";
module.exports = require("next/dist/shared/lib/loadable.js");

/***/ }),

/***/ "next/head":
/*!****************************!*\
  !*** external "next/head" ***!
  \****************************/
/***/ ((module) => {

"use strict";
module.exports = require("next/head");

/***/ }),

/***/ "next/router":
/*!******************************!*\
  !*** external "next/router" ***!
  \******************************/
/***/ ((module) => {

"use strict";
module.exports = require("next/router");

/***/ }),

/***/ "path":
/*!***********************!*\
  !*** external "path" ***!
  \***********************/
/***/ ((module) => {

"use strict";
module.exports = require("path");

/***/ }),

/***/ "react":
/*!************************!*\
  !*** external "react" ***!
  \************************/
/***/ ((module) => {

"use strict";
module.exports = require("react");

/***/ }),

/***/ "react/jsx-dev-runtime":
/*!****************************************!*\
  !*** external "react/jsx-dev-runtime" ***!
  \****************************************/
/***/ ((module) => {

"use strict";
module.exports = require("react/jsx-dev-runtime");

/***/ }),

/***/ "remark-external-links":
/*!****************************************!*\
  !*** external "remark-external-links" ***!
  \****************************************/
/***/ ((module) => {

"use strict";
module.exports = require("remark-external-links");

/***/ }),

/***/ "remark-frontmatter":
/*!*************************************!*\
  !*** external "remark-frontmatter" ***!
  \*************************************/
/***/ ((module) => {

"use strict";
module.exports = require("remark-frontmatter");

/***/ }),

/***/ "remark-highlight.js":
/*!**************************************!*\
  !*** external "remark-highlight.js" ***!
  \**************************************/
/***/ ((module) => {

"use strict";
module.exports = require("remark-highlight.js");

/***/ }),

/***/ "remark-html":
/*!******************************!*\
  !*** external "remark-html" ***!
  \******************************/
/***/ ((module) => {

"use strict";
module.exports = require("remark-html");

/***/ }),

/***/ "remark-parse":
/*!*******************************!*\
  !*** external "remark-parse" ***!
  \*******************************/
/***/ ((module) => {

"use strict";
module.exports = require("remark-parse");

/***/ }),

/***/ "remark-wiki-link":
/*!***********************************!*\
  !*** external "remark-wiki-link" ***!
  \***********************************/
/***/ ((module) => {

"use strict";
module.exports = require("remark-wiki-link");

/***/ }),

/***/ "unified":
/*!**************************!*\
  !*** external "unified" ***!
  \**************************/
/***/ ((module) => {

"use strict";
module.exports = require("unified");

/***/ }),

/***/ "mdast-util-to-string":
/*!***************************************!*\
  !*** external "mdast-util-to-string" ***!
  \***************************************/
/***/ ((module) => {

"use strict";
module.exports = import("mdast-util-to-string");;

/***/ }),

/***/ "rehype-prism-plus":
/*!************************************!*\
  !*** external "rehype-prism-plus" ***!
  \************************************/
/***/ ((module) => {

"use strict";
module.exports = import("rehype-prism-plus");;

/***/ }),

/***/ "rehype-stringify":
/*!***********************************!*\
  !*** external "rehype-stringify" ***!
  \***********************************/
/***/ ((module) => {

"use strict";
module.exports = import("rehype-stringify");;

/***/ }),

/***/ "remark-rehype":
/*!********************************!*\
  !*** external "remark-rehype" ***!
  \********************************/
/***/ ((module) => {

"use strict";
module.exports = import("remark-rehype");;

/***/ }),

/***/ "unist-util-visit":
/*!***********************************!*\
  !*** external "unist-util-visit" ***!
  \***********************************/
/***/ ((module) => {

"use strict";
module.exports = import("unist-util-visit");;

/***/ }),

/***/ "fs":
/*!*********************!*\
  !*** external "fs" ***!
  \*********************/
/***/ ((module) => {

"use strict";
module.exports = require("fs");

/***/ })

};
;

// load runtime
var __webpack_require__ = require("../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = (__webpack_exec__("./pages/index.js"));
module.exports = __webpack_exports__;

})();:ğÿÿq/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].js€€0;ğÿÿ¤ğÿÿ¥ğÿÿ”./pages/note/[id].js@ƒ çw4]xB¦ğÿÿv/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/package.json

@ çw4]xBúi/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note¥ğÿÿRóÿÿ!�Ae3]xB€Ae3]xBªğÿÿªğÿÿ çw4]xB3ğÿÿ�ğÿÿ­ğÿÿ®ğÿÿ¯ğÿÿ°ğÿÿ±ğÿÿ�/«ğÿÿ©ğÿÿ©ğÿÿ©ğÿÿ©ğÿÿ©ğÿÿ©ğÿÿ©ğÿÿ)ğÿÿ·ğÿÿ€@¸ğÿÿï€€ +ğÿÿ”ğÿÿ•ğÿÿğ@�  çw4]xBò˜ğÿÿ

ù2import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
import Head from "next/head";
import Layout from "../../components/Layout";
import { getAllSlugs, getSinglePost, convertObject, getDirectoryData, constructGraphData, getLocalGraphData } from "../../lib/utils";
import FolderTree from "../../components/FolderTree";
import { getFlattenArray } from "../../lib/utils";
import MDContent from "../../components/MDContent";
import dynamic from 'next/dynamic';
const DynamicGraph = dynamic(null, {
    loadableGenerated: {
        modules: [
            "note/[id].js -> " + "../../components/Graph"
        ]
    },
    loading: ()=>/*#__PURE__*/ _jsxDEV("p", {
            children: "Loading ..."
        }, void 0, false, {
            fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].js",
            lineNumber: 17,
            columnNumber: 22
        }, this)
    ,
    ssr: false
});
export default function Home({ note , backLinks , fileNames , tree , flattenNodes , graphData  }) {
    return(/*#__PURE__*/ _jsxDEV(Layout, {
        children: [
            /*#__PURE__*/ _jsxDEV(Head, {
                children: note.title && /*#__PURE__*/ _jsxDEV("meta", {
                    name: "title",
                    content: note.title
                }, void 0, false, {
                    fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].js",
                    lineNumber: 25,
                    columnNumber: 32
                }, this)
            }, void 0, false, {
                fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].js",
                lineNumber: 24,
                columnNumber: 13
            }, this),
            /*#__PURE__*/ _jsxDEV("div", {
                className: "container",
                children: [
                    /*#__PURE__*/ _jsxDEV("nav", {
                        className: "nav-bar",
                        children: /*#__PURE__*/ _jsxDEV(FolderTree, {
                            tree: tree,
                            flattenNodes: flattenNodes
                        }, void 0, false, {
                            fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].js",
                            lineNumber: 29,
                            columnNumber: 21
                        }, this)
                    }, void 0, false, {
                        fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].js",
                        lineNumber: 28,
                        columnNumber: 17
                    }, this),
                    /*#__PURE__*/ _jsxDEV(MDContent, {
                        content: note.data,
                        fileNames: fileNames,
                        handleOpenNewContent: null,
                        backLinks: backLinks
                    }, void 0, false, {
                        fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].js",
                        lineNumber: 31,
                        columnNumber: 17
                    }, this),
                    /*#__PURE__*/ _jsxDEV(DynamicGraph, {
                        graph: graphData
                    }, void 0, false, {
                        fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].js",
                        lineNumber: 32,
                        columnNumber: 17
                    }, this)
                ]
            }, void 0, true, {
                fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].js",
                lineNumber: 27,
                columnNumber: 13
            }, this)
        ]
    }, void 0, true, {
        fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].js",
        lineNumber: 23,
        columnNumber: 9
    }, this));
};
export async function getStaticPaths() {
    const allPostsData = getAllSlugs();
    const paths = allPostsData.map((p)=>({
            params: {
                id: p
            }
        })
    );
    return {
        paths,
        fallback: false
    };
}
const { nodes , edges  } = constructGraphData();
export function getStaticProps({ params  }) {
    const note = getSinglePost(params.id);
    const tree = convertObject(getDirectoryData());
    const flattenNodes = getFlattenArray(tree);
    const listOfEdges = edges.filter((anEdge)=>anEdge.target === params.id
    );
    const internalLinks = listOfEdges.map((anEdge)=>nodes.find((aNode)=>aNode.slug === anEdge.source
        )
    ).filter((element)=>element !== undefined
    );
    const backLinks = [
        ...new Set(internalLinks)
    ];
    const graphData = getLocalGraphData(params.id);
    return {
        props: {
            note,
            tree: tree,
            flattenNodes: flattenNodes,
            backLinks: backLinks.filter((link)=>link.slug !== params.id
            ),
            graphData: graphData
        }
    };
}
‚webpack://./node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!./pages/note/[id].jsS{"version":3,"sources":["webpack://./pages/note/[id].js"],"sourcesContent":["import Head from \"next/head\";\nimport Layout from \"../../components/Layout\";\nimport {\n    getAllSlugs,\n    getSinglePost,\n    convertObject,\n    getDirectoryData,\n    constructGraphData, getLocalGraphData\n} from \"../../lib/utils\";\nimport FolderTree from \"../../components/FolderTree\";\nimport {getFlattenArray} from \"../../lib/utils\";\nimport MDContent from \"../../components/MDContent\";\nimport dynamic from 'next/dynamic'\n\nconst DynamicGraph = dynamic(\n    () => import('../../components/Graph'),\n    { loading: () => <p>Loading ...</p>, ssr: false }\n)\n\nexport default function Home({note, backLinks, fileNames, tree, flattenNodes, graphData}) {\n\n    return (\n        <Layout>\n            <Head>\n                {note.title && <meta name=\"title\" content={note.title}/>}\n            </Head>\n            <div className='container'>\n                <nav className=\"nav-bar\">\n                    <FolderTree tree={tree} flattenNodes={flattenNodes}/>\n                </nav>\n                <MDContent content={note.data} fileNames={fileNames} handleOpenNewContent={null} backLinks={backLinks}/>\n                <DynamicGraph graph={graphData}/>\n            </div>\n\n        </Layout>\n    );\n}\n\nexport async function getStaticPaths() {\n    const allPostsData = getAllSlugs();\n    const paths = allPostsData.map(p => ({params: {id: p}}))\n\n    return {\n        paths,\n        fallback: false\n    };\n}\n\nconst {nodes, edges} = constructGraphData()\n\nexport function getStaticProps({params}) {\n    const note = getSinglePost(params.id);\n    const tree = convertObject(getDirectoryData());\n    const flattenNodes = getFlattenArray(tree)\n\n    const listOfEdges =   edges.filter(anEdge => anEdge.target === params.id)\n    const internalLinks = listOfEdges.map(anEdge => nodes.find(aNode => aNode.slug === anEdge.source)).filter(element => element !== undefined)\n    const backLinks = [...new Set(internalLinks)]\n    const graphData = getLocalGraphData(params.id)\n    return {\n        props: {\n            note,\n            tree: tree,\n            flattenNodes: flattenNodes,\n            backLinks: backLinks.filter(link => link.slug !== params.id),\n            graphData: graphData\n        },\n    };\n}\n"],"names":["Head","Layout","getAllSlugs","getSinglePost","convertObject","getDirectoryData","constructGraphData","getLocalGraphData","FolderTree","getFlattenArray","MDContent","dynamic","DynamicGraph","loading","p","ssr","Home","note","backLinks","fileNames","tree","flattenNodes","graphData","title","meta","name","content","div","className","nav","data","handleOpenNewContent","graph","getStaticPaths","allPostsData","paths","map","params","id","fallback","nodes","edges","getStaticProps","listOfEdges","filter","anEdge","target","internalLinks","find","aNode","slug","source","element","undefined","Set","props","link"],"mappings":";AAAA,MAAM,CAACA,IAAI,MAAM,CAAW;AAC5B,MAAM,CAACC,MAAM,MAAM,CAAyB;AAC5C,MAAM,GACFC,WAAW,EACXC,aAAa,EACbC,aAAa,EACbC,gBAAgB,EAChBC,kBAAkB,EAAEC,iBAAiB,QAClC,CAAiB;AACxB,MAAM,CAACC,UAAU,MAAM,CAA6B;AACpD,MAAM,GAAEC,eAAe,QAAO,CAAiB;AAC/C,MAAM,CAACC,SAAS,MAAM,CAA4B;AAClD,MAAM,CAACC,OAAO,MAAM,CAAc;AAElC,KAAK,CAACC,YAAY,GAAGD,OAAO;;;;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AAı

ah@€
ÍğÿÿA¥©

cAÓÅAÄÅ

cY` ÎğÿÿÎğÿÿ

`:hóÿÿhóÿÿ

`—../../components/Layoutÿ

`-�../../lib/utilsÿ

@…›../../components/FolderTreeÿ

`5üü

`2š../../components/MDContentÿ

`3ËğÿÿËğÿÿ

`#
ÎğÿÿÏğÿÿAãêÈğÿÿÈğÿÿÿ

	b	
ĞğÿÿÑğÿÿA‰�½ğÿÿ½ğÿÿÿ

c&	�ğÿÿÈğÿÿ

cY
ÌğÿÿÍğÿÿAAH¹ğÿÿ¹ğÿÿÿ

c 
ÄğÿÿÒğÿÿAIO

êêÿ

c!'
ÆğÿÿÇğÿÿA�ˆ³ğÿÿ³ğÿÿÿ

c!
¾ğÿÿüıÿÿA‰�

KóÿÿKóÿÿÿ

c"&
ÀğÿÿÁğÿÿAÇÎ­ğÿÿ­ğÿÿÿ

c6=
½ğÿÿ¾ğÿÿAY`ªğÿÿªğÿÿÿ

c**!
ºğÿÿ»ğÿÿAĞ×§ğÿÿ§ğÿÿÿ

c-"-)
·ğÿÿ¸ğÿÿA?F¤ğÿÿ¤ğÿÿÿ

c/0/7
¯ğÿÿÊğÿÿAGQ

ÙÙÿ

c/8/B
±ğÿÿ²ğÿÿAAH�ğÿÿ�ğÿÿÿ

c<"<)
©ğÿÿËğÿÿAIR

ÖÖÿ

c<*<3
«ğÿÿ¬ğÿÿA_
f
˜ğÿÿ˜ğÿÿÿ

cF"F)	§§

cZf
ÈóÿÿÇóÿÿA	ÊÊÿ

c[[$
ÈğÿÿÇğÿÿAçùÇÇÿ

cgg-	tğÿÿtğÿÿ

ah@€
ÑğÿÿĞğÿÿA<IÃÃÿ

cii
ÆğÿÿÅğÿÿAgtÀÀÿ

cjj
ÇğÿÿÆğÿÿAu…½½ÿ

cjj/
ÌğÿÿËğÿÿA£²ººÿ

ckk(
ÍğÿÿÌğÿÿA··ÿ

cuu'@ƒ Pçw4]xBªïÿÿ"ğÿÿ
qÿÿÿğÿÿv/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/node_modulesq/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/node_modulesmôÿÿnôÿÿoôÿÿpôÿÿqôÿÿrôÿÿƒ òÿÿ®òÿÿŸòÿÿíğÿÿhôÿÿ@ƒ Pçw4]xB¡ïÿÿğÿÿ@€Æğÿÿ
@€fÿÿÿğÿÿÄğÿÿ@ƒ Pçw4]xB—ïÿÿğÿÿ@€]ÿÿÿğÿÿÄğÿÿÅğÿÿ@ƒ Pçw4]xB�ïÿÿğÿÿWÿÿÿıïÿÿµğÿÿÇğÿÿ@ƒ Pçw4]xBŒïÿÿğÿÿSÿÿÿùïÿÿ±ğÿÿËğÿÿ…ïÿÿğÿÿLÿÿÿ@ğÿÿÎğÿÿ€€ Ïğÿÿ€òÿÿ�òÿÿ‚òÿÿ@ƒ Pçw4]xBƒòÿÿüïÿÿMÿÿÿóïÿÿ„òÿÿ…òÿÿ†òÿÿ‡òÿÿˆòÿÿ‰òÿÿ�~òÿÿŠòÿÿ‹òÿÿŒòÿÿ�òÿÿ�òÿÿËğÿÿÊğÿÿ}òÿÿ	�òÿÿ‰òÿÿ�òÿÿ�òÿÿ‘òÿÿ’òÿÿ“òÿÿ”òÿÿ•òÿÿOÿÿÿ{ïÿÿ–òÿÿ€€ }ïÿÿæïÿÿçïÿÿ—òÿÿ@ `çw4]xB•òÿÿ˜òÿÿğïÿÿ Be3]xB
 pAe3]xBñïÿÿHÿÿÿßtïÿÿ¬òÿÿ€€ vïÿÿßïÿÿàïÿÿ­òÿÿ@ `çw4]xB«òÿÿ®òÿÿéïÿÿ Be3]xB
 pAe3]xBêïÿÿAÿÿÿßmïÿÿ“òÿÿ€€ oïÿÿØïÿÿÙïÿÿ”òÿÿ@ƒ `çw4]xB’òÿÿŠòÿÿâïÿÿ Be3]xB
 pAe3]xBãïÿÿ¤ğÿÿ
9ÿÿÿÎeïÿÿ”òÿÿ€€ gïÿÿĞïÿÿÑïÿÿ•òÿÿ@ƒ `çw4]xB“òÿÿ‚òÿÿÚïÿÿ Be3]xB
 pAe3]xBÛïÿÿ¤ğÿÿ
1ÿÿÿÆ]ïÿÿÏöÿÿ€€ §ğÿÿXòÿÿYòÿÿĞöÿÿ@ƒ `çw4]xB[òÿÿÔïÿÿ%ÿÿÿËïÿÿ

Vòÿÿdòÿÿ£ğÿÿËöÿÿUòÿÿôÿÿ'ÿÿÿSïÿÿáïÿÿÿÿÿ@âïÿÿnòÿÿ€€ Uïÿÿ¾ïÿÿ¿ïÿÿoòÿÿ@ƒ `çw4]xBmòÿÿpòÿÿØÊïÿÿzğÿÿ
 ÿÿÿµLïÿÿÚïÿÿÿÿÿ@Ûïÿÿ„òÿÿ€€ Nïÿÿ·ïÿÿ¸ïÿÿ…òÿÿ@ `çw4]xBƒòÿÿ†òÿÿØÃïÿÿÿÿÿ¸FïÿÿÔïÿÿ
ÿÿÿ@Õïÿÿlòÿÿ€€ Hïÿÿ±ïÿÿ²ïÿÿmòÿÿ@ƒ `çw4]xBkòÿÿcòÿÿÙ½ïÿÿ~ğÿÿ
ÿÿÿ¨?ïÿÿÍïÿÿÿÿÿ@Îïÿÿnòÿÿ€€ Aïÿÿªïÿÿ«ïÿÿoòÿÿ@ƒ `çw4]xBmòÿÿ\òÿÿÚ¶ïÿÿğÿÿ
ÿÿÿ¡ıÿÿıøÿÿ·8«webpack/lib/util/registerExternalSerializerœwebpack-sources/ConcatSource€«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourceÉ__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ Home),
/* harmony export */   "getStaticPaths": () => (/* binding */ getStaticPaths),
/* harmony export */   "getStaticProps": () => (/* binding */ getStaticProps)
/* harmony export */ });
/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "react/jsx-dev-runtime");
/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! next/head */ "next/head");
/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(next_head__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _components_Layout__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../components/Layout */ "./components/Layout.js");
/* harmony import */ var _lib_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../lib/utils */ "./lib/utils.js");
/* harmony import */ var _components_FolderTree__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../components/FolderTree */ "./components/FolderTree.js");
/* harmony import */ var _components_MDContent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../components/MDContent */ "./components/MDContent.js");
/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! next/dynamic */ "./node_modules/next/dynamic.js");
/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(next_dynamic__WEBPACK_IMPORTED_MODULE_6__);
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_lib_utils__WEBPACK_IMPORTED_MODULE_3__]);
_lib_utils__WEBPACK_IMPORTED_MODULE_3__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
«webpack/lib/util/registerExternalSerializer�webpack-sources/ReplaceSource«webpack/lib/util/registerExternalSerializerŸwebpack-sources/SourceMapSource2import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
import Head from "next/head";
import Layout from "../../components/Layout";
import { getAllSlugs, getSinglePost, convertObject, getDirectoryData, constructGraphData, getLocalGraphData } from "../../lib/utils";
import FolderTree from "../../components/FolderTree";
import { getFlattenArray } from "../../lib/utils";
import MDContent from "../../components/MDContent";
import dynamic from 'next/dynamic';
const DynamicGraph = dynamic(null, {
    loadableGenerated: {
        modules: [
            "note/[id].js -> " + "../../components/Graph"
        ]
    },
    loading: ()=>/*#__PURE__*/ _jsxDEV("p", {
            children: "Loading ..."
        }, void 0, false, {
            fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].js",
            lineNumber: 17,
            columnNumber: 22
        }, this)
    ,
    ssr: false
});
export default function Home({ note , backLinks , fileNames , tree , flattenNodes , graphData  }) {
    return(/*#__PURE__*/ _jsxDEV(Layout, {
        children: [
            /*#__PURE__*/ _jsxDEV(Head, {
                children: note.title && /*#__PURE__*/ _jsxDEV("meta", {
                    name: "title",
                    content: note.title
                }, void 0, false, {
                    fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].js",
                    lineNumber: 25,
                    columnNumber: 32
                }, this)
            }, void 0, false, {
                fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].js",
                lineNumber: 24,
                columnNumber: 13
            }, this),
            /*#__PURE__*/ _jsxDEV("div", {
                className: "container",
                children: [
                    /*#__PURE__*/ _jsxDEV("nav", {
                        className: "nav-bar",
                        children: /*#__PURE__*/ _jsxDEV(FolderTree, {
                            tree: tree,
                            flattenNodes: flattenNodes
                        }, void 0, false, {
                            fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].js",
                            lineNumber: 29,
                            columnNumber: 21
                        }, this)
                    }, void 0, false, {
                        fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].js",
                        lineNumber: 28,
                        columnNumber: 17
                    }, this),
                    /*#__PURE__*/ _jsxDEV(MDContent, {
                        content: note.data,
                        fileNames: fileNames,
                        handleOpenNewContent: null,
                        backLinks: backLinks
                    }, void 0, false, {
                        fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].js",
                        lineNumber: 31,
                        columnNumber: 17
                    }, this),
                    /*#__PURE__*/ _jsxDEV(DynamicGraph, {
                        graph: graphData
                    }, void 0, false, {
                        fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].js",
                        lineNumber: 32,
                        columnNumber: 17
                    }, this)
                ]
            }, void 0, true, {
                fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].js",
                lineNumber: 27,
                columnNumber: 13
            }, this)
        ]
    }, void 0, true, {
        fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].js",
        lineNumber: 23,
        columnNumber: 9
    }, this));
};
export async function getStaticPaths() {
    const allPostsData = getAllSlugs();
    const paths = allPostsData.map((p)=>({
            params: {
                id: p
            }
        })
    );
    return {
        paths,
        fallback: false
    };
}
const { nodes , edges  } = constructGraphData();
export function getStaticProps({ params  }) {
    const note = getSinglePost(params.id);
    const tree = convertObject(getDirectoryData());
    const flattenNodes = getFlattenArray(tree);
    const listOfEdges = edges.filter((anEdge)=>anEdge.target === params.id
    );
    const internalLinks = listOfEdges.map((anEdge)=>nodes.find((aNode)=>aNode.slug === anEdge.source
        )
    ).filter((element)=>element !== undefined
    );
    const backLinks = [
        ...new Set(internalLinks)
    ];
    const graphData = getLocalGraphData(params.id);
    return {
        props: {
            note,
            tree: tree,
            flattenNodes: flattenNodes,
            backLinks: backLinks.filter((link)=>link.slug !== params.id
            ),
            graphData: graphData
        }
    };
}
‚webpack://./node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[2].oneOf[2].use!./pages/note/[id].jsS{"version":3,"sources":["webpack://./pages/note/[id].js"],"sourcesContent":["import Head from \"next/head\";\nimport Layout from \"../../components/Layout\";\nimport {\n    getAllSlugs,\n    getSinglePost,\n    convertObject,\n    getDirectoryData,\n    constructGraphData, getLocalGraphData\n} from \"../../lib/utils\";\nimport FolderTree from \"../../components/FolderTree\";\nimport {getFlattenArray} from \"../../lib/utils\";\nimport MDContent from \"../../components/MDContent\";\nimport dynamic from 'next/dynamic'\n\nconst DynamicGraph = dynamic(\n    () => import('../../components/Graph'),\n    { loading: () => <p>Loading ...</p>, ssr: false }\n)\n\nexport default function Home({note, backLinks, fileNames, tree, flattenNodes, graphData}) {\n\n    return (\n        <Layout>\n            <Head>\n                {note.title && <meta name=\"title\" content={note.title}/>}\n            </Head>\n            <div className='container'>\n                <nav className=\"nav-bar\">\n                    <FolderTree tree={tree} flattenNodes={flattenNodes}/>\n                </nav>\n                <MDContent content={note.data} fileNames={fileNames} handleOpenNewContent={null} backLinks={backLinks}/>\n                <DynamicGraph graph={graphData}/>\n            </div>\n\n        </Layout>\n    );\n}\n\nexport async function getStaticPaths() {\n    const allPostsData = getAllSlugs();\n    const paths = allPostsData.map(p => ({params: {id: p}}))\n\n    return {\n        paths,\n        fallback: false\n    };\n}\n\nconst {nodes, edges} = constructGraphData()\n\nexport function getStaticProps({params}) {\n    const note = getSinglePost(params.id);\n    const tree = convertObject(getDirectoryData());\n    const flattenNodes = getFlattenArray(tree)\n\n    const listOfEdges =   edges.filter(anEdge => anEdge.target === params.id)\n    const internalLinks = listOfEdges.map(anEdge => nodes.find(aNode => aNode.slug === anEdge.source)).filter(element => element !== undefined)\n    const backLinks = [...new Set(internalLinks)]\n    const graphData = getLocalGraphData(params.id)\n    return {\n        props: {\n            note,\n            tree: tree,\n            flattenNodes: flattenNodes,\n            backLinks: backLinks.filter(link => link.slug !== params.id),\n            graphData: graphData\n        },\n    };\n}\n"],"names":["Head","Layout","getAllSlugs","getSinglePost","convertObject","getDirectoryData","constructGraphData","getLocalGraphData","FolderTree","getFlattenArray","MDContent","dynamic","DynamicGraph","loading","p","ssr","Home","note","backLinks","fileNames","tree","flattenNodes","graphData","title","meta","name","content","div","className","nav","data","handleOpenNewContent","graph","getStaticPaths","allPostsData","paths","map","params","id","fallback","nodes","edges","getStaticProps","listOfEdges","filter","anEdge","target","internalLinks","find","aNode","slug","source","element","undefined","Set","props","link"],"mappings":";AAAA,MAAM,CAACA,IAAI,MAAM,CAAW;AAC5B,MAAM,CAACC,MAAM,MAAM,CAAyB;AAC5C,MAAM,GACFC,WAAW,EACXC,aAAa,EACbC,aAAa,EACbC,gBAAgB,EAChBC,kBAAkB,EAAEC,iBAAiB,QAClC,CAAiB;AACxB,MAAM,CAACC,UAAU,MAAM,CAA6B;AACpD,MAAM,GAAEC,eAAe,QAAO,CAAiB;AAC/C,MAAM,CAACC,SAAS,MAAM,CAA4B;AAClD,MAAM,CAACC,OAAO,MAAM,CAAc;AAElC,KAAK,CAACC,YAAY,GAAGD,OAAO;;;;;;IAEtBE,OAAO,4BAASC,CAAC;sBAAC,CAAW;;;;;;;IAAMC,GAAG,EAAE,KAAK;;AAGnD,MAAM,SAAS,QAAQ,CAACC,IAAI,CAAC,CAACC,CAAAA,IAAI,GAAEC,SAAS,GAAEC,SAAS,GAAEC,IAAI,GAAEC,YAAY,GAAEC,SAAS,EAAA,CAAC,EAAE,CAAC;IAEvF,MAAM,uBACDrB,MAAM;;kCACFD,IAAI;0BACAiB,IAAI,CAACM,KAAK,0BAAKC,CAAI;oBAACC,IAAI,EAAC,CAAO;oBAACC,OAAO,EAAET,IAAI,CAACM,KAAK;;;;;;;;;;;kCAExDI,CAAG;gBAACC,SAAS,EAAC,CAAW;;0CACrBC,CAAG;wBAACD,SAAS,EAAC,CAAS;wDACnBpB,UAAU;4BAACY,IAAI,EAAEA,IAAI;4BAAEC,YAAY,EAAEA,YAAY;;;;;;;;;;;0CA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,CAACoC,GAAG,CAACP,aAAa;IAAC,CAAC;IAC7C,KAAK,CAACzB,SAAS,GAAGf,iBAAiB,CAAC8B,MAAM,CAACC,EAAE;IAC7C,MAAM,CAAC,CAAC;QACJiB,KAAK,EAAE,CAAC;YACJtC,IAAI;YACJG,IAAI,EAAEA,IAAI;YACVC,YAAY,EAAEA,YAAY;YAC1BH,SAAS,EAAEA,SAAS,CAAC0B,MAAM,EAACY,IAAI,GAAIA,IAAI,CAACN,IAAI,KAAKb,MAAM,CAACC,EAAE;;YAC3DhB,SAAS,EAAEA,SAAS;QACxB,CAAC;IACL,CAAC;AACL,CAAC","file":"x"}e!9;WY_…‡
ACtv¨ªÌãé‰�¥¨ÄÒAGIN�‡‰ŒÇÍY_Ğ\Ö?EGPAGIQ_
e
ÇÍ	çøı<Hgsu„£±€€€€€€€€³next_dynamic__WEBPACK_IMPORTED_MODULE_6___default()½(0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)‰undefined€şº_components_Layout__WEBPACK_IMPORTED_MODULE_2__["default"]ı²(next_head__WEBPACK_IMPORTED_MODULE_1___default())üüüü¾_components_FolderTree__WEBPACK_IMPORTED_MODULE_4__["default"]û½_components_MDContent__WEBPACK_IMPORTED_MODULE_5__["default"]ú€·(0,_lib_utils__WEBPACK_IMPORTED_MODULE_3__.getAllSlugs)¾(0,_lib_utils__WEBPACK_IMPORTED_MODULE_3__.constructGraphData)€¹(0,_lib_utils__WEBPACK_IMPORTED_MODULE_3__.getSinglePost)¹(0,_lib_utils__WEBPACK_IMPORTED_MODULE_3__.convertObject)¼(0,_lib_utils__WEBPACK_IMPORTED_MODULE_3__.getDirectoryData)»(0,_lib_utils__WEBPACK_IMPORTED_MODULE_3__.getFlattenArray)½(0,_lib_utils__WEBPACK_IMPORTED_MODULE_3__.getLocalGraphData)L
__webpack_async_result__();
} catch(e) { __webpack_async_result__(e); } }); ıÿÿy __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ Home),
/* harmony export */   "getStaticPaths": () => (/* binding */ getStaticPaths),
/* harmony export */   "getStaticProps": () => (/* binding */ getStaticProps)
/* harmony export */ });
/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "react/jsx-dev-runtime");
/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! next/head */ "next/head");
/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(next_head__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _components_Layout__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../components/Layout */ "./components/Layout.js");
/* harmony import */ var _lib_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../lib/utils */ "./lib/utils.js");
/* harmony import */ var _components_FolderTree__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../components/FolderTree */ "./components/FolderTree.js");
/* harmony import */ var _components_MDContent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../components/MDContent */ "./components/MDContent.js");
/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! next/dynamic */ "./node_modules/next/dynamic.js");
/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(next_dynamic__WEBPACK_IMPORTED_MODULE_6__);
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_lib_utils__WEBPACK_IMPORTED_MODULE_3__]);
_lib_utils__WEBPACK_IMPORTED_MODULE_3__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];








const DynamicGraph = next_dynamic__WEBPACK_IMPORTED_MODULE_6___default()(null, {
    loadableGenerated: {
        modules: [
            "note/[id].js -> " + "../../components/Graph"
        ]
    },
    loading: ()=>/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)("p", {
            children: "Loading ..."
        }, void 0, false, {
            fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].js",
            lineNumber: 17,
            columnNumber: 22
        }, undefined)
    ,
    ssr: false
});
function Home({ note , backLinks , fileNames , tree , flattenNodes , graphData  }) {
    return(/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_Layout__WEBPACK_IMPORTED_MODULE_2__["default"], {
        children: [
            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)((next_head__WEBPACK_IMPORTED_MODULE_1___default()), {
                children: note.title && /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)("meta", {
                    name: "title",
                    content: note.title
                }, void 0, false, {
                    fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].js",
                    lineNumber: 25,
                    columnNumber: 32
                }, this)
            }, void 0, false, {
                fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].js",
                lineNumber: 24,
                columnNumber: 13
            }, this),
            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)("div", {
                className: "container",
                children: [
                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)("nav", {
                        className: "nav-bar",
                        children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_FolderTree__WEBPACK_IMPORTED_MODULE_4__["default"], {
                            tree: tree,
                            flattenNodes: flattenNodes
                        }, void 0, false, {
                            fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].js",
                            lineNumber: 29,
                            columnNumber: 21
                        }, this)
                    }, void 0, false, {
                        fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].js",
                        lineNumber: 28,
                        columnNumber: 17
                    }, this),
                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_MDContent__WEBPACK_IMPORTED_MODULE_5__["default"], {
                        content: note.data,
                        fileNames: fileNames,
                        handleOpenNewContent: null,
                        backLinks: backLinks
                    }, void 0, false, {
                        fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].js",
                        lineNumber: 31,
                        columnNumber: 17
                    }, this),
                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(DynamicGraph, {
                        graph: graphData
                    }, void 0, false, {
                        fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].js",
                        lineNumber: 32,
                        columnNumber: 17
                    }, this)
                ]
            }, void 0, true, {
                fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].js",
                lineNumber: 27,
                columnNumber: 13
            }, this)
        ]
    }, void 0, true, {
        fileName: "/Users/wyattwalsh/Documents - Wyattâ€™s MacBook Air/projects/data-science-notes/digital-garden/pages/note/[id].js",
        lineNumber: 23,
        columnNumber: 9
    }, this));
};
async function getStaticPaths() {
    const allPostsData = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_3__.getAllSlugs)();
    const paths = allPostsData.map((p)=>({
            params: {
                id: p
            }
        })
    );
    return {
        paths,
        fallback: false
    };
}
const { nodes , edges  } = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_3__.constructGraphData)();
function getStaticProps({ params  }) {
    const note = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_3__.getSinglePost)(params.id);
    const tree = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_3__.convertObject)((0,_lib_utils__WEBPACK_IMPORTED_MODULE_3__.getDirectoryData)());
    const flattenNodes = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_3__.getFlattenArray)(tree);
    const listOfEdges = edges.filter((anEdge)=>anEdge.target === params.id
    );
    const internalLinks = listOfEdges.map((anEdge)=>nodes.find((aNode)=>aNode.slug === anEdge.source
        )
    ).filter((element)=>element !== undefined
    );
    const backLinks = [
        ...new Set(internalLinks)
    ];
    const graphData = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_3__.getLocalGraphData)(params.id);
    return {
        props: {
            note,
            tree: tree,
            flattenNodes: flattenNodes,
            backLinks: backLinks.filter((link)=>link.slug !== params.id
            ),
            graphData: graphData
        }
    };
}

__webpack_async_result__();
} catch(e) { __webpack_async_result__(e); } });!ıÿÿ$ıÿÿ(ıÿÿ�xœ;;;;;;;;;;;;;;;;;;;;AAA4B;AACgB;AAOpB;AAC4B;AACL;AACG;AAChB;AAElC,KAAK,CAACY,YAAY,GAAGD,mDAAO;;;;;;IAEtBE,OAAO,kFAASC,CAAC;sBAAC,CAAW;;;;;;;IAAMC,GAAG,EAAE,KAAK;;AAGpC,QAAQ,CAACC,IAAI,CAAC,CAACC,CAAAA,IAAI,GAAEC,SAAS,GAAEC,SAAS,GAAEC,IAAI,GAAEC,YAAY,GAAEC,SAAS,GAAC,EAAE,CAAC;IAEvF,MAAM,6EACDrB,0DAAM;;wFACFD,kDAAI;0BACAiB,IAAI,CAACM,KAAK,gFAAKC,CAAI;oBAACC,IAAI,EAAC,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,MAAM,GAAIL,KAAK,CAACQ,IAAI,EAACC,KAAK,GAAIA,KAAK,CAACC,IAAI,KAAKL,MAAM,CAACM,MAAM;;MAAGP,MAAM,EAACQ,OAAO,GAAIA,OAAO,KAAKC,SAAS;;IAC1I,KAAK,CAACnC,SAAS,GAAG,CAAC;WAAG,GAAG,CAACoC,GAAG,CAACP,aAAa;IAAC,CAAC;IAC7C,KAAK,CAACzB,SAAS,GAAGf,6DAAiB,CAAC8B,MAAM,CAACC,EAAE;IAC7C,MAAM,CAAC,CAAC;QACJiB,KAAK,EAAE,CAAC;YACJtC,IAAI;YACJG,IAAI,EAAEA,IAAI;YACVC,YAAY,EAAEA,YAAY;YAC1BH,SAAS,EAAEA,SAAS,CAAC0B,MAAM,EAACY,IAAI,GAAIA,IAAI,CAACN,IAAI,KAAKb,MAAM,CAACC,EAAE;;YAC3DhB,SAAS,EAAEA,SAAS;QACxB,CAAC;IACL,CAAC;AACL,CAAC�webpack://./pages/note/[id].jsˆimport Head from "next/head";
import Layout from "../../components/Layout";
import {
    getAllSlugs,
    getSinglePost,
    convertObject,
    getDirectoryData,
    constructGraphData, getLocalGraphData
} from "../../lib/utils";
import FolderTree from "../../components/FolderTree";
import {getFlattenArray} from "../../lib/utils";
import MDContent from "../../components/MDContent";
import dynamic from 'next/dynamic'

const DynamicGraph = dynamic(
    () => import('../../components/Graph'),
    { loading: () => <p>Loading ...</p>, ssr: false }
)

export default function Home({note, backLinks, fileNames, tree, flattenNodes, graphData}) {

    return (
        <Layout>
            <Head>
                {note.title && <meta name="title" content={note.title}/>}
            </Head>
            <div className='container'>
                <nav className="nav-bar">
                    <FolderTree tree={tree} flattenNodes={flattenNodes}/>
                </nav>
                <MDContent content={note.data} fileNames={fileNames} handleOpenNewContent={null} backLinks={backLinks}/>
                <DynamicGraph graph={graphData}/>
            </div>

        </Layout>
    );
}

export async function getStaticPaths() {
    const allPostsData = getAllSlugs();
    const paths = allPostsData.map(p => ({params: {id: p}}))

    return {
        paths,
        fallback: false
    };
}

const {nodes, edges} = constructGraphData()

export function getStaticProps({params}) {
    const note = getSinglePost(params.id);
    const tree = convertObject(getDirectoryData());
    const flattenNodes = getFlattenArray(tree)

    const listOfEdges =   edges.filter(anEdge => anEdge.target === params.id)
    const internalLinks = listOfEdges.map(anEdge => nodes.find(aNode => aNode.slug === anEdge.source)).filter(element => element !== undefined)
    const backLinks = [...new Set(internalLinks)]
    const graphData = getLocalGraphData(params.id)
    return {
        props: {
            note,
            tree: tree,
            flattenNodes: flattenNodes,
            backLinks: backLinks.filter(link => link.slug !== params.id),
            graphData: graphData
        },
    };
}
`9Sıÿÿ#ğÿÿ:óÿÿJğÿÿBğÿÿFğÿÿ=ğÿÿRğÿÿ0ğÿÿNğÿÿ7ğÿÿğÿÿèïÿÿ)ıÿÿ�p*ıÿÿéïÿÿ„note,ıÿÿ‰fileNames-õÿÿ*ıÿÿ)ıÿÿ±ıÿÿ„meta3ïÿÿ-õÿÿ+ıÿÿ,ıÿÿ-ıÿÿéøÿÿ.ıÿÿ/ıÿÿÿÿÿŒallPostsData…pathsıÿÿ†paramsgıÿÿˆfallbackãïÿÿäïÿÿåïÿÿ-ıÿÿ.ıÿÿ/ıÿÿ0ıÿÿ1ıÿÿ2ıÿÿ3ıÿÿ4ıÿÿšúÿÿ5ıÿÿúïÿÿ6ıÿÿ7ıÿÿúÿÿ8ıÿÿ9ıÿÿ:ıÿÿÙïÿÿïÿÿ;ıÿÿ<ıÿÿ