@burakboduroglu/nors 0.1.2 → 0.1.3

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 (89) hide show
  1. package/package.json +1 -1
  2. package/pb_public/nors/assets/{abnfDiagram-VCTEODGH-BjNTd20L.js → abnfDiagram-VCTEODGH-ruhEaSgX.js} +1 -1
  3. package/pb_public/nors/assets/architecture-7GRP2DOG-FixOTtMw.js +1 -0
  4. package/pb_public/nors/assets/{architectureDiagram-5GKGNRK7-DFNV5SNP.js → architectureDiagram-5GKGNRK7-CzCWMt5X.js} +1 -1
  5. package/pb_public/nors/assets/{blockDiagram-I7D4REHJ-DNijD6G8.js → blockDiagram-I7D4REHJ-oMLodvwS.js} +1 -1
  6. package/pb_public/nors/assets/{c4Diagram-7LVT6UL2-DLW_Vk73.js → c4Diagram-7LVT6UL2-D7Kvx5bG.js} +1 -1
  7. package/pb_public/nors/assets/channel-CpmEypED.js +1 -0
  8. package/pb_public/nors/assets/{chunk-4HAMMTFA-CQW8auRW.js → chunk-4HAMMTFA-CfDItMak.js} +1 -1
  9. package/pb_public/nors/assets/{chunk-75Z2AOVW-OUM6F-Z2.js → chunk-75Z2AOVW-JambT9gc.js} +1 -1
  10. package/pb_public/nors/assets/{chunk-DU6HZSFF-DdkkHC2K.js → chunk-DU6HZSFF-HXNYRQa7.js} +1 -1
  11. package/pb_public/nors/assets/{chunk-F27PBJKO-D4tBKW95.js → chunk-F27PBJKO-ClqBa20N.js} +1 -1
  12. package/pb_public/nors/assets/{chunk-GMAD6QVW-CZU7s-_u.js → chunk-GMAD6QVW-BgHQEQ7R.js} +1 -1
  13. package/pb_public/nors/assets/{chunk-GVQU2GXP-BQGI6BgU.js → chunk-GVQU2GXP-4BgM3wXc.js} +1 -1
  14. package/pb_public/nors/assets/{chunk-IMKFNOWR-BRvu8wxF.js → chunk-IMKFNOWR-mtk65J6o.js} +1 -1
  15. package/pb_public/nors/assets/{chunk-L3NEJ4N5-OjXnRmPt.js → chunk-L3NEJ4N5-qOkePrmd.js} +1 -1
  16. package/pb_public/nors/assets/{chunk-OSK3NFVY-puWVIqFn.js → chunk-OSK3NFVY-BjHX_8-9.js} +1 -1
  17. package/pb_public/nors/assets/{chunk-P2QGCYS3-BH6JrbP_.js → chunk-P2QGCYS3-SGZBqYWd.js} +1 -1
  18. package/pb_public/nors/assets/{chunk-POPQ4Y6H-XJIxFdlK.js → chunk-POPQ4Y6H-DcJcKYiy.js} +1 -1
  19. package/pb_public/nors/assets/{chunk-PWAF6VOD-B__l-VgZ.js → chunk-PWAF6VOD-B3ubF73c.js} +1 -1
  20. package/pb_public/nors/assets/{chunk-SHT3W25Y-B8vLWnR_.js → chunk-SHT3W25Y-vvRcRFqu.js} +1 -1
  21. package/pb_public/nors/assets/{chunk-SVP7TREG-Cjv1tk7U.js → chunk-SVP7TREG-C6Es_S0r.js} +1 -1
  22. package/pb_public/nors/assets/{chunk-TICWLB2K-B5znima5.js → chunk-TICWLB2K-DrKftLbE.js} +1 -1
  23. package/pb_public/nors/assets/classDiagram-ZZMXUADV-CXDptR1d.js +1 -0
  24. package/pb_public/nors/assets/classDiagram-v2-VYDZK3BY-CXDptR1d.js +1 -0
  25. package/pb_public/nors/assets/{cynefin-OW5HDTMX-CG0jDjpt.js → cynefin-OW5HDTMX-Btnpxygf.js} +1 -1
  26. package/pb_public/nors/assets/{cynefinDiagram-5FMLGOSQ-C_Ir6oea.js → cynefinDiagram-5FMLGOSQ-k51kgQ-B.js} +1 -1
  27. package/pb_public/nors/assets/{dagre-GXQ25YYZ-D8QhYxWu.js → dagre-GXQ25YYZ-Cs3cuZG4.js} +1 -1
  28. package/pb_public/nors/assets/{diagram-S7CK7UJ4-BpLSV2IE.js → diagram-S7CK7UJ4-4BhLGiaj.js} +1 -1
  29. package/pb_public/nors/assets/{diagram-UQ7AKVKN-CZdWRYnI.js → diagram-UQ7AKVKN-HSN5hvfb.js} +1 -1
  30. package/pb_public/nors/assets/{diagram-VSXAHHWV-DumOz0aB.js → diagram-VSXAHHWV-C8P7WlOX.js} +1 -1
  31. package/pb_public/nors/assets/{diagram-VX7I27RA-FEvMg4vC.js → diagram-VX7I27RA-CyN4rdT2.js} +1 -1
  32. package/pb_public/nors/assets/{diagram-Z3DM3KII-B0wSI-7M.js → diagram-Z3DM3KII-DxuGZ95A.js} +1 -1
  33. package/pb_public/nors/assets/{ebnfDiagram-PWID7BFC-DnVv0Jr0.js → ebnfDiagram-PWID7BFC-BV8ekp3J.js} +1 -1
  34. package/pb_public/nors/assets/{erDiagram-RLTQ6QDP-DRrBeVO-.js → erDiagram-RLTQ6QDP-Mx8uE8AM.js} +1 -1
  35. package/pb_public/nors/assets/eventmodeling-NTZA5JFV-XwcNizNP.js +1 -0
  36. package/pb_public/nors/assets/flowDiagram-HODETNUW-D7npSOTp.js +1 -0
  37. package/pb_public/nors/assets/{ganttDiagram-EL5Y4UJY-Boo75Thn.js → ganttDiagram-EL5Y4UJY-Dma-FCtx.js} +1 -1
  38. package/pb_public/nors/assets/{gitGraph-4MIJSDKK-DkHL0Vmb.js → gitGraph-4MIJSDKK-DHtizqGj.js} +1 -1
  39. package/pb_public/nors/assets/{gitGraphDiagram-WWUBYQGX-BxbzXOHt.js → gitGraphDiagram-WWUBYQGX-BCA2sf8N.js} +1 -1
  40. package/pb_public/nors/assets/index-CggD7ZD5.js +77 -0
  41. package/pb_public/nors/assets/index-_pnzcT9l.css +1 -0
  42. package/pb_public/nors/assets/{info-A6RAGUB7-Dm0lTq1F.js → info-A6RAGUB7-CDeXG_55.js} +1 -1
  43. package/pb_public/nors/assets/{infoDiagram-27XIBGKW-DqVr5vns.js → infoDiagram-27XIBGKW-BJ9SB24L.js} +1 -1
  44. package/pb_public/nors/assets/{ishikawaDiagram-5VMMS53U-D9UPVhhC.js → ishikawaDiagram-5VMMS53U-BcDILkPT.js} +1 -1
  45. package/pb_public/nors/assets/{journeyDiagram-3NMN7TZE-B_TT0UBS.js → journeyDiagram-3NMN7TZE-p6E7vL2h.js} +1 -1
  46. package/pb_public/nors/assets/{kanban-definition-UXKFOSKX-CYxipC8k.js → kanban-definition-UXKFOSKX-DFQ7CHVl.js} +1 -1
  47. package/pb_public/nors/assets/{line-CeGn86Ww.js → line-Cm4hKInN.js} +1 -1
  48. package/pb_public/nors/assets/{mermaid-parser.core-Bh2pMn-f.js → mermaid-parser.core-Bduruqas.js} +3 -3
  49. package/pb_public/nors/assets/{mermaid.core-CL8sN1KK.js → mermaid.core-BtBN7z80.js} +4 -4
  50. package/pb_public/nors/assets/{mindmap-definition-YA3MSWOX-DACQFk4_.js → mindmap-definition-YA3MSWOX-B-kI70Xy.js} +1 -1
  51. package/pb_public/nors/assets/{packet-AYTQ26CC-6s6XRIHO.js → packet-AYTQ26CC-DJCHtf_H.js} +1 -1
  52. package/pb_public/nors/assets/{pegDiagram-XKGWAZYB-3cpO6gJW.js → pegDiagram-XKGWAZYB-DqjJOq5a.js} +1 -1
  53. package/pb_public/nors/assets/{pie-WAS4IAKB-BNoU8wOh.js → pie-WAS4IAKB-BQ3vCOeu.js} +1 -1
  54. package/pb_public/nors/assets/{pieDiagram-E7YTZNPT-BCVRuVsN.js → pieDiagram-E7YTZNPT-CIiIZK2z.js} +1 -1
  55. package/pb_public/nors/assets/{quadrantDiagram-AXDQQJYC-B5ib9c-g.js → quadrantDiagram-AXDQQJYC-BnNrMjSv.js} +1 -1
  56. package/pb_public/nors/assets/{radar-RG4KPBEZ-7fT-y4bj.js → radar-RG4KPBEZ-COPQmxDH.js} +1 -1
  57. package/pb_public/nors/assets/{railroad-74A4TZTK-DfD5x0yO.js → railroad-74A4TZTK-DQ-mYa6o.js} +1 -1
  58. package/pb_public/nors/assets/railroad-abnf-HS5TGJTU-B7R28bHf.js +1 -0
  59. package/pb_public/nors/assets/railroad-ebnf-LZEXJU2U-DvhY4Bnt.js +1 -0
  60. package/pb_public/nors/assets/railroad-peg-WCYAUIDC-B1dhaWlf.js +1 -0
  61. package/pb_public/nors/assets/{railroadDiagram-O6MQD6OU-JtCr1lo_.js → railroadDiagram-O6MQD6OU-B-dWD-5-.js} +1 -1
  62. package/pb_public/nors/assets/{requirementDiagram-BXWQKSXE-BqStJCDF.js → requirementDiagram-BXWQKSXE-BXBGqOOo.js} +1 -1
  63. package/pb_public/nors/assets/{sankeyDiagram-P5KCCOFB-CX_LZnAD.js → sankeyDiagram-P5KCCOFB-Cxs240X3.js} +1 -1
  64. package/pb_public/nors/assets/{sequenceDiagram-WJ2MYXX4-BCudH1Kz.js → sequenceDiagram-WJ2MYXX4-DIajJjS-.js} +1 -1
  65. package/pb_public/nors/assets/{stateDiagram-D77RDMKH-rGlSUlYz.js → stateDiagram-D77RDMKH-DcTZSewZ.js} +1 -1
  66. package/pb_public/nors/assets/stateDiagram-v2-MP3YSRHH-SxUnZY4q.js +1 -0
  67. package/pb_public/nors/assets/{swimlanes-42K2YHIH-DKvSloZp.js → swimlanes-42K2YHIH-VYcLbc6q.js} +1 -1
  68. package/pb_public/nors/assets/swimlanesDiagram-VR7AAH4N-Nl2reNCg.js +8 -0
  69. package/pb_public/nors/assets/{timeline-definition-24CTP7MA-CELuFcfA.js → timeline-definition-24CTP7MA-R6Y5zNTL.js} +1 -1
  70. package/pb_public/nors/assets/{treeView-Q6P3EWNA-D5E6rNip.js → treeView-Q6P3EWNA-DXStGtQJ.js} +1 -1
  71. package/pb_public/nors/assets/{treemap-WGGIJYW6-CdXHwdKK.js → treemap-WGGIJYW6-Brk6Aicr.js} +1 -1
  72. package/pb_public/nors/assets/{vennDiagram-4TSXK5OY-ByJmWaze.js → vennDiagram-4TSXK5OY-GqAbHoJh.js} +1 -1
  73. package/pb_public/nors/assets/{wardley-WFR3VGLG-Bb28LKxc.js → wardley-WFR3VGLG-BWAndKh8.js} +1 -1
  74. package/pb_public/nors/assets/{wardleyDiagram-VM6X3IG4-CZbfB95E.js → wardleyDiagram-VM6X3IG4-7KKenvde.js} +1 -1
  75. package/pb_public/nors/assets/{xychartDiagram-S5SC5T6Z-BzhKhU_k.js → xychartDiagram-S5SC5T6Z-Ce-67g_s.js} +1 -1
  76. package/pb_public/nors/index.html +2 -2
  77. package/pb_public/nors/assets/architecture-7GRP2DOG-CszbBaLG.js +0 -1
  78. package/pb_public/nors/assets/channel-BBJC6jlq.js +0 -1
  79. package/pb_public/nors/assets/classDiagram-ZZMXUADV-CflNlJhy.js +0 -1
  80. package/pb_public/nors/assets/classDiagram-v2-VYDZK3BY-CflNlJhy.js +0 -1
  81. package/pb_public/nors/assets/eventmodeling-NTZA5JFV-CHTuxREV.js +0 -1
  82. package/pb_public/nors/assets/flowDiagram-HODETNUW-GyQBSUMm.js +0 -1
  83. package/pb_public/nors/assets/index-B1thqj8h.css +0 -1
  84. package/pb_public/nors/assets/index-CHyIcFAa.js +0 -71
  85. package/pb_public/nors/assets/railroad-abnf-HS5TGJTU-b8Cz753z.js +0 -1
  86. package/pb_public/nors/assets/railroad-ebnf-LZEXJU2U-B_O77J7F.js +0 -1
  87. package/pb_public/nors/assets/railroad-peg-WCYAUIDC-DY-15zgB.js +0 -1
  88. package/pb_public/nors/assets/stateDiagram-v2-MP3YSRHH-BYqH8M1b.js +0 -1
  89. package/pb_public/nors/assets/swimlanesDiagram-VR7AAH4N-XbCiub0l.js +0 -8
