@codragraph/cli 2.1.1 → 2.1.4

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 (101) hide show
  1. package/README.md +12 -9
  2. package/dist/cli/ai-context.js +1 -1
  3. package/dist/cli/analyze.js +19 -2
  4. package/dist/cli/index.js +2 -1
  5. package/dist/cli/serve.d.ts +1 -0
  6. package/dist/cli/serve.js +3 -1
  7. package/dist/cli/setup.js +36 -19
  8. package/dist/cli/status.d.ts +13 -0
  9. package/dist/cli/status.js +99 -0
  10. package/dist/config/ignore-service.js +2 -0
  11. package/dist/core/graphstore/cgdb-row-source.js +3 -2
  12. package/dist/core/group/bridge-db.js +42 -10
  13. package/dist/core/run-analyze.d.ts +20 -0
  14. package/dist/core/run-analyze.js +201 -0
  15. package/dist/core/search/hybrid-search.js +11 -3
  16. package/dist/mcp/resources.js +2 -2
  17. package/dist/server/api.d.ts +14 -2
  18. package/dist/server/api.js +90 -7
  19. package/dist/server/mcp-http.d.ts +22 -0
  20. package/dist/server/mcp-http.js +21 -2
  21. package/dist/server/web-dashboard.d.ts +28 -0
  22. package/dist/server/web-dashboard.js +61 -0
  23. package/dist/web/assets/agent-D5lb0zXz.js +1089 -0
  24. package/dist/web/assets/architectureDiagram-EMZXCZ2Q-CZtc99v_.js +36 -0
  25. package/dist/web/assets/blockDiagram-IGV67L2C-BtoUp-6Y.js +132 -0
  26. package/dist/web/assets/c4Diagram-DFAF54RM-C4Hl3J2U.js +10 -0
  27. package/dist/web/assets/chunk-3GS5O3IE-DkUjU0WD.js +231 -0
  28. package/dist/web/assets/chunk-3YCYZ6SJ-CQkVgT_z.js +1 -0
  29. package/dist/web/assets/chunk-7RZVMHOQ-BitYcNVR.js +338 -0
  30. package/dist/web/assets/chunk-AEOMTBSW-BgTIXPsY.js +1 -0
  31. package/dist/web/assets/chunk-H3VCZNTA-Cx5XV_aC.js +13 -0
  32. package/dist/web/assets/chunk-HN6EAY2L-BBnyTNdB.js +1 -0
  33. package/dist/web/assets/chunk-KSICW3F5-BYzvDLNI.js +15 -0
  34. package/dist/web/assets/chunk-O5ABG6QK-dHwHzA6n.js +1 -0
  35. package/dist/web/assets/chunk-PK6DOVAG-CvsEnugt.js +206 -0
  36. package/dist/web/assets/chunk-RWUO3TPN-BgRTY0_k.js +1 -0
  37. package/dist/web/assets/chunk-TBF5ZNIQ-DL5stGM1.js +1 -0
  38. package/dist/web/assets/chunk-TU3PZOEN-RLyvLcv-.js +1 -0
  39. package/dist/web/assets/classDiagram-PPOCWD7C-DTr8QIOf.js +1 -0
  40. package/dist/web/assets/classDiagram-v2-23LJLIIU-DTr8QIOf.js +1 -0
  41. package/dist/web/assets/context-builder-22jU3V56.js +16 -0
  42. package/dist/web/assets/cose-bilkent-PNC4W37J-DVhePRYg.js +1 -0
  43. package/dist/web/assets/dagre-E77IOHMT-Dzx0A6ZU.js +4 -0
  44. package/dist/web/assets/diagram-H7BISOXX-CC9pRew1.js +43 -0
  45. package/dist/web/assets/diagram-JC5VWROH-Bau_i9tf.js +24 -0
  46. package/dist/web/assets/diagram-LXUTUG65-D9_FM2Gt.js +10 -0
  47. package/dist/web/assets/diagram-WEHSV5V5-BMlayouL.js +24 -0
  48. package/dist/web/assets/erDiagram-GCSMX5X6-C3dhDFA8.js +85 -0
  49. package/dist/web/assets/flowDiagram-OTCZ4VVT-CWSFWmhr.js +162 -0
  50. package/dist/web/assets/ganttDiagram-MUNLMDZQ-D3a67Yol.js +292 -0
  51. package/dist/web/assets/gitGraphDiagram-3HKGZ4G3-7jmry-vM.js +106 -0
  52. package/dist/web/assets/index-BgeqpYgd.js +1415 -0
  53. package/dist/web/assets/index-CT0GtFLZ.css +1 -0
  54. package/dist/web/assets/infoDiagram-MN7RKWGX-G7lhP0Ib.js +2 -0
  55. package/dist/web/assets/ishikawaDiagram-YMYX4NHK-DUoJvNP2.js +70 -0
  56. package/dist/web/assets/journeyDiagram-SO5T7YLQ-RMFPNNqz.js +139 -0
  57. package/dist/web/assets/kanban-definition-LJHFXRCJ-BzpDs1K9.js +89 -0
  58. package/dist/web/assets/katex-GD7MH7QM-DBQvrix-.js +261 -0
  59. package/dist/web/assets/mindmap-definition-2EUWGEK5-Bk0O4roa.js +96 -0
  60. package/dist/web/assets/pieDiagram-3IATQBI2-DKU7kpgS.js +30 -0
  61. package/dist/web/assets/quadrantDiagram-E256RVCF-BY0TGWCS.js +7 -0
  62. package/dist/web/assets/requirementDiagram-M5DCFWZL-DLHOVTSv.js +84 -0
  63. package/dist/web/assets/sankeyDiagram-L3NBLAOT-DVMj5rX2.js +10 -0
  64. package/dist/web/assets/sequenceDiagram-ZOUHS735-CJC73bV-.js +157 -0
  65. package/dist/web/assets/stateDiagram-MLPALWAM-BCFyESls.js +1 -0
  66. package/dist/web/assets/stateDiagram-v2-B5LQ5ZB2-DahzzIca.js +1 -0
  67. package/dist/web/assets/timeline-definition-5SPVSISX-TRSDRgPw.js +120 -0
  68. package/dist/web/assets/vennDiagram-IE5QUKF5-DNy7HRBM.js +34 -0
  69. package/dist/web/assets/wardley-RL74JXVD-BCRCBASE-B-eZEzf9.js +161 -0
  70. package/dist/web/assets/wardleyDiagram-XU3VSMPF-BP-r1xzR.js +20 -0
  71. package/dist/web/assets/xychartDiagram-ZHJ5623Y-Dr9r7a35.js +7 -0
  72. package/dist/web/codragraph-logo-512.png +0 -0
  73. package/dist/web/codragraph-logo.png +0 -0
  74. package/dist/web/favicon.png +0 -0
  75. package/dist/web/index.html +36 -0
  76. package/hooks/claude/codragraph-hook.cjs +24 -9
  77. package/hooks/claude/pre-tool-use.sh +6 -1
  78. package/package.json +3 -1
  79. package/scripts/build.js +62 -4
  80. package/scripts/patch-tree-sitter-swift.cjs +0 -1
  81. package/skills/codragraph-cli.md +1 -1
  82. package/vendor/leiden/index.cjs +272 -285
  83. package/vendor/leiden/utils.cjs +264 -274
  84. package/dist/_shared/lbug/schema-constants.d.ts +0 -16
  85. package/dist/_shared/lbug/schema-constants.d.ts.map +0 -1
  86. package/dist/_shared/lbug/schema-constants.js +0 -67
  87. package/dist/_shared/lbug/schema-constants.js.map +0 -1
  88. package/dist/core/graphstore/lbug-row-source.d.ts +0 -19
  89. package/dist/core/graphstore/lbug-row-source.js +0 -141
  90. package/dist/core/lbug/content-read.d.ts +0 -46
  91. package/dist/core/lbug/content-read.js +0 -64
  92. package/dist/core/lbug/csv-generator.d.ts +0 -29
  93. package/dist/core/lbug/csv-generator.js +0 -492
  94. package/dist/core/lbug/lbug-adapter.d.ts +0 -176
  95. package/dist/core/lbug/lbug-adapter.js +0 -1320
  96. package/dist/core/lbug/pool-adapter.d.ts +0 -93
  97. package/dist/core/lbug/pool-adapter.js +0 -550
  98. package/dist/core/lbug/schema.d.ts +0 -62
  99. package/dist/core/lbug/schema.js +0 -502
  100. package/dist/mcp/core/lbug-adapter.d.ts +0 -5
  101. package/dist/mcp/core/lbug-adapter.js +0 -5
