markshelf 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/build-manifest.json +3 -3
  3. package/.next/standalone/.next/prerender-manifest.json +3 -3
  4. package/.next/standalone/.next/required-server-files.json +20 -20
  5. package/.next/standalone/.next/server/app/_global-error.html +1 -1
  6. package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
  7. package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  8. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  9. package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  10. package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  11. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  12. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  13. package/.next/standalone/.next/server/app/_not-found.html +1 -1
  14. package/.next/standalone/.next/server/app/_not-found.rsc +2 -2
  15. package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  16. package/.next/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  17. package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
  18. package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  19. package/.next/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  20. package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  21. package/.next/standalone/.next/server/app/api/asset/route.js.nft.json +1 -1
  22. package/.next/standalone/.next/server/app/api/diff/route.js.nft.json +1 -1
  23. package/.next/standalone/.next/server/app/api/file/route.js.nft.json +1 -1
  24. package/.next/standalone/.next/server/app/api/graph/route.js.nft.json +1 -1
  25. package/.next/standalone/.next/server/app/api/history/route.js.nft.json +1 -1
  26. package/.next/standalone/.next/server/app/api/search/route.js.nft.json +1 -1
  27. package/.next/standalone/.next/server/app/api/timeline/route.js.nft.json +1 -1
  28. package/.next/standalone/.next/server/app/api/tree/route.js.nft.json +1 -1
  29. package/.next/standalone/.next/server/app/index.html +1 -1
  30. package/.next/standalone/.next/server/app/index.rsc +3 -3
  31. package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  32. package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +3 -3
  33. package/.next/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
  34. package/.next/standalone/.next/server/app/index.segments/_index.segment.rsc +2 -2
  35. package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  36. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  37. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__05ar4zx._.js +1 -1
  38. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__09qrkq5._.js +1 -1
  39. package/.next/standalone/.next/server/middleware-build-manifest.js +3 -3
  40. package/.next/standalone/.next/server/pages/404.html +1 -1
  41. package/.next/standalone/.next/server/pages/500.html +1 -1
  42. package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  43. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  44. package/.next/standalone/.next/static/chunks/0.9a.v2u8pdez.css +1 -0
  45. package/.next/{static/chunks/0.z3b.-~oogkw.js → standalone/.next/static/chunks/10.v6fb-ptj.a.js} +1 -1
  46. package/.next/standalone/RELEASING.md +56 -0
  47. package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/README.md +46 -0
  48. package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/glib-2.0/include/glibconfig.h +221 -0
  49. package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/index.js +1 -0
  50. package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/libvips-cpp.so.8.17.3 +0 -0
  51. package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/package.json +42 -0
  52. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/README.md +46 -0
  53. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/glib-2.0/include/glibconfig.h +221 -0
  54. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js +1 -0
  55. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.17.3 +0 -0
  56. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/package.json +42 -0
  57. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +30 -0
  58. package/.next/standalone/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node +0 -0
  59. package/.next/standalone/node_modules/@img/{sharp-win32-x64 → sharp-linux-x64}/package.json +46 -39
  60. package/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node +0 -0
  61. package/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/package.json +46 -0
  62. package/.next/standalone/package-lock.json +2 -2
  63. package/.next/standalone/package.json +1 -1
  64. package/.next/standalone/scripts/docker-run.mjs +12 -2
  65. package/.next/standalone/server.js +1 -1
  66. package/.next/standalone/src/components/LinkGraph.tsx +11 -0
  67. package/.next/static/chunks/0.9a.v2u8pdez.css +1 -0
  68. package/.next/{standalone/.next/static/chunks/0.z3b.-~oogkw.js → static/chunks/10.v6fb-ptj.a.js} +1 -1
  69. package/package.json +1 -1
  70. package/.next/standalone/.next/static/chunks/13tjphiswda64.css +0 -1
  71. package/.next/standalone/node_modules/@img/sharp-win32-x64/lib/sharp-win32-x64.node +0 -0
  72. package/.next/standalone/tsconfig.tsbuildinfo +0 -1
  73. package/.next/static/chunks/13tjphiswda64.css +0 -1
  74. /package/.next/standalone/.next/static/{JZXBFyFBzt6ffFpnmO9cB → 03Y0Qmra9pQhnypCdj6Wp}/_buildManifest.js +0 -0
  75. /package/.next/standalone/.next/static/{JZXBFyFBzt6ffFpnmO9cB → 03Y0Qmra9pQhnypCdj6Wp}/_clientMiddlewareManifest.js +0 -0
  76. /package/.next/standalone/.next/static/{JZXBFyFBzt6ffFpnmO9cB → 03Y0Qmra9pQhnypCdj6Wp}/_ssgManifest.js +0 -0
  77. /package/.next/standalone/node_modules/@img/{sharp-win32-x64 → sharp-libvips-linux-x64}/versions.json +0 -0
  78. /package/.next/static/{JZXBFyFBzt6ffFpnmO9cB → 03Y0Qmra9pQhnypCdj6Wp}/_buildManifest.js +0 -0
  79. /package/.next/static/{JZXBFyFBzt6ffFpnmO9cB → 03Y0Qmra9pQhnypCdj6Wp}/_clientMiddlewareManifest.js +0 -0
  80. /package/.next/static/{JZXBFyFBzt6ffFpnmO9cB → 03Y0Qmra9pQhnypCdj6Wp}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-content:""}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:#fef2f2;--color-red-200:#ffcaca;--color-red-700:#bf000f;--color-yellow-200:#fff085;--color-yellow-900:#733e0a;--color-blue-50:#eff6ff;--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--font-weight-medium:500;--font-weight-semibold:600;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-snug:1.375;--leading-normal:1.5;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}@supports (color:lab(0% 0 0)){:root,:host{--color-red-50:lab(96.5005% 4.18508 1.52328);--color-red-200:lab(86.017% 19.8815 7.75869);--color-red-700:lab(40.4273% 67.2623 53.7441);--color-yellow-200:lab(94.3433% -5.00429 52.9663);--color-yellow-900:lab(32.3865% 21.1273 38.5959);--color-blue-50:lab(96.492% -1.14644 -5.11479)}}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.collapse{visibility:collapse}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.top-0{top:calc(var(--spacing) * 0)}.top-1\/2{top:50%}.top-full{top:100%}.right-0{right:calc(var(--spacing) * 0)}.right-2{right:calc(var(--spacing) * 2)}.right-4{right:calc(var(--spacing) * 4)}.left-2\.5{left:calc(var(--spacing) * 2.5)}.left-4{left:calc(var(--spacing) * 4)}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-\[100\]{z-index:100}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.my-2{margin-block:calc(var(--spacing) * 2)}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows), 0 3px 0 var(--tw-prose-kbd-shadows);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{--tw-prose-body:#364153;--tw-prose-headings:#101828;--tw-prose-lead:#4a5565;--tw-prose-links:#101828;--tw-prose-bold:#101828;--tw-prose-counters:#6a7282;--tw-prose-bullets:#d1d5dc;--tw-prose-hr:#e5e7eb;--tw-prose-quotes:#101828;--tw-prose-quote-borders:#e5e7eb;--tw-prose-captions:#6a7282;--tw-prose-kbd:#101828;--tw-prose-kbd-shadows:#1018281a;--tw-prose-code:#101828;--tw-prose-pre-code:#e5e7eb;--tw-prose-pre-bg:#1e2939;--tw-prose-th-borders:#d1d5dc;--tw-prose-td-borders:#e5e7eb;--tw-prose-invert-body:#d1d5dc;--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:#99a1af;--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:#99a1af;--tw-prose-invert-bullets:#4a5565;--tw-prose-invert-hr:#364153;--tw-prose-invert-quotes:#f3f4f6;--tw-prose-invert-quote-borders:#364153;--tw-prose-invert-captions:#99a1af;--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:#d1d5dc;--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:#4a5565;--tw-prose-invert-td-borders:#364153;font-size:1rem;line-height:1.75}@supports (color:lab(0% 0 0)){.prose{--tw-prose-body:lab(27.1134% -.956401 -12.3224);--tw-prose-headings:lab(8.11897% .811279 -12.254);--tw-prose-lead:lab(35.6337% -1.58697 -10.8425);--tw-prose-links:lab(8.11897% .811279 -12.254);--tw-prose-bold:lab(8.11897% .811279 -12.254);--tw-prose-counters:lab(47.7841% -.393182 -10.0268);--tw-prose-bullets:lab(85.1236% -.612259 -3.7138);--tw-prose-hr:lab(91.6229% -.159115 -2.26791);--tw-prose-quotes:lab(8.11897% .811279 -12.254);--tw-prose-quote-borders:lab(91.6229% -.159115 -2.26791);--tw-prose-captions:lab(47.7841% -.393182 -10.0268);--tw-prose-kbd:lab(8.11897% .811279 -12.254);--tw-prose-kbd-shadows:lab(8.11897% .811279 -12.254/.1);--tw-prose-code:lab(8.11897% .811279 -12.254);--tw-prose-pre-code:lab(91.6229% -.159115 -2.26791);--tw-prose-pre-bg:lab(16.1051% -1.18239 -11.7533);--tw-prose-th-borders:lab(85.1236% -.612259 -3.7138);--tw-prose-td-borders:lab(91.6229% -.159115 -2.26791);--tw-prose-invert-body:lab(85.1236% -.612259 -3.7138);--tw-prose-invert-lead:lab(65.9269% -.832707 -8.17473);--tw-prose-invert-counters:lab(65.9269% -.832707 -8.17473);--tw-prose-invert-bullets:lab(35.6337% -1.58697 -10.8425);--tw-prose-invert-hr:lab(27.1134% -.956401 -12.3224);--tw-prose-invert-quotes:lab(96.1596% -.0823438 -1.13575);--tw-prose-invert-quote-borders:lab(27.1134% -.956401 -12.3224);--tw-prose-invert-captions:lab(65.9269% -.832707 -8.17473);--tw-prose-invert-pre-code:lab(85.1236% -.612259 -3.7138);--tw-prose-invert-th-borders:lab(35.6337% -1.58697 -10.8425);--tw-prose-invert-td-borders:lab(27.1134% -.956401 -12.3224)}}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.71429}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.888889em;margin-bottom:.888889em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em;margin-bottom:1.33333em;padding-inline-start:1.11111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:.8em;font-size:2.14286em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:.8em;font-size:1.42857em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.55556em;margin-bottom:.444444em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.42857em;margin-bottom:.571429em;line-height:1.42857}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.142857em;padding-inline-end:.357143em;padding-bottom:.142857em;border-radius:.3125rem;padding-inline-start:.357143em;font-size:.857143em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;border-radius:.25rem;margin-top:1.66667em;margin-bottom:1.66667em;padding-inline-start:1em;font-size:.857143em;line-height:1.66667}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em;padding-inline-start:1.57143em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;margin-bottom:.285714em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.428571em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;padding-inline-start:1.57143em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.85714em;margin-bottom:2.85714em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.666667em;font-size:.857143em;line-height:1.33333}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mr-1{margin-right:calc(var(--spacing) * 1)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.ml-0\.5{margin-left:calc(var(--spacing) * .5)}.ml-6{margin-left:calc(var(--spacing) * 6)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.h-7{height:calc(var(--spacing) * 7)}.h-11{height:calc(var(--spacing) * 11)}.h-\[85vh\]{height:85vh}.h-full{height:100%}.h-screen{height:100vh}.max-h-72{max-height:calc(var(--spacing) * 72)}.max-h-80{max-height:calc(var(--spacing) * 80)}.max-h-\[min\(420px\,30vh\)\]{max-height:min(420px,30vh)}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-full{min-height:100%}.w-1{width:calc(var(--spacing) * 1)}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-4{width:calc(var(--spacing) * 4)}.w-56{width:calc(var(--spacing) * 56)}.w-\[90vw\]{width:90vw}.w-\[min\(480px\,30vw\)\]{width:min(480px,30vw)}.w-full{width:100%}.max-w-4xl{max-width:var(--container-4xl)}.max-w-none{max-width:none}.min-w-0{min-width:calc(var(--spacing) * 0)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-col-resize{cursor:col-resize}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-px>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(1px * var(--tw-space-y-reverse));margin-block-end:calc(1px * calc(1 - var(--tw-space-y-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-\[var\(--border-default\)\]>:not(:last-child)){border-color:var(--border-default)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-\[var\(--border-default\)\]{border-color:var(--border-default)}.border-\[var\(--brand-primary\)\]{border-color:var(--brand-primary)}.border-red-200{border-color:var(--color-red-200)}.bg-\[var\(--bg-base\)\]{background-color:var(--bg-base)}.bg-\[var\(--bg-muted\)\]{background-color:var(--bg-muted)}.bg-\[var\(--bg-surface\)\]{background-color:var(--bg-surface)}.bg-\[var\(--border-default\)\]{background-color:var(--border-default)}.bg-\[var\(--brand-primary\)\],.bg-\[var\(--brand-primary\)\]\/10{background-color:var(--brand-primary)}@supports (color:color-mix(in lab, red, red)){.bg-\[var\(--brand-primary\)\]\/10{background-color:color-mix(in oklab, var(--brand-primary) 10%, transparent)}}.bg-black\/40{background-color:#0006}@supports (color:color-mix(in lab, red, red)){.bg-black\/40{background-color:color-mix(in oklab, var(--color-black) 40%, transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-red-50{background-color:var(--color-red-50)}.bg-yellow-200{background-color:var(--color-yellow-200)}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:calc(var(--spacing) * 1)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.px-0\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pl-8{padding-left:calc(var(--spacing) * 8)}.text-center{text-align:center}.text-left{text-align:left}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[14px\]{font-size:14px}.text-\[15px\]{font-size:15px}.leading-\[1\.7\]{--tw-leading:1.7;line-height:1.7}.leading-none{--tw-leading:1;line-height:1}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-\[var\(--font-mono\)\]{--tw-font-weight:var(--font-mono);font-weight:var(--font-mono)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-wrap{text-wrap:wrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-\[var\(--brand-primary\)\]{color:var(--brand-primary)}.text-\[var\(--folder-text\)\]{color:var(--folder-text)}.text-\[var\(--text-muted\)\]{color:var(--text-muted)}.text-\[var\(--text-primary\)\]{color:var(--text-primary)}.text-\[var\(--text-secondary\)\]{color:var(--text-secondary)}.text-red-700{color:var(--color-red-700)}.text-white{color:var(--color-white)}.text-yellow-900{color:var(--color-yellow-900)}.uppercase{text-transform:uppercase}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.placeholder\:text-\[var\(--text-muted\)\]::placeholder{color:var(--text-muted)}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.hover\:bg-\[var\(--bg-hover\)\]:hover{background-color:var(--bg-hover)}.hover\:bg-\[var\(--bg-muted\)\]:hover{background-color:var(--bg-muted)}.hover\:bg-\[var\(--brand-primary\)\]:hover{background-color:var(--brand-primary)}.hover\:bg-blue-50:hover{background-color:var(--color-blue-50)}.hover\:text-\[var\(--brand-primary\)\]:hover{color:var(--brand-primary)}.hover\:text-\[var\(--text-primary\)\]:hover{color:var(--text-primary)}.hover\:text-\[var\(--text-secondary\)\]:hover{color:var(--text-secondary)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:border-\[var\(--brand-primary\)\]:focus{border-color:var(--brand-primary)}.focus\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\:ring-\[var\(--brand-primary\)\]:focus{--tw-ring-color:var(--brand-primary)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.prose-headings\:font-semibold :where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.prose-headings\:tracking-tight :where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.prose-headings\:text-\[var\(--text-primary\)\] :where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--text-primary)}.prose-h1\:mb-4 :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:calc(var(--spacing) * 4)}.prose-h1\:text-lg :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.prose-h1\:leading-snug :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.prose-h2\:mt-8 :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:calc(var(--spacing) * 8)}.prose-h2\:mb-3 :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:calc(var(--spacing) * 3)}.prose-h2\:border-b :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.prose-h2\:border-\[var\(--border-default\)\] :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--border-default)}.prose-h2\:pb-2 :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){padding-bottom:calc(var(--spacing) * 2)}.prose-h2\:text-\[15px\] :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:15px}.prose-h2\:leading-snug :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.prose-h3\:mt-6 :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:calc(var(--spacing) * 6)}.prose-h3\:mb-2 :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:calc(var(--spacing) * 2)}.prose-h3\:text-\[13px\] :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:13px}.prose-h3\:leading-snug :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.prose-p\:text-\[13px\] :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:13px}.prose-p\:leading-\[1\.75\] :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-leading:1.75;line-height:1.75}.prose-p\:text-\[var\(--text-secondary\)\] :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--text-secondary)}.prose-a\:font-medium :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.prose-a\:text-\[var\(--brand-primary\)\] :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--brand-primary)}.prose-a\:no-underline :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){text-decoration-line:none}@media (hover:hover){.hover\:prose-a\:underline:hover :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){text-decoration-line:underline}}.prose-blockquote\:border-l-\[var\(--brand-primary\)\] :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){border-left-color:var(--brand-primary)}.prose-blockquote\:text-\[var\(--text-muted\)\] :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--text-muted)}.prose-blockquote\:not-italic :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-style:normal}.prose-strong\:font-semibold :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.prose-strong\:text-\[var\(--text-primary\)\] :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--text-primary)}.prose-code\:rounded :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){border-radius:.25rem}.prose-code\:bg-\[var\(--bg-muted\)\] :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:var(--bg-muted)}.prose-code\:px-1 :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline:calc(var(--spacing) * 1)}.prose-code\:py-0\.5 :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){padding-block:calc(var(--spacing) * .5)}.prose-code\:text-xs :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.prose-code\:text-\[var\(--text-primary\)\] :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--text-primary)}.prose-code\:before\:content-none :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose-code\:after\:content-none :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:var(--tw-content);--tw-content:none;content:none}.prose-pre\:bg-\[var\(--bg-muted\)\] :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:var(--bg-muted)}.prose-pre\:text-xs :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.prose-pre\:text-\[var\(--text-primary\)\] :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--text-primary)}.prose-li\:text-\[13px\] :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:13px}.prose-li\:leading-\[1\.75\] :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-leading:1.75;line-height:1.75}.prose-li\:text-\[var\(--text-secondary\)\] :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--text-secondary)}.prose-table\:text-\[12px\] :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:12px}.prose-th\:bg-\[var\(--bg-muted\)\] :where(th):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:var(--bg-muted)}.prose-th\:px-3 :where(th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline:calc(var(--spacing) * 3)}.prose-th\:py-1\.5 :where(th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-block:calc(var(--spacing) * 1.5)}.prose-th\:text-left :where(th):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:left}.prose-th\:font-semibold :where(th):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.prose-th\:text-\[var\(--text-primary\)\] :where(th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--text-primary)}.prose-td\:border-\[var\(--border-default\)\] :where(td):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--border-default)}.prose-td\:px-3 :where(td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline:calc(var(--spacing) * 3)}.prose-td\:py-1\.5 :where(td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-block:calc(var(--spacing) * 1.5)}.prose-td\:text-\[var\(--text-secondary\)\] :where(td):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--text-secondary)}.prose-img\:rounded-lg :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){border-radius:var(--radius-lg)}.prose-hr\:border-\[var\(--border-default\)\] :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--border-default)}}:root{--font-sans:"Inter", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;--font-mono:"JetBrains Mono", "Fira Code", "Source Code Pro", "Cascadia Code", "Consolas", monospace;--bg-base:#f7f8fa;--bg-surface:#fff;--bg-muted:#f0f2f5;--bg-hover:#ebedf0;--text-primary:#1a1d23;--text-secondary:#4a5060;--text-muted:#8b92a0;--text-inverse:#fff;--border-default:#e0e3e8;--border-hover:#c8ccd3;--brand-primary:#2563eb;--brand-primary-hover:#1d4ed8;--folder-bg:#e8f0fe;--folder-border:#3b7ddb;--folder-text:#1a3a5c;--file-bg:#eee8fb;--file-border:#7c6ec7;--file-text:#3a356a;--add-bg:#ecfdf5;--add-color:#16a34a;--del-bg:#fef2f2;--del-color:#dc2626;--code-bg:#f0f2f5;--code-border:#e0e3e8}html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizelegibility;font-size:15px}body{font-family:var(--font-sans);background:var(--bg-base);color:var(--text-primary);letter-spacing:.01em;line-height:1.65}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--border-default);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--border-hover)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}