@@ -0,0 +1,77 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-BtBN7z80.js","assets/src-BH-TyZbA.js","assets/chunk-Y2CYZVJY-DsF7k-Jl.js","assets/chunk-DU6HZSFF-HXNYRQa7.js","assets/chunk-75Z2AOVW-JambT9gc.js","assets/dist-DTg6UBE_.js","assets/chunk-PWAF6VOD-B3ubF73c.js","assets/chunk-GMAD6QVW-BgHQEQ7R.js","assets/chunk-P2QGCYS3-SGZBqYWd.js","assets/chunk-4HAMMTFA-CfDItMak.js","assets/rough.esm-Dy-Kn_BL.js","assets/chunk-GVQU2GXP-4BgM3wXc.js","assets/chunk-OSK3NFVY-BjHX_8-9.js","assets/line-Cm4hKInN.js","assets/path-fybaL0A-.js","assets/array-BifhSqXX.js","assets/graphlib-DS17s2tU.js","assets/chunk-L3NEJ4N5-qOkePrmd.js"])))=>i.map(i=>d[i]);
2
+ (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)}})();var e={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return t(this.context.count)},getNextContextId(){return t(this.context.count++)}};function t(t){let n=String(t),r=n.length-1;return e.context.id+(r?String.fromCharCode(96+r):``)+n}function n(t){e.context=t}var r=(e,t)=>e===t,i=Symbol(`solid-track`),a={equals:r},o=null,s=se,c=1,l=2,u={owned:null,cleanups:null,context:null,owner:null},d={},f=null,p=null,m=null,h=null,g=null,_=0;function v(e,t){let n=m,r=f,i=e.length===0,a=t===void 0?r:t,o=i?u:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=i?e:()=>e(()=>T(()=>F(o)));f=o,m=null;try{return N(s,!0)}finally{m=n,f=r}}function y(e,t){t=t?Object.assign({},a,t):a;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0};return[O.bind(n),e=>(typeof e==`function`&&(e=p&&p.running&&p.sources.has(n)?e(n.tValue):e(n.value)),oe(n,e))]}function b(e,t,n){k(j(e,t,!0,c))}function x(e,t,n){k(j(e,t,!1,c))}function S(e,t,n){s=ce;let r=j(e,t,!1,c),i=ae&&ie(ae);i&&(r.suspense=i),(!n||!n.render)&&(r.user=!0),g?g.push(r):k(r)}function C(e,t,n){n=n?Object.assign({},a,n):a;let r=j(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,k(r),O.bind(r)}function ee(e){return e&&typeof e==`object`&&`then`in e}function w(t,n,r){let i,a,o;typeof n==`function`?(i=t,a=n,o=r||{}):(i=!0,a=t,o=n||{});let s=null,c=d,l=null,u=!1,h=!1,g=`initialValue`in o,_=typeof i==`function`&&C(i),v=new Set,[x,S]=(o.storage||y)(o.initialValue),[w,te]=y(void 0),[re,D]=y(void 0,{equals:!1}),[O,oe]=y(g?`ready`:`unresolved`);f&&E(()=>{for(let e of v.keys())e.decrement();v.clear(),p&&s&&p.promises.delete(s),s=null}),e.context&&(l=e.getNextContextId(),o.ssrLoadFrom===`initial`?c=o.initialValue:e.load&&e.has(l)&&(c=e.load(l)));function k(e,t,n,r){return s===e&&(s=null,r!==void 0&&(g=!0),(e===c||t===c)&&o.onHydrated&&queueMicrotask(()=>o.onHydrated(r,{value:t})),c=d,p&&e&&u?(p.promises.delete(e),u=!1,N(()=>{p.running=!0,A(t,n)},!1)):A(t,n)),t}function A(e,t){N(()=>{t===void 0&&S(()=>e),oe(t===void 0?g?`ready`:`unresolved`:`errored`),te(t);for(let e of v.keys())e.decrement();v.clear()},!1)}function j(){let e=ae&&ie(ae),t=x(),n=w();if(n!==void 0&&!s)throw n;return m&&!m.user&&e&&b(()=>{re(),s&&(e.resolved&&p&&u?p.promises.add(s):v.has(e)||(e.increment(),v.add(e)))}),t}function M(e=!0){if(e!==!1&&h)return;h=!1;let t=_?_():i;if(u=p&&p.running,t==null||t===!1){k(s,T(x));return}p&&s&&p.promises.delete(s);let n,r=c===d?T(()=>{try{return a(t,{value:x(),refetching:e})}catch(e){n=e}}):c;if(n!==void 0){k(s,void 0,fe(n),t);return}return ee(r)?(s=r,`v`in r?(r.s===1?k(s,r.v,void 0,t):k(s,void 0,fe(r.v),t),r):(h=!0,queueMicrotask(()=>h=!1),N(()=>{oe(g?`refreshing`:`pending`),D()},!1),r.then(e=>k(r,e,void 0,t),e=>k(r,void 0,fe(e),t)))):(k(s,r,void 0,t),r)}Object.defineProperties(j,{state:{get:()=>O()},error:{get:()=>w()},loading:{get(){let e=O();return e===`pending`||e===`refreshing`}},latest:{get(){if(!g)return j();let e=w();if(e&&!s)throw e;return x()}}});let P=f;return _?b(()=>(P=f,M(!1))):M(!1),[j,{refetch:e=>ne(P,()=>M(e)),mutate:S}]}function T(e){if(m===null)return e();let t=m;m=null;try{return e()}finally{m=t}}function te(e){S(()=>T(e))}function E(e){return f===null||(f.cleanups===null?f.cleanups=[e]:f.cleanups.push(e)),e}function ne(e,t){let n=f,r=m;f=e,m=null;try{return N(t,!0)}catch(e){me(e)}finally{f=n,m=r}}var[re,D]=y(!1);function ie(e){let t;return f&&f.context&&(t=f.context[e.id])!==void 0?t:e.defaultValue}var ae;function O(){let e=p&&p.running;if(this.sources&&(e?this.tState:this.state)){if((e?this.tState:this.state)===c)k(this);else{let e=h;h=null,N(()=>le(this),!1),h=e}}if(m){let e=this.observers;if(!e||e[e.length-1]!==m){let t=e?e.length:0;m.sources?(m.sources.push(this),m.sourceSlots.push(t)):(m.sources=[this],m.sourceSlots=[t]),e?(e.push(m),this.observerSlots.push(m.sources.length-1)):(this.observers=[m],this.observerSlots=[m.sources.length-1])}}return e&&p.sources.has(this)?this.tValue:this.value}function oe(e,t,n){let r=p&&p.running&&p.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(p){let r=p.running;(r||!n&&p.sources.has(e))&&(p.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&N(()=>{for(let t=0;t<e.observers.length;t+=1){let n=e.observers[t],r=p&&p.running;r&&p.disposed.has(n)||((r?!n.tState:!n.state)&&(n.pure?h.push(n):g.push(n),n.observers&&ue(n)),r?n.tState=c:n.state=c)}if(h.length>1e6)throw h=[],Error()},!1)}return t}function k(e){if(!e.fn)return;F(e);let t=_;A(e,p&&p.running&&p.sources.has(e)?e.tValue:e.value,t),p&&!p.running&&p.sources.has(e)&&queueMicrotask(()=>{N(()=>{p&&(p.running=!0),m=f=e,A(e,e.tValue,t),m=f=null},!1)})}function A(e,t,n){let r,i=f,a=m;m=f=e;try{r=e.fn(t)}catch(t){return e.pure&&(p&&p.running?(e.tState=c,e.tOwned&&e.tOwned.forEach(F),e.tOwned=void 0):(e.state=c,e.owned&&e.owned.forEach(F),e.owned=null)),e.updatedAt=n+1,me(t)}finally{m=a,f=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&`observers`in e?oe(e,r,!0):p&&p.running&&e.pure?(p.sources.has(e)||(e.value=r),p.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function j(e,t,n,r=c,i){let a={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:f,context:f?f.context:null,pure:n};return p&&p.running&&(a.state=0,a.tState=r),f===null||f!==u&&(p&&p.running&&f.pure?f.tOwned?f.tOwned.push(a):f.tOwned=[a]:f.owned?f.owned.push(a):f.owned=[a]),a}function M(e){let t=p&&p.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===l)return le(e);if(e.suspense&&T(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<_);){if(t&&p.disposed.has(e))return;(t?e.tState:e.state)&&n.push(e)}for(let r=n.length-1;r>=0;r--){if(e=n[r],t){let t=e,i=n[r+1];for(;(t=t.owner)&&t!==i;)if(p.disposed.has(t))return}if((t?e.tState:e.state)===c)k(e);else if((t?e.tState:e.state)===l){let t=h;h=null,N(()=>le(e,n[0]),!1),h=t}}}function N(e,t){if(h)return e();let n=!1;t||(h=[]),g?n=!0:g=[],_++;try{let t=e();return P(n),t}catch(e){n||(g=null),h=null,me(e)}}function P(e){if(h&&=(se(h),null),e)return;let t;if(p){if(!p.promises.size&&!p.queue.size){let e=p.sources,n=p.disposed;g.push.apply(g,p.effects),t=p.resolve;for(let e of g)`tState`in e&&(e.state=e.tState),delete e.tState;p=null,N(()=>{for(let e of n)F(e);for(let t of e){if(t.value=t.tValue,t.owned)for(let e=0,n=t.owned.length;e<n;e++)F(t.owned[e]);t.tOwned&&(t.owned=t.tOwned),delete t.tValue,delete t.tOwned,t.tState=0}D(!1)},!1)}else if(p.running){p.running=!1,p.effects.push.apply(p.effects,g),g=null,D(!0);return}}let n=g;g=null,n.length&&N(()=>s(n),!1),t&&t()}function se(e){for(let t=0;t<e.length;t++)M(e[t])}function ce(t){let r,i=0;for(r=0;r<t.length;r++){let e=t[r];e.user?t[i++]=e:M(e)}if(e.context){if(e.count){e.effects||=[],e.effects.push(...t.slice(0,i));return}n()}for(e.effects&&(e.done||!e.count)&&(t=[...e.effects,...t],i+=e.effects.length,delete e.effects),r=0;r<i;r++)M(t[r])}function le(e,t){let n=p&&p.running;n?e.tState=0:e.state=0;for(let r=0;r<e.sources.length;r+=1){let i=e.sources[r];if(i.sources){let e=n?i.tState:i.state;e===c?i!==t&&(!i.updatedAt||i.updatedAt<_)&&M(i):e===l&&le(i,t)}}}function ue(e){let t=p&&p.running;for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(t?!r.tState:!r.state)&&(t?r.tState=l:r.state=l,r.pure?h.push(r):g.push(r),r.observers&&ue(r))}}function F(e){let t;if(e.sources)for(;e.sources.length;){let t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){let e=r.pop(),i=t.observerSlots.pop();n<r.length&&(e.sourceSlots[i]=n,r[n]=e,t.observerSlots[n]=i)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)F(e.tOwned[t]);delete e.tOwned}if(p&&p.running&&e.pure)de(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)F(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}p&&p.running?e.tState=0:e.state=0}function de(e,t){if(t||(e.tState=0,p.disposed.add(e)),e.owned)for(let t=0;t<e.owned.length;t++)de(e.owned[t])}function fe(e){return e instanceof Error?e:Error(typeof e==`string`?e:`Unknown error`,{cause:e})}function pe(e,t,n){try{for(let n of t)n(e)}catch(e){me(e,n&&n.owner||null)}}function me(e,t=f){let n=o&&t&&t.context&&t.context[o],r=fe(e);if(!n)throw r;g?g.push({fn(){pe(r,n,t)},state:c}):pe(r,n,t)}var he=Symbol(`fallback`);function ge(e){for(let t=0;t<e.length;t++)e[t]()}function _e(e,t,n={}){let r=[],a=[],o=[],s=0,c=t.length>1?[]:null;return E(()=>ge(o)),()=>{let l=e()||[],u=l.length,d,f;return l[i],T(()=>{let e,t,i,m,h,g,_,y,b;if(u===0)s!==0&&(ge(o),o=[],r=[],a=[],s=0,c&&=[]),n.fallback&&(r=[he],a[0]=v(e=>(o[0]=e,n.fallback())),s=1);else if(s===0){for(a=Array(u),f=0;f<u;f++)r[f]=l[f],a[f]=v(p);s=u}else{for(i=Array(u),m=Array(u),c&&(h=Array(u)),g=0,_=Math.min(s,u);g<_&&r[g]===l[g];g++);for(_=s-1,y=u-1;_>=g&&y>=g&&r[_]===l[y];_--,y--)i[y]=a[_],m[y]=o[_],c&&(h[y]=c[_]);for(e=new Map,t=Array(y+1),f=y;f>=g;f--)b=l[f],d=e.get(b),t[f]=d===void 0?-1:d,e.set(b,f);for(d=g;d<=_;d++)b=r[d],f=e.get(b),f!==void 0&&f!==-1?(i[f]=a[d],m[f]=o[d],c&&(h[f]=c[d]),f=t[f],e.set(b,f)):o[d]();for(f=g;f<u;f++)f in i?(a[f]=i[f],o[f]=m[f],c&&(c[f]=h[f],c[f](f))):a[f]=v(p);a=a.slice(0,s=u),r=l.slice(0)}return a});function p(e){if(o[f]=e,c){let[e,n]=y(f);return c[f]=n,t(l[f],e)}return t(l[f])}}}function I(e,t){return T(()=>e(t||{}))}var ve=e=>`Stale read from <${e}>.`;function ye(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return C(_e(()=>e.each,e.children,t||void 0))}function L(e){let t=e.keyed,n=C(()=>e.when,void 0,void 0),r=t?n:C(n,void 0,{equals:(e,t)=>!e==!t});return C(()=>{let i=r();if(i){let a=e.children;return typeof a==`function`&&a.length>0?T(()=>a(t?i:()=>{if(!T(r))throw ve(`Show`);return n()})):a}return e.fallback},void 0,void 0)}var be=e=>C(()=>e());function xe(e,t,n){let r=n.length,i=t.length,a=r,o=0,s=0,c=t[i-1].nextSibling,l=null;for(;o<i||s<a;){if(t[o]===n[s]){o++,s++;continue}for(;t[i-1]===n[a-1];)i--,a--;if(i===o){let t=a<r?s?n[s-1].nextSibling:n[a-s]:c;for(;s<a;)e.insertBefore(n[s++],t)}else if(a===s)for(;o<i;)(!l||!l.has(t[o]))&&t[o].remove(),o++;else if(t[o]===n[a-1]&&n[s]===t[i-1]){let r=t[--i].nextSibling;e.insertBefore(n[s++],t[o++].nextSibling),e.insertBefore(n[--a],r),t[i]=n[a]}else{if(!l){l=new Map;let e=s;for(;e<a;)l.set(n[e],e++)}let r=l.get(t[o]);if(r!=null){if(s<r&&r<a){let c=o,u=1,d;for(;++c<i&&c<a&&(d=l.get(t[c]))!=null&&d===r+u;)u++;if(u>r-s){let i=t[o];for(;s<r;)e.insertBefore(n[s++],i)}else e.replaceChild(n[s++],t[o++])}else o++}else t[o++].remove()}}}var Se=`_$DX_DELEGATE`;function Ce(e,t,n,r={}){let i;return v(r=>{i=r,t===document?e():B(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{i(),t.textContent=``}}function R(e,t,n,r){let i,a=()=>{let t=r?document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`template`):document.createElement(`template`);return t.innerHTML=e,n?t.content.firstChild.firstChild:r?t.firstChild:t.content.firstChild},o=t?()=>T(()=>document.importNode(i||=a(),!0)):()=>(i||=a()).cloneNode(!0);return o.cloneNode=o,o}function we(e,t=window.document){let n=t[Se]||(t[Se]=new Set);for(let r=0,i=e.length;r<i;r++){let i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,Oe))}}function z(e,t,n){De(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function Te(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){let r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n,typeof n!=`function`&&n)}function Ee(e,t,n){return T(()=>e(t,n))}function B(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!=`function`)return ke(e,t,r,n);x(r=>ke(e,t(),r,n),r)}function De(t){return!!e.context&&!e.done&&(!t||t.isConnected)}function Oe(t){if(e.registry&&e.events&&e.events.find(([e,n])=>n===t))return;let n=t.target,r=`$$${t.type}`,i=t.target,a=t.currentTarget,o=e=>Object.defineProperty(t,"target",{configurable:!0,value:e}),s=()=>{let e=n[r];if(e&&!n.disabled){let i=n[`${r}Data`];if(i===void 0?e.call(n,t):e.call(n,i,t),t.cancelBubble)return}return n.host&&typeof n.host!=`string`&&!n.host._$host&&n.contains(t.target)&&o(n.host),!0},c=()=>{for(;s()&&(n=n._$host||n.parentNode||n.host););};if(Object.defineProperty(t,"currentTarget",{configurable:!0,get(){return n||document}}),e.registry&&!e.done&&(e.done=_$HY.done=!0),t.composedPath){let e=t.composedPath();o(e[0]);for(let t=0;t<e.length-2&&(n=e[t],s());t++){if(n._$host){n=n._$host,c();break}if(n.parentNode===a)break}}else c();o(i)}function ke(e,t,n,r,i){let a=De(e);if(a){!n&&(n=[...e.childNodes]);let t=[];for(let e=0;e<n.length;e++){let r=n[e];r.nodeType===8&&r.data.slice(0,2)===`!$`?r.remove():t.push(r)}n=t}for(;typeof n==`function`;)n=n();if(t===n)return n;let o=typeof t,s=r!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,o===`string`||o===`number`){if(a||o===`number`&&(t=t.toString(),t===n))return n;if(s){let i=n[0];i&&i.nodeType===3?i.data!==t&&(i.data=t):i=document.createTextNode(t),n=V(e,n,r,i)}else n=n!==``&&typeof n==`string`?e.firstChild.data=t:e.textContent=t}else if(t==null||o===`boolean`){if(a)return n;n=V(e,n,r)}else if(o===`function`)return x(()=>{let i=t();for(;typeof i==`function`;)i=i();n=ke(e,i,n,r)}),()=>n;else if(Array.isArray(t)){let o=[],c=n&&Array.isArray(n);if(Ae(o,t,n,i))return x(()=>n=ke(e,o,n,r,!0)),()=>n;if(a){if(!o.length)return n;if(r===void 0)return n=[...e.childNodes];let t=o[0];if(t.parentNode!==e)return n;let i=[t];for(;(t=t.nextSibling)!==r;)i.push(t);return n=i}if(o.length===0){if(n=V(e,n,r),s)return n}else c?n.length===0?je(e,o,r):xe(e,n,o):(n&&V(e),je(e,o));n=o}else if(t.nodeType){if(a&&t.parentNode)return n=s?[t]:t;if(Array.isArray(n)){if(s)return n=V(e,n,r,t);V(e,n,null,t)}else n==null||n===``||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}return n}function Ae(e,t,n,r){let i=!1;for(let a=0,o=t.length;a<o;a++){let o=t[a],s=n&&n[e.length],c;if(o!=null&&o!==!0&&o!==!1){if((c=typeof o)==`object`&&o.nodeType)e.push(o);else if(Array.isArray(o))i=Ae(e,o,s)||i;else if(c===`function`){if(r){for(;typeof o==`function`;)o=o();i=Ae(e,Array.isArray(o)?o:[o],Array.isArray(s)?s:[s])||i}else e.push(o),i=!0}else{let t=String(o);s&&s.nodeType===3&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}}return i}function je(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function V(e,t,n,r){if(n===void 0)return e.textContent=``;let i=r||document.createTextNode(``);if(t.length){let r=!1;for(let a=t.length-1;a>=0;a--){let o=t[a];if(i!==o){let t=o.parentNode===e;!r&&!a?t?e.replaceChild(i,o):e.insertBefore(i,n):t&&o.remove()}else r=!0}}else e.insertBefore(i,n);return[i]}var Me=`nors_pb_token`,Ne=`nors_pb_user`,Pe=[`diagram`,`runbook`,`reference`,`scratch`],Fe={diagram:`Diagram`,runbook:`Runbook`,reference:`Reference`,scratch:`Scratch`};function Ie(){return``}function Le(){return localStorage.getItem(Me)}function Re(){localStorage.removeItem(Me),localStorage.removeItem(Ne)}async function ze(e,t){let n=await fetch(`${Ie()}/api/collections/_superusers/auth-with-password`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({identity:e,password:t})});if(!n.ok){let e=await n.text();throw Error(e||`login failed (${n.status})`)}let r=await n.json();localStorage.setItem(Me,r.token),localStorage.setItem(Ne,JSON.stringify(r.record))}function Be(){let e=Le();if(!e)throw Error(`not authenticated`);return{Authorization:e,"Content-Type":`application/json`}}async function Ve(e){let t=e?.includeDrafts?`status != "archived"`:`status = "published"`,n=new URLSearchParams({filter:t,sort:`-pinned,sort,updated`,perPage:`200`}),r=await fetch(`${Ie()}/api/collections/nors_notes/records?${n}`,{headers:Be()});if(r.status===401)throw Re(),Error(`session expired`);if(!r.ok)throw Error(`list failed (${r.status})`);return(await r.json()).items.map(Ge)}async function He(e){let t=new URLSearchParams({filter:`slug = "${e}"`}),n=await fetch(`${Ie()}/api/collections/nors_notes/records?${t}`,{headers:Be()});if(n.status===401)throw Re(),Error(`session expired`);if(!n.ok)throw Error(`get failed (${n.status})`);let r=await n.json();if(r.items.length===0)throw Error(`no note: ${e}`);return Ge(r.items[0])}async function Ue(e,t){let n=await fetch(`${Ie()}/api/collections/nors_notes/records${t?`/${t}`:``}`,{method:t?`PATCH`:`POST`,headers:Be(),body:JSON.stringify(e)});if(n.status===401)throw Re(),Error(`session expired`);if(!n.ok){let e=await n.text();throw Error(e||`save failed (${n.status})`)}return Ge(await n.json())}async function We(e){let t=await fetch(`${Ie()}/api/collections/nors_notes/records/${e}`,{method:`DELETE`,headers:Be()});if(t.status===401)throw Re(),Error(`session expired`);if(!t.ok){let e=await t.text();throw Error(e||`delete failed (${t.status})`)}}function Ge(e){let t=e.tags;return{id:String(e.id),title:String(e.title??``),slug:String(e.slug??``),summary:String(e.summary??``),body:String(e.body??``),kind:e.kind||`scratch`,tags:Array.isArray(t)?t:[],pinned:!!e.pinned,status:e.status||`draft`,sort:Number(e.sort??0),updated:String(e.updated??``)}}var Ke=`$new`;function qe(e){let t=e.replace(/^#\/?/,``).split(`/`);return t[0]===`n`&&t[1]?{name:`read`,slug:decodeURIComponent(t[1])}:t[0]===`edit`&&t[1]?{name:`edit`,slug:decodeURIComponent(t[1])}:{name:`dash`}}function Je(e){location.hash=e}function Ye(){let[e,t]=y(qe(location.hash));return te(()=>{let e=()=>t(qe(location.hash));window.addEventListener(`hashchange`,e),E(()=>window.removeEventListener(`hashchange`,e))}),e}var Xe=R(`<div class=toast-region aria-live=assertive aria-atomic=true><div class="toast toast-error"role=alert><svg width=18 height=18 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round aria-hidden=true><circle cx=12 cy=12 r=10></circle><path d="M12 8v4M12 16h.01"></path></svg><span></span><button type=button class=toast-close aria-label="Dismiss notification"><svg width=16 height=16 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round aria-hidden=true><path d="m18 6-12 12M6 6l12 12">`),Ze=e=>(S(()=>{if(!e.message)return;let t=window.setTimeout(e.onDismiss,4500);E(()=>window.clearTimeout(t))}),I(L,{get when(){return e.message},get children(){var t=Xe(),n=t.firstChild.firstChild.nextSibling,r=n.nextSibling;return B(n,()=>e.message),Te(r,`click`,e.onDismiss,!0),t}}));we([`click`]);var Qe=R(`<div class=spin-wrap role=status aria-label=Loading><span class=spin>`),$e=R(`<p class=hint>Saving order…`),et=R(`<div class=empty-wrap><svg width=72 height=56 viewBox="0 0 72 56"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round aria-hidden=true><ellipse cx=36 cy=46 rx=22 ry=5></ellipse><ellipse cx=36 cy=36 rx=15 ry=6></ellipse><ellipse cx=36 cy=26 rx=10 ry=5></ellipse><ellipse cx=36 cy=17 rx=5 ry=4></ellipse></svg><p>No notes yet</p><button type=button class=ghost>Write the first one`),tt=R(`<main class=dash><div class=dash-head><h2>Notes</h2><button type=button class="ghost icononly"title=Refresh aria-label=Refresh><svg width=16 height=16 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><polyline points="23 4 23 10 17 10"></polyline><polyline points="1 20 1 14 7 14"></polyline><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"></path></svg></button></div><nav class=tabs><button type=button>All</button></nav><ul class=cards>`),nt=R(`<button type=button>`),rt=R(`<span class=card-pin title=Pinned aria-label=Pinned><svg viewBox="0 0 24 24"fill=currentColor stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round aria-hidden=true><path d="M8 3h8l-1 8 3 3v2H6v-2l3-3z"></path><line x1=12 y1=16 x2=12 y2=21>`),it=R(`<li class=card><a class=card-link><div class=card-top><span class=kind></span><span class=card-flags><span class=status></span></span></div><h3></h3><p></p><code class=slug>`),at=10,ot=e=>{let[t,n]=y(``),[r,i]=y(!1),[a,o]=y(null),[s,c]=y(null),[l,u]=y([]),[d,f]=y(`all`),[p,{refetch:m}]=w(async()=>{try{return await Ve({includeDrafts:!0})}catch(t){return t instanceof Error&&t.message===`session expired`?e.onExpired():n(t instanceof Error?t.message:String(t)),[]}});S(()=>{let e=p();e&&u(e)});let h=()=>l().find(e=>e.id===a())??null,g=()=>{let e=d();return e===`all`?l():l().filter(t=>t.kind===e)};async function _(e){i(!0),n(``);try{let t=0,n=0;await Promise.all(e.map(e=>{let r=e.pinned?t+=at:n+=at;return r===e.sort?Promise.resolve():Ue({title:e.title,slug:e.slug,summary:e.summary,body:e.body,kind:e.kind,tags:e.tags,pinned:e.pinned,status:e.status,sort:r},e.id)})),await m()}catch(e){n(e instanceof Error?e.message:String(e)),await m()}finally{i(!1)}}function v(e,t){t.preventDefault();let n=h();if(o(null),c(null),!n||n.id===e.id||n.pinned!==e.pinned)return;let r=l().filter(e=>e.id!==n.id),i=r.findIndex(t=>t.id===e.id),a=[...r.slice(0,i),n,...r.slice(i)];u(a),_(a)}return(()=>{var e=tt(),i=e.firstChild,l=i.firstChild.nextSibling,u=i.nextSibling,_=u.firstChild,y=u.nextSibling;return B(e,I(Ze,{get message(){return t()},onDismiss:()=>n(``)}),i),l.$$click=()=>m(),_.$$click=()=>f(`all`),B(u,I(ye,{each:Pe,children:e=>(()=>{var t=nt();return t.$$click=()=>f(e),B(t,()=>Fe[e]),x(()=>t.classList.toggle(`on`,d()===e)),t})()}),null),B(e,I(L,{get when(){return p.loading},get children(){return Qe()}}),y),B(e,I(L,{get when(){return r()},get children(){return $e()}}),y),B(e,I(L,{get when(){return be(()=>!p.loading)()&&(p()||[]).length===0},get children(){var e=et(),t=e.firstChild.nextSibling.nextSibling;return t.$$click=()=>Je(`/edit/$new`),e}}),y),B(y,I(ye,{get each(){return g()},children:e=>(()=>{var t=it(),n=t.firstChild,i=n.firstChild,l=i.firstChild,u=l.nextSibling,f=u.firstChild,p=i.nextSibling,m=p.nextSibling,g=m.nextSibling;return t.addEventListener(`dragend`,()=>{o(null),c(null)}),t.addEventListener(`drop`,t=>v(e,t)),t.addEventListener(`dragleave`,()=>{s()===e.id&&c(null)}),t.addEventListener(`dragover`,t=>{let n=h();n&&n.id!==e.id&&n.pinned===e.pinned&&(t.preventDefault(),c(e.id))}),t.addEventListener(`dragstart`,t=>{o(e.id),t.dataTransfer&&(t.dataTransfer.setData(`text/plain`,e.id),t.dataTransfer.effectAllowed=`move`)}),z(n,`draggable`,!1),B(l,()=>Fe[e.kind]),B(f,()=>e.status),B(u,I(L,{get when(){return e.pinned},get children(){return rt()}}),null),B(p,()=>e.title),B(m,()=>e.summary||`—`),B(g,()=>e.slug),x(i=>{var o=!!e.pinned,c=e.status===`draft`,l=a()===e.id,u=s()===e.id,f=d()===`all`&&!r(),p=`#/n/${encodeURIComponent(e.slug)}`;return o!==i.e&&t.classList.toggle(`pinned`,i.e=o),c!==i.t&&t.classList.toggle(`draft`,i.t=c),l!==i.a&&t.classList.toggle(`dragging`,i.a=l),u!==i.o&&t.classList.toggle(`drop`,i.o=u),f!==i.i&&z(t,`draggable`,i.i=f),p!==i.n&&z(n,`href`,i.n=p),i},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0}),t})()})),x(()=>_.classList.toggle(`on`,d()===`all`)),e})()};we([`click`]);function st(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var H=st();function ct(e){H=e}var U={exec:()=>null};function W(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function G(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(K.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var lt=((e=``)=>{try{return!!RegExp(`(?<=1)(?<!1)`+e)}catch{return!1}})(),K={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:W(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:W(e=>RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:W(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:W(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:W(e=>RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,`i`)),blockquoteBeginRegex:W(e=>RegExp(`^ {0,${e}}>`))},ut=/^(?:[ \t]*(?:\n|$))+/,dt=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ft=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,pt=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,mt=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ht=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,gt=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_t=G(gt).replace(/bull/g,ht).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),vt=G(gt).replace(/bull/g,ht).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),yt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,bt=/^[^\n]+/,xt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,St=G(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,xt).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ct=G(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,ht).getRegex(),wt=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,Tt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Et=G(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,Tt).replace(`tag`,wt).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Dt=e=>G(yt).replace(`hr`,pt).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,e).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,wt).getRegex(),Ot=Dt(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),kt=Dt(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),At={blockquote:G(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,kt).getRegex(),code:dt,def:St,fences:ft,heading:mt,hr:pt,html:Et,lheading:_t,list:Ct,newline:ut,paragraph:Ot,table:U,text:bt},jt=G(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,pt).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,wt).getRegex(),Mt={...At,lheading:vt,table:jt,paragraph:G(yt).replace(`hr`,pt).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,jt).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,wt).getRegex()},Nt={...At,html:G(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,Tt).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:U,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:G(yt).replace(`hr`,pt).replace(`heading`,` *#{1,6} *[^
3
+ ]`).replace(`lheading`,_t).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},Pt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ft=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,It=/^( {2,}|\\)\n(?!\s*$)/,Lt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,q=/[\p{P}\p{S}]/u,Rt=/[\s\p{P}\p{S}]/u,zt=/[^\s\p{P}\p{S}]/u,Bt=G(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,Rt).getRegex(),Vt=/[\p{Pi}\p{Ps}"']/u,Ht=/(?!~)[\p{P}\p{S}]/u,Ut=/(?!~)[\s\p{P}\p{S}]/u,Wt=/(?:[^\s\p{P}\p{S}]|~)/u,Gt=G(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,lt?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),Kt=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,qt=G(Kt,`u`).replace(/punct/g,q).getRegex(),Jt=G(Kt,`u`).replace(/punct/g,Ht).getRegex(),Yt=G(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,`u`).replace(/openQuote/g,Vt).replace(/punct/g,q).getRegex(),Xt=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,Zt=G(Xt,`gu`).replace(/notPunctSpace/g,zt).replace(/punctSpace/g,Rt).replace(/punct/g,q).getRegex(),Qt=G(Xt,`gu`).replace(/notPunctSpace/g,Wt).replace(/punctSpace/g,Ut).replace(/punct/g,Ht).getRegex(),$t=G(`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,zt).replace(/punctSpace/g,Rt).replace(/punct/g,q).getRegex(),en=G(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,zt).replace(/punctSpace/g,Rt).replace(/punct/g,q).getRegex(),tn=G(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,zt).replace(/punctSpace/g,Rt).replace(/punct/g,q).getRegex(),nn=G(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,q).getRegex(),rn=G(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,zt).replace(/punctSpace/g,Rt).replace(/punct/g,q).getRegex(),an=G(/\\(punct)/,`gu`).replace(/punct/g,q).getRegex(),on=G(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),sn=G(Tt).replace(`(?:-->|$)`,`-->`).getRegex(),cn=G(`^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,sn).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ln=G(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace(`brackets`,/\[(?:\\[\s\S]|[^\[\]\\])*\]/).getRegex(),un=G(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,ln).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),dn=G(/^!?\[(label)\]\[(ref)\]/).replace(`label`,ln).replace(`ref`,xt).getRegex(),fn=G(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,xt).getRegex(),pn=G(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,dn).replace(`nolink`,fn).getRegex(),mn=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,hn={_backpedal:U,anyPunctuation:an,autolink:on,blockSkip:Gt,br:It,code:Ft,del:U,delLDelim:U,delRDelim:U,emStrongLDelim:qt,emStrongRDelimAst:Zt,emStrongRDelimUnd:en,escape:Pt,link:un,nolink:fn,punctuation:Bt,reflink:dn,reflinkSearch:pn,tag:cn,text:Lt,url:U},gn={...hn,emStrongLDelim:Yt,emStrongRDelimAst:$t,emStrongRDelimUnd:tn,link:G(/^!?\[(label)\]\((.*?)\)/).replace(`label`,ln).getRegex(),reflink:G(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,ln).getRegex()},_n={...hn,emStrongRDelimAst:Qt,emStrongLDelim:Jt,delLDelim:nn,delRDelim:rn,url:G(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,mn).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:G(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,mn).getRegex()},vn={..._n,br:G(It).replace(`{2,}`,`*`).getRegex(),text:G(_n.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},yn={normal:At,gfm:Mt,pedantic:Nt},bn={normal:hn,gfm:_n,breaks:vn,pedantic:gn},xn={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},Sn=e=>xn[e];function J(e,t){if(t){if(K.escapeTest.test(e))return e.replace(K.escapeReplace,Sn)}else if(K.escapeTestNoEncode.test(e))return e.replace(K.escapeReplaceNoEncode,Sn);return e}function Cn(e){try{e=encodeURI(e).replace(K.percentDecode,`%`)}catch{return null}return e}function wn(e,t){let n=e.replace(K.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(K.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``)}for(;r<n.length;r++)n[r]=n[r].trim().replace(K.slashPipe,`|`);return n}function Y(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function Tn(e){let t=e.split(`
4
+ `),n=t.length-1;for(;n>=0&&K.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
5
+ `)}function En(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Dn(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function On(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`),c=e[0].charAt(0)===`!`;r.state.inLink=!0;let l=r.state.linkEmitted,u=r.state.inRawBlock;r.state.linkEmitted=!1;let d=r.inlineTokens(s),f=r.state.linkEmitted;if(r.state.linkEmitted=l,r.state.inLink=!1,!c){if(f){r.state.inRawBlock=u;return}r.state.linkEmitted=!0}return{type:c?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:d}}function kn(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
6
+ `).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return e.slice(Math.min(r.length,i.length))}).join(`
7
+ `)}var An=class{options;rules;lexer;constructor(e){this.options=e||H}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:Tn(t[0]);return{type:`code`,raw:e,codeBlockStyle:`indented`,text:e.replace(this.rules.other.codeRemoveIndent,``)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=kn(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=Y(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceTabChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:Y(t[0],`
8
+ `),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:Y(t[0],`
9
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=Y(t[0],`
10
+ `).split(`
11
+ `),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o=0;for(;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
12
+ `),c=s.replace(this.rules.other.blockquoteSetextReplace,`
13
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
14
+ ${s}`:s,r=r?`${r}
15
+ ${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=e.join(`
16
+ `),o=t.raw+`
17
+ `+a.replace(this.rules.other.blockquoteSetextReplace2,``),s=this.blockquote(o);i[i.length-1]=s,n=`${n}
18
+ ${a}`,r=r.substring(0,r.length-t.text.length)+s.text;break}if(u?.type===`list`){let t=u,a=t.raw+`
19
+ `+e.join(`
20
+ `),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
21
+ `);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=Dn(t[2].split(`
22
+ `,1)[0],t[1].length),l=e.split(`
23
+ `,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=c.search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+`
24
+ `,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d),f=this.rules.other.blockquoteBeginRegex(d);for(;e;){let p=e.split(`
25
+ `,1)[0],m;if(l=p,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),m=l):m=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||f.test(l)||t.test(l)||n.test(l))break;if(m.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=`
26
+ `+m.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
27
+ `+l}u=!l.trim(),r+=p+`
28
+ `,e=e.substring(p.length+1),c=m.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of i.items)if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),!i.loose){let t=e.tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}for(let e of i.items){let t=e.tokens[0];if(e.task&&(t?.type===`text`||t?.type===`paragraph`)){e.text=e.text.replace(this.rules.other.listReplaceTask,``),t.raw=t.raw.replace(this.rules.other.listReplaceTask,``),t.text=t.text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:`checkbox`,raw:n[0]+` `,checked:n[0]!==`[ ]`};e.checked=t.checked,i.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:`paragraph`,raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}else e.task&&=!1}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=Tn(t[0]);return{type:`html`,block:!0,raw:e,pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:Y(t[0],`
29
+ `),href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=wn(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
30
+ `):[],a={type:`table`,raw:Y(t[0],`
31
+ `),header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(wn(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:`heading`,raw:Y(t[0],`
32
+ `),depth:t[2].charAt(0)===`=`?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
33
+ `?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=Y(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=En(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),On(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return On(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,a,o,s=i,c=0,l=r[0][0],u=n===l,d=l===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+i);(r=d.exec(t))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(o=[...a].length,r[3]||r[4]){s+=o;continue}if(r[5]||r[6]){if(i%3&&!((i+o)%3)){c+=o;continue}if(u)break}if(s-=o,s>0)continue;o=Math.min(o,o+s+c);let t=[...r[0]][0].length,n=e.slice(0,i+r.index+t+o);if(Math.min(i,o)%2){let e=n.slice(1,-1);return{type:`em`,raw:n,text:e,tokens:this.lexer.inlineTokens(e)}}let l=n.slice(2,-2);return{type:`strong`,raw:n,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},X=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||H,this.options.tokenizer=this.options.tokenizer||new An,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,top:!0};let t={other:K,block:yn.normal,inline:bn.normal};this.options.pedantic?(t.block=yn.pedantic,t.inline=bn.pedantic):this.options.gfm&&(t.block=yn.gfm,t.inline=this.options.breaks?bn.breaks:bn.gfm),this.tokenizer.rules=t}static get rules(){return{block:yn,inline:bn}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(K.carriageReturn,`
34
+ `),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(K.tabCharGlobal,` `).replace(K.spaceLine,``));let r=1/0;for(;e;){if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(n=>(i=n.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let n=t.at(-1);i.raw.length===1&&n!==void 0?n.raw+=`
35
+ `:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
36
+ `)?``:`
37
+ `)+i.raw,n.text+=`
38
+ `+i.text,this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
39
+ `)?``:`
40
+ `)+i.raw,n.text+=`
41
+ `+i.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},t.push(i));continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),t.push(i);continue}let a=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let r=t.at(-1);n&&r?.type===`paragraph`?(r.raw+=(r.raw.endsWith(`
42
+ `)?``:`
43
+ `)+i.raw,r.text+=`
44
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(i),n=a.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
45
+ `)?``:`
46
+ `)+i.raw,n.text+=`
47
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}linkInText(e){if(!e.includes(`[`))return!1;let t=this.tokenizer.rules.inline.link;for(let n of e.matchAll(this.tokenizer.rules.inline.blockSkip))if(t.test(n[0])&&e.charAt(n.index-1)!==`!`)return!0;for(let t of e.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let e=t[0],n=e.lastIndexOf(`[`);if(e.charAt(0)!==`!`&&Object.hasOwn(this.tokens.links,e.slice(n+1,-1))&&!(n>1&&this.linkInText(e.slice(1,n-1))))return!0}return!1}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e;if(this.tokens.links&&e.includes(`[`)){let e=this.tokenizer.rules.inline.reflinkSearch,t=n=>{let r=n.lastIndexOf(`[`);if(!Object.hasOwn(this.tokens.links,n.slice(r+1,-1)))return n;if(r>1&&n.charAt(0)!==`!`){let i=n.slice(1,r-1);if(this.linkInText(i))return`[`+i.replace(e,t)+`][`+`a`.repeat(n.length-r-2)+`]`}return`[`+`a`.repeat(n.length-2)+`]`};n=n.replace(e,t)}n=n.replace(this.tokenizer.rules.inline.anyPunctuation,e=>`+`.repeat(e.length)),n=n.replace(this.tokenizer.rules.inline.blockSkip,(e,t,n)=>{let r=n?n.length:0;return e.slice(0,r)+`[`+`a`.repeat(e.length-r-2)+`]`}),n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let r=!1,i=``,a=1/0;for(;e;){if(e.length<a)a=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}r||(i=``),r=!1;let o;if(this.options.extensions?.inline?.some(n=>(o=n.call({lexer:this},e,t))?(e=e.substring(o.raw.length),t.push(o),!0):!1))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let n=t.at(-1);o.type===`text`&&n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(o=this.tokenizer.emStrong(e,n,i)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.del(e,n,i)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),t.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),t.push(o);continue}let s=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(o=this.tokenizer.inlineText(s)){e=e.substring(o.raw.length),o.raw.slice(-1)!==`_`&&(i=o.raw.slice(-1)),r=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t=`Infinite loop on byte: `+e;if(this.options.silent)console.error(t);else throw Error(t)}},jn=class{options;parser;constructor(e){this.options=e||H}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(K.notSpaceStart)?.[0],i=e?e.replace(K.endingNewline,``)+`
48
+ `:``;return r?`<pre><code class="language-`+J(r)+`">`+(n?i:J(i,!0))+`</code></pre>
49
+ `:`<pre><code>`+(n?i:J(i,!0))+`</code></pre>
50
+ `}blockquote({tokens:e}){return`<blockquote>
51
+ ${this.parser.parse(e)}</blockquote>
52
+ `}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
53
+ `}hr(e){return`<hr>
54
+ `}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
55
+ `+r+`</`+i+`>
56
+ `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
57
+ `}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox"> `}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
58
+ `}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
59
+ <thead>
60
+ `+t+`</thead>
61
+ `+r+`</table>
62
+ `}tablerow({text:e}){return`<tr>
63
+ ${e}</tr>
64
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
65
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${J(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,text:n,tokens:r,autolink:i}){let a=i?J(n,!0):this.parser.parseInline(r),o=Cn(e);if(o===null)return a;e=J(o,i);let s=`<a href="`+e+`"`;return t&&(s+=` title="`+J(t)+`"`),s+=`>`+a+`</a>`,s}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=Cn(e);if(i===null)return J(n);e=i;let a=`<img src="${J(e)}" alt="${J(n)}"`;return t&&(a+=` title="${J(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:J(e.text)}},Mn=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},Z=class e{options;renderer;textRenderer;constructor(e){this.options=e||H,this.options.renderer=this.options.renderer||new jn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Mn}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`checkbox`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`checkbox`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},Nn=class{options;block;constructor(e){this.options=e||H}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?X.lex:X.lexInline}provideParser(e=this.block){return e?Z.parse:Z.parseInline}},Q=new class{defaults=st();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Z;Renderer=jn;TextRenderer=Mn;Lexer=X;Tokenizer=An;Hooks=Nn;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new jn(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new An(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new Nn;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];t[r]=Nn.passThroughHooks.has(n)?e=>{if(this.defaults.async&&Nn.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return X.lex(e,t??this.defaults)}parser(e,t){return Z.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?X.lex:X.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?Z.parse:Z.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?X.lex:X.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?Z.parse:Z.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
66
+ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+J(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function $(e,t){return Q.parse(e,t)}$.options=$.setOptions=function(e){return Q.setOptions(e),$.defaults=Q.defaults,ct($.defaults),$},$.getDefaults=st,$.defaults=H;function Pn(...e){return Q.use(...e),$.defaults=Q.defaults,ct($.defaults),$}$.use=Pn,$.walkTokens=function(e,t){return Q.walkTokens(e,t)},$.parseInline=Q.parseInline,$.Parser=Z,$.parser=Z.parse,$.Renderer=jn,$.TextRenderer=Mn,$.Lexer=X,$.lexer=X.lex,$.Tokenizer=An,$.Hooks=Nn,$.parse=$,$.options,$.setOptions,$.walkTokens,$.parseInline,Z.parse,X.lex;var Fn=`modulepreload`,In=function(e){return`/nors/`+e},Ln={},Rn=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),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?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=In(t,n),t=s(t),t in Ln)return;Ln[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Fn,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}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)})},zn=0;async function Bn(e){let t=String(await $.parse(e??``));return{html:t,mermaid:t.includes(`class="language-mermaid"`)}}async function Vn(e){if(!e)return;let t=[...e.querySelectorAll(`pre code.language-mermaid`)];if(t.length===0)return;let{default:n}=await Rn(async()=>{let{default:e}=await import(`./mermaid.core-BtBN7z80.js`);return{default:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]));n.initialize({startOnLoad:!1,securityLevel:`strict`,suppressErrorRendering:!0,theme:`base`,fontFamily:`'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif`,flowchart:{curve:`basis`,nodeSpacing:42,rankSpacing:52,padding:14,useMaxWidth:!1},themeVariables:{background:`#12151a`,primaryColor:`#172431`,primaryTextColor:`#edf6ff`,primaryBorderColor:`#6ec8ff`,secondaryColor:`#20242e`,secondaryTextColor:`#edf6ff`,secondaryBorderColor:`#718095`,tertiaryColor:`#101820`,tertiaryTextColor:`#edf6ff`,tertiaryBorderColor:`#526273`,lineColor:`#91a9bd`,textColor:`#edf6ff`,mainBkg:`#172431`,nodeBorder:`#6ec8ff`,clusterBkg:`#101820`,clusterBorder:`#526273`,edgeLabelBackground:`#12151a`,noteBkgColor:`#20242e`,noteTextColor:`#edf6ff`,noteBorderColor:`#718095`,actorBkg:`#172431`,actorBorder:`#6ec8ff`,actorTextColor:`#edf6ff`,actorLineColor:`#718095`,signalColor:`#b9e4ff`,signalTextColor:`#edf6ff`,labelBoxBkgColor:`#172431`,labelBoxBorderColor:`#718095`,labelTextColor:`#edf6ff`,loopTextColor:`#edf6ff`,activationBkgColor:`#20242e`,activationBorderColor:`#6ec8ff`,sequenceNumberColor:`#0b0d10`,fontSize:`15px`}});for(let e of t){let t=e.textContent??``,r=e.closest(`pre`);if(!r)continue;let i=document.createElement(`figure`);i.className=`mermaid-frame`,i.innerHTML=`
67
+ <figcaption class="mermaid-bar">
68
+ <span class="mermaid-label">Diagram</span>
69
+ <span class="mermaid-hint">Scroll to explore</span>
70
+ </figcaption>
71
+ <div class="mermaid-viewport" tabindex="0" aria-label="Scrollable diagram"></div>
72
+ `,r.replaceWith(i);let a=i.querySelector(`.mermaid-viewport`);if(a)try{if(!await n.parse(t,{suppressErrors:!0}))throw Error(`Invalid Mermaid syntax`);let e=await n.render(`nors-diagram-${++zn}`,t);a.innerHTML=e.svg,e.bindFunctions?.(a);let r=a.querySelector(`svg`);if(!r)throw Error(`Mermaid returned no diagram`);r.setAttribute(`role`,`img`),r.setAttribute(`aria-label`,`Mermaid diagram`),r.removeAttribute(`height`),r.removeAttribute(`width`);let o=r.viewBox.baseVal.width;o>0&&a.style.setProperty(`--mermaid-width`,`${Math.min(Math.ceil(o),1400)}px`),requestAnimationFrame(()=>{i.classList.toggle(`can-scroll`,a.scrollWidth>a.clientWidth+2)})}catch{i.classList.add(`has-error`),a.removeAttribute(`tabindex`),a.removeAttribute(`aria-label`);let e=document.createElement(`p`);e.className=`mermaid-error`,e.textContent=`This diagram could not be rendered.`;let n=document.createElement(`pre`),r=document.createElement(`code`);r.textContent=t,n.append(r),a.replaceChildren(e,n)}}}var Hn=R(`<p class=hint>Loading…`),Un=R(`<main class=reader>`),Wn=R(`<nav class=reader-nav aria-label="Note navigation"><a class=back-link href=#/><svg width=18 height=18 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round aria-hidden=true><path d="m15 18-6-6 6-6"></path></svg>All notes</a><div class=reader-actions><button type=button class=danger-ghost><svg width=17 height=17 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round aria-hidden=true><path d="M3 6h18"></path><path d="M8 6V4h8v2"></path><path d="m19 6-1 14H6L5 6"></path><path d="M10 11v5M14 11v5"></path></svg></button><a class=button-link><svg width=17 height=17 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round aria-hidden=true><path d="M12 20h9"></path><path d="M16.5 3.5a2.1 2.1 0 0 1 3 3L8 18l-4 1 1-4Z"></path></svg>Edit note`),Gn=R(`<p class=reader-summary>`),Kn=R(`<span class=detail-separator aria-hidden=true>·`),qn=R(`<div class=reader-tags aria-label=Tags>`),Jn=R(`<div class=draft-notice>This note is still a draft.`),Yn=R(`<article class=reader-document><header class=reader-head><div class=reader-badges><span class="kind badge"></span><span class="status badge"></span></div><h1></h1><div class=reader-details><span>Updated </span></div></header><div class="prose reader-prose">`),Xn=R(`<div class=dialog-backdrop role=presentation><section class=confirm-dialog role=alertdialog aria-modal=true aria-labelledby=delete-title aria-describedby=delete-description><div class=dialog-icon aria-hidden=true><svg width=22 height=22 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M3 6h18"></path><path d="M8 6V4h8v2"></path><path d="m19 6-1 14H6L5 6"></path><path d="M10 11v5M14 11v5"></path></svg></div><div class=dialog-copy><h2 id=delete-title>Delete this note?</h2><p id=delete-description><strong></strong> will be permanently deleted. This action cannot be undone.</p></div><div class=dialog-actions><button type=button class=ghost autofocus>Cancel</button><button type=button class=danger-confirm>`),Zn=R(`<span class=tag>#`),Qn=e=>{let[t,n]=y(``),[r,i]=y(!1),[a,o]=y(!1),s,[c]=w(()=>e.slug,async t=>{try{return await He(t)}catch(t){return t instanceof Error&&t.message===`session expired`?e.onExpired():n(t instanceof Error?t.message:String(t)),null}}),[l]=w(c,async e=>e?Bn(e.body):{html:``,mermaid:!1});S(async()=>{l()?.mermaid&&await Vn(s)});function u(e){let t=new Date(e);return Number.isNaN(t.getTime())?e.slice(0,10):new Intl.DateTimeFormat(void 0,{day:`numeric`,month:`short`,year:`numeric`}).format(t)}async function d(t){i(!0),n(``);try{await We(t.id),Je(`/`)}catch(t){t instanceof Error&&t.message===`session expired`?e.onExpired():n(t instanceof Error?t.message:String(t))}finally{i(!1),o(!1)}}return(()=>{var e=Un();return B(e,I(Ze,{get message(){return t()},onDismiss:()=>n(``)}),null),B(e,I(L,{get when(){return c.loading||l.loading},get children(){return Hn()}}),null),B(e,I(L,{get when(){return c()},children:e=>[(()=>{var t=Wn(),n=t.firstChild.nextSibling.firstChild;n.firstChild;var i=n.nextSibling;return n.$$click=()=>o(!0),B(n,()=>r()?`Deleting…`:`Delete`,null),x(t=>{var a=r(),o=`#/edit/${encodeURIComponent(e().slug)}`;return a!==t.e&&(n.disabled=t.e=a),o!==t.t&&z(i,`href`,t.t=o),t},{e:void 0,t:void 0}),t})(),(()=>{var t=Yn(),n=t.firstChild,r=n.firstChild,i=r.firstChild,a=i.nextSibling,o=r.nextSibling,c=o.nextSibling,d=c.firstChild;d.firstChild;var f=n.nextSibling;B(i,()=>Fe[e().kind]),B(a,(()=>{var t=be(()=>e().status===`draft`);return()=>t()?`Draft`:e().status===`archived`?`Archived`:`Published`})()),B(o,()=>e().title),B(n,I(L,{get when(){return e().summary},get children(){var t=Gn();return B(t,()=>e().summary),t}}),c),B(d,()=>u(e().updated),null),B(c,I(L,{get when(){return e().tags.length>0},get children(){return[Kn(),(()=>{var t=qn();return B(t,()=>e().tags.map(e=>(()=>{var t=Zn();return t.firstChild,B(t,e,null),t})())),t})()]}}),null),B(t,I(L,{get when(){return e().status===`draft`},get children(){return Jn()}}),f);var p=s;return typeof p==`function`?Ee(p,f):s=f,x(t=>{var n=e().status===`draft`,r=l()?.html??``;return n!==t.e&&a.classList.toggle(`draft`,t.e=n),r!==t.t&&(f.innerHTML=t.t=r),t},{e:void 0,t:void 0}),t})(),I(L,{get when(){return a()},get children(){var t=Xn(),n=t.firstChild.firstChild.nextSibling,i=n.firstChild.nextSibling.firstChild,a=n.nextSibling.firstChild,s=a.nextSibling;return t.$$keydown=e=>{e.key===`Escape`&&!r()&&o(!1)},t.$$click=e=>{e.target===e.currentTarget&&!r()&&o(!1)},B(i,()=>e().title),a.$$click=()=>o(!1),s.$$click=()=>d(e()),B(s,()=>r()?`Deleting…`:`Delete note`),x(e=>{var t=r(),n=r();return t!==e.e&&(a.disabled=e.e=t),n!==e.t&&(s.disabled=e.t=n),e},{e:void 0,t:void 0}),t}})]}),null),e})()};we([`click`,`keydown`]);var $n=R(`<p class=hint>Loading…`),er=R(`<main class=editor>`),tr=R(`<a class=view-link><svg width=17 height=17 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round aria-hidden=true><path d="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z"></path><circle cx=12 cy=12 r=3></circle></svg>View note`),nr=R(`<nav class="crumbs editor-nav"><a class=back-link href=#/><svg width=18 height=18 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round aria-hidden=true><path d="m15 18-6-6 6-6"></path></svg>All notes</a><span class=spacer></span><button type=button class=pinbtn><svg width=17 height=17 viewBox="0 0 24 24"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M8 3h8l-1 8 3 3v2H6v-2l3-3z"></path><line x1=12 y1=16 x2=12 y2=21>`),rr=R(`<input class=doctitle placeholder="New note title…"maxlength=160 required>`),ir=R(`<div class=note-meta-fields><label><span>Slug</span><input placeholder=note-url maxlength=80 required><small>Used in the note URL and on its dashboard card.</small></label><label><span>Tags</span><input placeholder="server, cli, mac"><small>Separate tags with commas.`),ar=R(`<div class="tabs kindpills">`),or=R(`<div class=iconbar><div class=icons><button type=button title=Bold aria-label=Bold>B</button><button type=button title=Italic aria-label=Italic>I</button><button type=button title=Link aria-label=Link><svg width=18 height=18 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg></button><button type=button title=List aria-label=List><svg width=18 height=18 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><line x1=8 y1=6 x2=21 y2=6></line><line x1=8 y1=12 x2=21 y2=12></line><line x1=8 y1=18 x2=21 y2=18></line><line x1=3 y1=6 x2=3.01 y2=6></line><line x1=3 y1=12 x2=3.01 y2=12></line><line x1=3 y1=18 x2=3.01 y2=18></line></svg></button><button type=button title="Numbered list"aria-label="Numbered list"><span class=glyph>1.</span></button><button type=button title=Heading aria-label=Heading>H</button><button type=button title=Quote aria-label=Quote><span class=glyph>❝</span></button><button type=button title=Code aria-label=Code><svg width=18 height=18 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><polyline points="16 18 22 12 16 6"></polyline><polyline points="8 6 2 12 8 18"></polyline></svg></button><button type=button title="Mermaid diagram"aria-label="Mermaid diagram"><svg width=18 height=18 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon></svg></button></div><div class=minitabs><button type=button>Write</button><button type=button>Preview`),sr=R(`<textarea class=doctext placeholder="Write your note here…"rows=8>`),cr=R(`<button type=button class=ghost>`),lr=R(`<button type=button>`),ur=R(`<div class=edit-foot>`),dr=R(`<div class="prose preview">`);function fr(e){let t={ç:`c`,ğ:`g`,ı:`i`,ö:`o`,ş:`s`,ü:`u`};return e.toLowerCase().replace(/[çğıöşü]/g,e=>t[e]).replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``).slice(0,80)}function pr(){return{id:``,title:``,slug:``,summary:``,body:``,kind:`scratch`,tags:[],pinned:!1,status:`draft`,sort:0,updated:``}}var mr=e=>{let[t,n]=y(``),[r]=w(()=>e.slug,async t=>{if(t===`$new`)return pr();try{return await He(t)}catch(t){return t instanceof Error&&t.message===`session expired`?e.onExpired():n(t instanceof Error?t.message:String(t)),null}});return(()=>{var i=er();return B(i,I(Ze,{get message(){return t()},onDismiss:()=>n(``)}),null),B(i,I(L,{get when(){return r.loading},get children(){return $n()}}),null),B(i,I(L,{get when(){return r()},children:t=>I(hr,{get initial(){return t()},get onExpired(){return e.onExpired}})}),null),i})()},hr=e=>{let t=()=>e.initial,[n,r]=y(t().title),[i,a]=y(t().slug),[o,s]=y(t().tags.join(`, `)),[c,l]=y(t().body),[u,d]=y(t().kind),[f,p]=y(t().pinned),[m,h]=y(`write`),g=()=>JSON.stringify([n(),i(),o(),c(),u(),f()]),_=g(),v=!0,b=location.hash,S=!!t().id;te(()=>{let e=()=>{if(!v){v=!0;return}if(g()===_||confirm(`Discard unsaved changes?`)){b=location.hash;return}v=!1,location.hash===b?v=!0:location.hash=b};window.addEventListener(`hashchange`,e),E(()=>window.removeEventListener(`hashchange`,e))});let[C,ee]=y(``),w,T;function ne(e,t,n){queueMicrotask(()=>{e.focus(),e.setSelectionRange(t,n)})}function re(e,t,n){let r=w;if(!r)return;let i=c(),a=r.selectionStart??i.length,o=r.selectionEnd??i.length,s=i.slice(a,o)||n;l(i.slice(0,a)+e+s+t+i.slice(o)),h(`write`),ne(r,a+e.length,a+e.length+s.length)}function D(e){let t=w;if(!t)return;let n=c(),r=t.selectionStart??0,i=t.selectionEnd??0,a=n.lastIndexOf(`
73
+ `,r-1)+1,o=n.indexOf(`
74
+ `,i),s=o<0?n.length:o,u=n.slice(a,s).split(`
75
+ `).map(t=>t.startsWith(e)?t:e+t).join(`
76
+ `);l(n.slice(0,a)+u+n.slice(s)),h(`write`),ne(t,a,a+u.length)}function ie(){let e="\n```mermaid\ngraph TD\n A --> B\n```\n",t=w;if(!t)return l(c()+e);let n=c(),r=t.selectionStart??n.length;l(n.slice(0,r)+e+n.slice(t.selectionEnd??r)),h(`write`),ne(t,r+35,r+35)}async function ae(){h(`preview`);let e=await Bn(c());ee(e.html),e.mermaid&&queueMicrotask(()=>Vn(T))}let[O,oe]=y(!1),[k,A]=y(``);function j(e){return(e.split(`
77
+ `).map(e=>e.trim()).find(e=>e!==``&&!e.startsWith(`#`)&&!e.startsWith("```"))??``).replace(/!\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/[*_`>#\-[\]()]/g,``).trim().slice(0,160)}function M(e){return[...new Set(e.split(`,`).map(e=>e.trim().replace(/^#+/,``)).filter(Boolean))]}function N(e){let r=!t().id;return{title:n().trim(),slug:i().trim(),summary:r?j(c()):t().summary,body:c(),kind:u(),tags:M(o()),pinned:f(),status:e,sort:t().sort}}async function P(r){if(!n().trim())return A(`Title is required.`);if(!i().trim())return A(`Slug is required.`);if(!/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(i().trim()))return A(`Slug can only contain lowercase letters, numbers, and single hyphens.`);let a=N(r);oe(!0),A(``);try{let e=await Ue(a,t().id||void 0);_=g(),Je(`/n/${encodeURIComponent(e.slug)}`)}catch(t){t instanceof Error&&t.message===`session expired`?e.onExpired():A(t instanceof Error?t.message:String(t))}finally{oe(!1)}}return[I(Ze,{get message(){return k()},onDismiss:()=>A(``)}),(()=>{var e=nr(),n=e.firstChild.nextSibling.nextSibling,r=n.firstChild;return B(e,I(L,{get when(){return t().slug},get children(){var e=tr();return x(()=>z(e,`href`,`#/n/${encodeURIComponent(t().slug)}`)),e}}),n),n.$$click=()=>p(!f()),x(e=>{var t=!!f(),i=f()?`Unpin`:`Pin to top`,a=f(),o=f()?`currentColor`:`none`;return t!==e.e&&n.classList.toggle(`on`,e.e=t),i!==e.t&&z(n,`title`,e.t=i),a!==e.a&&z(n,`aria-pressed`,e.a=a),o!==e.o&&z(r,`fill`,e.o=o),e},{e:void 0,t:void 0,a:void 0,o:void 0}),e})(),(()=>{var e=rr();return e.$$input=e=>{let t=e.currentTarget.value;r(t),S||a(fr(t))},x(()=>e.value=n()),e})(),(()=>{var e=ir(),t=e.firstChild,n=t.firstChild.nextSibling,r=t.nextSibling.firstChild.nextSibling;return n.$$input=e=>{S=!0,a(e.currentTarget.value.toLowerCase())},z(n,`spellcheck`,!1),r.$$input=e=>s(e.currentTarget.value),z(r,`spellcheck`,!1),x(()=>n.value=i()),x(()=>r.value=o()),e})(),(()=>{var e=ar();return B(e,I(ye,{each:Pe,children:e=>(()=>{var t=lr();return t.$$click=()=>d(e),B(t,()=>Fe[e]),x(()=>t.classList.toggle(`on`,u()===e)),t})()})),e})(),(()=>{var e=or(),t=e.firstChild,n=t.firstChild,r=n.nextSibling,i=r.nextSibling,a=i.nextSibling,o=a.nextSibling,s=o.nextSibling,c=s.nextSibling,l=c.nextSibling,u=l.nextSibling,d=t.nextSibling.firstChild,f=d.nextSibling;return n.$$click=()=>re(`**`,`**`,`text`),r.$$click=()=>re(`*`,`*`,`text`),i.$$click=()=>re(`[`,`](https://)`,`text`),a.$$click=()=>D(`- `),o.$$click=()=>D(`1. `),s.$$click=()=>D(`## `),c.$$click=()=>D(`> `),l.$$click=()=>re("`","`",`code`),u.$$click=ie,d.$$click=()=>h(`write`),f.$$click=ae,x(e=>{var t=m()===`write`,n=m()===`preview`;return t!==e.e&&d.classList.toggle(`on`,e.e=t),n!==e.t&&f.classList.toggle(`on`,e.t=n),e},{e:void 0,t:void 0}),e})(),I(L,{get when(){return m()===`write`},get fallback(){return(()=>{var e=dr(),t=T;return typeof t==`function`?Ee(t,e):T=e,x(()=>e.innerHTML=C()),e})()},get children(){var e=sr();e.$$input=e=>l(e.currentTarget.value);var t=w;return typeof t==`function`?Ee(t,e):w=e,x(()=>e.value=c()),e}}),(()=>{var e=ur();return B(e,I(L,{get when(){return t().status===`published`},get fallback(){return[(()=>{var e=cr();return e.$$click=()=>P(`draft`),B(e,()=>O()?`…`:`Save draft`),x(()=>e.disabled=O()),e})(),(()=>{var e=lr();return e.$$click=()=>P(`published`),B(e,()=>O()?`…`:`Publish`),x(()=>e.disabled=O()),e})()]},get children(){return[(()=>{var e=cr();return e.$$click=()=>P(`draft`),B(e,()=>O()?`…`:`Move to drafts`),x(()=>e.disabled=O()),e})(),(()=>{var e=lr();return e.$$click=()=>P(`published`),B(e,()=>O()?`…`:`Save changes`),x(()=>e.disabled=O()),e})()]}})),e})()]};we([`click`,`input`]);var gr=R(`<p class=menu-mail>`),_r=R(`<div class=menu><button type=button class=out>Sign out`),vr=R(`<nav class=row><button type=button class=muted>+ New</button><div class=avatar-wrap><button type=button class=avatar aria-label=Account>`),yr=R(`<div class=shell><header class=top><a class=brand href=#/><img alt width=30 height=30><h1>Nors`),br=R(`<p class=menu-mail>superuser`),xr=R(`<div class=center-page><form class=login><h2>Superuser</h2><p class=hint>Same PocketBase account as Skadi. Token stays in this browser.</p><label>Email<input type=email autocomplete=username required></label><label>Password<input type=password autocomplete=current-password required></label><button type=submit>`),Sr=()=>{new URLSearchParams(location.search).get(`new`)===`1`&&history.replaceState(null,``,`${location.pathname}#/edit/${Ke}`);let[e,t]=y(Le()),[n,r]=y(``),[i,a]=y(``),[o,s]=y(``),[c,l]=y(!1),u=Ye(),[d,f]=y(!1),p;te(()=>{let e=e=>{p&&!p.contains(e.target)&&f(!1)},t=e=>{e.key===`Escape`&&f(!1)};document.addEventListener(`click`,e),document.addEventListener(`keydown`,t),E(()=>{document.removeEventListener(`click`,e),document.removeEventListener(`keydown`,t)})});let m=()=>{e();try{let e=JSON.parse(localStorage.getItem(`nors_pb_user`)||`{}`);return e&&typeof e==`object`&&`email`in e&&typeof e.email==`string`?e.email:``}catch{return``}},h=()=>(m()[0]??`N`).toUpperCase();async function g(e){e.preventDefault(),l(!0),s(``);try{await ze(n(),i()),t(Le()),a(``)}catch(e){s(e instanceof Error?e.message:String(e))}finally{l(!1)}}function _(){Re(),t(null)}return(()=>{var t=yr(),l=t.firstChild,v=l.firstChild.firstChild;return B(t,I(Ze,{get message(){return o()},onDismiss:()=>s(``)}),l),B(l,I(L,{get when(){return e()},get children(){var e=vr(),t=e.firstChild,n=t.nextSibling,r=n.firstChild;t.$$click=()=>Je(`/edit/$new`);var i=p;return typeof i==`function`?Ee(i,n):p=n,r.$$click=()=>f(!d()),B(r,h),B(n,I(L,{get when(){return d()},get children(){var e=_r(),t=e.firstChild;return B(e,I(L,{get when(){return m()},get fallback(){return br()},get children(){var e=gr();return B(e,m),e}}),t),t.$$click=_,e}}),null),x(()=>z(r,`aria-expanded`,d())),e}}),null),B(t,I(L,{get when(){return e()},get fallback(){return(()=>{var e=xr(),t=e.firstChild,o=t.firstChild.nextSibling.nextSibling,s=o.firstChild.nextSibling,l=o.nextSibling,u=l.firstChild.nextSibling,d=l.nextSibling;return t.addEventListener(`submit`,g),s.$$input=e=>r(e.currentTarget.value),u.$$input=e=>a(e.currentTarget.value),B(d,()=>c()?`…`:`Enter`),x(()=>d.disabled=c()),x(()=>s.value=n()),x(()=>u.value=i()),e})()},get children(){return(()=>{let e=u();return e.name===`read`?I(Qn,{get slug(){return e.slug},onExpired:_}):e.name===`edit`?I(mr,{get slug(){return e.slug},onExpired:_}):I(ot,{onExpired:_})})()}}),null),x(()=>z(v,`src`,`/nors/nors-mark.svg`)),t})()};we([`click`,`input`]);var Cr=document.getElementById(`root`);if(!Cr)throw Error(`#root missing`);Ce(()=>I(Sr,{}),Cr);export{Rn as t};
@@ -0,0 +1 @@
1
+ html,body,#root{height:100%}.mermaid-frame{border:1px solid color-mix(in srgb, var(--accent) 20%, var(--line));background:radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 52%), var(--panel);border-radius:10px;width:min(100vw - 2rem,960px);margin:2rem 0 2rem 50%;overflow:hidden;transform:translate(-50%)}.mermaid-bar{border-bottom:1px solid var(--line);min-height:38px;color:var(--muted);letter-spacing:.065em;text-transform:uppercase;justify-content:space-between;align-items:center;gap:1rem;padding:0 .85rem;font-size:.68rem;font-weight:650;display:flex}.mermaid-label{color:var(--tint)}.mermaid-hint{letter-spacing:.03em;text-transform:none;font-weight:500;display:none}.mermaid-frame.can-scroll .mermaid-hint{display:inline}.mermaid-viewport{--mermaid-width:100%;overscroll-behavior-inline:contain;scrollbar-color:color-mix(in srgb, var(--accent) 40%, var(--line)) transparent;scrollbar-width:thin;max-width:100%;padding:clamp(1rem,3vw,2rem);overflow-x:auto}.mermaid-viewport:focus-visible{outline-offset:-3px}.mermaid-viewport svg{margin:0 auto;display:block;width:max(100%, var(--mermaid-width))!important;max-width:none!important;height:auto!important}.mermaid-viewport .nodeLabel,.mermaid-viewport .edgeLabel,.mermaid-viewport .label,.mermaid-viewport text{font-family:IBM Plex Sans,Segoe UI,system-ui,sans-serif!important}.mermaid-viewport .edgeLabel{color:var(--ink)!important;background:var(--panel)!important}.mermaid-frame.has-error .mermaid-hint{display:none}.mermaid-error{margin:0 0 .75rem;font-size:.85rem;color:var(--danger)!important}.mermaid-frame.has-error pre{background:var(--bg);margin:0}@media (max-width:600px){.mermaid-frame{width:calc(100vw - 1.8rem);margin-block:1.5rem}.mermaid-viewport{padding:1rem}}:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0b0d10;--panel:#12151a;--ink:#e8eef5;--muted:#8b98a8;--accent:#6ec8ff;--tint:#b9e4ff;--line:#1e2430;--danger:#ff7b7b;background:var(--bg);color:var(--ink);font-family:IBM Plex Sans,Segoe UI,system-ui,sans-serif;line-height:1.45}*{box-sizing:border-box}body{background:var(--bg);min-height:100vh;margin:0}.shell{max-width:960px;margin:0 auto;padding:1.25rem 1rem 3rem}.top{justify-content:space-between;align-items:center;margin-bottom:1.5rem;display:flex}.brand{color:inherit;align-items:center;gap:.7rem;text-decoration:none;display:flex}.brand img{border-radius:7px;flex:none;width:30px;height:30px}.brand h1{letter-spacing:-.01em;margin:0;font-size:1.2rem;font-weight:650}.center-page{justify-content:center;align-items:center;min-height:70vh;display:flex}.login{background:var(--panel);border:1px solid var(--line);border-radius:8px;gap:.75rem;width:100%;max-width:360px;margin:0 auto;padding:1.25rem;display:grid}.login h2{margin:0}.login label{color:var(--muted);gap:.35rem;font-size:.85rem;display:grid}.login input{border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:6px;padding:.55rem .65rem}button,.button-link,.view-link{border:1px solid color-mix(in srgb, var(--accent) 48%, var(--line));background:var(--panel);height:40px;min-height:40px;color:var(--tint);white-space:nowrap;cursor:pointer;border-radius:6px;justify-content:center;align-items:center;gap:8px;padding:0 14px;font-family:inherit;font-size:14px;font-weight:600;line-height:1;text-decoration:none;display:inline-flex}button:hover,.button-link:hover,.view-link:hover{background:color-mix(in srgb, var(--panel) 82%, var(--accent))}button>svg,.button-link>svg,.view-link>svg{flex:none;width:16px;height:16px}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}button:disabled{opacity:.6;cursor:wait}button.ghost{background:var(--panel);color:var(--ink);border:1px solid var(--line)}button.icononly{justify-content:center;align-items:center;width:36px;height:36px;min-height:36px;padding:0;display:inline-flex}button.muted{background:var(--panel);color:var(--ink);border:1px solid var(--line);font-weight:550}.tabs{flex-wrap:wrap;gap:.5rem;margin:0 0 1rem;display:flex}.tabs button{background:var(--panel);height:34px;min-height:34px;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:0 13px;font-size:13px;font-weight:500}.tabs button.on{color:var(--tint);border-color:var(--accent)}.hint,.empty{color:var(--muted);font-size:.9rem}.error{color:var(--danger);margin:0;font-size:.85rem}.toast-region{z-index:200;pointer-events:none;width:min(380px,100vw - 2rem);position:fixed;top:1rem;right:1rem}.toast{border:1px solid var(--line);background:color-mix(in srgb, var(--panel) 94%, black);min-height:52px;color:var(--ink);pointer-events:auto;border-radius:9px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.7rem;padding:.65rem .65rem .65rem .85rem;font-size:.88rem;line-height:1.4;animation:.16s ease-out toast-in;display:grid;box-shadow:0 14px 38px #000a}.toast-error{border-color:color-mix(in srgb, var(--danger) 42%, var(--line))}.toast-error>svg{color:var(--danger);flex:none}button.toast-close{width:32px;height:32px;min-height:32px;color:var(--muted);background:0 0;border-color:#0000;padding:0}button.toast-close:hover{border-color:var(--line);background:var(--bg);color:var(--ink)}@keyframes toast-in{0%{opacity:0;transform:translateY(-6px)}}.dash-head{justify-content:space-between;align-items:center;margin-bottom:1rem;display:flex}.dash-head h2{color:var(--muted);text-transform:uppercase;letter-spacing:.08em;margin:0;font-size:1rem;font-weight:500}.cards{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:.75rem;margin:0;padding:0;list-style:none;display:grid}.card{background:var(--panel);border:1px solid var(--line);border-radius:8px;min-height:140px;padding:.9rem 1rem;display:flex}.card.pinned{border-color:color-mix(in srgb, var(--accent) 45%, var(--line))}.card.draft{opacity:.85}.card-top{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);justify-content:space-between;gap:.5rem;margin-bottom:.4rem;font-size:.7rem;display:flex}.card h3{margin:0 0 .35rem;font-size:1.05rem}.card p{color:var(--muted);margin:0 0 .75rem;font-size:.9rem}.slug{border-top:1px solid var(--line);width:100%;color:var(--accent);margin-top:auto;padding-top:.7rem;font-size:.75rem;display:block}.card-flags{align-items:center;gap:.45rem;display:inline-flex}.card-pin{color:var(--accent);display:inline-flex}.card-pin svg{width:14px;height:14px}.row{align-items:center;gap:.5rem;display:flex}.card-link{height:100%;color:inherit;flex-direction:column;flex:1;text-decoration:none;display:flex}.crumbs{flex-wrap:wrap;align-items:center;gap:.75rem;margin-bottom:1rem;display:flex}.crumbs a{color:var(--accent);text-decoration:none}.crumbs .spacer{flex:1}.editor-nav{gap:.4rem}.view-link{border:1px solid color-mix(in srgb, var(--accent) 32%, var(--line));background:var(--panel);color:var(--tint)!important}.view-link:hover{border-color:color-mix(in srgb, var(--accent) 45%, var(--line));background:var(--panel)}.pinbtn{width:40px;height:40px;min-height:40px;color:var(--muted);background:0 0;border:0;border-radius:6px;justify-content:center;align-items:center;padding:0;display:flex}.pinbtn:hover{color:var(--tint);background:var(--bg)}.pinbtn.on{color:var(--accent)}.pinbtn svg{width:17px;height:17px}.editor h2{margin:0 0 1rem}.reader-nav{justify-content:space-between;align-items:center;gap:1rem;margin-bottom:2.5rem;display:flex}.back-link{color:var(--muted);align-items:center;gap:.3rem;font-size:.9rem;font-weight:550;text-decoration:none;display:inline-flex}.back-link:hover{color:var(--tint)}.reader-actions{align-items:center;gap:.5rem;display:flex}.button-link,button.danger-ghost{min-width:112px}.button-link{background:var(--panel);color:var(--tint);border:1px solid color-mix(in srgb, var(--accent) 48%, var(--line))}.button-link:hover{background:color-mix(in srgb, var(--panel) 82%, var(--accent));border-color:var(--accent)}button.danger-ghost{background:var(--panel);color:var(--muted);border:1px solid var(--line)}button.danger-ghost:hover{color:var(--danger);border-color:color-mix(in srgb, var(--danger) 30%, transparent);background:color-mix(in srgb, var(--danger) 8%, transparent)}.dialog-backdrop{z-index:100;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#030508b8;place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.confirm-dialog{border:1px solid var(--line);background:var(--panel);border-radius:12px;grid-template-columns:auto 1fr;gap:.9rem;width:min(100%,430px);padding:1.25rem;display:grid;box-shadow:0 24px 80px #000b}.dialog-icon{border:1px solid color-mix(in srgb, var(--danger) 32%, var(--line));background:color-mix(in srgb, var(--danger) 8%, var(--panel));width:42px;height:42px;color:var(--danger);border-radius:10px;place-items:center;display:grid}.dialog-copy h2{margin:0 0 .35rem;font-size:1.05rem}.dialog-copy p{color:var(--muted);margin:0;font-size:.9rem;line-height:1.55}.dialog-copy strong{color:var(--ink);font-weight:600}.dialog-actions{grid-column:1/-1;justify-content:flex-end;gap:.5rem;margin-top:.35rem;display:flex}.dialog-actions button{min-width:112px}button.danger-confirm{color:#ffd5d5;border-color:color-mix(in srgb, var(--danger) 58%, var(--line));background:color-mix(in srgb, var(--danger) 10%, var(--panel))}button.danger-confirm:hover{border-color:var(--danger);background:color-mix(in srgb, var(--danger) 16%, var(--panel))}.reader-document{max-width:76ch;margin:0 auto}.reader-head{border-bottom:1px solid var(--line);padding-bottom:1.75rem}.reader-badges{align-items:center;gap:.45rem;margin-bottom:.8rem;display:flex}.badge{border:1px solid var(--line);min-height:24px;color:var(--muted);letter-spacing:.055em;text-transform:uppercase;border-radius:999px;align-items:center;padding:.15rem .55rem;font-size:.68rem;font-weight:650;display:inline-flex}.badge.kind{color:var(--tint);border-color:color-mix(in srgb, var(--accent) 35%, var(--line));background:color-mix(in srgb, var(--accent) 7%, transparent)}.badge.status.draft{color:#f2c97d;border-color:color-mix(in srgb, #f2c97d 32%, var(--line))}.reader-head h1{letter-spacing:-.035em;max-width:22ch;margin:0;font-size:clamp(2rem,5vw,3rem);line-height:1.08}.reader-summary{color:#b3bfcc;max-width:60ch;margin:.85rem 0 0;font-size:1.05rem;line-height:1.55}.reader-details{color:var(--muted);flex-wrap:wrap;align-items:center;gap:.45rem;margin-top:1.1rem;font-size:.78rem;display:flex}.reader-tags{flex-wrap:wrap;gap:.4rem;display:flex}.tag{color:var(--accent)}.draft-notice{background:color-mix(in srgb, #f2c97d 7%, var(--panel));color:#d6bd8d;border-left:3px solid #f2c97d;border-radius:0 6px 6px 0;margin-top:1.5rem;padding:.7rem .85rem;font-size:.88rem}.reader-prose{margin-top:2rem}.prose{max-width:72ch}.prose>:first-child{margin-top:0}.prose h1,.prose h2,.prose h3{letter-spacing:-.015em;margin-top:1.8em;margin-bottom:.55em;line-height:1.25}.prose p,.prose li{color:#d3dbe4;line-height:1.72}.prose a{color:var(--accent)}.prose blockquote{border-left:3px solid var(--line);color:var(--muted);margin-left:0;padding-left:1rem}.prose pre{background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:.75rem 1rem;overflow-x:auto}.prose code{font-size:.85em}.prose table{border-collapse:collapse}.prose th,.prose td{border:1px solid var(--line);padding:.25rem .75rem}.editor label{gap:.25rem;margin-bottom:.75rem;display:grid}.editor input,.editor select,.editor textarea{background:var(--panel);border:1px solid var(--line);color:var(--ink);font:inherit;border-radius:6px;padding:.5rem .75rem}.editor input,.editor select{height:2.5rem}.editor textarea{resize:vertical;font-family:ui-monospace,monospace}.card.dragging{opacity:.4}.card.drop{border-color:var(--accent)}.avatar-wrap{position:relative}.avatar{background:var(--panel);width:44px;min-width:44px;height:44px;color:var(--ink);border:1px solid var(--line);border-radius:50%;padding:0;font-weight:650}.avatar[aria-expanded=true]{border-color:var(--accent)}.menu{z-index:20;background:var(--panel);border:1px solid var(--line);border-radius:10px;min-width:210px;padding:6px;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 14px 34px #000a}.menu button{width:100%;min-height:0;color:var(--ink);text-align:left;background:0 0;border-radius:6px;padding:.5rem .75rem;font-weight:500;display:flex}.menu button:hover{background:var(--bg)}.menu button.out{color:var(--danger)}.menu-sep{background:var(--line);height:1px;margin:6px 4px}.menu-mail{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin:0;padding:.5rem .75rem;font-size:.8rem;overflow:hidden}.editor input.doctitle{letter-spacing:-.02em;width:100%;color:var(--ink);background:0 0;border:0;border-radius:0;height:auto;margin:0 0 .75rem;padding:.25rem 0;font-size:1.75rem;font-weight:700}.editor input.doctitle:focus{outline:none}.editor input.doctitle::placeholder{color:var(--muted);opacity:.55}.kindpills{margin-bottom:1rem}.note-meta-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-bottom:1rem;display:grid}.note-meta-fields label{margin:0}.note-meta-fields label>span{color:var(--muted);letter-spacing:.04em;text-transform:uppercase;font-size:.78rem;font-weight:600}.note-meta-fields input{width:100%}.note-meta-fields small{color:var(--muted);font-size:.72rem}@media (max-width:620px){.note-meta-fields{grid-template-columns:1fr}}.iconbar{border-top:1px solid var(--line);border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem .75rem;margin-bottom:1rem;padding:.35rem 0;display:flex}.icons{align-items:center;gap:.3rem;display:flex}.icons button{width:36px;height:36px;min-height:36px;color:var(--muted);background:0 0;border:0;border-radius:6px;justify-content:center;align-items:center;padding:0;font-size:.95rem;font-weight:700;display:flex}.icons button:hover{color:var(--tint);background:var(--bg)}.icons button svg{width:16px;height:16px}.icons .glyph{font-size:.9rem}.minitabs{gap:.25rem;display:flex}.minitabs button{height:32px;min-height:32px;color:var(--muted);background:0 0;border:0;border-radius:6px;padding:0 10px;font-size:.85rem;font-weight:600}.minitabs button.on{color:var(--tint);background:var(--bg)}.edit-foot{justify-content:flex-end;gap:.5rem;margin-top:1rem;display:flex}.edit-foot button{min-width:132px}.editor textarea.doctext{width:100%;min-height:22vh;color:var(--ink);resize:vertical;background:0 0;border:0;border-radius:0;padding:.25rem 0;font-family:ui-monospace,monospace;font-size:.95rem;line-height:1.65}.editor textarea.doctext:focus{outline:none}.editor textarea.doctext::placeholder{color:var(--muted);opacity:.55}.prose.preview{background:var(--panel);border:1px solid var(--line);border-radius:6px;min-height:200px;padding:.75rem 1rem}.empty-wrap{text-align:center;color:var(--muted);padding:3rem 1rem}.empty-wrap svg{color:var(--muted);opacity:.7;margin:0 auto 1rem;display:block}.spin-wrap{justify-content:center;padding:2.5rem 0;display:flex}.spin{border:3px solid var(--line);border-top-color:var(--accent);border-radius:50%;width:28px;height:28px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.empty-wrap p{margin:0 0 1rem}@media (max-width:600px){.shell{padding-inline:.9rem}.reader-nav{flex-wrap:wrap;align-items:stretch;margin-bottom:2rem}.reader-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:.25rem;width:100%;display:grid}.button-link,button.danger-ghost{width:100%;min-width:0}.reader-head h1{font-size:2rem}.detail-separator{display:none}.reader-tags{flex-basis:100%}}
@@ -1 +1 @@
1
- import"./chunk-FOHPRMQF-DzxwRta7.js";import{w as e}from"./mermaid-parser.core-Bh2pMn-f.js";export{e as createInfoServices};
1
+ import"./chunk-FOHPRMQF-DzxwRta7.js";import{w as e}from"./mermaid-parser.core-Bduruqas.js";export{e as createInfoServices};
@@ -1,2 +1,2 @@
1
- import{m as e}from"./src-BH-TyZbA.js";import{n as t}from"./mermaid-parser.core-Bh2pMn-f.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{c as r}from"./chunk-DU6HZSFF-DdkkHC2K.js";import{f as i}from"./mermaid.core-CL8sN1KK.js";var a={parse:n(async n=>{let r=await t(`info`,n);e.debug(r)},`parse`)},o={version:`11.17.2`},s={parser:a,db:{getVersion:n(()=>o.version,`getVersion`)},renderer:{draw:n((t,n,a)=>{e.debug(`rendering info diagram
1
+ import{m as e}from"./src-BH-TyZbA.js";import{n as t}from"./mermaid-parser.core-Bduruqas.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{c as r}from"./chunk-DU6HZSFF-HXNYRQa7.js";import{f as i}from"./mermaid.core-BtBN7z80.js";var a={parse:n(async n=>{let r=await t(`info`,n);e.debug(r)},`parse`)},o={version:`11.17.2`},s={parser:a,db:{getVersion:n(()=>o.version,`getVersion`)},renderer:{draw:n((t,n,a)=>{e.debug(`rendering info diagram
2
2
  `+t);let o=i(n);r(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};
@@ -1,4 +1,4 @@
1
- import"./src-BH-TyZbA.js";import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{H as t,K as n,U as r,a as i,c as a,s as o,v as s,w as c,x as l,y as u}from"./chunk-DU6HZSFF-DdkkHC2K.js";import{p as d}from"./chunk-75Z2AOVW-OUM6F-Z2.js";import{t as f}from"./rough.esm-Dy-Kn_BL.js";import{f as p}from"./mermaid.core-CL8sN1KK.js";var m=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,14],i=[1,12],a=[1,13],o=[6,7,8],s=[1,20],c=[1,18],l=[1,19],u=[6,7,11],d=[1,6,13,14],f=[1,23],p=[1,24],m=[1,6,7,11,13,14],h={trace:e(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:e(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:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:a},t(o,[2,3]),{1:[2,2]},t(o,[2,4]),t(o,[2,5]),{1:[2,6],6:r,12:15,13:i,14:a},{6:r,9:16,12:11,13:i,14:a},{6:s,7:c,10:17,11:l},t(u,[2,18],{14:[1,21]}),t(u,[2,16]),t(u,[2,17]),{6:s,7:c,10:22,11:l},{1:[2,7],6:r,12:15,13:i,14:a},t(d,[2,14],{7:f,11:p}),t(m,[2,8]),t(m,[2,9]),t(m,[2,10]),t(u,[2,15]),t(d,[2,13],{7:f,11:p}),t(m,[2,11]),t(m,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.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(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.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){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
1
+ import"./src-BH-TyZbA.js";import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{H as t,K as n,U as r,a as i,c as a,s as o,v as s,w as c,x as l,y as u}from"./chunk-DU6HZSFF-HXNYRQa7.js";import{p as d}from"./chunk-75Z2AOVW-JambT9gc.js";import{t as f}from"./rough.esm-Dy-Kn_BL.js";import{f as p}from"./mermaid.core-BtBN7z80.js";var m=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,14],i=[1,12],a=[1,13],o=[6,7,8],s=[1,20],c=[1,18],l=[1,19],u=[6,7,11],d=[1,6,13,14],f=[1,23],p=[1,24],m=[1,6,7,11,13,14],h={trace:e(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:e(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:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:a},t(o,[2,3]),{1:[2,2]},t(o,[2,4]),t(o,[2,5]),{1:[2,6],6:r,12:15,13:i,14:a},{6:r,9:16,12:11,13:i,14:a},{6:s,7:c,10:17,11:l},t(u,[2,18],{14:[1,21]}),t(u,[2,16]),t(u,[2,17]),{6:s,7:c,10:22,11:l},{1:[2,7],6:r,12:15,13:i,14:a},t(d,[2,14],{7:f,11:p}),t(m,[2,8]),t(m,[2,9]),t(m,[2,10]),t(u,[2,15]),t(d,[2,13],{7:f,11:p}),t(m,[2,11]),t(m,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.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(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.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){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+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:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};h.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(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:e(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:e(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:e(function(){return this._more=!0,this},`more`),reject:e(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
4
  `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(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:e(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:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{p as e}from"./src-BH-TyZbA.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{H as n,K as r,U as i,a,c as o,v as s,w as c,x as l,y as u}from"./chunk-DU6HZSFF-DdkkHC2K.js";import{t as d}from"./arc-BEvzHx4o.js";import{t as f}from"./chunk-5VM5RSS4-ZNzvKenW.js";import{a as p,n as m,o as h,s as g}from"./chunk-F27PBJKO-D4tBKW95.js";var _=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,8,10,11,12,14,16,17,18],r=[1,9],i=[1,10],a=[1,11],o=[1,12],s=[1,13],c=[1,14],l={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:`error`,4:`journey`,6:`EOF`,8:`SPACE`,10:`NEWLINE`,11:`title`,12:`acc_title`,13:`acc_title_value`,14:`acc_descr`,15:`acc_descr_value`,16:`acc_descr_multiline_value`,17:`section`,18:`taskName`,19:`taskData`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 10:case 11:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 12:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 13:r.addTask(a[s-1],a[s]),this.$=`task`}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:i,14:a,16:o,17:s,18:c},e(n,[2,7],{1:[2,1]}),e(n,[2,3]),{9:15,11:r,12:i,14:a,16:o,17:s,18:c},e(n,[2,5]),e(n,[2,6]),e(n,[2,8]),{13:[1,16]},{15:[1,17]},e(n,[2,11]),e(n,[2,12]),{19:[1,18]},e(n,[2,4]),e(n,[2,9]),e(n,[2,10]),e(n,[2,13])],defaultActions:{},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.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;o.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){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
1
+ import{p as e}from"./src-BH-TyZbA.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{H as n,K as r,U as i,a,c as o,v as s,w as c,x as l,y as u}from"./chunk-DU6HZSFF-HXNYRQa7.js";import{t as d}from"./arc-BEvzHx4o.js";import{t as f}from"./chunk-5VM5RSS4-ZNzvKenW.js";import{a as p,n as m,o as h,s as g}from"./chunk-F27PBJKO-ClqBa20N.js";var _=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,8,10,11,12,14,16,17,18],r=[1,9],i=[1,10],a=[1,11],o=[1,12],s=[1,13],c=[1,14],l={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:`error`,4:`journey`,6:`EOF`,8:`SPACE`,10:`NEWLINE`,11:`title`,12:`acc_title`,13:`acc_title_value`,14:`acc_descr`,15:`acc_descr_value`,16:`acc_descr_multiline_value`,17:`section`,18:`taskName`,19:`taskData`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 10:case 11:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 12:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 13:r.addTask(a[s-1],a[s]),this.$=`task`}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:i,14:a,16:o,17:s,18:c},e(n,[2,7],{1:[2,1]}),e(n,[2,3]),{9:15,11:r,12:i,14:a,16:o,17:s,18:c},e(n,[2,5]),e(n,[2,6]),e(n,[2,8]),{13:[1,16]},{15:[1,17]},e(n,[2,11]),e(n,[2,12]),{19:[1,18]},e(n,[2,4]),e(n,[2,9]),e(n,[2,10]),e(n,[2,13])],defaultActions:{},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.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;o.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){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+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:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};l.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(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:t(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:t(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:t(function(){return this._more=!0,this},`more`),reject:t(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
4
  `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(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:t(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:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{m as e}from"./src-BH-TyZbA.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{J as n,et as r,f as i,rt as a,tt as o,x as s,z as c}from"./chunk-DU6HZSFF-DdkkHC2K.js";import"./chunk-75Z2AOVW-OUM6F-Z2.js";import"./chunk-PWAF6VOD-B__l-VgZ.js";import"./chunk-GMAD6QVW-CZU7s-_u.js";import{t as l}from"./chunk-5VM5RSS4-ZNzvKenW.js";import"./chunk-P2QGCYS3-BH6JrbP_.js";import"./chunk-4HAMMTFA-CQW8auRW.js";import{i as u,r as d}from"./chunk-GVQU2GXP-BQGI6BgU.js";import{n as f}from"./chunk-L3NEJ4N5-OjXnRmPt.js";import{f as p,n as m,t as h}from"./mermaid.core-CL8sN1KK.js";var g=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,31],h=[6,7,11,24],g=[1,6,13,16,17,20,23],_=[1,35],v=[1,36],y=[1,6,7,11,13,16,17,20,23],b=[1,38],x={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`KANBAN`,11:`EOF`,13:`SPACELIST`,16:`ICON`,17:`CLASS`,20:`NODE_DSTART`,21:`NODE_DESCR`,22:`NODE_DEND`,23:`NODE_ID`,24:`SHAPE_DATA`},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,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s-1].id),r.addNode(a[s-2].length,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 16:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 17:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 18:case 23:r.decorateNode({class:a[s]});break;case 19:r.getLogger().trace(`SPACELIST`);break;case 20:r.getLogger().trace(`Node: `,a[s-1].id),r.addNode(0,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 21:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 22:r.decorateNode({icon:a[s]});break;case 27:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 28:this.$={id:a[s],descr:a[s],type:0};break;case 29:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 30:this.$=a[s-1]+a[s];break;case 31:this.$=a[s]}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:r,9:22,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:u,7:d,10:23,11:f},e(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:s,23:c}),e(p,[2,19]),e(p,[2,21],{15:30,24:m}),e(p,[2,22]),e(p,[2,23]),e(h,[2,25]),e(h,[2,26]),e(h,[2,28],{20:[1,32]}),{21:[1,33]},{6:u,7:d,10:34,11:f},{1:[2,7],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},e(g,[2,14],{7:_,11:v}),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(p,[2,16],{15:37,24:m}),e(p,[2,17]),e(p,[2,18]),e(p,[2,20],{24:b}),e(h,[2,31]),{21:[1,39]},{22:[1,40]},e(g,[2,13],{7:_,11:v}),e(y,[2,11]),e(y,[2,12]),e(p,[2,15],{24:b}),e(h,[2,30]),{22:[1,41]},e(h,[2,27]),e(h,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.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;o.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){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
1
+ import{m as e}from"./src-BH-TyZbA.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{J as n,et as r,f as i,rt as a,tt as o,x as s,z as c}from"./chunk-DU6HZSFF-HXNYRQa7.js";import"./chunk-75Z2AOVW-JambT9gc.js";import"./chunk-PWAF6VOD-B3ubF73c.js";import"./chunk-GMAD6QVW-BgHQEQ7R.js";import{t as l}from"./chunk-5VM5RSS4-ZNzvKenW.js";import"./chunk-P2QGCYS3-SGZBqYWd.js";import"./chunk-4HAMMTFA-CfDItMak.js";import{i as u,r as d}from"./chunk-GVQU2GXP-4BgM3wXc.js";import{n as f}from"./chunk-L3NEJ4N5-qOkePrmd.js";import{f as p,n as m,t as h}from"./mermaid.core-BtBN7z80.js";var g=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,31],h=[6,7,11,24],g=[1,6,13,16,17,20,23],_=[1,35],v=[1,36],y=[1,6,7,11,13,16,17,20,23],b=[1,38],x={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`KANBAN`,11:`EOF`,13:`SPACELIST`,16:`ICON`,17:`CLASS`,20:`NODE_DSTART`,21:`NODE_DESCR`,22:`NODE_DEND`,23:`NODE_ID`,24:`SHAPE_DATA`},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,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s-1].id),r.addNode(a[s-2].length,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 16:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 17:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 18:case 23:r.decorateNode({class:a[s]});break;case 19:r.getLogger().trace(`SPACELIST`);break;case 20:r.getLogger().trace(`Node: `,a[s-1].id),r.addNode(0,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 21:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 22:r.decorateNode({icon:a[s]});break;case 27:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 28:this.$={id:a[s],descr:a[s],type:0};break;case 29:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 30:this.$=a[s-1]+a[s];break;case 31:this.$=a[s]}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:r,9:22,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:u,7:d,10:23,11:f},e(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:s,23:c}),e(p,[2,19]),e(p,[2,21],{15:30,24:m}),e(p,[2,22]),e(p,[2,23]),e(h,[2,25]),e(h,[2,26]),e(h,[2,28],{20:[1,32]}),{21:[1,33]},{6:u,7:d,10:34,11:f},{1:[2,7],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},e(g,[2,14],{7:_,11:v}),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(p,[2,16],{15:37,24:m}),e(p,[2,17]),e(p,[2,18]),e(p,[2,20],{24:b}),e(h,[2,31]),{21:[1,39]},{22:[1,40]},e(g,[2,13],{7:_,11:v}),e(y,[2,11]),e(y,[2,12]),e(p,[2,15],{24:b}),e(h,[2,30]),{22:[1,41]},e(h,[2,27]),e(h,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.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;o.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){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+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:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};x.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(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:t(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:t(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:t(function(){return this._more=!0,this},`more`),reject:t(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
4
  `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(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:t(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:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{n as e,t}from"./path-fybaL0A-.js";import{t as n}from"./array-BifhSqXX.js";import{rt as r}from"./chunk-75Z2AOVW-OUM6F-Z2.js";function i(e){return e[0]}function a(e){return e[1]}function o(o,s){var c=e(!0),l=null,u=r,d=null,f=t(p);o=typeof o==`function`?o:o===void 0?i:e(o),s=typeof s==`function`?s:s===void 0?a:e(s);function p(e){var t,r=(e=n(e)).length,i,a=!1,p;for(l??(d=u(p=f())),t=0;t<=r;++t)!(t<r&&c(i=e[t],t,e))===a&&((a=!a)?d.lineStart():d.lineEnd()),a&&d.point(+o(i,t,e),+s(i,t,e));if(p)return d=null,p+``||null}return p.x=function(t){return arguments.length?(o=typeof t==`function`?t:e(+t),p):o},p.y=function(t){return arguments.length?(s=typeof t==`function`?t:e(+t),p):s},p.defined=function(t){return arguments.length?(c=typeof t==`function`?t:e(!!t),p):c},p.curve=function(e){return arguments.length?(u=e,l!=null&&(d=u(l)),p):u},p.context=function(e){return arguments.length?(e==null?l=d=null:d=u(l=e),p):l},p}export{o as t};
1
+ import{n as e,t}from"./path-fybaL0A-.js";import{t as n}from"./array-BifhSqXX.js";import{rt as r}from"./chunk-75Z2AOVW-JambT9gc.js";function i(e){return e[0]}function a(e){return e[1]}function o(o,s){var c=e(!0),l=null,u=r,d=null,f=t(p);o=typeof o==`function`?o:o===void 0?i:e(o),s=typeof s==`function`?s:s===void 0?a:e(s);function p(e){var t,r=(e=n(e)).length,i,a=!1,p;for(l??(d=u(p=f())),t=0;t<=r;++t)!(t<r&&c(i=e[t],t,e))===a&&((a=!a)?d.lineStart():d.lineEnd()),a&&d.point(+o(i,t,e),+s(i,t,e));if(p)return d=null,p+``||null}return p.x=function(t){return arguments.length?(o=typeof t==`function`?t:e(+t),p):o},p.y=function(t){return arguments.length?(s=typeof t==`function`?t:e(+t),p):s},p.defined=function(t){return arguments.length?(c=typeof t==`function`?t:e(!!t),p):c},p.curve=function(e){return arguments.length?(u=e,l!=null&&(d=u(l)),p):u},p.context=function(e){return arguments.length?(e==null?l=d=null:d=u(l=e),p):l},p}export{o as t};
@@ -1,7 +1,7 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/info-A6RAGUB7-Dm0lTq1F.js","assets/chunk-FOHPRMQF-DzxwRta7.js","assets/packet-AYTQ26CC-6s6XRIHO.js","assets/pie-WAS4IAKB-BNoU8wOh.js","assets/treeView-Q6P3EWNA-D5E6rNip.js","assets/architecture-7GRP2DOG-CszbBaLG.js","assets/gitGraph-4MIJSDKK-DkHL0Vmb.js","assets/eventmodeling-NTZA5JFV-CHTuxREV.js","assets/radar-RG4KPBEZ-7fT-y4bj.js","assets/railroad-74A4TZTK-DfD5x0yO.js","assets/railroad-ebnf-LZEXJU2U-B_O77J7F.js","assets/railroad-abnf-HS5TGJTU-b8Cz753z.js","assets/railroad-peg-WCYAUIDC-DY-15zgB.js","assets/treemap-WGGIJYW6-CdXHwdKK.js","assets/wardley-WFR3VGLG-Bb28LKxc.js","assets/cynefin-OW5HDTMX-CG0jDjpt.js"])))=>i.map(i=>d[i]);
2
- import{t as e}from"./index-CHyIcFAa.js";import{C as t,S as n,_ as r,a as i,b as a,c as o,d as ee,f as te,g as ne,h as re,i as s,l as ie,m as ae,n as c,o as l,p as oe,r as se,s as ce,t as u,u as d,v as le,w as f,x as p,y as ue}from"./chunk-FOHPRMQF-DzxwRta7.js";var de=class extends u{static{p(this,`ArchitectureTokenBuilder`)}constructor(){super([`architecture`])}},fe=class extends c{static{p(this,`ArchitectureValueConverter`)}runCustomConverter(e,t,n){if(e.name===`ARCH_ICON`)return t.replace(/[()]/g,``).trim();if(e.name===`ARCH_TEXT_ICON`)return t.replace(/["()]/g,``);if(e.name===`ARCH_TITLE`){let e=t.replace(/^\[|]$/g,``).trim();return(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))&&(e=e.slice(1,-1),e=e.replace(/\\"/g,`"`).replace(/\\'/g,`'`)),e.trim()}}},m={parser:{TokenBuilder:p(()=>new de,`TokenBuilder`),ValueConverter:p(()=>new fe,`ValueConverter`)}};function h(e=l){let r=f(t(e),d),i=f(n({shared:r}),se,m);return r.ServiceRegistry.register(i),{shared:r,Architecture:i}}p(h,`createArchitectureServices`);var pe=class extends u{static{p(this,`CynefinTokenBuilder`)}constructor(){super([`cynefin-beta`])}},g={parser:{TokenBuilder:p(()=>new pe,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function _(e=l){let r=f(t(e),d),a=f(n({shared:r}),i,g);return r.ServiceRegistry.register(a),{shared:r,Cynefin:a}}p(_,`createCynefinServices`);var me=class extends u{static{p(this,`EventModelingTokenBuilder`)}constructor(){super([`eventmodeling`])}},v=new Set([`cmd`,`command`]),y=new Set([`evt`,`event`]),b=new Set([`rmo`,`readmodel`]),x=new Set([`pcr`,`processor`]),S=new Set([`ui`]);function C(e){let t=e.validation.EventModelingValidator,n=e.validation.ValidationRegistry;if(n){let e={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};n.register(e,t)}}p(C,`registerValidationChecks`);var he=class{static{p(this,`EventModelingValidator`)}checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&(v.has(e.modelEntityType)?this.validateSources(e,new Set([...S,...x]),`command`,`ui or processor`,t):y.has(e.modelEntityType)?this.validateSources(e,v,`event`,`command`,t):b.has(e.modelEntityType)?this.validateSources(e,y,`read model`,`event`,t):x.has(e.modelEntityType)?this.validateSources(e,b,`processor`,`read model`,t):S.has(e.modelEntityType)&&this.validateSources(e,b,`ui`,`read model`,t))}validateSources(e,t,n,r,i){for(let a of e.sourceFrames){let o=a.ref;o!==void 0&&!t.has(o.modelEntityType)&&i(`error`,`A ${n} can only receive input from a ${r}, not from '${o.modelEntityType}'.`,{node:e,property:`sourceFrames`})}}},w={parser:{TokenBuilder:p(()=>new me,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)},validation:{EventModelingValidator:p(()=>new he,`EventModelingValidator`)}};function T(e=l){let r=f(t(e),d),i=f(n({shared:r}),ce,w);return r.ServiceRegistry.register(i),C(i),{shared:r,EventModel:i}}p(T,`createEventModelingServices`);var ge=class extends u{static{p(this,`GitGraphTokenBuilder`)}constructor(){super([`gitGraph`])}},E={parser:{TokenBuilder:p(()=>new ge,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function D(e=l){let r=f(t(e),d),i=f(n({shared:r}),o,E);return r.ServiceRegistry.register(i),{shared:r,GitGraph:i}}p(D,`createGitGraphServices`);var _e=class extends u{static{p(this,`InfoTokenBuilder`)}constructor(){super([`info`,`showInfo`])}},O={parser:{TokenBuilder:p(()=>new _e,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function k(e=l){let r=f(t(e),d),i=f(n({shared:r}),ie,O);return r.ServiceRegistry.register(i),{shared:r,Info:i}}p(k,`createInfoServices`);var ve=class extends u{static{p(this,`PacketTokenBuilder`)}constructor(){super([`packet`])}},A={parser:{TokenBuilder:p(()=>new ve,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function j(e=l){let r=f(t(e),d),i=f(n({shared:r}),ee,A);return r.ServiceRegistry.register(i),{shared:r,Packet:i}}p(j,`createPacketServices`);var ye=class extends u{static{p(this,`PieTokenBuilder`)}constructor(){super([`pie`,`showData`])}},be=class extends c{static{p(this,`PieValueConverter`)}runCustomConverter(e,t,n){if(e.name===`PIE_SECTION_LABEL`)return t.replace(/"/g,``).trim()}},M={parser:{TokenBuilder:p(()=>new ye,`TokenBuilder`),ValueConverter:p(()=>new be,`ValueConverter`)}};function N(e=l){let r=f(t(e),d),i=f(n({shared:r}),te,M);return r.ServiceRegistry.register(i),{shared:r,Pie:i}}p(N,`createPieServices`);var xe=class extends u{static{p(this,`RadarTokenBuilder`)}constructor(){super([`radar-beta`])}},P={parser:{TokenBuilder:p(()=>new xe,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function F(e=l){let r=f(t(e),d),i=f(n({shared:r}),oe,P);return r.ServiceRegistry.register(i),{shared:r,Radar:i}}p(F,`createRadarServices`);var Se=class extends u{static{p(this,`RailroadTokenBuilder`)}constructor(){super([`railroad-beta`])}},I=p(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/info-A6RAGUB7-CDeXG_55.js","assets/chunk-FOHPRMQF-DzxwRta7.js","assets/packet-AYTQ26CC-DJCHtf_H.js","assets/pie-WAS4IAKB-BQ3vCOeu.js","assets/treeView-Q6P3EWNA-DXStGtQJ.js","assets/architecture-7GRP2DOG-FixOTtMw.js","assets/gitGraph-4MIJSDKK-DHtizqGj.js","assets/eventmodeling-NTZA5JFV-XwcNizNP.js","assets/radar-RG4KPBEZ-COPQmxDH.js","assets/railroad-74A4TZTK-DQ-mYa6o.js","assets/railroad-ebnf-LZEXJU2U-DvhY4Bnt.js","assets/railroad-abnf-HS5TGJTU-B7R28bHf.js","assets/railroad-peg-WCYAUIDC-B1dhaWlf.js","assets/treemap-WGGIJYW6-Brk6Aicr.js","assets/wardley-WFR3VGLG-BWAndKh8.js","assets/cynefin-OW5HDTMX-Btnpxygf.js"])))=>i.map(i=>d[i]);
2
+ import{t as e}from"./index-CggD7ZD5.js";import{C as t,S as n,_ as r,a as i,b as a,c as o,d as ee,f as te,g as ne,h as re,i as s,l as ie,m as ae,n as c,o as l,p as oe,r as se,s as ce,t as u,u as d,v as le,w as f,x as p,y as ue}from"./chunk-FOHPRMQF-DzxwRta7.js";var de=class extends u{static{p(this,`ArchitectureTokenBuilder`)}constructor(){super([`architecture`])}},fe=class extends c{static{p(this,`ArchitectureValueConverter`)}runCustomConverter(e,t,n){if(e.name===`ARCH_ICON`)return t.replace(/[()]/g,``).trim();if(e.name===`ARCH_TEXT_ICON`)return t.replace(/["()]/g,``);if(e.name===`ARCH_TITLE`){let e=t.replace(/^\[|]$/g,``).trim();return(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))&&(e=e.slice(1,-1),e=e.replace(/\\"/g,`"`).replace(/\\'/g,`'`)),e.trim()}}},m={parser:{TokenBuilder:p(()=>new de,`TokenBuilder`),ValueConverter:p(()=>new fe,`ValueConverter`)}};function h(e=l){let r=f(t(e),d),i=f(n({shared:r}),se,m);return r.ServiceRegistry.register(i),{shared:r,Architecture:i}}p(h,`createArchitectureServices`);var pe=class extends u{static{p(this,`CynefinTokenBuilder`)}constructor(){super([`cynefin-beta`])}},g={parser:{TokenBuilder:p(()=>new pe,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function _(e=l){let r=f(t(e),d),a=f(n({shared:r}),i,g);return r.ServiceRegistry.register(a),{shared:r,Cynefin:a}}p(_,`createCynefinServices`);var me=class extends u{static{p(this,`EventModelingTokenBuilder`)}constructor(){super([`eventmodeling`])}},v=new Set([`cmd`,`command`]),y=new Set([`evt`,`event`]),b=new Set([`rmo`,`readmodel`]),x=new Set([`pcr`,`processor`]),S=new Set([`ui`]);function C(e){let t=e.validation.EventModelingValidator,n=e.validation.ValidationRegistry;if(n){let e={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};n.register(e,t)}}p(C,`registerValidationChecks`);var he=class{static{p(this,`EventModelingValidator`)}checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&(v.has(e.modelEntityType)?this.validateSources(e,new Set([...S,...x]),`command`,`ui or processor`,t):y.has(e.modelEntityType)?this.validateSources(e,v,`event`,`command`,t):b.has(e.modelEntityType)?this.validateSources(e,y,`read model`,`event`,t):x.has(e.modelEntityType)?this.validateSources(e,b,`processor`,`read model`,t):S.has(e.modelEntityType)&&this.validateSources(e,b,`ui`,`read model`,t))}validateSources(e,t,n,r,i){for(let a of e.sourceFrames){let o=a.ref;o!==void 0&&!t.has(o.modelEntityType)&&i(`error`,`A ${n} can only receive input from a ${r}, not from '${o.modelEntityType}'.`,{node:e,property:`sourceFrames`})}}},w={parser:{TokenBuilder:p(()=>new me,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)},validation:{EventModelingValidator:p(()=>new he,`EventModelingValidator`)}};function T(e=l){let r=f(t(e),d),i=f(n({shared:r}),ce,w);return r.ServiceRegistry.register(i),C(i),{shared:r,EventModel:i}}p(T,`createEventModelingServices`);var ge=class extends u{static{p(this,`GitGraphTokenBuilder`)}constructor(){super([`gitGraph`])}},E={parser:{TokenBuilder:p(()=>new ge,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function D(e=l){let r=f(t(e),d),i=f(n({shared:r}),o,E);return r.ServiceRegistry.register(i),{shared:r,GitGraph:i}}p(D,`createGitGraphServices`);var _e=class extends u{static{p(this,`InfoTokenBuilder`)}constructor(){super([`info`,`showInfo`])}},O={parser:{TokenBuilder:p(()=>new _e,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function k(e=l){let r=f(t(e),d),i=f(n({shared:r}),ie,O);return r.ServiceRegistry.register(i),{shared:r,Info:i}}p(k,`createInfoServices`);var ve=class extends u{static{p(this,`PacketTokenBuilder`)}constructor(){super([`packet`])}},A={parser:{TokenBuilder:p(()=>new ve,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function j(e=l){let r=f(t(e),d),i=f(n({shared:r}),ee,A);return r.ServiceRegistry.register(i),{shared:r,Packet:i}}p(j,`createPacketServices`);var ye=class extends u{static{p(this,`PieTokenBuilder`)}constructor(){super([`pie`,`showData`])}},be=class extends c{static{p(this,`PieValueConverter`)}runCustomConverter(e,t,n){if(e.name===`PIE_SECTION_LABEL`)return t.replace(/"/g,``).trim()}},M={parser:{TokenBuilder:p(()=>new ye,`TokenBuilder`),ValueConverter:p(()=>new be,`ValueConverter`)}};function N(e=l){let r=f(t(e),d),i=f(n({shared:r}),te,M);return r.ServiceRegistry.register(i),{shared:r,Pie:i}}p(N,`createPieServices`);var xe=class extends u{static{p(this,`RadarTokenBuilder`)}constructor(){super([`radar-beta`])}},P={parser:{TokenBuilder:p(()=>new xe,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function F(e=l){let r=f(t(e),d),i=f(n({shared:r}),oe,P);return r.ServiceRegistry.register(i),{shared:r,Radar:i}}p(F,`createRadarServices`);var Se=class extends u{static{p(this,`RailroadTokenBuilder`)}constructor(){super([`railroad-beta`])}},I=p(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
3
3
  `;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}continue}n+=r}return n},`decodeEscapedString`),Ce=class extends c{static{p(this,`RailroadValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return I(e)}return r}runCustomConverter(e,t,n){if(e.name===`RR_STRING`)return I(t)}},L={parser:{TokenBuilder:p(()=>new Se,`TokenBuilder`),ValueConverter:p(()=>new Ce,`ValueConverter`)}};function we(e=l){let r=f(t(e),d),i=f(n({shared:r}),ne,L);return r.ServiceRegistry.register(i),{shared:r,Railroad:i}}p(we,`createRailroadServices`);var Te=class extends u{static{p(this,`RailroadAbnfTokenBuilder`)}constructor(){super([`railroad-abnf-beta`])}},Ee=class extends c{static{p(this,`RailroadAbnfValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return e.slice(1,-1)}return r}runCustomConverter(e,t,n){if(e.name===`ABNF_STRING`)return t.slice(1,-1)}},R={parser:{TokenBuilder:p(()=>new Te,`TokenBuilder`),ValueConverter:p(()=>new Ee,`ValueConverter`)}};function z(e=l){let r=f(t(e),d),i=f(n({shared:r}),ae,R);return r.ServiceRegistry.register(i),{shared:r,RailroadAbnf:i}}p(z,`createRailroadAbnfServices`);var De=class extends u{static{p(this,`RailroadEbnfTokenBuilder`)}constructor(){super([`railroad-ebnf-beta`])}},B=p(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
4
4
  `;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}continue}n+=r}return n},`decodeEscapedString`),Oe=class extends c{static{p(this,`RailroadEbnfValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return B(e)}return r}runCustomConverter(e,t,n){if(e.name===`EBNF_STRING`)return B(t);if(e.name===`EBNF_SPECIAL_SEQUENCE`)return t.slice(1,-1).trim()}},V={parser:{TokenBuilder:p(()=>new De,`TokenBuilder`),ValueConverter:p(()=>new Oe,`ValueConverter`)}};function H(e=l){let r=f(t(e),d),i=f(n({shared:r}),re,V);return r.ServiceRegistry.register(i),{shared:r,RailroadEbnf:i}}p(H,`createRailroadEbnfServices`);var ke=class extends u{static{p(this,`RailroadPegTokenBuilder`)}constructor(){super([`railroad-peg-beta`])}},U=p(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
5
- `;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}continue}n+=r}return n},`decodeEscapedString`),Ae=class extends c{static{p(this,`RailroadPegValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return U(e)}return r}runCustomConverter(e,t,n){if(e.name===`PEG_STRING`)return U(t)}},W={parser:{TokenBuilder:p(()=>new ke,`TokenBuilder`),ValueConverter:p(()=>new Ae,`ValueConverter`)}};function G(e=l){let i=f(t(e),d),a=f(n({shared:i}),r,W);return i.ServiceRegistry.register(a),{shared:i,RailroadPeg:a}}p(G,`createRailroadPegServices`);var je=class extends c{static{p(this,`TreeViewValueConverter`)}runCustomConverter(e,t,n){if(e.name===`INDENTATION`)return t?.length||0;if(e.name===`QUOTED_NAME`)return t.substring(1,t.length-1);if(e.name===`BARE_NAME`)return t.replace(/[\t ]+$/,``);if(e.name===`CLASS_ANNOTATION`)return t.trim().substring(3).trim();if(e.name===`ICON_ANNOTATION`){let e=t.trim();return e.substring(5,e.length-1)}if(e.name===`DESC_ANNOTATION`)return t.trim().substring(2).trim()}},Me=class extends u{static{p(this,`TreeViewTokenBuilder`)}constructor(){super([`treeView-beta`])}},K={parser:{TokenBuilder:p(()=>new Me,`TokenBuilder`),ValueConverter:p(()=>new je,`ValueConverter`)}};function q(e=l){let r=f(t(e),d),i=f(n({shared:r}),le,K);return r.ServiceRegistry.register(i),{shared:r,TreeView:i}}p(q,`createTreeViewServices`);var Ne=class extends u{static{p(this,`TreemapTokenBuilder`)}constructor(){super([`treemap`])}},Pe=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,Fe=class extends c{static{p(this,`TreemapValueConverter`)}runCustomConverter(e,t,n){if(e.name===`NUMBER2`)return parseFloat(t.replace(/,/g,``));if(e.name===`SEPARATOR`||e.name===`STRING2`)return t.substring(1,t.length-1);if(e.name===`INDENTATION`)return t.length;if(e.name===`ClassDef`){if(typeof t!=`string`)return t;let e=Pe.exec(t);if(e)return{$type:`ClassDefStatement`,className:e[1],styleText:e[2]||void 0}}}};function J(e){let t=e.validation.TreemapValidator,n=e.validation.ValidationRegistry;if(n){let e={Treemap:t.checkSingleRoot.bind(t)};n.register(e,t)}}p(J,`registerValidationChecks`);var Ie=class{static{p(this,`TreemapValidator`)}checkSingleRoot(e,t){let n;for(let r of e.TreemapRows)r.item&&(n===void 0&&r.indent===void 0?n=0:(r.indent===void 0||n!==void 0&&n>=parseInt(r.indent,10))&&t(`error`,`Multiple root nodes are not allowed in a treemap.`,{node:r,property:`item`}))}},Y={parser:{TokenBuilder:p(()=>new Ne,`TokenBuilder`),ValueConverter:p(()=>new Fe,`ValueConverter`)},validation:{TreemapValidator:p(()=>new Ie,`TreemapValidator`)}};function X(e=l){let r=f(t(e),d),i=f(n({shared:r}),ue,Y);return r.ServiceRegistry.register(i),J(i),{shared:r,Treemap:i}}p(X,`createTreemapServices`);var Le=class extends c{static{p(this,`WardleyValueConverter`)}runCustomConverter(e,t,n){switch(e.name.toUpperCase()){case`LINK_LABEL`:return t.substring(1).trim();default:return}}},Z={parser:{ValueConverter:p(()=>new Le,`ValueConverter`)}};function Q(e=l){let r=f(t(e),d),i=f(n({shared:r}),a,Z);return r.ServiceRegistry.register(i),{shared:r,Wardley:i}}p(Q,`createWardleyServices`);var $={},Re={info:p(async()=>{let{createInfoServices:t}=await e(async()=>{let{createInfoServices:e}=await import(`./info-A6RAGUB7-Dm0lTq1F.js`);return{createInfoServices:e}},__vite__mapDeps([0,1]));$.info=t().Info.parser.LangiumParser},`info`),packet:p(async()=>{let{createPacketServices:t}=await e(async()=>{let{createPacketServices:e}=await import(`./packet-AYTQ26CC-6s6XRIHO.js`);return{createPacketServices:e}},__vite__mapDeps([2,1]));$.packet=t().Packet.parser.LangiumParser},`packet`),pie:p(async()=>{let{createPieServices:t}=await e(async()=>{let{createPieServices:e}=await import(`./pie-WAS4IAKB-BNoU8wOh.js`);return{createPieServices:e}},__vite__mapDeps([3,1]));$.pie=t().Pie.parser.LangiumParser},`pie`),treeView:p(async()=>{let{createTreeViewServices:t}=await e(async()=>{let{createTreeViewServices:e}=await import(`./treeView-Q6P3EWNA-D5E6rNip.js`);return{createTreeViewServices:e}},__vite__mapDeps([4,1]));$.treeView=t().TreeView.parser.LangiumParser},`treeView`),architecture:p(async()=>{let{createArchitectureServices:t}=await e(async()=>{let{createArchitectureServices:e}=await import(`./architecture-7GRP2DOG-CszbBaLG.js`);return{createArchitectureServices:e}},__vite__mapDeps([5,1]));$.architecture=t().Architecture.parser.LangiumParser},`architecture`),gitGraph:p(async()=>{let{createGitGraphServices:t}=await e(async()=>{let{createGitGraphServices:e}=await import(`./gitGraph-4MIJSDKK-DkHL0Vmb.js`);return{createGitGraphServices:e}},__vite__mapDeps([6,1]));$.gitGraph=t().GitGraph.parser.LangiumParser},`gitGraph`),eventmodeling:p(async()=>{let{createEventModelingServices:t}=await e(async()=>{let{createEventModelingServices:e}=await import(`./eventmodeling-NTZA5JFV-CHTuxREV.js`);return{createEventModelingServices:e}},__vite__mapDeps([7,1]));$.eventmodeling=t().EventModel.parser.LangiumParser},`eventmodeling`),radar:p(async()=>{let{createRadarServices:t}=await e(async()=>{let{createRadarServices:e}=await import(`./radar-RG4KPBEZ-7fT-y4bj.js`);return{createRadarServices:e}},__vite__mapDeps([8,1]));$.radar=t().Radar.parser.LangiumParser},`radar`),railroad:p(async()=>{let{createRailroadServices:t}=await e(async()=>{let{createRailroadServices:e}=await import(`./railroad-74A4TZTK-DfD5x0yO.js`);return{createRailroadServices:e}},__vite__mapDeps([9,1]));$.railroad=t().Railroad.parser.LangiumParser},`railroad`),railroadEbnf:p(async()=>{let{createRailroadEbnfServices:t}=await e(async()=>{let{createRailroadEbnfServices:e}=await import(`./railroad-ebnf-LZEXJU2U-B_O77J7F.js`);return{createRailroadEbnfServices:e}},__vite__mapDeps([10,1]));$.railroadEbnf=t().RailroadEbnf.parser.LangiumParser},`railroadEbnf`),railroadAbnf:p(async()=>{let{createRailroadAbnfServices:t}=await e(async()=>{let{createRailroadAbnfServices:e}=await import(`./railroad-abnf-HS5TGJTU-b8Cz753z.js`);return{createRailroadAbnfServices:e}},__vite__mapDeps([11,1]));$.railroadAbnf=t().RailroadAbnf.parser.LangiumParser},`railroadAbnf`),railroadPeg:p(async()=>{let{createRailroadPegServices:t}=await e(async()=>{let{createRailroadPegServices:e}=await import(`./railroad-peg-WCYAUIDC-DY-15zgB.js`);return{createRailroadPegServices:e}},__vite__mapDeps([12,1]));$.railroadPeg=t().RailroadPeg.parser.LangiumParser},`railroadPeg`),treemap:p(async()=>{let{createTreemapServices:t}=await e(async()=>{let{createTreemapServices:e}=await import(`./treemap-WGGIJYW6-CdXHwdKK.js`);return{createTreemapServices:e}},__vite__mapDeps([13,1]));$.treemap=t().Treemap.parser.LangiumParser},`treemap`),wardley:p(async()=>{let{createWardleyServices:t}=await e(async()=>{let{createWardleyServices:e}=await import(`./wardley-WFR3VGLG-Bb28LKxc.js`);return{createWardleyServices:e}},__vite__mapDeps([14,1]));$.wardley=t().Wardley.parser.LangiumParser},`wardley`),cynefin:p(async()=>{let{createCynefinServices:t}=await e(async()=>{let{createCynefinServices:e}=await import(`./cynefin-OW5HDTMX-CG0jDjpt.js`);return{createCynefinServices:e}},__vite__mapDeps([15,1]));$.cynefin=t().Cynefin.parser.LangiumParser},`cynefin`)};async function ze(e,t){let n=Re[e];if(!n)throw Error(`Unknown diagram type: ${e}`);$[e]||await n();let r=$[e].parse(t);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new Be(r);return r.value}p(ze,`parse`);var Be=class extends Error{constructor(e){let t=e.lexerErrors.map(e=>`Lexer error on line ${e.line!==void 0&&!isNaN(e.line)?e.line:`?`}, column ${e.column!==void 0&&!isNaN(e.column)?e.column:`?`}: ${e.message}`).join(`
5
+ `;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}continue}n+=r}return n},`decodeEscapedString`),Ae=class extends c{static{p(this,`RailroadPegValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return U(e)}return r}runCustomConverter(e,t,n){if(e.name===`PEG_STRING`)return U(t)}},W={parser:{TokenBuilder:p(()=>new ke,`TokenBuilder`),ValueConverter:p(()=>new Ae,`ValueConverter`)}};function G(e=l){let i=f(t(e),d),a=f(n({shared:i}),r,W);return i.ServiceRegistry.register(a),{shared:i,RailroadPeg:a}}p(G,`createRailroadPegServices`);var je=class extends c{static{p(this,`TreeViewValueConverter`)}runCustomConverter(e,t,n){if(e.name===`INDENTATION`)return t?.length||0;if(e.name===`QUOTED_NAME`)return t.substring(1,t.length-1);if(e.name===`BARE_NAME`)return t.replace(/[\t ]+$/,``);if(e.name===`CLASS_ANNOTATION`)return t.trim().substring(3).trim();if(e.name===`ICON_ANNOTATION`){let e=t.trim();return e.substring(5,e.length-1)}if(e.name===`DESC_ANNOTATION`)return t.trim().substring(2).trim()}},Me=class extends u{static{p(this,`TreeViewTokenBuilder`)}constructor(){super([`treeView-beta`])}},K={parser:{TokenBuilder:p(()=>new Me,`TokenBuilder`),ValueConverter:p(()=>new je,`ValueConverter`)}};function q(e=l){let r=f(t(e),d),i=f(n({shared:r}),le,K);return r.ServiceRegistry.register(i),{shared:r,TreeView:i}}p(q,`createTreeViewServices`);var Ne=class extends u{static{p(this,`TreemapTokenBuilder`)}constructor(){super([`treemap`])}},Pe=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,Fe=class extends c{static{p(this,`TreemapValueConverter`)}runCustomConverter(e,t,n){if(e.name===`NUMBER2`)return parseFloat(t.replace(/,/g,``));if(e.name===`SEPARATOR`||e.name===`STRING2`)return t.substring(1,t.length-1);if(e.name===`INDENTATION`)return t.length;if(e.name===`ClassDef`){if(typeof t!=`string`)return t;let e=Pe.exec(t);if(e)return{$type:`ClassDefStatement`,className:e[1],styleText:e[2]||void 0}}}};function J(e){let t=e.validation.TreemapValidator,n=e.validation.ValidationRegistry;if(n){let e={Treemap:t.checkSingleRoot.bind(t)};n.register(e,t)}}p(J,`registerValidationChecks`);var Ie=class{static{p(this,`TreemapValidator`)}checkSingleRoot(e,t){let n;for(let r of e.TreemapRows)r.item&&(n===void 0&&r.indent===void 0?n=0:(r.indent===void 0||n!==void 0&&n>=parseInt(r.indent,10))&&t(`error`,`Multiple root nodes are not allowed in a treemap.`,{node:r,property:`item`}))}},Y={parser:{TokenBuilder:p(()=>new Ne,`TokenBuilder`),ValueConverter:p(()=>new Fe,`ValueConverter`)},validation:{TreemapValidator:p(()=>new Ie,`TreemapValidator`)}};function X(e=l){let r=f(t(e),d),i=f(n({shared:r}),ue,Y);return r.ServiceRegistry.register(i),J(i),{shared:r,Treemap:i}}p(X,`createTreemapServices`);var Le=class extends c{static{p(this,`WardleyValueConverter`)}runCustomConverter(e,t,n){switch(e.name.toUpperCase()){case`LINK_LABEL`:return t.substring(1).trim();default:return}}},Z={parser:{ValueConverter:p(()=>new Le,`ValueConverter`)}};function Q(e=l){let r=f(t(e),d),i=f(n({shared:r}),a,Z);return r.ServiceRegistry.register(i),{shared:r,Wardley:i}}p(Q,`createWardleyServices`);var $={},Re={info:p(async()=>{let{createInfoServices:t}=await e(async()=>{let{createInfoServices:e}=await import(`./info-A6RAGUB7-CDeXG_55.js`);return{createInfoServices:e}},__vite__mapDeps([0,1]));$.info=t().Info.parser.LangiumParser},`info`),packet:p(async()=>{let{createPacketServices:t}=await e(async()=>{let{createPacketServices:e}=await import(`./packet-AYTQ26CC-DJCHtf_H.js`);return{createPacketServices:e}},__vite__mapDeps([2,1]));$.packet=t().Packet.parser.LangiumParser},`packet`),pie:p(async()=>{let{createPieServices:t}=await e(async()=>{let{createPieServices:e}=await import(`./pie-WAS4IAKB-BQ3vCOeu.js`);return{createPieServices:e}},__vite__mapDeps([3,1]));$.pie=t().Pie.parser.LangiumParser},`pie`),treeView:p(async()=>{let{createTreeViewServices:t}=await e(async()=>{let{createTreeViewServices:e}=await import(`./treeView-Q6P3EWNA-DXStGtQJ.js`);return{createTreeViewServices:e}},__vite__mapDeps([4,1]));$.treeView=t().TreeView.parser.LangiumParser},`treeView`),architecture:p(async()=>{let{createArchitectureServices:t}=await e(async()=>{let{createArchitectureServices:e}=await import(`./architecture-7GRP2DOG-FixOTtMw.js`);return{createArchitectureServices:e}},__vite__mapDeps([5,1]));$.architecture=t().Architecture.parser.LangiumParser},`architecture`),gitGraph:p(async()=>{let{createGitGraphServices:t}=await e(async()=>{let{createGitGraphServices:e}=await import(`./gitGraph-4MIJSDKK-DHtizqGj.js`);return{createGitGraphServices:e}},__vite__mapDeps([6,1]));$.gitGraph=t().GitGraph.parser.LangiumParser},`gitGraph`),eventmodeling:p(async()=>{let{createEventModelingServices:t}=await e(async()=>{let{createEventModelingServices:e}=await import(`./eventmodeling-NTZA5JFV-XwcNizNP.js`);return{createEventModelingServices:e}},__vite__mapDeps([7,1]));$.eventmodeling=t().EventModel.parser.LangiumParser},`eventmodeling`),radar:p(async()=>{let{createRadarServices:t}=await e(async()=>{let{createRadarServices:e}=await import(`./radar-RG4KPBEZ-COPQmxDH.js`);return{createRadarServices:e}},__vite__mapDeps([8,1]));$.radar=t().Radar.parser.LangiumParser},`radar`),railroad:p(async()=>{let{createRailroadServices:t}=await e(async()=>{let{createRailroadServices:e}=await import(`./railroad-74A4TZTK-DQ-mYa6o.js`);return{createRailroadServices:e}},__vite__mapDeps([9,1]));$.railroad=t().Railroad.parser.LangiumParser},`railroad`),railroadEbnf:p(async()=>{let{createRailroadEbnfServices:t}=await e(async()=>{let{createRailroadEbnfServices:e}=await import(`./railroad-ebnf-LZEXJU2U-DvhY4Bnt.js`);return{createRailroadEbnfServices:e}},__vite__mapDeps([10,1]));$.railroadEbnf=t().RailroadEbnf.parser.LangiumParser},`railroadEbnf`),railroadAbnf:p(async()=>{let{createRailroadAbnfServices:t}=await e(async()=>{let{createRailroadAbnfServices:e}=await import(`./railroad-abnf-HS5TGJTU-B7R28bHf.js`);return{createRailroadAbnfServices:e}},__vite__mapDeps([11,1]));$.railroadAbnf=t().RailroadAbnf.parser.LangiumParser},`railroadAbnf`),railroadPeg:p(async()=>{let{createRailroadPegServices:t}=await e(async()=>{let{createRailroadPegServices:e}=await import(`./railroad-peg-WCYAUIDC-B1dhaWlf.js`);return{createRailroadPegServices:e}},__vite__mapDeps([12,1]));$.railroadPeg=t().RailroadPeg.parser.LangiumParser},`railroadPeg`),treemap:p(async()=>{let{createTreemapServices:t}=await e(async()=>{let{createTreemapServices:e}=await import(`./treemap-WGGIJYW6-Brk6Aicr.js`);return{createTreemapServices:e}},__vite__mapDeps([13,1]));$.treemap=t().Treemap.parser.LangiumParser},`treemap`),wardley:p(async()=>{let{createWardleyServices:t}=await e(async()=>{let{createWardleyServices:e}=await import(`./wardley-WFR3VGLG-BWAndKh8.js`);return{createWardleyServices:e}},__vite__mapDeps([14,1]));$.wardley=t().Wardley.parser.LangiumParser},`wardley`),cynefin:p(async()=>{let{createCynefinServices:t}=await e(async()=>{let{createCynefinServices:e}=await import(`./cynefin-OW5HDTMX-Btnpxygf.js`);return{createCynefinServices:e}},__vite__mapDeps([15,1]));$.cynefin=t().Cynefin.parser.LangiumParser},`cynefin`)};async function ze(e,t){let n=Re[e];if(!n)throw Error(`Unknown diagram type: ${e}`);$[e]||await n();let r=$[e].parse(t);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new Be(r);return r.value}p(ze,`parse`);var Be=class extends Error{constructor(e){let t=e.lexerErrors.map(e=>`Lexer error on line ${e.line!==void 0&&!isNaN(e.line)?e.line:`?`}, column ${e.column!==void 0&&!isNaN(e.column)?e.column:`?`}: ${e.message}`).join(`
6
6
  `),n=e.parserErrors.map(e=>`Parse error on line ${e.token.startLine!==void 0&&!isNaN(e.token.startLine)?e.token.startLine:`?`}, column ${e.token.startColumn!==void 0&&!isNaN(e.token.startColumn)?e.token.startColumn:`?`}: ${e.message}`).join(`
7
7
  `);super(`Parsing failed: ${t} ${n}`),this.result=e}static{p(this,`MermaidParseError`)}};export{_ as A,O as C,w as D,D as E,h as M,T as O,j as S,E as T,P as _,Y as a,N as b,q as c,V as d,H as f,we as g,L as h,Q as i,m as j,g as k,W as l,z as m,ze as n,X as o,R as p,Z as r,K as s,Be as t,G as u,F as v,k as w,A as x,M as y};