@@ -0,0 +1 @@
1
+ import{m}from"./index-BgeqpYgd.js";function r(t,c){var a,o,l;t.accDescr&&((a=c.setAccDescription)==null||a.call(c,t.accDescr)),t.accTitle&&((o=c.setAccTitle)==null||o.call(c,t.accTitle)),t.title&&((l=c.setDiagramTitle)==null||l.call(c,t.title))}m(r,"populateCommonDb");export{r as c};
@@ -0,0 +1,13 @@
1
+ import{aR as E,aS as rt,aT as qe,aU as X,aV as p,aW as D,aX as M,aY as at,aZ as P,a_ as ee,a$ as tt,b0 as ut,b1 as F,b2 as it,b3 as U,b4 as Q,b5 as q,b6 as ot,b7 as Ne,b8 as N,b9 as R,ba as $,bb as ft,bc as A,bd as ue,be as ct,bf as Ve,bg as Te,bh as vt,bi as ze,bj as we,bk as st,bl as lt,bm as bt,bn as Z,bo as B,bp as ne,m as u,bq as ht,br as Ke,bs as Le,bt as pt,bu as gt}from"./index-BgeqpYgd.js";function Ge(e){return E(e)?rt(e):qe(e)}u(Ge,"keys");var S=Ge;function He(e,n){for(var r=-1,a=e==null?0:e.length;++r<a&&n(e[r],r,e)!==!1;);return e}u(He,"arrayEach");var Xe=He;function Ze(e,n){return e&&q(n,S(n),e)}u(Ze,"baseAssign");var yt=Ze;function Je(e,n){return e&&q(n,U(n),e)}u(Je,"baseAssignIn");var dt=Je;function We(e,n){for(var r=-1,a=e==null?0:e.length,t=0,i=[];++r<a;){var o=e[r];n(o,r,e)&&(i[t++]=o)}return i}u(We,"arrayFilter");var ie=We;function Qe(){return[]}u(Qe,"stubArray");var Ye=Qe,mt=Object.prototype,jt=mt.propertyIsEnumerable,Ae=Object.getOwnPropertySymbols,Ot=Ae?function(e){return e==null?[]:(e=Object(e),ie(Ae(e),function(n){return jt.call(e,n)}))}:Ye,oe=Ot;function en(e,n){return q(e,oe(e),n)}u(en,"copySymbols");var wt=en;function nn(e,n){for(var r=-1,a=n.length,t=e.length;++r<a;)e[t+r]=n[r];return e}u(nn,"arrayPush");var fe=nn,At=Object.getOwnPropertySymbols,St=At?function(e){for(var n=[];e;)fe(n,oe(e)),e=ft(e);return n}:Ye,rn=St;function an(e,n){return q(e,rn(e),n)}u(an,"copySymbolsIn");var It=an;function tn(e,n,r){var a=n(e);return p(e)?a:fe(a,r(e))}u(tn,"baseGetAllKeys");var un=tn;function on(e){return un(e,S,oe)}u(on,"getAllKeys");var re=on;function fn(e){return un(e,U,rn)}u(fn,"getAllKeysIn");var cn=fn,$t=Object.prototype,_t=$t.hasOwnProperty;function vn(e){var n=e.length,r=new e.constructor(n);return n&&typeof e[0]=="string"&&_t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}u(vn,"initCloneArray");var Et=vn;function sn(e,n){var r=n?Ne(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}u(sn,"cloneDataView");var xt=sn,Mt=/\w*$/;function ln(e){var n=new e.constructor(e.source,Mt.exec(e));return n.lastIndex=e.lastIndex,n}u(ln,"cloneRegExp");var Pt=ln,Se=A?A.prototype:void 0,Ie=Se?Se.valueOf:void 0;function bn(e){return Ie?Object(Ie.call(e)):{}}u(bn,"cloneSymbol");var Rt=bn,Bt="[object Boolean]",Ft="[object Date]",kt="[object Map]",Ct="[object Number]",Dt="[object RegExp]",Ut="[object Set]",qt="[object String]",Nt="[object Symbol]",Vt="[object ArrayBuffer]",Tt="[object DataView]",zt="[object Float32Array]",Kt="[object Float64Array]",Lt="[object Int8Array]",Gt="[object Int16Array]",Ht="[object Int32Array]",Xt="[object Uint8Array]",Zt="[object Uint8ClampedArray]",Jt="[object Uint16Array]",Wt="[object Uint32Array]";function hn(e,n,r){var a=e.constructor;switch(n){case Vt:return Ne(e);case Bt:case Ft:return new a(+e);case Tt:return xt(e,r);case zt:case Kt:case Lt:case Gt:case Ht:case Xt:case Zt:case Jt:case Wt:return ot(e,r);case kt:return new a;case Ct:case qt:return new a(e);case Dt:return Pt(e);case Ut:return new a;case Nt:return Rt(e)}}u(hn,"initCloneByTag");var Qt=hn,Yt="[object Map]";function pn(e){return $(e)&&P(e)==Yt}u(pn,"baseIsMap");var eu=pn,$e=R&&R.isMap,nu=$e?N($e):eu,ru=nu,au="[object Set]";function gn(e){return $(e)&&P(e)==au}u(gn,"baseIsSet");var tu=gn,_e=R&&R.isSet,uu=_e?N(_e):tu,iu=uu,ou=1,fu=2,cu=4,yn="[object Arguments]",vu="[object Array]",su="[object Boolean]",lu="[object Date]",bu="[object Error]",dn="[object Function]",hu="[object GeneratorFunction]",pu="[object Map]",gu="[object Number]",mn="[object Object]",yu="[object RegExp]",du="[object Set]",mu="[object String]",ju="[object Symbol]",Ou="[object WeakMap]",wu="[object ArrayBuffer]",Au="[object DataView]",Su="[object Float32Array]",Iu="[object Float64Array]",$u="[object Int8Array]",_u="[object Int16Array]",Eu="[object Int32Array]",xu="[object Uint8Array]",Mu="[object Uint8ClampedArray]",Pu="[object Uint16Array]",Ru="[object Uint32Array]",h={};h[yn]=h[vu]=h[wu]=h[Au]=h[su]=h[lu]=h[Su]=h[Iu]=h[$u]=h[_u]=h[Eu]=h[pu]=h[gu]=h[mn]=h[yu]=h[du]=h[mu]=h[ju]=h[xu]=h[Mu]=h[Pu]=h[Ru]=!0;h[bu]=h[dn]=h[Ou]=!1;function k(e,n,r,a,t,i){var o,f=n&ou,c=n&fu,v=n&cu;if(r&&(o=t?r(e,a,t,i):r(e)),o!==void 0)return o;if(!M(e))return e;var s=p(e);if(s){if(o=Et(e),!f)return at(e,o)}else{var l=P(e),b=l==dn||l==hu;if(ee(e))return tt(e,f);if(l==mn||l==yn||b&&!t){if(o=c||b?{}:ut(e),!f)return c?It(e,dt(o,e)):wt(e,yt(o,e))}else{if(!h[l])return t?e:{};o=Qt(e,l,f)}}i||(i=new F);var O=i.get(e);if(O)return O;i.set(e,o),iu(e)?e.forEach(function(g){o.add(k(g,n,r,g,e,i))}):ru(e)&&e.forEach(function(g,y){o.set(y,k(g,n,r,y,e,i))});var d=v?c?cn:re:c?U:S,m=s?void 0:d(e);return Xe(m||e,function(g,y){m&&(y=g,g=e[y]),Z(o,y,k(g,n,r,y,e,i))}),o}u(k,"baseClone");var jn=k,Bu=4;function On(e){return jn(e,Bu)}u(On,"clone");var xf=On,wn=Object.prototype,Fu=wn.hasOwnProperty,ku=X(function(e,n){e=Object(e);var r=-1,a=n.length,t=a>2?n[2]:void 0;for(t&&B(n[0],n[1],t)&&(a=1);++r<a;)for(var i=n[r],o=U(i),f=-1,c=o.length;++f<c;){var v=o[f],s=e[v];(s===void 0||ze(s,wn[v])&&!Fu.call(e,v))&&(e[v]=i[v])}return e}),Mf=ku;function An(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}u(An,"last");var Pf=An;function Sn(e,n){return e&&Ke(e,n,S)}u(Sn,"baseForOwn");var ce=Sn;function In(e,n){return function(r,a){if(r==null)return r;if(!E(r))return e(r,a);for(var t=r.length,i=n?t:-1,o=Object(r);(n?i--:++i<t)&&a(o[i],i,o)!==!1;);return r}}u(In,"createBaseEach");var Cu=In,Du=Cu(ce),x=Du;function $n(e){return typeof e=="function"?e:D}u($n,"castFunction");var ve=$n;function _n(e,n){var r=p(e)?Xe:x;return r(e,ve(n))}u(_n,"forEach");var Rf=_n;function En(e,n){var r=[];return x(e,function(a,t,i){n(a,t,i)&&r.push(a)}),r}u(En,"baseFilter");var xn=En,Uu="__lodash_hash_undefined__";function Mn(e){return this.__data__.set(e,Uu),this}u(Mn,"setCacheAdd");var qu=Mn;function Pn(e){return this.__data__.has(e)}u(Pn,"setCacheHas");var Nu=Pn;function C(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new it;++n<r;)this.add(e[n])}u(C,"SetCache");C.prototype.add=C.prototype.push=qu;C.prototype.has=Nu;var se=C;function Rn(e,n){for(var r=-1,a=e==null?0:e.length;++r<a;)if(n(e[r],r,e))return!0;return!1}u(Rn,"arraySome");var Bn=Rn;function Fn(e,n){return e.has(n)}u(Fn,"cacheHas");var le=Fn,Vu=1,Tu=2;function kn(e,n,r,a,t,i){var o=r&Vu,f=e.length,c=n.length;if(f!=c&&!(o&&c>f))return!1;var v=i.get(e),s=i.get(n);if(v&&s)return v==n&&s==e;var l=-1,b=!0,O=r&Tu?new se:void 0;for(i.set(e,n),i.set(n,e);++l<f;){var d=e[l],m=n[l];if(a)var g=o?a(m,d,l,n,e,i):a(d,m,l,e,n,i);if(g!==void 0){if(g)continue;b=!1;break}if(O){if(!Bn(n,function(y,I){if(!le(O,I)&&(d===y||t(d,y,r,a,i)))return O.push(I)})){b=!1;break}}else if(!(d===m||t(d,m,r,a,i))){b=!1;break}}return i.delete(e),i.delete(n),b}u(kn,"equalArrays");var Cn=kn;function Dn(e){var n=-1,r=Array(e.size);return e.forEach(function(a,t){r[++n]=[t,a]}),r}u(Dn,"mapToArray");var zu=Dn;function Un(e){var n=-1,r=Array(e.size);return e.forEach(function(a){r[++n]=a}),r}u(Un,"setToArray");var be=Un,Ku=1,Lu=2,Gu="[object Boolean]",Hu="[object Date]",Xu="[object Error]",Zu="[object Map]",Ju="[object Number]",Wu="[object RegExp]",Qu="[object Set]",Yu="[object String]",ei="[object Symbol]",ni="[object ArrayBuffer]",ri="[object DataView]",Ee=A?A.prototype:void 0,Y=Ee?Ee.valueOf:void 0;function qn(e,n,r,a,t,i,o){switch(r){case ri:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case ni:return!(e.byteLength!=n.byteLength||!i(new we(e),new we(n)));case Gu:case Hu:case Ju:return ze(+e,+n);case Xu:return e.name==n.name&&e.message==n.message;case Wu:case Yu:return e==n+"";case Zu:var f=zu;case Qu:var c=a&Ku;if(f||(f=be),e.size!=n.size&&!c)return!1;var v=o.get(e);if(v)return v==n;a|=Lu,o.set(e,n);var s=Cn(f(e),f(n),a,t,i,o);return o.delete(e),s;case ei:if(Y)return Y.call(e)==Y.call(n)}return!1}u(qn,"equalByTag");var ai=qn,ti=1,ui=Object.prototype,ii=ui.hasOwnProperty;function Nn(e,n,r,a,t,i){var o=r&ti,f=re(e),c=f.length,v=re(n),s=v.length;if(c!=s&&!o)return!1;for(var l=c;l--;){var b=f[l];if(!(o?b in n:ii.call(n,b)))return!1}var O=i.get(e),d=i.get(n);if(O&&d)return O==n&&d==e;var m=!0;i.set(e,n),i.set(n,e);for(var g=o;++l<c;){b=f[l];var y=e[b],I=n[b];if(a)var Oe=o?a(I,y,b,n,e,i):a(y,I,b,e,n,i);if(!(Oe===void 0?y===I||t(y,I,r,a,i):Oe)){m=!1;break}g||(g=b=="constructor")}if(m&&!g){var K=e.constructor,L=n.constructor;K!=L&&"constructor"in e&&"constructor"in n&&!(typeof K=="function"&&K instanceof K&&typeof L=="function"&&L instanceof L)&&(m=!1)}return i.delete(e),i.delete(n),m}u(Nn,"equalObjects");var oi=Nn,fi=1,xe="[object Arguments]",Me="[object Array]",G="[object Object]",ci=Object.prototype,Pe=ci.hasOwnProperty;function Vn(e,n,r,a,t,i){var o=p(e),f=p(n),c=o?Me:P(e),v=f?Me:P(n);c=c==xe?G:c,v=v==xe?G:v;var s=c==G,l=v==G,b=c==v;if(b&&ee(e)){if(!ee(n))return!1;o=!0,s=!1}if(b&&!s)return i||(i=new F),o||vt(e)?Cn(e,n,r,a,t,i):ai(e,n,c,r,a,t,i);if(!(r&fi)){var O=s&&Pe.call(e,"__wrapped__"),d=l&&Pe.call(n,"__wrapped__");if(O||d){var m=O?e.value():e,g=d?n.value():n;return i||(i=new F),t(m,g,r,a,i)}}return b?(i||(i=new F),oi(e,n,r,a,t,i)):!1}u(Vn,"baseIsEqualDeep");var vi=Vn;function he(e,n,r,a,t){return e===n?!0:e==null||n==null||!$(e)&&!$(n)?e!==e&&n!==n:vi(e,n,r,a,he,t)}u(he,"baseIsEqual");var Tn=he,si=1,li=2;function zn(e,n,r,a){var t=r.length,i=t,o=!a;if(e==null)return!i;for(e=Object(e);t--;){var f=r[t];if(o&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++t<i;){f=r[t];var c=f[0],v=e[c],s=f[1];if(o&&f[2]){if(v===void 0&&!(c in e))return!1}else{var l=new F;if(a)var b=a(v,s,c,e,n,l);if(!(b===void 0?Tn(s,v,si|li,a,l):b))return!1}}return!0}u(zn,"baseIsMatch");var bi=zn;function Kn(e){return e===e&&!M(e)}u(Kn,"isStrictComparable");var Ln=Kn;function Gn(e){for(var n=S(e),r=n.length;r--;){var a=n[r],t=e[a];n[r]=[a,t,Ln(t)]}return n}u(Gn,"getMatchData");var hi=Gn;function Hn(e,n){return function(r){return r==null?!1:r[e]===n&&(n!==void 0||e in Object(r))}}u(Hn,"matchesStrictComparable");var Xn=Hn;function Zn(e){var n=hi(e);return n.length==1&&n[0][2]?Xn(n[0][0],n[0][1]):function(r){return r===e||bi(r,e,n)}}u(Zn,"baseMatches");var pi=Zn,gi="[object Symbol]";function Jn(e){return typeof e=="symbol"||$(e)&&ue(e)==gi}u(Jn,"isSymbol");var _=Jn,yi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,di=/^\w*$/;function Wn(e,n){if(p(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||_(e)?!0:di.test(e)||!yi.test(e)||n!=null&&e in Object(n)}u(Wn,"isKey");var pe=Wn,mi=500;function Qn(e){var n=st(e,function(a){return r.size===mi&&r.clear(),a}),r=n.cache;return n}u(Qn,"memoizeCapped");var ji=Qn,Oi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wi=/\\(\\)?/g,Ai=ji(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(Oi,function(r,a,t,i){n.push(t?i.replace(wi,"$1"):a||r)}),n}),Si=Ai;function Yn(e,n){for(var r=-1,a=e==null?0:e.length,t=Array(a);++r<a;)t[r]=n(e[r],r,e);return t}u(Yn,"arrayMap");var w=Yn,Re=A?A.prototype:void 0,Be=Re?Re.toString:void 0;function ge(e){if(typeof e=="string")return e;if(p(e))return w(e,ge)+"";if(_(e))return Be?Be.call(e):"";var n=e+"";return n=="0"&&1/e==-1/0?"-0":n}u(ge,"baseToString");var Ii=ge;function er(e){return e==null?"":Ii(e)}u(er,"toString");var nr=er;function rr(e,n){return p(e)?e:pe(e,n)?[e]:Si(nr(e))}u(rr,"castPath");var J=rr;function ar(e){if(typeof e=="string"||_(e))return e;var n=e+"";return n=="0"&&1/e==-1/0?"-0":n}u(ar,"toKey");var V=ar;function tr(e,n){n=J(n,e);for(var r=0,a=n.length;e!=null&&r<a;)e=e[V(n[r++])];return r&&r==a?e:void 0}u(tr,"baseGet");var W=tr;function ur(e,n,r){var a=e==null?void 0:W(e,n);return a===void 0?r:a}u(ur,"get");var $i=ur;function ir(e,n){return e!=null&&n in Object(e)}u(ir,"baseHasIn");var _i=ir;function or(e,n,r){n=J(n,e);for(var a=-1,t=n.length,i=!1;++a<t;){var o=V(n[a]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++a!=t?i:(t=e==null?0:e.length,!!t&&ct(t)&&Ve(o,t)&&(p(e)||Te(e)))}u(or,"hasPath");var fr=or;function cr(e,n){return e!=null&&fr(e,n,_i)}u(cr,"hasIn");var vr=cr,Ei=1,xi=2;function sr(e,n){return pe(e)&&Ln(n)?Xn(V(e),n):function(r){var a=$i(r,e);return a===void 0&&a===n?vr(r,e):Tn(n,a,Ei|xi)}}u(sr,"baseMatchesProperty");var Mi=sr;function lr(e){return function(n){return n==null?void 0:n[e]}}u(lr,"baseProperty");var br=lr;function hr(e){return function(n){return W(n,e)}}u(hr,"basePropertyDeep");var Pi=hr;function pr(e){return pe(e)?br(V(e)):Pi(e)}u(pr,"property");var Ri=pr;function gr(e){return typeof e=="function"?e:e==null?D:typeof e=="object"?p(e)?Mi(e[0],e[1]):pi(e):Ri(e)}u(gr,"baseIteratee");var j=gr;function yr(e,n){var r=p(e)?ie:xn;return r(e,j(n))}u(yr,"filter");var Bf=yr;function dr(e,n){var r=-1,a=E(e)?Array(e.length):[];return x(e,function(t,i,o){a[++r]=n(t,i,o)}),a}u(dr,"baseMap");var mr=dr;function jr(e,n){var r=p(e)?w:mr;return r(e,j(n))}u(jr,"map");var Bi=jr;function Or(e,n){return w(n,function(r){return e[r]})}u(Or,"baseValues");var Fi=Or;function wr(e){return e==null?[]:Fi(e,S(e))}u(wr,"values");var ki=wr;function Ar(e){return e===void 0}u(Ar,"isUndefined");var Ff=Ar;function Sr(e,n){var r={};return n=j(n),ce(e,function(a,t,i){Le(r,t,n(a,t,i))}),r}u(Sr,"mapValues");var kf=Sr;function Ir(e,n,r){for(var a=-1,t=e.length;++a<t;){var i=e[a],o=n(i);if(o!=null&&(f===void 0?o===o&&!_(o):r(o,f)))var f=o,c=i}return c}u(Ir,"baseExtremum");var ye=Ir;function $r(e,n){return e>n}u($r,"baseGt");var Ci=$r;function _r(e){return e&&e.length?ye(e,D,Ci):void 0}u(_r,"max");var Cf=_r;function Er(e,n,r,a){if(!M(e))return e;n=J(n,e);for(var t=-1,i=n.length,o=i-1,f=e;f!=null&&++t<i;){var c=V(n[t]),v=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(t!=o){var s=f[c];v=a?a(s,c,f):void 0,v===void 0&&(v=M(s)?s:Ve(n[t+1])?[]:{})}Z(f,c,v),f=f[c]}return e}u(Er,"baseSet");var Di=Er;function xr(e,n,r){for(var a=-1,t=n.length,i={};++a<t;){var o=n[a],f=W(e,o);r(f,o)&&Di(i,J(o,e),f)}return i}u(xr,"basePickBy");var Mr=xr;function Pr(e,n){return Mr(e,n,function(r,a){return vr(e,a)})}u(Pr,"basePick");var Ui=Pr,Fe=A?A.isConcatSpreadable:void 0;function Rr(e){return p(e)||Te(e)||!!(Fe&&e&&e[Fe])}u(Rr,"isFlattenable");var qi=Rr;function de(e,n,r,a,t){var i=-1,o=e.length;for(r||(r=qi),t||(t=[]);++i<o;){var f=e[i];n>0&&r(f)?n>1?de(f,n-1,r,a,t):fe(t,f):a||(t[t.length]=f)}return t}u(de,"baseFlatten");var T=de;function Br(e){var n=e==null?0:e.length;return n?T(e,1):[]}u(Br,"flatten");var Ni=Br;function Fr(e){return pt(gt(e,void 0,Ni),e+"")}u(Fr,"flatRest");var Vi=Fr,Ti=Vi(function(e,n){return e==null?{}:Ui(e,n)}),Df=Ti;function kr(e,n,r,a){var t=-1,i=e==null?0:e.length;for(a&&i&&(r=e[++t]);++t<i;)r=n(r,e[t],t,e);return r}u(kr,"arrayReduce");var zi=kr;function Cr(e,n,r,a,t){return t(e,function(i,o,f){r=a?(a=!1,i):n(r,i,o,f)}),r}u(Cr,"baseReduce");var Ki=Cr;function Dr(e,n,r){var a=p(e)?zi:Ki,t=arguments.length<3;return a(e,j(n),r,t,x)}u(Dr,"reduce");var Uf=Dr;function Ur(e,n,r,a){for(var t=e.length,i=r+(a?1:-1);a?i--:++i<t;)if(n(e[i],i,e))return i;return-1}u(Ur,"baseFindIndex");var qr=Ur;function Nr(e){return e!==e}u(Nr,"baseIsNaN");var Li=Nr;function Vr(e,n,r){for(var a=r-1,t=e.length;++a<t;)if(e[a]===n)return a;return-1}u(Vr,"strictIndexOf");var Gi=Vr;function Tr(e,n,r){return n===n?Gi(e,n,r):qr(e,Li,r)}u(Tr,"baseIndexOf");var me=Tr;function zr(e,n){var r=e==null?0:e.length;return!!r&&me(e,n,0)>-1}u(zr,"arrayIncludes");var Kr=zr;function Lr(e,n,r){for(var a=-1,t=e==null?0:e.length;++a<t;)if(r(n,e[a]))return!0;return!1}u(Lr,"arrayIncludesWith");var Gr=Lr;function Hr(){}u(Hr,"noop");var Hi=Hr,Xi=1/0,Zi=Q&&1/be(new Q([,-0]))[1]==Xi?function(e){return new Q(e)}:Hi,Ji=Zi,Wi=200;function Xr(e,n,r){var a=-1,t=Kr,i=e.length,o=!0,f=[],c=f;if(r)o=!1,t=Gr;else if(i>=Wi){var v=n?null:Ji(e);if(v)return be(v);o=!1,t=le,c=new se}else c=n?[]:f;e:for(;++a<i;){var s=e[a],l=n?n(s):s;if(s=r||s!==0?s:0,o&&l===l){for(var b=c.length;b--;)if(c[b]===l)continue e;n&&c.push(l),f.push(s)}else t(c,l,r)||(c!==f&&c.push(l),f.push(s))}return f}u(Xr,"baseUniq");var je=Xr,Qi=X(function(e){return je(T(e,1,ne,!0))}),qf=Qi,Yi=/\s/;function Zr(e){for(var n=e.length;n--&&Yi.test(e.charAt(n)););return n}u(Zr,"trimmedEndIndex");var eo=Zr,no=/^\s+/;function Jr(e){return e&&e.slice(0,eo(e)+1).replace(no,"")}u(Jr,"baseTrim");var ro=Jr,ke=NaN,ao=/^[-+]0x[0-9a-f]+$/i,to=/^0b[01]+$/i,uo=/^0o[0-7]+$/i,io=parseInt;function Wr(e){if(typeof e=="number")return e;if(_(e))return ke;if(M(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=M(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=ro(e);var r=to.test(e);return r||uo.test(e)?io(e.slice(2),r?2:8):ao.test(e)?ke:+e}u(Wr,"toNumber");var oo=Wr,Ce=1/0,fo=17976931348623157e292;function Qr(e){if(!e)return e===0?e:0;if(e=oo(e),e===Ce||e===-Ce){var n=e<0?-1:1;return n*fo}return e===e?e:0}u(Qr,"toFinite");var H=Qr;function Yr(e){var n=H(e),r=n%1;return n===n?r?n-r:n:0}u(Yr,"toInteger");var z=Yr,co=Object.prototype,vo=co.hasOwnProperty,so=lt(function(e,n){if(bt(n)||E(n)){q(n,S(n),e);return}for(var r in n)vo.call(n,r)&&Z(e,r,n[r])}),Nf=so;function ea(e,n,r){var a=-1,t=e.length;n<0&&(n=-n>t?0:t+n),r=r>t?t:r,r<0&&(r+=t),t=n>r?0:r-n>>>0,n>>>=0;for(var i=Array(t);++a<t;)i[a]=e[a+n];return i}u(ea,"baseSlice");var na=ea,lo="\\ud800-\\udfff",bo="\\u0300-\\u036f",ho="\\ufe20-\\ufe2f",po="\\u20d0-\\u20ff",go=bo+ho+po,yo="\\ufe0e\\ufe0f",mo="\\u200d",jo=RegExp("["+mo+lo+go+yo+"]");function ra(e){return jo.test(e)}u(ra,"hasUnicode");var Oo=ra,wo=1,Ao=4;function aa(e){return jn(e,wo|Ao)}u(aa,"cloneDeep");var Vf=aa;function ta(e){for(var n=-1,r=e==null?0:e.length,a=0,t=[];++n<r;){var i=e[n];i&&(t[a++]=i)}return t}u(ta,"compact");var Tf=ta;function ua(e,n,r,a){for(var t=-1,i=e==null?0:e.length;++t<i;){var o=e[t];n(a,o,r(o),e)}return a}u(ua,"arrayAggregator");var So=ua;function ia(e,n,r,a){return x(e,function(t,i,o){n(a,t,r(t),o)}),a}u(ia,"baseAggregator");var Io=ia;function oa(e,n){return function(r,a){var t=p(r)?So:Io,i=n?n():{};return t(r,e,j(a),i)}}u(oa,"createAggregator");var $o=oa,_o=u(function(){return ht.Date.now()},"now"),zf=_o,Eo=200;function fa(e,n,r,a){var t=-1,i=Kr,o=!0,f=e.length,c=[],v=n.length;if(!f)return c;r&&(n=w(n,N(r))),a?(i=Gr,o=!1):n.length>=Eo&&(i=le,o=!1,n=new se(n));e:for(;++t<f;){var s=e[t],l=r==null?s:r(s);if(s=a||s!==0?s:0,o&&l===l){for(var b=v;b--;)if(n[b]===l)continue e;c.push(s)}else i(n,l,a)||c.push(s)}return c}u(fa,"baseDifference");var xo=fa,Mo=X(function(e,n){return ne(e)?xo(e,T(n,1,ne,!0)):[]}),Kf=Mo;function ca(e,n,r){var a=e==null?0:e.length;return a?(n=r||n===void 0?1:z(n),na(e,n<0?0:n,a)):[]}u(ca,"drop");var Lf=ca;function va(e,n,r){var a=e==null?0:e.length;return a?(n=r||n===void 0?1:z(n),n=a-n,na(e,0,n<0?0:n)):[]}u(va,"dropRight");var Gf=va;function sa(e,n){for(var r=-1,a=e==null?0:e.length;++r<a;)if(!n(e[r],r,e))return!1;return!0}u(sa,"arrayEvery");var Po=sa;function la(e,n){var r=!0;return x(e,function(a,t,i){return r=!!n(a,t,i),r}),r}u(la,"baseEvery");var Ro=la;function ba(e,n,r){var a=p(e)?Po:Ro;return r&&B(e,n,r)&&(n=void 0),a(e,j(n))}u(ba,"every");var Hf=ba;function ha(e){return function(n,r,a){var t=Object(n);if(!E(n)){var i=j(r);n=S(n),r=u(function(f){return i(t[f],f,t)},"predicate")}var o=e(n,r,a);return o>-1?t[i?n[o]:o]:void 0}}u(ha,"createFind");var Bo=ha,Fo=Math.max;function pa(e,n,r){var a=e==null?0:e.length;if(!a)return-1;var t=r==null?0:z(r);return t<0&&(t=Fo(a+t,0)),qr(e,j(n),t)}u(pa,"findIndex");var ko=pa,Co=Bo(ko),Xf=Co;function ga(e){return e&&e.length?e[0]:void 0}u(ga,"head");var Zf=ga;function ya(e,n){return T(Bi(e,n),1)}u(ya,"flatMap");var Jf=ya;function da(e,n){return e==null?e:Ke(e,ve(n),U)}u(da,"forIn");var Wf=da;function ma(e,n){return e&&ce(e,ve(n))}u(ma,"forOwn");var Qf=ma,Do=Object.prototype,Uo=Do.hasOwnProperty,qo=$o(function(e,n,r){Uo.call(e,r)?e[r].push(n):Le(e,r,[n])}),Yf=qo,No=Object.prototype,Vo=No.hasOwnProperty;function ja(e,n){return e!=null&&Vo.call(e,n)}u(ja,"baseHas");var To=ja;function Oa(e,n){return e!=null&&fr(e,n,To)}u(Oa,"has");var ec=Oa,zo="[object String]";function wa(e){return typeof e=="string"||!p(e)&&$(e)&&ue(e)==zo}u(wa,"isString");var Aa=wa,Ko=Math.max;function Sa(e,n,r,a){e=E(e)?e:ki(e),r=r&&!a?z(r):0;var t=e.length;return r<0&&(r=Ko(t+r,0)),Aa(e)?r<=t&&e.indexOf(n,r)>-1:!!t&&me(e,n,r)>-1}u(Sa,"includes");var nc=Sa,Lo=Math.max;function Ia(e,n,r){var a=e==null?0:e.length;if(!a)return-1;var t=r==null?0:z(r);return t<0&&(t=Lo(a+t,0)),me(e,n,t)}u(Ia,"indexOf");var rc=Ia,Go="[object RegExp]";function $a(e){return $(e)&&ue(e)==Go}u($a,"baseIsRegExp");var Ho=$a,De=R&&R.isRegExp,Xo=De?N(De):Ho,ac=Xo;function _a(e,n){return e<n}u(_a,"baseLt");var Ea=_a;function xa(e){return e&&e.length?ye(e,D,Ea):void 0}u(xa,"min");var tc=xa;function Ma(e,n){return e&&e.length?ye(e,j(n),Ea):void 0}u(Ma,"minBy");var uc=Ma,Zo="Expected a function";function Pa(e){if(typeof e!="function")throw new TypeError(Zo);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}u(Pa,"negate");var Jo=Pa;function Ra(e,n){if(e==null)return{};var r=w(cn(e),function(a){return[a]});return n=j(n),Mr(e,r,function(a,t){return n(a,t[0])})}u(Ra,"pickBy");var ic=Ra;function Ba(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}u(Ba,"baseSortBy");var Wo=Ba;function Fa(e,n){if(e!==n){var r=e!==void 0,a=e===null,t=e===e,i=_(e),o=n!==void 0,f=n===null,c=n===n,v=_(n);if(!f&&!v&&!i&&e>n||i&&o&&c&&!f&&!v||a&&o&&c||!r&&c||!t)return 1;if(!a&&!i&&!v&&e<n||v&&r&&t&&!a&&!i||f&&r&&t||!o&&t||!c)return-1}return 0}u(Fa,"compareAscending");var Qo=Fa;function ka(e,n,r){for(var a=-1,t=e.criteria,i=n.criteria,o=t.length,f=r.length;++a<o;){var c=Qo(t[a],i[a]);if(c){if(a>=f)return c;var v=r[a];return c*(v=="desc"?-1:1)}}return e.index-n.index}u(ka,"compareMultiple");var Yo=ka;function Ca(e,n,r){n.length?n=w(n,function(i){return p(i)?function(o){return W(o,i.length===1?i[0]:i)}:i}):n=[D];var a=-1;n=w(n,N(j));var t=mr(e,function(i,o,f){var c=w(n,function(v){return v(i)});return{criteria:c,index:++a,value:i}});return Wo(t,function(i,o){return Yo(i,o,r)})}u(Ca,"baseOrderBy");var ef=Ca,nf=br("length"),rf=nf,Da="\\ud800-\\udfff",af="\\u0300-\\u036f",tf="\\ufe20-\\ufe2f",uf="\\u20d0-\\u20ff",of=af+tf+uf,ff="\\ufe0e\\ufe0f",cf="["+Da+"]",ae="["+of+"]",te="\\ud83c[\\udffb-\\udfff]",vf="(?:"+ae+"|"+te+")",Ua="[^"+Da+"]",qa="(?:\\ud83c[\\udde6-\\uddff]){2}",Na="[\\ud800-\\udbff][\\udc00-\\udfff]",sf="\\u200d",Va=vf+"?",Ta="["+ff+"]?",lf="(?:"+sf+"(?:"+[Ua,qa,Na].join("|")+")"+Ta+Va+")*",bf=Ta+Va+lf,hf="(?:"+[Ua+ae+"?",ae,qa,Na,cf].join("|")+")",Ue=RegExp(te+"(?="+te+")|"+hf+bf,"g");function za(e){for(var n=Ue.lastIndex=0;Ue.test(e);)++n;return n}u(za,"unicodeSize");var pf=za;function Ka(e){return Oo(e)?pf(e):rf(e)}u(Ka,"stringSize");var gf=Ka,yf=Math.ceil,df=Math.max;function La(e,n,r,a){for(var t=-1,i=df(yf((n-e)/(r||1)),0),o=Array(i);i--;)o[a?i:++t]=e,e+=r;return o}u(La,"baseRange");var mf=La;function Ga(e){return function(n,r,a){return a&&typeof a!="number"&&B(n,r,a)&&(r=a=void 0),n=H(n),r===void 0?(r=n,n=0):r=H(r),a=a===void 0?n<r?1:-1:H(a),mf(n,r,a,e)}}u(Ga,"createRange");var jf=Ga,Of=jf(),oc=Of;function Ha(e,n){var r=p(e)?ie:xn;return r(e,Jo(j(n)))}u(Ha,"reject");var fc=Ha,wf="[object Map]",Af="[object Set]";function Xa(e){if(e==null)return 0;if(E(e))return Aa(e)?gf(e):e.length;var n=P(e);return n==wf||n==Af?e.size:qe(e).length}u(Xa,"size");var cc=Xa;function Za(e,n){var r;return x(e,function(a,t,i){return r=n(a,t,i),!r}),!!r}u(Za,"baseSome");var Sf=Za;function Ja(e,n,r){var a=p(e)?Bn:Sf;return r&&B(e,n,r)&&(n=void 0),a(e,j(n))}u(Ja,"some");var vc=Ja,If=X(function(e,n){if(e==null)return[];var r=n.length;return r>1&&B(e,n[0],n[1])?n=[]:r>2&&B(n[0],n[1],n[2])&&(n=[n[0]]),ef(e,T(n,1),[])}),sc=If;function Wa(e){return e&&e.length?je(e):[]}u(Wa,"uniq");var lc=Wa;function Qa(e,n){return e&&e.length?je(e,j(n)):[]}u(Qa,"uniqBy");var bc=Qa,$f=0;function Ya(e){var n=++$f;return nr(e)+n}u(Ya,"uniqueId");var hc=Ya;function et(e,n,r){for(var a=-1,t=e.length,i=n.length,o={};++a<t;){var f=a<i?n[a]:void 0;r(o,e[a],f)}return o}u(et,"baseZipObject");var _f=et;function nt(e,n){return _f(e||[],n||[],Z)}u(nt,"zipObject");var pc=nt;/*! Bundled license information:
2
+
3
+ lodash-es/lodash.js:
4
+ (**
5
+ * @license
6
+ * Lodash (Custom Build) <https://lodash.com/>
7
+ * Build: `lodash modularize exports="es" -o ./`
8
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
9
+ * Released under MIT license <https://lodash.com/license>
10
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
11
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
12
+ *)
13
+ */export{Tf as A,nc as B,ac as C,Pf as D,Gf as E,lc as F,vc as G,rc as H,Bi as J,Xf as K,Lf as M,Mf as N,uc as O,Ni as Q,Uf as R,Df as T,Hf as U,Yf as V,ki as X,Rf as Z,xf as _,oc as a,Cf as b,zf as c,kf as d,Bf as e,ec as f,pc as g,Vf as h,Wf as i,Qf as j,S as k,hc as l,qf as m,sc as n,Nf as o,Hi as p,Zf as q,fc as r,Ff as s,cc as t,Aa as u,ic as v,bc as w,Kf as x,tc as y,Jf as z};
@@ -0,0 +1 @@
1
+ import{k as l,e as m,Z as a,s as c,m as N,X as b,R as P}from"./chunk-H3VCZNTA-Cx5XV_aC.js";import{m as d,bw as f,bx as w,by as y}from"./index-BgeqpYgd.js";var D="\0",u="\0",E="",p,j=(p=class{constructor(t={}){this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=f(void 0),this._defaultEdgeLabelFn=f(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[u]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return w(t)||(t=f(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return l(this._nodes)}sources(){var t=this;return m(this.nodes(),function(e){return y(t._in[e])})}sinks(){var t=this;return m(this.nodes(),function(e){return y(t._out[e])})}setNodes(t,e){var s=arguments,r=this;return a(t,function(i){s.length>1?r.setNode(i,e):r.setNode(i)}),this}setNode(t,e){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=u,this._children[t]={},this._children[u][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var e=d(s=>this.removeEdge(this._edgeObjs[s]),"removeEdge");delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],a(this.children(t),s=>{this.setParent(s)}),delete this._children[t]),a(l(this._in[t]),e),delete this._in[t],delete this._preds[t],a(l(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(c(e))e=u;else{e+="";for(var s=e;!c(s);s=this.parent(s))if(s===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if(e!==u)return e}}children(t){if(c(t)&&(t=u),this._isCompound){var e=this._children[t];if(e)return l(e)}else{if(t===u)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var e=this._preds[t];if(e)return l(e)}successors(t){var e=this._sucs[t];if(e)return l(e)}neighbors(t){var e=this.predecessors(t);if(e)return N(e,this.successors(t))}isLeaf(t){var e;return this.isDirected()?e=this.successors(t):e=this.neighbors(t),e.length===0}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var s=this;a(this._nodes,function(n,h){t(h)&&e.setNode(h,n)}),a(this._edgeObjs,function(n){e.hasNode(n.v)&&e.hasNode(n.w)&&e.setEdge(n,s.edge(n))});var r={};function i(n){var h=s.parent(n);return h===void 0||e.hasNode(h)?(r[n]=h,h):h in r?r[h]:i(h)}return d(i,"findParent"),this._isCompound&&a(e.nodes(),function(n){e.setParent(n,i(n))}),e}setDefaultEdgeLabel(t){return w(t)||(t=f(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return b(this._edgeObjs)}setPath(t,e){var s=this,r=arguments;return P(t,function(i,n){return r.length>1?s.setEdge(i,n,e):s.setEdge(i,n),n}),this}setEdge(){var t,e,s,r,i=!1,n=arguments[0];typeof n=="object"&&n!==null&&"v"in n?(t=n.v,e=n.w,s=n.name,arguments.length===2&&(r=arguments[1],i=!0)):(t=n,e=arguments[1],s=arguments[3],arguments.length>2&&(r=arguments[2],i=!0)),t=""+t,e=""+e,c(s)||(s=""+s);var h=g(this._isDirected,t,e,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,h))return i&&(this._edgeLabels[h]=r),this;if(!c(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[h]=i?r:this._defaultEdgeLabelFn(t,e,s);var _=L(this._isDirected,t,e,s);return t=_.v,e=_.w,Object.freeze(_),this._edgeObjs[h]=_,O(this._preds[e],t),O(this._sucs[t],e),this._in[e][h]=_,this._out[t][h]=_,this._edgeCount++,this}edge(t,e,s){var r=arguments.length===1?v(this._isDirected,arguments[0]):g(this._isDirected,t,e,s);return this._edgeLabels[r]}hasEdge(t,e,s){var r=arguments.length===1?v(this._isDirected,arguments[0]):g(this._isDirected,t,e,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,r)}removeEdge(t,e,s){var r=arguments.length===1?v(this._isDirected,arguments[0]):g(this._isDirected,t,e,s),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],C(this._preds[e],t),C(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this}inEdges(t,e){var s=this._in[t];if(s){var r=b(s);return e?m(r,function(i){return i.v===e}):r}}outEdges(t,e){var s=this._out[t];if(s){var r=b(s);return e?m(r,function(i){return i.w===e}):r}}nodeEdges(t,e){var s=this.inEdges(t,e);if(s)return s.concat(this.outEdges(t,e))}},d(p,"Graph"),p);j.prototype._nodeCount=0;j.prototype._edgeCount=0;function O(o,t){o[t]?o[t]++:o[t]=1}d(O,"incrementOrInitEntry");function C(o,t){--o[t]||delete o[t]}d(C,"decrementOrRemoveEntry");function g(o,t,e,s){var r=""+t,i=""+e;if(!o&&r>i){var n=r;r=i,i=n}return r+E+i+E+(c(s)?D:s)}d(g,"edgeArgsToId");function L(o,t,e,s){var r=""+t,i=""+e;if(!o&&r>i){var n=r;r=i,i=n}var h={v:r,w:i};return s&&(h.name=s),h}d(L,"edgeArgsToObj");function v(o,t){return g(o,t.v,t.w,t.name)}d(v,"edgeObjToId");export{j as m};
@@ -0,0 +1,15 @@
1
+ import{m as e}from"./index-BgeqpYgd.js";var l=e(()=>`
2
+ /* Font Awesome icon styling - consolidated */
3
+ .label-icon {
4
+ display: inline-block;
5
+ height: 1em;
6
+ overflow: visible;
7
+ vertical-align: -0.125em;
8
+ }
9
+
10
+ .node .label-icon path {
11
+ fill: currentColor;
12
+ stroke: revert;
13
+ stroke-width: revert;
14
+ }
15
+ `,"getIconStyles");export{l as o};
@@ -0,0 +1 @@
1
+ import{m as l,i as n,ao as o,r as d,f as y}from"./index-BgeqpYgd.js";var x=d(y()),p=l((a,t)=>{let e=a.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(let r in t.attrs)e.attr(r,t.attrs[r]);return t.class&&e.attr("class",t.class),e},"drawRect"),h=l((a,t)=>{let e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};p(a,e).lower()},"drawBackgroundRect"),f=l((a,t)=>{let e=t.text.replace(o," "),r=a.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class&&r.attr("class",t.class);let s=r.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(e),r},"drawText"),g=l((a,t,e,r)=>{let s=a.append("image");s.attr("x",t),s.attr("y",e);let i=(0,x.sanitizeUrl)(r);s.attr("xlink:href",i)},"drawImage"),m=l((a,t,e,r)=>{let s=a.append("use");s.attr("x",t),s.attr("y",e);let i=(0,x.sanitizeUrl)(r);s.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),w=l(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),u=l(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),k=l(()=>{let a=n(".mermaidTooltip");return a.empty()&&(a=n("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),a},"createTooltip");export{g as E,u as G,k as T,f,h as g,m as h,w as u,p as x};
@@ -0,0 +1,206 @@
1
+ import{o as ee}from"./chunk-KSICW3F5-BYzvDLNI.js";import{T as se}from"./chunk-O5ABG6QK-dHwHzA6n.js";import{m as ie}from"./chunk-TBF5ZNIQ-DL5stGM1.js";import{y as ae}from"./chunk-RWUO3TPN-BgRTY0_k.js";import{m as d,p as Ot,q as F,g as re,P as ne,U as vt,i as pt,B as ue,e as le,s as oe,a as ce,l as he,h as pe,n as de,C as I,o as Ae,J as ye,c as be,al as U}from"./index-BgeqpYgd.js";var wt=function(){var s=d(function(L,c,h,r){for(h=h||{},r=L.length;r--;h[L[r]]=c);return h},"o"),i=[1,18],a=[1,19],n=[1,20],u=[1,41],l=[1,26],o=[1,42],A=[1,24],f=[1,25],N=[1,32],O=[1,33],At=[1,34],b=[1,45],yt=[1,35],bt=[1,36],gt=[1,37],mt=[1,38],Ct=[1,27],ft=[1,28],kt=[1,29],Et=[1,30],Tt=[1,31],g=[1,44],m=[1,46],C=[1,43],k=[1,47],Ft=[1,9],p=[1,8,9],Z=[1,58],tt=[1,59],et=[1,60],st=[1,61],it=[1,62],Dt=[1,63],Bt=[1,64],S=[1,8,9,41],Rt=[1,77],P=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],at=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],rt=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Pt=[13,60,68,69,70,71,72,86,100,102,103],nt=[1,102],Y=[1,120],W=[1,116],Q=[1,112],q=[1,118],X=[1,113],j=[1,114],H=[1,115],J=[1,117],V=[1,119],Mt=[22,50,60,61,82,86,87,88,89,90],_t=[1,8,9,39,41,44,46],ut=[1,8,9,22],Ut=[1,150],Gt=[1,8,9,61],$=[1,8,9,22,50,60,61,82,86,87,88,89,90],St={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:d(function(L,c,h,r,y,t,D){var e=t.length-1;switch(y){case 8:this.$=t[e-1];break;case 9:case 10:case 13:case 15:this.$=t[e];break;case 11:case 14:this.$=t[e-2]+"."+t[e];break;case 12:case 16:this.$=t[e-1]+t[e];break;case 17:case 18:this.$=t[e-1]+"~"+t[e]+"~";break;case 19:r.addRelation(t[e]);break;case 20:t[e-1].title=r.cleanupLabel(t[e]),r.addRelation(t[e-1]);break;case 31:this.$=t[e].trim(),r.setAccTitle(this.$);break;case 32:case 33:this.$=t[e].trim(),r.setAccDescription(this.$);break;case 34:r.addClassesToNamespace(t[e-3],t[e-1][0],t[e-1][1]);break;case 35:r.addClassesToNamespace(t[e-4],t[e-1][0],t[e-1][1]);break;case 36:this.$=t[e],r.addNamespace(t[e]);break;case 37:this.$=[[t[e]],[]];break;case 38:this.$=[[t[e-1]],[]];break;case 39:t[e][0].unshift(t[e-2]),this.$=t[e];break;case 40:this.$=[[],[t[e]]];break;case 41:this.$=[[],[t[e-1]]];break;case 42:t[e][1].unshift(t[e-2]),this.$=t[e];break;case 44:r.setCssClass(t[e-2],t[e]);break;case 45:r.addMembers(t[e-3],t[e-1]);break;case 47:r.setCssClass(t[e-5],t[e-3]),r.addMembers(t[e-5],t[e-1]);break;case 48:r.addAnnotation(t[e-3],t[e-1]);break;case 49:r.addAnnotation(t[e-6],t[e-4]),r.addMembers(t[e-6],t[e-1]);break;case 50:r.addAnnotation(t[e-5],t[e-3]);break;case 51:this.$=t[e],r.addClass(t[e]);break;case 52:this.$=t[e-1],r.addClass(t[e-1]),r.setClassLabel(t[e-1],t[e]);break;case 56:r.addAnnotation(t[e],t[e-2]);break;case 57:case 70:this.$=[t[e]];break;case 58:t[e].push(t[e-1]),this.$=t[e];break;case 59:break;case 60:r.addMember(t[e-1],r.cleanupLabel(t[e]));break;case 61:break;case 62:break;case 63:this.$={id1:t[e-2],id2:t[e],relation:t[e-1],relationTitle1:"none",relationTitle2:"none"};break;case 64:this.$={id1:t[e-3],id2:t[e],relation:t[e-1],relationTitle1:t[e-2],relationTitle2:"none"};break;case 65:this.$={id1:t[e-3],id2:t[e],relation:t[e-2],relationTitle1:"none",relationTitle2:t[e-1]};break;case 66:this.$={id1:t[e-4],id2:t[e],relation:t[e-2],relationTitle1:t[e-3],relationTitle2:t[e-1]};break;case 67:this.$=r.addNote(t[e],t[e-1]);break;case 68:this.$=r.addNote(t[e]);break;case 69:this.$=t[e-2],r.defineClass(t[e-1],t[e]);break;case 71:this.$=t[e-2].concat([t[e]]);break;case 72:r.setDirection("TB");break;case 73:r.setDirection("BT");break;case 74:r.setDirection("RL");break;case 75:r.setDirection("LR");break;case 76:this.$={type1:t[e-2],type2:t[e],lineType:t[e-1]};break;case 77:this.$={type1:"none",type2:t[e],lineType:t[e-1]};break;case 78:this.$={type1:t[e-1],type2:"none",lineType:t[e]};break;case 79:this.$={type1:"none",type2:"none",lineType:t[e]};break;case 80:this.$=r.relationType.AGGREGATION;break;case 81:this.$=r.relationType.EXTENSION;break;case 82:this.$=r.relationType.COMPOSITION;break;case 83:this.$=r.relationType.DEPENDENCY;break;case 84:this.$=r.relationType.LOLLIPOP;break;case 85:this.$=r.lineType.LINE;break;case 86:this.$=r.lineType.DOTTED_LINE;break;case 87:case 93:this.$=t[e-2],r.setClickEvent(t[e-1],t[e]);break;case 88:case 94:this.$=t[e-3],r.setClickEvent(t[e-2],t[e-1]),r.setTooltip(t[e-2],t[e]);break;case 89:this.$=t[e-2],r.setLink(t[e-1],t[e]);break;case 90:this.$=t[e-3],r.setLink(t[e-2],t[e-1],t[e]);break;case 91:this.$=t[e-3],r.setLink(t[e-2],t[e-1]),r.setTooltip(t[e-2],t[e]);break;case 92:this.$=t[e-4],r.setLink(t[e-3],t[e-2],t[e]),r.setTooltip(t[e-3],t[e-1]);break;case 95:this.$=t[e-3],r.setClickEvent(t[e-2],t[e-1],t[e]);break;case 96:this.$=t[e-4],r.setClickEvent(t[e-3],t[e-2],t[e-1]),r.setTooltip(t[e-3],t[e]);break;case 97:this.$=t[e-3],r.setLink(t[e-2],t[e]);break;case 98:this.$=t[e-4],r.setLink(t[e-3],t[e-1],t[e]);break;case 99:this.$=t[e-4],r.setLink(t[e-3],t[e-1]),r.setTooltip(t[e-3],t[e]);break;case 100:this.$=t[e-5],r.setLink(t[e-4],t[e-2],t[e]),r.setTooltip(t[e-4],t[e-1]);break;case 101:this.$=t[e-2],r.setCssStyle(t[e-1],t[e]);break;case 102:r.setCssClass(t[e-1],t[e]);break;case 103:this.$=[t[e]];break;case 104:t[e-2].push(t[e]),this.$=t[e-2];break;case 106:this.$=t[e-1]+t[e];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:n,38:22,42:u,43:23,46:l,48:o,51:A,52:f,54:N,56:O,57:At,60:b,62:yt,63:bt,64:gt,65:mt,75:Ct,76:ft,78:kt,82:Et,83:Tt,86:g,100:m,102:C,103:k},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(Ft,[2,5],{8:[1,48]}),{8:[1,49]},s(p,[2,19],{22:[1,50]}),s(p,[2,21]),s(p,[2,22]),s(p,[2,23]),s(p,[2,24]),s(p,[2,25]),s(p,[2,26]),s(p,[2,27]),s(p,[2,28]),s(p,[2,29]),s(p,[2,30]),{34:[1,51]},{36:[1,52]},s(p,[2,33]),s(p,[2,59],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:Z,69:tt,70:et,71:st,72:it,73:Dt,74:Bt}),{39:[1,65]},s(S,[2,43],{39:[1,67],44:[1,66],46:[1,68]}),s(p,[2,61]),s(p,[2,62]),{16:69,60:b,86:g,100:m,102:C},{16:39,17:40,19:70,60:b,86:g,100:m,102:C,103:k},{16:39,17:40,19:71,60:b,86:g,100:m,102:C,103:k},{16:39,17:40,19:72,60:b,86:g,100:m,102:C,103:k},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:g,100:m,102:C,103:k},{13:Rt,55:76},{58:78,60:[1,79]},s(p,[2,72]),s(p,[2,73]),s(p,[2,74]),s(p,[2,75]),s(P,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:g,100:m,102:C,103:k}),s(P,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:g,100:m,102:C,103:k},{16:39,17:40,19:87,60:b,86:g,100:m,102:C,103:k},s(at,[2,129]),s(at,[2,130]),s(at,[2,131]),s(at,[2,132]),s([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,133]),s(Ft,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:n,42:u,46:l,48:o,51:A,52:f,54:N,56:O,57:At,60:b,62:yt,63:bt,64:gt,65:mt,75:Ct,76:ft,78:kt,82:Et,83:Tt,86:g,100:m,102:C,103:k}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:n,38:22,42:u,43:23,46:l,48:o,51:A,52:f,54:N,56:O,57:At,60:b,62:yt,63:bt,64:gt,65:mt,75:Ct,76:ft,78:kt,82:Et,83:Tt,86:g,100:m,102:C,103:k},s(p,[2,20]),s(p,[2,31]),s(p,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:g,100:m,102:C,103:k},{53:92,66:56,67:57,68:Z,69:tt,70:et,71:st,72:it,73:Dt,74:Bt},s(p,[2,60]),{67:93,73:Dt,74:Bt},s(rt,[2,79],{66:94,68:Z,69:tt,70:et,71:st,72:it}),s(K,[2,80]),s(K,[2,81]),s(K,[2,82]),s(K,[2,83]),s(K,[2,84]),s(Pt,[2,85]),s(Pt,[2,86]),{8:[1,96],24:97,30:98,40:95,43:23,48:o,54:N,56:O},{16:99,60:b,86:g,100:m,102:C},{41:[1,101],45:100,51:nt},{16:103,60:b,86:g,100:m,102:C},{47:[1,104]},{13:[1,105]},{13:[1,106]},{79:[1,107],81:[1,108]},{22:Y,50:W,59:109,60:Q,82:q,84:110,85:111,86:X,87:j,88:H,89:J,90:V},{60:[1,121]},{13:Rt,55:122},s(S,[2,68]),s(S,[2,134]),{22:Y,50:W,59:123,60:Q,61:[1,124],82:q,84:110,85:111,86:X,87:j,88:H,89:J,90:V},s(Mt,[2,70]),{16:39,17:40,19:125,60:b,86:g,100:m,102:C,103:k},s(P,[2,16]),s(P,[2,17]),s(P,[2,18]),{39:[2,36]},{15:127,16:85,17:86,18:[1,126],39:[2,9],60:b,86:g,100:m,102:C,103:k},{39:[2,10]},s(_t,[2,51],{11:128,12:[1,129]}),s(Ft,[2,7]),{9:[1,130]},s(ut,[2,63]),{16:39,17:40,19:131,60:b,86:g,100:m,102:C,103:k},{13:[1,133],16:39,17:40,19:132,60:b,86:g,100:m,102:C,103:k},s(rt,[2,78],{66:134,68:Z,69:tt,70:et,71:st,72:it}),s(rt,[2,77]),{41:[1,135]},{24:97,30:98,40:136,43:23,48:o,54:N,56:O},{8:[1,137],41:[2,37]},{8:[1,138],41:[2,40]},s(S,[2,44],{39:[1,139]}),{41:[1,140]},s(S,[2,46]),{41:[2,57],45:141,51:nt},{47:[1,142]},{16:39,17:40,19:143,60:b,86:g,100:m,102:C,103:k},s(p,[2,87],{13:[1,144]}),s(p,[2,89],{13:[1,146],77:[1,145]}),s(p,[2,93],{13:[1,147],80:[1,148]}),{13:[1,149]},s(p,[2,101],{61:Ut}),s(Gt,[2,103],{85:151,22:Y,50:W,60:Q,82:q,86:X,87:j,88:H,89:J,90:V}),s($,[2,105]),s($,[2,107]),s($,[2,108]),s($,[2,109]),s($,[2,110]),s($,[2,111]),s($,[2,112]),s($,[2,113]),s($,[2,114]),s($,[2,115]),s(p,[2,102]),s(S,[2,67]),s(p,[2,69],{61:Ut}),{60:[1,152]},s(P,[2,14]),{15:153,16:85,17:86,60:b,86:g,100:m,102:C,103:k},{39:[2,12]},s(_t,[2,52]),{13:[1,154]},{1:[2,4]},s(ut,[2,65]),s(ut,[2,64]),{16:39,17:40,19:155,60:b,86:g,100:m,102:C,103:k},s(rt,[2,76]),s(p,[2,34]),{41:[1,156]},{24:97,30:98,40:157,41:[2,38],43:23,48:o,54:N,56:O},{24:97,30:98,40:158,41:[2,41],43:23,48:o,54:N,56:O},{45:159,51:nt},s(S,[2,45]),{41:[2,58]},s(S,[2,48],{39:[1,160]}),s(p,[2,56]),s(p,[2,88]),s(p,[2,90]),s(p,[2,91],{77:[1,161]}),s(p,[2,94]),s(p,[2,95],{13:[1,162]}),s(p,[2,97],{13:[1,164],77:[1,163]}),{22:Y,50:W,60:Q,82:q,84:165,85:111,86:X,87:j,88:H,89:J,90:V},s($,[2,106]),s(Mt,[2,71]),{39:[2,11]},{14:[1,166]},s(ut,[2,66]),s(p,[2,35]),{41:[2,39]},{41:[2,42]},{41:[1,167]},{41:[1,169],45:168,51:nt},s(p,[2,92]),s(p,[2,96]),s(p,[2,98]),s(p,[2,99],{77:[1,170]}),s(Gt,[2,104],{85:151,22:Y,50:W,60:Q,82:q,86:X,87:j,88:H,89:J,90:V}),s(_t,[2,8]),s(S,[2,47]),{41:[1,171]},s(S,[2,50]),s(p,[2,100]),s(S,[2,49])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],84:[2,36],86:[2,10],127:[2,12],130:[2,4],141:[2,58],153:[2,11],157:[2,39],158:[2,42]},parseError:d(function(L,c){if(c.recoverable)this.trace(L);else{var h=new Error(L);throw h.hash=c,h}},"parseError"),parse:d(function(L){var c=this,h=[0],r=[],y=[null],t=[],D=this.table,e="",ot=0,zt=0,Ht=0,Jt=2,Kt=1,Vt=t.slice.call(arguments,1),E=Object.create(this.lexer),v={yy:{}};for(var $t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$t)&&(v.yy[$t]=this.yy[$t]);E.setInput(L,v.yy),v.yy.lexer=E,v.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var Nt=E.yylloc;t.push(Nt);var Zt=E.options&&E.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function te(B){h.length=h.length-2*B,y.length=y.length-B,t.length=t.length-B}d(te,"popStack");function Yt(){var B;return B=r.pop()||E.lex()||Kt,typeof B!="number"&&(B instanceof Array&&(r=B,B=r.pop()),B=c.symbols_[B]||B),B}d(Yt,"lex");for(var T,Lt,w,_,ke,xt,M={},ct,x,Wt,ht;;){if(w=h[h.length-1],this.defaultActions[w]?_=this.defaultActions[w]:((T===null||typeof T>"u")&&(T=Yt()),_=D[w]&&D[w][T]),typeof _>"u"||!_.length||!_[0]){var It="";ht=[];for(ct in D[w])this.terminals_[ct]&&ct>Jt&&ht.push("'"+this.terminals_[ct]+"'");E.showPosition?It="Parse error on line "+(ot+1)+`:
2
+ `+E.showPosition()+`
3
+ Expecting `+ht.join(", ")+", got '"+(this.terminals_[T]||T)+"'":It="Parse error on line "+(ot+1)+": Unexpected "+(T==Kt?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(It,{text:E.match,token:this.terminals_[T]||T,line:E.yylineno,loc:Nt,expected:ht})}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+T);switch(_[0]){case 1:h.push(T),y.push(E.yytext),t.push(E.yylloc),h.push(_[1]),T=null,Lt?(T=Lt,Lt=null):(zt=E.yyleng,e=E.yytext,ot=E.yylineno,Nt=E.yylloc,Ht>0);break;case 2:if(x=this.productions_[_[1]][1],M.$=y[y.length-x],M._$={first_line:t[t.length-(x||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(x||1)].first_column,last_column:t[t.length-1].last_column},Zt&&(M._$.range=[t[t.length-(x||1)].range[0],t[t.length-1].range[1]]),xt=this.performAction.apply(M,[e,zt,ot,v.yy,_[1],y,t].concat(Vt)),typeof xt<"u")return xt;x&&(h=h.slice(0,-1*x*2),y=y.slice(0,-1*x),t=t.slice(0,-1*x)),h.push(this.productions_[_[1]][0]),y.push(M.$),t.push(M._$),Wt=D[h[h.length-2]][h[h.length-1]],h.push(Wt);break;case 3:return!0}}return!0},"parse")},jt=function(){var L={EOF:1,parseError:d(function(c,h){if(this.yy.parser)this.yy.parser.parseError(c,h);else throw new Error(c)},"parseError"),setInput:d(function(c,h){return this.yy=h||this.yy||{},this._input=c,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:d(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var h=c.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:d(function(c){var h=c.length,r=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var y=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),r.length-1&&(this.yylineno-=r.length-1);var t=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:r?(r.length===y.length?this.yylloc.first_column:0)+y[y.length-r.length].length-r[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[t[0],t[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(c){this.unput(this.match.slice(c))},"less"),pastInput:d(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var c=this.pastInput(),h=new Array(c.length+1).join("-");return c+this.upcomingInput()+`
5
+ `+h+"^"},"showPosition"),test_match:d(function(c,h){var r,y,t;if(this.options.backtrack_lexer&&(t={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(t.yylloc.range=this.yylloc.range.slice(0))),y=c[0].match(/(?:\r\n?|\n).*/g),y&&(this.yylineno+=y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:y?y[y.length-1].length-y[y.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(c[0].length),this.matched+=c[0],r=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var D in t)this[D]=t[D];return!1}return!1},"test_match"),next:d(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var c,h,r,y;this._more||(this.yytext="",this.match="");for(var t=this._currentRules(),D=0;D<t.length;D++)if(r=this._input.match(this.rules[t[D]]),r&&(!h||r[0].length>h[0].length)){if(h=r,y=D,this.options.backtrack_lexer){if(c=this.test_match(r,t[D]),c!==!1)return c;if(this._backtrack){h=!1;continue}else return!1}else if(!this.options.flex)break}return h?(c=this.test_match(h,t[y]),c!==!1?c:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:d(function(){var c=this.next();return c||this.lex()},"lex"),begin:d(function(c){this.conditionStack.push(c)},"begin"),popState:d(function(){var c=this.conditionStack.length-1;return c>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:d(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:d(function(c){return c=this.conditionStack.length-1-Math.abs(c||0),c>=0?this.conditionStack[c]:"INITIAL"},"topState"),pushState:d(function(c){this.begin(c)},"pushState"),stateStackSize:d(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:d(function(c,h,r,y){switch(r){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;case 30:return this.popState(),8;case 31:break;case 32:return this.begin("namespace-body"),39;case 33:return this.popState(),41;case 34:return"EOF_IN_STRUCT";case 35:return 8;case 36:break;case 37:return"EDGE_STATE";case 38:return this.begin("class"),48;case 39:return this.popState(),8;case 40:break;case 41:return this.popState(),this.popState(),41;case 42:return this.begin("class-body"),39;case 43:return this.popState(),41;case 44:return"EOF_IN_STRUCT";case 45:return"EDGE_STATE";case 46:return"OPEN_IN_STRUCT";case 47:break;case 48:return"MEMBER";case 49:return 83;case 50:return 75;case 51:return 76;case 52:return 78;case 53:return 54;case 54:return 56;case 55:return 46;case 56:return 47;case 57:return 81;case 58:this.popState();break;case 59:return"GENERICTYPE";case 60:this.begin("generic");break;case 61:this.popState();break;case 62:return"BQUOTE_STR";case 63:this.begin("bqstring");break;case 64:return 77;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 69;case 69:return 69;case 70:return 71;case 71:return 71;case 72:return 70;case 73:return 68;case 74:return 72;case 75:return 73;case 76:return 74;case 77:return 22;case 78:return 44;case 79:return 100;case 80:return 18;case 81:return"PLUS";case 82:return 87;case 83:return 61;case 84:return 89;case 85:return 89;case 86:return 90;case 87:return"EQUALS";case 88:return"EQUALS";case 89:return 60;case 90:return 12;case 91:return 14;case 92:return"PUNCTUATION";case 93:return 86;case 94:return 102;case 95:return 50;case 96:return 50;case 97:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,33,34,35,36,37,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},namespace:{rules:[26,29,30,31,32,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},"class-body":{rules:[26,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},class:{rules:[26,39,40,41,42,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr:{rules:[9,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_title:{rules:[7,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_args:{rules:[22,23,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_name:{rules:[19,20,21,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},href:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},struct:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},generic:{rules:[26,49,50,51,52,53,54,55,56,57,58,59,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},bqstring:{rules:[26,49,50,51,52,53,54,55,56,57,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},string:{rules:[24,25,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!0}}};return L}();St.lexer=jt;function lt(){this.yy={}}return d(lt,"Parser"),lt.prototype=St,St.Parser=lt,new lt}();wt.parser=wt;var _e=wt,Qt=["#","+","~","-",""],G,qt=(G=class{constructor(i,a){this.memberType=a,this.visibility="",this.classifier="",this.text="";let n=be(i,F());this.parseMember(n)}getDisplayDetails(){let i=this.visibility+U(this.id);this.memberType==="method"&&(i+=`(${U(this.parameters.trim())})`,this.returnType&&(i+=" : "+U(this.returnType))),i=i.trim();let a=this.parseClassifier();return{displayText:i,cssStyle:a}}parseMember(i){let a="";if(this.memberType==="method"){let u=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(i);if(u){let l=u[1]?u[1].trim():"";if(Qt.includes(l)&&(this.visibility=l),this.id=u[2],this.parameters=u[3]?u[3].trim():"",a=u[4]?u[4].trim():"",this.returnType=u[5]?u[5].trim():"",a===""){let o=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(o)&&(a=o,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{let u=i.length,l=i.substring(0,1),o=i.substring(u-1);Qt.includes(l)&&(this.visibility=l),/[$*]/.exec(o)&&(a=o),this.id=i.substring(this.visibility===""?0:1,a===""?u:u-1)}this.classifier=a,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();let n=`${this.visibility?"\\"+this.visibility:""}${U(this.id)}${this.memberType==="method"?`(${U(this.parameters)})${this.returnType?" : "+U(this.returnType):""}`:""}`;this.text=n.replaceAll("<","&lt;").replaceAll(">","&gt;"),this.text.startsWith("\\&lt;")&&(this.text=this.text.replace("\\&lt;","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},d(G,"ClassMember"),G),dt="classId-",Xt=0,R=d(s=>I.sanitizeText(s,F()),"sanitizeText"),z,Se=(z=class{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.diagramId="",this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=d(i=>{let a=se();pt(i).select("svg").selectAll("g").filter(function(){return pt(this).attr("title")!==null}).on("mouseover",n=>{let u=pt(n.currentTarget),l=u.attr("title");if(!l)return;let o=n.currentTarget.getBoundingClientRect();a.transition().duration(200).style("opacity",".9"),a.html(ue.sanitize(l)).style("left",`${window.scrollX+o.left+o.width/2}px`).style("top",`${window.scrollY+o.bottom+4}px`),u.classed("hover",!0)}).on("mouseout",n=>{a.transition().duration(500).style("opacity",0),pt(n.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=le,this.getAccTitle=oe,this.setAccDescription=ce,this.getAccDescription=he,this.setDiagramTitle=pe,this.getDiagramTitle=de,this.getConfig=d(()=>F().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}splitClassNameAndType(i){let a=I.sanitizeText(i,F()),n="",u=a;if(a.indexOf("~")>0){let l=a.split("~");u=R(l[0]),n=R(l[1])}return{className:u,type:n}}setClassLabel(i,a){let n=I.sanitizeText(i,F());a&&(a=R(a));let{className:u}=this.splitClassNameAndType(n);this.classes.get(u).label=a,this.classes.get(u).text=`${a}${this.classes.get(u).type?`<${this.classes.get(u).type}>`:""}`}addClass(i){let a=I.sanitizeText(i,F()),{className:n,type:u}=this.splitClassNameAndType(a);if(this.classes.has(n))return;let l=I.sanitizeText(n,F());this.classes.set(l,{id:l,type:u,label:l,text:`${l}${u?`&lt;${u}&gt;`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:dt+l+"-"+Xt}),Xt++}addInterface(i,a){let n={id:`interface${this.interfaces.length}`,label:i,classId:a};this.interfaces.push(n)}setDiagramId(i){this.diagramId=i}lookUpDomId(i){let a=I.sanitizeText(i,F());if(this.classes.has(a)){let n=this.classes.get(a).domId;return this.diagramId?`${this.diagramId}-${n}`:n}throw new Error("Class not found: "+a)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.diagramId="",this.direction="TB",Ae()}getClass(i){return this.classes.get(i)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(i){let a=typeof i=="number"?`note${i}`:i;return this.notes.get(a)}getNotes(){return this.notes}addRelation(i){Ot.debug("Adding relation: "+JSON.stringify(i));let a=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];i.relation.type1===this.relationType.LOLLIPOP&&!a.includes(i.relation.type2)?(this.addClass(i.id2),this.addInterface(i.id1,i.id2),i.id1=`interface${this.interfaces.length-1}`):i.relation.type2===this.relationType.LOLLIPOP&&!a.includes(i.relation.type1)?(this.addClass(i.id1),this.addInterface(i.id2,i.id1),i.id2=`interface${this.interfaces.length-1}`):(this.addClass(i.id1),this.addClass(i.id2)),i.id1=this.splitClassNameAndType(i.id1).className,i.id2=this.splitClassNameAndType(i.id2).className,i.relationTitle1=I.sanitizeText(i.relationTitle1.trim(),F()),i.relationTitle2=I.sanitizeText(i.relationTitle2.trim(),F()),this.relations.push(i)}addAnnotation(i,a){let n=this.splitClassNameAndType(i).className;this.classes.get(n).annotations.push(a)}addMember(i,a){this.addClass(i);let n=this.splitClassNameAndType(i).className,u=this.classes.get(n);if(typeof a=="string"){let l=a.trim();l.startsWith("<<")&&l.endsWith(">>")?u.annotations.push(R(l.substring(2,l.length-2))):l.indexOf(")")>0?u.methods.push(new qt(l,"method")):l&&u.members.push(new qt(l,"attribute"))}}addMembers(i,a){Array.isArray(a)&&(a.reverse(),a.forEach(n=>this.addMember(i,n)))}addNote(i,a){let n=this.notes.size,u={id:`note${n}`,class:a,text:i,index:n};return this.notes.set(u.id,u),u.id}cleanupLabel(i){return i.startsWith(":")&&(i=i.substring(1)),R(i.trim())}setCssClass(i,a){i.split(",").forEach(n=>{let u=n;/\d/.exec(n[0])&&(u=dt+u);let l=this.classes.get(u);l&&(l.cssClasses+=" "+a)})}defineClass(i,a){for(let n of i){let u=this.styleClasses.get(n);u===void 0&&(u={id:n,styles:[],textStyles:[]},this.styleClasses.set(n,u)),a&&a.forEach(l=>{if(/color/.exec(l)){let o=l.replace("fill","bgFill");u.textStyles.push(o)}u.styles.push(l)}),this.classes.forEach(l=>{l.cssClasses.includes(n)&&l.styles.push(...a.flatMap(o=>o.split(",")))})}}setTooltip(i,a){i.split(",").forEach(n=>{a!==void 0&&(this.classes.get(n).tooltip=R(a))})}getTooltip(i,a){return a&&this.namespaces.has(a)?this.namespaces.get(a).classes.get(i).tooltip:this.classes.get(i).tooltip}setLink(i,a,n){let u=F();i.split(",").forEach(l=>{let o=l;/\d/.exec(l[0])&&(o=dt+o);let A=this.classes.get(o);A&&(A.link=vt.formatUrl(a,u),u.securityLevel==="sandbox"?A.linkTarget="_top":typeof n=="string"?A.linkTarget=R(n):A.linkTarget="_blank")}),this.setCssClass(i,"clickable")}setClickEvent(i,a,n){i.split(",").forEach(u=>{this.setClickFunc(u,a,n),this.classes.get(u).haveCallback=!0}),this.setCssClass(i,"clickable")}setClickFunc(i,a,n){let u=I.sanitizeText(i,F());if(F().securityLevel!=="loose"||a===void 0)return;let l=u;if(this.classes.has(l)){let o=[];if(typeof n=="string"){o=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let A=0;A<o.length;A++){let f=o[A].trim();f.startsWith('"')&&f.endsWith('"')&&(f=f.substr(1,f.length-2)),o[A]=f}}o.length===0&&o.push(l),this.functions.push(()=>{let A=this.lookUpDomId(l),f=document.querySelector(`[id="${A}"]`);f!==null&&f.addEventListener("click",()=>{vt.runFunc(a,...o)},!1)})}}bindFunctions(i){this.functions.forEach(a=>{a(i)})}escapeHtml(i){return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}getDirection(){return this.direction}setDirection(i){this.direction=i}addNamespace(i){this.namespaces.has(i)||(this.namespaces.set(i,{id:i,classes:new Map,notes:new Map,children:new Map,domId:dt+i+"-"+this.namespaceCounter}),this.namespaceCounter++)}getNamespace(i){return this.namespaces.get(i)}getNamespaces(){return this.namespaces}addClassesToNamespace(i,a,n){if(this.namespaces.has(i)){for(let u of a){let{className:l}=this.splitClassNameAndType(u),o=this.getClass(l);o.parent=i,this.namespaces.get(i).classes.set(l,o)}for(let u of n){let l=this.getNote(u);l.parent=i,this.namespaces.get(i).notes.set(u,l)}}}setCssStyle(i,a){let n=this.classes.get(i);if(!(!a||!n))for(let u of a)u.includes(",")?n.styles.push(...u.split(",")):n.styles.push(u)}getArrowMarker(i){let a;switch(i){case 0:a="aggregation";break;case 1:a="extension";break;case 2:a="composition";break;case 3:a="dependency";break;case 4:a="lollipop";break;default:a="none"}return a}getData(){var l;let i=[],a=[],n=F();for(let o of this.namespaces.values()){let A={id:o.id,label:o.id,isGroup:!0,padding:n.class.padding??16,shape:"rect",cssStyles:[],look:n.look};i.push(A)}for(let o of this.classes.values()){let A={...o,type:void 0,isGroup:!1,parentId:o.parent,look:n.look};i.push(A)}for(let o of this.notes.values()){let A={id:o.id,label:o.text,isGroup:!1,shape:"note",padding:n.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${n.themeVariables.noteBkgColor}`,`stroke: ${n.themeVariables.noteBorderColor}`],look:n.look,parentId:o.parent,labelType:"markdown"};i.push(A);let f=(l=this.classes.get(o.class))==null?void 0:l.id;if(f){let N={id:`edgeNote${o.index}`,start:o.id,end:f,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:n.look};a.push(N)}}for(let o of this.interfaces){let A={id:o.id,label:o.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:n.look};i.push(A)}let u=0;for(let o of this.relations){u++;let A={id:ye(o.id1,o.id2,{prefix:"id",counter:u}),start:o.id1,end:o.id2,type:"normal",label:o.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(o.relation.type1),arrowTypeEnd:this.getArrowMarker(o.relation.type2),startLabelRight:o.relationTitle1==="none"?"":o.relationTitle1,endLabelLeft:o.relationTitle2==="none"?"":o.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:o.style||"",pattern:o.relation.lineType==1?"dashed":"solid",look:n.look,labelType:"markdown"};a.push(A)}return{nodes:i,edges:a,other:{},config:n,direction:this.getDirection()}}},d(z,"ClassDB"),z),ge=d(s=>`g.classGroup text {
7
+ fill: ${s.nodeBorder||s.classText};
8
+ stroke: none;
9
+ font-family: ${s.fontFamily};
10
+ font-size: 10px;
11
+
12
+ .title {
13
+ font-weight: bolder;
14
+ }
15
+
16
+ }
17
+
18
+ .cluster-label text {
19
+ fill: ${s.titleColor};
20
+ }
21
+ .cluster-label span {
22
+ color: ${s.titleColor};
23
+ }
24
+ .cluster-label span p {
25
+ background-color: transparent;
26
+ }
27
+
28
+ .cluster rect {
29
+ fill: ${s.clusterBkg};
30
+ stroke: ${s.clusterBorder};
31
+ stroke-width: 1px;
32
+ }
33
+
34
+ .cluster text {
35
+ fill: ${s.titleColor};
36
+ }
37
+
38
+ .cluster span {
39
+ color: ${s.titleColor};
40
+ }
41
+
42
+ .nodeLabel, .edgeLabel {
43
+ color: ${s.classText};
44
+ }
45
+
46
+ .noteLabel .nodeLabel, .noteLabel .edgeLabel {
47
+ color: ${s.noteTextColor};
48
+ }
49
+ .edgeLabel .label rect {
50
+ fill: ${s.mainBkg};
51
+ }
52
+ .label text {
53
+ fill: ${s.classText};
54
+ }
55
+
56
+ .labelBkg {
57
+ background: ${s.mainBkg};
58
+ }
59
+ .edgeLabel .label span {
60
+ background: ${s.mainBkg};
61
+ }
62
+
63
+ .classTitle {
64
+ font-weight: bolder;
65
+ }
66
+ .node rect,
67
+ .node circle,
68
+ .node ellipse,
69
+ .node polygon,
70
+ .node path {
71
+ fill: ${s.mainBkg};
72
+ stroke: ${s.nodeBorder};
73
+ stroke-width: ${s.strokeWidth};
74
+ }
75
+
76
+
77
+ .divider {
78
+ stroke: ${s.nodeBorder};
79
+ stroke-width: 1;
80
+ }
81
+
82
+ g.clickable {
83
+ cursor: pointer;
84
+ }
85
+
86
+ g.classGroup rect {
87
+ fill: ${s.mainBkg};
88
+ stroke: ${s.nodeBorder};
89
+ }
90
+
91
+ g.classGroup line {
92
+ stroke: ${s.nodeBorder};
93
+ stroke-width: 1;
94
+ }
95
+
96
+ .classLabel .box {
97
+ stroke: none;
98
+ stroke-width: 0;
99
+ fill: ${s.mainBkg};
100
+ opacity: 0.5;
101
+ }
102
+
103
+ .classLabel .label {
104
+ fill: ${s.nodeBorder};
105
+ font-size: 10px;
106
+ }
107
+
108
+ .relation {
109
+ stroke: ${s.lineColor};
110
+ stroke-width: ${s.strokeWidth};
111
+ fill: none;
112
+ }
113
+
114
+ .dashed-line{
115
+ stroke-dasharray: 3;
116
+ }
117
+
118
+ .dotted-line{
119
+ stroke-dasharray: 1 2;
120
+ }
121
+
122
+ [id$="-compositionStart"], .composition {
123
+ fill: ${s.lineColor} !important;
124
+ stroke: ${s.lineColor} !important;
125
+ stroke-width: 1;
126
+ }
127
+
128
+ [id$="-compositionEnd"], .composition {
129
+ fill: ${s.lineColor} !important;
130
+ stroke: ${s.lineColor} !important;
131
+ stroke-width: 1;
132
+ }
133
+
134
+ [id$="-dependencyStart"], .dependency {
135
+ fill: ${s.lineColor} !important;
136
+ stroke: ${s.lineColor} !important;
137
+ stroke-width: 1;
138
+ }
139
+
140
+ [id$="-dependencyEnd"], .dependency {
141
+ fill: ${s.lineColor} !important;
142
+ stroke: ${s.lineColor} !important;
143
+ stroke-width: 1;
144
+ }
145
+
146
+ [id$="-extensionStart"], .extension {
147
+ fill: transparent !important;
148
+ stroke: ${s.lineColor} !important;
149
+ stroke-width: 1;
150
+ }
151
+
152
+ [id$="-extensionEnd"], .extension {
153
+ fill: transparent !important;
154
+ stroke: ${s.lineColor} !important;
155
+ stroke-width: 1;
156
+ }
157
+
158
+ [id$="-aggregationStart"], .aggregation {
159
+ fill: transparent !important;
160
+ stroke: ${s.lineColor} !important;
161
+ stroke-width: 1;
162
+ }
163
+
164
+ [id$="-aggregationEnd"], .aggregation {
165
+ fill: transparent !important;
166
+ stroke: ${s.lineColor} !important;
167
+ stroke-width: 1;
168
+ }
169
+
170
+ [id$="-lollipopStart"], .lollipop {
171
+ fill: ${s.mainBkg} !important;
172
+ stroke: ${s.lineColor} !important;
173
+ stroke-width: 1;
174
+ }
175
+
176
+ [id$="-lollipopEnd"], .lollipop {
177
+ fill: ${s.mainBkg} !important;
178
+ stroke: ${s.lineColor} !important;
179
+ stroke-width: 1;
180
+ }
181
+
182
+ .edgeTerminals {
183
+ font-size: 11px;
184
+ line-height: initial;
185
+ }
186
+
187
+ .classTitleText {
188
+ text-anchor: middle;
189
+ font-size: 18px;
190
+ fill: ${s.textColor};
191
+ }
192
+
193
+ .edgeLabel[data-look="neo"] {
194
+ background-color: ${s.edgeLabelBackground};
195
+ p {
196
+ background-color: ${s.edgeLabelBackground};
197
+ }
198
+ rect {
199
+ opacity: 0.5;
200
+ background-color: ${s.edgeLabelBackground};
201
+ fill: ${s.edgeLabelBackground};
202
+ }
203
+ text-align: center;
204
+ }
205
+ ${ee()}
206
+ `,"getStyles"),$e=ge,me=d((s,i="TB")=>{if(!s.doc)return i;let a=i;for(let n of s.doc)n.stmt==="dir"&&(a=n.value);return a},"getDir"),Ce=d(function(s,i){return i.db.getClasses()},"getClasses"),fe=d(async function(s,i,a,n){Ot.info("REF0:"),Ot.info("Drawing class diagram (v3)",i);let{securityLevel:u,state:l,layout:o}=F();n.db.setDiagramId(i);let A=n.db.getData(),f=ie(i,u);A.type=n.type,A.layoutAlgorithm=re(o),A.nodeSpacing=(l==null?void 0:l.nodeSpacing)||50,A.rankSpacing=(l==null?void 0:l.rankSpacing)||50,A.markers=["aggregation","extension","composition","dependency","lollipop"],A.diagramId=i,await ne(A,f),vt.insertTitle(f,"classDiagramTitleText",(l==null?void 0:l.titleTopMargin)??25,n.db.getDiagramTitle()),ae(f,8,"classDiagram",(l==null?void 0:l.useMaxWidth)??!0)},"draw"),Ne={getClasses:Ce,draw:fe,getDir:me};export{_e as E,$e as U,Se as c,Ne as q};
@@ -0,0 +1 @@
1
+ import{m as a,b as x,p as g}from"./index-BgeqpYgd.js";var m=a((t,i,e,h)=>{t.attr("class",e);let{width:o,height:r,x:s,y:w}=n(t,i);x(t,r,o,h);let d=$(s,w,o,r,i);t.attr("viewBox",d),g.debug(`viewBox configured: ${d} with padding: ${i}`)},"setupViewPortForSVG"),n=a((t,i)=>{var h;let e=((h=t.node())==null?void 0:h.getBBox())||{width:0,height:0,x:0,y:0};return{width:e.width+i*2,height:e.height+i*2,x:e.x,y:e.y}},"calculateDimensionsWithPadding"),$=a((t,i,e,h,o)=>`${t-o} ${i-o} ${e} ${h}`,"createViewBox");export{m as y};
@@ -0,0 +1 @@
1
+ import{m,i as e}from"./index-BgeqpYgd.js";var r=m((o,t)=>{let a;return t==="sandbox"&&(a=e("#i"+o)),(t==="sandbox"?e(a.nodes()[0].contentDocument.body):e("body")).select(`[id="${o}"]`)},"getDiagramElement");export{r as m};
@@ -0,0 +1 @@
1
+ import{m as s}from"./index-BgeqpYgd.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as s};
@@ -0,0 +1 @@
1
+ import{U as t,q as a,E as s,c as e}from"./chunk-PK6DOVAG-CvsEnugt.js";import"./chunk-KSICW3F5-BYzvDLNI.js";import"./chunk-O5ABG6QK-dHwHzA6n.js";import"./chunk-TBF5ZNIQ-DL5stGM1.js";import"./chunk-RWUO3TPN-BgRTY0_k.js";import{m as o}from"./index-BgeqpYgd.js";var b={parser:s,get db(){return new e},renderer:a,styles:t,init:o(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{b as diagram};
@@ -0,0 +1 @@
1
+ import{U as t,q as a,E as s,c as e}from"./chunk-PK6DOVAG-CvsEnugt.js";import"./chunk-KSICW3F5-BYzvDLNI.js";import"./chunk-O5ABG6QK-dHwHzA6n.js";import"./chunk-TBF5ZNIQ-DL5stGM1.js";import"./chunk-RWUO3TPN-BgRTY0_k.js";import{m as o}from"./index-BgeqpYgd.js";var b={parser:s,get db(){return new e},renderer:a,styles:t,init:o(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{b as diagram};
@@ -0,0 +1,16 @@
1
+ async function d(i,n){try{const s=[{type:"files",query:"MATCH (n:File) RETURN COUNT(n) AS count"},{type:"functions",query:"MATCH (n:Function) RETURN COUNT(n) AS count"},{type:"classes",query:"MATCH (n:Class) RETURN COUNT(n) AS count"},{type:"interfaces",query:"MATCH (n:Interface) RETURN COUNT(n) AS count"},{type:"methods",query:"MATCH (n:Method) RETURN COUNT(n) AS count"}],e={};for(const{type:t,query:r}of s)try{const l=(await i(r))[0];e[t]=Array.isArray(l)?l[0]??0:(l==null?void 0:l.count)??0}catch{e[t]=0}return{projectName:n,fileCount:e.files,functionCount:e.functions,classCount:e.classes,interfaceCount:e.interfaces,methodCount:e.methods}}catch(s){return console.error("Failed to get codebase stats:",s),{projectName:n,fileCount:0,functionCount:0,classCount:0,interfaceCount:0,methodCount:0}}}async function m(i,n=8){try{const s=`
2
+ MATCH (n)-[r:CodeRelation]-(m)
3
+ WHERE n.name IS NOT NULL
4
+ WITH n, COUNT(r) AS connections
5
+ ORDER BY connections DESC
6
+ LIMIT ${n}
7
+ RETURN n.name AS name, LABEL(n) AS type, n.filePath AS filePath, connections
8
+ `;return(await i(s)).map(t=>Array.isArray(t)?{name:t[0],type:t[1],filePath:t[2],connections:t[3]}:{name:t.name,type:t.type,filePath:t.filePath,connections:t.connections}).filter(t=>t.name&&t.type)}catch(s){return console.error("Failed to get hotspots:",s),[]}}async function A(i,n=10,s="indented"){try{const r=(await i("MATCH (f:File) RETURN f.filePath AS path ORDER BY path")).map(o=>Array.isArray(o)?o[0]:o.path).filter(Boolean);if(r.length===0)return"";if(s==="ascii"){const o=$(r,n);return C(o,"",!0)}return T(r,n)}catch(e){return console.error("Failed to get folder tree:",e),""}}function T(i,n){const s={children:new Map,fileCount:0};for(const r of i){const l=r.replace(/\\/g,"/").split("/").filter(Boolean);let u=s;for(let c=0;c<l.length;c++){const a=l[c],f=c===l.length-1;if(u.children.has(a)||u.children.set(a,{isFile:f,children:new Map,fileCount:0}),u=u.children.get(a),f){let h=s;for(let p=0;p<c;p++)h=h.children.get(l[p]),h.fileCount++}}}const e=[];function t(r,o,l){const u=[...r.children.entries()];u.sort(([c,a],[f,h])=>a.isFile!==h.isFile?a.isFile?1:-1:!a.isFile&&!h.isFile?h.fileCount-a.fileCount:c.localeCompare(f));for(const[c,a]of u)if(a.isFile)e.push(`${o}${c}`);else{a.children.size;const f=a.fileCount;l>=n?e.push(`${o}${c}/ (${f} files)`):(e.push(`${o}${c}/`),t(a,o+" ",l+1))}}return t(s,"",0),e.join(`
9
+ `)}function $(i,n){const s=new Map;for(const e of i){const r=e.replace(/\\/g,"/").split("/").filter(Boolean);let o=s;const l=Math.min(r.length,n+1);for(let u=0;u<l;u++){const c=r[u],a=u===r.length-1;o.has(c)||o.set(c,a?null:new Map);const f=o.get(c);if(f instanceof Map)o=f;else break}}return s}function C(i,n,s=!0){const e=[],t=Array.from(i.entries());return t.sort(([r,o],[l,u])=>{const c=o instanceof Map,a=u instanceof Map;return c!==a?a?1:-1:r.localeCompare(l)}),t.forEach(([r,o],l)=>{const u=l===t.length-1,c=u?"└── ":"├── ",a=n+(u?" ":"│ ");if(o instanceof Map&&o.size>0){const f=y(o),h=f>3?` (${f} items)`:"";e.push(`${n}${c}${r}/${h}`),e.push(C(o,a,u))}else o instanceof Map?e.push(`${n}${c}${r}/`):e.push(`${n}${c}${r}`)}),e.filter(Boolean).join(`
10
+ `)}function y(i){let n=0;for(const[,s]of i)s instanceof Map?n+=1+y(s):n+=1;return n}async function E(i,n,s="indented"){const[e,t,r]=await Promise.all([d(i,n),m(i),A(i,10,s)]);return{stats:e,hotspots:t,folderTree:r}}function R(i){const{stats:n,hotspots:s,folderTree:e}=i,t=[];t.push(`### 📊 CODEBASE: ${n.projectName}`);const r=[`Files: ${n.fileCount}`,`Functions: ${n.functionCount}`,n.classCount>0?`Classes: ${n.classCount}`:null,n.interfaceCount>0?`Interfaces: ${n.interfaceCount}`:null].filter(Boolean);return t.push(r.join(" | ")),t.push(""),s.length>0&&(t.push("**Hotspots** (most connected):"),s.slice(0,5).forEach(o=>{t.push(`- \`${o.name}\` (${o.type}) — ${o.connections} edges`)}),t.push("")),e&&(t.push("### 📁 STRUCTURE"),t.push("```"),t.push(n.projectName+"/"),t.push(e),t.push("```")),t.join(`
11
+ `)}function M(i,n){const s=R(n);return`${i}
12
+
13
+ ---
14
+
15
+ ## 📦 CURRENT CODEBASE
16
+ ${s}`}export{E as buildCodebaseContext,M as buildDynamicSystemPrompt,$ as buildTreeFromPaths,R as formatContextForPrompt,C as formatTreeAsAscii,d as getCodebaseStats,A as getFolderTree,m as getHotspots};