@@ -8,4 +8,4 @@ ${e.themeCSS}`),void 0!==e.fontFamily&&(n+=`
8
8
  :root { --mermaid-font-family: ${e.fontFamily}}`),void 0!==e.altFontFamily&&(n+=`
9
9
  :root { --mermaid-alt-font-family: ${e.altFontFamily}}`),t instanceof Map){let r=(0,r1.getEffectiveHtmlLabels)(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(e=>{(0,iS.default)(e.styles)||r.forEach(t=>{n+=aN(e.id,t,e.styles)}),(0,iS.default)(e.textStyles)||(n+=aN(e.id,"tspan",(e?.textStyles||[]).map(e=>e.replace("color","fill"))))})}return n},"createCssStyles"),az=(0,r2.__name)((e,t,n,r)=>{var i,l,a;let o=aM(e,n),s=(0,r1.styles_default)(t,o,{...e.themeVariables,theme:e.theme,look:e.look},r);return ib((a=function e(t,n,r,i,l,a,o,s,u){for(var c,d,f,p,h,m,g=0,x=0,y=o,v=0,b=0,k=0,w=1,S=1,C=1,E=0,_="",j=l,A=a,D=i,L=_;S;)switch(k=E,E=ih()){case 40:if(108!=k&&58==it(L,y-1)){-1!=(h=L+=ie(ix(E),"&","&\f"),m=r8(g?s[g-1]:0),h.indexOf("&\f",m))&&(C=-1);break}case 34:case 39:case 91:L+=ix(E);break;case 9:case 10:case 13:case 32:L+=function(e){for(;ic=im();)if(ic<33)ih();else break;return ig(e)>2||ig(ic)>3?"":" "}(k);break;case 92:L+=function(e,t){for(var n;--t&&ih()&&!(ic<48)&&!(ic>102)&&(!(ic>57)||!(ic<65))&&(!(ic>70)||!(ic<97)););return n=iu+(t<6&&32==im()&&32==ih()),ir(id,e,n)}(iu-1,7);continue;case 47:switch(im()){case 42:case 47:il((c=function(e,t){for(;ih();)if(e+ic===57)break;else if(e+ic===84&&47===im())break;return"/*"+ir(id,t,iu-1)+"*"+r7(47===e?e:ih())}(ih(),iu),d=n,f=r,p=u,ip(c,d,f,r3,r7(ic),ir(c,2,-2),0,p)),u),(5==ig(k||1)||5==ig(im()||1))&&ii(L)&&" "!==ir(L,-1,void 0)&&(L+=" ");break;default:L+="/"}break;case 123*w:s[g++]=ii(L)*C;case 125*w:case 59:case 0:switch(E){case 0:case 125:S=0;case 59+x:-1==C&&(L=ie(L,/\f/g,"")),b>0&&(ii(L)-y||0===w&&47===k)&&il(b>32?iv(L+";",i,r,y-1,u):iv(ie(L," ","")+";",i,r,y-2,u),u);break;case 59:L+=";";default:if(il(D=iy(L,n,r,g,x,l,s,_,j=[],A=[],y,a),a),123===E)if(0===x)e(L,n,D,D,j,a,y,s,A);else{switch(v){case 99:if(110===it(L,3))break;case 108:if(97===it(L,2))break;default:x=0;case 100:case 109:case 115:}x?e(t,D,D,i&&il(iy(t,D,D,0,0,l,s,_,l,j=[],y,A),A),l,A,y,s,i?j:A):e(L,D,D,D,[""],A,0,s,A)}}g=x=b=0,w=C=1,_=L="",y=o;break;case 58:y=1+ii(L),b=k;default:if(w<1){if(123==E)--w;else if(125==E&&0==w++&&125==(ic=iu>0?it(id,--iu):0,io--,10===ic&&(io=1,ia--),ic))continue}switch(L+=r7(E),E*w){case 38:C=x>0?1:(L+="\f",-1);break;case 44:s[g++]=(ii(L)-1)*C,C=1;break;case 64:45===im()&&(L+=ix(ih())),v=im(),x=y=ii(_=L+=function(e){for(;!ig(im());)ih();return ir(id,e,iu)}(iu)),E++;break;case 45:45===k&&2==ii(L)&&(w=0)}}return a}("",null,null,null,[""],(l=i=`${r}{${s}}`,ia=io=1,is=ii(id=l),iu=0,i=[]),0,[0],i),id="",a),ik)},"createUserStyles"),aI=(0,r2.__name)((e="",t,n)=>{let r=e;return n||t||(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=(r=(0,r0.decodeEntities)(r)).replace(/<br>/g,"<br/>")},"cleanUpSvgCode"),aP=(0,r2.__name)((e="",t)=>{let n=t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+"px":"100%",r=aj(`<body style="margin:0">${e}</body>`);return`<iframe style="width:100%;height:${n};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${r}" sandbox="allow-top-navigation-by-user-activation allow-popups">
10
10
  The "iframe" tag is not supported by your browser.
