grimoire3d 0.0.0 → 0.1.0-dev.7d94e0e

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 (150) hide show
  1. package/README.md +23 -123
  2. package/cli/cli.js +348 -0
  3. package/cli/content.js +382 -0
  4. package/cli/cover-options.d.ts +15 -0
  5. package/cli/cover-options.js +105 -0
  6. package/cli/markdown.js +139 -0
  7. package/cli/markup.d.ts +3 -0
  8. package/cli/markup.js +60 -0
  9. package/cli/routes.d.ts +6 -0
  10. package/cli/routes.js +19 -0
  11. package/cli/static-pages.js +467 -0
  12. package/cli/video-url.d.ts +5 -0
  13. package/cli/video-url.js +51 -0
  14. package/dist/BookViewer-GXuBR_bC.js +339 -0
  15. package/dist/components/BookModel.d.ts +20 -0
  16. package/dist/components/BookViewer.d.ts +17 -0
  17. package/dist/components/index.d.ts +2 -0
  18. package/dist/components/index.js +1 -0
  19. package/dist/grimoire3d.css +3 -0
  20. package/dist/index.d.ts +8 -0
  21. package/dist/index.js +1 -0
  22. package/dist/main.d.ts +1 -0
  23. package/dist/site/assets/BookReader-D6Y6-YiA.js +2 -0
  24. package/dist/site/assets/BookScene-ClDai0Ew.js +4294 -0
  25. package/dist/site/assets/MermaidDiagram-BZ4xzlxF.js +44 -0
  26. package/dist/site/assets/PageMarkdown-8bd0sLEr.js +37 -0
  27. package/dist/site/assets/abnfDiagram-S7VZAUFO-BLtDZQsQ.js +1 -0
  28. package/dist/site/assets/alcove-cyX4Tv3E.avif +0 -0
  29. package/dist/site/assets/architecture-WOLXFQ4H-Br-SxDK7.js +1 -0
  30. package/dist/site/assets/architectureDiagram-YGSQEFNW-BMjvBU3D.js +36 -0
  31. package/dist/site/assets/blockDiagram-APKKGZFW-CJrjfQP8.js +140 -0
  32. package/dist/site/assets/bpmnIcons-APHXDYXF-C0jbCElo.js +1 -0
  33. package/dist/site/assets/c4Diagram-KJ2TOQU5-C_L7eR0-.js +38 -0
  34. package/dist/site/assets/catalog-07-UR91A.avif +0 -0
  35. package/dist/site/assets/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
  36. package/dist/site/assets/chunk-5VM5RSS4-ZNzvKenW.js +15 -0
  37. package/dist/site/assets/chunk-6MUBBAK2-DLDw-vT7.js +2 -0
  38. package/dist/site/assets/chunk-AXFCVDMN-0o4q-lH2.js +62 -0
  39. package/dist/site/assets/chunk-BG4553SI-CGVj-yfp.js +129 -0
  40. package/dist/site/assets/chunk-DQASFODM-BKuFhVEZ.js +10 -0
  41. package/dist/site/assets/chunk-DUW6YSOI-Dgx8z5s3.js +1 -0
  42. package/dist/site/assets/chunk-HFQBQIA3-98-S4lXj.js +1 -0
  43. package/dist/site/assets/chunk-J5ZVWO5B-oDCd-gWO.js +1 -0
  44. package/dist/site/assets/chunk-JWPE2WC7-DVXcaiue.js +1 -0
  45. package/dist/site/assets/chunk-KQLB2F66-Cwy4jCX-.js +2 -0
  46. package/dist/site/assets/chunk-KS47KZWR-DyN2V_V_.js +1 -0
  47. package/dist/site/assets/chunk-LEVMRMFU-D998hT2l.js +1 -0
  48. package/dist/site/assets/chunk-M57EVK23-DVNKK3KL.js +1 -0
  49. package/dist/site/assets/chunk-NGNAAXSQ-DI_UYJZ4.js +136 -0
  50. package/dist/site/assets/chunk-OY52VR5R-Do_eRCOT.js +88 -0
  51. package/dist/site/assets/chunk-QB3YPZ4I-CUKYR7fo.js +213 -0
  52. package/dist/site/assets/chunk-R3KSYZAL-BINu_oUt.js +1 -0
  53. package/dist/site/assets/chunk-STOXU5M4-DSOkDZ95.js +72 -0
  54. package/dist/site/assets/chunk-TU62E6Q5-CKPbcGB7.js +1 -0
  55. package/dist/site/assets/chunk-X4PVCEUW-x_8xZedM.js +1 -0
  56. package/dist/site/assets/chunk-XXDRQBXY-Ls7gbN4B.js +1 -0
  57. package/dist/site/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
  58. package/dist/site/assets/classDiagram-v2-L25IHNXF-BLswbJCW.js +217 -0
  59. package/dist/site/assets/cose-bilkent-JH36ORCC-jgZzNA8p.js +1 -0
  60. package/dist/site/assets/cover-blue-Bh8Xp4T5.avif +0 -0
  61. package/dist/site/assets/cover-blue-mobile-YcuYIg0I.avif +0 -0
  62. package/dist/site/assets/cover-green-By13JjUx.avif +0 -0
  63. package/dist/site/assets/cover-green-mobile-BNTgNt7v.avif +0 -0
  64. package/dist/site/assets/cover-red-mobile-DHOCz3wI.avif +0 -0
  65. package/dist/site/assets/cover-red-qvZEk3PI.avif +0 -0
  66. package/dist/site/assets/cynefin-EF2NZ3EQ-DA8OIyiG.js +1 -0
  67. package/dist/site/assets/cynefinDiagram-L36ESFBY-hsyd6FZA.js +62 -0
  68. package/dist/site/assets/cytoscape.esm-nTrd5EVq.js +321 -0
  69. package/dist/site/assets/d3-scale-CElPUUud.js +1 -0
  70. package/dist/site/assets/d3-selection-BgLPRw73.js +1 -0
  71. package/dist/site/assets/dagre-SPEB5RXH-CCtbYR55.js +4 -0
  72. package/dist/site/assets/diagram-3B7GL73J-DdBQoKkR.js +200 -0
  73. package/dist/site/assets/diagram-DNEMPZML-Df4RnpW9.js +24 -0
  74. package/dist/site/assets/diagram-L3MUGCDN-4lpf2zFh.js +41 -0
  75. package/dist/site/assets/diagram-LA4NIPWU-DTl6abGv.js +24 -0
  76. package/dist/site/assets/diagram-MHCOC4E2-TChI4LJC.js +3 -0
  77. package/dist/site/assets/diagram-XPFHEONP-BN2i8pem.js +30 -0
  78. package/dist/site/assets/dist-BkyV6i4k.js +1 -0
  79. package/dist/site/assets/ebnfDiagram-UZSYDL2S-CTBs0OrB.js +1 -0
  80. package/dist/site/assets/elk-XV6XMXQE-BPXZDIn6.js +27 -0
  81. package/dist/site/assets/erDiagram-EYBAPDEH-69s09FNs.js +99 -0
  82. package/dist/site/assets/es-YYQGP5MR.js +2 -0
  83. package/dist/site/assets/eventmodeling-K75KTNOO-Cv6nmcPj.js +1 -0
  84. package/dist/site/assets/favicon-C9YRygge.png +0 -0
  85. package/dist/site/assets/flowDiagram-MALGAFMO-DBtCHz69.js +1 -0
  86. package/dist/site/assets/ganttDiagram-23REXITY-DuPK4jhs.js +292 -0
  87. package/dist/site/assets/gitGraph-VSP46ZUC-Bde1Q0wm.js +1 -0
  88. package/dist/site/assets/gitGraphDiagram-STJD7YCW-CFFq3ISs.js +106 -0
  89. package/dist/site/assets/graphlib-DS17s2tU.js +1 -0
  90. package/dist/site/assets/index-aLXzUwjX.css +1 -0
  91. package/dist/site/assets/index-c2f4iI83.js +2 -0
  92. package/dist/site/assets/info-OHQRW6UA-Dq-6TQob.js +1 -0
  93. package/dist/site/assets/infoDiagram-KBXO4MBG-Dhu_km6o.js +2 -0
  94. package/dist/site/assets/ishikawaDiagram-M35NCXHK-DaADHVsr.js +70 -0
  95. package/dist/site/assets/journeyDiagram-OPLOXDXO-CH4pGZdE.js +139 -0
  96. package/dist/site/assets/jsxRuntime-WpZ1bTm4.js +1 -0
  97. package/dist/site/assets/kanban-definition-BZKZHSQY-CwG8xTtA.js +89 -0
  98. package/dist/site/assets/katex-MEuSR36T.js +257 -0
  99. package/dist/site/assets/mermaid-parser.core-Bffyim8R.js +7 -0
  100. package/dist/site/assets/mindmap-definition-I2QAS2VK-CV27wfks.js +98 -0
  101. package/dist/site/assets/mobile-cabinet-BUr9vtlo.avif +0 -0
  102. package/dist/site/assets/mobile-cabinet-sm-pauJUfRH.avif +0 -0
  103. package/dist/site/assets/mobile-paper-DF0CuLes.avif +0 -0
  104. package/dist/site/assets/mobile-paper-sm-77eJHX6h.avif +0 -0
  105. package/dist/site/assets/open-nWGD2hyb.glb +0 -0
  106. package/dist/site/assets/packet-JDAUHWVQ-DyTXCyJi.js +1 -0
  107. package/dist/site/assets/pegDiagram-FD4XPPHP-CxeieYHG.js +1 -0
  108. package/dist/site/assets/pie-XZMESJXO-D41O9C3e.js +1 -0
  109. package/dist/site/assets/pieDiagram-J4AKIIQI-S021BZ2O.js +39 -0
  110. package/dist/site/assets/quadrantDiagram-XTYBLID2-CS3Wnh9t.js +7 -0
  111. package/dist/site/assets/radar-ABXABTNO-BxXELdSz.js +1 -0
  112. package/dist/site/assets/railroad-I3PHUGI6-DiCj9Bvm.js +1 -0
  113. package/dist/site/assets/railroad-abnf-LNEFI6M7-lZG67lnF.js +1 -0
  114. package/dist/site/assets/railroad-ebnf-DWYD2UWJ-BRsn72BC.js +1 -0
  115. package/dist/site/assets/railroad-peg-JR7BVNR7-CtPpRSc3.js +1 -0
  116. package/dist/site/assets/railroadDiagram-MRQ6NCDL-iaKQfjRw.js +1 -0
  117. package/dist/site/assets/requirementDiagram-Y7LWUY3S-CMzSSfA0.js +84 -0
  118. package/dist/site/assets/resting-amber-BSjsErIg.avif +0 -0
  119. package/dist/site/assets/resting-black-DDQ4XMJI.avif +0 -0
  120. package/dist/site/assets/resting-blue-DDOT8IQ8.avif +0 -0
  121. package/dist/site/assets/resting-green-DkRrV8eX.avif +0 -0
  122. package/dist/site/assets/resting-ivory-CEqoG5yI.avif +0 -0
  123. package/dist/site/assets/resting-plum-B-8tkSmP.avif +0 -0
  124. package/dist/site/assets/resting-red-D0hLpMpz.avif +0 -0
  125. package/dist/site/assets/resting-slate-CH8Z_Rky.avif +0 -0
  126. package/dist/site/assets/resting-teal-CGt6jFmT.avif +0 -0
  127. package/dist/site/assets/resting-walnut-t3WgHgUO.avif +0 -0
  128. package/dist/site/assets/rough.esm-Dy-Kn_BL.js +1 -0
  129. package/dist/site/assets/sankeyDiagram-WGJFYUXA-C-zNVN8E.js +40 -0
  130. package/dist/site/assets/search-stage-B8cH1AE_.avif +0 -0
  131. package/dist/site/assets/search-stage-mobile-BZ58ew4F.avif +0 -0
  132. package/dist/site/assets/sequenceDiagram-5NDRBG5M-CTZLsRjA.js +169 -0
  133. package/dist/site/assets/sizeCapture-INFHLROL-3uHXrFqA.js +1 -0
  134. package/dist/site/assets/stateDiagram-v2-FJ4FJNEA-DnJQgyn2.js +291 -0
  135. package/dist/site/assets/swimlanes-UMQ2AFYF-Cxof6TWX.js +1 -0
  136. package/dist/site/assets/swimlanesDiagram-OMPLPG4O-CSKTfgXj.js +8 -0
  137. package/dist/site/assets/three-core-B1q6MRTI.js +5 -0
  138. package/dist/site/assets/timeline-definition-SEUHKTQE-CvE1EwLK.js +120 -0
  139. package/dist/site/assets/treeView-D4JQ5SDB-Cnco8mDb.js +1 -0
  140. package/dist/site/assets/treemap-SAJKECNS-B23_S7Go.js +1 -0
  141. package/dist/site/assets/usecaseDiagram-AFA6YXN4-CllyFV7U.js +328 -0
  142. package/dist/site/assets/vennDiagram-NNMJR3RB-DrwAMqYF.js +34 -0
  143. package/dist/site/assets/wardley-7MLQ67FV-CPxB3VDK.js +1 -0
  144. package/dist/site/assets/wardleyDiagram-S7YFUSEH-CzdqWBzS.js +78 -0
  145. package/dist/site/assets/xychartDiagram-GGNKY7IX-DCr2dgbN.js +7 -0
  146. package/dist/site/index.html +15 -0
  147. package/dist/types/index.d.ts +163 -0
  148. package/package.json +50 -28
  149. package/dist/grimoire3d.js +0 -504
  150. package/dist/grimoire3d.umd.cjs +0 -27
@@ -0,0 +1,106 @@
1
+ import{t as e}from"./chunk-2Q5K7J3B-C1jixKkw.js";import{t}from"./chunk-JWPE2WC7-DVXcaiue.js";import{_ as n,h as r,i}from"./chunk-6MUBBAK2-DLDw-vT7.js";import{C as a,H as o,U as s,X as c,_ as l,a as u,b as d,f,q as p,s as m,v as h,y as g}from"./chunk-BG4553SI-CGVj-yfp.js";import{n as _,t as v}from"./d3-selection-BgLPRw73.js";import{n as y}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{n as b}from"./mermaid-parser.core-Bffyim8R.js";var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},ee=f.gitGraph,S=y(()=>i({...ee,...g().gitGraph}),`getConfig`),C=new e(()=>{let e=S(),t=e.mainBranchName,n=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:n}]]),branches:new Map([[t,null]]),currBranch:t,direction:`LR`,seq:0,options:{}}});function w(){return r({length:7})}y(w,`getID`);function T(e,t){let n=Object.create(null);return e.reduce((e,r)=>{let i=t(r);return n[i]||(n[i]=!0,e.push(r)),e},[])}y(T,`uniqBy`);var te=y(function(e){C.records.direction=e},`setDirection`),ne=y(function(e){_.debug(`options str`,e),e=e?.trim(),e||=`{}`;try{C.records.options=JSON.parse(e)}catch(e){_.error(`error while parsing gitGraph options`,e.message)}},`setOptions`),re=y(function(){return C.records.options},`getOptions`),ie=y(function(e){let t=e.msg,n=e.id,r=e.type,i=e.tags;_.info(`commit`,t,n,r,i),_.debug(`Entering commit:`,t,n,r,i);let a=S();n=m.sanitizeText(n,a),t=m.sanitizeText(t,a),i=i?.map(e=>m.sanitizeText(e,a));let o={id:n||C.records.seq+`-`+w(),message:t,seq:C.records.seq++,type:r??x.NORMAL,tags:i??[],parents:C.records.head==null?[]:[C.records.head.id],branch:C.records.currBranch};C.records.head=o,_.info(`main branch`,a.mainBranchName),C.records.commits.has(o.id)&&_.warn(`Commit ID ${o.id} already exists`),C.records.commits.set(o.id,o),C.records.branches.set(C.records.currBranch,o.id),_.debug(`in pushCommit `+o.id)},`commit`),ae=y(function(e){let t=e.name,n=e.order;if(t=m.sanitizeText(t,S()),C.records.branches.has(t))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);C.records.branches.set(t,C.records.head==null?null:C.records.head.id),C.records.branchConfig.set(t,{name:t,order:n}),E(t),_.debug(`in createBranch`)},`branch`),oe=y(e=>{let t=e.branch,n=e.id,r=e.type,i=e.tags,a=S();t=m.sanitizeText(t,a),n&&=m.sanitizeText(n,a);let o=C.records.branches.get(C.records.currBranch),s=C.records.branches.get(t),c=o?C.records.commits.get(o):void 0,l=s?C.records.commits.get(s):void 0;if(c&&l&&c.branch===t)throw Error(`Cannot merge branch '${t}' into itself.`);if(C.records.currBranch===t){let e=Error(`Incorrect usage of "merge". Cannot merge a branch to itself`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(c===void 0||!c){let e=Error(`Incorrect usage of "merge". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`commit`]},e}if(!C.records.branches.has(t)){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) does not exist`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch ${t}`]},e}if(l===void 0||!l){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`"commit"`]},e}if(c===l){let e=Error(`Incorrect usage of "merge". Both branches have same head`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(n&&C.records.commits.has(n)){let e=Error(`Incorrect usage of "merge". Commit with id:`+n+` already exists, use different custom id`);throw e.hash={text:`merge ${t} ${n} ${r} ${i?.join(` `)}`,token:`merge ${t} ${n} ${r} ${i?.join(` `)}`,expected:[`merge ${t} ${n}_UNIQUE ${r} ${i?.join(` `)}`]},e}let u=s||``,d={id:n||`${C.records.seq}-${w()}`,message:`merged branch ${t} into ${C.records.currBranch}`,seq:C.records.seq++,parents:C.records.head==null?[]:[C.records.head.id,u],branch:C.records.currBranch,type:x.MERGE,customType:r,customId:!!n,tags:i??[]};C.records.head=d,C.records.commits.set(d.id,d),C.records.branches.set(C.records.currBranch,d.id),_.debug(C.records.branches),_.debug(`in mergeBranch`)},`merge`),se=y(function(e){let t=e.id,n=e.targetId,r=e.tags,i=e.parent;_.debug(`Entering cherryPick:`,t,n,r);let a=S();if(t=m.sanitizeText(t,a),n=m.sanitizeText(n,a),r=r?.map(e=>m.sanitizeText(e,a)),i=m.sanitizeText(i,a),!t||!C.records.commits.has(t)){let e=Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let o=C.records.commits.get(t);if(o===void 0||!o)throw Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);if(i&&!(Array.isArray(o.parents)&&o.parents.includes(i)))throw Error(`Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.`);let s=o.branch;if(o.type===x.MERGE&&!i)throw Error(`Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.`);if(!n||!C.records.commits.has(n)){if(s===C.records.currBranch){let e=Error(`Incorrect usage of "cherryPick". Source commit is already on current branch`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let e=C.records.branches.get(C.records.currBranch);if(e===void 0||!e){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let a=C.records.commits.get(e);if(a===void 0||!a){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let c={id:C.records.seq+`-`+w(),message:`cherry-picked ${o?.message} into ${C.records.currBranch}`,seq:C.records.seq++,parents:C.records.head==null?[]:[C.records.head.id,o.id],branch:C.records.currBranch,type:x.CHERRY_PICK,tags:r?r.filter(Boolean):[`cherry-pick:${o.id}${o.type===x.MERGE?`|parent:${i}`:``}`]};C.records.head=c,C.records.commits.set(c.id,c),C.records.branches.set(C.records.currBranch,c.id),_.debug(C.records.branches),_.debug(`in cherryPick`)}},`cherryPick`),E=y(function(e){if(e=m.sanitizeText(e,S()),C.records.branches.has(e)){C.records.currBranch=e;let t=C.records.branches.get(C.records.currBranch);t===void 0||!t?C.records.head=null:C.records.head=C.records.commits.get(t)??null}else{let t=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw t.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},t}},`checkout`);function D(e,t,n){let r=e.indexOf(t);r===-1?e.push(n):e.splice(r,1,n)}y(D,`upsert`);function O(e){let t=e.reduce((e,t)=>e.seq>t.seq?e:t,e[0]),n=``;e.forEach(function(e){n+=e===t?` *`:` |`});let r=[n,t.id,t.seq];for(let e in C.records.branches)C.records.branches.get(e)===t.id&&r.push(e);if(_.debug(r.join(` `)),t.parents&&t.parents.length==2&&t.parents[0]&&t.parents[1]){let n=C.records.commits.get(t.parents[0]);D(e,t,n),t.parents[1]&&e.push(C.records.commits.get(t.parents[1]))}else if(t.parents.length==0)return;else if(t.parents[0]){let n=C.records.commits.get(t.parents[0]);D(e,t,n)}e=T(e,e=>e.id),O(e)}y(O,`prettyPrintCommitHistory`);var ce=y(function(){_.debug(C.records.commits);let e=k()[0];O([e])},`prettyPrint`),le=y(function(){C.reset(),u()},`clear`),ue=y(function(){return[...C.records.branchConfig.values()].map((e,t)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${t}`)}).sort((e,t)=>(e.order??0)-(t.order??0)).map(({name:e})=>({name:e}))},`getBranchesAsObjArray`),de=y(function(){return C.records.branches},`getBranches`),fe=y(function(){return C.records.commits},`getCommits`),k=y(function(){let e=[...C.records.commits.values()];return e.forEach(function(e){_.debug(e.id)}),e.sort((e,t)=>e.seq-t.seq),e},`getCommitsArray`),A={commitType:x,getConfig:S,setDirection:te,setOptions:ne,getOptions:re,commit:ie,branch:ae,merge:oe,cherryPick:se,checkout:E,prettyPrint:ce,clear:le,getBranchesAsObjArray:ue,getBranches:de,getCommits:fe,getCommitsArray:k,getCurrentBranch:y(function(){return C.records.currBranch},`getCurrentBranch`),getDirection:y(function(){return C.records.direction},`getDirection`),getHead:y(function(){return C.records.head},`getHead`),setAccTitle:s,getAccTitle:h,getAccDescription:l,setAccDescription:o,setDiagramTitle:p,getDiagramTitle:a},pe=y((e,n)=>{t(e,n),e.dir&&n.setDirection(e.dir);for(let t of e.statements)me(t,n)},`populate`),me=y((e,t)=>{let n={Commit:y(e=>t.commit(he(e)),`Commit`),Branch:y(e=>t.branch(ge(e)),`Branch`),Merge:y(e=>t.merge(_e(e)),`Merge`),Checkout:y(e=>t.checkout(ve(e)),`Checkout`),CherryPicking:y(e=>t.cherryPick(ye(e)),`CherryPicking`)}[e.$type];n?n(e):_.error(`Unknown statement type: ${e.$type}`)},`parseStatement`),he=y(e=>({id:e.id,msg:e.message??``,type:e.type===void 0?x.NORMAL:x[e.type],tags:e.tags??void 0}),`parseCommit`),ge=y(e=>({name:e.name,order:e.order??0}),`parseBranch`),_e=y(e=>({branch:e.branch,id:e.id??``,type:e.type===void 0?void 0:x[e.type],tags:e.tags??void 0}),`parseMerge`),ve=y(e=>e.branch,`parseCheckout`),ye=y(e=>({id:e.id,targetId:``,tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),`parseCherryPicking`),be={parse:y(async e=>{let t=await b(`gitGraph`,e);_.debug(t),pe(t,A)},`parse`)},j=10,M=40,N=4,P=2,F=8,I=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),L=12,R=new Set([`redux-color`,`redux-dark-color`]),xe=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),z=y((e,t,n=!1)=>n&&e>0?(e-1)%(t-1)+1:e%t,`calcColorIndex`),B=new Map,V=new Map,H=30,U=new Map,W=[],G=0,K=`LR`,Se=y(()=>{B.clear(),V.clear(),U.clear(),G=0,W=[],K=`LR`},`clear`),q=y(e=>{let t=document.createElementNS(`http://www.w3.org/2000/svg`,`text`);return(typeof e==`string`?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(e=>{let n=document.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);n.setAttributeNS(`http://www.w3.org/XML/1998/namespace`,`xml:space`,`preserve`),n.setAttribute(`dy`,`1em`),n.setAttribute(`x`,`0`),n.setAttribute(`class`,`row`),n.textContent=e.trim(),t.appendChild(n)}),t},`drawText`),J=y(e=>{let t,n,r;return K===`BT`?(n=y((e,t)=>e<=t,`comparisonFunc`),r=1/0):(n=y((e,t)=>e>=t,`comparisonFunc`),r=0),e.forEach(e=>{let i=K===`TB`||K==`BT`?V.get(e)?.y:V.get(e)?.x;i!==void 0&&n(i,r)&&(t=e,r=i)}),t},`findClosestParent`),Y=y(e=>{let t=``,n=1/0;return e.forEach(e=>{let r=V.get(e).y;r<=n&&(t=e,n=r)}),t||void 0},`findClosestParentBT`),Ce=y((e,t,n)=>{let r=n,i=n,a=[];e.forEach(e=>{let n=t.get(e);if(!n)throw Error(`Commit not found for key ${e}`);n.parents.length?(r=Te(n),i=Math.max(r,i)):a.push(n),Ee(n,r)}),r=i,a.forEach(e=>{De(e,r,n)}),e.forEach(e=>{let n=t.get(e);if(n?.parents.length){let e=Y(n.parents);r=V.get(e).y-M,r<=i&&(i=r);let t=B.get(n.branch).pos,a=r-j;V.set(n.id,{x:t,y:a})}})},`setParallelBTPos`),we=y(e=>{let t=J(e.parents.filter(e=>e!==null));if(!t)throw Error(`Closest parent not found for commit ${e.id}`);let n=V.get(t)?.y;if(n===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return n},`findClosestParentPos`),Te=y(e=>we(e)+M,`calculateCommitPosition`),Ee=y((e,t)=>{let n=B.get(e.branch);if(!n)throw Error(`Branch not found for commit ${e.id}`);let r=n.pos,i=t+j;return V.set(e.id,{x:r,y:i}),{x:r,y:i}},`setCommitPosition`),De=y((e,t,n)=>{let r=B.get(e.branch);if(!r)throw Error(`Branch not found for commit ${e.id}`);let i=t+n,a=r.pos;V.set(e.id,{x:a,y:i})},`setRootPosition`),Oe=y((e,t,n,r,i,a)=>{let{theme:o}=d(),s=I.has(o??``),c=R.has(o??``),l=xe.has(o??``);if(a===x.HIGHLIGHT)e.append(`rect`).attr(`x`,n.x-10+(s?3:0)).attr(`y`,n.y-10+(s?3:0)).attr(`width`,s?14:20).attr(`height`,s?14:20).attr(`class`,`commit ${t.id} commit-highlight${z(i,F,c)} ${r}-outer`),e.append(`rect`).attr(`x`,n.x-6+(s?2:0)).attr(`y`,n.y-6+(s?2:0)).attr(`width`,s?8:12).attr(`height`,s?8:12).attr(`class`,`commit ${t.id} commit${z(i,F,c)} ${r}-inner`);else if(a===x.CHERRY_PICK)e.append(`circle`).attr(`cx`,n.x).attr(`cy`,n.y).attr(`r`,s?7:10).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x-3).attr(`cy`,n.y+2).attr(`r`,s?2.5:2.75).attr(`fill`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x+3).attr(`cy`,n.y+2).attr(`r`,s?2.5:2.75).attr(`fill`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x+3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x-3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`);else{let o=e.append(`circle`);if(o.attr(`cx`,n.x),o.attr(`cy`,n.y),o.attr(`r`,s?7:10),o.attr(`class`,`commit ${t.id} commit${z(i,F,c)}`),a===x.MERGE){let a=e.append(`circle`);a.attr(`cx`,n.x),a.attr(`cy`,n.y),a.attr(`r`,s?5:6),a.attr(`class`,`commit ${r} ${t.id} commit${z(i,F,c)}`)}if(a===x.REVERSE){let a=e.append(`path`),o=s?4:5;a.attr(`d`,`M ${n.x-o},${n.y-o}L${n.x+o},${n.y+o}M${n.x-o},${n.y+o}L${n.x+o},${n.y-o}`).attr(`class`,`commit ${r} ${t.id} commit${z(i,F,c)}`)}}},`drawCommitBullet`),ke=y((e,t,n,r,i)=>{if(t.type!==x.CHERRY_PICK&&(t.customId&&t.type===x.MERGE||t.type!==x.MERGE)&&i.showCommitLabel){let a=e.append(`g`),o=a.insert(`rect`).attr(`class`,`commit-label-bkg`),s=a.append(`text`).attr(`x`,r).attr(`y`,n.y+25).attr(`class`,`commit-label`).text(t.id),c=s.node()?.getBBox();if(c&&(o.attr(`x`,n.posWithOffset-c.width/2-P).attr(`y`,n.y+13.5).attr(`width`,c.width+2*P).attr(`height`,c.height+2*P),K===`TB`||K===`BT`?(o.attr(`x`,n.x-(c.width+4*N+5)).attr(`y`,n.y-12),s.attr(`x`,n.x-(c.width+4*N)).attr(`y`,n.y+c.height-12)):s.attr(`x`,n.posWithOffset-c.width/2),i.rotateCommitLabel)){if(K===`TB`||K===`BT`)s.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`),o.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`);else{let e=-7.5-(c.width+10)/25*9.5,t=10+c.width/25*8.5;a.attr(`transform`,`translate(`+e+`, `+t+`) rotate(-45, `+r+`, `+n.y+`)`)}}}},`drawCommitLabel`),Ae=y((e,t,n,r)=>{if(t.tags.length>0){let i=0,a=0,o=0,s=[];for(let r of t.tags.reverse()){let t=e.insert(`polygon`),c=e.append(`circle`),l=e.append(`text`).attr(`y`,n.y-16-i).attr(`class`,`tag-label`).text(r),u=l.node()?.getBBox();if(!u)throw Error(`Tag bbox not found`);a=Math.max(a,u.width),o=Math.max(o,u.height),l.attr(`x`,n.posWithOffset-u.width/2),s.push({tag:l,hole:c,rect:t,yOffset:i}),i+=20}for(let{tag:e,hole:t,rect:i,yOffset:c}of s){let s=o/2,l=n.y-19.2-c;if(i.attr(`class`,`tag-label-bkg`).attr(`points`,`
2
+ ${r-a/2-N/2},${l+P}
3
+ ${r-a/2-N/2},${l-P}
4
+ ${n.posWithOffset-a/2-N},${l-s-P}
5
+ ${n.posWithOffset+a/2+N},${l-s-P}
6
+ ${n.posWithOffset+a/2+N},${l+s+P}
7
+ ${n.posWithOffset-a/2-N},${l+s+P}`),t.attr(`cy`,l).attr(`cx`,r-a/2+N/2).attr(`r`,1.5).attr(`class`,`tag-hole`),K===`TB`||K===`BT`){let o=r+c;i.attr(`class`,`tag-label-bkg`).attr(`points`,`
8
+ ${n.x},${o+2}
9
+ ${n.x},${o-2}
10
+ ${n.x+j},${o-s-2}
11
+ ${n.x+j+a+4},${o-s-2}
12
+ ${n.x+j+a+4},${o+s+2}
13
+ ${n.x+j},${o+s+2}`).attr(`transform`,`translate(12,12) rotate(45, `+n.x+`,`+r+`)`),t.attr(`cx`,n.x+N/2).attr(`cy`,o).attr(`transform`,`translate(12,12) rotate(45, `+n.x+`,`+r+`)`),e.attr(`x`,n.x+5).attr(`y`,o+3).attr(`transform`,`translate(14,14) rotate(45, `+n.x+`,`+r+`)`)}}}},`drawCommitTags`),je=y(e=>{switch(e.customType??e.type){case x.NORMAL:return`commit-normal`;case x.REVERSE:return`commit-reverse`;case x.HIGHLIGHT:return`commit-highlight`;case x.MERGE:return`commit-merge`;case x.CHERRY_PICK:return`commit-cherry-pick`;default:return`commit-normal`}},`getCommitClassType`),Me=y((e,t,n,r)=>{let i={x:0,y:0};if(e.parents.length>0){let n=J(e.parents);if(n){let a=r.get(n)??i;return t===`TB`?a.y+M:t===`BT`?(r.get(e.id)??i).y-M:a.x+M}}else if(t===`TB`)return H;else if(t===`BT`)return(r.get(e.id)??i).y-M;else return 0;return 0},`calculatePosition`),Ne=y((e,t,n)=>{let r=K===`BT`&&n?t:t+j,i=B.get(e.branch)?.pos,a=K===`TB`||K===`BT`?B.get(e.branch)?.pos:r;if(a===void 0||i===void 0)throw Error(`Position were undefined for commit ${e.id}`);let o=I.has(d().theme??``);return{x:a,y:K===`TB`||K===`BT`?r:i+(o?L/2+1:-2),posWithOffset:r}},`getCommitPosition`),X=y((e,t,n,r)=>{let i=e.append(`g`).attr(`class`,`commit-bullets`),a=e.append(`g`).attr(`class`,`commit-labels`),o=K===`TB`||K===`BT`?H:0,s=[...t.keys()],c=r.parallelCommits??!1,l=y((e,n)=>{let r=t.get(e)?.seq,i=t.get(n)?.seq;return r!==void 0&&i!==void 0?r-i:0},`sortKeys`),u=s.sort(l);K===`BT`&&(c&&Ce(u,t,o),u=u.reverse()),u.forEach(e=>{let s=t.get(e);if(!s)throw Error(`Commit not found for key ${e}`);c&&(o=Me(s,K,o,V));let l=Ne(s,o,c);if(n){let e=je(s),t=s.customType??s.type,n=B.get(s.branch)?.index??0;Oe(i,s,l,e,n,t),ke(a,s,l,o,r),Ae(a,s,l,o)}K===`TB`||K===`BT`?V.set(s.id,{x:l.x,y:l.posWithOffset}):V.set(s.id,{x:l.posWithOffset,y:l.y}),o=K===`BT`&&c?o+M:o+M+j,o>G&&(G=o)})},`drawCommits`),Pe=y((e,t,n,r,i)=>{let a=(K===`TB`||K===`BT`?n.x<r.x:n.y<r.y)?t.branch:e.branch,o=y(e=>e.branch===a,`isOnBranchToGetCurve`),s=y(n=>n.seq>e.seq&&n.seq<t.seq,`isBetweenCommits`);return[...i.values()].some(e=>s(e)&&o(e))},`shouldRerouteArrow`),Z=y((e,t,n=0)=>{let r=e+Math.abs(e-t)/2;return n>5?r:W.every(e=>Math.abs(e-r)>=10)?(W.push(r),r):Z(e,t-Math.abs(e-t)/5,n+1)},`findLane`),Fe=y((e,t,n,r)=>{let{theme:i}=d(),a=R.has(i??``),o=V.get(t.id),s=V.get(n.id);if(o===void 0||s===void 0)throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);let c=Pe(t,n,o,s,r),l=``,u=``,f=0,p=0,m=B.get(n.branch)?.index;n.type===x.MERGE&&t.id!==n.parents[0]&&(m=B.get(t.branch)?.index);let h;if(c){l=`A 10 10, 0, 0, 0,`,u=`A 10 10, 0, 0, 1,`,f=10,p=10;let e=o.y<s.y?Z(o.y,s.y):Z(s.y,o.y),n=o.x<s.x?Z(o.x,s.x):Z(s.x,o.x);K===`TB`?o.x<s.x?h=`M ${o.x} ${o.y} L ${n-f} ${o.y} ${u} ${n} ${o.y+p} L ${n} ${s.y-f} ${l} ${n+p} ${s.y} L ${s.x} ${s.y}`:(m=B.get(t.branch)?.index,h=`M ${o.x} ${o.y} L ${n+f} ${o.y} ${l} ${n} ${o.y+p} L ${n} ${s.y-f} ${u} ${n-p} ${s.y} L ${s.x} ${s.y}`):K===`BT`?o.x<s.x?h=`M ${o.x} ${o.y} L ${n-f} ${o.y} ${l} ${n} ${o.y-p} L ${n} ${s.y+f} ${u} ${n+p} ${s.y} L ${s.x} ${s.y}`:(m=B.get(t.branch)?.index,h=`M ${o.x} ${o.y} L ${n+f} ${o.y} ${u} ${n} ${o.y-p} L ${n} ${s.y+f} ${l} ${n-p} ${s.y} L ${s.x} ${s.y}`):o.y<s.y?h=`M ${o.x} ${o.y} L ${o.x} ${e-f} ${l} ${o.x+p} ${e} L ${s.x-f} ${e} ${u} ${s.x} ${e+p} L ${s.x} ${s.y}`:(m=B.get(t.branch)?.index,h=`M ${o.x} ${o.y} L ${o.x} ${e+f} ${u} ${o.x+p} ${e} L ${s.x-f} ${e} ${l} ${s.x} ${e-p} L ${s.x} ${s.y}`)}else l=`A 20 20, 0, 0, 0,`,u=`A 20 20, 0, 0, 1,`,f=20,p=20,K===`TB`?(o.x<s.x&&(h=n.type===x.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${s.y-f} ${l} ${o.x+p} ${s.y} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${s.x-f} ${o.y} ${u} ${s.x} ${o.y+p} L ${s.x} ${s.y}`),o.x>s.x&&(l=`A 20 20, 0, 0, 0,`,u=`A 20 20, 0, 0, 1,`,f=20,p=20,h=n.type===x.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${s.y-f} ${u} ${o.x-p} ${s.y} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${s.x+f} ${o.y} ${l} ${s.x} ${o.y+p} L ${s.x} ${s.y}`),o.x===s.x&&(h=`M ${o.x} ${o.y} L ${s.x} ${s.y}`)):K===`BT`?(o.x<s.x&&(h=n.type===x.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${s.y+f} ${u} ${o.x+p} ${s.y} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${s.x-f} ${o.y} ${l} ${s.x} ${o.y-p} L ${s.x} ${s.y}`),o.x>s.x&&(l=`A 20 20, 0, 0, 0,`,u=`A 20 20, 0, 0, 1,`,f=20,p=20,h=n.type===x.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${s.y+f} ${l} ${o.x-p} ${s.y} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${s.x+f} ${o.y} ${u} ${s.x} ${o.y-p} L ${s.x} ${s.y}`),o.x===s.x&&(h=`M ${o.x} ${o.y} L ${s.x} ${s.y}`)):(o.y<s.y&&(h=n.type===x.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${s.x-f} ${o.y} ${u} ${s.x} ${o.y+p} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${o.x} ${s.y-f} ${l} ${o.x+p} ${s.y} L ${s.x} ${s.y}`),o.y>s.y&&(h=n.type===x.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${s.x-f} ${o.y} ${l} ${s.x} ${o.y-p} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${o.x} ${s.y+f} ${u} ${o.x+p} ${s.y} L ${s.x} ${s.y}`),o.y===s.y&&(h=`M ${o.x} ${o.y} L ${s.x} ${s.y}`));if(h===void 0)throw Error(`Line definition not found`);e.append(`path`).attr(`d`,h).attr(`class`,`arrow arrow`+z(m,F,a))},`drawArrow`),Ie=y((e,t)=>{let n=e.append(`g`).attr(`class`,`commit-arrows`);[...t.keys()].forEach(e=>{let r=t.get(e);r.parents&&r.parents.length>0&&r.parents.forEach(e=>{Fe(n,t.get(e),r,t)})})},`drawArrows`),Le=y((e,t,n,r)=>{let{look:i,theme:a,themeVariables:o}=d(),{dropShadow:s,THEME_COLOR_LIMIT:c}=o,l=I.has(a??``),u=R.has(a??``),f=e.append(`g`);t.forEach((e,t)=>{let a=z(t,l?c:F,u),o=B.get(e.name)?.pos;if(o===void 0)throw Error(`Position not found for branch ${e.name}`);let d=K===`TB`||K===`BT`?o:l?o+L/2+1:o-2,p=f.append(`line`);p.attr(`x1`,0),p.attr(`y1`,d),p.attr(`x2`,G),p.attr(`y2`,d),p.attr(`class`,`branch branch`+a),K===`TB`?(p.attr(`y1`,H),p.attr(`x1`,o),p.attr(`y2`,G),p.attr(`x2`,o)):K===`BT`&&(p.attr(`y1`,G),p.attr(`x1`,o),p.attr(`y2`,H),p.attr(`x2`,o)),W.push(d);let m=e.name,h=q(m),g=f.insert(`rect`),_=f.insert(`g`).attr(`class`,`branchLabel`).insert(`g`).attr(`class`,`label branch-label`+a);_.node().appendChild(h);let v=h.getBBox(),y=l?0:4,b=l?16:0,x=l?L:0;i===`neo`&&g.attr(`data-look`,`neo`),g.attr(`class`,`branchLabelBkg label`+a).attr(`style`,i===`neo`?`filter:${l?`url(#${r}-drop-shadow)`:s}`:``).attr(`rx`,y).attr(`ry`,y).attr(`x`,-v.width-4-(n.rotateCommitLabel===!0?30:0)).attr(`y`,-v.height/2+10).attr(`width`,v.width+18+b).attr(`height`,v.height+4+x),_.attr(`transform`,`translate(`+(-v.width-14-(n.rotateCommitLabel===!0?30:0)+b/2)+`, `+(d-v.height/2-2)+`)`),K===`TB`?(g.attr(`x`,o-v.width/2-10).attr(`y`,0),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, 0)`),l&&(g.attr(`transform`,`translate(${-b/2-3}, ${-x-10})`),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, `+(-x*2+7)+`)`))):K===`BT`?(g.attr(`x`,o-v.width/2-10).attr(`y`,G),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, `+G+`)`),l&&(g.attr(`transform`,`translate(${-b/2-3}, ${x+10})`),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, `+(G+x*2+4)+`)`))):g.attr(`transform`,`translate(-19, `+(d-12-x/2)+`)`)})},`drawBranches`),Re=y(function(e,t,n,r,i){return B.set(e,{pos:t,index:n}),t+=50+(i?40:0)+(K===`TB`||K===`BT`?r.width/2:0),t},`setBranchPosition`),ze={draw:y(function(e,t,r,i){Se(),_.debug(`in gitgraph renderer`,e+`
14
+ `,`id:`,t,r);let a=i.db;if(!a.getConfig){_.error(`getConfig method is not available on db`);return}let o=a.getConfig(),s=o.rotateCommitLabel??!1;U=a.getCommits();let l=a.getBranchesAsObjArray();K=a.getDirection();let u=v(`[id="${t}"]`),{look:f,theme:p,themeVariables:m}=d(),{useGradient:h,gradientStart:g,gradientStop:y,filterColor:b}=m;if(h){let e=u.append(`defs`).append(`linearGradient`).attr(`id`,t+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);e.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,g).attr(`stop-opacity`,1),e.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,y).attr(`stop-opacity`,1)}f===`neo`&&I.has(p??``)&&u.append(`defs`).append(`filter`).attr(`id`,t+`-drop-shadow`).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,b);let x=0;l.forEach((e,t)=>{let n=q(e.name),r=u.append(`g`),i=r.insert(`g`).attr(`class`,`branchLabel`),a=i.insert(`g`).attr(`class`,`label branch-label`);a.node()?.appendChild(n);let o=n.getBBox();x=Re(e.name,x,t,o,s),a.remove(),i.remove(),r.remove()}),X(u,U,!1,o),o.showBranches&&Le(u,l,o,t),Ie(u,U),X(u,U,!0,o),n.insertTitle(u,`gitTitleText`,o.titleTopMargin??0,a.getDiagramTitle()),c(void 0,u,o.diagramPadding,o.useMaxWidth)},`draw`)},Q=8,$=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),Be=new Set([`redux-color`,`redux-dark-color`]),Ve=new Set([`neo`,`neo-dark`]),He=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),Ue=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`,`neo`,`neo-dark`]),We=y(e=>{let{svgId:t}=e,n=``;if(e.useGradient&&t)for(let r=0;r<e.THEME_COLOR_LIMIT;r++)n+=`
15
+ .label${r} { fill: ${e.mainBkg}; stroke: url(${t}-gradient); stroke-width: ${e.strokeWidth};}
16
+ `;return n},`genGitGraphGradient`),Ge=y(e=>{let{theme:t,themeVariables:n}=g(),{borderColorArray:r}=n,i=$.has(t);if(Ve.has(t)){let t=``;for(let n=0;n<e.THEME_COLOR_LIMIT;n++)if(n===0)t+=`
17
+ .branch-label${n} { fill: ${e.nodeBorder};}
18
+ .commit${n} { stroke: ${e.nodeBorder}; }
19
+ .commit-highlight${n} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
20
+ .arrow${n} { stroke: ${e.nodeBorder}; }
21
+ .commit-bullets { fill: ${e.nodeBorder}; }
22
+ .commit-cherry-pick${n} { stroke: ${e.nodeBorder}; }
23
+ ${We(e)}`;else{let r=n%Q;t+=`
24
+ .branch-label${n} { fill: ${e[`gitBranchLabel`+r]}; }
25
+ .commit${n} { stroke: ${e[`git`+r]}; fill: ${e[`git`+r]}; }
26
+ .commit-highlight${n} { stroke: ${e[`gitInv`+r]}; fill: ${e[`gitInv`+r]}; }
27
+ .arrow${n} { stroke: ${e[`git`+r]}; }
28
+ `}return t}if(Be.has(t)){let n=``;for(let a=0;a<e.THEME_COLOR_LIMIT;a++)if(a===0)n+=`
29
+ .branch-label${a} { fill: ${e.nodeBorder}; ${i?`font-weight:${e.noteFontWeight}`:``} }
30
+ .commit${a} { stroke: ${e.nodeBorder}; }
31
+ .commit-highlight${a} { stroke: ${e.nodeBorder}; fill: ${e.mainBkg}; }
32
+ .label${a} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${i?`font-weight:${e.noteFontWeight}`:``} }
33
+ .arrow${a} { stroke: ${e.nodeBorder}; }
34
+ .commit-bullets { fill: ${e.nodeBorder}; }
35
+ `;else{let o=a%r.length;n+=`
36
+ .branch-label${a} { fill: ${e.nodeBorder}; ${i?`font-weight:${e.noteFontWeight}`:``} }
37
+ .commit${a} { stroke: ${r[o]}; fill: ${r[o]}; }
38
+ .commit-highlight${a} { stroke: ${r[o]}; fill: ${r[o]}; }
39
+ .label${a} { fill: ${He.has(t)?e.mainBkg:r[o]}; stroke: ${r[o]}; stroke-width: ${e.strokeWidth}; }
40
+ .arrow${a} { stroke: ${r[o]}; }
41
+ `}return n}{let t=``;for(let n=0;n<e.THEME_COLOR_LIMIT;n++)t+=`
42
+ .branch-label${n} { fill: ${e.nodeBorder}; ${i?`font-weight:${e.noteFontWeight}`:``} }
43
+ .commit${n} { stroke: ${e.nodeBorder}; }
44
+ .commit-highlight${n} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
45
+ .label${n} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${i?`font-weight:${e.noteFontWeight}`:``}}
46
+ .arrow${n} { stroke: ${e.nodeBorder}; }
47
+ .commit-bullets { fill: ${e.nodeBorder}; }
48
+ .commit-cherry-pick${n} { stroke: ${e.nodeBorder}; }
49
+ `;return t}},`genColor`),Ke=y(e=>`${Array.from({length:e.THEME_COLOR_LIMIT},(e,t)=>t).map(t=>{let n=t%Q;return`
50
+ .branch-label${t} { fill: ${e[`gitBranchLabel`+n]}; }
51
+ .commit${t} { stroke: ${e[`git`+n]}; fill: ${e[`git`+n]}; }
52
+ .commit-highlight${t} { stroke: ${e[`gitInv`+n]}; fill: ${e[`gitInv`+n]}; }
53
+ .label${t} { fill: ${e[`git`+n]}; }
54
+ .arrow${t} { stroke: ${e[`git`+n]}; }
55
+ `}).join(`
56
+ `)}`,`normalTheme`),qe={parser:be,db:A,renderer:ze,styles:y(e=>{let{theme:t}=g(),n=Ue.has(t);return`
57
+ .commit-id,
58
+ .commit-msg,
59
+ .branch-label {
60
+ fill: lightgrey;
61
+ color: lightgrey;
62
+ font-family: 'trebuchet ms', verdana, arial, sans-serif;
63
+ font-family: var(--mermaid-font-family);
64
+ }
65
+
66
+ ${n?Ge(e):Ke(e)}
67
+
68
+ .branch {
69
+ stroke-width: ${e.strokeWidth};
70
+ stroke: ${e.commitLineColor??e.lineColor};
71
+ stroke-dasharray: ${n?`4 2`:`2`};
72
+ }
73
+ .commit-label { font-size: ${e.commitLabelFontSize}; fill: ${n?e.nodeBorder:e.commitLabelColor}; ${n?`font-weight:${e.noteFontWeight};`:``}}
74
+ .commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${n?`transparent`:e.commitLabelBackground}; opacity: ${n?``:.5}; }
75
+ .tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};}
76
+ .tag-label-bkg { fill: ${n?e.mainBkg:e.tagLabelBackground}; stroke: ${n?e.nodeBorder:e.tagLabelBorder}; ${n?`filter:${e.dropShadow}`:``} }
77
+ .tag-hole { fill: ${e.textColor}; }
78
+
79
+ .commit-merge {
80
+ stroke: ${n?e.mainBkg:e.primaryColor};
81
+ fill: ${n?e.mainBkg:e.primaryColor};
82
+ }
83
+ .commit-reverse {
84
+ stroke: ${n?e.mainBkg:e.primaryColor};
85
+ fill: ${n?e.mainBkg:e.primaryColor};
86
+ stroke-width: ${n?e.strokeWidth:3};
87
+ }
88
+ .commit-highlight-outer {
89
+ }
90
+ .commit-highlight-inner {
91
+ stroke: ${n?e.mainBkg:e.primaryColor};
92
+ fill: ${n?e.mainBkg:e.primaryColor};
93
+ }
94
+
95
+ .arrow {
96
+ /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
97
+ stroke-width: ${$.has(t)?e.strokeWidth:8};
98
+ stroke-linecap: round;
99
+ fill: none
100
+ }
101
+ .gitTitleText {
102
+ text-anchor: middle;
103
+ font-size: 18px;
104
+ fill: ${e.textColor};
105
+ }
106
+ `},`getStyles`)};export{qe as diagram};
@@ -0,0 +1 @@
1
+ var e=typeof global==`object`&&global&&global.Object===Object&&global,t=typeof self==`object`&&self&&self.Object===Object&&self,n=e||t||Function(`return this`)(),r=n.Symbol,i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;function c(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch{}var i=o.call(e);return r&&(t?e[s]=n:delete e[s]),i}var l=Object.prototype.toString;function u(e){return l.call(e)}var d=`[object Null]`,f=`[object Undefined]`,p=r?r.toStringTag:void 0;function m(e){return e==null?e===void 0?f:d:p&&p in Object(e)?c(e):u(e)}function h(e){return typeof e==`object`&&!!e}var g=`[object Symbol]`;function _(e){return typeof e==`symbol`||h(e)&&m(e)==g}function v(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var y=Array.isArray,ee=1/0,te=r?r.prototype:void 0,ne=te?te.toString:void 0;function re(e){if(typeof e==`string`)return e;if(y(e))return v(e,re)+``;if(_(e))return ne?ne.call(e):``;var t=e+``;return t==`0`&&1/e==-ee?`-0`:t}function b(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function x(e){return e}var ie=`[object AsyncFunction]`,ae=`[object Function]`,oe=`[object GeneratorFunction]`,se=`[object Proxy]`;function S(e){if(!b(e))return!1;var t=m(e);return t==ae||t==oe||t==ie||t==se}var ce=n[`__core-js_shared__`],le=function(){var e=/[^.]+$/.exec(ce&&ce.keys&&ce.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function ue(e){return!!le&&le in e}var de=Function.prototype.toString;function C(e){if(e!=null){try{return de.call(e)}catch{}try{return e+``}catch{}}return``}var fe=/[\\^$.*+?()[\]{}|]/g,pe=/^\[object .+?Constructor\]$/,me=Function.prototype,he=Object.prototype,ge=me.toString,_e=he.hasOwnProperty,ve=RegExp(`^`+ge.call(_e).replace(fe,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function ye(e){return!b(e)||ue(e)?!1:(S(e)?ve:pe).test(C(e))}function be(e,t){return e?.[t]}function w(e,t){var n=be(e,t);return ye(n)?n:void 0}var xe=w(n,`WeakMap`);function Se(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ce(){}var we=800,Te=16,Ee=Date.now;function De(e){var t=0,n=0;return function(){var r=Ee(),i=Te-(r-n);if(n=r,i>0){if(++t>=we)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function T(e){return function(){return e}}var Oe=function(){try{var e=w(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),ke=De(Oe?function(e,t){return Oe(e,`toString`,{configurable:!0,enumerable:!1,value:T(t),writable:!0})}:x);function Ae(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function je(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function Me(e){return e!==e}function Ne(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function Pe(e,t,n){return t===t?Ne(e,t,n):je(e,Me,n)}function Fe(e,t){return!!(e!=null&&e.length)&&Pe(e,t,0)>-1}var Ie=9007199254740991,Le=/^(?:0|[1-9]\d*)$/;function Re(e,t){var n=typeof e;return t??=Ie,!!t&&(n==`number`||n!=`symbol`&&Le.test(e))&&e>-1&&e%1==0&&e<t}function ze(e,t){return e===t||e!==e&&t!==t}var Be=Math.max;function Ve(e,t,n){return t=Be(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Be(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),Se(e,this,s)}}function He(e,t){return ke(Ve(e,t,x),e+``)}var Ue=9007199254740991;function We(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=Ue}function E(e){return e!=null&&We(e.length)&&!S(e)}var Ge=Object.prototype;function Ke(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||Ge)}function qe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Je=`[object Arguments]`;function Ye(e){return h(e)&&m(e)==Je}var Xe=Object.prototype,Ze=Xe.hasOwnProperty,Qe=Xe.propertyIsEnumerable,D=Ye(function(){return arguments}())?Ye:function(e){return h(e)&&Ze.call(e,`callee`)&&!Qe.call(e,`callee`)};function $e(){return!1}var et=typeof exports==`object`&&exports&&!exports.nodeType&&exports,tt=et&&typeof module==`object`&&module&&!module.nodeType&&module,nt=tt&&tt.exports===et?n.Buffer:void 0,O=(nt?nt.isBuffer:void 0)||$e,rt=`[object Arguments]`,it=`[object Array]`,at=`[object Boolean]`,ot=`[object Date]`,st=`[object Error]`,ct=`[object Function]`,lt=`[object Map]`,ut=`[object Number]`,dt=`[object Object]`,ft=`[object RegExp]`,pt=`[object Set]`,mt=`[object String]`,ht=`[object WeakMap]`,gt=`[object ArrayBuffer]`,_t=`[object DataView]`,vt=`[object Float32Array]`,yt=`[object Float64Array]`,bt=`[object Int8Array]`,xt=`[object Int16Array]`,St=`[object Int32Array]`,Ct=`[object Uint8Array]`,wt=`[object Uint8ClampedArray]`,Tt=`[object Uint16Array]`,Et=`[object Uint32Array]`,k={};k[vt]=k[yt]=k[bt]=k[xt]=k[St]=k[Ct]=k[wt]=k[Tt]=k[Et]=!0,k[rt]=k[it]=k[gt]=k[at]=k[_t]=k[ot]=k[st]=k[ct]=k[lt]=k[ut]=k[dt]=k[ft]=k[pt]=k[mt]=k[ht]=!1;function Dt(e){return h(e)&&We(e.length)&&!!k[m(e)]}function Ot(e){return function(t){return e(t)}}var kt=typeof exports==`object`&&exports&&!exports.nodeType&&exports,A=kt&&typeof module==`object`&&module&&!module.nodeType&&module,At=A&&A.exports===kt&&e.process,jt=function(){try{return A&&A.require&&A.require(`util`).types||At&&At.binding&&At.binding(`util`)}catch{}}(),Mt=jt&&jt.isTypedArray,j=Mt?Ot(Mt):Dt,Nt=Object.prototype.hasOwnProperty;function Pt(e,t){var n=y(e),r=!n&&D(e),i=!n&&!r&&O(e),a=!n&&!r&&!i&&j(e),o=n||r||i||a,s=o?qe(e.length,String):[],c=s.length;for(var l in e)(t||Nt.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Re(l,c)))&&s.push(l);return s}function Ft(e,t){return function(n){return e(t(n))}}var It=Ft(Object.keys,Object),Lt=Object.prototype.hasOwnProperty;function Rt(e){if(!Ke(e))return It(e);var t=[];for(var n in Object(e))Lt.call(e,n)&&n!=`constructor`&&t.push(n);return t}function M(e){return E(e)?Pt(e):Rt(e)}var zt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bt=/^\w*$/;function Vt(e,t){if(y(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||_(e)?!0:Bt.test(e)||!zt.test(e)||t!=null&&e in Object(t)}var N=w(Object,`create`);function Ht(){this.__data__=N?N(null):{},this.size=0}function Ut(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var Wt=`__lodash_hash_undefined__`,Gt=Object.prototype.hasOwnProperty;function Kt(e){var t=this.__data__;if(N){var n=t[e];return n===Wt?void 0:n}return Gt.call(t,e)?t[e]:void 0}var qt=Object.prototype.hasOwnProperty;function Jt(e){var t=this.__data__;return N?t[e]!==void 0:qt.call(t,e)}var Yt=`__lodash_hash_undefined__`;function Xt(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=N&&t===void 0?Yt:t,this}function P(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}P.prototype.clear=Ht,P.prototype.delete=Ut,P.prototype.get=Kt,P.prototype.has=Jt,P.prototype.set=Xt;function Zt(){this.__data__=[],this.size=0}function F(e,t){for(var n=e.length;n--;)if(ze(e[n][0],t))return n;return-1}var Qt=Array.prototype.splice;function $t(e){var t=this.__data__,n=F(t,e);return n<0?!1:(n==t.length-1?t.pop():Qt.call(t,n,1),--this.size,!0)}function en(e){var t=this.__data__,n=F(t,e);return n<0?void 0:t[n][1]}function tn(e){return F(this.__data__,e)>-1}function nn(e,t){var n=this.__data__,r=F(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function I(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}I.prototype.clear=Zt,I.prototype.delete=$t,I.prototype.get=en,I.prototype.has=tn,I.prototype.set=nn;var L=w(n,`Map`);function rn(){this.size=0,this.__data__={hash:new P,map:new(L||I),string:new P}}function an(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function R(e,t){var n=e.__data__;return an(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function on(e){var t=R(this,e).delete(e);return this.size-=+!!t,t}function sn(e){return R(this,e).get(e)}function cn(e){return R(this,e).has(e)}function ln(e,t){var n=R(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function z(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}z.prototype.clear=rn,z.prototype.delete=on,z.prototype.get=sn,z.prototype.has=cn,z.prototype.set=ln;var un=`Expected a function`;function dn(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(un);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(dn.Cache||z),n}dn.Cache=z;var fn=500;function pn(e){var t=dn(e,function(e){return n.size===fn&&n.clear(),e}),n=t.cache;return t}var mn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hn=/\\(\\)?/g,gn=pn(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(mn,function(e,n,r,i){t.push(r?i.replace(hn,`$1`):n||e)}),t});function _n(e){return e==null?``:re(e)}function vn(e,t){return y(e)?e:Vt(e,t)?[e]:gn(_n(e))}var yn=1/0;function B(e){if(typeof e==`string`||_(e))return e;var t=e+``;return t==`0`&&1/e==-yn?`-0`:t}function bn(e,t){t=vn(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[B(t[n++])];return n&&n==r?e:void 0}function xn(e,t,n){var r=e==null?void 0:bn(e,t);return r===void 0?n:r}function Sn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Cn=r?r.isConcatSpreadable:void 0;function wn(e){return y(e)||D(e)||!!(Cn&&e&&e[Cn])}function Tn(e,t,n,r,i){var a=-1,o=e.length;for(n||=wn,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?Tn(s,t-1,n,r,i):Sn(i,s):r||(i[i.length]=s)}return i}function En(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function Dn(){this.__data__=new I,this.size=0}function On(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function kn(e){return this.__data__.get(e)}function An(e){return this.__data__.has(e)}var jn=200;function Mn(e,t){var n=this.__data__;if(n instanceof I){var r=n.__data__;if(!L||r.length<jn-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new z(r)}return n.set(e,t),this.size=n.size,this}function V(e){var t=this.__data__=new I(e);this.size=t.size}V.prototype.clear=Dn,V.prototype.delete=On,V.prototype.get=kn,V.prototype.has=An,V.prototype.set=Mn;function Nn(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function Pn(){return[]}var Fn=Object.prototype.propertyIsEnumerable,In=Object.getOwnPropertySymbols,Ln=In?function(e){return e==null?[]:(e=Object(e),Nn(In(e),function(t){return Fn.call(e,t)}))}:Pn;function Rn(e,t,n){var r=t(e);return y(e)?r:Sn(r,n(e))}function zn(e){return Rn(e,M,Ln)}var Bn=w(n,`DataView`),Vn=w(n,`Promise`),H=w(n,`Set`),Hn=`[object Map]`,Un=`[object Object]`,Wn=`[object Promise]`,Gn=`[object Set]`,Kn=`[object WeakMap]`,qn=`[object DataView]`,Jn=C(Bn),Yn=C(L),Xn=C(Vn),Zn=C(H),Qn=C(xe),U=m;(Bn&&U(new Bn(new ArrayBuffer(1)))!=qn||L&&U(new L)!=Hn||Vn&&U(Vn.resolve())!=Wn||H&&U(new H)!=Gn||xe&&U(new xe)!=Kn)&&(U=function(e){var t=m(e),n=t==Un?e.constructor:void 0,r=n?C(n):``;if(r)switch(r){case Jn:return qn;case Yn:return Hn;case Xn:return Wn;case Zn:return Gn;case Qn:return Kn}return t});var W=U,$n=n.Uint8Array,er=`__lodash_hash_undefined__`;function tr(e){return this.__data__.set(e,er),this}function nr(e){return this.__data__.has(e)}function G(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new z;++t<n;)this.add(e[t])}G.prototype.add=G.prototype.push=tr,G.prototype.has=nr;function rr(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function ir(e,t){return e.has(t)}var ar=1,or=2;function sr(e,t,n,r,i,a){var o=n&ar,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&or?new G:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var g=o?r(h,m,d,t,e,a):r(m,h,d,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!rr(t,function(e,t){if(!ir(p,t)&&(m===e||i(m,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(!(m===h||i(m,h,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}function cr(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function lr(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var ur=1,dr=2,fr=`[object Boolean]`,pr=`[object Date]`,mr=`[object Error]`,hr=`[object Map]`,gr=`[object Number]`,_r=`[object RegExp]`,vr=`[object Set]`,yr=`[object String]`,br=`[object Symbol]`,xr=`[object ArrayBuffer]`,Sr=`[object DataView]`,Cr=r?r.prototype:void 0,wr=Cr?Cr.valueOf:void 0;function Tr(e,t,n,r,i,a,o){switch(n){case Sr:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case xr:return!(e.byteLength!=t.byteLength||!a(new $n(e),new $n(t)));case fr:case pr:case gr:return ze(+e,+t);case mr:return e.name==t.name&&e.message==t.message;case _r:case yr:return e==t+``;case hr:var s=cr;case vr:var c=r&ur;if(s||=lr,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=dr,o.set(e,t);var u=sr(s(e),s(t),r,i,a,o);return o.delete(e),u;case br:if(wr)return wr.call(e)==wr.call(t)}return!1}var Er=1,Dr=Object.prototype.hasOwnProperty;function Or(e,t,n,r,i,a){var o=n&Er,s=zn(e),c=s.length;if(c!=zn(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:Dr.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++l<c;){u=s[l];var h=e[u],g=t[u];if(r)var _=o?r(g,h,u,t,e,a):r(h,g,u,e,t,a);if(!(_===void 0?h===g||i(h,g,n,r,a):_)){p=!1;break}m||=u==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}var kr=1,Ar=`[object Arguments]`,jr=`[object Array]`,K=`[object Object]`,Mr=Object.prototype.hasOwnProperty;function Nr(e,t,n,r,i,a){var o=y(e),s=y(t),c=o?jr:W(e),l=s?jr:W(t);c=c==Ar?K:c,l=l==Ar?K:l;var u=c==K,d=l==K,f=c==l;if(f&&O(e)){if(!O(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new V,o||j(e)?sr(e,t,n,r,i,a):Tr(e,t,c,n,r,i,a);if(!(n&kr)){var p=u&&Mr.call(e,`__wrapped__`),m=d&&Mr.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new V,i(h,g,n,r,a)}}return f?(a||=new V,Or(e,t,n,r,i,a)):!1}function Pr(e,t,n,r,i){return e===t?!0:e==null||t==null||!h(e)&&!h(t)?e!==e&&t!==t:Nr(e,t,n,r,Pr,i)}var Fr=1,Ir=2;function Lr(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new V;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?Pr(u,l,Fr|Ir,r,d):f))return!1}}return!0}function Rr(e){return e===e&&!b(e)}function zr(e){for(var t=M(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Rr(i)]}return t}function Br(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}function Vr(e){var t=zr(e);return t.length==1&&t[0][2]?Br(t[0][0],t[0][1]):function(n){return n===e||Lr(n,e,t)}}function Hr(e,t){return e!=null&&t in Object(e)}function Ur(e,t,n){t=vn(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=B(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&We(i)&&Re(o,i)&&(y(e)||D(e)))}function Wr(e,t){return e!=null&&Ur(e,t,Hr)}var Gr=1,Kr=2;function qr(e,t){return Vt(e)&&Rr(t)?Br(B(e),t):function(n){var r=xn(n,e);return r===void 0&&r===t?Wr(n,e):Pr(t,r,Gr|Kr)}}function Jr(e){return function(t){return t?.[e]}}function Yr(e){return function(t){return bn(t,e)}}function Xr(e){return Vt(e)?Jr(B(e)):Yr(e)}function Zr(e){return typeof e==`function`?e:e==null?x:typeof e==`object`?y(e)?qr(e[0],e[1]):Vr(e):Xr(e)}function Qr(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}var $r=Qr();function ei(e,t){return e&&$r(e,t,M)}function ti(e,t){return function(n,r){if(n==null)return n;if(!E(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var q=ti(ei);function ni(e){return h(e)&&E(e)}function ri(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function ii(e){return typeof e==`function`?e:x}function J(e,t){return(y(e)?Ae:q)(e,ii(t))}function ai(e,t){var n=[];return q(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function Y(e,t){return(y(e)?Nn:ai)(e,Zr(t,3))}function oi(e,t){return v(t,function(t){return e[t]})}function X(e){return e==null?[]:oi(e,M(e))}var si=`[object Map]`,ci=`[object Set]`,li=Object.prototype.hasOwnProperty;function ui(e){if(e==null)return!0;if(E(e)&&(y(e)||typeof e==`string`||typeof e.splice==`function`||O(e)||j(e)||D(e)))return!e.length;var t=W(e);if(t==si||t==ci)return!e.size;if(Ke(e))return!Rt(e).length;for(var n in e)if(li.call(e,n))return!1;return!0}function Z(e){return e===void 0}function di(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function fi(e,t,n){var r=y(e)?En:di,i=arguments.length<3;return r(e,Zr(t,4),n,i,q)}var pi=H&&1/lr(new H([,-0]))[1]==1/0?function(e){return new H(e)}:Ce,mi=200;function hi(e,t,n){var r=-1,i=Fe,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=ri;else if(a>=mi){var l=t?null:pi(e);if(l)return lr(l);o=!1,i=ir,c=new G}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}var gi=He(function(e){return hi(Tn(e,1,ni,!0))}),_i=`\0`,Q=`\0`,vi=``,yi=class{constructor(e={}){this._isDirected=!Object.prototype.hasOwnProperty.call(e,`directed`)||e.directed,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,`multigraph`)?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,`compound`)?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=T(void 0),this._defaultEdgeLabelFn=T(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[Q]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return S(e)||(e=T(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return M(this._nodes)}sources(){var e=this;return Y(this.nodes(),function(t){return ui(e._in[t])})}sinks(){var e=this;return Y(this.nodes(),function(t){return ui(e._out[t])})}setNodes(e,t){var n=arguments,r=this;return J(e,function(e){n.length>1?r.setNode(e,t):r.setNode(e)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=Q,this._children[e]={},this._children[Q][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=e=>this.removeEdge(this._edgeObjs[e]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],J(this.children(e),e=>{this.setParent(e)}),delete this._children[e]),J(M(this._in[e]),t),delete this._in[e],delete this._preds[e],J(M(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw Error(`Cannot set parent in a non-compound graph`);if(Z(t))t=Q;else{t+=``;for(var n=t;!Z(n);n=this.parent(n))if(n===e)throw Error(`Setting `+t+` as parent of `+e+` would create a cycle`);this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==Q)return t}}children(e){if(Z(e)&&(e=Q),this._isCompound){var t=this._children[e];if(t)return M(t)}else if(e===Q)return this.nodes();else if(this.hasNode(e))return[]}predecessors(e){var t=this._preds[e];if(t)return M(t)}successors(e){var t=this._sucs[e];if(t)return M(t)}neighbors(e){var t=this.predecessors(e);if(t)return gi(t,this.successors(e))}isLeaf(e){return(this.isDirected()?this.successors(e):this.neighbors(e)).length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;J(this._nodes,function(n,r){e(r)&&t.setNode(r,n)}),J(this._edgeObjs,function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))});var r={};function i(e){var a=n.parent(e);return a===void 0||t.hasNode(a)?(r[e]=a,a):a in r?r[a]:i(a)}return this._isCompound&&J(t.nodes(),function(e){t.setParent(e,i(e))}),t}setDefaultEdgeLabel(e){return S(e)||(e=T(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return X(this._edgeObjs)}setPath(e,t){var n=this,r=arguments;return fi(e,function(e,i){return r.length>1?n.setEdge(e,i,t):n.setEdge(e,i),i}),this}setEdge(){var e,t,n,r,i=!1,a=arguments[0];typeof a==`object`&&a&&`v`in a?(e=a.v,t=a.w,n=a.name,arguments.length===2&&(r=arguments[1],i=!0)):(e=a,t=arguments[1],n=arguments[3],arguments.length>2&&(r=arguments[2],i=!0)),e=``+e,t=``+t,Z(n)||(n=``+n);var o=$(this._isDirected,e,t,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,o))return i&&(this._edgeLabels[o]=r),this;if(!Z(n)&&!this._isMultigraph)throw Error(`Cannot set a named edge when isMultigraph = false`);this.setNode(e),this.setNode(t),this._edgeLabels[o]=i?r:this._defaultEdgeLabelFn(e,t,n);var s=Si(this._isDirected,e,t,n);return e=s.v,t=s.w,Object.freeze(s),this._edgeObjs[o]=s,bi(this._preds[t],e),bi(this._sucs[e],t),this._in[t][o]=s,this._out[e][o]=s,this._edgeCount++,this}edge(e,t,n){var r=arguments.length===1?Ci(this._isDirected,arguments[0]):$(this._isDirected,e,t,n);return this._edgeLabels[r]}hasEdge(e,t,n){var r=arguments.length===1?Ci(this._isDirected,arguments[0]):$(this._isDirected,e,t,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,r)}removeEdge(e,t,n){var r=arguments.length===1?Ci(this._isDirected,arguments[0]):$(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],xi(this._preds[t],e),xi(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this}inEdges(e,t){var n=this._in[e];if(n){var r=X(n);return t?Y(r,function(e){return e.v===t}):r}}outEdges(e,t){var n=this._out[e];if(n){var r=X(n);return t?Y(r,function(e){return e.w===t}):r}}nodeEdges(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}};yi.prototype._nodeCount=0,yi.prototype._edgeCount=0;function bi(e,t){e[t]?e[t]++:e[t]=1}function xi(e,t){--e[t]||delete e[t]}function $(e,t,n,r){var i=``+t,a=``+n;if(!e&&i>a){var o=i;i=a,a=o}return i+vi+a+vi+(Z(r)?_i:r)}function Si(e,t,n,r){var i=``+t,a=``+n;if(!e&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return r&&(s.name=r),s}function Ci(e,t){return $(e,t.v,t.w,t.name)}export{v as $,Rt as A,He as B,Tn as C,vn as D,B as E,Ot as F,Ae as G,ze as H,O as I,T as J,ke as K,D as L,Pt as M,j as N,_n as O,jt as P,y as Q,Ke as R,V as S,bn as T,Re as U,Ve as V,je as W,x as X,S as Y,b as Z,W as _,Y as a,Ln as b,ni as c,$r as d,_ as et,Zr as f,$n as g,Ur as h,X as i,n as it,Ft as j,M as k,q as l,Wr as m,fi as n,m as nt,J as o,Jr as p,Oe as q,Z as r,r as rt,ii as s,yi as t,h as tt,ei as u,zn as v,Sn as w,Pn as x,Rn as y,E as z};
@@ -0,0 +1 @@
1
+ :root{color:#f4e4c7;font-synthesis:none;--paper:#f6e5c8;--ink:#2e1713;--gold:#e3ba71;--wine:#761720;--border:#69472f;--dark:#230c16;background:#210c14;font-family:Georgia,Noto Serif,Noto Serif CJK JP,serif}*{box-sizing:border-box}body{min-width:290px;min-height:100svh;margin:0;display:flow-root}button,input{font:inherit;color:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.44}a{color:inherit}:focus-visible{outline-offset:4px;outline:2px solid #f2c17a}[hidden]{display:none}.brand{white-space:nowrap;align-items:center;gap:13px;min-height:44px;font-size:clamp(16px,1.48vw,25px);font-weight:600;text-decoration:none;display:inline-flex}.brand svg{stroke-width:1.35px;flex:none}.segment{background:#371618;border:1px solid #754138;border-radius:999px;grid-auto-columns:1fr;grid-auto-flow:column;padding:2px;display:inline-grid}.segment button{color:#f2e3c8;border-radius:inherit;white-space:nowrap;background:0 0;border:0;min-width:78px;min-height:36px;padding:0 14px;font-size:clamp(14px,1.35vw,20px)}.segment button[aria-pressed=true]{color:#291711;background:#ead9bb;box-shadow:inset 0 0 0 1px #f3ddbd}.status-screen{text-align:center;place-content:center;justify-items:center;gap:16px;min-height:100svh;padding:32px;display:grid}.library{background:radial-gradient(at 50% 60%,#35191b 0%,#1c0712 80%);min-height:100svh;padding:16px 7.1vw 9svh;position:relative}.library-brand{z-index:2;position:absolute;top:13px;left:2.4vw}.library-heading{text-align:center;z-index:1;margin-inline:auto;padding:0 0 20px;position:relative}.library-heading-sticky{background:linear-gradient(#1c0812 63%,#1c0812ed 85%,#0000);padding:11px 0 15px;position:sticky;top:0}.library-heading h1{color:#f4e0bb;letter-spacing:.005em;margin:0 auto;font-size:clamp(30px,3.28vw,56px);font-weight:600;line-height:1.12}.library-tools{justify-content:center;align-items:center;gap:15px;width:min(100%,985px);margin:21px auto 0;display:flex}.shelf-search{color:#d9c9b0;text-align:left;background:#211417;border:1px solid #6b5149;border-radius:13px;flex:auto;align-items:center;gap:10px;min-height:46px;padding:0 12px 0 16px;display:flex}.shelf-search input{color:#f3e4c9;background:0 0;border:0;outline:0;width:100%;min-width:0;height:42px;font-family:system-ui,sans-serif;font-size:15px}.shelf-search:focus-within{border-color:#e5af66;box-shadow:0 0 0 2px #ad78454f}.shelf-search input::-webkit-search-cancel-button{display:none}.shelf-search button{background:0 0;border:0;place-items:center;min-width:34px;min-height:34px;padding:0;display:grid}.segment-library{background:#2c1017;border-color:#80512e;border-radius:13px}.segment-library button{min-height:40px;font-size:15px}.segment-library button[aria-pressed=true]{color:#f5deb0;background:#552c21;box-shadow:inset 0 0 0 1px #dca253}.book-count{color:#e8c68c;text-align:center;margin:0 auto 18px;font-size:16px;font-style:italic}.index-count{align-items:center;gap:16px;width:min(100%,980px);display:flex}.index-count:before,.index-count:after{content:"";opacity:.75;background:#a16a31;flex:1;height:1px}.library-index{background:#250d16;border:1px solid #91652c;border-radius:12px;max-width:980px;margin:0 auto;padding:0;list-style:none;overflow:hidden}.library-index li+li{border-top:1px solid #815726}.library-index a{color:#ecd4a7;grid-template-columns:auto 1fr auto;align-items:center;gap:20px;min-height:58px;padding:8px 24px;font-size:clamp(17px,1.47vw,26px);font-weight:600;line-height:1.25;text-decoration:none;display:grid}.library-index a:is(:hover,:focus-visible){outline-offset:-3px;background:#3b1b22}.index-spine{width:23px;height:36px;filter:hue-rotate(var(--hue,0deg));background:linear-gradient(#5d271e 8%,#e3ac59 16%,#622326 22%,#401c19 80%,#e5ac59 85%,#a87b3e 90%,#351510 93%);border:1px solid #61352f;border-radius:5px;display:block;box-shadow:2px 4px 4px #10040b}.shelf{isolation:isolate;background:radial-gradient(at 50% 1%,#99592f 0%,#341a12 35%,#140905 86%);border:clamp(8px,1.05vw,19px) solid #472519;border-radius:29% 29% 3% 3%/30% 30% 3% 3%;max-width:1640px;min-height:360px;margin:17px auto 0;padding:clamp(64px,9vw,172px) clamp(45px,7vw,140px) 0;position:relative;box-shadow:inset 0 3px 10px #0e0503,0 -1px 1px #8f5833,0 37px 64px #090306}.shelf:before{content:"";z-index:-1;border-radius:inherit;pointer-events:none;border:1px solid #967245;position:absolute;inset:-10px;box-shadow:inset 0 2px 4px #1e0c09,0 3px 5px #0c0606}.shelf-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(22px,5.8vw,115px) clamp(13px,3vw,66px);display:grid;position:relative}.shelf-cell{content-visibility:auto;contain-intrinsic-size:auto 360px;overflow-clip-margin:24px;place-items:end center;display:grid;position:relative;overflow:visible}.shelf-cell:after{content:"";z-index:-1;background:linear-gradient(#aa643b,#65361e 27%,#35180e 80%);border-radius:6px;height:clamp(12px,1.5vw,27px);position:absolute;bottom:-7px;left:-30%;right:-30%;box-shadow:0 8px 14px #170804}.shelf:not(.shelf-many):not(.shelf-searching){margin-top:38px}.shelf-many{border-end-end-radius:3px;border-end-start-radius:3px;padding-top:clamp(57px,6.6vw,120px)}.shelf-many .volume{width:min(100%,290px)}.shelf-searching .shelf-cell{content-visibility:visible;isolation:isolate}.shelf-searching .shelf-cell:after{display:none}.shelf-searching .volume{filter:drop-shadow(0 18px 24px #0c0303a3)drop-shadow(0 0 16px #e9a13e45);margin-bottom:46px}.shelf-searching .volume:after{content:"";filter:blur(4px);background:#120502;border-radius:50%;width:62%;height:15px;position:absolute;bottom:-14%;left:18%;box-shadow:0 0 21px #eeb057bb}.shelf-one-match .shelf-grid{justify-content:center;display:flex}.shelf-one-match .volume{width:100%}.volume{isolation:isolate;text-align:center;color:#f3d69d;aspect-ratio:590/756;align-items:center;width:min(100%,405px);text-decoration:none;transition:translate .23s ease-out,filter .23s ease-out;display:grid;position:relative;container-type:inline-size}.volume:is(:hover,:focus-visible){filter:drop-shadow(0 0 9px #edb470ad);translate:0 -8px}.volume:focus-visible{outline-offset:-3px}.volume-render{object-fit:contain;width:100%;height:100%;filter:hue-rotate(var(--hue,0deg));display:block;position:absolute;inset:0}.reader{background:radial-gradient(at 49% 62%,#4c2523 0%,#2a1017 61%,#1f0c13 100%);place-items:center;min-height:100svh;display:grid;position:relative;overflow:hidden}.reader-header{z-index:2;grid-template-columns:1fr auto;align-items:center;display:grid;position:absolute;top:15px;left:2.65%;right:2.65%}.contents-button{background:0 0;border:0;justify-content:center;justify-self:end;align-items:center;gap:10px;min-height:44px;padding:0;font-size:clamp(14px,1.35vw,22px);display:inline-flex}.reader-stage{aspect-ratio:1672/941;isolation:isolate;width:min(100vw,177.67svh);margin:0;transition:transform .26s;position:relative}.reader--catalog .reader-stage{transform:translate(-12vw)scale(.9)}.book-scene{z-index:-1;position:absolute;inset:0}.book-fallback{border:8px solid var(--leather-edge,#6d2022);z-index:-2;background:linear-gradient(90deg,#e9cba1 0%,#f8e8cd 5%,#fbefd9 45%,#e2c197 50%,#fbefd9 53%,#f8e8cd 96%,#dec099 100%);border-radius:1.3% 1.5% 1.5% 1.3%/2% 2% 1.7% 1.7%;position:absolute;inset:12.12% 14.6% 16.1%;box-shadow:0 20px 30px #17080cd6,inset 0 0 1px 8px #d9b68c,0 1px 1px 2px #410e16}.reader-stage[data-ready=true] .book-fallback{visibility:hidden}.book-sheet{color:var(--ink);height:59%;font-size:clamp(16px,1.47vw,26px);line-height:1.43;position:absolute;top:18.1%}.book-sheet--left{width:26.2%;left:22.05%}.book-sheet--right{width:25.5%;left:53.35%}.page-text{--code-background:#b98e4f24;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#9e704c transparent;max-height:95%;overflow:auto}.page-text>:first-child{margin-top:0}.page-text>:last-child{margin-bottom:2px}.page-text h1{margin:0 0 .82em;font-size:clamp(25px,2.6vw,46px);font-style:italic;font-weight:700;line-height:1.08}.page-text h2{margin:1em 0 .6em;font-size:clamp(18px,1.55vw,30px);line-height:1.18}.page-text h3,.page-text h4,.page-text h5,.page-text h6{margin:1em 0 .5em;font-size:1.08em}.page-text p{margin:0 0 1em}.page-text .page-running-head{letter-spacing:.16em;text-transform:uppercase;margin:.2em 0 1.75em;font-size:.73em;font-weight:600}.page-text pre{background:var(--code-background);color:#372016;border-radius:10px;margin:1em 0 1.55em;padding:.8em 1.1em;font-size:.79em;overflow:auto}.page-text code{font-family:ui-monospace,DejaVu Sans Mono,monospace}.page-text :not(pre)>code{background:var(--code-background);color:#662c26;overflow-wrap:anywhere;-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:4px;padding:.1em .28em;font-size:.84em}.page-text a{color:#742d26;text-underline-offset:3px}.page-text strong{font-weight:700}.page-text img{object-fit:contain;width:auto;max-width:100%;max-height:min(28vh,350px);margin:1em auto;display:block}.paper-table{overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:#9e704c transparent;max-width:100%;overflow-x:auto;container-type:inline-size}.paper-table table{border-collapse:separate;border-spacing:0}.paper-table :is(th,td){overflow-wrap:break-word;border-bottom:1px solid #af865c;border-right:1px solid #af865c;max-width:24ch;padding:.28em .48em}.paper-table tr:first-child>th{border-top:1px solid #af865c}.paper-table tr>:first-child{border-left:1px solid #af865c;max-width:min(24ch,42cqi)}.paper-table[data-overflow] tr>:first-child{z-index:1;background-color:var(--paper);position:sticky;inset-inline-start:0}.folio-number{text-align:center;pointer-events:none;font-size:.72em;position:absolute;bottom:0;left:0;right:0}.reader-pagination{z-index:2;color:#f8e8cc;text-align:center;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:clamp(16px,4.7vw,95px);width:min(100% - 26px,clamp(320px,35vw,570px));display:grid;position:absolute;bottom:4.3%;left:50%;transform:translate(-50%)}.turn-button{color:#f9e4c7;background:linear-gradient(130deg,#762226,#611517);border:1px solid #873339;border-radius:11px;place-content:center;width:clamp(44px,3.7vw,66px);height:clamp(44px,3.7vw,66px);text-decoration:none;display:grid}.turn-button:not(:disabled):hover{background:#8a2c31}.reading-position{gap:.28em;min-width:0;font-size:clamp(16px,1.65vw,28px);line-height:1.03;display:grid}.reading-position span:first-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.reading-position span:last-child{color:#c99d7d;font-size:.77em}.catalog{color:#321c15;background:0 0;border:0;width:min(30.2vw,560px);max-width:none;max-height:none;margin:0;padding:6px;inset:10.1vh 1.7vw auto auto}.catalog-paper{background:radial-gradient(at 50% 42%,#f8e6c6,#eed0a2 97%);border:1px solid #c49b69;border-radius:13px;flex-direction:column;min-height:62vh;max-height:77vh;padding:4vh calc(9% + 4px) max(24px,5vh);display:flex;position:relative;box-shadow:0 5px 8px #12070a91,inset 0 0 0 8px #dbac773a}.catalog-paper:before{content:"";pointer-events:none;border:1px solid #986337;border-radius:0 0 7px 6px;position:absolute;inset:13px}.catalog-paper:after{content:"";z-index:1;clip-path:polygon(0 0,100% 0,100% 100%,50% 85%,0 100%);background:linear-gradient(100deg,#81272d,#601820);width:31px;height:54px;position:absolute;top:-12px;right:24%}.catalog-header{justify-content:space-between;align-items:center;padding:min(4vh,43px) 10px 8px;display:flex}.catalog-header h2{margin:0;font-size:clamp(25px,3vw,49px);font-weight:650}.catalog-header button{background:0 0;border:0;flex:none;place-content:center;min-width:44px;min-height:44px;padding:0;display:grid}.catalog-pages{--folio-width:max(23px, calc(var(--folio-digits,2) * 1ch));--folio-padding:10px;--catalog-gap:8px;--catalog-toggle-size:44px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ab825c transparent;margin:6px 0 12px;padding:0 4px;font-size:clamp(17px,1.45vw,23px);list-style:none;overflow:auto}.catalog-pages a{grid-template-columns:minmax(0, max-content) minmax(5px, 1fr) var(--folio-width);align-items:center;gap:var(--catalog-gap);min-height:var(--catalog-toggle-size);padding:8px var(--folio-padding) 8px 16px;color:#321b13;line-height:1.27;text-decoration:none;display:grid;position:relative}.catalog-label{overflow-wrap:anywhere;min-width:0}.catalog-folio{text-align:end;font-variant-numeric:tabular-nums;white-space:nowrap}.catalog-row[data-expandable] a{grid-template-columns:minmax(0, max-content) minmax(5px, 1fr) var(--catalog-toggle-size) var(--folio-width)}.catalog-row[data-expandable] .catalog-folio{grid-column:4}.catalog-pages a:hover,.catalog-pages [aria-current]{background:#ba733022;border-radius:8px}.catalog-pages [aria-current]:before{content:"";clip-path:polygon(0 0,100% 0,100% 100%,50% 71%,0 100%);background:#841a25;width:8px;height:13px;position:absolute;top:50%;left:5px;transform:translateY(-50%)}.catalog-leader{border-bottom:1px dotted #775138a6}.catalog-group{color:#804b35;margin:.85em 0 .25em 18px;font-size:.85rem;font-weight:600;display:block}.catalog :focus-visible,.page-text :focus-visible{outline-offset:0;outline-color:#8a2d31}@media (width<=699px){.library{padding:15px 12px 32px}.library-brand{gap:7px;min-height:32px;padding-left:5px;font-size:17px;position:relative;top:auto;left:auto}.library-brand svg{width:23px}.library-heading{padding-top:12px;padding-bottom:12px}.library-heading-sticky{background:#1c0812}.library-tools{flex-wrap:wrap;gap:10px;margin-top:15px}.shelf-search{flex-basis:100%;min-height:44px}.library-index a{gap:12px;padding-inline:12px}.shelf,.shelf-many{border-radius:20% 20% 5% 5%/13% 13% 3% 3%;min-height:300px;margin:14px auto 0;padding:clamp(48px,14.5vw,98px) 21px 0}.shelf:not(.shelf-many):not(.shelf-searching){margin-top:12px}.shelf-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:34px 11px}.shelf:not(.shelf-many):not(.shelf-searching) .shelf-cell:last-child:nth-child(odd){grid-column:1/-1;margin-inline:25%}.shelf-cell{contain-intrinsic-size:auto 180px}.shelf-cell:after{height:14px;bottom:-5px}.shelf-searching{min-height:430px;padding-top:52px}.shelf-one-match .shelf-cell{width:65%}.reader{flex-direction:column;align-items:stretch;min-height:100dvh;display:flex}.reader-header{grid-template-columns:1fr 1fr;row-gap:9px;margin-inline:16px;padding-top:12px;position:relative;top:auto;left:auto;right:auto}.reader-header .brand{gap:7px;min-height:42px;font-size:16px}.reader-header .contents-button{grid-area:1/2;gap:6px;min-height:42px}.reader-stage{aspect-ratio:auto;flex:1;width:100%;min-height:440px;margin-top:17px}.reader--catalog .reader-stage{transform:none}.book-fallback{background:linear-gradient(90deg,#e9c99f,#f9ead0 4% 92%,#dfc39e 99%);border-width:7px;border-radius:9px;inset:2px 11px 5px;box-shadow:inset 0 0 0 3px #d9ba92,0 10px 15px #1b080b}.book-sheet--right{width:auto;height:auto;font-size:17px;line-height:1.45;inset:40px 9.2% 30px 9.9%}.page-text{height:calc(100% - 16px);max-height:none}.page-text h1{font-size:clamp(27px,7.2vw,40px)}.page-text h2{font-size:20px}.page-text pre{padding:.7em .75em}.reader-pagination{margin-block:10px max(12px, env(safe-area-inset-bottom));grid-template-columns:auto minmax(0,1fr) auto;gap:17px;position:relative;bottom:auto;left:50%}.catalog{width:95vw;padding:0;inset:auto 2.5vw 0}.catalog-paper{min-height:57svh;max-height:72svh;padding-top:24px}.catalog-header{padding-top:8px}.catalog-paper:after{height:40px;right:30%}}@media (width<=310px){.shelf-grid{grid-template-columns:1fr}.shelf:not(.shelf-many):not(.shelf-searching) .shelf-cell:last-child:nth-child(odd){margin-inline:0}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.001ms!important;animation-duration:.001ms!important}}.shelf:not(.shelf-many),.shelf-searching{background:url(./alcove-cyX4Tv3E.avif) 50%/100% 100% no-repeat;border:0;border-radius:29% 29% 3% 3%/31% 31% 3% 3%;max-width:1650px;min-height:clamp(400px,44vw,780px);padding:clamp(100px,11vw,190px) 8% clamp(26px,3.1vw,61px);box-shadow:0 31px 60px #0903079e}.shelf:not(.shelf-many):before,.shelf-searching:before,.shelf:not(.shelf-many) .shelf-cell:after{display:none}.shelf-many:not(.shelf-searching){background-image:url(./alcove-cyX4Tv3E.avif),linear-gradient(90deg,#170b06,#492619 48%,#180a05);background-repeat:no-repeat;background-size:100% clamp(390px,33vw,640px),auto}.shelf-searching{min-height:clamp(435px,39vw,690px);padding-top:clamp(65px,7.4vw,140px)}.catalog-paper{box-shadow:none;background:url(./catalog-07-UR91A.avif) 50%/100% 100% no-repeat;border:0}.catalog-paper:before,.catalog-paper:after{display:none}.catalog-header{padding-top:min(5vh,51px)}@media (width<=699px){.shelf:not(.shelf-many),.shelf-searching{border-radius:22% 22% 3% 3%/13% 13% 3% 3%;min-height:0;padding:83px 21px 27px}.shelf:not(.shelf-many):not(.shelf-searching) .shelf-cell:nth-child(-n+2):after{display:block}.shelf-grid{row-gap:38px}.shelf-searching{min-height:445px;padding-top:67px}.catalog-header{padding-top:31px}}.search-region{flex:auto;min-width:0;display:block}output.book-count{display:block}.reader-stage .book-sheet--right .page-text>h1:first-child{margin-top:.75em}.book-sheet--right .page-text>h1:first-child{margin-bottom:1.04em}.page-text pre{padding-block:.74em}@media (width>=700px) and (width<=1500px){.book-sheet{font-size:clamp(16px,1.57vw,23.5px)}.book-sheet--left{width:28%;left:20.17%}.book-sheet--right{width:26.5%;left:53.7%}.book-sheet--left .page-text h1{font-size:clamp(25px,2.82vw,42px)}.book-sheet--left .page-text .page-running-head{font-size:.715em}.book-sheet--left .page-text>p:has(>img:only-child){max-width:97%}.book-sheet--left .page-text img{margin-top:1.15em}.reader-stage .book-sheet--right .page-text>h1:first-child{margin-top:.95em;font-size:clamp(25px,2.69vw,40px)}.book-sheet--right .page-text h2{font-size:clamp(18px,1.63vw,24.5px)}.book-sheet--right .page-text>p{font-size:.955em}.book-sheet--right .page-text pre{margin-bottom:1.38em;padding:.79em 1.18em;font-size:.8em}}@media (width<=699px){.search-region{flex-basis:100%}.reader-stage .book-sheet--right .page-text>h1:first-child{margin-top:.52em}.book-sheet--right .page-text>h1:first-child{margin-bottom:.86em}.reader .book-sheet--right{animation:.36s cubic-bezier(.22,.8,.29,1) both paper-in}}@keyframes paper-in{0%{opacity:.65;transform:perspective(700px)rotateY(-14deg)}to{opacity:1;transform:none}}@media (width<=699px){.book-fallback{box-shadow:none;background:url(./mobile-paper-DF0CuLes.avif) 50%/100% 100% no-repeat;border:0;inset:2px 0 5px}}@media (width>=700px){.page-text img{margin:1.35em auto 0}}.shelf-cell:before{z-index:-1;content:"";opacity:.78;filter:blur(6px);pointer-events:none;background:#180904;border-radius:50%;width:96%;height:20px;position:absolute;bottom:-2px}.volume{aspect-ratio:600/760}.volume-render{filter:var(--cover-filter,none)}.shelf-searching .shelf-cell:before{display:none}.shelf-searching .volume:before{z-index:1;content:"";filter:drop-shadow(0 0 6px #fcb664);pointer-events:none;border-right:2px solid #ffe7b3;border-radius:0 0 99%;width:13%;height:18%;position:absolute;top:96%;left:49%;transform:skew(-24deg)translate(-100%)}@media (width<=699px){.shelf-cell:before{filter:blur(4px);height:9px}}.reader,.book-transition-backdrop{background:radial-gradient(38% 49% at 50% 87%,#50191a90 3%,#3613167d 42%,#0000 76%),radial-gradient(68% 42% at 48% 49%,#371119,#210b14 85%)}.reader-stage[data-ready=true][data-wide=false] .book-fallback{visibility:visible}@media (width>=700px){.book-sheet--left .page-text>p:not(.page-running-head):not(:has(img)){max-width:88%}.book-sheet--right .page-text>p{max-width:95%}.book-sheet--right .page-text>h1:first-child{margin-bottom:1.1em}.book-sheet--right .page-text>:last-child{margin-bottom:3px}}.more-shelves{width:100%;height:1px}.catalog-row{position:relative}.catalog-expand{inset-inline-end:calc(var(--folio-width) + var(--catalog-gap) + var(--folio-padding));width:var(--catalog-toggle-size);height:var(--catalog-toggle-size);color:#7b4c37;background:0 0;border:0;border-radius:8px;place-items:center;display:grid;position:absolute;top:50%;transform:translateY(-50%)}.catalog-expand:hover{background:#ba733022}.catalog-expand[aria-expanded=true] svg{transform:rotate(180deg)}.catalog-nested{padding:0 0 4px 12px;list-style:none}.catalog-nested a{font-size:.92em}@media (width<=699px){.reader-stage{margin-top:8px}.book-sheet--right{inset:54px 9.8% 39px 9.5%}.book-sheet--right .page-text>h1:first-child{margin-bottom:1.4em;font-size:clamp(24px,6.7vw,37px)}.book-sheet--right .page-text h2{font-size:19px}.book-sheet--right .page-text>p{font-size:1.04em;line-height:1.4}.book-sheet--right .page-text pre{margin-block:1.4em 1.82em;padding:1.02em 1.1em;font-size:.85em}.book-sheet--right .page-text p+pre{margin-top:1.18em}.catalog-paper{min-height:61.5svh}.catalog{width:97vw;inset-inline:1.5vw}}.library[data-searching=true]{padding-bottom:0}.shelf-searching{min-height:min(78svh,900px);box-shadow:none;background:url(./search-stage-B8cH1AE_.avif) top/100% no-repeat;margin-top:20px;padding:clamp(42px,3.5vw,68px) 8% 125px}.shelf-one-match .shelf-cell{width:min(100%,407px)}.shelf-one-match .volume{aspect-ratio:.86}.shelf-one-match .volume-render{object-fit:fill}.shelf-searching .volume:after{background:#170602;box-shadow:0 0 24px 5px #efb05dad}.shelf-searching .volume:before{filter:drop-shadow(0 0 5px #ffad50)drop-shadow(0 0 12px #de7c31);height:18%;top:96%;left:49%}@media (width<=699px){.shelf[data-mobile-rows="2"]:not(.shelf-searching){background-image:url(./mobile-cabinet-BUr9vtlo.avif);border-radius:0;min-height:max(620px,100svh - 139px)}.shelf[data-mobile-rows="2"]:not(.shelf-searching) .shelf-grid{grid-template-rows:41% 40%;gap:0 8px;position:absolute;inset:0 8%}.shelf[data-mobile-rows="2"]:not(.shelf-searching) .shelf-cell:after{display:none}.shelf-searching{background-image:url(./search-stage-mobile-BZ58ew4F.avif);background-size:100% 100%;min-height:max(515px,100svh - 235px);padding:clamp(92px,26vw,130px) 8% 75px}.shelf-one-match .shelf-cell{width:65%}.shelf-one-match .volume{aspect-ratio:600/760}}.volume:focus-visible{outline:none}.volume:is(:hover,:focus-visible) .volume-render{filter:var(--cover-filter,brightness(1)) drop-shadow(0 0 3px #ffd894) drop-shadow(0 0 8px #d58d3a)}@media (width>=700px){.shelf:not(.shelf-many):not(.shelf-searching):not(:has(.shelf-cell:nth-child(4))){border-radius:0}.shelf:not(.shelf-many):not(.shelf-searching):not(:has(.shelf-cell:nth-child(4))) .shelf-grid{align-items:end;column-gap:clamp(15px,2.2vw,42px);position:absolute;inset:0 8% 7.2%}.shelf:not(.shelf-many):not(.shelf-searching) .volume{width:min(100%,432px)}}@media (width>=1501px){.reader .book-sheet--left{top:18.45%}.reader .page-text .page-running-head{margin-bottom:1.95em}.reader .book-sheet--left .page-text h1{margin-bottom:1.23em;font-size:46px}.book-sheet--left .page-text>p:has(>img:only-child){max-width:94%}.book-sheet--left .page-text>p:not(.page-running-head):not(:has(img)){max-width:82%}.book-sheet--right{left:53.52%}.reader .book-sheet--left .page-text img{max-height:min(23.4vh,285px);margin-top:2.01em}.reader .reader-stage:not([data-frame=reading]) .book-sheet--right .page-text>h1:first-child{margin-block:1.07em 1.21em}.reader .reader-stage:not([data-frame=reading]) .book-sheet--right .page-text pre{margin-block:1.37em 1.92em;padding-inline:1.18em;font-size:.85em}.reader .reader-stage:not([data-frame=reading]) .book-sheet--right .page-text p+pre{margin-top:1.84em}}@media (width>=700px){.shelf-searching{padding-top:clamp(31px,2.7vw,51px)}.shelf-one-match .shelf-cell{width:min(100%,439px)}.shelf:not(.shelf-many):not(.shelf-searching){-webkit-mask-image:linear-gradient(90deg,#0000,#000 2% 98%,#0000),linear-gradient(#0000,#000 1.2% 98.7%,#0000);mask-image:linear-gradient(90deg,#0000,#000 2% 98%,#0000),linear-gradient(#0000,#000 1.2% 98.7%,#0000);-webkit-mask-composite:source-in;mask-composite:intersect}}.catalog::backdrop{background:0 0}.reader--catalog .reader-stage{filter:brightness(.48)sepia(.16)saturate(1.32)}.reader--catalog .contents-button{visibility:hidden}@media (width>=700px){.reader--catalog .reader-stage{transform:translate(-14vw,-.6vh)scale(.943)}.catalog{width:clamp(310px,32vw,620px);top:8.4vh;right:.7vw}.catalog-paper{height:75vh;min-height:0;max-height:83vh;padding-top:4.65vh}.catalog-header{padding-top:min(6.45vh,69px)}.catalog-header h2{font-size:clamp(30px,3.1vw,49px)}.catalog-pages a{min-height:clamp(44px,5vh,52px)}}@media (width>=700px) and (width<=1500px){.reader--catalog .reader-stage{filter:brightness(.28)sepia(.25)saturate(1.65);transform:translate(-13.18vw,-.6vh)scale(.883,.98)}.catalog{width:clamp(310px,34.5vw,580px)}}@media (width<=699px){.reader--catalog .reader-stage{filter:brightness(.32)sepia(.08)}.catalog-paper{min-height:64svh}}.shelf-searching{border-radius:0;-webkit-mask-image:linear-gradient(90deg,#0000,#000 1.5% 98.5%,#0000),linear-gradient(#0000,#000 1.1% 98.8%,#0000);mask-image:linear-gradient(90deg,#0000,#000 1.5% 98.5%,#0000),linear-gradient(#0000,#000 1.1% 98.8%,#0000);-webkit-mask-composite:source-in;mask-composite:intersect}@media (width<=699px){.catalog-header{padding-top:49px;padding-left:16px}.catalog-header h2{font-size:clamp(27px,8.2vw,36px)}.catalog-pages{font-size:clamp(16px,4.45vw,19px)}}.reader-stage[data-page-turn=true]>.book-sheet{visibility:hidden}.turn-capture,.turn-capture-face{position:absolute;inset:0}.turn-capture{opacity:0;pointer-events:none}@media (width>=700px){.reader-stage[data-frame=reading]{--read-padding-x:clamp(23px, 2.8vw, 52px);--read-padding-y:clamp(22px, 3.3vh, 40px);--read-padding-top:calc(var(--read-padding-y) - 8px);aspect-ratio:auto;width:100%;height:calc(100svh - clamp(115px,12vh,144px));min-height:225px}.reader-stage[data-frame=reading]~.reader-pagination{bottom:clamp(7px,1.15vh,13px)}.reader-stage[data-frame=reading] .book-fallback{width:calc(var(--read-paper-width,86vw) + 14px);height:calc(var(--read-paper-height,75vh) + 14px);inset:50% auto auto 50%;transform:translate(-50%,-50%)}.reader-stage[data-frame=reading] .book-sheet{top:calc(50% - var(--read-paper-height,75vh) / 2 + var(--read-padding-top));height:calc(var(--read-paper-height,75vh) - var(--read-padding-top) - var(--read-padding-y));width:calc(var(--read-paper-width,86vw) / 2 - var(--read-padding-x) * 2);font-size:clamp(17px,1.31vw,23px)}.reader-stage[data-frame=reading] .book-sheet--left{left:calc(50% - var(--read-paper-width,86vw) / 2 + var(--read-padding-x))}.reader-stage[data-frame=reading] .book-sheet--right{left:calc(50% + var(--read-padding-x))}.reader-stage[data-frame=reading] .page-text{max-height:calc(100% - 26px)}.reader-stage[data-frame=reading] .page-running-head{display:none}.reader-stage[data-frame=reading] .book-sheet .page-text>:is(h1,h2):first-child,.reader-stage[data-frame=reading] .book-sheet .page-running-head+:is(h1,h2){margin-block:0 .6em;font-size:clamp(28px,2.35vw,44px)}.reader-stage[data-frame=reading] .book-sheet .page-text>p{max-width:none;font-size:1em}.reader-stage[data-frame=reading] .book-sheet .page-text pre,.reader-stage[data-frame=reading] .book-sheet .page-text p+pre{margin-block:.8em 1em}}.volume-title{color:var(--cover-lettering,#f3d69d);text-shadow:var(--cover-title-shadow,0 2px 2px #2d120c);word-break:normal;overflow-wrap:break-word;text-wrap:balance;-webkit-line-clamp:3;-webkit-box-orient:vertical;font-size:clamp(12px,8.3cqw,27px);font-weight:650;line-height:1.12;display:-webkit-box;position:absolute;inset:25% 23% auto 19%;overflow:hidden}.page-text .paper-video{aspect-ratio:16/9;object-fit:contain;clip-path:inset(0 round 8px);background:#27131a;border-radius:8px;width:100%;max-height:min(58vh,480px);margin:1em 0;display:block}.volume[data-opening]{visibility:hidden}.book-transition-backdrop{z-index:3;pointer-events:none;opacity:0;transition:opacity .155s ease-out;position:fixed;inset:0}.book-transition-backdrop[data-paper=true]{opacity:1}.reader-transition-shell .reader{background:0 0}.reader-transition-shell{z-index:4;pointer-events:none;position:fixed;inset:0}.reader-transition-shell[data-paper=false]{visibility:hidden}.book-transition{z-index:5;pointer-events:none;position:fixed;inset:0;overflow:clip}.book-transition-rig,.book-transition-lid,.book-transition-front,.book-transition-inside{position:absolute;inset:0}.book-transition-rig{transform-origin:0 0}.book-transition-lid{transform-style:preserve-3d;transform-origin:0}.book-transition-front,.book-transition-inside{backface-visibility:hidden}.book-transition-front{filter:drop-shadow(0 10px 14px #1706068c)}.book-transition-art{text-align:center;color:#f3d69d;position:absolute;container-type:inline-size}.book-transition-front .volume-render{object-fit:fill}.book-transition-art .volume-title{transform-origin:top}.book-transition-inside{border:3px solid var(--leather-edge,#672a21);background:linear-gradient(90deg,#ad77485c,#0000 40%,#a47443a6),url(./mobile-paper-DF0CuLes.avif) 50%/126% 115%;border-radius:2%;transform:rotateY(180deg);box-shadow:inset 0 0 2px 1px #ead6b3,0 8px 18px #26100970}@media (width<=699px){.reader-stage[data-binding]:not([data-binding=red]) .book-fallback:before{content:"";background:inherit;filter:var(--leather-filter);-webkit-mask-composite:xor;-webkit-mask-source-type:auto,auto;padding:8px 13px;position:absolute;inset:0;-webkit-mask-image:linear-gradient(#fff 0 0),linear-gradient(#fff 0 0);mask-image:linear-gradient(#fff 0 0),linear-gradient(#fff 0 0);-webkit-mask-position:0 0,0 0;mask-position:0 0,0 0;-webkit-mask-size:auto,auto;mask-size:auto,auto;-webkit-mask-repeat:repeat,repeat;mask-repeat:repeat,repeat;-webkit-mask-clip:content-box,border-box;mask-clip:content-box,border-box;-webkit-mask-origin:content-box,border-box;mask-origin:content-box,border-box;-webkit-mask-composite:xor;mask-composite:exclude;-webkit-mask-source-type:auto,auto;mask-mode:match-source,match-source}.reader-stage[data-wide=false],.reader-stage[data-wide=false] .page-text{touch-action:pan-y pinch-zoom}}.paper-embed{grid-template-columns:minmax(0,1fr);justify-items:start;gap:.35rem;min-inline-size:0;margin-block:1em;display:grid}.paper-embed iframe,.paper-embed button{box-sizing:border-box;width:100%;min-inline-size:0;max-inline-size:100%;aspect-ratio:16/9;color:#f6e6c7;background:#27131a;border:0;border-radius:8px;min-height:200px}.paper-embed button{justify-content:center;align-items:center;gap:.55em;display:flex}.paper-embed a{font-size:.86em}.page-text .paper-diagram{max-height:min(46svh,460px);margin:.8em auto}.paper-diagram-copy+:is(.paper-diagram,.paper-diagram-source){display:none}.page-text mark,.static-reading mark{color:inherit;background:#ffde7d;padding-inline:.13em}.paper-red{color:#8b1f24}.paper-alert{--alert-stripe:#916c3c;border-inline-start:3px solid var(--alert-stripe);background:#b98e4f24;margin:1em 0;padding:.65em 1em}.paper-alert-tip{--alert-stripe:#4d6438}.paper-alert-important{--alert-stripe:#734c74}.paper-alert-warning,.paper-alert-caution{--alert-stripe:#971f29}.paper-alert .paper-alert-label{color:var(--alert-stripe);margin-bottom:.28em;font-weight:700}.paper-alert>:last-child{margin-bottom:0}.reader-header[data-magic-control]{grid-template-columns:1fr auto auto;column-gap:clamp(7px,1vw,17px)}.magic-mode{color:#f2d7a3;white-space:nowrap;background:#3c1d25;border:1px solid #845635;border-radius:999px;justify-content:center;align-items:center;gap:.35em;min-height:42px;padding-inline:clamp(7px,1vw,13px);font-size:clamp(13px,1.15vw,18px);display:inline-flex}.magic-mode[aria-pressed=true]{border-color:#e5b76e;box-shadow:inset 0 0 10px #d6ab4d39}@media (width<=699px){.reader-header[data-magic-control] .contents-button{grid-area:1/3}}.static-reading{background:var(--paper);width:min(100% - 2rem,68ch);color:var(--ink);border-radius:6px;margin:3rem auto;padding:clamp(1rem,4vw,3rem);line-height:1.6}.static-reading :is(img,video){max-width:100%}.static-reading :is(pre,table){display:block;overflow:auto}.static-reading a{color:#752e26}.reader[data-magic] .page-text{isolation:isolate;position:relative}.spell-overlay{contain:paint;pointer-events:none;z-index:1;position:absolute;overflow:clip}.spell-ink,.spell-letter,.spell-seal{pointer-events:none;position:absolute}.spell-stroke{transform-origin:0;display:block}.page-text .spell-drawing-mark{z-index:2;background:0 0;position:relative}.spell-ink-mark .spell-stroke{background:#ffde7d;border-radius:5% 3% 5% 2%;position:absolute;inset:12% -2px 0}.spell-marker-tip,.spell-ink-dust{position:absolute;bottom:12%;left:0}.spell-marker-tip{z-index:3;transform-origin:bottom;width:.38em;height:1.55em}.spell-marker-tip:before{content:"";transform-origin:bottom;background:linear-gradient(0deg,#e6ad35 0 22%,#73513a 22% 36%,#35241a 36%);border-radius:.08em;width:100%;height:100%;display:block;transform:rotate(29deg)}.spell-drawing-underline,.spell-drawing-cross{text-decoration:none}.spell-ink-underline .spell-stroke,.spell-ink-cross .spell-stroke{background:currentColor;height:.08em;position:absolute;bottom:5%;left:0;right:0}.spell-ink-cross .spell-stroke{height:.1em;bottom:45%}.spell-ink-dust{background:currentColor;border-radius:50%;width:.2em;height:.2em;bottom:50%;box-shadow:.17em -.19em,-.12em -.33em 0 -.025em}.spell-letters-rising{color:#0000}.spell-letter{color:var(--ink,#2f1c13);white-space:pre}.spell-seal{color:#8d2831;pointer-events:none;place-items:center end;padding-inline-end:.6em;font-weight:700;display:grid}@media (width>=700px){.book-fallback:has(.book-resting){box-shadow:none;background:0 0;border:0}}.book-resting{background-position:50%;background-repeat:no-repeat;background-size:100% 100%;width:115.302%;max-width:none;height:127.058%;position:absolute;top:-13.529%;left:-7.651%}.static-reader .reader-stage{--read-stage-height:calc(100svh - clamp(115px, 12vh, 144px));--read-paper-width:min(86vw, calc(var(--read-stage-height) * 2.2));--read-paper-height:min(calc(var(--read-stage-height) * .88), 82vw)}.static-reader .contents-button{text-decoration:none}.static-reader [data-fallback-magic]{border:1px solid #845635;border-radius:999px;align-items:center;min-height:42px;padding-inline:.7em;display:inline-flex}@media (width>=700px){.static-reader .static-main-left{left:calc(50% - var(--read-paper-width) / 2 + var(--read-padding-x))}}@media (width<=699px){.static-reader .book-resting,.static-reader .static-neighbor{display:none}}.resting-art-slot{display:contents}.shelf.resting-shelf:not(.shelf-searching){background-image:none}.shelf-art{z-index:-1;border-radius:inherit;pointer-events:none;background:url(./alcove-cyX4Tv3E.avif) 50%/100% 100% no-repeat;position:absolute;inset:0}.shelf-many .shelf-art{background-image:url(./alcove-cyX4Tv3E.avif),linear-gradient(90deg,#170b06,#492619 48%,#180a05);background-position:top;background-size:100% clamp(390px,33vw,640px),auto}@media (width<=699px){.book-resting{display:none}.shelf[data-mobile-rows="2"] .shelf-art{background-image:url(./mobile-cabinet-BUr9vtlo.avif)}}html[data-initial-art] #root{pointer-events:none;visibility:hidden;position:absolute;inset:0}html[data-initial-art] #root [data-initial-book],html[data-initial-art] #root [data-initial-shelf]{visibility:visible}html[data-initial-art] #grimoire-app{position:relative}html[data-initial-art=paper] #grimoire-app .reader,html[data-initial-art=shelf] #grimoire-app .library{background:0 0}html[data-initial-art=paper] #grimoire-app .book-fallback,html[data-initial-art=shelf] #grimoire-app .shelf-art{visibility:hidden}html[data-initial-art=paper] body{background:radial-gradient(at 50% 64%,#3f161b,#210c14 80%)}html[data-initial-art=shelf] body{background:radial-gradient(at 50% 60%,#35191b 0%,#1c0712 80%)}.reader-stage[data-ready=false] .book-scene{visibility:hidden}.page-pickup{z-index:1;top:calc(50% - var(--read-paper-height,75vh) / 2);right:calc(50% - var(--read-paper-width,86vw) / 2);aspect-ratio:1;clip-path:polygon(12% 0,100% 0,100% 89%,76% 42%);transform-origin:100% 0;pointer-events:none;background:linear-gradient(138deg,#f7e6c9 31%,#c1a884 73%,#e0cba8 95%);width:clamp(20px,3.5vw,49px);animation:.155s ease-out both pickup-paper;position:absolute}.page-pickup[data-direction="-1"]{left:calc(50% - var(--read-paper-width,86vw) / 2);transform-origin:0 0;right:auto;scale:-1 1}@keyframes pickup-paper{0%{opacity:.48;transform:scale(.18)rotate(0)}to{opacity:1;transform:scale(1)rotate(-9deg)}}.spell-red-drop:after{content:"";background:#8b1f24;border-radius:40% 60% 70%;width:.28em;height:.41em;position:absolute;top:20%;left:55%}.spell-red-drop,.spell-code-frame{pointer-events:none;position:absolute}.spell-code-frame{color:#7a5235;justify-content:space-between;align-items:center;display:flex}.spell-code-frame span:first-child{margin-left:-.34em}.spell-code-frame span:last-child{margin-right:-.34em}@media (width<=480px){.book-fallback{background-image:url(./mobile-paper-sm-77eJHX6h.avif)}.shelf[data-mobile-rows="2"] .shelf-art{background-image:url(./mobile-cabinet-sm-pauJUfRH.avif)}}.paper-diagram-open{background:0 0;border:0;border-radius:5px;place-items:center;width:100%;max-width:100%;margin:.8em auto;padding:0;display:grid;position:relative}.page-text .paper-diagram-open .paper-diagram{margin:0}.diagram-enlarge{background:var(--paper);color:var(--ink);border:1px solid #8f694b;border-radius:4px;align-items:center;gap:.28em;padding:.24em .5em;font-size:.76em;line-height:1.15;display:flex;position:absolute;inset-block-end:.28em;inset-inline-end:.28em}.turn-capture .diagram-enlarge{visibility:hidden}.diagram-viewer{color:#f5e4c7;background:#29151c;border:1px solid #886343;border-radius:10px;width:min(1040px,100% - 20px);max-width:none;height:min(790px,100dvh - 24px);max-height:none;padding:0}.diagram-viewer[open]{flex-direction:column;display:flex}.diagram-viewer::backdrop{background:#190a12d8}.diagram-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 12px;padding:6px 12px;display:flex}.diagram-toolbar h2{margin:0;font-size:clamp(16px,2vw,23px)}.diagram-controls{align-items:center;gap:3px;display:flex}.diagram-controls button{background:#462529;border:1px solid #80553d;border-radius:5px;place-items:center;width:44px;height:44px;padding:0;display:grid}.diagram-controls output{text-align:center;font-variant-numeric:tabular-nums;min-width:3.7em;font-size:.85rem}.diagram-viewport{overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom;background:var(--paper);scrollbar-color:#9e704c transparent;flex:1;min-width:0;min-height:0;overflow:auto}.diagram-viewport:focus-visible{outline-offset:-3px;outline-color:#8a2d31}.diagram-viewport[data-pannable]{cursor:grab}.diagram-viewport[data-grabbing]{cursor:grabbing;-webkit-user-select:none;user-select:none}.diagram-surface{place-items:center;display:grid}.diagram-surface img{object-fit:contain;-webkit-user-select:none;user-select:none;max-width:none;display:block}
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BookReader-D6Y6-YiA.js","./jsxRuntime-WpZ1bTm4.js"])))=>i.map(i=>d[i]);
2
+ import{_ as e,a as t,d as n,f as r,g as i,h as a,i as o,l as s,m as c,o as l,p as u,r as d,s as f,t as p,u as m,v as h}from"./jsxRuntime-WpZ1bTm4.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function g(e){return{render:function(t){f(t,e)},unmount:function(){l(e)}}}var _=2300;function v(e,t,n,r,i){let a=i*Math.PI/180,o=t+n;return Array.from({length:25},(i,s)=>{let c=s/24,l=c*a,u=r*Math.sin(l),d=t+n*Math.cos(l)/(1-u/_),f=Math.max(0,Math.min(1,(c-.35)/.4)),p=Math.max(0,(c-.8)/.2),m=o+(e.right+64-o)*f,h=Math.min(m,d+(e.left-64-d)*p);return{offset:c,clipPath:`inset(-64px ${e.right-m}px -64px ${h-e.left}px)`}})}var y=new URL(`resting-amber-BSjsErIg.avif`,import.meta.url).href,b=new URL(`resting-black-DDQ4XMJI.avif`,import.meta.url).href,x=new URL(`resting-blue-DDOT8IQ8.avif`,import.meta.url).href,S=new URL(`resting-green-DkRrV8eX.avif`,import.meta.url).href,C=new URL(`resting-ivory-CEqoG5yI.avif`,import.meta.url).href,w=new URL(`resting-plum-B-8tkSmP.avif`,import.meta.url).href,T=new URL(`resting-red-D0hLpMpz.avif`,import.meta.url).href,E=new URL(`resting-slate-CH8Z_Rky.avif`,import.meta.url).href,D=new URL(`resting-teal-CGt6jFmT.avif`,import.meta.url).href,O=new URL(`resting-walnut-t3WgHgUO.avif`,import.meta.url).href,k={red:{base:`red`,filter:`brightness(1)`,edge:`#6d2022`,mobile:`none`,hue:`0deg`,dye:``,light:`.22,.064,.060`},green:{base:`green`,filter:`brightness(1)`,edge:`#424624`,mobile:`hue-rotate(66deg) saturate(.62)`,hue:`72deg`,dye:`.57,.83,.25`,light:`.105,.128,.049`},blue:{base:`blue`,filter:`brightness(1)`,edge:`#34314c`,mobile:`hue-rotate(248deg) saturate(.62)`,hue:`235deg`,dye:`.37,.51,.85`,light:`.08,.102,.164`},plum:{base:`red`,filter:`hue-rotate(-47deg) saturate(.79)`,edge:`#572c50`,mobile:`hue-rotate(-47deg) saturate(.79)`,hue:`313deg`,dye:`.71,.31,.67`,light:`.15,.069,.14`},amber:{base:`red`,filter:`hue-rotate(34deg) saturate(.85) brightness(1.28)`,edge:`#8a551e`,mobile:`hue-rotate(34deg) brightness(1.28)`,hue:`34deg`,dye:`1.24,.68,.20`,light:`.27,.17,.055`},teal:{base:`green`,filter:`hue-rotate(63deg) saturate(.86) brightness(1.18)`,edge:`#245452`,mobile:`hue-rotate(152deg) saturate(.65)`,hue:`150deg`,dye:`.26,.81,.75`,light:`.06,.16,.15`},black:{base:`blue`,filter:`grayscale(1) brightness(.82)`,edge:`#252321`,mobile:`grayscale(1) brightness(.68)`,hue:`0deg`,dye:`.38,.37,.36`,light:`.072,.07,.068`},ivory:{base:`red`,filter:`grayscale(1) invert(.86) sepia(.33) brightness(1.05)`,edge:`#d9c5a3`,mobile:`grayscale(1) invert(.86) sepia(.33)`,hue:`32deg`,dye:`3.2,2.7,2.02`,light:`.38,.315,.22`,lettering:`#392518`},walnut:{base:`red`,filter:`hue-rotate(22deg) saturate(.58) brightness(.78)`,edge:`#50301c`,mobile:`hue-rotate(22deg) saturate(.58) brightness(.78)`,hue:`23deg`,dye:`.70,.43,.25`,light:`.15,.09,.048`},slate:{base:`blue`,filter:`grayscale(.66) brightness(1.42)`,edge:`#5e6570`,mobile:`hue-rotate(213deg) saturate(.24) brightness(1.23)`,hue:`220deg`,dye:`.75,.82,.91`,light:`.17,.19,.21`}},A=[`red`,`blue`,`green`];function j(e,t){if(t&&Object.hasOwn(k,t))return t;let n=2166136261;for(let t of e.replace(/^\d+[-_]+/,``))n=Math.imul(n^(t.codePointAt(0)??0),16777619);return A[(n>>>10)%A.length]}var M={red:{src:new URL(new URL(`cover-red-qvZEk3PI.avif`,import.meta.url).href,``+import.meta.url).href,compact:new URL(new URL(`cover-red-mobile-DHOCz3wI.avif`,import.meta.url).href,``+import.meta.url).href,opaqueBounds:[40,29,531,689]},blue:{src:new URL(new URL(`cover-blue-Bh8Xp4T5.avif`,import.meta.url).href,``+import.meta.url).href,compact:new URL(new URL(`cover-blue-mobile-YcuYIg0I.avif`,import.meta.url).href,``+import.meta.url).href,opaqueBounds:[8,4,582,715]},green:{src:new URL(new URL(`cover-green-By13JjUx.avif`,import.meta.url).href,``+import.meta.url).href,compact:new URL(new URL(`cover-green-mobile-BNTgNt7v.avif`,import.meta.url).href,``+import.meta.url).href,opaqueBounds:[49,42,507,637]}};function N(e,t){let n=j(e,t),r=k[n]??k.red,i={"--cover-filter":r.filter,"--cover-lettering":r.lettering,"--cover-title-shadow":r.lettering?`0 1px 1px #fbe9c6b0`:void 0,"--leather-edge":r.edge,"--leather-filter":r.mobile};return{...M[r.base],...r,binding:n,style:i}}var P=Object.assign({"./art/resting-amber.avif":y,"./art/resting-black.avif":b,"./art/resting-blue.avif":x,"./art/resting-green.avif":S,"./art/resting-ivory.avif":C,"./art/resting-plum.avif":w,"./art/resting-red.avif":T,"./art/resting-slate.avif":E,"./art/resting-teal.avif":D,"./art/resting-walnut.avif":O});function F(e){return P[`./art/resting-${e}.avif`]??P[`./art/resting-red.avif`]}var I=`(prefers-reduced-motion: reduce)`,L=410,R=420,z=e=>`translate3d(${e.left}px, ${e.top}px, 0)`;function B(e,t){let n=Math.min(e,t);return`scale(${n/e}, ${n/t})`}function ee({origin:e,paper:t,direction:r,onStage:i,onDone:a}){let o=n(null),s=n(null),c=n(null),l=n(null),{rect:u}=e,{binding:d,opaqueBounds:f,style:h}=N(e.id,e.cover),[g,y,b,x]=f,S=g/600*u.width,C=y/760*u.height,w=b/600*u.width,T=x/760*u.height;return m(()=>{let e=o.current,n=s.current,d=c.current,f=l.current,p=t?.parentElement;if(!t||!p||!e||!n||!d||!f)return;let m=matchMedia(I),h=t.getBoundingClientRect();if(m.matches||!e.animate||!u.width||!h.width){a();return}let g=p.dataset.wide===`true`,_=g?h.width/2:h.width,y=g?h.left+_:h.left,b=_/w,x=h.height/T,E=`translate3d(${y-S*b}px, ${h.top-C*x}px, 0) scale(${b}, ${x})`,D=r===`close`,O=[],k=()=>{i(`travel`);let t=[z(u),E],n={duration:L,easing:D?`cubic-bezier(.42,0,.72,.97)`:`cubic-bezier(.24,.76,.28,1)`,fill:`forwards`},r=e.animate((D?t.reverse():t).map(e=>({transform:e})),n),o=Array.from({length:13},(e,t)=>{let n=t/12;return{transform:B(1+(b-1)*n,1+(x-1)*n)}});O.push(r,f.animate(D?o.reverse():o,n)),r.onfinish=D?a:A},A=()=>{i(`hinge`);let e=g?179:152,t={duration:R,direction:D?`reverse`:`normal`,easing:`ease-in-out`,fill:`both`},r=n.animate([{transform:`rotateY(0deg)`},{transform:`rotateY(-${e}deg)`}],t),o=p.animate(v(p.getBoundingClientRect(),y,_,w,e),t),s=d.animate([{opacity:1},{opacity:1,offset:.975},{opacity:0}],t);O.push(r,o,s);let c=p.parentElement?.querySelectorAll(`.reader-header, .reader-pagination`);for(let e of c??[])O.push(e.animate([{opacity:0},{opacity:0,offset:.7},{opacity:1}],t));r.onfinish=D?k:a};return D?(e.style.transform=E,f.style.transform=B(b,x),A()):k(),window.addEventListener(`resize`,a),m.addEventListener(`change`,a),()=>{for(let e of O)e.cancel();window.removeEventListener(`resize`,a),m.removeEventListener(`change`,a)}},[T,S,C,w,r,a,i,t,u]),p(`div`,{className:`book-transition`,"data-direction":r,"data-binding":d,style:h,"aria-hidden":`true`,children:p(`div`,{className:`book-transition-rig`,ref:o,style:{width:u.width,height:u.height,transform:z(u),perspective:_,perspectiveOrigin:`${S}px center`},children:p(`div`,{className:`book-transition-lid`,ref:s,style:{left:S,top:C,width:w,height:T},children:[p(`div`,{className:`book-transition-front`,children:p(`div`,{className:`book-transition-art`,style:{left:-S,top:-C,width:u.width,height:u.height},children:[p(`img`,{className:`volume-render`,src:e.src,alt:``}),p(`span`,{className:`volume-title`,ref:l,children:e.title})]})}),p(`div`,{className:`book-transition-inside`,ref:c})]})})})}var te=e=>(e.match(/\d+[xX]\d+|[A-Z]?[a-z]+|[A-Z]|\d+/g)??[]).join(`-`).toLowerCase();function V(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:te(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var ne=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},re=e=>{let t=ne(e);return t.charAt(0).toUpperCase()+t.slice(1)},ie=(...e)=>{let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of n.split(/\s+/))e&&t.add(e);return[...t].join(` `)},H={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function U(e){return e!=null}function ae(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??H.width,a=e.size??e.height??H.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?ie(...c):ie(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??H[`stroke-width`])*Number(e.size??e.width??H.width)/Number(t.size??t.width??H.width):t.strokeWidth??H[`stroke-width`];return[`svg`,{...Object.entries(H).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&U(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&U(t.width)&&{[r(`width`)]:t.width},...`height`in t&&U(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function oe(e,t={}){return ae(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var se=e=>{if(typeof e!=`object`||!e)return!1;for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&(t.startsWith(`aria-`)||t===`role`||t===`title`)&&e[t]!=null)return!0;return!1},ce=e({}),le=()=>c(ce),ue=o(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:g=!1,nonScalingStroke:_=!1,color:v=`currentColor`,className:y=``}=le()??{},b=!!c||se(d),[x,S,C=[]]=oe(u,{color:e??v,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??g,nonScalingStroke:o??_,className:ie(y,s),hasA11yProp:b,attributes:d});return h(x,{ref:f,...S},[...C.map(([e,t])=>h(e,t)),...Array.isArray(c)?c:[c]])});function W(e,t=[],n=[]){let r=typeof e==`string`?V(e,t,n):e,i=o(({className:e,...t},n)=>h(ue,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=re(r.name)),i}var de={name:`book-open`,size:24,node:[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]};de.node;var fe=W(de),pe={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};pe.node;var me=W(pe),he={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};he.node;var ge=W(he),_e={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};_e.node;var ve=W(_e);function ye(e,t){return`read/${[e,...t?.split(`/`)??[]].map(encodeURIComponent).join(`/`)}/`}function be(e){let[t,n]=e.slice(1).split(`?`,2);try{let[,e,r]=(t??``).split(`/`);return{book:e?decodeURIComponent(e):void 0,page:r?decodeURIComponent(r):void 0,anchor:new URLSearchParams(n).get(`anchor`)}}catch{return{book:void 0,page:void 0,anchor:null}}}var G=document.querySelector(`meta[name="grimoire-static"]`)?.content,K=new URL(G||`./`,location.href),xe=document.querySelector(`[data-initial-book]`),Se=document.querySelector(`[data-initial-shelf]`),q=!location.hash.startsWith(`#/`)&&matchMedia(`(max-width: 699px)`).matches&&(xe||Se)?xe?`paper`:`shelf`:void 0,Ce=q?null:xe,we=q?null:Se,J=G?K.href:`#/`;function Y(e){return new URL(e,K).href}function X(e,t,n){if(G)return Y(ye(e,t))+(n?`#${encodeURIComponent(n)}`:``);let r=`#/${encodeURIComponent(e)}`;if(t===void 0)return r;let i=`${r}/${encodeURIComponent(t)}`;return n?`${i}?anchor=${encodeURIComponent(n)}`:i}function Te(e){if(e.startsWith(`#/`)){let{book:t,page:n,anchor:r}=be(e);return t?X(t,n,r??void 0):J}return e.startsWith(`./`)?Y(e):e}function Z(){if(!G||location.hash.startsWith(`#/`))return be(location.hash);try{let[e,t,...n]=location.pathname.slice(K.pathname.length).replace(/(?:\/)?index\.html$/i,``).replace(/\/$/,``).split(`/`);return{book:e===`read`&&t?decodeURIComponent(t):void 0,page:n.length?n.map(decodeURIComponent).join(`/`):void 0,anchor:location.hash?decodeURIComponent(location.hash.slice(1)):null}}catch{return{book:void 0,page:void 0,anchor:null}}}function Q(e){new URL(e,location.href).href!==location.href&&(G?(history.pushState(null,``,e),window.dispatchEvent(new PopStateEvent(`popstate`))):location.hash=e)}function Ee(e){if(!G||e.button!==0||e.defaultPrevented||e.metaKey||e.altKey||e.shiftKey||e.ctrlKey||!(e.target instanceof Element))return;let t=e.target.closest(`a[href]`);if(!t||t.download||t.target&&t.target!==`_self`)return;let n=new URL(t.href);if(n.origin!==K.origin||!n.pathname.startsWith(K.pathname))return;let r=n.pathname.slice(K.pathname.length);(!r||r.startsWith(`read/`))&&(e.preventDefault(),Q(n.href))}function De(e){return e.normalize(`NFKC`).toLowerCase().trim()}function Oe({book:e,onOpen:t,front:n=!1,opening:r}){let a=N(e.id,e.cover),o=p(i,{children:[p(`picture`,{children:[p(`source`,{media:`(max-width: 699px)`,srcSet:a.compact}),p(`img`,{className:`volume-render`,width:600,height:760,src:a.src,alt:``,loading:n?`eager`:`lazy`,decoding:`async`})]}),p(`span`,{className:`volume-title`,children:e.title})]});return p(`a`,{className:`volume`,href:X(e.id),"data-book":e.id,"data-cover":a.binding,style:a.style,"data-opening":r||void 0,"aria-label":e.title,title:e.title,onClick:t,children:o})}function ke({library:e,text:t,state:o,onState:c,openingBookId:l,onOpenVolume:u,onLocateVolume:d}){let{locale:f,books:h}=e,{mode:g,query:_,scroll:v,focus:y,shown:b}=o,x=n(null),S=n(null),C=n(new Map),w=n(!0),T=n(!1),E=n(!!d),D=n(null),O=n([]),k=n(new Set),A=n(null),j=De(_),M=g===`shelves`&&!j;m(()=>{let e=A.current,t=we;if(M&&e&&t)return e.append(t),()=>t.remove()},[M]);let P=h.length>6,F=a(()=>{let e=j?h.filter(e=>De(e.title).includes(j)||De(e.id).includes(j)):h;return g===`index`?[...e].sort((e,t)=>e.title.localeCompare(t.title,f,{numeric:!0})):e},[h,f,j,g]),I=a(()=>g===`shelves`?F.slice(0,b):F,[g,F,b]),L=g===`shelves`&&b<F.length;s(()=>{let e=D.current;if(l||!e||!L)return;let t=new IntersectionObserver(([e])=>{e?.isIntersecting&&c({...o,shown:Math.min(b+12,F.length)})},{rootMargin:`250px 0px`});return t.observe(e),()=>t.disconnect()},[L,c,l,F.length,b,o]),s(()=>{if(g!==`shelves`)return;let e=new Set;k.current=e;let t=new IntersectionObserver(t=>{for(let n of t)n.target instanceof HTMLAnchorElement&&(n.isIntersecting?e.add(n.target):e.delete(n.target))}),n=S.current?.querySelectorAll(`[data-book]`)??[],r=new Set(I.map(e=>e.id));for(let e of n)r.has(e.dataset.book??``)&&t.observe(e);return()=>t.disconnect()},[g,I]);let R=r(()=>Array.from(S.current?.querySelectorAll(`[data-book]`)??[]),[]);m(()=>{(w.current||T.current&&!l)&&(w.current=!1,window.scrollTo(0,v),l||R().find(e=>e.dataset.book===y)?.focus({preventScroll:!0}))},[y,l,R,v]),m(()=>{T.current=!!l},[l]),m(()=>{if(E.current){E.current=!1;return}if(g!==`shelves`||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)return;let e=Array.from(S.current?.querySelectorAll(`[data-book]`)??[]);for(let e of O.current)e.cancel();O.current=[];for(let[t,n]of e.entries()){let e=C.current.get(n.dataset.book??``);if(!e&&(!j||t>=6))continue;let r=n.getBoundingClientRect(),i=e?e.left-r.left:0,a=e?e.top-r.top:32,o=e?Math.max(.6,Math.min(1.2,e.width/r.width)):.82;O.current.push(n.animate([{translate:`${i}px ${a}px`,scale:String(o),opacity:e?1:.48},{translate:`0px 0px`,scale:`1`,opacity:1}],{duration:360,easing:`cubic-bezier(.22,.9,.32,1)`}))}C.current.clear()},[j,g]),m(()=>{if(!d)return;let e=I.find(({id:e})=>e===l),t=R().find(e=>e.dataset.book===l),n=t?.getBoundingClientRect();d(e&&t&&n&&n.bottom>0&&n.top<window.innerHeight?{id:e.id,title:e.title,cover:e.cover,src:t.querySelector(`img`)?.currentSrc||N(e.id,e.cover).src,rect:n}:null)},[d,l,R,I]);function z(e){C.current=new Map(g===`shelves`?[...k.current].map(e=>[e.dataset.book??``,e.getBoundingClientRect()]):[]),c({...o,query:e,shown:12}),window.scrollTo(0,0)}function B(e,t){if(t.defaultPrevented||t.button!==0||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||(c({...o,scroll:window.scrollY,focus:e.id}),matchMedia(`(prefers-reduced-motion: reduce)`).matches))return;t.preventDefault();let n=t.currentTarget;u({id:e.id,title:e.title,cover:e.cover,src:n.querySelector(`img`)?.currentSrc||N(e.id,e.cover).src,rect:n.getBoundingClientRect()})}return p(`main`,{className:`library`,ref:S,"data-searching":!!j,children:[p(`header`,{className:`library-brand brand`,children:[p(fe,{"aria-hidden":!0,size:25}),e.title]}),p(`div`,{className:P?`library-heading library-heading-sticky`:`library-heading`,children:[p(`h1`,{children:t.library}),P&&p(`div`,{className:`library-tools`,children:[p(`search`,{className:`search-region`,children:p(`form`,{className:`shelf-search`,onSubmit:e=>{e.preventDefault(),F.length===1?R()[0]?.click():R()[0]?.focus()},children:[p(ge,{"aria-hidden":!0,size:18}),p(`input`,{ref:x,type:`search`,"aria-label":t.find,placeholder:t.find,value:_,onChange:e=>z(e.target.value),onKeyDown:e=>{e.key===`ArrowDown`&&(e.preventDefault(),R()[0]?.focus()),e.key===`Escape`&&_&&z(``)}}),_&&p(`button`,{type:`button`,"aria-label":t.clear,onClick:()=>{z(``),x.current?.focus()},children:p(ve,{"aria-hidden":!0,size:17})})]})}),p(`div`,{className:`segment segment-library`,children:[p(`button`,{type:`button`,"aria-pressed":g===`shelves`,onClick:()=>{c({...o,mode:`shelves`}),window.scrollTo(0,0)},children:t.shelves}),p(`button`,{type:`button`,"aria-pressed":g===`index`,onClick:()=>{c({...o,mode:`index`}),window.scrollTo(0,0)},children:t.index})]})]})]}),j&&p(`output`,{className:`book-count`,children:F.length===0?t.zero:t.matches(F.length)}),g===`index`?p(i,{children:[!j&&p(`p`,{className:`book-count index-count`,children:t.count(h.length)}),p(`ul`,{className:`library-index`,children:F.map(e=>p(`li`,{children:p(`a`,{href:X(e.id),"data-book":e.id,onClick:()=>c({...o,scroll:window.scrollY,focus:e.id}),children:[p(`span`,{className:`index-spine`,style:{"--hue":N(e.id,e.cover).hue},"aria-hidden":!0}),p(`span`,{children:e.title}),p(me,{size:20,"aria-hidden":!0})]})},e.id))})]}):p(`div`,{"data-mobile-rows":h.length>=3&&h.length<=4?`2`:void 0,className:`shelf ${P?`shelf-many`:``} ${M?`resting-shelf`:``} ${j?`shelf-searching`:``} ${j&&F.length===1?`shelf-one-match`:``}`,children:[M&&(we?p(`div`,{className:`resting-art-slot`,ref:A,"aria-hidden":`true`}):p(`div`,{className:`shelf-art`,"aria-hidden":`true`})),p(`div`,{className:`shelf-grid`,children:I.map((e,t)=>p(`div`,{className:`shelf-cell`,children:p(Oe,{book:e,front:t<3,opening:l===e.id,onOpen:t=>B(e,t)})},e.id))}),L&&p(`div`,{ref:D,className:`more-shelves`,"aria-hidden":!0})]})]})}var Ae={en:{library:`Library`,shelves:`Shelves`,index:`Index`,find:`Find a book`,clear:`Clear search`,zero:`No books found`,count:e=>`${e} ${e===1?`book`:`books`}`,matches:e=>`${e} ${e===1?`book`:`books`} found`,contents:`Contents`,scrollableTable:`Horizontally scrollable table`,loadVideo:`Load video`,openVideo:`Open video on its site`,diagram:`Mermaid diagram`,diagramExpand:`Open enlarged diagram`,diagramPan:`Diagram, drag or use arrow keys to pan`,diagramFit:`Fit diagram to viewport`,zoomIn:`Zoom in`,zoomOut:`Zoom out`,diagramError:`This diagram could not be rendered.`,magic:`Spell mode`,cover:`Cover`,chapterPages:e=>`${e} pages`,previous:`Previous page`,next:`Next page`,close:`Close`,unavailable:`This page could not be opened.`,loading:`Opening…`},ja:{library:`書架`,shelves:`書架`,index:`目録`,find:`本を探す`,clear:`検索をクリア`,zero:`一致する本がありません`,count:e=>`${e} 冊`,matches:e=>`${e} 冊見つかりました`,contents:`目次`,scrollableTable:`横にスクロールできる表`,loadVideo:`動画を読み込む`,openVideo:`動画サイトで開く`,diagram:`Mermaid 図`,diagramExpand:`図を拡大表示`,diagramPan:`図。ドラッグまたは矢印キーで移動`,diagramFit:`図を画面に合わせる`,zoomIn:`拡大`,zoomOut:`縮小`,diagramError:`図を表示できませんでした。`,magic:`超魔導`,cover:`表紙`,chapterPages:e=>`${e}のページ`,previous:`前のページ`,next:`次のページ`,close:`閉じる`,unavailable:`ページを開けませんでした。`,loading:`読み込み中…`}};function je(e){let t=encodeURIComponent(e.id);return e.section?`${t}#${encodeURIComponent(e.section.id)}`:t}function Me(e,t,n){let r=e.findIndex(e=>e.id===t);if(r<0)return 0;if(n)for(let i=r;i<e.length;i+=1){let r=e[i];if(!r||r.id!==t)break;if(r.section?.id===n||Object.values(r.headingIds??{}).includes(n))return i}return r}var Ne=`modulepreload`,Pe=function(e,t){return new URL(e,t).href},Fe={},Ie=function(e){return e.pathname.endsWith(`.css`)},Le=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},Re=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=Pe(t,n);let r=s(t),i=Ie(r);return Le(Fe,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:Ne,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{let i=a=>{t.removeEventListener(`load`,i),t.removeEventListener(`error`,i),a.type===`error`?n(Error(`Unable to preload CSS for ${r}`)):e(a)};t.addEventListener(`load`,i),t.addEventListener(`error`,i)})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},ze=t(()=>Re(async()=>{let{BookReader:e}=await import(`./BookReader-D6Y6-YiA.js`);return{BookReader:e}},__vite__mapDeps([0,1]),import.meta.url).then(({BookReader:e})=>({default:e})));async function Be(e,t){let n=await fetch(Y(e),{signal:t});if(n.status===422){let e=await n.json();throw Error(e.error)}if(!n.ok)throw Error(`${e} (${n.status})`);return n.json()}function Ve({library:e,initialBook:t,initialReader:a}){let[o,c]=u(Z),[l,f]=u(()=>t?new Map([[t.id,t]]):new Map),h=a??ze;m(Ue,[]);let[g,_]=u(``),[v,y]=u(null),[b,x]=u(),S=n(!1),[C,w]=u(null),[T,E]=u(`ready`),[D,O]=u({mode:`shelves`,query:``,scroll:0,focus:``,shown:12}),k=Ae[e.locale],A=o.book?e.books.find(e=>e.id===o.book):e.shelf?void 0:e.books[0],j=A?.id,M=j?l.get(j):void 0,N=v&&v.id===j&&g!==j?v:null,P=N?.direction,F=!o.book&&e.shelf,I=N?.direction===`open`?N.origin:b,L=P===`close`?T!==`travel`:T===`hinge`,R=r(()=>{y(null),x(void 0),w(null),E(`ready`),P===`close`?(Q(J),c(Z())):S.current=!0},[P]);m(()=>{!N&&S.current&&(S.current=!1,window.scrollTo(0,0),document.querySelector(`.reader`)?.focus({preventScroll:!0}))},[N]);let z=r(e=>{e?x(e):R()},[R]);function B(e){v||(E(`travel`),y({direction:`open`,id:e.id,origin:e}),Q(X(e.id)),c(Z()))}function te(e){!j||v||D.mode!==`shelves`||e.button!==0||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||matchMedia(`(prefers-reduced-motion: reduce)`).matches||(e.preventDefault(),E(`ready`),y({direction:`close`,id:j}))}s(()=>{let e=()=>{let e=Z();y(t=>t?.id===e.book?t:null),c(e)};return window.history.scrollRestoration=`manual`,window.addEventListener(`hashchange`,e),window.addEventListener(`popstate`,e),document.addEventListener(`click`,Ee),()=>{window.removeEventListener(`hashchange`,e),window.removeEventListener(`popstate`,e),document.removeEventListener(`click`,Ee)}},[]),s(()=>{v&&g===v.id&&y(null),N||(x(void 0),w(null),E(`ready`))},[N,g,v]),s(()=>{if(!j||M)return;let e=new AbortController;return Be(`./books/${encodeURIComponent(j)}.json`,e.signal).then(e=>{f(t=>new Map(t).set(j,e))}).catch(()=>{e.signal.aborted||_(j)}),()=>e.abort()},[M,j]),s(()=>{let t=M?.pages.find(e=>e.id===o.page),n=t?.id===`index`?A?.title:t?.title??A?.title;document.title=n&&n!==e.title?`${n} · ${e.title}`:e.title},[M,e.title,o.page,A]);let V=p(`main`,{className:`status-screen`,"aria-busy":`true`,children:k.loading});return p(i,{children:[(F||N)&&p(`div`,{inert:!!N,children:p(ke,{library:e,text:k,state:D,onState:O,openingBookId:N?.id,onLocateVolume:P===`close`?z:void 0,onOpenVolume:B})}),N&&p(`div`,{className:`book-transition-backdrop`,"data-paper":L,"aria-hidden":`true`}),!F&&p(`div`,{className:N?`reader-transition-shell`:void 0,"data-direction":P,"data-phase":N?T:void 0,"data-paper":N?L:void 0,inert:!!N,children:!j||g===j?p(`main`,{className:`status-screen`,children:[p(`p`,{children:k.unavailable}),p(`a`,{href:J,children:k.library})]}):M?p(d,{fallback:V,children:p(h,{library:e,text:k,book:M,pageId:o.page,anchor:o.anchor,onPaperReady:N?w:void 0,onReturn:te},j)}):V}),N&&I&&p(ee,{origin:I,direction:N.direction,paper:C,onStage:E,onDone:R})]})}var He=document.getElementById(`root`);function Ue(){let e=He;if(!q||!e)return;let t=document.documentElement,n=[`pointerdown`,`keydown`,`hashchange`,`popstate`,`resize`],r=()=>{delete t.dataset.initialArt,e.hidden=!0;for(let e of n)window.removeEventListener(e,r,!0)};e.inert=!0,e.setAttribute(`aria-hidden`,`true`),t.dataset.initialArt=q;for(let e of n)window.addEventListener(e,r,{capture:!0,once:!0});return r}var $=He;if($){let e=q?document.createElement(`div`):$;e!==$&&(e.id=`grimoire-app`,$.after(e));let t=g(e);async function n(){let e=document.getElementById(`grimoire-initial`)?.textContent,n=e?JSON.parse(e):{library:await Be(`./library.json`)},r=n.book?(await Re(async()=>{let{BookReader:e}=await import(`./BookReader-D6Y6-YiA.js`);return{BookReader:e}},__vite__mapDeps([0,1]),import.meta.url)).BookReader:void 0;document.documentElement.lang=n.library.locale,t.render(p(Ve,{library:n.library,initialBook:n.book,initialReader:r}))}n().catch(n=>{e===$&&t.render(p(`main`,{className:`status-screen`,role:`alert`,children:n.message}))}),document.querySelector(`meta[name="grimoire-preview"]`)&&new EventSource(Y(`./__grimoire_events`)).addEventListener(`update`,()=>location.reload())}export{Ce as a,J as c,fe as d,W as f,X as i,ve as l,F as m,Me as n,Q as o,N as p,je as r,Te as s,Re as t,me as u};
@@ -0,0 +1 @@
1
+ export{w as createInfoServices}from"./mermaid-parser.core-Bffyim8R.js";import"./chunk-NGNAAXSQ-DI_UYJZ4.js";
@@ -0,0 +1,2 @@
1
+ import{o as e}from"./MermaidDiagram-BZ4xzlxF.js";import{c as t}from"./chunk-BG4553SI-CGVj-yfp.js";import{n}from"./d3-selection-BgLPRw73.js";import{n as r}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{n as i}from"./mermaid-parser.core-Bffyim8R.js";var a={parse:r(async e=>{let t=await i(`info`,e);n.debug(t)},`parse`)},o={version:`12.3.0`},s={parser:a,db:{getVersion:r(()=>o.version,`getVersion`)},renderer:{draw:r((r,i,a)=>{n.debug(`rendering info diagram
2
+ `+r);let o=e(i);t(o,100,400,!0),o.append(`g`).append(`text`).attr(`x`,100).attr(`y`,40).attr(`class`,`version`).attr(`font-size`,32).style(`text-anchor`,`middle`).text(`v${a}`)},`draw`)}};export{s as diagram};
@@ -0,0 +1,70 @@
1
+ import{o as e}from"./MermaidDiagram-BZ4xzlxF.js";import{m as t}from"./chunk-6MUBBAK2-DLDw-vT7.js";import{C as n,H as r,U as i,_ as a,a as o,b as s,c,q as l,s as u,v as d}from"./chunk-BG4553SI-CGVj-yfp.js";import"./d3-selection-BgLPRw73.js";import{n as f}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t as p}from"./rough.esm-Dy-Kn_BL.js";var m=(function(){var e=f(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,4],n=[1,14],r=[1,12],i=[1,13],a=[6,7,8],o=[1,20],s=[1,18],c=[1,19],l=[6,7,11],u=[1,6,13,14],d=[1,23],p=[1,24],m=[1,6,7,11,13,14],h={trace:f(function(){},`trace`),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`ISHIKAWA`,11:`EOF`,13:`SPACELIST`,14:`TEXT`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:f(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 15:r.addNode(a[s-1].length,a[s].trim());break;case 16:r.addNode(0,a[s].trim())}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:r,14:i},e(a,[2,3]),{1:[2,2]},e(a,[2,4]),e(a,[2,5]),{1:[2,6],6:n,12:15,13:r,14:i},{6:n,9:16,12:11,13:r,14:i},{6:o,7:s,10:17,11:c},e(l,[2,18],{14:[1,21]}),e(l,[2,16]),e(l,[2,17]),{6:o,7:s,10:22,11:c},{1:[2,7],6:n,12:15,13:r,14:i},e(u,[2,14],{7:d,11:p}),e(m,[2,8]),e(m,[2,9]),e(m,[2,10]),e(l,[2,15]),e(u,[2,13],{7:d,11:p}),e(m,[2,11]),e(m,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:f(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:f(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,l=0,u=0,d=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}f(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}f(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>d&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(c+1)+`:
2
+ `+h.showPosition()+`
3
+ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(c+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(l=h.yyleng,s=h.yytext,c=h.yylineno,v=h.yylloc,u>0&&u--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,l,c,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};h.lexer=(function(){return{EOF:1,parseError:f(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:f(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:f(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:f(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:f(function(){return this._more=!0,this},`more`),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:f(function(e){this.unput(this.match.slice(e))},`less`),pastInput:f(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:f(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:f(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
+ `+t+`^`},`showPosition`),test_match:f(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:f(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:f(function(){return this.next()||this.lex()},`lex`),begin:f(function(e){this.conditionStack.push(e)},`begin`),popState:f(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:f(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:f(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:f(function(e){this.begin(e)},`pushState`),stateStackSize:f(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:f(function(e,t,n,r){switch(n){case 0:return 6;case 1:return 8;case 2:return 8;case 3:return 6;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},`anonymous`),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}}})();function g(){this.yy={}}return f(g,`Parser`),g.prototype=h,h.Parser=g,new g})();m.parser=m;var h=m,g=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}static{f(this,`IshikawaDB`)}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,o()}getRoot(){return this.root}addNode(e,t){let n=u.sanitizeText(t,s());if(!this.root){this.root={text:n,children:[]},this.stack=[{level:0,node:this.root}],l(n);return}this.baseLevel??=e;let r=e-this.baseLevel+1;for(r<=0&&(r=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=r;)this.stack.pop();let i=this.stack[this.stack.length-1].node,a={text:n,children:[]};i.children.push(a),this.stack.push({level:r,node:a})}getAccTitle(){return d()}setAccTitle(e){i(e)}getAccDescription(){return a()}setAccDescription(e){r(e)}getDiagramTitle(){return n()}setDiagramTitle(e){l(e)}},_=14,v=250,y=30,b=60,x=5,S=82*Math.PI/180,C=Math.cos(S),w=Math.sin(S),T=f((e,t,n)=>{let r=e.node().getBBox(),i=r.width+t*2,a=r.height+t*2;c(e,a,i,n),e.attr(`viewBox`,`${r.x-t} ${r.y-t} ${i} ${a}`)},`applyPaddedViewBox`),E=f((n,r,i,a)=>{let o=a.db.getRoot();if(!o)return;let c=s(),{look:l,handDrawnSeed:u,themeVariables:d}=c,f=t(c.fontSize)[0]??_,m=l===`handDrawn`,h=o.children??[],g=c.ishikawa?.diagramPadding??20,y=c.ishikawa?.useMaxWidth??!1,b=e(r),x=b.append(`g`).attr(`class`,`ishikawa`),S=m?p.svg(b.node()):void 0,C=S?{roughSvg:S,seed:u??0,lineColor:d?.lineColor??`#333`,fillColor:d?.mainBkg??`#fff`}:void 0,w=`ishikawa-arrow-${r}`;m||x.append(`defs`).append(`marker`).attr(`id`,w).attr(`viewBox`,`0 0 10 10`).attr(`refX`,0).attr(`refY`,5).attr(`markerWidth`,6).attr(`markerHeight`,6).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 10 0 L 0 5 L 10 10 Z`).attr(`class`,`ishikawa-arrow`);let E=0,k=v,A=m?void 0:L(x,E,k,E,k,`ishikawa-spine`);if(O(x,E,k,o.text,f,C),!h.length){m&&L(x,E,k,E,k,`ishikawa-spine`,C),T(b,g,y);return}E-=20;let j=h.filter((e,t)=>t%2==0),N=h.filter((e,t)=>t%2==1),P=D(j),F=D(N),I=P.total+F.total,R=v,z=v;if(I>0){let e=v*2,t=v*.3;R=Math.max(t,e*(P.total/I)),z=Math.max(t,e*(F.total/I))}let B=f*2;R=Math.max(R,P.max*B),z=Math.max(z,F.max*B),k=Math.max(R,v),A&&A.attr(`y1`,k).attr(`y2`,k),x.select(`.ishikawa-head-group`).attr(`transform`,`translate(0,${k})`);let V=Math.ceil(h.length/2);for(let e=0;e<V;e++){let t=x.append(`g`).attr(`class`,`ishikawa-pair`);for(let[n,r,i]of[[h[e*2],-1,R],[h[e*2+1],1,z]])n&&M(t,n,E,k,r,i,f,C);E=t.selectAll(`text`).nodes().reduce((e,t)=>Math.min(e,t.getBBox().x),1/0)}if(m)L(x,E,k,0,k,`ishikawa-spine`,C);else{A.attr(`x1`,E);let e=`url(#${w})`;x.selectAll(`line.ishikawa-branch, line.ishikawa-sub-branch`).attr(`marker-start`,e)}T(b,g,y)},`draw`),D=f(e=>{let t=f(e=>e.children.reduce((e,n)=>e+1+t(n),0),`countDescendants`);return e.reduce((e,n)=>{let r=t(n);return e.total+=r,e.max=Math.max(e.max,r),e},{total:0,max:0})},`sideStats`),O=f((e,t,n,r,i,a)=>{let o=Math.max(6,Math.floor(110/(i*.6))),s=e.append(`g`).attr(`class`,`ishikawa-head-group`).attr(`transform`,`translate(${t},${n})`),c=F(s,P(r,o),0,0,`ishikawa-head-label`,`start`,i),l=c.node().getBBox(),u=Math.max(60,l.width+6),d=Math.max(40,l.height*2+40),f=`M 0 ${-d/2} L 0 ${d/2} Q ${u*2.4} 0 0 ${-d/2} Z`;if(a){let e=a.roughSvg.path(f,{roughness:1.5,seed:a.seed,fill:a.fillColor,fillStyle:`hachure`,fillWeight:2.5,hachureGap:5,stroke:a.lineColor,strokeWidth:2});s.insert(()=>e,`:first-child`).attr(`class`,`ishikawa-head`)}else s.insert(`path`,`:first-child`).attr(`class`,`ishikawa-head`).attr(`d`,f);c.attr(`transform`,`translate(${(u-l.width)/2-l.x+3},${-l.y-l.height/2})`)},`drawHead`),k=f((e,t)=>{let n=[],r=[],i=f((e,a,o)=>{let s=t===-1?[...e].reverse():e;for(let e of s){let t=n.length,s=e.children??[];n.push({depth:o,text:P(e.text,15),parentIndex:a,childCount:s.length}),o%2==0?(r.push(t),s.length&&i(s,t,o+1)):(s.length&&i(s,t,o+1),r.push(t))}},`walk`);return i(e,-1,2),{entries:n,yOrder:r}},`flattenTree`),A=f((e,t,n,r,i,a,o)=>{let s=e.append(`g`).attr(`class`,`ishikawa-label-group`),c=F(s,t,n,r+11*i,`ishikawa-label cause`,`middle`,a).node().getBBox();if(o){let e=o.roughSvg.rectangle(c.x-20,c.y-2,c.width+40,c.height+4,{roughness:1.5,seed:o.seed,fill:o.fillColor,fillStyle:`hachure`,fillWeight:2.5,hachureGap:5,stroke:o.lineColor,strokeWidth:2});s.insert(()=>e,`:first-child`).attr(`class`,`ishikawa-label-box`)}else s.insert(`rect`,`:first-child`).attr(`class`,`ishikawa-label-box`).attr(`x`,c.x-20).attr(`y`,c.y-2).attr(`width`,c.width+40).attr(`height`,c.height+4)},`drawCauseLabel`),j=f((e,t,n,r,i,a)=>{let o=Math.sqrt(r*r+i*i);if(o===0)return;let s=r/o,c=i/o,l=-c*6,u=s*6,d=t,f=n,p=`M ${d} ${f} L ${d-s*6*2+l} ${f-c*6*2+u} L ${d-s*6*2-l} ${f-c*6*2-u} Z`,m=a.roughSvg.path(p,{roughness:1,seed:a.seed,fill:a.lineColor,fillStyle:`solid`,stroke:a.lineColor,strokeWidth:1});e.append(()=>m)},`drawArrowMarker`),M=f((e,t,n,r,i,a,o,s)=>{let c=t.children??[],l=a*(c.length?1:.2),u=-C*l,d=w*l*i,f=n+u,p=r+d;if(L(e,n,r,f,p,`ishikawa-branch`,s),s&&j(e,n,r,n-f,r-p,s),A(e,t.text,f,p,i,o,s),!c.length)return;let{entries:m,yOrder:h}=k(c,i),g=m.length,_=Array(g);for(let[e,t]of h.entries())_[t]=r+d*((e+1)/(g+1));let v=new Map;v.set(-1,{x0:n,y0:r,x1:f,y1:p,childCount:c.length,childrenDrawn:0});let S=-C,T=w*i,E=i<0?`ishikawa-label up`:`ishikawa-label down`;for(let[t,n]of m.entries()){let r=_[t],i=v.get(n.parentIndex),a=e.append(`g`).attr(`class`,`ishikawa-sub-group`),c=0,l=0,u=0;if(n.depth%2==0){let e=i.y1-i.y0;c=I(i.x0,i.x1,e?(r-i.y0)/e:.5),l=r,u=c-(n.childCount>0?b+n.childCount*x:y),L(a,c,r,u,r,`ishikawa-sub-branch`,s),s&&j(a,c,r,1,0,s),F(a,n.text,u,r,`ishikawa-label align`,`end`,o)}else{let e=i.childrenDrawn++;c=I(i.x0,i.x1,(i.childCount-e)/(i.childCount+1)),l=i.y0,u=c+S*((r-l)/T),L(a,c,l,u,r,`ishikawa-sub-branch`,s),s&&j(a,c,l,c-u,l-r,s),F(a,n.text,u,r,E,`end`,o)}n.childCount>0&&v.set(t,{x0:c,y0:l,x1:u,y1:r,childCount:n.childCount,childrenDrawn:0})}},`drawBranch`),N=f(e=>e.split(/<br\s*\/?>|\n/),`splitLines`),P=f((e,t)=>{if(e.length<=t)return e;let n=[];for(let r of e.split(/\s+/)){let e=n.length-1;e>=0&&n[e].length+1+r.length<=t?n[e]+=` `+r:n.push(r)}return n.join(`
7
+ `)},`wrapText`),F=f((e,t,n,r,i,a,o)=>{let s=N(t),c=o*1.05,l=e.append(`text`).attr(`class`,i).attr(`text-anchor`,a).attr(`x`,n).attr(`y`,r-(s.length-1)*c/2);for(let[e,t]of s.entries())l.append(`tspan`).attr(`x`,n).attr(`dy`,e===0?0:c).text(t);return l},`drawMultilineText`),I=f((e,t,n)=>e+(t-e)*n,`lerp`),L=f((e,t,n,r,i,a,o)=>{if(o){let s=o.roughSvg.line(t,n,r,i,{roughness:1.5,seed:o.seed,stroke:o.lineColor,strokeWidth:2});e.append(()=>s).attr(`class`,a)}else return e.append(`line`).attr(`class`,a).attr(`x1`,t).attr(`y1`,n).attr(`x2`,r).attr(`y2`,i)},`drawLine`),R={parser:h,get db(){return new g},renderer:{draw:E},styles:f(e=>`
8
+ .ishikawa .ishikawa-spine,
9
+ .ishikawa .ishikawa-branch,
10
+ .ishikawa .ishikawa-sub-branch {
11
+ stroke: ${e.lineColor};
12
+ stroke-width: 2;
13
+ fill: none;
14
+ }
15
+
16
+ .ishikawa .ishikawa-sub-branch {
17
+ stroke-width: 1;
18
+ }
19
+
20
+ .ishikawa .ishikawa-arrow {
21
+ fill: ${e.lineColor};
22
+ }
23
+
24
+ .ishikawa .ishikawa-head {
25
+ fill: ${e.mainBkg};
26
+ stroke: ${e.lineColor};
27
+ stroke-width: 2;
28
+ }
29
+
30
+ .ishikawa .ishikawa-label-box {
31
+ fill: ${e.mainBkg};
32
+ stroke: ${e.lineColor};
33
+ stroke-width: 2;
34
+ }
35
+
36
+ .ishikawa text {
37
+ font-family: ${e.fontFamily};
38
+ font-size: ${e.fontSize};
39
+ fill: ${e.textColor};
40
+ }
41
+
42
+ .ishikawa .ishikawa-head-label {
43
+ font-weight: 600;
44
+ text-anchor: middle;
45
+ dominant-baseline: middle;
46
+ font-size: 14px;
47
+ }
48
+
49
+ .ishikawa .ishikawa-label {
50
+ text-anchor: end;
51
+ }
52
+
53
+ .ishikawa .ishikawa-label.cause {
54
+ text-anchor: middle;
55
+ dominant-baseline: middle;
56
+ }
57
+
58
+ .ishikawa .ishikawa-label.align {
59
+ text-anchor: end;
60
+ dominant-baseline: middle;
61
+ }
62
+
63
+ .ishikawa .ishikawa-label.up {
64
+ dominant-baseline: baseline;
65
+ }
66
+
67
+ .ishikawa .ishikawa-label.down {
68
+ dominant-baseline: hanging;
69
+ }
70
+ `,`getStyles`)};export{R as diagram};