11
- </iframe>`},"putIntoIFrame"),aR=(0,r2.__name)((e,t,n,r,i)=>{let l=e.append("div");l.attr("id",n),r&&l.attr("style",r);let a=l.append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return i&&a.attr("xmlns:xlink",i),a.append("g"),e},"appendDivSvgG");function aF(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,r2.__name)(aF,"sandboxedIframe");var aO=(0,r2.__name)((e,t,n,r)=>{e.getElementById(t)?.remove(),e.getElementById(n)?.remove(),e.getElementById(r)?.remove()},"removeExistingElements"),aB=(0,r2.__name)(async function(e,t,n){let r,i;ah();let l=aL(t);t=l.code;let a=(0,r1.getConfig)();r2.log.debug(a),t.length>(a?.maxTextSize??5e4)&&(t="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let o="#"+e,s="i"+e,u="#"+s,c="d"+e,d="#"+c,f=(0,r2.__name)(()=>{let e=h?u:d,t=(0,r6.select)(e).node();t&&"remove"in t&&t.remove()},"removeTempElements"),p=(0,r6.select)("body"),h="sandbox"===a.securityLevel,m="loose"===a.securityLevel,g=a.fontFamily;if(void 0!==n){if(n&&(n.innerHTML=""),h){let e=aF((0,r6.select)(n),s);(p=(0,r6.select)(e.nodes()[0].contentDocument.body)).node().style.margin=0}else p=(0,r6.select)(n);aR(p,e,c,`font-family: ${g}`,"http://www.w3.org/1999/xlink")}else{if(aO(document,e,c,s),h){let e=aF((0,r6.select)("body"),s);(p=(0,r6.select)(e.nodes()[0].contentDocument.body)).node().style.margin=0}else p=(0,r6.select)("body");aR(p,e,c)}try{r=await ay.fromText(t,{title:l.title})}catch(e){if(a.suppressErrorRendering)throw f(),e;r=await ay.fromText("error"),i=e}let x=p.select(d).node(),y=r.type,v=x.firstChild,b=v.firstChild,k=az(a,y,r.renderer.getClasses?.(t,r),o),w=document.createElement("style");w.innerHTML=k,v.insertBefore(w,b);try{await r.renderer.draw(t,e,"11.14.0",r)}catch(n){throw a.suppressErrorRendering?f():lv.draw(t,e,"11.14.0"),n}a$(y,p.select(`${d} svg`),r.db.getAccTitle?.(),r.db.getAccDescription?.()),p.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let S=p.select(d).node().innerHTML;if(r2.log.debug("config.arrowMarkerAbsolute",a.arrowMarkerAbsolute),S=aI(S,h,(0,r1.evaluate)(a.arrowMarkerAbsolute)),h?S=aP(S,p.select(d+" svg").node()):m||(S=iw.default.sanitize(S,{ADD_TAGS:aA,ADD_ATTR:aD,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),ab(),i)throw i;return f(),{diagramType:y,svg:S,bindFunctions:r.db.bindFunctions}},"render");function aH(e={}){let t=(0,r1.assignWithDepth_default)({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),(0,r1.saveConfigFromInitialize)(t),t?.theme&&t.theme in r1.themes_default?t.themeVariables=r1.themes_default[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=r1.themes_default.default.getThemeVariables(t.themeVariables));let n="object"==typeof t?(0,r1.setSiteConfig)(t):(0,r1.getSiteConfig)();(0,r2.setLogLevel)(n.logLevel),ah()}(0,r2.__name)(aH,"initialize");var aU=(0,r2.__name)((e,t={})=>{let{code:n}=a_(e);return ay.fromText(n,t)},"getDiagramFromText");function a$(e,t,n,r){ag(t,e),ax(t,n,r,t.attr("id"))}(0,r2.__name)(a$,"addA11yInfo");var aq=Object.freeze({render:aB,parse:aT,getDiagramFromText:aU,initialize:aH,getConfig:r1.getConfig,setConfig:r1.setConfig,getSiteConfig:r1.getSiteConfig,updateSiteConfig:r1.updateSiteConfig,reset:(0,r2.__name)(()=>{(0,r1.reset)()},"reset"),globalReset:(0,r2.__name)(()=>{(0,r1.reset)(r1.defaultConfig)},"globalReset"),defaultConfig:r1.defaultConfig});(0,r2.setLogLevel)((0,r1.getConfig)().logLevel),(0,r1.reset)((0,r1.getConfig)());var aV=(0,r2.__name)((e,t,n)=>{r2.log.warn(e),(0,r0.isDetailedError)(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),aW=(0,r2.__name)(async function(e={querySelector:".mermaid"}){try{await aJ(e)}catch(t){if((0,r0.isDetailedError)(t)&&r2.log.error(t.str),a3.parseError&&a3.parseError(t),!e.suppressErrors)throw r2.log.error("Use the suppressErrors option to suppress these errors"),t}},"run"),aJ=(0,r2.__name)(async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:".mermaid"}){let r,i,l=aq.getConfig();if(r2.log.debug(`${!e?"No ":""}Callback function found`),n)r=n;else if(t)r=document.querySelectorAll(t);else throw Error("Nodes and querySelector are both undefined");r2.log.debug(`Found ${r.length} diagrams`),l?.startOnLoad!==void 0&&(r2.log.debug("Start On Load: "+l?.startOnLoad),aq.updateSiteConfig({startOnLoad:l?.startOnLoad}));let a=new r0.utils_default.InitIDGenerator(l.deterministicIds,l.deterministicIDSeed),o=[];for(let t of Array.from(r)){if(r2.log.info("Rendering diagram: "+t.id),t.getAttribute("data-processed"))continue;t.setAttribute("data-processed","true");let n=`mermaid-${a.next()}`;i=t.innerHTML,i=(0,r4.dedent)(r0.utils_default.entityDecode(i)).trim().replace(/<br\s*\/?>/gi,"<br/>");let r=r0.utils_default.detectInit(i);r&&r2.log.debug("Detected early reinit: ",r);try{let{svg:r,bindFunctions:l}=await a4(n,i,t);t.innerHTML=r,e&&await e(n),l&&l(t)}catch(e){aV(e,o,a3.parseError)}}if(o.length>0)throw o[0]},"runThrowsErrors"),aK=(0,r2.__name)(function(e){aq.initialize(e)},"initialize"),aQ=(0,r2.__name)(async function(e,t,n){r2.log.warn("mermaid.init is deprecated. Please use run instead."),e&&aK(e);let r={postRenderCallback:n,querySelector:".mermaid"};"string"==typeof t?r.querySelector=t:t&&(t instanceof HTMLElement?r.nodes=[t]:r.nodes=t),await aW(r)},"init"),aZ=(0,r2.__name)(async(e,{lazyLoad:t=!0}={})=>{ah(),(0,r1.registerLazyLoadedDiagrams)(...e),!1===t&&await am()},"registerExternalDiagrams"),aG=(0,r2.__name)(function(){if(a3.startOnLoad){let{startOnLoad:e}=aq.getConfig();e&&a3.run().catch(e=>r2.log.error("Mermaid failed to initialize",e))}},"contentLoaded");"u">typeof document&&window.addEventListener("load",aG,!1);var aX=(0,r2.__name)(function(e){a3.parseError=e},"setParseErrorHandler"),aY=[],a0=!1,a1=(0,r2.__name)(async()=>{if(!a0){for(a0=!0;aY.length>0;){let e=aY.shift();if(e)try{await e()}catch(e){r2.log.error("Error executing queue",e)}}a0=!1}},"executeQueue"),a2=(0,r2.__name)(async(e,t)=>new Promise((n,r)=>{let i=(0,r2.__name)(()=>new Promise((i,l)=>{aq.parse(e,t).then(e=>{i(e),n(e)},e=>{r2.log.error("Error parsing",e),a3.parseError?.(e),l(e),r(e)})}),"performCall");aY.push(i),a1().catch(r)}),"parse"),a4=(0,r2.__name)((e,t,n)=>new Promise((r,i)=>{let l=(0,r2.__name)(()=>new Promise((l,a)=>{aq.render(e,t,n).then(e=>{l(e),r(e)},e=>{r2.log.error("Error parsing",e),a3.parseError?.(e),a(e),i(e)})}),"performCall");aY.push(l),a1().catch(i)}),"render"),a6=(0,r2.__name)(()=>Object.keys(r1.detectors).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),a3={startOnLoad:!0,mermaidAPI:aq,parse:a2,render:a4,init:aQ,run:aW,registerExternalDiagrams:aZ,registerLayoutLoaders:rX.registerLayoutLoaders,initialize:aK,parseError:void 0,contentLoaded:aG,setParseErrorHandler:aX,detectType:r1.detectType,registerIconPacks:rY.registerIconPacks,getRegisteredDiagramsMetadata:a6};let a5=!1,a9=0;function a8({code:e}){let r=(0,n.useRef)(null),[i,l]=(0,n.useState)(null),[a,o]=(0,n.useState)(null),s=(0,n.useRef)(`mermaid-${++a9}`);return((0,n.useEffect)(()=>{let t=!1;return a5||(a5=!0,a3.initialize({startOnLoad:!1,theme:"default",securityLevel:"loose",fontFamily:"system-ui, sans-serif"})),(async()=>{try{let{svg:n}=await a3.render(s.current,e);t||(l(n),o(null))}catch(n){t||(o(n instanceof Error?n.message:"Mermaid render error"),l(null));let e=document.getElementById("d"+s.current);e?.remove()}})(),()=>{t=!0}},[e]),a)?(0,t.jsxs)("div",{className:"border border-red-200 bg-red-50 rounded p-3 text-xs text-red-700",children:[(0,t.jsx)("div",{className:"font-medium mb-1",children:"Mermaid エラー"}),(0,t.jsx)("pre",{className:"whitespace-pre-wrap",children:e})]}):i?(0,t.jsx)("div",{ref:r,className:"my-2 overflow-x-auto",dangerouslySetInnerHTML:{__html:i}}):(0,t.jsx)("div",{className:"text-xs text-[var(--text-muted)] py-2",children:"図を描画中..."})}var a7=e.i(47167);let oe=a7.default.env.NEXT_PUBLIC_BASE_PATH?.trim(),ot=oe&&"/"!==oe&&""!==oe?oe.replace(/\/$/,""):"";function on(e){return e.startsWith("/")?ot+e:e}function or(e){return e.toLowerCase().replace(/[^\p{L}\p{N}\s-]/gu,"").replace(/\s+/g,"-").replace(/-+/g,"-").trim()}function oi({children:e,onHeadingsExtracted:r,fileRefs:i,currentPath:l,onNavigate:a,onPreviewShow:o,onPreviewHide:s}){let u=(0,n.useMemo)(()=>(function(e){let t=[],n=new Map,r=/^(#{1,4})\s+(.+)$/,i=/^[ \t]*(`{3,}|~{3,})/,l=null;for(let a of e.split("\n")){let e=i.exec(a);if(e){let t=e[1][0];if(null===l){l=t;continue}if(e[1].startsWith(l)){l=null;continue}}if(null!==l)continue;let o=r.exec(a);if(!o)continue;let s=o[1].length,u=o[2].replace(/[#*_`[\]]/g,"").trim(),c=or(u)||"heading",d=n.get(c)??0;n.set(c,d+1);let f=0===d?c:`${c}-${d}`;t.push({id:f,text:u,level:s})}return t})(e),[e]),c=(0,n.useMemo)(()=>{let e=new Map;for(let t of u){let n=e.get(t.text)??[];n.push(t.id),e.set(t.text,n)}return e},[u]),d=(0,n.useMemo)(()=>new Map,[u]);(0,n.useEffect)(()=>{r?.(u)},[u,r]);let f=(0,n.useMemo)(()=>{if(!i||0===i.length)return null;let e=new Map;for(let t of i.filter(e=>e.displayName.length>2&&e.path!==l).sort((e,t)=>t.displayName.length-e.displayName.length))e.set(t.displayName,t.path);return e},[i,l]),p=(0,n.useMemo)(()=>{if(!f||0===f.size)return null;let e=Array.from(f.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));return RegExp(`(${e.join("|")})`,"g")},[f]),h=(0,n.useMemo)(()=>new Set((i??[]).map(e=>e.path)),[i]);function m(e){return function(n){let r=function(e){let t=c.get(e);if(!t)return or(e)||"heading";let n=d.get(e)??0;return d.set(e,n+1),t[n%t.length]}("string"==typeof n.children?n.children:function e(t){return"string"==typeof t?t:"number"==typeof t?String(t):Array.isArray(t)?t.map(e).join(""):t&&"object"==typeof t&&"props"in t?e(t.props.children):""}(n.children)),i={...n,id:r};switch(e){case 1:return(0,t.jsx)("h1",{...i});case 2:return(0,t.jsx)("h2",{...i});case 3:return(0,t.jsx)("h3",{...i});default:return(0,t.jsx)("h4",{...i})}}}let g={h1:m(1),h2:m(2),h3:m(3),h4:m(4),code:({className:e,children:n,...r})=>{if(/language-mermaid/.exec(e||"")){let e=String(n).replace(/\n$/,"");return(0,t.jsx)(a8,{code:e})}return(0,t.jsx)("code",{className:e,...r,children:n})},pre:({children:e})=>e&&"object"==typeof e&&"type"in e&&e.type===a8?(0,t.jsx)(t.Fragment,{children:e}):(0,t.jsx)("pre",{children:e}),a:({href:e,children:n,...r})=>{let i=null;if(e?.startsWith("autolink:")?i=e.slice(9):e&&(i=function(e){let t,n=e.split("#")[0].split("?")[0].trim();if(!n||/^[a-z][a-z0-9+.-]*:/i.test(n)||n.startsWith("//"))return null;try{t=decodeURI(n)}catch{t=n}let r=l&&l.includes("/")?l.slice(0,l.lastIndexOf("/")):"",i=(t.startsWith("/")?t.slice(1):r?r+"/"+t:t).split("/"),a=[];for(let e of i)if(""!==e&&"."!==e){if(".."===e){a.pop();continue}a.push(e)}let o=a.join("/");return o?h.has(o)?o:h.has(o+"/README.md")?o+"/README.md":!/\.md$/i.test(o)&&h.has(o+".md")?o+".md":null:null}(e)),i){let e=i;return(0,t.jsx)("span",{className:"text-[var(--brand-primary)] font-medium cursor-pointer hover:underline transition-colors",onClick:t=>{t.preventDefault(),s?.(),a?.(e)},onMouseEnter:t=>{let n=t.target.getBoundingClientRect();o?.(e,n)},onMouseLeave:()=>s?.(),children:n})}return(0,t.jsx)("a",{href:e,...r,children:n})},img:({src:e,alt:n,...r})=>{if("string"!=typeof e)return(0,t.jsx)("img",{src:e,alt:n,...r});let i=function(e){let t,n=e.split("#")[0].split("?")[0].trim();if(!n||/^[a-z][a-z0-9+.-]*:/i.test(n)||n.startsWith("//"))return null;try{t=decodeURI(n)}catch{t=n}let r=l&&l.includes("/")?l.slice(0,l.lastIndexOf("/")):"",i=(t.startsWith("/")?t.slice(1):r?r+"/"+t:t).split("/"),a=[];for(let e of i)if(""!==e&&"."!==e){if(".."===e){a.pop();continue}a.push(e)}return a.join("/")||null}(e);if(!i)return(0,t.jsx)("img",{src:e,alt:n,...r});let a=on(`/api/asset?path=${encodeURIComponent(i)}`);return(0,t.jsx)("img",{src:a,alt:n,...r})},p:({children:e,...n})=>(0,t.jsx)("p",{...n,children:x(e)}),li:({children:e,...n})=>(0,t.jsx)("li",{...n,children:x(e)}),td:({children:e,...n})=>(0,t.jsx)("td",{...n,children:x(e)})};function x(e){return p&&f?"string"==typeof e?y(e):Array.isArray(e)?e.map((e,n)=>"string"==typeof e?(0,t.jsx)("span",{children:y(e)},n):e):e:e}function y(e){let n;if(!p||!f)return e;let r=[],i=0;for(p.lastIndex=0;null!==(n=p.exec(e));){let l=n[0],u=f.get(l);u&&(n.index>i&&r.push(e.slice(i,n.index)),r.push((0,t.jsx)("span",{className:"text-[var(--brand-primary)] border-b border-dashed border-[var(--brand-primary)] cursor-pointer hover:bg-blue-50 transition-colors",onClick:e=>{e.preventDefault(),s?.(),a?.(u)},onMouseEnter:e=>{let t=e.target.getBoundingClientRect();o?.(u,t)},onMouseLeave:()=>s?.(),children:l},`${n.index}-${l}`)),i=n.index+l.length)}return i<e.length&&r.push(e.slice(i)),0===r.length?e:r}return(0,t.jsx)("div",{className:"prose prose-sm max-w-none prose-headings:font-semibold prose-headings:tracking-tight prose-headings:text-[var(--text-primary)] prose-h1:text-lg prose-h1:leading-snug prose-h1:mb-4 prose-h2:text-[15px] prose-h2:leading-snug prose-h2:border-b prose-h2:border-[var(--border-default)] prose-h2:pb-2 prose-h2:mt-8 prose-h2:mb-3 prose-h3:text-[13px] prose-h3:leading-snug prose-h3:mt-6 prose-h3:mb-2 prose-p:text-[var(--text-secondary)] prose-p:text-[13px] prose-p:leading-[1.75] prose-li:text-[var(--text-secondary)] prose-li:text-[13px] prose-li:leading-[1.75] prose-strong:text-[var(--text-primary)] prose-strong:font-semibold prose-a:text-[var(--brand-primary)] prose-a:font-medium prose-a:no-underline hover:prose-a:underline prose-code:text-xs prose-code:text-[var(--text-primary)] prose-code:bg-[var(--bg-muted)] prose-code:px-1 prose-code:py-0.5 prose-code:rounded prose-code:before:content-none prose-code:after:content-none prose-pre:bg-[var(--bg-muted)] prose-pre:text-xs prose-pre:text-[var(--text-primary)] prose-table:text-[12px] prose-th:bg-[var(--bg-muted)] prose-th:text-[var(--text-primary)] prose-th:font-semibold prose-th:px-3 prose-th:py-1.5 prose-th:text-left prose-td:px-3 prose-td:py-1.5 prose-td:border-[var(--border-default)] prose-td:text-[var(--text-secondary)] prose-hr:border-[var(--border-default)] prose-blockquote:border-l-[var(--brand-primary)] prose-blockquote:text-[var(--text-muted)] prose-blockquote:not-italic prose-img:rounded-lg ",children:(0,t.jsx)(nF,{remarkPlugins:[rQ],components:g,children:e})})}let ol=s("git-commit-horizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);function oa({filePath:e,hash:r}){let[i,l]=(0,n.useState)(null);return((0,n.useEffect)(()=>{l(null),fetch(on(`/api/diff?path=${encodeURIComponent(e)}&hash=${r}`)).then(e=>e.json()).then(e=>l(e.diff)).catch(()=>l("(差分を取得できませんでした)"))},[e,r]),null===i)?(0,t.jsx)("div",{className:"text-[12px] text-[var(--text-muted)] py-2",children:"差分を読み込み中..."}):(0,t.jsx)("pre",{className:"text-[11px] font-[var(--font-mono)] bg-[var(--bg-muted)] rounded-lg p-3 overflow-x-auto leading-[1.7] border border-[var(--border-default)]",children:i.split("\n").filter(e=>!e.startsWith("diff --git")&&!e.startsWith("index ")&&!e.startsWith("new file")&&!e.startsWith("deleted file")&&!e.startsWith("similarity")&&!e.startsWith("rename ")&&!e.startsWith("old mode")&&!e.startsWith("new mode")).map((e,n)=>{let r="var(--text-secondary)",i="transparent";return e.startsWith("+")&&!e.startsWith("+++")?(r="var(--add-color)",i="var(--add-bg)"):e.startsWith("-")&&!e.startsWith("---")?(r="var(--del-color)",i="var(--del-bg)"):e.startsWith("@@")&&(r="var(--brand-primary)"),(0,t.jsx)("div",{style:{color:r,backgroundColor:i},className:"px-1 -mx-1 rounded-sm",children:e},n)})})}let oo=0,os=new Set,ou=null,oc=null;function od(){for(let e of(oo++,os))e(oo)}function of(){let[e,t]=(0,n.useState)(oo);return(0,n.useEffect)(()=>{!function(){if(!ou){try{ou=new EventSource(on("/api/watch"))}catch{return}ou.addEventListener("change",()=>{oc&&clearTimeout(oc),oc=setTimeout(od,150)})}}();let e=e=>t(e);return os.add(e),()=>{os.delete(e)}},[]),e}function op({filePath:e}){let[r,i]=(0,n.useState)([]),[l,a]=(0,n.useState)(!0),[o,s]=(0,n.useState)(null),d=of();return((0,n.useEffect)(()=>{a(!0),s(null),fetch(on(`/api/history?path=${encodeURIComponent(e)}`)).then(e=>e.json()).then(e=>{i(e),a(!1)}).catch(()=>a(!1))},[e,d]),l)?(0,t.jsx)("div",{className:"p-4 text-[var(--text-muted)] text-[13px]",children:"読み込み中..."}):0===r.length?(0,t.jsx)("div",{className:"p-4 text-[var(--text-muted)] text-[13px]",children:"変更履歴がありません(git 管理外の可能性)"}):(0,t.jsx)("div",{className:"divide-y divide-[var(--border-default)]",children:r.map(n=>{let r=o===n.hash;return(0,t.jsxs)("div",{children:[(0,t.jsx)("button",{onClick:()=>s(r?null:n.hash),className:"w-full text-left px-4 py-3 hover:bg-[var(--bg-hover)] transition-colors",children:(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,t.jsx)(ol,{size:13,className:"text-[var(--text-muted)] mt-0.5 shrink-0"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-[11px] font-[var(--font-mono)] text-[var(--brand-primary)] leading-none",children:n.hashShort}),(0,t.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] leading-none",children:new Date(n.date).toLocaleString("ja-JP",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}),n.author&&(0,t.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] leading-none",children:n.author})]}),(0,t.jsx)("p",{className:"text-[12px] text-[var(--text-secondary)] mt-1 leading-snug line-clamp-2",children:n.message})]}),(0,t.jsx)("span",{className:"text-[var(--text-muted)] shrink-0 mt-0.5",children:r?(0,t.jsx)(u,{size:13}):(0,t.jsx)(c,{size:13})})]})}),r&&(0,t.jsx)("div",{className:"px-4 pb-3",children:(0,t.jsx)(oa,{filePath:e,hash:n.hash})})]},n.hash)})})}function oh({headings:e,scrollContainer:r}){let[i,l]=(0,n.useState)(null),a=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(!r||0===e.length)return;a.current?.disconnect();let t=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&l(t.target.id)},{root:r,rootMargin:"0px 0px -70% 0px",threshold:.1});for(let n of(a.current=t,e)){let e=document.getElementById(n.id);e&&t.observe(e)}return()=>t.disconnect()},[e,r]);let o=(0,n.useCallback)(e=>{let t=document.getElementById(e);t&&(t.scrollIntoView({behavior:"smooth",block:"start"}),l(e))},[]);return 0===e.length?null:(0,t.jsxs)("nav",{className:"py-3 px-2 space-y-px",children:[(0,t.jsx)("div",{className:"text-[10px] font-medium text-[var(--text-muted)] tracking-wider uppercase px-1.5 mb-1.5",children:"目次"}),e.map(e=>(0,t.jsx)("button",{onClick:()=>o(e.id),className:`block w-full text-left text-[11px] leading-relaxed py-0.5 truncate transition-colors rounded px-1.5 ${i===e.id?"text-[var(--brand-primary)] font-medium bg-blue-50":"text-[var(--text-muted)] hover:text-[var(--text-secondary)] hover:bg-[var(--bg-hover)]"}`,style:{paddingLeft:`${(e.level-1)*10+6}px`},title:e.text,children:e.text},e.id))]})}let om=s("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);function og({path:e,position:r,onNavigate:i,onMouseEnter:l,onMouseLeave:a,fileRefs:o,depth:s=0}){let[u,c]=(0,n.useState)(null),[d,f]=(0,n.useState)(!1),p=(0,n.useRef)(null),[h,m]=(0,n.useState)(null),[g,x]=(0,n.useState)(null),[y,v]=(0,n.useState)(null),b=(0,n.useRef)(null),k=(0,n.useRef)(null),w=of();(0,n.useEffect)(()=>{if(b.current&&clearTimeout(b.current),k.current&&clearTimeout(k.current),!e){c(null),x(null),v(null);return}f(!0),c(null),x(null),v(null),fetch(on(`/api/file?path=${encodeURIComponent(e)}`)).then(e=>e.json()).then(e=>c(e.content??null)).catch(()=>c(null)).finally(()=>f(!1))},[e,w]),(0,n.useEffect)(()=>{if(!r||!p.current)return void m(r);let e=p.current.getBoundingClientRect(),t=window.innerWidth,n=window.innerHeight,{x:i,y:l}=r;i+e.width>t-16&&(i=t-e.width-16),i<16&&(i=16),l+e.height>n-16&&(l=r.y-e.height-8),m({x:i,y:l})},[r,u]);let S=(0,n.useCallback)((e,t)=>{s>=3||(k.current&&clearTimeout(k.current),b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{x(e),v({x:t.right+8,y:t.top})},200))},[s]),C=(0,n.useCallback)(()=>{b.current&&clearTimeout(b.current),k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{x(null),v(null)},300)},[]),E=(0,n.useCallback)(()=>{k.current&&clearTimeout(k.current),l()},[l]),_=(0,n.useCallback)(()=>{C(),a()},[C,a]);if(!e||!r)return null;let j=e.split("/").pop()?.replace(/\.md$/i,"")||e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{ref:p,onMouseEnter:l,onMouseLeave:()=>{a(),C()},className:"fixed bg-[var(--bg-surface)] border border-[var(--border-default)] rounded-lg shadow-xl w-[min(480px,30vw)] max-h-[min(420px,30vh)] overflow-y-auto",style:{left:h?.x??r.x,top:h?.y??r.y,zIndex:50+s},children:[(0,t.jsx)("div",{className:"sticky top-0 bg-[var(--bg-surface)] border-b border-[var(--border-default)] px-3 py-2 flex items-center gap-2",children:(0,t.jsxs)("button",{onClick:()=>i(e),className:"text-xs font-medium text-[var(--brand-primary)] hover:underline truncate flex items-center gap-1",children:[j,(0,t.jsx)(om,{size:10})]})}),(0,t.jsx)("div",{className:"p-3",children:d?(0,t.jsx)("div",{className:"text-xs text-[var(--text-muted)]",children:"読み込み中..."}):u?(0,t.jsx)("div",{className:"text-[11px]",children:(0,t.jsx)(oi,{fileRefs:o,currentPath:e,onNavigate:i,onPreviewShow:S,onPreviewHide:C,children:u})}):(0,t.jsx)("div",{className:"text-xs text-[var(--text-muted)]",children:"プレビューを表示できません"})})]}),(0,t.jsx)(og,{path:g,position:y,onNavigate:i,onMouseEnter:E,onMouseLeave:_,fileRefs:o,depth:s+1})]})}var ox=e.i(77871);let oy=s("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]),ov="markshelf:linkGraphDepth",ob="markshelf:linkGraphExclude",ok="markshelf:linkGraphZoom",ow=[{value:1,label:"1階層"},{value:2,label:"2階層"},{value:3,label:"3階層"},{value:1/0,label:"全階層"}];function oS({currentPath:e,folders:r,onNavigate:i,onPreviewShow:l,onPreviewHide:a}){let o=(0,n.useRef)(null),s=(0,n.useRef)(null),u=(0,n.useRef)(null),[c,d]=(0,n.useState)(!0),[f,p]=(0,n.useState)(!1),[h,m]=(0,n.useState)(!1),[g,x]=(0,n.useState)(1),[y,v]=(0,n.useState)([]),[b,k]=(0,n.useState)(!1),w=of();(0,n.useEffect)(()=>{let e=localStorage.getItem(ov);if(null===e)return;let t="all"===e?1/0:Number(e);(Number.isFinite(t)||t===1/0)&&x(t)},[]),(0,n.useEffect)(()=>{let e=localStorage.getItem(ob);if(e)try{let t=JSON.parse(e);Array.isArray(t)&&v(t.filter(e=>"string"==typeof e))}catch{}},[]),(0,n.useEffect)(()=>{if(!b)return;let e=e=>{u.current&&!u.current.contains(e.target)&&k(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[b]);let S=(0,n.useMemo)(()=>{let t=y.map(e=>e+"/"),n=y.some(t=>e===t||e.startsWith(t+"/"));return r=>!n&&r!==e&&t.some(e=>r.startsWith(e))},[y,e]),C=(0,n.useRef)(i),E=(0,n.useRef)(l),_=(0,n.useRef)(a);return(0,n.useEffect)(()=>{C.current=i,E.current=l,_.current=a}),(0,n.useEffect)(()=>{let t=!1;return d(!0),p(!1),m(!1),fetch(on("/api/graph")).then(e=>e.json()).then(n=>{if(t||!o.current)return;let r=n.nodes.filter(e=>!S(e.id)),i=n.edges.filter(e=>!S(e.source)&&!S(e.target)),l=new Map;for(let e of i)(l.get(e.source)??l.set(e.source,[]).get(e.source)).push(e.target),(l.get(e.target)??l.set(e.target,[]).get(e.target)).push(e.source);let a=new Set([e]),u=[[e,0]];for(;u.length>0;){let[e,t]=u.shift();if(!(t>=g))for(let n of l.get(e)??[])a.has(n)||(a.add(n),u.push([n,t+1]))}let c=r.filter(e=>a.has(e.id)),f=i.filter(e=>a.has(e.source)&&a.has(e.target)),h=new Set;for(let e of f)h.add(e.target);let x=c.map(e=>e.id).filter(e=>!h.has(e));if(0===c.length){p(!0),d(!1);return}s.current?.destroy();let y=(0,ox.default)({container:o.current,elements:[...c.map(t=>({data:{id:t.id,label:t.label,isCurrent:t.id===e}})),...f.map((e,t)=>({data:{id:`e${t}`,source:e.source,target:e.target}}))],style:[{selector:"node",style:{label:"data(label)","text-valign":"bottom","text-halign":"center","font-size":"11px","font-family":"var(--font-sans)",color:"#4a5060","text-margin-y":6,"background-color":"#e8f0fe","border-width":2,"border-color":"#3b7ddb",width:28,height:28,"text-max-width":"180px","text-wrap":"ellipsis",cursor:"pointer"}},{selector:"node[?isCurrent]",style:{"background-color":"#2563eb","border-color":"#1d4ed8",color:"#1a1d23","font-weight":"bold",width:36,height:36}},{selector:"edge",style:{width:1.5,"line-color":"#c8ccd3","target-arrow-color":"#c8ccd3","target-arrow-shape":"triangle","curve-style":"bezier","arrow-scale":.8}},{selector:"node:active",style:{"overlay-opacity":0}}],layout:{name:"breadthfirst",animate:!1,padding:50,spacingFactor:1.2,directed:!0,grid:!1,roots:x.length>0?x:[e],transform:(e,t)=>({x:t.x,y:-t.y})},userZoomingEnabled:!0,userPanningEnabled:!0,boxSelectionEnabled:!1,autoungrabify:!1});requestAnimationFrame(()=>{y.resize();let e=Number(localStorage.getItem(ok));Number.isFinite(e)&&e>0?y.zoom({level:e,renderedPosition:{x:o.current.clientWidth/2,y:o.current.clientHeight/2}}):(y.fit(void 0,50),y.zoom()>.9&&y.zoom({level:.9,renderedPosition:{x:o.current.clientWidth/2,y:o.current.clientHeight/2}})),y.center(y.nodes("[?isCurrent]")),m(!0)});let v=null;y.on("zoom",()=>{v&&clearTimeout(v),v=setTimeout(()=>{localStorage.setItem(ok,String(y.zoom()))},200)}),y.on("mouseover","node",e=>{let t=e.target;t.data("isCurrent")||t.style({"background-color":"#dbeafe","border-color":"#2563eb",color:"#1a1d23"}),o.current.style.cursor="pointer";let n=t.id();if(E.current&&o.current){let e=t.renderedBoundingBox(),r=o.current.getBoundingClientRect(),i=r.left+e.x1,l=r.top+e.y1,a={left:i,top:l,right:r.left+e.x2,bottom:r.top+e.y2,width:e.w,height:e.h,x:i,y:l,toJSON:()=>({})};E.current(n,a)}}),y.on("mouseout","node",e=>{let t=e.target;t.data("isCurrent")||t.style({"background-color":"#e8f0fe","border-color":"#3b7ddb",color:"#4a5060"}),o.current.style.cursor="default",_.current?.()}),y.on("tap","node",t=>{let n=t.target.id();n!==e&&C.current(n)}),s.current=y,d(!1)}).catch(()=>{t||(p(!0),d(!1))}),()=>{t=!0,s.current?.destroy(),s.current=null}},[e,g,S,w]),(0,t.jsxs)("div",{className:"h-full flex flex-col relative",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-2 shrink-0",children:[(0,t.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] mr-1",children:"表示範囲"}),ow.map(e=>{let n=g===e.value;return(0,t.jsx)("button",{onClick:()=>{var t;x(t=e.value),localStorage.setItem(ov,t===1/0?"all":String(t))},className:`px-2 py-0.5 rounded-md text-[11px] font-medium transition-colors ${n?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:e.label},e.label)}),(0,t.jsxs)("div",{className:"ml-auto relative",ref:u,children:[(0,t.jsxs)("button",{onClick:()=>k(e=>!e),className:`flex items-center gap-1 px-2 py-0.5 rounded-md text-[11px] font-medium transition-colors ${y.length>0?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,title:"フォルダを除外",children:[(0,t.jsx)(oy,{size:11}),"除外",y.length>0&&(0,t.jsxs)("span",{className:"ml-0.5",children:["(",y.length,")"]})]}),b&&(0,t.jsx)("div",{className:"absolute right-0 top-full mt-1 w-56 max-h-72 overflow-y-auto bg-[var(--bg-surface)] border border-[var(--border-default)] rounded-md shadow-lg z-20 py-1",children:0===r.length?(0,t.jsx)("div",{className:"px-3 py-2 text-[11px] text-[var(--text-muted)]",children:"フォルダがありません"}):r.map(e=>{let n=y.includes(e.path);return(0,t.jsxs)("label",{className:"flex items-center gap-2 px-3 py-1 text-[12px] cursor-pointer hover:bg-[var(--bg-muted)]",style:{paddingLeft:`${12+12*e.depth}px`},children:[(0,t.jsx)("input",{type:"checkbox",checked:n,onChange:()=>{var t;return t=e.path,void v(e=>{let n=e.includes(t)?e.filter(e=>e!==t):[...e,t];return localStorage.setItem(ob,JSON.stringify(n)),n})},className:"shrink-0"}),(0,t.jsx)("span",{className:"truncate text-[var(--text-secondary)]",children:e.displayName})]},e.path)})})]})]}),(c||f)&&(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center text-[13px] text-[var(--text-muted)] z-10 bg-[var(--bg-surface)]",children:c?"グラフを構築中...":"このドキュメントへのリンクはありません"}),(0,t.jsx)("div",{ref:o,className:"flex-1 min-h-0 transition-opacity duration-150",style:{opacity:+!!h}})]})}let oC=s("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]),oE=s("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]),o_=s("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),oj=s("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);function oA({filePath:e,fileRefs:r,folders:i,onNavigate:l,onGoBack:a,onGoForward:o,canGoBack:s,canGoForward:u}){let[c,d]=(0,n.useState)(null),[p,h]=(0,n.useState)("content"),[m,g]=(0,n.useState)([]),[x,y]=(0,n.useState)(()=>{{let e=localStorage.getItem("markshelf:tocWidth");return e&&Number(e)||176}}),v=(0,n.useRef)(null),b=(0,n.useRef)(null),[k,w]=(0,n.useState)(null),[S,C]=(0,n.useState)(null),E=(0,n.useRef)(null),_=(0,n.useRef)(null),j=of();(0,n.useEffect)(()=>{d(null),g([]),E.current&&clearTimeout(E.current),_.current&&clearTimeout(_.current),w(null),C(null)},[e]),(0,n.useEffect)(()=>{fetch(on(`/api/file?path=${encodeURIComponent(e)}`)).then(e=>e.json()).then(e=>d(e.content??null)).catch(()=>d(null))},[e,j]);let A=(0,n.useCallback)((e,t)=>{_.current&&clearTimeout(_.current),E.current&&clearTimeout(E.current),E.current=setTimeout(()=>{w(e),C({x:t.left,y:t.bottom+4})},200)},[]),D=(0,n.useCallback)(()=>{E.current&&clearTimeout(E.current),_.current&&clearTimeout(_.current),_.current=setTimeout(()=>{w(null),C(null)},300)},[]),L=(0,n.useCallback)(()=>{_.current&&clearTimeout(_.current)},[]),T=(0,n.useCallback)(()=>{D()},[D]),N=(0,n.useCallback)(e=>{e.preventDefault(),document.body.style.userSelect="none",document.body.style.cursor="col-resize";let t=b.current?.parentElement,n=e=>{if(!t)return;let n=Math.max(120,Math.min(400,t.getBoundingClientRect().right-e.clientX));y(n),localStorage.setItem("markshelf:tocWidth",String(n))},r=()=>{document.body.style.userSelect="",document.body.style.cursor="",document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r)};document.addEventListener("mousemove",n),document.addEventListener("mouseup",r)},[]),M=e.split("/").pop()?.replace(/\.md$/i,"")||e;return(0,t.jsxs)("div",{className:"flex flex-col h-full",children:[(0,t.jsxs)("div",{className:"border-b border-[var(--border-default)] px-4 py-2.5 shrink-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[s&&(0,t.jsx)("button",{onClick:a,className:"shrink-0 p-0.5 rounded hover:bg-[var(--bg-muted)] text-[var(--text-muted)] hover:text-[var(--text-secondary)] transition-colors",title:"戻る",children:(0,t.jsx)(o_,{size:14})}),u&&(0,t.jsx)("button",{onClick:o,className:"shrink-0 p-0.5 rounded hover:bg-[var(--bg-muted)] text-[var(--text-muted)] hover:text-[var(--text-secondary)] transition-colors",title:"進む",children:(0,t.jsx)(oj,{size:14})}),(0,t.jsx)("h2",{className:"font-semibold text-[14px] leading-snug truncate text-[var(--text-primary)]",children:M})]}),(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsxs)("button",{onClick:()=>h("content"),className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[12px] font-medium transition-colors ${"content"===p?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:[(0,t.jsx)(f,{size:12}),"内容"]}),(0,t.jsxs)("button",{onClick:()=>h("history"),className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[12px] font-medium transition-colors ${"history"===p?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:[(0,t.jsx)(oC,{size:12}),"変更履歴"]}),(0,t.jsxs)("button",{onClick:()=>h("links"),className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[12px] font-medium transition-colors ${"links"===p?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:[(0,t.jsx)(oE,{size:12}),"リンク"]})]})]}),"content"===p?null!==c?(0,t.jsxs)("div",{className:"flex-1 flex overflow-hidden",children:[(0,t.jsx)("div",{className:"flex-1 overflow-y-auto",ref:v,children:(0,t.jsx)("div",{className:"p-4",children:(0,t.jsx)(oi,{onHeadingsExtracted:g,fileRefs:r,currentPath:e,onNavigate:e=>{h("content"),l?.(e)},onPreviewShow:A,onPreviewHide:D,children:c})})}),m.length>0&&(0,t.jsxs)("div",{className:"flex shrink-0",ref:b,children:[(0,t.jsx)("div",{className:"w-1 hover:bg-[var(--brand-primary)] bg-[var(--border-default)] cursor-col-resize shrink-0 transition-colors duration-150",onMouseDown:N}),(0,t.jsx)("div",{className:"overflow-y-auto border-l border-[var(--border-default)]",style:{width:x},children:(0,t.jsx)(oh,{headings:m,scrollContainer:v.current})})]})]}):(0,t.jsx)("div",{className:"flex-1 p-4 text-[var(--text-muted)] text-sm",children:"読み込み中..."}):"history"===p?(0,t.jsx)("div",{className:"flex-1 overflow-y-auto",ref:v,children:(0,t.jsx)(op,{filePath:e})}):(0,t.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,t.jsx)(oS,{currentPath:e,folders:i??[],onNavigate:e=>l?.(e),onPreviewShow:A,onPreviewHide:D})}),(0,t.jsx)(og,{path:k,position:S,onNavigate:e=>{w(null),C(null),h("content"),l?.(e)},onMouseEnter:L,onMouseLeave:T,fileRefs:r})]})}let oD=s("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),oL=s("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function oT({onSelect:e}){let[r,i]=(0,n.useState)(""),[l,a]=(0,n.useState)([]),[o,s]=(0,n.useState)(!1),[u,c]=(0,n.useState)(!1),d=(0,n.useRef)(null),f=(0,n.useRef)(null),p=(0,n.useRef)(null),h=(0,n.useCallback)(e=>{if(!e.trim()){a([]),c(!1);return}s(!0),fetch(on(`/api/search?q=${encodeURIComponent(e.trim())}`)).then(e=>e.json()).then(e=>{a(e.results??[]),c(!0)}).catch(()=>a([])).finally(()=>s(!1))},[]);return(0,n.useEffect)(()=>{let e=e=>{"Escape"===e.key&&(c(!1),f.current?.blur())},t=e=>{p.current&&!p.current.contains(e.target)&&c(!1)};return window.addEventListener("keydown",e),document.addEventListener("mousedown",t),()=>{window.removeEventListener("keydown",e),document.removeEventListener("mousedown",t)}},[]),(0,t.jsxs)("div",{ref:p,className:"relative px-4 pt-4 pb-2",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(oD,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-[var(--text-muted)]"}),(0,t.jsx)("input",{ref:f,type:"text",value:r,onChange:e=>{var t;i(t=e.target.value),d.current&&clearTimeout(d.current),d.current=setTimeout(()=>h(t),300)},onFocus:()=>{l.length>0&&c(!0)},placeholder:"ドキュメントを検索...",className:"w-full pl-8 pr-8 py-1.5 text-[12px] leading-normal rounded-md border border-[var(--border-default)] bg-[var(--bg-surface)] text-[var(--text-primary)] placeholder:text-[var(--text-muted)] focus:outline-none focus:ring-1 focus:ring-[var(--brand-primary)] focus:border-[var(--brand-primary)] transition-shadow"}),r&&(0,t.jsx)("button",{onClick:()=>{i(""),a([]),c(!1),f.current?.focus()},className:"absolute right-2 top-1/2 -translate-y-1/2 text-[var(--text-muted)] hover:text-[var(--text-secondary)]",children:(0,t.jsx)(oL,{size:14})})]}),u&&(0,t.jsx)("div",{className:"absolute left-4 right-4 top-full mt-1 z-40 bg-[var(--bg-surface)] border border-[var(--border-default)] rounded-lg shadow-lg max-h-80 overflow-y-auto",children:o?(0,t.jsx)("div",{className:"p-3 text-xs text-[var(--text-muted)] text-center",children:"検索中..."}):0===l.length?(0,t.jsx)("div",{className:"p-3 text-xs text-[var(--text-muted)] text-center",children:"該当するドキュメントが見つかりません"}):l.map(n=>(0,t.jsxs)("button",{onClick:()=>{e(n.path),c(!1)},className:"w-full text-left px-3 py-2 hover:bg-[var(--bg-muted)] border-b border-[var(--border-default)] last:border-b-0 transition-colors",children:[(0,t.jsx)("div",{className:"text-[12px] font-medium text-[var(--text-primary)] truncate leading-snug",children:n.displayName}),(0,t.jsx)("div",{className:"text-[10px] text-[var(--text-muted)] font-[var(--font-mono)] truncate mb-1 leading-normal",children:n.path}),n.matches.slice(0,2).map(e=>(0,t.jsxs)("div",{className:"text-[10px] text-[var(--text-secondary)] truncate leading-relaxed",children:[(0,t.jsxs)("span",{className:"text-[var(--text-muted)] mr-1",children:["L",e.line]}),(0,t.jsx)(oN,{text:e.text,query:r})]},e.line))]},n.path))})]})}function oN({text:e,query:n}){if(!n.trim())return(0,t.jsx)(t.Fragment,{children:e});let r=e.toLowerCase().indexOf(n.toLowerCase());if(-1===r)return(0,t.jsx)(t.Fragment,{children:e});let i=e.slice(0,r),l=e.slice(r,r+n.length),a=e.slice(r+n.length);return(0,t.jsxs)(t.Fragment,{children:[i,(0,t.jsx)("span",{className:"bg-yellow-200 text-yellow-900 rounded px-0.5",children:l}),a]})}let oM=s("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);function oz({onNavigate:e,onClose:r}){let[i,l]=(0,n.useState)([]),[a,o]=(0,n.useState)(!0),[s,d]=(0,n.useState)(null),[p,h]=(0,n.useState)(null),m=of();(0,n.useEffect)(()=>{o(!0),fetch(on("/api/timeline")).then(e=>e.json()).then(e=>{l(e.entries??[]),o(!1)}).catch(()=>o(!1))},[m]),(0,n.useEffect)(()=>{let e=e=>{"Escape"===e.key&&r()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[r]);let g=new Map;for(let e of i){let t=new Date(e.date).toLocaleDateString("ja-JP",{year:"numeric",month:"2-digit",day:"2-digit"}),n=g.get(t)??[];n.push(e),g.set(t,n)}return(0,t.jsx)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/40 backdrop-blur-sm",onClick:r,children:(0,t.jsxs)("div",{className:"bg-[var(--bg-surface)] rounded-lg shadow-2xl w-[90vw] max-w-4xl h-[85vh] flex flex-col overflow-hidden border border-[var(--border-default)]",onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-5 py-3 border-b border-[var(--border-default)] shrink-0",children:[(0,t.jsx)(oM,{size:14,className:"text-[var(--brand-primary)]"}),(0,t.jsx)("h2",{className:"font-semibold text-[14px] text-[var(--text-primary)]",children:"変更タイムライン"}),(0,t.jsx)("span",{className:"text-[11px] text-[var(--text-muted)]",children:"リポジトリ全体の変更履歴"}),(0,t.jsx)("button",{onClick:r,className:"ml-auto p-1 rounded hover:bg-[var(--bg-muted)] text-[var(--text-muted)] hover:text-[var(--text-secondary)] transition-colors",title:"閉じる (Esc)",children:(0,t.jsx)(oL,{size:16})})]}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto",children:a?(0,t.jsx)("div",{className:"h-full flex items-center justify-center text-[13px] text-[var(--text-muted)]",children:"タイムラインを読み込み中..."}):0===i.length?(0,t.jsx)("div",{className:"h-full flex items-center justify-center text-[13px] text-[var(--text-muted)]",children:"変更履歴がありません"}):Array.from(g.entries()).map(([n,r])=>(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"sticky top-0 z-10 bg-[var(--bg-base)] border-b border-[var(--border-default)] px-4 py-1.5",children:(0,t.jsx)("span",{className:"text-[11px] font-medium text-[var(--text-muted)] tracking-wide",children:n})}),r.map(n=>{let r=s===n.hash;return(0,t.jsxs)("div",{className:"border-b border-[var(--border-default)]",children:[(0,t.jsx)("button",{onClick:()=>d(r?null:n.hash),className:"w-full text-left px-4 py-2.5 hover:bg-[var(--bg-hover)] transition-colors",children:(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,t.jsx)(ol,{size:13,className:"text-[var(--text-muted)] mt-0.5 shrink-0"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-[11px] font-[var(--font-mono)] text-[var(--brand-primary)] leading-none",children:n.hashShort}),(0,t.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] leading-none",children:new Date(n.date).toLocaleTimeString("ja-JP",{hour:"2-digit",minute:"2-digit"})}),n.author&&(0,t.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] leading-none",children:n.author})]}),(0,t.jsx)("p",{className:"text-[12px] text-[var(--text-secondary)] mt-1 leading-snug line-clamp-2",children:n.message}),(0,t.jsx)("div",{className:"flex items-center gap-1 mt-1.5",children:(0,t.jsxs)("span",{className:"text-[10px] text-[var(--text-muted)]",children:[n.files.length,"件のドキュメント変更"]})})]}),(0,t.jsx)("span",{className:"text-[var(--text-muted)] shrink-0 mt-0.5",children:r?(0,t.jsx)(u,{size:13}):(0,t.jsx)(c,{size:13})})]})}),r&&(0,t.jsx)("div",{className:"px-4 pb-3",children:(0,t.jsx)("div",{className:"space-y-1",children:n.files.map(r=>{let i=(r.split("/").pop()||r).replace(/^\d+[_\-.\s]/,"").replace(/\.md$/i,""),l=p?.hash===n.hash&&p?.file===r;return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 py-1 px-2 rounded hover:bg-[var(--bg-muted)] group",children:[(0,t.jsx)("button",{onClick:()=>h(l?null:{hash:n.hash,file:r}),className:"shrink-0 text-[var(--text-muted)] hover:text-[var(--text-primary)]",children:l?(0,t.jsx)(u,{size:12}):(0,t.jsx)(c,{size:12})}),(0,t.jsx)(f,{size:12,className:"shrink-0",style:{color:"var(--file-border)"}}),(0,t.jsx)("button",{onClick:()=>e(r),className:"text-[11px] text-[var(--text-secondary)] hover:text-[var(--brand-primary)] truncate text-left",title:r,children:i}),(0,t.jsx)("span",{className:"text-[10px] text-[var(--text-muted)] truncate ml-auto opacity-0 group-hover:opacity-100 transition-opacity",children:r})]}),l&&(0,t.jsx)("div",{className:"ml-6 mt-1 mb-2",children:(0,t.jsx)(oa,{filePath:r,hash:n.hash})})]},r)})})})]},n.hash)})]},n))})]})})}let oI="file";e.s(["default",0,function(){let[e,r]=(0,n.useState)([]),[i,l]=(0,n.useState)(""),[a,o]=(0,n.useState)(null),[s,u]=(0,n.useState)(260),[c,d]=(0,n.useState)(!1),[f,p]=(0,n.useState)([]),[m,g]=(0,n.useState)([]);(0,n.useEffect)(()=>{let e,t=(e=new URL(window.location.href).searchParams.get(oI))?decodeURIComponent(e):null;t&&o(t)},[]),(0,n.useEffect)(()=>{let e=new URL(window.location.href);a?e.searchParams.set(oI,a):e.searchParams.delete(oI);let t=e.pathname+(e.search?e.search:"")+e.hash;t!==window.location.pathname+window.location.search+window.location.hash&&window.history.replaceState(null,"",t)},[a]);let x=(0,n.useCallback)(e=>{a&&e!==a&&(p(e=>[...e,a]),g([])),o(e)},[a]),y=(0,n.useCallback)(()=>{if(0===f.length)return;let e=f[f.length-1];a&&g(e=>[...e,a]),p(e=>e.slice(0,-1)),o(e)},[f,a]),v=(0,n.useCallback)(()=>{if(0===m.length)return;let e=m[m.length-1];a&&p(e=>[...e,a]),g(e=>e.slice(0,-1)),o(e)},[m,a]),b=f.length>0,k=m.length>0,w=of();(0,n.useEffect)(()=>{fetch(on("/api/tree")).then(e=>e.json()).then(e=>{r(e.tree??[]),l(e.root??"")})},[w]),(0,n.useEffect)(()=>{let e=localStorage.getItem("markshelf:treeWidth");e&&u(Number(e)||260)},[]);let S=(0,n.useMemo)(()=>(function e(t){let n=[];for(let r of t)"file"===r.type&&n.push({path:r.path,displayName:r.displayName}),"folder"===r.type&&(r.hasReadme&&n.push({path:r.path+"/README.md",displayName:r.displayName}),r.children&&n.push(...e(r.children)));return n})(e),[e]),C=(0,n.useMemo)(()=>{let t=[];return!function e(n,r){for(let i of n)"folder"===i.type&&(t.push({path:i.path,displayName:i.displayName,depth:r}),i.children&&e(i.children,r+1))}(e,0),t},[e]),E=(0,n.useCallback)(e=>{e.preventDefault(),document.body.style.userSelect="none",document.body.style.cursor="col-resize";let t=e=>{let t=Math.max(180,Math.min(.4*window.innerWidth,e.clientX));u(t),localStorage.setItem("markshelf:treeWidth",String(t))},n=()=>{document.body.style.userSelect="",document.body.style.cursor="",document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",n)};document.addEventListener("mousemove",t),document.addEventListener("mouseup",n)},[]);return(0,t.jsxs)("div",{className:"h-screen flex flex-col",children:[(0,t.jsxs)("header",{className:"h-11 border-b border-[var(--border-default)] bg-[var(--bg-surface)] flex items-center px-5 shrink-0 gap-3",children:[(0,t.jsxs)("span",{className:"font-semibold text-[15px] tracking-tight leading-none",children:["Mark",(0,t.jsx)("span",{className:"text-[var(--brand-primary)]",children:"Shelf"})]}),i&&(0,t.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] font-[var(--font-mono)] truncate leading-none",children:i}),(0,t.jsx)("div",{className:"ml-auto",children:(0,t.jsxs)("button",{onClick:()=>d(!c),className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[12px] font-medium transition-colors ${c?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:[(0,t.jsx)(oM,{size:12}),"タイムライン"]})})]}),(0,t.jsxs)("div",{className:"flex flex-1 overflow-hidden",children:[(0,t.jsxs)("div",{className:"overflow-hidden flex flex-col shrink-0",style:{width:s},children:[(0,t.jsx)(oT,{onSelect:x}),(0,t.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,t.jsx)(h,{entries:e,selectedPath:a,onSelect:x})})]}),(0,t.jsx)("div",{className:"w-1.5 hover:bg-[var(--brand-primary)] bg-[var(--border-default)] cursor-col-resize shrink-0 transition-colors duration-150",onMouseDown:E}),(0,t.jsx)("div",{className:"flex-1 border-l border-[var(--border-default)] bg-[var(--bg-surface)] overflow-hidden flex flex-col",children:a?(0,t.jsx)(oA,{filePath:a,fileRefs:S,folders:C,onNavigate:x,onGoBack:y,onGoForward:v,canGoBack:b,canGoForward:k}):(0,t.jsx)("div",{className:"p-6 text-[var(--text-muted)] text-sm flex items-center justify-center h-full",children:"ファイルをクリックして内容を表示"})})]}),c&&(0,t.jsx)(oz,{onNavigate:e=>{x(e),d(!1)},onClose:()=>d(!1)})]})}],52683)}]);
11
+ </iframe>`},"putIntoIFrame"),aR=(0,r2.__name)((e,t,n,r,i)=>{let l=e.append("div");l.attr("id",n),r&&l.attr("style",r);let a=l.append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return i&&a.attr("xmlns:xlink",i),a.append("g"),e},"appendDivSvgG");function aF(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,r2.__name)(aF,"sandboxedIframe");var aO=(0,r2.__name)((e,t,n,r)=>{e.getElementById(t)?.remove(),e.getElementById(n)?.remove(),e.getElementById(r)?.remove()},"removeExistingElements"),aB=(0,r2.__name)(async function(e,t,n){let r,i;ah();let l=aL(t);t=l.code;let a=(0,r1.getConfig)();r2.log.debug(a),t.length>(a?.maxTextSize??5e4)&&(t="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let o="#"+e,s="i"+e,u="#"+s,c="d"+e,d="#"+c,f=(0,r2.__name)(()=>{let e=h?u:d,t=(0,r6.select)(e).node();t&&"remove"in t&&t.remove()},"removeTempElements"),p=(0,r6.select)("body"),h="sandbox"===a.securityLevel,m="loose"===a.securityLevel,g=a.fontFamily;if(void 0!==n){if(n&&(n.innerHTML=""),h){let e=aF((0,r6.select)(n),s);(p=(0,r6.select)(e.nodes()[0].contentDocument.body)).node().style.margin=0}else p=(0,r6.select)(n);aR(p,e,c,`font-family: ${g}`,"http://www.w3.org/1999/xlink")}else{if(aO(document,e,c,s),h){let e=aF((0,r6.select)("body"),s);(p=(0,r6.select)(e.nodes()[0].contentDocument.body)).node().style.margin=0}else p=(0,r6.select)("body");aR(p,e,c)}try{r=await ay.fromText(t,{title:l.title})}catch(e){if(a.suppressErrorRendering)throw f(),e;r=await ay.fromText("error"),i=e}let x=p.select(d).node(),y=r.type,v=x.firstChild,b=v.firstChild,k=az(a,y,r.renderer.getClasses?.(t,r),o),w=document.createElement("style");w.innerHTML=k,v.insertBefore(w,b);try{await r.renderer.draw(t,e,"11.14.0",r)}catch(n){throw a.suppressErrorRendering?f():lv.draw(t,e,"11.14.0"),n}a$(y,p.select(`${d} svg`),r.db.getAccTitle?.(),r.db.getAccDescription?.()),p.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let S=p.select(d).node().innerHTML;if(r2.log.debug("config.arrowMarkerAbsolute",a.arrowMarkerAbsolute),S=aI(S,h,(0,r1.evaluate)(a.arrowMarkerAbsolute)),h?S=aP(S,p.select(d+" svg").node()):m||(S=iw.default.sanitize(S,{ADD_TAGS:aA,ADD_ATTR:aD,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),ab(),i)throw i;return f(),{diagramType:y,svg:S,bindFunctions:r.db.bindFunctions}},"render");function aH(e={}){let t=(0,r1.assignWithDepth_default)({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),(0,r1.saveConfigFromInitialize)(t),t?.theme&&t.theme in r1.themes_default?t.themeVariables=r1.themes_default[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=r1.themes_default.default.getThemeVariables(t.themeVariables));let n="object"==typeof t?(0,r1.setSiteConfig)(t):(0,r1.getSiteConfig)();(0,r2.setLogLevel)(n.logLevel),ah()}(0,r2.__name)(aH,"initialize");var aU=(0,r2.__name)((e,t={})=>{let{code:n}=a_(e);return ay.fromText(n,t)},"getDiagramFromText");function a$(e,t,n,r){ag(t,e),ax(t,n,r,t.attr("id"))}(0,r2.__name)(a$,"addA11yInfo");var aq=Object.freeze({render:aB,parse:aT,getDiagramFromText:aU,initialize:aH,getConfig:r1.getConfig,setConfig:r1.setConfig,getSiteConfig:r1.getSiteConfig,updateSiteConfig:r1.updateSiteConfig,reset:(0,r2.__name)(()=>{(0,r1.reset)()},"reset"),globalReset:(0,r2.__name)(()=>{(0,r1.reset)(r1.defaultConfig)},"globalReset"),defaultConfig:r1.defaultConfig});(0,r2.setLogLevel)((0,r1.getConfig)().logLevel),(0,r1.reset)((0,r1.getConfig)());var aV=(0,r2.__name)((e,t,n)=>{r2.log.warn(e),(0,r0.isDetailedError)(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),aW=(0,r2.__name)(async function(e={querySelector:".mermaid"}){try{await aJ(e)}catch(t){if((0,r0.isDetailedError)(t)&&r2.log.error(t.str),a3.parseError&&a3.parseError(t),!e.suppressErrors)throw r2.log.error("Use the suppressErrors option to suppress these errors"),t}},"run"),aJ=(0,r2.__name)(async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:".mermaid"}){let r,i,l=aq.getConfig();if(r2.log.debug(`${!e?"No ":""}Callback function found`),n)r=n;else if(t)r=document.querySelectorAll(t);else throw Error("Nodes and querySelector are both undefined");r2.log.debug(`Found ${r.length} diagrams`),l?.startOnLoad!==void 0&&(r2.log.debug("Start On Load: "+l?.startOnLoad),aq.updateSiteConfig({startOnLoad:l?.startOnLoad}));let a=new r0.utils_default.InitIDGenerator(l.deterministicIds,l.deterministicIDSeed),o=[];for(let t of Array.from(r)){if(r2.log.info("Rendering diagram: "+t.id),t.getAttribute("data-processed"))continue;t.setAttribute("data-processed","true");let n=`mermaid-${a.next()}`;i=t.innerHTML,i=(0,r4.dedent)(r0.utils_default.entityDecode(i)).trim().replace(/<br\s*\/?>/gi,"<br/>");let r=r0.utils_default.detectInit(i);r&&r2.log.debug("Detected early reinit: ",r);try{let{svg:r,bindFunctions:l}=await a4(n,i,t);t.innerHTML=r,e&&await e(n),l&&l(t)}catch(e){aV(e,o,a3.parseError)}}if(o.length>0)throw o[0]},"runThrowsErrors"),aK=(0,r2.__name)(function(e){aq.initialize(e)},"initialize"),aQ=(0,r2.__name)(async function(e,t,n){r2.log.warn("mermaid.init is deprecated. Please use run instead."),e&&aK(e);let r={postRenderCallback:n,querySelector:".mermaid"};"string"==typeof t?r.querySelector=t:t&&(t instanceof HTMLElement?r.nodes=[t]:r.nodes=t),await aW(r)},"init"),aZ=(0,r2.__name)(async(e,{lazyLoad:t=!0}={})=>{ah(),(0,r1.registerLazyLoadedDiagrams)(...e),!1===t&&await am()},"registerExternalDiagrams"),aG=(0,r2.__name)(function(){if(a3.startOnLoad){let{startOnLoad:e}=aq.getConfig();e&&a3.run().catch(e=>r2.log.error("Mermaid failed to initialize",e))}},"contentLoaded");"u">typeof document&&window.addEventListener("load",aG,!1);var aX=(0,r2.__name)(function(e){a3.parseError=e},"setParseErrorHandler"),aY=[],a0=!1,a1=(0,r2.__name)(async()=>{if(!a0){for(a0=!0;aY.length>0;){let e=aY.shift();if(e)try{await e()}catch(e){r2.log.error("Error executing queue",e)}}a0=!1}},"executeQueue"),a2=(0,r2.__name)(async(e,t)=>new Promise((n,r)=>{let i=(0,r2.__name)(()=>new Promise((i,l)=>{aq.parse(e,t).then(e=>{i(e),n(e)},e=>{r2.log.error("Error parsing",e),a3.parseError?.(e),l(e),r(e)})}),"performCall");aY.push(i),a1().catch(r)}),"parse"),a4=(0,r2.__name)((e,t,n)=>new Promise((r,i)=>{let l=(0,r2.__name)(()=>new Promise((l,a)=>{aq.render(e,t,n).then(e=>{l(e),r(e)},e=>{r2.log.error("Error parsing",e),a3.parseError?.(e),a(e),i(e)})}),"performCall");aY.push(l),a1().catch(i)}),"render"),a6=(0,r2.__name)(()=>Object.keys(r1.detectors).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),a3={startOnLoad:!0,mermaidAPI:aq,parse:a2,render:a4,init:aQ,run:aW,registerExternalDiagrams:aZ,registerLayoutLoaders:rX.registerLayoutLoaders,initialize:aK,parseError:void 0,contentLoaded:aG,setParseErrorHandler:aX,detectType:r1.detectType,registerIconPacks:rY.registerIconPacks,getRegisteredDiagramsMetadata:a6};let a5=!1,a9=0;function a8({code:e}){let r=(0,n.useRef)(null),[i,l]=(0,n.useState)(null),[a,o]=(0,n.useState)(null),s=(0,n.useRef)(`mermaid-${++a9}`);return((0,n.useEffect)(()=>{let t=!1;return a5||(a5=!0,a3.initialize({startOnLoad:!1,theme:"default",securityLevel:"loose",fontFamily:"system-ui, sans-serif"})),(async()=>{try{let{svg:n}=await a3.render(s.current,e);t||(l(n),o(null))}catch(n){t||(o(n instanceof Error?n.message:"Mermaid render error"),l(null));let e=document.getElementById("d"+s.current);e?.remove()}})(),()=>{t=!0}},[e]),a)?(0,t.jsxs)("div",{className:"border border-red-200 bg-red-50 rounded p-3 text-xs text-red-700",children:[(0,t.jsx)("div",{className:"font-medium mb-1",children:"Mermaid エラー"}),(0,t.jsx)("pre",{className:"whitespace-pre-wrap",children:e})]}):i?(0,t.jsx)("div",{ref:r,className:"my-2 overflow-x-auto",dangerouslySetInnerHTML:{__html:i}}):(0,t.jsx)("div",{className:"text-xs text-[var(--text-muted)] py-2",children:"図を描画中..."})}var a7=e.i(47167);let oe=a7.default.env.NEXT_PUBLIC_BASE_PATH?.trim(),ot=oe&&"/"!==oe&&""!==oe?oe.replace(/\/$/,""):"";function on(e){return e.startsWith("/")?ot+e:e}function or(e){return e.toLowerCase().replace(/[^\p{L}\p{N}\s-]/gu,"").replace(/\s+/g,"-").replace(/-+/g,"-").trim()}function oi({children:e,onHeadingsExtracted:r,fileRefs:i,currentPath:l,onNavigate:a,onPreviewShow:o,onPreviewHide:s}){let u=(0,n.useMemo)(()=>(function(e){let t=[],n=new Map,r=/^(#{1,4})\s+(.+)$/,i=/^[ \t]*(`{3,}|~{3,})/,l=null;for(let a of e.split("\n")){let e=i.exec(a);if(e){let t=e[1][0];if(null===l){l=t;continue}if(e[1].startsWith(l)){l=null;continue}}if(null!==l)continue;let o=r.exec(a);if(!o)continue;let s=o[1].length,u=o[2].replace(/[#*_`[\]]/g,"").trim(),c=or(u)||"heading",d=n.get(c)??0;n.set(c,d+1);let f=0===d?c:`${c}-${d}`;t.push({id:f,text:u,level:s})}return t})(e),[e]),c=(0,n.useMemo)(()=>{let e=new Map;for(let t of u){let n=e.get(t.text)??[];n.push(t.id),e.set(t.text,n)}return e},[u]),d=(0,n.useMemo)(()=>new Map,[u]);(0,n.useEffect)(()=>{r?.(u)},[u,r]);let f=(0,n.useMemo)(()=>{if(!i||0===i.length)return null;let e=new Map;for(let t of i.filter(e=>e.displayName.length>2&&e.path!==l).sort((e,t)=>t.displayName.length-e.displayName.length))e.set(t.displayName,t.path);return e},[i,l]),p=(0,n.useMemo)(()=>{if(!f||0===f.size)return null;let e=Array.from(f.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));return RegExp(`(${e.join("|")})`,"g")},[f]),h=(0,n.useMemo)(()=>new Set((i??[]).map(e=>e.path)),[i]);function m(e){return function(n){let r=function(e){let t=c.get(e);if(!t)return or(e)||"heading";let n=d.get(e)??0;return d.set(e,n+1),t[n%t.length]}("string"==typeof n.children?n.children:function e(t){return"string"==typeof t?t:"number"==typeof t?String(t):Array.isArray(t)?t.map(e).join(""):t&&"object"==typeof t&&"props"in t?e(t.props.children):""}(n.children)),i={...n,id:r};switch(e){case 1:return(0,t.jsx)("h1",{...i});case 2:return(0,t.jsx)("h2",{...i});case 3:return(0,t.jsx)("h3",{...i});default:return(0,t.jsx)("h4",{...i})}}}let g={h1:m(1),h2:m(2),h3:m(3),h4:m(4),code:({className:e,children:n,...r})=>{if(/language-mermaid/.exec(e||"")){let e=String(n).replace(/\n$/,"");return(0,t.jsx)(a8,{code:e})}return(0,t.jsx)("code",{className:e,...r,children:n})},pre:({children:e})=>e&&"object"==typeof e&&"type"in e&&e.type===a8?(0,t.jsx)(t.Fragment,{children:e}):(0,t.jsx)("pre",{children:e}),a:({href:e,children:n,...r})=>{let i=null;if(e?.startsWith("autolink:")?i=e.slice(9):e&&(i=function(e){let t,n=e.split("#")[0].split("?")[0].trim();if(!n||/^[a-z][a-z0-9+.-]*:/i.test(n)||n.startsWith("//"))return null;try{t=decodeURI(n)}catch{t=n}let r=l&&l.includes("/")?l.slice(0,l.lastIndexOf("/")):"",i=(t.startsWith("/")?t.slice(1):r?r+"/"+t:t).split("/"),a=[];for(let e of i)if(""!==e&&"."!==e){if(".."===e){a.pop();continue}a.push(e)}let o=a.join("/");return o?h.has(o)?o:h.has(o+"/README.md")?o+"/README.md":!/\.md$/i.test(o)&&h.has(o+".md")?o+".md":null:null}(e)),i){let e=i;return(0,t.jsx)("span",{className:"text-[var(--brand-primary)] font-medium cursor-pointer hover:underline transition-colors",onClick:t=>{t.preventDefault(),s?.(),a?.(e)},onMouseEnter:t=>{let n=t.target.getBoundingClientRect();o?.(e,n)},onMouseLeave:()=>s?.(),children:n})}return(0,t.jsx)("a",{href:e,...r,children:n})},img:({src:e,alt:n,...r})=>{if("string"!=typeof e)return(0,t.jsx)("img",{src:e,alt:n,...r});let i=function(e){let t,n=e.split("#")[0].split("?")[0].trim();if(!n||/^[a-z][a-z0-9+.-]*:/i.test(n)||n.startsWith("//"))return null;try{t=decodeURI(n)}catch{t=n}let r=l&&l.includes("/")?l.slice(0,l.lastIndexOf("/")):"",i=(t.startsWith("/")?t.slice(1):r?r+"/"+t:t).split("/"),a=[];for(let e of i)if(""!==e&&"."!==e){if(".."===e){a.pop();continue}a.push(e)}return a.join("/")||null}(e);if(!i)return(0,t.jsx)("img",{src:e,alt:n,...r});let a=on(`/api/asset?path=${encodeURIComponent(i)}`);return(0,t.jsx)("img",{src:a,alt:n,...r})},p:({children:e,...n})=>(0,t.jsx)("p",{...n,children:x(e)}),li:({children:e,...n})=>(0,t.jsx)("li",{...n,children:x(e)}),td:({children:e,...n})=>(0,t.jsx)("td",{...n,children:x(e)})};function x(e){return p&&f?"string"==typeof e?y(e):Array.isArray(e)?e.map((e,n)=>"string"==typeof e?(0,t.jsx)("span",{children:y(e)},n):e):e:e}function y(e){let n;if(!p||!f)return e;let r=[],i=0;for(p.lastIndex=0;null!==(n=p.exec(e));){let l=n[0],u=f.get(l);u&&(n.index>i&&r.push(e.slice(i,n.index)),r.push((0,t.jsx)("span",{className:"text-[var(--brand-primary)] border-b border-dashed border-[var(--brand-primary)] cursor-pointer hover:bg-blue-50 transition-colors",onClick:e=>{e.preventDefault(),s?.(),a?.(u)},onMouseEnter:e=>{let t=e.target.getBoundingClientRect();o?.(u,t)},onMouseLeave:()=>s?.(),children:l},`${n.index}-${l}`)),i=n.index+l.length)}return i<e.length&&r.push(e.slice(i)),0===r.length?e:r}return(0,t.jsx)("div",{className:"prose prose-sm max-w-none prose-headings:font-semibold prose-headings:tracking-tight prose-headings:text-[var(--text-primary)] prose-h1:text-lg prose-h1:leading-snug prose-h1:mb-4 prose-h2:text-[15px] prose-h2:leading-snug prose-h2:border-b prose-h2:border-[var(--border-default)] prose-h2:pb-2 prose-h2:mt-8 prose-h2:mb-3 prose-h3:text-[13px] prose-h3:leading-snug prose-h3:mt-6 prose-h3:mb-2 prose-p:text-[var(--text-secondary)] prose-p:text-[13px] prose-p:leading-[1.75] prose-li:text-[var(--text-secondary)] prose-li:text-[13px] prose-li:leading-[1.75] prose-strong:text-[var(--text-primary)] prose-strong:font-semibold prose-a:text-[var(--brand-primary)] prose-a:font-medium prose-a:no-underline hover:prose-a:underline prose-code:text-xs prose-code:text-[var(--text-primary)] prose-code:bg-[var(--bg-muted)] prose-code:px-1 prose-code:py-0.5 prose-code:rounded prose-code:before:content-none prose-code:after:content-none prose-pre:bg-[var(--bg-muted)] prose-pre:text-xs prose-pre:text-[var(--text-primary)] prose-table:text-[12px] prose-th:bg-[var(--bg-muted)] prose-th:text-[var(--text-primary)] prose-th:font-semibold prose-th:px-3 prose-th:py-1.5 prose-th:text-left prose-td:px-3 prose-td:py-1.5 prose-td:border-[var(--border-default)] prose-td:text-[var(--text-secondary)] prose-hr:border-[var(--border-default)] prose-blockquote:border-l-[var(--brand-primary)] prose-blockquote:text-[var(--text-muted)] prose-blockquote:not-italic prose-img:rounded-lg ",children:(0,t.jsx)(nF,{remarkPlugins:[rQ],components:g,children:e})})}let ol=s("git-commit-horizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);function oa({filePath:e,hash:r}){let[i,l]=(0,n.useState)(null);return((0,n.useEffect)(()=>{l(null),fetch(on(`/api/diff?path=${encodeURIComponent(e)}&hash=${r}`)).then(e=>e.json()).then(e=>l(e.diff)).catch(()=>l("(差分を取得できませんでした)"))},[e,r]),null===i)?(0,t.jsx)("div",{className:"text-[12px] text-[var(--text-muted)] py-2",children:"差分を読み込み中..."}):(0,t.jsx)("pre",{className:"text-[11px] font-[var(--font-mono)] bg-[var(--bg-muted)] rounded-lg p-3 overflow-x-auto leading-[1.7] border border-[var(--border-default)]",children:i.split("\n").filter(e=>!e.startsWith("diff --git")&&!e.startsWith("index ")&&!e.startsWith("new file")&&!e.startsWith("deleted file")&&!e.startsWith("similarity")&&!e.startsWith("rename ")&&!e.startsWith("old mode")&&!e.startsWith("new mode")).map((e,n)=>{let r="var(--text-secondary)",i="transparent";return e.startsWith("+")&&!e.startsWith("+++")?(r="var(--add-color)",i="var(--add-bg)"):e.startsWith("-")&&!e.startsWith("---")?(r="var(--del-color)",i="var(--del-bg)"):e.startsWith("@@")&&(r="var(--brand-primary)"),(0,t.jsx)("div",{style:{color:r,backgroundColor:i},className:"px-1 -mx-1 rounded-sm",children:e},n)})})}let oo=0,os=new Set,ou=null,oc=null;function od(){for(let e of(oo++,os))e(oo)}function of(){let[e,t]=(0,n.useState)(oo);return(0,n.useEffect)(()=>{!function(){if(!ou){try{ou=new EventSource(on("/api/watch"))}catch{return}ou.addEventListener("change",()=>{oc&&clearTimeout(oc),oc=setTimeout(od,150)})}}();let e=e=>t(e);return os.add(e),()=>{os.delete(e)}},[]),e}function op({filePath:e}){let[r,i]=(0,n.useState)([]),[l,a]=(0,n.useState)(!0),[o,s]=(0,n.useState)(null),d=of();return((0,n.useEffect)(()=>{a(!0),s(null),fetch(on(`/api/history?path=${encodeURIComponent(e)}`)).then(e=>e.json()).then(e=>{i(e),a(!1)}).catch(()=>a(!1))},[e,d]),l)?(0,t.jsx)("div",{className:"p-4 text-[var(--text-muted)] text-[13px]",children:"読み込み中..."}):0===r.length?(0,t.jsx)("div",{className:"p-4 text-[var(--text-muted)] text-[13px]",children:"変更履歴がありません(git 管理外の可能性)"}):(0,t.jsx)("div",{className:"divide-y divide-[var(--border-default)]",children:r.map(n=>{let r=o===n.hash;return(0,t.jsxs)("div",{children:[(0,t.jsx)("button",{onClick:()=>s(r?null:n.hash),className:"w-full text-left px-4 py-3 hover:bg-[var(--bg-hover)] transition-colors",children:(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,t.jsx)(ol,{size:13,className:"text-[var(--text-muted)] mt-0.5 shrink-0"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-[11px] font-[var(--font-mono)] text-[var(--brand-primary)] leading-none",children:n.hashShort}),(0,t.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] leading-none",children:new Date(n.date).toLocaleString("ja-JP",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}),n.author&&(0,t.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] leading-none",children:n.author})]}),(0,t.jsx)("p",{className:"text-[12px] text-[var(--text-secondary)] mt-1 leading-snug line-clamp-2",children:n.message})]}),(0,t.jsx)("span",{className:"text-[var(--text-muted)] shrink-0 mt-0.5",children:r?(0,t.jsx)(u,{size:13}):(0,t.jsx)(c,{size:13})})]})}),r&&(0,t.jsx)("div",{className:"px-4 pb-3",children:(0,t.jsx)(oa,{filePath:e,hash:n.hash})})]},n.hash)})})}function oh({headings:e,scrollContainer:r}){let[i,l]=(0,n.useState)(null),a=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(!r||0===e.length)return;a.current?.disconnect();let t=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&l(t.target.id)},{root:r,rootMargin:"0px 0px -70% 0px",threshold:.1});for(let n of(a.current=t,e)){let e=document.getElementById(n.id);e&&t.observe(e)}return()=>t.disconnect()},[e,r]);let o=(0,n.useCallback)(e=>{let t=document.getElementById(e);t&&(t.scrollIntoView({behavior:"smooth",block:"start"}),l(e))},[]);return 0===e.length?null:(0,t.jsxs)("nav",{className:"py-3 px-2 space-y-px",children:[(0,t.jsx)("div",{className:"text-[10px] font-medium text-[var(--text-muted)] tracking-wider uppercase px-1.5 mb-1.5",children:"目次"}),e.map(e=>(0,t.jsx)("button",{onClick:()=>o(e.id),className:`block w-full text-left text-[11px] leading-relaxed py-0.5 truncate transition-colors rounded px-1.5 ${i===e.id?"text-[var(--brand-primary)] font-medium bg-blue-50":"text-[var(--text-muted)] hover:text-[var(--text-secondary)] hover:bg-[var(--bg-hover)]"}`,style:{paddingLeft:`${(e.level-1)*10+6}px`},title:e.text,children:e.text},e.id))]})}let om=s("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);function og({path:e,position:r,onNavigate:i,onMouseEnter:l,onMouseLeave:a,fileRefs:o,depth:s=0}){let[u,c]=(0,n.useState)(null),[d,f]=(0,n.useState)(!1),p=(0,n.useRef)(null),[h,m]=(0,n.useState)(null),[g,x]=(0,n.useState)(null),[y,v]=(0,n.useState)(null),b=(0,n.useRef)(null),k=(0,n.useRef)(null),w=of();(0,n.useEffect)(()=>{if(b.current&&clearTimeout(b.current),k.current&&clearTimeout(k.current),!e){c(null),x(null),v(null);return}f(!0),c(null),x(null),v(null),fetch(on(`/api/file?path=${encodeURIComponent(e)}`)).then(e=>e.json()).then(e=>c(e.content??null)).catch(()=>c(null)).finally(()=>f(!1))},[e,w]),(0,n.useEffect)(()=>{if(!r||!p.current)return void m(r);let e=p.current.getBoundingClientRect(),t=window.innerWidth,n=window.innerHeight,{x:i,y:l}=r;i+e.width>t-16&&(i=t-e.width-16),i<16&&(i=16),l+e.height>n-16&&(l=r.y-e.height-8),m({x:i,y:l})},[r,u]);let S=(0,n.useCallback)((e,t)=>{s>=3||(k.current&&clearTimeout(k.current),b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{x(e),v({x:t.right+8,y:t.top})},200))},[s]),C=(0,n.useCallback)(()=>{b.current&&clearTimeout(b.current),k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{x(null),v(null)},300)},[]),E=(0,n.useCallback)(()=>{k.current&&clearTimeout(k.current),l()},[l]),_=(0,n.useCallback)(()=>{C(),a()},[C,a]);if(!e||!r)return null;let j=e.split("/").pop()?.replace(/\.md$/i,"")||e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{ref:p,onMouseEnter:l,onMouseLeave:()=>{a(),C()},className:"fixed bg-[var(--bg-surface)] border border-[var(--border-default)] rounded-lg shadow-xl w-[min(480px,30vw)] max-h-[min(420px,30vh)] overflow-y-auto",style:{left:h?.x??r.x,top:h?.y??r.y,zIndex:50+s},children:[(0,t.jsx)("div",{className:"sticky top-0 bg-[var(--bg-surface)] border-b border-[var(--border-default)] px-3 py-2 flex items-center gap-2",children:(0,t.jsxs)("button",{onClick:()=>i(e),className:"text-xs font-medium text-[var(--brand-primary)] hover:underline truncate flex items-center gap-1",children:[j,(0,t.jsx)(om,{size:10})]})}),(0,t.jsx)("div",{className:"p-3",children:d?(0,t.jsx)("div",{className:"text-xs text-[var(--text-muted)]",children:"読み込み中..."}):u?(0,t.jsx)("div",{className:"text-[11px]",children:(0,t.jsx)(oi,{fileRefs:o,currentPath:e,onNavigate:i,onPreviewShow:S,onPreviewHide:C,children:u})}):(0,t.jsx)("div",{className:"text-xs text-[var(--text-muted)]",children:"プレビューを表示できません"})})]}),(0,t.jsx)(og,{path:g,position:y,onNavigate:i,onMouseEnter:E,onMouseLeave:_,fileRefs:o,depth:s+1})]})}var ox=e.i(77871);let oy=s("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]),ov="markshelf:linkGraphDepth",ob="markshelf:linkGraphExclude",ok="markshelf:linkGraphZoom",ow=[{value:1,label:"1階層"},{value:2,label:"2階層"},{value:3,label:"3階層"},{value:1/0,label:"全階層"}];function oS({currentPath:e,folders:r,onNavigate:i,onPreviewShow:l,onPreviewHide:a}){let o=(0,n.useRef)(null),s=(0,n.useRef)(null),u=(0,n.useRef)(null),[c,d]=(0,n.useState)(!0),[f,p]=(0,n.useState)(!1),[h,m]=(0,n.useState)(!1),[g,x]=(0,n.useState)(1),[y,v]=(0,n.useState)([]),[b,k]=(0,n.useState)(!1),w=of();(0,n.useEffect)(()=>{let e=localStorage.getItem(ov);if(null===e)return;let t="all"===e?1/0:Number(e);(Number.isFinite(t)||t===1/0)&&x(t)},[]),(0,n.useEffect)(()=>{let e=localStorage.getItem(ob);if(e)try{let t=JSON.parse(e);Array.isArray(t)&&v(t.filter(e=>"string"==typeof e))}catch{}},[]),(0,n.useEffect)(()=>{if(0===r.length)return;let e=new Set(r.map(e=>e.path));v(t=>{let n=t.filter(t=>e.has(t));return n.length===t.length?t:(localStorage.setItem(ob,JSON.stringify(n)),n)})},[r]),(0,n.useEffect)(()=>{if(!b)return;let e=e=>{u.current&&!u.current.contains(e.target)&&k(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[b]);let S=(0,n.useMemo)(()=>{let t=y.map(e=>e+"/"),n=y.some(t=>e===t||e.startsWith(t+"/"));return r=>!n&&r!==e&&t.some(e=>r.startsWith(e))},[y,e]),C=(0,n.useRef)(i),E=(0,n.useRef)(l),_=(0,n.useRef)(a);return(0,n.useEffect)(()=>{C.current=i,E.current=l,_.current=a}),(0,n.useEffect)(()=>{let t=!1;return d(!0),p(!1),m(!1),fetch(on("/api/graph")).then(e=>e.json()).then(n=>{if(t||!o.current)return;let r=n.nodes.filter(e=>!S(e.id)),i=n.edges.filter(e=>!S(e.source)&&!S(e.target)),l=new Map;for(let e of i)(l.get(e.source)??l.set(e.source,[]).get(e.source)).push(e.target),(l.get(e.target)??l.set(e.target,[]).get(e.target)).push(e.source);let a=new Set([e]),u=[[e,0]];for(;u.length>0;){let[e,t]=u.shift();if(!(t>=g))for(let n of l.get(e)??[])a.has(n)||(a.add(n),u.push([n,t+1]))}let c=r.filter(e=>a.has(e.id)),f=i.filter(e=>a.has(e.source)&&a.has(e.target)),h=new Set;for(let e of f)h.add(e.target);let x=c.map(e=>e.id).filter(e=>!h.has(e));if(0===c.length){p(!0),d(!1);return}s.current?.destroy();let y=(0,ox.default)({container:o.current,elements:[...c.map(t=>({data:{id:t.id,label:t.label,isCurrent:t.id===e}})),...f.map((e,t)=>({data:{id:`e${t}`,source:e.source,target:e.target}}))],style:[{selector:"node",style:{label:"data(label)","text-valign":"bottom","text-halign":"center","font-size":"11px","font-family":"var(--font-sans)",color:"#4a5060","text-margin-y":6,"background-color":"#e8f0fe","border-width":2,"border-color":"#3b7ddb",width:28,height:28,"text-max-width":"180px","text-wrap":"ellipsis",cursor:"pointer"}},{selector:"node[?isCurrent]",style:{"background-color":"#2563eb","border-color":"#1d4ed8",color:"#1a1d23","font-weight":"bold",width:36,height:36}},{selector:"edge",style:{width:1.5,"line-color":"#c8ccd3","target-arrow-color":"#c8ccd3","target-arrow-shape":"triangle","curve-style":"bezier","arrow-scale":.8}},{selector:"node:active",style:{"overlay-opacity":0}}],layout:{name:"breadthfirst",animate:!1,padding:50,spacingFactor:1.2,directed:!0,grid:!1,roots:x.length>0?x:[e],transform:(e,t)=>({x:t.x,y:-t.y})},userZoomingEnabled:!0,userPanningEnabled:!0,boxSelectionEnabled:!1,autoungrabify:!1});requestAnimationFrame(()=>{y.resize();let e=Number(localStorage.getItem(ok));Number.isFinite(e)&&e>0?y.zoom({level:e,renderedPosition:{x:o.current.clientWidth/2,y:o.current.clientHeight/2}}):(y.fit(void 0,50),y.zoom()>.9&&y.zoom({level:.9,renderedPosition:{x:o.current.clientWidth/2,y:o.current.clientHeight/2}})),y.center(y.nodes("[?isCurrent]")),m(!0)});let v=null;y.on("zoom",()=>{v&&clearTimeout(v),v=setTimeout(()=>{localStorage.setItem(ok,String(y.zoom()))},200)}),y.on("mouseover","node",e=>{let t=e.target;t.data("isCurrent")||t.style({"background-color":"#dbeafe","border-color":"#2563eb",color:"#1a1d23"}),o.current.style.cursor="pointer";let n=t.id();if(E.current&&o.current){let e=t.renderedBoundingBox(),r=o.current.getBoundingClientRect(),i=r.left+e.x1,l=r.top+e.y1,a={left:i,top:l,right:r.left+e.x2,bottom:r.top+e.y2,width:e.w,height:e.h,x:i,y:l,toJSON:()=>({})};E.current(n,a)}}),y.on("mouseout","node",e=>{let t=e.target;t.data("isCurrent")||t.style({"background-color":"#e8f0fe","border-color":"#3b7ddb",color:"#4a5060"}),o.current.style.cursor="default",_.current?.()}),y.on("tap","node",t=>{let n=t.target.id();n!==e&&C.current(n)}),s.current=y,d(!1)}).catch(()=>{t||(p(!0),d(!1))}),()=>{t=!0,s.current?.destroy(),s.current=null}},[e,g,S,w]),(0,t.jsxs)("div",{className:"h-full flex flex-col relative",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-2 shrink-0",children:[(0,t.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] mr-1",children:"表示範囲"}),ow.map(e=>{let n=g===e.value;return(0,t.jsx)("button",{onClick:()=>{var t;x(t=e.value),localStorage.setItem(ov,t===1/0?"all":String(t))},className:`px-2 py-0.5 rounded-md text-[11px] font-medium transition-colors ${n?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:e.label},e.label)}),(0,t.jsxs)("div",{className:"ml-auto relative",ref:u,children:[(0,t.jsxs)("button",{onClick:()=>k(e=>!e),className:`flex items-center gap-1 px-2 py-0.5 rounded-md text-[11px] font-medium transition-colors ${y.length>0?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,title:"フォルダを除外",children:[(0,t.jsx)(oy,{size:11}),"除外",y.length>0&&(0,t.jsxs)("span",{className:"ml-0.5",children:["(",y.length,")"]})]}),b&&(0,t.jsx)("div",{className:"absolute right-0 top-full mt-1 w-56 max-h-72 overflow-y-auto bg-[var(--bg-surface)] border border-[var(--border-default)] rounded-md shadow-lg z-20 py-1",children:0===r.length?(0,t.jsx)("div",{className:"px-3 py-2 text-[11px] text-[var(--text-muted)]",children:"フォルダがありません"}):r.map(e=>{let n=y.includes(e.path);return(0,t.jsxs)("label",{className:"flex items-center gap-2 px-3 py-1 text-[12px] cursor-pointer hover:bg-[var(--bg-muted)]",style:{paddingLeft:`${12+12*e.depth}px`},children:[(0,t.jsx)("input",{type:"checkbox",checked:n,onChange:()=>{var t;return t=e.path,void v(e=>{let n=e.includes(t)?e.filter(e=>e!==t):[...e,t];return localStorage.setItem(ob,JSON.stringify(n)),n})},className:"shrink-0"}),(0,t.jsx)("span",{className:"truncate text-[var(--text-secondary)]",children:e.displayName})]},e.path)})})]})]}),(c||f)&&(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center text-[13px] text-[var(--text-muted)] z-10 bg-[var(--bg-surface)]",children:c?"グラフを構築中...":"このドキュメントへのリンクはありません"}),(0,t.jsx)("div",{ref:o,className:"flex-1 min-h-0 transition-opacity duration-150",style:{opacity:+!!h}})]})}let oC=s("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]),oE=s("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]),o_=s("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),oj=s("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);function oA({filePath:e,fileRefs:r,folders:i,onNavigate:l,onGoBack:a,onGoForward:o,canGoBack:s,canGoForward:u}){let[c,d]=(0,n.useState)(null),[p,h]=(0,n.useState)("content"),[m,g]=(0,n.useState)([]),[x,y]=(0,n.useState)(()=>{{let e=localStorage.getItem("markshelf:tocWidth");return e&&Number(e)||176}}),v=(0,n.useRef)(null),b=(0,n.useRef)(null),[k,w]=(0,n.useState)(null),[S,C]=(0,n.useState)(null),E=(0,n.useRef)(null),_=(0,n.useRef)(null),j=of();(0,n.useEffect)(()=>{d(null),g([]),E.current&&clearTimeout(E.current),_.current&&clearTimeout(_.current),w(null),C(null)},[e]),(0,n.useEffect)(()=>{fetch(on(`/api/file?path=${encodeURIComponent(e)}`)).then(e=>e.json()).then(e=>d(e.content??null)).catch(()=>d(null))},[e,j]);let A=(0,n.useCallback)((e,t)=>{_.current&&clearTimeout(_.current),E.current&&clearTimeout(E.current),E.current=setTimeout(()=>{w(e),C({x:t.left,y:t.bottom+4})},200)},[]),D=(0,n.useCallback)(()=>{E.current&&clearTimeout(E.current),_.current&&clearTimeout(_.current),_.current=setTimeout(()=>{w(null),C(null)},300)},[]),L=(0,n.useCallback)(()=>{_.current&&clearTimeout(_.current)},[]),T=(0,n.useCallback)(()=>{D()},[D]),N=(0,n.useCallback)(e=>{e.preventDefault(),document.body.style.userSelect="none",document.body.style.cursor="col-resize";let t=b.current?.parentElement,n=e=>{if(!t)return;let n=Math.max(120,Math.min(400,t.getBoundingClientRect().right-e.clientX));y(n),localStorage.setItem("markshelf:tocWidth",String(n))},r=()=>{document.body.style.userSelect="",document.body.style.cursor="",document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r)};document.addEventListener("mousemove",n),document.addEventListener("mouseup",r)},[]),M=e.split("/").pop()?.replace(/\.md$/i,"")||e;return(0,t.jsxs)("div",{className:"flex flex-col h-full",children:[(0,t.jsxs)("div",{className:"border-b border-[var(--border-default)] px-4 py-2.5 shrink-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[s&&(0,t.jsx)("button",{onClick:a,className:"shrink-0 p-0.5 rounded hover:bg-[var(--bg-muted)] text-[var(--text-muted)] hover:text-[var(--text-secondary)] transition-colors",title:"戻る",children:(0,t.jsx)(o_,{size:14})}),u&&(0,t.jsx)("button",{onClick:o,className:"shrink-0 p-0.5 rounded hover:bg-[var(--bg-muted)] text-[var(--text-muted)] hover:text-[var(--text-secondary)] transition-colors",title:"進む",children:(0,t.jsx)(oj,{size:14})}),(0,t.jsx)("h2",{className:"font-semibold text-[14px] leading-snug truncate text-[var(--text-primary)]",children:M})]}),(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsxs)("button",{onClick:()=>h("content"),className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[12px] font-medium transition-colors ${"content"===p?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:[(0,t.jsx)(f,{size:12}),"内容"]}),(0,t.jsxs)("button",{onClick:()=>h("history"),className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[12px] font-medium transition-colors ${"history"===p?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:[(0,t.jsx)(oC,{size:12}),"変更履歴"]}),(0,t.jsxs)("button",{onClick:()=>h("links"),className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[12px] font-medium transition-colors ${"links"===p?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:[(0,t.jsx)(oE,{size:12}),"リンク"]})]})]}),"content"===p?null!==c?(0,t.jsxs)("div",{className:"flex-1 flex overflow-hidden",children:[(0,t.jsx)("div",{className:"flex-1 overflow-y-auto",ref:v,children:(0,t.jsx)("div",{className:"p-4",children:(0,t.jsx)(oi,{onHeadingsExtracted:g,fileRefs:r,currentPath:e,onNavigate:e=>{h("content"),l?.(e)},onPreviewShow:A,onPreviewHide:D,children:c})})}),m.length>0&&(0,t.jsxs)("div",{className:"flex shrink-0",ref:b,children:[(0,t.jsx)("div",{className:"w-1 hover:bg-[var(--brand-primary)] bg-[var(--border-default)] cursor-col-resize shrink-0 transition-colors duration-150",onMouseDown:N}),(0,t.jsx)("div",{className:"overflow-y-auto border-l border-[var(--border-default)]",style:{width:x},children:(0,t.jsx)(oh,{headings:m,scrollContainer:v.current})})]})]}):(0,t.jsx)("div",{className:"flex-1 p-4 text-[var(--text-muted)] text-sm",children:"読み込み中..."}):"history"===p?(0,t.jsx)("div",{className:"flex-1 overflow-y-auto",ref:v,children:(0,t.jsx)(op,{filePath:e})}):(0,t.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,t.jsx)(oS,{currentPath:e,folders:i??[],onNavigate:e=>l?.(e),onPreviewShow:A,onPreviewHide:D})}),(0,t.jsx)(og,{path:k,position:S,onNavigate:e=>{w(null),C(null),h("content"),l?.(e)},onMouseEnter:L,onMouseLeave:T,fileRefs:r})]})}let oD=s("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),oL=s("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function oT({onSelect:e}){let[r,i]=(0,n.useState)(""),[l,a]=(0,n.useState)([]),[o,s]=(0,n.useState)(!1),[u,c]=(0,n.useState)(!1),d=(0,n.useRef)(null),f=(0,n.useRef)(null),p=(0,n.useRef)(null),h=(0,n.useCallback)(e=>{if(!e.trim()){a([]),c(!1);return}s(!0),fetch(on(`/api/search?q=${encodeURIComponent(e.trim())}`)).then(e=>e.json()).then(e=>{a(e.results??[]),c(!0)}).catch(()=>a([])).finally(()=>s(!1))},[]);return(0,n.useEffect)(()=>{let e=e=>{"Escape"===e.key&&(c(!1),f.current?.blur())},t=e=>{p.current&&!p.current.contains(e.target)&&c(!1)};return window.addEventListener("keydown",e),document.addEventListener("mousedown",t),()=>{window.removeEventListener("keydown",e),document.removeEventListener("mousedown",t)}},[]),(0,t.jsxs)("div",{ref:p,className:"relative px-4 pt-4 pb-2",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(oD,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-[var(--text-muted)]"}),(0,t.jsx)("input",{ref:f,type:"text",value:r,onChange:e=>{var t;i(t=e.target.value),d.current&&clearTimeout(d.current),d.current=setTimeout(()=>h(t),300)},onFocus:()=>{l.length>0&&c(!0)},placeholder:"ドキュメントを検索...",className:"w-full pl-8 pr-8 py-1.5 text-[12px] leading-normal rounded-md border border-[var(--border-default)] bg-[var(--bg-surface)] text-[var(--text-primary)] placeholder:text-[var(--text-muted)] focus:outline-none focus:ring-1 focus:ring-[var(--brand-primary)] focus:border-[var(--brand-primary)] transition-shadow"}),r&&(0,t.jsx)("button",{onClick:()=>{i(""),a([]),c(!1),f.current?.focus()},className:"absolute right-2 top-1/2 -translate-y-1/2 text-[var(--text-muted)] hover:text-[var(--text-secondary)]",children:(0,t.jsx)(oL,{size:14})})]}),u&&(0,t.jsx)("div",{className:"absolute left-4 right-4 top-full mt-1 z-40 bg-[var(--bg-surface)] border border-[var(--border-default)] rounded-lg shadow-lg max-h-80 overflow-y-auto",children:o?(0,t.jsx)("div",{className:"p-3 text-xs text-[var(--text-muted)] text-center",children:"検索中..."}):0===l.length?(0,t.jsx)("div",{className:"p-3 text-xs text-[var(--text-muted)] text-center",children:"該当するドキュメントが見つかりません"}):l.map(n=>(0,t.jsxs)("button",{onClick:()=>{e(n.path),c(!1)},className:"w-full text-left px-3 py-2 hover:bg-[var(--bg-muted)] border-b border-[var(--border-default)] last:border-b-0 transition-colors",children:[(0,t.jsx)("div",{className:"text-[12px] font-medium text-[var(--text-primary)] truncate leading-snug",children:n.displayName}),(0,t.jsx)("div",{className:"text-[10px] text-[var(--text-muted)] font-[var(--font-mono)] truncate mb-1 leading-normal",children:n.path}),n.matches.slice(0,2).map(e=>(0,t.jsxs)("div",{className:"text-[10px] text-[var(--text-secondary)] truncate leading-relaxed",children:[(0,t.jsxs)("span",{className:"text-[var(--text-muted)] mr-1",children:["L",e.line]}),(0,t.jsx)(oN,{text:e.text,query:r})]},e.line))]},n.path))})]})}function oN({text:e,query:n}){if(!n.trim())return(0,t.jsx)(t.Fragment,{children:e});let r=e.toLowerCase().indexOf(n.toLowerCase());if(-1===r)return(0,t.jsx)(t.Fragment,{children:e});let i=e.slice(0,r),l=e.slice(r,r+n.length),a=e.slice(r+n.length);return(0,t.jsxs)(t.Fragment,{children:[i,(0,t.jsx)("span",{className:"bg-yellow-200 text-yellow-900 rounded px-0.5",children:l}),a]})}let oM=s("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);function oz({onNavigate:e,onClose:r}){let[i,l]=(0,n.useState)([]),[a,o]=(0,n.useState)(!0),[s,d]=(0,n.useState)(null),[p,h]=(0,n.useState)(null),m=of();(0,n.useEffect)(()=>{o(!0),fetch(on("/api/timeline")).then(e=>e.json()).then(e=>{l(e.entries??[]),o(!1)}).catch(()=>o(!1))},[m]),(0,n.useEffect)(()=>{let e=e=>{"Escape"===e.key&&r()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[r]);let g=new Map;for(let e of i){let t=new Date(e.date).toLocaleDateString("ja-JP",{year:"numeric",month:"2-digit",day:"2-digit"}),n=g.get(t)??[];n.push(e),g.set(t,n)}return(0,t.jsx)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/40 backdrop-blur-sm",onClick:r,children:(0,t.jsxs)("div",{className:"bg-[var(--bg-surface)] rounded-lg shadow-2xl w-[90vw] max-w-4xl h-[85vh] flex flex-col overflow-hidden border border-[var(--border-default)]",onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-5 py-3 border-b border-[var(--border-default)] shrink-0",children:[(0,t.jsx)(oM,{size:14,className:"text-[var(--brand-primary)]"}),(0,t.jsx)("h2",{className:"font-semibold text-[14px] text-[var(--text-primary)]",children:"変更タイムライン"}),(0,t.jsx)("span",{className:"text-[11px] text-[var(--text-muted)]",children:"リポジトリ全体の変更履歴"}),(0,t.jsx)("button",{onClick:r,className:"ml-auto p-1 rounded hover:bg-[var(--bg-muted)] text-[var(--text-muted)] hover:text-[var(--text-secondary)] transition-colors",title:"閉じる (Esc)",children:(0,t.jsx)(oL,{size:16})})]}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto",children:a?(0,t.jsx)("div",{className:"h-full flex items-center justify-center text-[13px] text-[var(--text-muted)]",children:"タイムラインを読み込み中..."}):0===i.length?(0,t.jsx)("div",{className:"h-full flex items-center justify-center text-[13px] text-[var(--text-muted)]",children:"変更履歴がありません"}):Array.from(g.entries()).map(([n,r])=>(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"sticky top-0 z-10 bg-[var(--bg-base)] border-b border-[var(--border-default)] px-4 py-1.5",children:(0,t.jsx)("span",{className:"text-[11px] font-medium text-[var(--text-muted)] tracking-wide",children:n})}),r.map(n=>{let r=s===n.hash;return(0,t.jsxs)("div",{className:"border-b border-[var(--border-default)]",children:[(0,t.jsx)("button",{onClick:()=>d(r?null:n.hash),className:"w-full text-left px-4 py-2.5 hover:bg-[var(--bg-hover)] transition-colors",children:(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,t.jsx)(ol,{size:13,className:"text-[var(--text-muted)] mt-0.5 shrink-0"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-[11px] font-[var(--font-mono)] text-[var(--brand-primary)] leading-none",children:n.hashShort}),(0,t.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] leading-none",children:new Date(n.date).toLocaleTimeString("ja-JP",{hour:"2-digit",minute:"2-digit"})}),n.author&&(0,t.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] leading-none",children:n.author})]}),(0,t.jsx)("p",{className:"text-[12px] text-[var(--text-secondary)] mt-1 leading-snug line-clamp-2",children:n.message}),(0,t.jsx)("div",{className:"flex items-center gap-1 mt-1.5",children:(0,t.jsxs)("span",{className:"text-[10px] text-[var(--text-muted)]",children:[n.files.length,"件のドキュメント変更"]})})]}),(0,t.jsx)("span",{className:"text-[var(--text-muted)] shrink-0 mt-0.5",children:r?(0,t.jsx)(u,{size:13}):(0,t.jsx)(c,{size:13})})]})}),r&&(0,t.jsx)("div",{className:"px-4 pb-3",children:(0,t.jsx)("div",{className:"space-y-1",children:n.files.map(r=>{let i=(r.split("/").pop()||r).replace(/^\d+[_\-.\s]/,"").replace(/\.md$/i,""),l=p?.hash===n.hash&&p?.file===r;return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 py-1 px-2 rounded hover:bg-[var(--bg-muted)] group",children:[(0,t.jsx)("button",{onClick:()=>h(l?null:{hash:n.hash,file:r}),className:"shrink-0 text-[var(--text-muted)] hover:text-[var(--text-primary)]",children:l?(0,t.jsx)(u,{size:12}):(0,t.jsx)(c,{size:12})}),(0,t.jsx)(f,{size:12,className:"shrink-0",style:{color:"var(--file-border)"}}),(0,t.jsx)("button",{onClick:()=>e(r),className:"text-[11px] text-[var(--text-secondary)] hover:text-[var(--brand-primary)] truncate text-left",title:r,children:i}),(0,t.jsx)("span",{className:"text-[10px] text-[var(--text-muted)] truncate ml-auto opacity-0 group-hover:opacity-100 transition-opacity",children:r})]}),l&&(0,t.jsx)("div",{className:"ml-6 mt-1 mb-2",children:(0,t.jsx)(oa,{filePath:r,hash:n.hash})})]},r)})})})]},n.hash)})]},n))})]})})}let oI="file";e.s(["default",0,function(){let[e,r]=(0,n.useState)([]),[i,l]=(0,n.useState)(""),[a,o]=(0,n.useState)(null),[s,u]=(0,n.useState)(260),[c,d]=(0,n.useState)(!1),[f,p]=(0,n.useState)([]),[m,g]=(0,n.useState)([]);(0,n.useEffect)(()=>{let e,t=(e=new URL(window.location.href).searchParams.get(oI))?decodeURIComponent(e):null;t&&o(t)},[]),(0,n.useEffect)(()=>{let e=new URL(window.location.href);a?e.searchParams.set(oI,a):e.searchParams.delete(oI);let t=e.pathname+(e.search?e.search:"")+e.hash;t!==window.location.pathname+window.location.search+window.location.hash&&window.history.replaceState(null,"",t)},[a]);let x=(0,n.useCallback)(e=>{a&&e!==a&&(p(e=>[...e,a]),g([])),o(e)},[a]),y=(0,n.useCallback)(()=>{if(0===f.length)return;let e=f[f.length-1];a&&g(e=>[...e,a]),p(e=>e.slice(0,-1)),o(e)},[f,a]),v=(0,n.useCallback)(()=>{if(0===m.length)return;let e=m[m.length-1];a&&p(e=>[...e,a]),g(e=>e.slice(0,-1)),o(e)},[m,a]),b=f.length>0,k=m.length>0,w=of();(0,n.useEffect)(()=>{fetch(on("/api/tree")).then(e=>e.json()).then(e=>{r(e.tree??[]),l(e.root??"")})},[w]),(0,n.useEffect)(()=>{let e=localStorage.getItem("markshelf:treeWidth");e&&u(Number(e)||260)},[]);let S=(0,n.useMemo)(()=>(function e(t){let n=[];for(let r of t)"file"===r.type&&n.push({path:r.path,displayName:r.displayName}),"folder"===r.type&&(r.hasReadme&&n.push({path:r.path+"/README.md",displayName:r.displayName}),r.children&&n.push(...e(r.children)));return n})(e),[e]),C=(0,n.useMemo)(()=>{let t=[];return!function e(n,r){for(let i of n)"folder"===i.type&&(t.push({path:i.path,displayName:i.displayName,depth:r}),i.children&&e(i.children,r+1))}(e,0),t},[e]),E=(0,n.useCallback)(e=>{e.preventDefault(),document.body.style.userSelect="none",document.body.style.cursor="col-resize";let t=e=>{let t=Math.max(180,Math.min(.4*window.innerWidth,e.clientX));u(t),localStorage.setItem("markshelf:treeWidth",String(t))},n=()=>{document.body.style.userSelect="",document.body.style.cursor="",document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",n)};document.addEventListener("mousemove",t),document.addEventListener("mouseup",n)},[]);return(0,t.jsxs)("div",{className:"h-screen flex flex-col",children:[(0,t.jsxs)("header",{className:"h-11 border-b border-[var(--border-default)] bg-[var(--bg-surface)] flex items-center px-5 shrink-0 gap-3",children:[(0,t.jsxs)("span",{className:"font-semibold text-[15px] tracking-tight leading-none",children:["Mark",(0,t.jsx)("span",{className:"text-[var(--brand-primary)]",children:"Shelf"})]}),i&&(0,t.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] font-[var(--font-mono)] truncate leading-none",children:i}),(0,t.jsx)("div",{className:"ml-auto",children:(0,t.jsxs)("button",{onClick:()=>d(!c),className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[12px] font-medium transition-colors ${c?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:[(0,t.jsx)(oM,{size:12}),"タイムライン"]})})]}),(0,t.jsxs)("div",{className:"flex flex-1 overflow-hidden",children:[(0,t.jsxs)("div",{className:"overflow-hidden flex flex-col shrink-0",style:{width:s},children:[(0,t.jsx)(oT,{onSelect:x}),(0,t.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,t.jsx)(h,{entries:e,selectedPath:a,onSelect:x})})]}),(0,t.jsx)("div",{className:"w-1.5 hover:bg-[var(--brand-primary)] bg-[var(--border-default)] cursor-col-resize shrink-0 transition-colors duration-150",onMouseDown:E}),(0,t.jsx)("div",{className:"flex-1 border-l border-[var(--border-default)] bg-[var(--bg-surface)] overflow-hidden flex flex-col",children:a?(0,t.jsx)(oA,{filePath:a,fileRefs:S,folders:C,onNavigate:x,onGoBack:y,onGoForward:v,canGoBack:b,canGoForward:k}):(0,t.jsx)("div",{className:"p-6 text-[var(--text-muted)] text-sm flex items-center justify-center h-full",children:"ファイルをクリックして内容を表示"})})]}),c&&(0,t.jsx)(oz,{onNavigate:e=>{x(e),d(!1)},onClose:()=>d(!1)})]})}],52683)}]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markshelf",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Structured markdown viewer for git repositories",
5
5
  "license": "MIT",
6
6
  "author": "sksp.work",
@@ -1 +0,0 @@
1
- @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-content:""}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:#fef2f2;--color-red-200:#ffcaca;--color-red-700:#bf000f;--color-yellow-200:#fff085;--color-yellow-900:#733e0a;--color-blue-50:#eff6ff;--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--font-weight-medium:500;--font-weight-semibold:600;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-snug:1.375;--leading-normal:1.5;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}@supports (color:lab(0% 0 0)){:root,:host{--color-red-50:lab(96.5005% 4.18511 1.52329);--color-red-200:lab(86.017% 19.8815 7.75869);--color-red-700:lab(40.4273% 67.2623 53.7441);--color-yellow-200:lab(94.3433% -5.00426 52.9663);--color-yellow-900:lab(32.3865% 21.1274 38.5958);--color-blue-50:lab(96.492% -1.14647 -5.11479)}}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.collapse{visibility:collapse}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.top-0{top:calc(var(--spacing) * 0)}.top-1\/2{top:50%}.top-full{top:100%}.right-0{right:calc(var(--spacing) * 0)}.right-2{right:calc(var(--spacing) * 2)}.right-4{right:calc(var(--spacing) * 4)}.left-2\.5{left:calc(var(--spacing) * 2.5)}.left-4{left:calc(var(--spacing) * 4)}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-\[100\]{z-index:100}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.my-2{margin-block:calc(var(--spacing) * 2)}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows), 0 3px 0 var(--tw-prose-kbd-shadows);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{--tw-prose-body:#364153;--tw-prose-headings:#101828;--tw-prose-lead:#4a5565;--tw-prose-links:#101828;--tw-prose-bold:#101828;--tw-prose-counters:#6a7282;--tw-prose-bullets:#d1d5dc;--tw-prose-hr:#e5e7eb;--tw-prose-quotes:#101828;--tw-prose-quote-borders:#e5e7eb;--tw-prose-captions:#6a7282;--tw-prose-kbd:#101828;--tw-prose-kbd-shadows:#1018281a;--tw-prose-code:#101828;--tw-prose-pre-code:#e5e7eb;--tw-prose-pre-bg:#1e2939;--tw-prose-th-borders:#d1d5dc;--tw-prose-td-borders:#e5e7eb;--tw-prose-invert-body:#d1d5dc;--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:#99a1af;--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:#99a1af;--tw-prose-invert-bullets:#4a5565;--tw-prose-invert-hr:#364153;--tw-prose-invert-quotes:#f3f4f6;--tw-prose-invert-quote-borders:#364153;--tw-prose-invert-captions:#99a1af;--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:#d1d5dc;--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:#4a5565;--tw-prose-invert-td-borders:#364153;font-size:1rem;line-height:1.75}@supports (color:lab(0% 0 0)){.prose{--tw-prose-body:lab(27.1134% -.956401 -12.3224);--tw-prose-headings:lab(8.11897% .811279 -12.254);--tw-prose-lead:lab(35.6337% -1.58697 -10.8425);--tw-prose-links:lab(8.11897% .811279 -12.254);--tw-prose-bold:lab(8.11897% .811279 -12.254);--tw-prose-counters:lab(47.7841% -.393212 -10.0268);--tw-prose-bullets:lab(85.1236% -.612259 -3.7138);--tw-prose-hr:lab(91.6229% -.159085 -2.26791);--tw-prose-quotes:lab(8.11897% .811279 -12.254);--tw-prose-quote-borders:lab(91.6229% -.159085 -2.26791);--tw-prose-captions:lab(47.7841% -.393212 -10.0268);--tw-prose-kbd:lab(8.11897% .811279 -12.254);--tw-prose-kbd-shadows:lab(8.11897% .811279 -12.254/.1);--tw-prose-code:lab(8.11897% .811279 -12.254);--tw-prose-pre-code:lab(91.6229% -.159085 -2.26791);--tw-prose-pre-bg:lab(16.1051% -1.18239 -11.7533);--tw-prose-th-borders:lab(85.1236% -.612259 -3.7138);--tw-prose-td-borders:lab(91.6229% -.159085 -2.26791);--tw-prose-invert-body:lab(85.1236% -.612259 -3.7138);--tw-prose-invert-lead:lab(65.9269% -.832707 -8.17474);--tw-prose-invert-counters:lab(65.9269% -.832707 -8.17474);--tw-prose-invert-bullets:lab(35.6337% -1.58697 -10.8425);--tw-prose-invert-hr:lab(27.1134% -.956401 -12.3224);--tw-prose-invert-quotes:lab(96.1596% -.082314 -1.13575);--tw-prose-invert-quote-borders:lab(27.1134% -.956401 -12.3224);--tw-prose-invert-captions:lab(65.9269% -.832707 -8.17474);--tw-prose-invert-pre-code:lab(85.1236% -.612259 -3.7138);--tw-prose-invert-th-borders:lab(35.6337% -1.58697 -10.8425);--tw-prose-invert-td-borders:lab(27.1134% -.956401 -12.3224)}}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.71429}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.888889em;margin-bottom:.888889em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em;margin-bottom:1.33333em;padding-inline-start:1.11111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:.8em;font-size:2.14286em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:.8em;font-size:1.42857em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.55556em;margin-bottom:.444444em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.42857em;margin-bottom:.571429em;line-height:1.42857}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.142857em;padding-inline-end:.357143em;padding-bottom:.142857em;border-radius:.3125rem;padding-inline-start:.357143em;font-size:.857143em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;border-radius:.25rem;margin-top:1.66667em;margin-bottom:1.66667em;padding-inline-start:1em;font-size:.857143em;line-height:1.66667}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em;padding-inline-start:1.57143em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;margin-bottom:.285714em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.428571em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;padding-inline-start:1.57143em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.85714em;margin-bottom:2.85714em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.666667em;font-size:.857143em;line-height:1.33333}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mr-1{margin-right:calc(var(--spacing) * 1)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.ml-0\.5{margin-left:calc(var(--spacing) * .5)}.ml-6{margin-left:calc(var(--spacing) * 6)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.h-7{height:calc(var(--spacing) * 7)}.h-11{height:calc(var(--spacing) * 11)}.h-\[85vh\]{height:85vh}.h-full{height:100%}.h-screen{height:100vh}.max-h-72{max-height:calc(var(--spacing) * 72)}.max-h-80{max-height:calc(var(--spacing) * 80)}.max-h-\[min\(420px\,30vh\)\]{max-height:min(420px,30vh)}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-full{min-height:100%}.w-1{width:calc(var(--spacing) * 1)}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-4{width:calc(var(--spacing) * 4)}.w-56{width:calc(var(--spacing) * 56)}.w-\[90vw\]{width:90vw}.w-\[min\(480px\,30vw\)\]{width:min(480px,30vw)}.w-full{width:100%}.max-w-4xl{max-width:var(--container-4xl)}.max-w-none{max-width:none}.min-w-0{min-width:calc(var(--spacing) * 0)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-col-resize{cursor:col-resize}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-px>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(1px * var(--tw-space-y-reverse));margin-block-end:calc(1px * calc(1 - var(--tw-space-y-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-\[var\(--border-default\)\]>:not(:last-child)){border-color:var(--border-default)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-\[var\(--border-default\)\]{border-color:var(--border-default)}.border-\[var\(--brand-primary\)\]{border-color:var(--brand-primary)}.border-red-200{border-color:var(--color-red-200)}.bg-\[var\(--bg-base\)\]{background-color:var(--bg-base)}.bg-\[var\(--bg-muted\)\]{background-color:var(--bg-muted)}.bg-\[var\(--bg-surface\)\]{background-color:var(--bg-surface)}.bg-\[var\(--border-default\)\]{background-color:var(--border-default)}.bg-\[var\(--brand-primary\)\],.bg-\[var\(--brand-primary\)\]\/10{background-color:var(--brand-primary)}@supports (color:color-mix(in lab, red, red)){.bg-\[var\(--brand-primary\)\]\/10{background-color:color-mix(in oklab, var(--brand-primary) 10%, transparent)}}.bg-black\/40{background-color:#0006}@supports (color:color-mix(in lab, red, red)){.bg-black\/40{background-color:color-mix(in oklab, var(--color-black) 40%, transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-red-50{background-color:var(--color-red-50)}.bg-yellow-200{background-color:var(--color-yellow-200)}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:calc(var(--spacing) * 1)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.px-0\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pl-8{padding-left:calc(var(--spacing) * 8)}.text-center{text-align:center}.text-left{text-align:left}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[14px\]{font-size:14px}.text-\[15px\]{font-size:15px}.leading-\[1\.7\]{--tw-leading:1.7;line-height:1.7}.leading-none{--tw-leading:1;line-height:1}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-\[var\(--font-mono\)\]{--tw-font-weight:var(--font-mono);font-weight:var(--font-mono)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-wrap{text-wrap:wrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-\[var\(--brand-primary\)\]{color:var(--brand-primary)}.text-\[var\(--folder-text\)\]{color:var(--folder-text)}.text-\[var\(--text-muted\)\]{color:var(--text-muted)}.text-\[var\(--text-primary\)\]{color:var(--text-primary)}.text-\[var\(--text-secondary\)\]{color:var(--text-secondary)}.text-red-700{color:var(--color-red-700)}.text-white{color:var(--color-white)}.text-yellow-900{color:var(--color-yellow-900)}.uppercase{text-transform:uppercase}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.placeholder\:text-\[var\(--text-muted\)\]::placeholder{color:var(--text-muted)}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.hover\:bg-\[var\(--bg-hover\)\]:hover{background-color:var(--bg-hover)}.hover\:bg-\[var\(--bg-muted\)\]:hover{background-color:var(--bg-muted)}.hover\:bg-\[var\(--brand-primary\)\]:hover{background-color:var(--brand-primary)}.hover\:bg-blue-50:hover{background-color:var(--color-blue-50)}.hover\:text-\[var\(--brand-primary\)\]:hover{color:var(--brand-primary)}.hover\:text-\[var\(--text-primary\)\]:hover{color:var(--text-primary)}.hover\:text-\[var\(--text-secondary\)\]:hover{color:var(--text-secondary)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:border-\[var\(--brand-primary\)\]:focus{border-color:var(--brand-primary)}.focus\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\:ring-\[var\(--brand-primary\)\]:focus{--tw-ring-color:var(--brand-primary)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.prose-headings\:font-semibold :where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.prose-headings\:tracking-tight :where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.prose-headings\:text-\[var\(--text-primary\)\] :where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--text-primary)}.prose-h1\:mb-4 :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:calc(var(--spacing) * 4)}.prose-h1\:text-lg :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.prose-h1\:leading-snug :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.prose-h2\:mt-8 :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:calc(var(--spacing) * 8)}.prose-h2\:mb-3 :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:calc(var(--spacing) * 3)}.prose-h2\:border-b :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.prose-h2\:border-\[var\(--border-default\)\] :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--border-default)}.prose-h2\:pb-2 :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){padding-bottom:calc(var(--spacing) * 2)}.prose-h2\:text-\[15px\] :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:15px}.prose-h2\:leading-snug :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.prose-h3\:mt-6 :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:calc(var(--spacing) * 6)}.prose-h3\:mb-2 :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:calc(var(--spacing) * 2)}.prose-h3\:text-\[13px\] :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:13px}.prose-h3\:leading-snug :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.prose-p\:text-\[13px\] :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:13px}.prose-p\:leading-\[1\.75\] :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-leading:1.75;line-height:1.75}.prose-p\:text-\[var\(--text-secondary\)\] :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--text-secondary)}.prose-a\:font-medium :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.prose-a\:text-\[var\(--brand-primary\)\] :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--brand-primary)}.prose-a\:no-underline :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){text-decoration-line:none}@media (hover:hover){.hover\:prose-a\:underline:hover :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){text-decoration-line:underline}}.prose-blockquote\:border-l-\[var\(--brand-primary\)\] :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){border-left-color:var(--brand-primary)}.prose-blockquote\:text-\[var\(--text-muted\)\] :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--text-muted)}.prose-blockquote\:not-italic :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-style:normal}.prose-strong\:font-semibold :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.prose-strong\:text-\[var\(--text-primary\)\] :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--text-primary)}.prose-code\:rounded :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){border-radius:.25rem}.prose-code\:bg-\[var\(--bg-muted\)\] :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:var(--bg-muted)}.prose-code\:px-1 :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline:calc(var(--spacing) * 1)}.prose-code\:py-0\.5 :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){padding-block:calc(var(--spacing) * .5)}.prose-code\:text-xs :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.prose-code\:text-\[var\(--text-primary\)\] :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--text-primary)}.prose-code\:before\:content-none :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose-code\:after\:content-none :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:var(--tw-content);--tw-content:none;content:none}.prose-pre\:bg-\[var\(--bg-muted\)\] :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:var(--bg-muted)}.prose-pre\:text-xs :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.prose-pre\:text-\[var\(--text-primary\)\] :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--text-primary)}.prose-li\:text-\[13px\] :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:13px}.prose-li\:leading-\[1\.75\] :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-leading:1.75;line-height:1.75}.prose-li\:text-\[var\(--text-secondary\)\] :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--text-secondary)}.prose-table\:text-\[12px\] :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:12px}.prose-th\:bg-\[var\(--bg-muted\)\] :where(th):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:var(--bg-muted)}.prose-th\:px-3 :where(th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline:calc(var(--spacing) * 3)}.prose-th\:py-1\.5 :where(th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-block:calc(var(--spacing) * 1.5)}.prose-th\:text-left :where(th):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:left}.prose-th\:font-semibold :where(th):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.prose-th\:text-\[var\(--text-primary\)\] :where(th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--text-primary)}.prose-td\:border-\[var\(--border-default\)\] :where(td):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--border-default)}.prose-td\:px-3 :where(td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline:calc(var(--spacing) * 3)}.prose-td\:py-1\.5 :where(td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-block:calc(var(--spacing) * 1.5)}.prose-td\:text-\[var\(--text-secondary\)\] :where(td):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--text-secondary)}.prose-img\:rounded-lg :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){border-radius:var(--radius-lg)}.prose-hr\:border-\[var\(--border-default\)\] :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--border-default)}}:root{--font-sans:"Inter", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;--font-mono:"JetBrains Mono", "Fira Code", "Source Code Pro", "Cascadia Code", "Consolas", monospace;--bg-base:#f7f8fa;--bg-surface:#fff;--bg-muted:#f0f2f5;--bg-hover:#ebedf0;--text-primary:#1a1d23;--text-secondary:#4a5060;--text-muted:#8b92a0;--text-inverse:#fff;--border-default:#e0e3e8;--border-hover:#c8ccd3;--brand-primary:#2563eb;--brand-primary-hover:#1d4ed8;--folder-bg:#e8f0fe;--folder-border:#3b7ddb;--folder-text:#1a3a5c;--file-bg:#eee8fb;--file-border:#7c6ec7;--file-text:#3a356a;--add-bg:#ecfdf5;--add-color:#16a34a;--del-bg:#fef2f2;--del-color:#dc2626;--code-bg:#f0f2f5;--code-border:#e0e3e8}html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizelegibility;font-size:15px}body{font-family:var(--font-sans);background:var(--bg-base);color:var(--text-primary);letter-spacing:.01em;line-height:1.65}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--border-default);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--border-hover)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}