@softistx/pulsarix-widget 0.8.2 → 0.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/dist/chunks/{abnfDiagram-XWFEHMT6.jcqkp43e.js → abnfDiagram-XWFEHMT6.9eyf87ze.js} +1 -1
  2. package/dist/chunks/architecture-WOLXFQ4H.230b0n6c.js +1 -0
  3. package/dist/chunks/{architectureDiagram-CSQXQB3N.pk9dxdfb.js → architectureDiagram-CSQXQB3N.cy6247c8.js} +1 -1
  4. package/dist/chunks/{blockDiagram-BEDRHYPZ.ehefn7dt.js → blockDiagram-BEDRHYPZ.an5w7tk4.js} +1 -1
  5. package/dist/chunks/{c4Diagram-M2UUVUY5.knj3as6x.js → c4Diagram-M2UUVUY5.512525r3.js} +1 -1
  6. package/dist/chunks/{chat-markdown-DLDNLXM9.tvekh9sm.js → chat-markdown-COFhHMpe.fm39gs4e.js} +2 -2
  7. package/dist/chunks/{classDiagram-v2-KXABOMEV.vtb7vjzn.js → classDiagram-v2-KXABOMEV.5gw6azyv.js} +1 -1
  8. package/dist/chunks/{cose-bilkent-JH36ORCC.gb18dr42.js → cose-bilkent-JH36ORCC.9t42zmky.js} +1 -1
  9. package/dist/chunks/cynefin-EF2NZ3EQ.e9ycn4jb.js +1 -0
  10. package/dist/chunks/{cynefinDiagram-NJNITYFG.akmr90zk.js → cynefinDiagram-NJNITYFG.dta2tfnh.js} +1 -1
  11. package/dist/chunks/{dagre-KIHZ2IZ3.7n7s7vq2.js → dagre-KIHZ2IZ3.k7b2vmwy.js} +1 -1
  12. package/dist/chunks/{diagram-7YQZDPLS.d3sdv0py.js → diagram-7YQZDPLS.cd2t0saz.js} +1 -1
  13. package/dist/chunks/{diagram-QBROCOUO.2v08zs42.js → diagram-QBROCOUO.1x4d8w7m.js} +1 -1
  14. package/dist/chunks/{diagram-RJJCUUZO.tpnwa621.js → diagram-RJJCUUZO.jk65d82z.js} +1 -1
  15. package/dist/chunks/{diagram-WERXNKYE.hz7tgbtr.js → diagram-WERXNKYE.85c3en4j.js} +1 -1
  16. package/dist/chunks/{diagram-YHHI257C.9gge9ecb.js → diagram-YHHI257C.y494n4nm.js} +1 -1
  17. package/dist/chunks/{diagram-YR4HJLHV.bajpx75b.js → diagram-YR4HJLHV.z2n88j9s.js} +1 -1
  18. package/dist/chunks/{ebnfDiagram-N527522P.hxbbq671.js → ebnfDiagram-N527522P.cgfkzbkp.js} +1 -1
  19. package/dist/chunks/{editor-shortcuts-dialog-I77EAez1.0s00eh53.js → editor-shortcuts-dialog-Ch8GFC-h.n66q7eep.js} +1 -1
  20. package/dist/chunks/editor.yc8q5dd1.js +4 -0
  21. package/dist/chunks/{elk-O5DQBFGD.vy7cdqps.js → elk-O5DQBFGD.188pnf8b.js} +1 -1
  22. package/dist/chunks/{emoji-picker-BofyuTmK.qf287fk6.js → emoji-picker-Cv6ZOgpd.cmp5h45n.js} +1 -1
  23. package/dist/chunks/{erDiagram-K3K3BIDK.kzs3v0ts.js → erDiagram-K3K3BIDK.abxf5cgs.js} +1 -1
  24. package/dist/chunks/eventmodeling-K75KTNOO.q3y4xbmj.js +1 -0
  25. package/dist/chunks/{flow-diagram-OPO1ep57.5006stqg.js → flow-diagram-B6X1M34-.awp18a9v.js} +1 -1
  26. package/dist/chunks/flowDiagram-Z6JWZHQI.af312t1k.js +1 -0
  27. package/dist/chunks/{ganttDiagram-3PRQTZWP.qkcp8pvg.js → ganttDiagram-3PRQTZWP.p72ak8vx.js} +1 -1
  28. package/dist/chunks/gitGraph-VSP46ZUC.e4envgw8.js +1 -0
  29. package/dist/chunks/{gitGraphDiagram-VXDFKS5L.ry9dejxm.js → gitGraphDiagram-VXDFKS5L.vtq378bg.js} +1 -1
  30. package/dist/chunks/{grid-E2QIVN74.q51enfx7.js → grid-E2QIVN74.8xqrr45y.js} +1 -1
  31. package/dist/chunks/illustration-BpmMAKpO.brt46gkr.js +1 -0
  32. package/dist/chunks/{index.fvh2m60c.js → index.2jsv3483.js} +1 -1
  33. package/dist/chunks/index.5vcex75v.js +44 -0
  34. package/dist/chunks/{index.20dvswea.js → index.6tc2v7mk.js} +1 -1
  35. package/dist/chunks/{index.bfeafb22.js → index.8hmrz817.js} +1 -1
  36. package/dist/chunks/{index.eec12m3n.js → index.b0pypc3w.js} +1 -1
  37. package/dist/chunks/{index.yf0h5qnv.js → index.btq862bx.js} +1 -1
  38. package/dist/chunks/{index.fab58nn0.js → index.je7pqrtm.js} +1 -1
  39. package/dist/chunks/{index.51yk4ene.js → index.jgvp2nkv.js} +1 -1
  40. package/dist/chunks/{index.fgsp5qqn.js → index.mjfjqm0b.js} +2 -2
  41. package/dist/chunks/{index.vnhefjwh.js → index.nphh2dtn.js} +1 -1
  42. package/dist/chunks/{index.23p1k2rx.js → index.pb5tn7q8.js} +1 -1
  43. package/dist/chunks/{index.x163xe9c.js → index.psaka010.js} +1 -1
  44. package/dist/chunks/{index.153rcscj.js → index.qy1pndre.js} +1 -1
  45. package/dist/chunks/{index.gqa9s37g.js → index.r8wc9n4q.js} +1 -1
  46. package/dist/chunks/{index.x1xqs5m5.js → index.vm7ezzet.js} +1 -1
  47. package/dist/chunks/{index.q9dsw4bt.js → index.x22rwqsz.js} +1 -1
  48. package/dist/chunks/{index.h6120080.js → index.ybmxf4mt.js} +1 -1
  49. package/dist/chunks/{index.9zhger75.js → index.yd3167gn.js} +2 -2
  50. package/dist/chunks/info-OHQRW6UA.yhwzx56w.js +1 -0
  51. package/dist/chunks/{infoDiagram-EZ3ZOAHP.r2yygqw8.js → infoDiagram-EZ3ZOAHP.q0047zjz.js} +1 -1
  52. package/dist/chunks/{ishikawaDiagram-S3EKX5GW.gwqtdvb2.js → ishikawaDiagram-S3EKX5GW.41wwb1jp.js} +1 -1
  53. package/dist/chunks/{journeyDiagram-POQNLL5X.rp31qkq5.js → journeyDiagram-POQNLL5X.2c9swtn6.js} +1 -1
  54. package/dist/chunks/{kanban-definition-BH5XI6FM.ymsqx6en.js → kanban-definition-BH5XI6FM.xznh9d30.js} +1 -1
  55. package/dist/chunks/{markup-color-chrome-ykGNUl8y.06cy435c.js → markup-color-chrome-ykGNUl8y.955bjndb.js} +1 -1
  56. package/dist/chunks/{markup-custom-color-C8Xc6JxB.an2wngns.js → markup-custom-color-Dou38qUi.w8c65wn1.js} +1 -1
  57. package/dist/chunks/{mention-list-Dhq70jL5.1k61f24q.js → mention-list-D4eNNVs0.2k5cdtgy.js} +1 -1
  58. package/dist/chunks/{mermaid.core.x45crg0h.js → mermaid.core.d680cq0m.js} +2 -2
  59. package/dist/chunks/{mindmap-definition-WVAN44T4.5cbd4rg2.js → mindmap-definition-WVAN44T4.k41b9d4r.js} +1 -1
  60. package/dist/chunks/packet-JDAUHWVQ.gp9cmm94.js +1 -0
  61. package/dist/chunks/{panel.nm4pj2wm.js → panel.yh0jnkha.js} +1 -1
  62. package/dist/chunks/{pegDiagram-D4NLKWP3.fsryts4r.js → pegDiagram-D4NLKWP3.x25624w6.js} +1 -1
  63. package/dist/chunks/pie-XZMESJXO.fx385qqa.js +1 -0
  64. package/dist/chunks/{pieDiagram-36ENHN4W.k4k2gvg0.js → pieDiagram-36ENHN4W.j4fq9134.js} +1 -1
  65. package/dist/chunks/{plated-illustration-BzxADkoZ.wtc9psry.js → plated-illustration-0ro04oJt.0ebg0x7r.js} +1 -1
  66. package/dist/chunks/{quadrantDiagram-ZQUDMS73.j7nj12w0.js → quadrantDiagram-ZQUDMS73.1vgwgk90.js} +1 -1
  67. package/dist/chunks/radar-ABXABTNO.d58r1mqp.js +1 -0
  68. package/dist/chunks/railroad-I3PHUGI6.cwq84f31.js +1 -0
  69. package/dist/chunks/railroad-abnf-LNEFI6M7.7z7d547m.js +1 -0
  70. package/dist/chunks/railroad-ebnf-DWYD2UWJ.geje0ygg.js +1 -0
  71. package/dist/chunks/railroad-peg-JR7BVNR7.f8xnzs1y.js +1 -0
  72. package/dist/chunks/{railroadDiagram-JIZHGYPL.a681wt3b.js → railroadDiagram-JIZHGYPL.pbv1rqfp.js} +1 -1
  73. package/dist/chunks/{render-VIF2ZAQL.rn9hpsbx.js → render-VIF2ZAQL.2kz294jj.js} +1 -1
  74. package/dist/chunks/{requirementDiagram-AXW2TVFA.shapgy39.js → requirementDiagram-AXW2TVFA.qnxmvqx8.js} +1 -1
  75. package/dist/chunks/{sankeyDiagram-FBCJTAIF.2syz1e2b.js → sankeyDiagram-FBCJTAIF.whv6dy60.js} +1 -1
  76. package/dist/chunks/{sequenceDiagram-3LA2ROMG.jq1w12a6.js → sequenceDiagram-3LA2ROMG.w52darq5.js} +1 -1
  77. package/dist/chunks/{sizeCapture-2Q2CQKSF.jtv53a6j.js → sizeCapture-2Q2CQKSF.zgscrz2v.js} +1 -1
  78. package/dist/chunks/{stateDiagram-v2-ATKHQDJO.x0g2rngz.js → stateDiagram-v2-ATKHQDJO.zk8w1ht1.js} +1 -1
  79. package/dist/chunks/{swimlanes-YQL5WMAO.j7j7c6ex.js → swimlanes-YQL5WMAO.cn1pz0jc.js} +1 -1
  80. package/dist/chunks/swimlanesDiagram-UCCPES4V.cy9ywqbn.js +8 -0
  81. package/dist/chunks/{timeline-definition-7Z437IG3.s5bvn8dr.js → timeline-definition-7Z437IG3.atpqnb0j.js} +1 -1
  82. package/dist/chunks/treeView-D4JQ5SDB.fj76b06b.js +1 -0
  83. package/dist/chunks/treemap-SAJKECNS.yk7967y9.js +1 -0
  84. package/dist/chunks/{usecaseDiagram-RDK6N6HP.9k4r423e.js → usecaseDiagram-RDK6N6HP.ase4sfgd.js} +1 -1
  85. package/dist/chunks/{vennDiagram-SHRQU5PJ.82q5dzm6.js → vennDiagram-SHRQU5PJ.as8z3hh5.js} +1 -1
  86. package/dist/chunks/wardley-7MLQ67FV.r3k2k1ra.js +1 -0
  87. package/dist/chunks/{wardleyDiagram-F3OXNVQS.fm4tw2nc.js → wardleyDiagram-F3OXNVQS.8pf1xb65.js} +1 -1
  88. package/dist/chunks/{xychartDiagram-GDYJKCDI.57vqn2zd.js → xychartDiagram-GDYJKCDI.z35xw169.js} +1 -1
  89. package/dist/index.js +5 -5
  90. package/package.json +2 -2
  91. package/dist/chunks/architecture-WOLXFQ4H.6qa86taq.js +0 -1
  92. package/dist/chunks/cynefin-EF2NZ3EQ.e86yfa9w.js +0 -1
  93. package/dist/chunks/editor.h5bxwyxn.js +0 -4
  94. package/dist/chunks/eventmodeling-K75KTNOO.9yb5zf47.js +0 -1
  95. package/dist/chunks/flowDiagram-Z6JWZHQI.zf0kndsp.js +0 -1
  96. package/dist/chunks/gitGraph-VSP46ZUC.txpj8e6d.js +0 -1
  97. package/dist/chunks/illustration-BoOzuxNg.h0gnxa4s.js +0 -1
  98. package/dist/chunks/index.0hrfbrja.js +0 -44
  99. package/dist/chunks/info-OHQRW6UA.xea9bh7d.js +0 -1
  100. package/dist/chunks/packet-JDAUHWVQ.c7dmae11.js +0 -1
  101. package/dist/chunks/pie-XZMESJXO.6rv4kzjx.js +0 -1
  102. package/dist/chunks/radar-ABXABTNO.58dfc8ba.js +0 -1
  103. package/dist/chunks/railroad-I3PHUGI6.00fqbahv.js +0 -1
  104. package/dist/chunks/railroad-abnf-LNEFI6M7.gt1x50q5.js +0 -1
  105. package/dist/chunks/railroad-ebnf-DWYD2UWJ.qr5qfkga.js +0 -1
  106. package/dist/chunks/railroad-peg-JR7BVNR7.m61rq7hj.js +0 -1
  107. package/dist/chunks/swimlanesDiagram-UCCPES4V.tzqcsrmd.js +0 -8
  108. package/dist/chunks/treeView-D4JQ5SDB.0x1grm2t.js +0 -1
  109. package/dist/chunks/treemap-SAJKECNS.1te19jsm.js +0 -1
  110. package/dist/chunks/wardley-7MLQ67FV.zp6gykk3.js +0 -1
@@ -1,4 +1,4 @@
1
- import{Xn}from"./index.153rcscj.js";import{e,n,be,gt,Pe,Rr,y,A,L,I,R,M,O,D,u,Pt,Kr,m,ut,dt,ve,he,pe,tt,z,We,aa,Cs,bn,Ae,_e}from"./index.fgsp5qqn.js";import{Xt}from"./index.23p1k2rx.js";import{Xe}from"./index.eec12m3n.js";import{Ee}from"./index.gqa9s37g.js";import{ge}from"./index.h6120080.js";var x1="flowchart-",g1=["row","column","horizontalAlign","verticalAlign"],F1=new Set(["shape","label","icon","form","pos","img","w","h","constraint","priority","assigned","ticket","labelType","view",...g1]);function _t(t,r=!1){if(!t)return;let o=t,a={};for(let l of g1)if(Object.hasOwn(o,l))a[l]=o[l];if(r&&Object.hasOwn(o,"algorithm"))a.algorithm=o.algorithm;return Object.keys(a).length>0?a:void 0}e(_t,"pickFlowchartLayoutMetadata");var v1=["laneRole","laneIndex","drawnExtent"];function A1(t){if(!t||typeof t!=="object")return t;let r={...t};for(let o of v1)Reflect.deleteProperty(r,o);return r}e(A1,"withoutInternalKeys");var _1=class{constructor(){this.vertexCounter=0,this.config=u(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.droppedSubGraphMembers=[],this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=L,this.setAccDescription=R,this.setDiagramTitle=O,this.getAccTitle=I,this.getAccDescription=M,this.getDiagramTitle=D,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{e(this,"FlowDB")}sanitizeText(t){return y.sanitizeText(t,this.config)}sanitizeNodeLabelType(t){switch(t){case"markdown":case"string":case"text":return t;default:return"markdown"}}setDiagramId(t){this.diagramId=t}lookUpDomId(t){for(let r of this.vertices.values())if(r.id===t)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${t}`:t}addVertex(t,r,o,a,l,b,d={},C){if(!t||t.trim().length===0)return;let p;if(C!==void 0){let S;if(!C.includes(`
1
+ import{Xn}from"./index.qy1pndre.js";import{e,n,be,gt,Pe,Rr,y,A,L,I,R,M,O,D,u,Pt,Kr,m,ut,dt,ve,he,pe,tt,z,We,aa,Cs,bn,Ae,_e}from"./index.mjfjqm0b.js";import{Xt}from"./index.pb5tn7q8.js";import{Xe}from"./index.b0pypc3w.js";import{Ee}from"./index.r8wc9n4q.js";import{ge}from"./index.ybmxf4mt.js";var x1="flowchart-",g1=["row","column","horizontalAlign","verticalAlign"],F1=new Set(["shape","label","icon","form","pos","img","w","h","constraint","priority","assigned","ticket","labelType","view",...g1]);function _t(t,r=!1){if(!t)return;let o=t,a={};for(let l of g1)if(Object.hasOwn(o,l))a[l]=o[l];if(r&&Object.hasOwn(o,"algorithm"))a.algorithm=o.algorithm;return Object.keys(a).length>0?a:void 0}e(_t,"pickFlowchartLayoutMetadata");var v1=["laneRole","laneIndex","drawnExtent"];function A1(t){if(!t||typeof t!=="object")return t;let r={...t};for(let o of v1)Reflect.deleteProperty(r,o);return r}e(A1,"withoutInternalKeys");var _1=class{constructor(){this.vertexCounter=0,this.config=u(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.droppedSubGraphMembers=[],this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=L,this.setAccDescription=R,this.setDiagramTitle=O,this.getAccTitle=I,this.getAccDescription=M,this.getDiagramTitle=D,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{e(this,"FlowDB")}sanitizeText(t){return y.sanitizeText(t,this.config)}sanitizeNodeLabelType(t){switch(t){case"markdown":case"string":case"text":return t;default:return"markdown"}}setDiagramId(t){this.diagramId=t}lookUpDomId(t){for(let r of this.vertices.values())if(r.id===t)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${t}`:t}addVertex(t,r,o,a,l,b,d={},C){if(!t||t.trim().length===0)return;let p;if(C!==void 0){let S;if(!C.includes(`
2
2
  `))S=`{
3
3
  `+C+`
4
4
  }`;else S=C+`
@@ -1,2 +1,2 @@
1
- import{f,d,w,i,X,r,re,ke,B,Je,tr,yr,ci,ui}from"./index.0hrfbrja.js";var N=Object.defineProperty,A=(e,o)=>N(e,"name",{value:o,configurable:!0}),F=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,o)=>{let t=re(`Primitive.${o}`),a=f((n,u)=>{let{asChild:s,...l}=n,c=s?t:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r(c,{...l,ref:u})});return a.displayName=`Primitive.${o}`,{...e,[o]:a}},{});function H(e,o){e&&X(()=>e.dispatchEvent(o))}A(H,"dispatchDiscreteCustomEvent");var Q=Object.defineProperty,R=(e,o)=>Q(e,"name",{value:o,configurable:!0}),C={Horizontal:"horizontal",Vertical:"vertical"},P=C.Horizontal,q=Object.values(C),Is=f(R(function(e,o){let{decorative:t,orientation:a=P,...n}=e,u=G(a)?a:P,s=u===C.Vertical?u:void 0,l=t?{role:"none"}:{"aria-orientation":s,role:"separator"};return r(F.div,{"data-orientation":u,...l,...n,ref:o})},"Separator"));function G(e){return q.includes(e)}R(G,"isValidOrientation");var J=Object.defineProperty,K=(e,o)=>J(e,"name",{value:o,configurable:!0}),L=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,o)=>{let t=re(`Primitive.${o}`),a=f((n,u)=>{let{asChild:s,...l}=n,c=s?t:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r(c,{...l,ref:u})});return a.displayName=`Primitive.${o}`,{...e,[o]:a}},{});function U(e,o){e&&X(()=>e.dispatchEvent(o))}K(U,"dispatchDiscreteCustomEvent");var W=Object.defineProperty,Y=(e,o)=>W(e,"name",{value:o,configurable:!0}),Z="Toggle",ee=f(Y(function(e,o){let{pressed:t,defaultPressed:a,onPressedChange:n,...u}=e,[s,l]=Je({prop:t,onChange:n,defaultProp:a??!1,caller:Z});return r(L.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...u,ref:o,onClick:B(e.onClick,()=>{e.disabled||l(!s)})})},"Toggle")),oe=Object.defineProperty,ae=(e,o)=>oe(e,"name",{value:o,configurable:!0}),_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,o)=>{let t=re(`Primitive.${o}`),a=f((n,u)=>{let{asChild:s,...l}=n,c=s?t:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r(c,{...l,ref:u})});return a.displayName=`Primitive.${o}`,{...e,[o]:a}},{});function ie(e,o){e&&X(()=>e.dispatchEvent(o))}ae(ie,"dispatchDiscreteCustomEvent");var te=Object.defineProperty,p=(e,o)=>te(e,"name",{value:o,configurable:!0}),m="ToggleGroup",b={Single:"single",Multiple:"multiple"},[I,j]=ke(m,[yr]),O=yr(),Sl=f(p(function(e,o){let{type:t,...a}=e;if(t===b.Single)return r(le,{role:"radiogroup",...a,ref:o});if(t===b.Multiple)return r(ne,{role:"toolbar",...a,ref:o});throw Error(`Missing prop \`type\` expected on \`${m}\``)},"ToggleGroup")),[E,V]=I(m),le=f(p(function(e,o){let{value:t,defaultValue:a,onValueChange:n=p(()=>{},"onValueChange"),...u}=e,[s,l]=Je({prop:t,defaultProp:a??"",onChange:n,caller:m});return r(E,{scope:e.__scopeToggleGroup,type:b.Single,value:w(()=>s?[s]:[],[s]),onItemActivate:l,onItemDeactivate:d(()=>l(""),[l]),children:r(x,{...u,ref:o})})},"ToggleGroupImplSingle")),ne=f(p(function(e,o){let{value:t,defaultValue:a,onValueChange:n=p(()=>{},"onValueChange"),...u}=e,[s,l]=Je({prop:t,defaultProp:a??[],onChange:n,caller:m}),c=d((v)=>l((g=[])=>[...g,v]),[l]),h=d((v)=>l((g=[])=>g.filter((M)=>M!==v)),[l]);return r(E,{scope:e.__scopeToggleGroup,type:b.Multiple,value:s,onItemActivate:c,onItemDeactivate:h,children:r(x,{...u,ref:o})})},"ToggleGroupImplMultiple")),[ue,de]=I(m),x=f(p(function(e,o){let{__scopeToggleGroup:t,disabled:a=!1,rovingFocus:n=!0,orientation:u,dir:s,loop:l=!0,...c}=e,h=O(t),v=tr(s),g={dir:v,...c};return r(ue,{scope:t,rovingFocus:n,disabled:a,children:n?r(ci,{asChild:!0,...h,orientation:u,dir:v,loop:l,children:r(_.div,{...g,ref:o})}):r(_.div,{...g,ref:o})})},"ToggleGroupImpl")),y="ToggleGroupItem",El=f(p(function(e,o){let t=V(y,e.__scopeToggleGroup),a=de(y,e.__scopeToggleGroup),n=O(e.__scopeToggleGroup),u=t.value.includes(e.value),s=a.disabled||e.disabled,l={...e,pressed:u,disabled:s},c=i(null);return a.rovingFocus?r(ui,{asChild:!0,...n,focusable:!s,active:u,ref:c,children:r(S,{...l,ref:o})}):r(S,{...l,ref:o})},"ToggleGroupItem")),S=f(p(function(e,o){let{__scopeToggleGroup:t,value:a,...n}=e,u=V(y,t),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l=u.type===b.Single?s:void 0;return r(ee,{...l,...n,ref:o,onPressedChange:(c)=>{c?u.onItemActivate(a):u.onItemDeactivate(a)}})},"ToggleGroupItemImpl")),se=Object.defineProperty,fe=(e,o)=>se(e,"name",{value:o,configurable:!0}),D=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,o)=>{let t=re(`Primitive.${o}`),a=f((n,u)=>{let{asChild:s,...l}=n,c=s?t:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r(c,{...l,ref:u})});return a.displayName=`Primitive.${o}`,{...e,[o]:a}},{});function ce(e,o){e&&X(()=>e.dispatchEvent(o))}fe(ce,"dispatchDiscreteCustomEvent");var pe=Object.defineProperty,T=(e,o)=>pe(e,"name",{value:o,configurable:!0}),k="Toolbar",[ve,Te]=ke(k,[yr,j]),z=yr();j();var[ge,me]=ve(k),Al=f(T(function(e,o){let{__scopeToolbar:t,orientation:a="horizontal",dir:n,loop:u=!0,...s}=e,l=z(t),c=tr(n);return r(ge,{scope:t,orientation:a,dir:c,children:r(ci,{asChild:!0,...l,orientation:a,dir:c,loop:u,children:r(D.div,{role:"toolbar","aria-orientation":a,dir:c,...s,ref:o})})})},"Toolbar")),be="ToolbarSeparator",_l=f(T(function(e,o){let{__scopeToolbar:t,...a}=e,n=me(be,t);return r(Is,{orientation:n.orientation==="horizontal"?"vertical":"horizontal",...a,ref:o})},"ToolbarSeparator")),oa=f(T(function(e,o){let{__scopeToolbar:t,...a}=e,n=z(t);return r(ui,{asChild:!0,...n,focusable:!e.disabled,children:r(D.button,{type:"button",...a,ref:o})})},"ToolbarButton"));
1
+ import{f,d,w,i,X,r,re,ke,B,Je,tr,yr,ci,ui}from"./index.5vcex75v.js";var N=Object.defineProperty,A=(e,o)=>N(e,"name",{value:o,configurable:!0}),F=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,o)=>{let t=re(`Primitive.${o}`),a=f((n,u)=>{let{asChild:s,...l}=n,c=s?t:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r(c,{...l,ref:u})});return a.displayName=`Primitive.${o}`,{...e,[o]:a}},{});function H(e,o){e&&X(()=>e.dispatchEvent(o))}A(H,"dispatchDiscreteCustomEvent");var q=Object.defineProperty,S=(e,o)=>q(e,"name",{value:o,configurable:!0}),C={Horizontal:"horizontal",Vertical:"vertical"},P=C.Horizontal,J=Object.values(C),Is=f(S(function(e,o){let{decorative:t,orientation:a=P,...n}=e,u=G(a)?a:P,s=u===C.Vertical?u:void 0,l=t?{role:"none"}:{"aria-orientation":s,role:"separator"};return r(F.div,{"data-orientation":u,...l,...n,ref:o})},"Separator"));function G(e){return J.includes(e)}S(G,"isValidOrientation");var K=Object.defineProperty,L=(e,o)=>K(e,"name",{value:o,configurable:!0}),Q=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,o)=>{let t=re(`Primitive.${o}`),a=f((n,u)=>{let{asChild:s,...l}=n,c=s?t:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r(c,{...l,ref:u})});return a.displayName=`Primitive.${o}`,{...e,[o]:a}},{});function U(e,o){e&&X(()=>e.dispatchEvent(o))}L(U,"dispatchDiscreteCustomEvent");var W=Object.defineProperty,Y=(e,o)=>W(e,"name",{value:o,configurable:!0}),Z="Toggle",ee=f(Y(function(e,o){let{pressed:t,defaultPressed:a,onPressedChange:n,...u}=e,[s,l]=Je({prop:t,onChange:n,defaultProp:a??!1,caller:Z});return r(Q.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...u,ref:o,onClick:B(e.onClick,()=>{e.disabled||l(!s)})})},"Toggle")),oe=Object.defineProperty,ae=(e,o)=>oe(e,"name",{value:o,configurable:!0}),_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,o)=>{let t=re(`Primitive.${o}`),a=f((n,u)=>{let{asChild:s,...l}=n,c=s?t:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r(c,{...l,ref:u})});return a.displayName=`Primitive.${o}`,{...e,[o]:a}},{});function ie(e,o){e&&X(()=>e.dispatchEvent(o))}ae(ie,"dispatchDiscreteCustomEvent");var te=Object.defineProperty,p=(e,o)=>te(e,"name",{value:o,configurable:!0}),m="ToggleGroup",b={Single:"single",Multiple:"multiple"},[I,j]=ke(m,[yr]),O=yr(),Sl=f(p(function(e,o){let{type:t,...a}=e;if(t===b.Single)return r(le,{role:"radiogroup",...a,ref:o});if(t===b.Multiple)return r(ne,{role:"toolbar",...a,ref:o});throw Error(`Missing prop \`type\` expected on \`${m}\``)},"ToggleGroup")),[E,V]=I(m),le=f(p(function(e,o){let{value:t,defaultValue:a,onValueChange:n=p(()=>{},"onValueChange"),...u}=e,[s,l]=Je({prop:t,defaultProp:a??"",onChange:n,caller:m});return r(E,{scope:e.__scopeToggleGroup,type:b.Single,value:w(()=>s?[s]:[],[s]),onItemActivate:l,onItemDeactivate:d(()=>l(""),[l]),children:r(x,{...u,ref:o})})},"ToggleGroupImplSingle")),ne=f(p(function(e,o){let{value:t,defaultValue:a,onValueChange:n=p(()=>{},"onValueChange"),...u}=e,[s,l]=Je({prop:t,defaultProp:a??[],onChange:n,caller:m}),c=d((v)=>l((g=[])=>[...g,v]),[l]),h=d((v)=>l((g=[])=>g.filter((M)=>M!==v)),[l]);return r(E,{scope:e.__scopeToggleGroup,type:b.Multiple,value:s,onItemActivate:c,onItemDeactivate:h,children:r(x,{...u,ref:o})})},"ToggleGroupImplMultiple")),[ue,de]=I(m),x=f(p(function(e,o){let{__scopeToggleGroup:t,disabled:a=!1,rovingFocus:n=!0,orientation:u,dir:s,loop:l=!0,...c}=e,h=O(t),v=tr(s),g={dir:v,...c};return r(ue,{scope:t,rovingFocus:n,disabled:a,children:n?r(ci,{asChild:!0,...h,orientation:u,dir:v,loop:l,children:r(_.div,{...g,ref:o})}):r(_.div,{...g,ref:o})})},"ToggleGroupImpl")),y="ToggleGroupItem",El=f(p(function(e,o){let t=V(y,e.__scopeToggleGroup),a=de(y,e.__scopeToggleGroup),n=O(e.__scopeToggleGroup),u=t.value.includes(e.value),s=a.disabled||e.disabled,l={...e,pressed:u,disabled:s},c=i(null);return a.rovingFocus?r(ui,{asChild:!0,...n,focusable:!s,active:u,ref:c,children:r(R,{...l,ref:o})}):r(R,{...l,ref:o})},"ToggleGroupItem")),R=f(p(function(e,o){let{__scopeToggleGroup:t,value:a,...n}=e,u=V(y,t),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l=u.type===b.Single?s:void 0;return r(ee,{...l,...n,ref:o,onPressedChange:(c)=>{c?u.onItemActivate(a):u.onItemDeactivate(a)}})},"ToggleGroupItemImpl")),se=Object.defineProperty,fe=(e,o)=>se(e,"name",{value:o,configurable:!0}),D=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,o)=>{let t=re(`Primitive.${o}`),a=f((n,u)=>{let{asChild:s,...l}=n,c=s?t:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r(c,{...l,ref:u})});return a.displayName=`Primitive.${o}`,{...e,[o]:a}},{});function ce(e,o){e&&X(()=>e.dispatchEvent(o))}fe(ce,"dispatchDiscreteCustomEvent");var pe=Object.defineProperty,T=(e,o)=>pe(e,"name",{value:o,configurable:!0}),k="Toolbar",[ve,Te]=ke(k,[yr,j]),z=yr();j();var[ge,me]=ve(k),Al=f(T(function(e,o){let{__scopeToolbar:t,orientation:a="horizontal",dir:n,loop:u=!0,...s}=e,l=z(t),c=tr(n);return r(ge,{scope:t,orientation:a,dir:c,children:r(ci,{asChild:!0,...l,orientation:a,dir:c,loop:u,children:r(D.div,{role:"toolbar","aria-orientation":a,dir:c,...s,ref:o})})})},"Toolbar")),be="ToolbarSeparator",_l=f(T(function(e,o){let{__scopeToolbar:t,...a}=e,n=me(be,t);return r(Is,{orientation:n.orientation==="horizontal"?"vertical":"horizontal",...a,ref:o})},"ToolbarSeparator")),oa=f(T(function(e,o){let{__scopeToolbar:t,...a}=e,n=z(t);return r(ui,{asChild:!0,...n,focusable:!e.disabled,children:r(D.button,{type:"button",...a,ref:o})})},"ToolbarButton"));
2
2
  export{Is,Sl,El,Al,_l,oa};
@@ -1,2 +1,2 @@
1
- import{e,n,j}from"./index.fgsp5qqn.js";var ge=e((t,i,o,h)=>{t.attr("class",o);let{width:r,height:a,x:w,y:x}=u(t,i);j(t,a,r,h);let c=m(w,x,r,a,i);t.attr("viewBox",c),n.debug(`viewBox configured: ${c} with padding: ${i}`)},"setupViewPortForSVG"),u=e((t,i)=>{let o=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:o.width+i*2,height:o.height+i*2,x:o.x,y:o.y}},"calculateDimensionsWithPadding"),m=e((t,i,o,h,r)=>`${t-r} ${i-r} ${o} ${h}`,"createViewBox");
1
+ import{e,n,j}from"./index.mjfjqm0b.js";var ge=e((t,i,o,h)=>{t.attr("class",o);let{width:r,height:a,x:w,y:x}=u(t,i);j(t,a,r,h);let c=m(w,x,r,a,i);t.attr("viewBox",c),n.debug(`viewBox configured: ${c} with padding: ${i}`)},"setupViewPortForSVG"),u=e((t,i)=>{let o=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:o.width+i*2,height:o.height+i*2,x:o.x,y:o.y}},"calculateDimensionsWithPadding"),m=e((t,i,o,h,r)=>`${t-r} ${i-r} ${o} ${h}`,"createViewBox");
2
2
  export{ge};
@@ -1,4 +1,4 @@
1
- import{sa,_}from"./index.0hrfbrja.js";var rn={};sa(rn,{AbnfAlternation:()=>go,AbnfConcatenation:()=>vo,AbnfElement:()=>hi,AbnfGroup:()=>To,AbnfNumVal:()=>$o,AbnfOptionalGroup:()=>Ro,AbnfPrimary:()=>cr,AbnfRule:()=>yi,AbnfRuleName:()=>Ao,AbnfStringLiteral:()=>Eo,AbstractMermaidTokenBuilder:()=>ce,AbstractMermaidValueConverter:()=>Ie,Architecture:()=>ot,ArchitectureGrammarGeneratedModule:()=>Ml,Branch:()=>Xn,Commit:()=>mr,CommonTokenBuilder:()=>kR,CommonValueConverter:()=>Je,Cynefin:()=>Ht,CynefinGrammarGeneratedModule:()=>Dl,DomainBlock:()=>Jn,DomainItem:()=>xi,EbnfChoice:()=>Co,EbnfExceptionPostfix:()=>bo,EbnfGroup:()=>_o,EbnfNonTerminal:()=>So,EbnfOneOrMorePostfix:()=>wo,EbnfOptional:()=>Po,EbnfOptionalPostfix:()=>ko,EbnfPostfix:()=>Yr,EbnfPrimary:()=>Vt,EbnfRepetition:()=>Io,EbnfRule:()=>gi,EbnfSequence:()=>No,EbnfSpecial:()=>Oo,EbnfTerm:()=>vi,EbnfTerminal:()=>Mo,EbnfZeroOrMorePostfix:()=>Do,EmDataEntity:()=>fr,EmFrame:()=>Kt,EmptyFileSystem:()=>le,EventModel:()=>ht,EventModelingGeneratedModule:()=>Ll,GitGraph:()=>Yt,GitGraphGrammarGeneratedModule:()=>xl,Info:()=>Qr,InfoGrammarGeneratedModule:()=>Gl,Merge:()=>hr,MermaidGeneratedSharedModule:()=>ue,Packet:()=>yr,PacketBlock:()=>gr,PacketGrammarGeneratedModule:()=>Fl,PegAny:()=>Lo,PegGroup:()=>xo,PegIdentifier:()=>Go,PegLiteral:()=>Fo,PegOrderedChoice:()=>jo,PegPrefix:()=>Ti,PegPrimary:()=>Xr,PegRule:()=>$i,PegSequence:()=>zo,PegSuffix:()=>Ri,Pie:()=>Xt,PieGrammarGeneratedModule:()=>jl,PieSection:()=>Zn,Radar:()=>Wt,RadarGrammarGeneratedModule:()=>zl,Railroad:()=>vr,RailroadAbnf:()=>Tr,RailroadAbnfGrammarGeneratedModule:()=>Bl,RailroadChoiceExpr:()=>Bo,RailroadEbnf:()=>$r,RailroadEbnfGrammarGeneratedModule:()=>Ul,RailroadExpression:()=>yt,RailroadGrammarGeneratedModule:()=>Vl,RailroadNonTerminalExpr:()=>Uo,RailroadOneOrMoreExpr:()=>Vo,RailroadOptionalExpr:()=>Wo,RailroadPeg:()=>Rr,RailroadPegGrammarGeneratedModule:()=>Kl,RailroadRule:()=>Ai,RailroadSequenceExpr:()=>qo,RailroadSpecialExpr:()=>Ho,RailroadTerminalExpr:()=>el,RailroadZeroOrMoreExpr:()=>tl,Statement:()=>pr,Transition:()=>en,TreeNode:()=>dr,TreeView:()=>Jr,TreeViewGrammarGeneratedModule:()=>ql,Treemap:()=>Ar,TreemapGrammarGeneratedModule:()=>Wl,Wardley:()=>Oe,WardleyGrammarGeneratedModule:()=>Hl,__name:()=>i,createDefaultCoreModule:()=>ne,createDefaultSharedCoreModule:()=>ae,inject:()=>W,isArchitecture:()=>Vp,isBranch:()=>Kp,isCommit:()=>Wp,isCynefin:()=>qp,isDomainBlock:()=>Hp,isDomainItem:()=>Yp,isEmModelEntityType:()=>Xp,isEmResetFrame:()=>ka,isGitGraph:()=>Jp,isInfo:()=>Zp,isMerge:()=>Qp,isPacket:()=>ed,isPacketBlock:()=>td,isPie:()=>rd,isPieSection:()=>nd,isRailroad:()=>ad,isRailroadAbnf:()=>id,isRailroadEbnf:()=>sd,isRailroadPeg:()=>od,isTransition:()=>ld,isTreemap:()=>ud,isWardley:()=>cd});var{create:rA,defineProperty:Gi,getOwnPropertyDescriptor:nA,getOwnPropertyNames:Sf,getPrototypeOf:aA}=Object,iA=Object.prototype.hasOwnProperty,i=(e,t)=>Gi(e,"name",{value:t,configurable:!0}),sA=(e,t)=>function(){return e&&(t=(0,e[Sf(e)[0]])(e=0)),t},J=(e,t)=>function(){return t||(0,e[Sf(e)[0]])((t={exports:{}}).exports,t),t.exports},oA=(e,t)=>{for(var r in t)Gi(e,r,{get:t[r],enumerable:!0})},Nm=(e,t,r,n)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let a of Sf(t))if(!iA.call(e,a)&&a!==r)Gi(e,a,{get:()=>t[a],enumerable:!(n=nA(t,a))||n.enumerable})}return e},wf=(e,t,r)=>(r=e!=null?rA(aA(e)):{},Nm(t||!e||!e.__esModule?Gi(r,"default",{value:e,enumerable:!0}):r,e)),Pf=(e)=>Nm(Gi({},"__esModule",{value:!0}),e),Fi=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/is.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.boolean=t,e.string=r,e.number=n,e.error=a,e.func=s,e.array=o,e.stringArray=l;function t(u){return u===!0||u===!1}i(t,"boolean");function r(u){return typeof u==="string"||u instanceof String}i(r,"string");function n(u){return typeof u==="number"||u instanceof Number}i(n,"number");function a(u){return u instanceof Error}i(a,"error");function s(u){return typeof u==="function"}i(s,"func");function o(u){return Array.isArray(u)}i(o,"array");function l(u){return o(u)&&u.every((c)=>r(c))}i(l,"stringArray")}}),Om=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messages.js"(e){var t=e&&e.__createBinding||(Object.create?function(A,g,C,O){if(O===void 0)O=C;var w=Object.getOwnPropertyDescriptor(g,C);if(!w||("get"in w?!g.__esModule:w.writable||w.configurable))w={enumerable:!0,get:i(function(){return g[C]},"get")};Object.defineProperty(A,O,w)}:function(A,g,C,O){if(O===void 0)O=C;A[O]=g[C]}),r=e&&e.__setModuleDefault||(Object.create?function(A,g){Object.defineProperty(A,"default",{enumerable:!0,value:g})}:function(A,g){A.default=g}),n=e&&e.__importStar||function(){var A=i(function(g){return A=Object.getOwnPropertyNames||function(C){var O=[];for(var w in C)if(Object.prototype.hasOwnProperty.call(C,w))O[O.length]=w;return O},A(g)},"ownKeys");return function(g){if(g&&g.__esModule)return g;var C={};if(g!=null){for(var O=A(g),w=0;w<O.length;w++)if(O[w]!=="default")t(C,g,O[w])}return r(C,g),C}}();Object.defineProperty(e,"__esModule",{value:!0}),e.Message=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType=e.RequestType0=e.AbstractMessageSignature=e.ParameterStructures=e.ResponseError=e.ErrorCodes=void 0;var a=n(Fi()),s;(function(A){A.ParseError=-32700,A.InvalidRequest=-32600,A.MethodNotFound=-32601,A.InvalidParams=-32602,A.InternalError=-32603,A.jsonrpcReservedErrorRangeStart=-32099,A.serverErrorStart=-32099,A.MessageWriteError=-32099,A.MessageReadError=-32098,A.PendingResponseRejected=-32097,A.ConnectionInactive=-32096,A.ServerNotInitialized=-32002,A.UnknownErrorCode=-32001,A.jsonrpcReservedErrorRangeEnd=-32000,A.serverErrorEnd=-32000})(s||(e.ErrorCodes=s={}));var o=class A extends Error{static{i(this,"ResponseError")}code;data;constructor(g,C,O){super(C);this.code=a.number(g)?g:s.UnknownErrorCode,this.data=O,Object.setPrototypeOf(this,A.prototype)}toJson(){let g={code:this.code,message:this.message};if(this.data!==void 0)g.data=this.data;return g}};e.ResponseError=o;var l=class A{static{i(this,"ParameterStructures")}kind;static auto=new A("auto");static byPosition=new A("byPosition");static byName=new A("byName");constructor(g){this.kind=g}static is(g){return g===A.auto||g===A.byName||g===A.byPosition}toString(){return this.kind}};e.ParameterStructures=l;var u=class{static{i(this,"AbstractMessageSignature")}method;numberOfParams;constructor(A,g){this.method=A,this.numberOfParams=g}get parameterStructures(){return l.auto}};e.AbstractMessageSignature=u;var c=class extends u{static{i(this,"RequestType0")}_;constructor(A){super(A,0)}};e.RequestType0=c;var p=class extends u{static{i(this,"RequestType")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.RequestType=p;var h=class extends u{static{i(this,"RequestType1")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.RequestType1=h;var y=class extends u{static{i(this,"RequestType2")}_;constructor(A){super(A,2)}};e.RequestType2=y;var d=class extends u{static{i(this,"RequestType3")}_;constructor(A){super(A,3)}};e.RequestType3=d;var E=class extends u{static{i(this,"RequestType4")}_;constructor(A){super(A,4)}};e.RequestType4=E;var T=class extends u{static{i(this,"RequestType5")}_;constructor(A){super(A,5)}};e.RequestType5=T;var v=class extends u{static{i(this,"RequestType6")}_;constructor(A){super(A,6)}};e.RequestType6=v;var R=class extends u{static{i(this,"RequestType7")}_;constructor(A){super(A,7)}};e.RequestType7=R;var P=class extends u{static{i(this,"RequestType8")}_;constructor(A){super(A,8)}};e.RequestType8=P;var S=class extends u{static{i(this,"RequestType9")}_;constructor(A){super(A,9)}};e.RequestType9=S;var D=class extends u{static{i(this,"NotificationType")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.NotificationType=D;var x=class extends u{static{i(this,"NotificationType0")}_;constructor(A){super(A,0)}};e.NotificationType0=x;var F=class extends u{static{i(this,"NotificationType1")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.NotificationType1=F;var V=class extends u{static{i(this,"NotificationType2")}_;constructor(A){super(A,2)}};e.NotificationType2=V;var ee=class extends u{static{i(this,"NotificationType3")}_;constructor(A){super(A,3)}};e.NotificationType3=ee;var fe=class extends u{static{i(this,"NotificationType4")}_;constructor(A){super(A,4)}};e.NotificationType4=fe;var Z=class extends u{static{i(this,"NotificationType5")}_;constructor(A){super(A,5)}};e.NotificationType5=Z;var k=class extends u{static{i(this,"NotificationType6")}_;constructor(A){super(A,6)}};e.NotificationType6=k;var L=class extends u{static{i(this,"NotificationType7")}_;constructor(A){super(A,7)}};e.NotificationType7=L;var j=class extends u{static{i(this,"NotificationType8")}_;constructor(A){super(A,8)}};e.NotificationType8=j;var z=class extends u{static{i(this,"NotificationType9")}_;constructor(A){super(A,9)}};e.NotificationType9=z;var N;(function(A){function g(w){let M=w;return M&&a.string(M.method)&&(a.string(M.id)||a.number(M.id))}i(g,"isRequest"),A.isRequest=g;function C(w){let M=w;return M&&a.string(M.method)&&w.id===void 0}i(C,"isNotification"),A.isNotification=C;function O(w){let M=w;return M&&(M.result!==void 0||!!M.error)&&(a.string(M.id)||a.number(M.id)||M.id===null)}i(O,"isResponse"),A.isResponse=O})(N||(e.Message=N={}))}}),Mm=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=e.LinkedMap=e.Touch=void 0;var t;(function(a){a.None=0,a.First=1,a.AsOld=a.First,a.Last=2,a.AsNew=a.Last})(t||(e.Touch=t={}));var r=class{static{i(this,"LinkedMap")}[Symbol.toStringTag]="LinkedMap";_map;_head;_tail;_size;_state;constructor(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}before(a){let s=this._map.get(a);return s?s.previous?.value:void 0}after(a){let s=this._map.get(a);return s?s.next?.value:void 0}has(a){return this._map.has(a)}get(a,s=t.None){let o=this._map.get(a);if(!o)return;if(s!==t.None)this.touch(o,s);return o.value}set(a,s,o=t.None){let l=this._map.get(a);if(l){if(l.value=s,o!==t.None)this.touch(l,o)}else{switch(l={key:a,value:s,next:void 0,previous:void 0},o){case t.None:this.addItemLast(l);break;case t.First:this.addItemFirst(l);break;case t.Last:this.addItemLast(l);break;default:this.addItemLast(l);break}this._map.set(a,l),this._size++}return this}delete(a){return!!this.remove(a)}remove(a){let s=this._map.get(a);if(!s)return;return this._map.delete(a),this.removeItem(s),this._size--,s.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw Error("Invalid list");let a=this._head;return this._map.delete(a.key),this.removeItem(a),this._size--,a.value}forEach(a,s){let o=this._state,l=this._head;while(l){if(s)a.bind(s)(l.value,l.key,this);else a(l.value,l.key,this);if(this._state!==o)throw Error("LinkedMap got modified during iteration.");l=l.next}}keys(){let a=this._state,s=this._head,o={[Symbol.iterator]:()=>o,next:i(()=>{if(this._state!==a)throw Error("LinkedMap got modified during iteration.");if(s){let l={value:s.key,done:!1};return s=s.next,l}else return{value:void 0,done:!0}},"next")};return o}values(){let a=this._state,s=this._head,o={[Symbol.iterator]:()=>o,next:i(()=>{if(this._state!==a)throw Error("LinkedMap got modified during iteration.");if(s){let l={value:s.value,done:!1};return s=s.next,l}else return{value:void 0,done:!0}},"next")};return o}entries(){let a=this._state,s=this._head,o={[Symbol.iterator]:()=>o,next:i(()=>{if(this._state!==a)throw Error("LinkedMap got modified during iteration.");if(s){let l={value:[s.key,s.value],done:!1};return s=s.next,l}else return{value:void 0,done:!0}},"next")};return o}[Symbol.iterator](){return this.entries()}trimOld(a){if(a>=this.size)return;if(a===0){this.clear();return}let s=this._head,o=this.size;while(s&&o>a)this._map.delete(s.key),s=s.next,o--;if(this._head=s,this._size=o,s)s.previous=void 0;this._state++}addItemFirst(a){if(!this._head&&!this._tail)this._tail=a;else if(!this._head)throw Error("Invalid list");else a.next=this._head,this._head.previous=a;this._head=a,this._state++}addItemLast(a){if(!this._head&&!this._tail)this._head=a;else if(!this._tail)throw Error("Invalid list");else a.previous=this._tail,this._tail.next=a;this._tail=a,this._state++}removeItem(a){if(a===this._head&&a===this._tail)this._head=void 0,this._tail=void 0;else if(a===this._head){if(!a.next)throw Error("Invalid list");a.next.previous=void 0,this._head=a.next}else if(a===this._tail){if(!a.previous)throw Error("Invalid list");a.previous.next=void 0,this._tail=a.previous}else{let{next:s,previous:o}=a;if(!s||!o)throw Error("Invalid list");s.previous=o,o.next=s}a.next=void 0,a.previous=void 0,this._state++}touch(a,s){if(!this._head||!this._tail)throw Error("Invalid list");if(s!==t.First&&s!==t.Last)return;if(s===t.First){if(a===this._head)return;let{next:o,previous:l}=a;if(a===this._tail)l.next=void 0,this._tail=l;else o.previous=l,l.next=o;a.previous=void 0,a.next=this._head,this._head.previous=a,this._head=a,this._state++}else if(s===t.Last){if(a===this._tail)return;let{next:o,previous:l}=a;if(a===this._head)o.previous=void 0,this._head=o;else o.previous=l,l.next=o;a.next=void 0,a.previous=this._tail,this._tail.next=a,this._tail=a,this._state++}}toJSON(){let a=[];return this.forEach((s,o)=>{a.push([o,s])}),a}fromJSON(a){this.clear();for(let[s,o]of a)this.set(s,o)}};e.LinkedMap=r;var n=class extends r{static{i(this,"LRUCache")}_limit;_ratio;constructor(a,s=1){super();this._limit=a,this._ratio=Math.min(Math.max(0,s),1)}get limit(){return this._limit}set limit(a){this._limit=a,this.checkTrim()}get ratio(){return this._ratio}set ratio(a){this._ratio=Math.min(Math.max(0,a),1),this.checkTrim()}get(a,s=t.AsNew){return super.get(a,s)}peek(a){return super.get(a,t.None)}set(a,s){return super.set(a,s,t.Last),this.checkTrim(),this}checkTrim(){if(this.size>this._limit)this.trimOld(Math.round(this._limit*this._ratio))}};e.LRUCache=n}}),lA=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/disposable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Disposable=void 0;var t;(function(r){function n(a){return{dispose:a}}i(n,"create"),r.create=n})(t||(e.Disposable=t={}))}}),sn=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/ral.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t;function r(){if(t===void 0)throw Error("No runtime abstraction layer installed");return t}i(r,"RAL"),function(n){function a(s){if(s===void 0)throw Error("No runtime abstraction layer provided");t=s}i(a,"install"),n.install=a}(r||(r={})),e.default=r}}),ji=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/events.js"(e){var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.Emitter=e.Event=void 0;var r=t(sn()),n;(function(o){let l={dispose(){}};o.None=function(){return l}})(n||(e.Event=n={}));var a=class{static{i(this,"CallbackList")}_callbacks;_contexts;add(o,l=null,u){if(!this._callbacks)this._callbacks=[],this._contexts=[];if(this._callbacks.push(o),this._contexts.push(l),Array.isArray(u))u.push({dispose:i(()=>this.remove(o,l),"dispose")})}remove(o,l=null){if(!this._callbacks)return;let u=!1;for(let c=0,p=this._callbacks.length;c<p;c++)if(this._callbacks[c]===o)if(this._contexts[c]===l){this._callbacks.splice(c,1),this._contexts.splice(c,1);return}else u=!0;if(u)throw Error("When adding a listener with a context, you should remove it with the same context")}invoke(...o){if(!this._callbacks)return[];let l=[],u=this._callbacks.slice(0),c=this._contexts.slice(0);for(let p=0,h=u.length;p<h;p++)try{l.push(u[p].apply(c[p],o))}catch(y){(0,r.default)().console.error(y)}return l}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},s=class o{static{i(this,"Emitter")}_options;static _noop=i(function(){},"_noop");_event;_callbacks;constructor(l){this._options=l}get event(){if(!this._event)this._event=(l,u,c)=>{if(!this._callbacks)this._callbacks=new a;if(this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty())this._options.onFirstListenerAdd(this);this._callbacks.add(l,u);let p={dispose:i(()=>{if(!this._callbacks)return;if(this._callbacks.remove(l,u),p.dispose=o._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty())this._options.onLastListenerRemove(this)},"dispose")};if(Array.isArray(c))c.push(p);return p};return this._event}fire(l){if(this._callbacks)this._callbacks.invoke.call(this._callbacks,l)}dispose(){if(this._callbacks)this._callbacks.dispose(),this._callbacks=void 0}};e.Emitter=s}}),kf=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(e){var t=e&&e.__createBinding||(Object.create?function(y,d,E,T){if(T===void 0)T=E;var v=Object.getOwnPropertyDescriptor(d,E);if(!v||("get"in v?!d.__esModule:v.writable||v.configurable))v={enumerable:!0,get:i(function(){return d[E]},"get")};Object.defineProperty(y,T,v)}:function(y,d,E,T){if(T===void 0)T=E;y[T]=d[E]}),r=e&&e.__setModuleDefault||(Object.create?function(y,d){Object.defineProperty(y,"default",{enumerable:!0,value:d})}:function(y,d){y.default=d}),n=e&&e.__importStar||function(){var y=i(function(d){return y=Object.getOwnPropertyNames||function(E){var T=[];for(var v in E)if(Object.prototype.hasOwnProperty.call(E,v))T[T.length]=v;return T},y(d)},"ownKeys");return function(d){if(d&&d.__esModule)return d;var E={};if(d!=null){for(var T=y(d),v=0;v<T.length;v++)if(T[v]!=="default")t(E,d,T[v])}return r(E,d),E}}(),a=e&&e.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;var s=a(sn()),o=n(Fi()),l=ji(),u;(function(y){y.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:l.Event.None}),y.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:l.Event.None});function d(E){let T=E;return T&&(T===y.None||T===y.Cancelled||o.boolean(T.isCancellationRequested)&&!!T.onCancellationRequested)}i(d,"is"),y.is=d})(u||(e.CancellationToken=u={}));var c=Object.freeze(function(y,d){let E=(0,s.default)().timer.setTimeout(y.bind(d),0);return{dispose(){E.dispose()}}}),p=class{static{i(this,"MutableToken")}_isCancelled=!1;_emitter;cancel(){if(!this._isCancelled){if(this._isCancelled=!0,this._emitter)this._emitter.fire(void 0),this.dispose()}}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){if(this._isCancelled)return c;if(!this._emitter)this._emitter=new l.Emitter;return this._emitter.event}dispose(){if(this._emitter)this._emitter.dispose(),this._emitter=void 0}},h=class{static{i(this,"CancellationTokenSource")}_token;get token(){if(!this._token)this._token=new p;return this._token}cancel(){if(!this._token)this._token=u.Cancelled;else this._token.cancel()}dispose(){if(!this._token)this._token=u.None;else if(this._token instanceof p)this._token.dispose()}};e.CancellationTokenSource=h}}),uA=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=void 0;var t=kf(),r;(function(l){l.Continue=0,l.Cancelled=1})(r||(r={}));var n=class{static{i(this,"SharedArraySenderStrategy")}buffers;constructor(){this.buffers=new Map}enableCancellation(l){if(l.id===null)return;let u=new SharedArrayBuffer(4),c=new Int32Array(u,0,1);c[0]=r.Continue,this.buffers.set(l.id,u),l.$cancellationData=u}async sendCancellation(l,u){let c=this.buffers.get(u);if(c===void 0)return;let p=new Int32Array(c,0,1);Atomics.store(p,0,r.Cancelled)}cleanup(l){this.buffers.delete(l)}dispose(){this.buffers.clear()}};e.SharedArraySenderStrategy=n;var a=class{static{i(this,"SharedArrayBufferCancellationToken")}data;constructor(l){this.data=new Int32Array(l,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===r.Cancelled}get onCancellationRequested(){throw Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},s=class{static{i(this,"SharedArrayBufferCancellationTokenSource")}token;constructor(l){this.token=new a(l)}cancel(){}dispose(){}},o=class{static{i(this,"SharedArrayReceiverStrategy")}kind="request";createCancellationTokenSource(l){let u=l.$cancellationData;if(u===void 0)return new t.CancellationTokenSource;return new s(u)}};e.SharedArrayReceiverStrategy=o}}),Dm=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/semaphore.js"(e){var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.Semaphore=void 0;var r=t(sn()),n=class{static{i(this,"Semaphore")}_capacity;_active;_waiting;constructor(a=1){if(a<=0)throw Error("Capacity must be greater than 0");this._capacity=a,this._active=0,this._waiting=[]}lock(a){return new Promise((s,o)=>{this._waiting.push({thunk:a,resolve:s,reject:o}),this.runNext()})}get active(){return this._active}runNext(){if(this._waiting.length===0||this._active===this._capacity)return;(0,r.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let a=this._waiting.shift();if(this._active++,this._active>this._capacity)throw Error("Too many thunks active");try{let s=a.thunk();if(s instanceof Promise)s.then((o)=>{this._active--,a.resolve(o),this.runNext()},(o)=>{this._active--,a.reject(o),this.runNext()});else this._active--,a.resolve(s),this.runNext()}catch(s){this._active--,a.reject(s),this.runNext()}}};e.Semaphore=n}}),cA=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(e){var t=e&&e.__createBinding||(Object.create?function(d,E,T,v){if(v===void 0)v=T;var R=Object.getOwnPropertyDescriptor(E,T);if(!R||("get"in R?!E.__esModule:R.writable||R.configurable))R={enumerable:!0,get:i(function(){return E[T]},"get")};Object.defineProperty(d,v,R)}:function(d,E,T,v){if(v===void 0)v=T;d[v]=E[T]}),r=e&&e.__setModuleDefault||(Object.create?function(d,E){Object.defineProperty(d,"default",{enumerable:!0,value:E})}:function(d,E){d.default=E}),n=e&&e.__importStar||function(){var d=i(function(E){return d=Object.getOwnPropertyNames||function(T){var v=[];for(var R in T)if(Object.prototype.hasOwnProperty.call(T,R))v[v.length]=R;return v},d(E)},"ownKeys");return function(E){if(E&&E.__esModule)return E;var T={};if(E!=null){for(var v=d(E),R=0;R<v.length;R++)if(v[R]!=="default")t(T,E,v[R])}return r(T,E),T}}(),a=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=void 0;var s=a(sn()),o=n(Fi()),l=ji(),u=Dm(),c;(function(d){function E(T){let v=T;return v&&o.func(v.listen)&&o.func(v.dispose)&&o.func(v.onError)&&o.func(v.onClose)&&o.func(v.onPartialMessage)}i(E,"is"),d.is=E})(c||(e.MessageReader=c={}));var p=class{static{i(this,"AbstractMessageReader")}errorEmitter;closeEmitter;partialMessageEmitter;constructor(){this.errorEmitter=new l.Emitter,this.closeEmitter=new l.Emitter,this.partialMessageEmitter=new l.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose(),this.partialMessageEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(d){this.errorEmitter.fire(this.asError(d))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(d){this.partialMessageEmitter.fire(d)}asError(d){if(d instanceof Error)return d;else return Error(`Reader received error. Reason: ${o.string(d.message)?d.message:"unknown"}`)}};e.AbstractMessageReader=p;var h;(function(d){function E(T){let v,R,P,S=new Map,D,x=new Map;if(T===void 0||typeof T==="string")v=T??"utf-8";else{if(v=T.charset??"utf-8",T.contentDecoder!==void 0)P=T.contentDecoder,S.set(P.name,P);if(T.contentDecoders!==void 0)for(let F of T.contentDecoders)S.set(F.name,F);if(T.contentTypeDecoder!==void 0)D=T.contentTypeDecoder,x.set(D.name,D);if(T.contentTypeDecoders!==void 0)for(let F of T.contentTypeDecoders)x.set(F.name,F)}if(D===void 0)D=(0,s.default)().applicationJson.decoder,x.set(D.name,D);return{charset:v,contentDecoder:P,contentDecoders:S,contentTypeDecoder:D,contentTypeDecoders:x}}i(E,"fromOptions"),d.fromOptions=E})(h||(h={}));var y=class extends p{static{i(this,"ReadableStreamMessageReader")}readable;options;callback;nextMessageLength;messageToken;buffer;partialMessageTimer;_partialMessageTimeout;readSemaphore;constructor(d,E){super();this.readable=d,this.options=h.fromOptions(E),this.buffer=(0,s.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new u.Semaphore(1)}set partialMessageTimeout(d){this._partialMessageTimeout=d}get partialMessageTimeout(){return this._partialMessageTimeout}listen(d){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=d;let E=this.readable.onData((T)=>{this.onData(T)});return this.readable.onError((T)=>this.fireError(T)),this.readable.onClose(()=>this.fireClose()),E}onData(d){try{this.buffer.append(d);while(!0){if(this.nextMessageLength===-1){let T=this.buffer.tryReadHeaders(!0);if(!T)return;let v=T.get("content-length");if(!v){this.fireError(Error(`Header must provide a Content-Length property.
1
+ import{sa,_}from"./index.5vcex75v.js";var rn={};sa(rn,{AbnfAlternation:()=>go,AbnfConcatenation:()=>vo,AbnfElement:()=>hi,AbnfGroup:()=>To,AbnfNumVal:()=>$o,AbnfOptionalGroup:()=>Ro,AbnfPrimary:()=>cr,AbnfRule:()=>yi,AbnfRuleName:()=>Ao,AbnfStringLiteral:()=>Eo,AbstractMermaidTokenBuilder:()=>ce,AbstractMermaidValueConverter:()=>Ie,Architecture:()=>ot,ArchitectureGrammarGeneratedModule:()=>Ml,Branch:()=>Xn,Commit:()=>mr,CommonTokenBuilder:()=>kR,CommonValueConverter:()=>Je,Cynefin:()=>Ht,CynefinGrammarGeneratedModule:()=>Dl,DomainBlock:()=>Jn,DomainItem:()=>xi,EbnfChoice:()=>Co,EbnfExceptionPostfix:()=>bo,EbnfGroup:()=>_o,EbnfNonTerminal:()=>So,EbnfOneOrMorePostfix:()=>wo,EbnfOptional:()=>Po,EbnfOptionalPostfix:()=>ko,EbnfPostfix:()=>Yr,EbnfPrimary:()=>Vt,EbnfRepetition:()=>Io,EbnfRule:()=>gi,EbnfSequence:()=>No,EbnfSpecial:()=>Oo,EbnfTerm:()=>vi,EbnfTerminal:()=>Mo,EbnfZeroOrMorePostfix:()=>Do,EmDataEntity:()=>fr,EmFrame:()=>Kt,EmptyFileSystem:()=>le,EventModel:()=>ht,EventModelingGeneratedModule:()=>Ll,GitGraph:()=>Yt,GitGraphGrammarGeneratedModule:()=>xl,Info:()=>Qr,InfoGrammarGeneratedModule:()=>Gl,Merge:()=>hr,MermaidGeneratedSharedModule:()=>ue,Packet:()=>yr,PacketBlock:()=>gr,PacketGrammarGeneratedModule:()=>Fl,PegAny:()=>Lo,PegGroup:()=>xo,PegIdentifier:()=>Go,PegLiteral:()=>Fo,PegOrderedChoice:()=>jo,PegPrefix:()=>Ti,PegPrimary:()=>Xr,PegRule:()=>$i,PegSequence:()=>zo,PegSuffix:()=>Ri,Pie:()=>Xt,PieGrammarGeneratedModule:()=>jl,PieSection:()=>Zn,Radar:()=>Wt,RadarGrammarGeneratedModule:()=>zl,Railroad:()=>vr,RailroadAbnf:()=>Tr,RailroadAbnfGrammarGeneratedModule:()=>Bl,RailroadChoiceExpr:()=>Bo,RailroadEbnf:()=>$r,RailroadEbnfGrammarGeneratedModule:()=>Ul,RailroadExpression:()=>yt,RailroadGrammarGeneratedModule:()=>Vl,RailroadNonTerminalExpr:()=>Uo,RailroadOneOrMoreExpr:()=>Vo,RailroadOptionalExpr:()=>Wo,RailroadPeg:()=>Rr,RailroadPegGrammarGeneratedModule:()=>Kl,RailroadRule:()=>Ai,RailroadSequenceExpr:()=>qo,RailroadSpecialExpr:()=>Ho,RailroadTerminalExpr:()=>el,RailroadZeroOrMoreExpr:()=>tl,Statement:()=>pr,Transition:()=>en,TreeNode:()=>dr,TreeView:()=>Jr,TreeViewGrammarGeneratedModule:()=>ql,Treemap:()=>Ar,TreemapGrammarGeneratedModule:()=>Wl,Wardley:()=>Oe,WardleyGrammarGeneratedModule:()=>Hl,__name:()=>i,createDefaultCoreModule:()=>ne,createDefaultSharedCoreModule:()=>ae,inject:()=>W,isArchitecture:()=>Vp,isBranch:()=>Kp,isCommit:()=>Wp,isCynefin:()=>qp,isDomainBlock:()=>Hp,isDomainItem:()=>Yp,isEmModelEntityType:()=>Xp,isEmResetFrame:()=>ka,isGitGraph:()=>Jp,isInfo:()=>Zp,isMerge:()=>Qp,isPacket:()=>ed,isPacketBlock:()=>td,isPie:()=>rd,isPieSection:()=>nd,isRailroad:()=>ad,isRailroadAbnf:()=>id,isRailroadEbnf:()=>sd,isRailroadPeg:()=>od,isTransition:()=>ld,isTreemap:()=>ud,isWardley:()=>cd});var{create:rA,defineProperty:Gi,getOwnPropertyDescriptor:nA,getOwnPropertyNames:Sf,getPrototypeOf:aA}=Object,iA=Object.prototype.hasOwnProperty,i=(e,t)=>Gi(e,"name",{value:t,configurable:!0}),sA=(e,t)=>function(){return e&&(t=(0,e[Sf(e)[0]])(e=0)),t},J=(e,t)=>function(){return t||(0,e[Sf(e)[0]])((t={exports:{}}).exports,t),t.exports},oA=(e,t)=>{for(var r in t)Gi(e,r,{get:t[r],enumerable:!0})},Nm=(e,t,r,n)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let a of Sf(t))if(!iA.call(e,a)&&a!==r)Gi(e,a,{get:()=>t[a],enumerable:!(n=nA(t,a))||n.enumerable})}return e},wf=(e,t,r)=>(r=e!=null?rA(aA(e)):{},Nm(t||!e||!e.__esModule?Gi(r,"default",{value:e,enumerable:!0}):r,e)),Pf=(e)=>Nm(Gi({},"__esModule",{value:!0}),e),Fi=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/is.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.boolean=t,e.string=r,e.number=n,e.error=a,e.func=s,e.array=o,e.stringArray=l;function t(u){return u===!0||u===!1}i(t,"boolean");function r(u){return typeof u==="string"||u instanceof String}i(r,"string");function n(u){return typeof u==="number"||u instanceof Number}i(n,"number");function a(u){return u instanceof Error}i(a,"error");function s(u){return typeof u==="function"}i(s,"func");function o(u){return Array.isArray(u)}i(o,"array");function l(u){return o(u)&&u.every((c)=>r(c))}i(l,"stringArray")}}),Om=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messages.js"(e){var t=e&&e.__createBinding||(Object.create?function(A,g,C,O){if(O===void 0)O=C;var w=Object.getOwnPropertyDescriptor(g,C);if(!w||("get"in w?!g.__esModule:w.writable||w.configurable))w={enumerable:!0,get:i(function(){return g[C]},"get")};Object.defineProperty(A,O,w)}:function(A,g,C,O){if(O===void 0)O=C;A[O]=g[C]}),r=e&&e.__setModuleDefault||(Object.create?function(A,g){Object.defineProperty(A,"default",{enumerable:!0,value:g})}:function(A,g){A.default=g}),n=e&&e.__importStar||function(){var A=i(function(g){return A=Object.getOwnPropertyNames||function(C){var O=[];for(var w in C)if(Object.prototype.hasOwnProperty.call(C,w))O[O.length]=w;return O},A(g)},"ownKeys");return function(g){if(g&&g.__esModule)return g;var C={};if(g!=null){for(var O=A(g),w=0;w<O.length;w++)if(O[w]!=="default")t(C,g,O[w])}return r(C,g),C}}();Object.defineProperty(e,"__esModule",{value:!0}),e.Message=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType=e.RequestType0=e.AbstractMessageSignature=e.ParameterStructures=e.ResponseError=e.ErrorCodes=void 0;var a=n(Fi()),s;(function(A){A.ParseError=-32700,A.InvalidRequest=-32600,A.MethodNotFound=-32601,A.InvalidParams=-32602,A.InternalError=-32603,A.jsonrpcReservedErrorRangeStart=-32099,A.serverErrorStart=-32099,A.MessageWriteError=-32099,A.MessageReadError=-32098,A.PendingResponseRejected=-32097,A.ConnectionInactive=-32096,A.ServerNotInitialized=-32002,A.UnknownErrorCode=-32001,A.jsonrpcReservedErrorRangeEnd=-32000,A.serverErrorEnd=-32000})(s||(e.ErrorCodes=s={}));var o=class A extends Error{static{i(this,"ResponseError")}code;data;constructor(g,C,O){super(C);this.code=a.number(g)?g:s.UnknownErrorCode,this.data=O,Object.setPrototypeOf(this,A.prototype)}toJson(){let g={code:this.code,message:this.message};if(this.data!==void 0)g.data=this.data;return g}};e.ResponseError=o;var l=class A{static{i(this,"ParameterStructures")}kind;static auto=new A("auto");static byPosition=new A("byPosition");static byName=new A("byName");constructor(g){this.kind=g}static is(g){return g===A.auto||g===A.byName||g===A.byPosition}toString(){return this.kind}};e.ParameterStructures=l;var u=class{static{i(this,"AbstractMessageSignature")}method;numberOfParams;constructor(A,g){this.method=A,this.numberOfParams=g}get parameterStructures(){return l.auto}};e.AbstractMessageSignature=u;var c=class extends u{static{i(this,"RequestType0")}_;constructor(A){super(A,0)}};e.RequestType0=c;var p=class extends u{static{i(this,"RequestType")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.RequestType=p;var h=class extends u{static{i(this,"RequestType1")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.RequestType1=h;var y=class extends u{static{i(this,"RequestType2")}_;constructor(A){super(A,2)}};e.RequestType2=y;var d=class extends u{static{i(this,"RequestType3")}_;constructor(A){super(A,3)}};e.RequestType3=d;var E=class extends u{static{i(this,"RequestType4")}_;constructor(A){super(A,4)}};e.RequestType4=E;var T=class extends u{static{i(this,"RequestType5")}_;constructor(A){super(A,5)}};e.RequestType5=T;var v=class extends u{static{i(this,"RequestType6")}_;constructor(A){super(A,6)}};e.RequestType6=v;var R=class extends u{static{i(this,"RequestType7")}_;constructor(A){super(A,7)}};e.RequestType7=R;var P=class extends u{static{i(this,"RequestType8")}_;constructor(A){super(A,8)}};e.RequestType8=P;var S=class extends u{static{i(this,"RequestType9")}_;constructor(A){super(A,9)}};e.RequestType9=S;var D=class extends u{static{i(this,"NotificationType")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.NotificationType=D;var x=class extends u{static{i(this,"NotificationType0")}_;constructor(A){super(A,0)}};e.NotificationType0=x;var F=class extends u{static{i(this,"NotificationType1")}_parameterStructures;_;constructor(A,g=l.auto){super(A,1);this._parameterStructures=g}get parameterStructures(){return this._parameterStructures}};e.NotificationType1=F;var V=class extends u{static{i(this,"NotificationType2")}_;constructor(A){super(A,2)}};e.NotificationType2=V;var ee=class extends u{static{i(this,"NotificationType3")}_;constructor(A){super(A,3)}};e.NotificationType3=ee;var fe=class extends u{static{i(this,"NotificationType4")}_;constructor(A){super(A,4)}};e.NotificationType4=fe;var Z=class extends u{static{i(this,"NotificationType5")}_;constructor(A){super(A,5)}};e.NotificationType5=Z;var k=class extends u{static{i(this,"NotificationType6")}_;constructor(A){super(A,6)}};e.NotificationType6=k;var L=class extends u{static{i(this,"NotificationType7")}_;constructor(A){super(A,7)}};e.NotificationType7=L;var j=class extends u{static{i(this,"NotificationType8")}_;constructor(A){super(A,8)}};e.NotificationType8=j;var z=class extends u{static{i(this,"NotificationType9")}_;constructor(A){super(A,9)}};e.NotificationType9=z;var N;(function(A){function g(w){let M=w;return M&&a.string(M.method)&&(a.string(M.id)||a.number(M.id))}i(g,"isRequest"),A.isRequest=g;function C(w){let M=w;return M&&a.string(M.method)&&w.id===void 0}i(C,"isNotification"),A.isNotification=C;function O(w){let M=w;return M&&(M.result!==void 0||!!M.error)&&(a.string(M.id)||a.number(M.id)||M.id===null)}i(O,"isResponse"),A.isResponse=O})(N||(e.Message=N={}))}}),Mm=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=e.LinkedMap=e.Touch=void 0;var t;(function(a){a.None=0,a.First=1,a.AsOld=a.First,a.Last=2,a.AsNew=a.Last})(t||(e.Touch=t={}));var r=class{static{i(this,"LinkedMap")}[Symbol.toStringTag]="LinkedMap";_map;_head;_tail;_size;_state;constructor(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}before(a){let s=this._map.get(a);return s?s.previous?.value:void 0}after(a){let s=this._map.get(a);return s?s.next?.value:void 0}has(a){return this._map.has(a)}get(a,s=t.None){let o=this._map.get(a);if(!o)return;if(s!==t.None)this.touch(o,s);return o.value}set(a,s,o=t.None){let l=this._map.get(a);if(l){if(l.value=s,o!==t.None)this.touch(l,o)}else{switch(l={key:a,value:s,next:void 0,previous:void 0},o){case t.None:this.addItemLast(l);break;case t.First:this.addItemFirst(l);break;case t.Last:this.addItemLast(l);break;default:this.addItemLast(l);break}this._map.set(a,l),this._size++}return this}delete(a){return!!this.remove(a)}remove(a){let s=this._map.get(a);if(!s)return;return this._map.delete(a),this.removeItem(s),this._size--,s.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw Error("Invalid list");let a=this._head;return this._map.delete(a.key),this.removeItem(a),this._size--,a.value}forEach(a,s){let o=this._state,l=this._head;while(l){if(s)a.bind(s)(l.value,l.key,this);else a(l.value,l.key,this);if(this._state!==o)throw Error("LinkedMap got modified during iteration.");l=l.next}}keys(){let a=this._state,s=this._head,o={[Symbol.iterator]:()=>o,next:i(()=>{if(this._state!==a)throw Error("LinkedMap got modified during iteration.");if(s){let l={value:s.key,done:!1};return s=s.next,l}else return{value:void 0,done:!0}},"next")};return o}values(){let a=this._state,s=this._head,o={[Symbol.iterator]:()=>o,next:i(()=>{if(this._state!==a)throw Error("LinkedMap got modified during iteration.");if(s){let l={value:s.value,done:!1};return s=s.next,l}else return{value:void 0,done:!0}},"next")};return o}entries(){let a=this._state,s=this._head,o={[Symbol.iterator]:()=>o,next:i(()=>{if(this._state!==a)throw Error("LinkedMap got modified during iteration.");if(s){let l={value:[s.key,s.value],done:!1};return s=s.next,l}else return{value:void 0,done:!0}},"next")};return o}[Symbol.iterator](){return this.entries()}trimOld(a){if(a>=this.size)return;if(a===0){this.clear();return}let s=this._head,o=this.size;while(s&&o>a)this._map.delete(s.key),s=s.next,o--;if(this._head=s,this._size=o,s)s.previous=void 0;this._state++}addItemFirst(a){if(!this._head&&!this._tail)this._tail=a;else if(!this._head)throw Error("Invalid list");else a.next=this._head,this._head.previous=a;this._head=a,this._state++}addItemLast(a){if(!this._head&&!this._tail)this._head=a;else if(!this._tail)throw Error("Invalid list");else a.previous=this._tail,this._tail.next=a;this._tail=a,this._state++}removeItem(a){if(a===this._head&&a===this._tail)this._head=void 0,this._tail=void 0;else if(a===this._head){if(!a.next)throw Error("Invalid list");a.next.previous=void 0,this._head=a.next}else if(a===this._tail){if(!a.previous)throw Error("Invalid list");a.previous.next=void 0,this._tail=a.previous}else{let{next:s,previous:o}=a;if(!s||!o)throw Error("Invalid list");s.previous=o,o.next=s}a.next=void 0,a.previous=void 0,this._state++}touch(a,s){if(!this._head||!this._tail)throw Error("Invalid list");if(s!==t.First&&s!==t.Last)return;if(s===t.First){if(a===this._head)return;let{next:o,previous:l}=a;if(a===this._tail)l.next=void 0,this._tail=l;else o.previous=l,l.next=o;a.previous=void 0,a.next=this._head,this._head.previous=a,this._head=a,this._state++}else if(s===t.Last){if(a===this._tail)return;let{next:o,previous:l}=a;if(a===this._head)o.previous=void 0,this._head=o;else o.previous=l,l.next=o;a.next=void 0,a.previous=this._tail,this._tail.next=a,this._tail=a,this._state++}}toJSON(){let a=[];return this.forEach((s,o)=>{a.push([o,s])}),a}fromJSON(a){this.clear();for(let[s,o]of a)this.set(s,o)}};e.LinkedMap=r;var n=class extends r{static{i(this,"LRUCache")}_limit;_ratio;constructor(a,s=1){super();this._limit=a,this._ratio=Math.min(Math.max(0,s),1)}get limit(){return this._limit}set limit(a){this._limit=a,this.checkTrim()}get ratio(){return this._ratio}set ratio(a){this._ratio=Math.min(Math.max(0,a),1),this.checkTrim()}get(a,s=t.AsNew){return super.get(a,s)}peek(a){return super.get(a,t.None)}set(a,s){return super.set(a,s,t.Last),this.checkTrim(),this}checkTrim(){if(this.size>this._limit)this.trimOld(Math.round(this._limit*this._ratio))}};e.LRUCache=n}}),lA=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/disposable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Disposable=void 0;var t;(function(r){function n(a){return{dispose:a}}i(n,"create"),r.create=n})(t||(e.Disposable=t={}))}}),sn=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/ral.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t;function r(){if(t===void 0)throw Error("No runtime abstraction layer installed");return t}i(r,"RAL"),function(n){function a(s){if(s===void 0)throw Error("No runtime abstraction layer provided");t=s}i(a,"install"),n.install=a}(r||(r={})),e.default=r}}),ji=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/events.js"(e){var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.Emitter=e.Event=void 0;var r=t(sn()),n;(function(o){let l={dispose(){}};o.None=function(){return l}})(n||(e.Event=n={}));var a=class{static{i(this,"CallbackList")}_callbacks;_contexts;add(o,l=null,u){if(!this._callbacks)this._callbacks=[],this._contexts=[];if(this._callbacks.push(o),this._contexts.push(l),Array.isArray(u))u.push({dispose:i(()=>this.remove(o,l),"dispose")})}remove(o,l=null){if(!this._callbacks)return;let u=!1;for(let c=0,p=this._callbacks.length;c<p;c++)if(this._callbacks[c]===o)if(this._contexts[c]===l){this._callbacks.splice(c,1),this._contexts.splice(c,1);return}else u=!0;if(u)throw Error("When adding a listener with a context, you should remove it with the same context")}invoke(...o){if(!this._callbacks)return[];let l=[],u=this._callbacks.slice(0),c=this._contexts.slice(0);for(let p=0,h=u.length;p<h;p++)try{l.push(u[p].apply(c[p],o))}catch(y){(0,r.default)().console.error(y)}return l}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},s=class o{static{i(this,"Emitter")}_options;static _noop=i(function(){},"_noop");_event;_callbacks;constructor(l){this._options=l}get event(){if(!this._event)this._event=(l,u,c)=>{if(!this._callbacks)this._callbacks=new a;if(this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty())this._options.onFirstListenerAdd(this);this._callbacks.add(l,u);let p={dispose:i(()=>{if(!this._callbacks)return;if(this._callbacks.remove(l,u),p.dispose=o._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty())this._options.onLastListenerRemove(this)},"dispose")};if(Array.isArray(c))c.push(p);return p};return this._event}fire(l){if(this._callbacks)this._callbacks.invoke.call(this._callbacks,l)}dispose(){if(this._callbacks)this._callbacks.dispose(),this._callbacks=void 0}};e.Emitter=s}}),kf=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(e){var t=e&&e.__createBinding||(Object.create?function(y,d,E,T){if(T===void 0)T=E;var v=Object.getOwnPropertyDescriptor(d,E);if(!v||("get"in v?!d.__esModule:v.writable||v.configurable))v={enumerable:!0,get:i(function(){return d[E]},"get")};Object.defineProperty(y,T,v)}:function(y,d,E,T){if(T===void 0)T=E;y[T]=d[E]}),r=e&&e.__setModuleDefault||(Object.create?function(y,d){Object.defineProperty(y,"default",{enumerable:!0,value:d})}:function(y,d){y.default=d}),n=e&&e.__importStar||function(){var y=i(function(d){return y=Object.getOwnPropertyNames||function(E){var T=[];for(var v in E)if(Object.prototype.hasOwnProperty.call(E,v))T[T.length]=v;return T},y(d)},"ownKeys");return function(d){if(d&&d.__esModule)return d;var E={};if(d!=null){for(var T=y(d),v=0;v<T.length;v++)if(T[v]!=="default")t(E,d,T[v])}return r(E,d),E}}(),a=e&&e.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;var s=a(sn()),o=n(Fi()),l=ji(),u;(function(y){y.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:l.Event.None}),y.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:l.Event.None});function d(E){let T=E;return T&&(T===y.None||T===y.Cancelled||o.boolean(T.isCancellationRequested)&&!!T.onCancellationRequested)}i(d,"is"),y.is=d})(u||(e.CancellationToken=u={}));var c=Object.freeze(function(y,d){let E=(0,s.default)().timer.setTimeout(y.bind(d),0);return{dispose(){E.dispose()}}}),p=class{static{i(this,"MutableToken")}_isCancelled=!1;_emitter;cancel(){if(!this._isCancelled){if(this._isCancelled=!0,this._emitter)this._emitter.fire(void 0),this.dispose()}}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){if(this._isCancelled)return c;if(!this._emitter)this._emitter=new l.Emitter;return this._emitter.event}dispose(){if(this._emitter)this._emitter.dispose(),this._emitter=void 0}},h=class{static{i(this,"CancellationTokenSource")}_token;get token(){if(!this._token)this._token=new p;return this._token}cancel(){if(!this._token)this._token=u.Cancelled;else this._token.cancel()}dispose(){if(!this._token)this._token=u.None;else if(this._token instanceof p)this._token.dispose()}};e.CancellationTokenSource=h}}),uA=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=void 0;var t=kf(),r;(function(l){l.Continue=0,l.Cancelled=1})(r||(r={}));var n=class{static{i(this,"SharedArraySenderStrategy")}buffers;constructor(){this.buffers=new Map}enableCancellation(l){if(l.id===null)return;let u=new SharedArrayBuffer(4),c=new Int32Array(u,0,1);c[0]=r.Continue,this.buffers.set(l.id,u),l.$cancellationData=u}async sendCancellation(l,u){let c=this.buffers.get(u);if(c===void 0)return;let p=new Int32Array(c,0,1);Atomics.store(p,0,r.Cancelled)}cleanup(l){this.buffers.delete(l)}dispose(){this.buffers.clear()}};e.SharedArraySenderStrategy=n;var a=class{static{i(this,"SharedArrayBufferCancellationToken")}data;constructor(l){this.data=new Int32Array(l,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===r.Cancelled}get onCancellationRequested(){throw Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},s=class{static{i(this,"SharedArrayBufferCancellationTokenSource")}token;constructor(l){this.token=new a(l)}cancel(){}dispose(){}},o=class{static{i(this,"SharedArrayReceiverStrategy")}kind="request";createCancellationTokenSource(l){let u=l.$cancellationData;if(u===void 0)return new t.CancellationTokenSource;return new s(u)}};e.SharedArrayReceiverStrategy=o}}),Dm=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/semaphore.js"(e){var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.Semaphore=void 0;var r=t(sn()),n=class{static{i(this,"Semaphore")}_capacity;_active;_waiting;constructor(a=1){if(a<=0)throw Error("Capacity must be greater than 0");this._capacity=a,this._active=0,this._waiting=[]}lock(a){return new Promise((s,o)=>{this._waiting.push({thunk:a,resolve:s,reject:o}),this.runNext()})}get active(){return this._active}runNext(){if(this._waiting.length===0||this._active===this._capacity)return;(0,r.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let a=this._waiting.shift();if(this._active++,this._active>this._capacity)throw Error("Too many thunks active");try{let s=a.thunk();if(s instanceof Promise)s.then((o)=>{this._active--,a.resolve(o),this.runNext()},(o)=>{this._active--,a.reject(o),this.runNext()});else this._active--,a.resolve(s),this.runNext()}catch(s){this._active--,a.reject(s),this.runNext()}}};e.Semaphore=n}}),cA=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(e){var t=e&&e.__createBinding||(Object.create?function(d,E,T,v){if(v===void 0)v=T;var R=Object.getOwnPropertyDescriptor(E,T);if(!R||("get"in R?!E.__esModule:R.writable||R.configurable))R={enumerable:!0,get:i(function(){return E[T]},"get")};Object.defineProperty(d,v,R)}:function(d,E,T,v){if(v===void 0)v=T;d[v]=E[T]}),r=e&&e.__setModuleDefault||(Object.create?function(d,E){Object.defineProperty(d,"default",{enumerable:!0,value:E})}:function(d,E){d.default=E}),n=e&&e.__importStar||function(){var d=i(function(E){return d=Object.getOwnPropertyNames||function(T){var v=[];for(var R in T)if(Object.prototype.hasOwnProperty.call(T,R))v[v.length]=R;return v},d(E)},"ownKeys");return function(E){if(E&&E.__esModule)return E;var T={};if(E!=null){for(var v=d(E),R=0;R<v.length;R++)if(v[R]!=="default")t(T,E,v[R])}return r(T,E),T}}(),a=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=void 0;var s=a(sn()),o=n(Fi()),l=ji(),u=Dm(),c;(function(d){function E(T){let v=T;return v&&o.func(v.listen)&&o.func(v.dispose)&&o.func(v.onError)&&o.func(v.onClose)&&o.func(v.onPartialMessage)}i(E,"is"),d.is=E})(c||(e.MessageReader=c={}));var p=class{static{i(this,"AbstractMessageReader")}errorEmitter;closeEmitter;partialMessageEmitter;constructor(){this.errorEmitter=new l.Emitter,this.closeEmitter=new l.Emitter,this.partialMessageEmitter=new l.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose(),this.partialMessageEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(d){this.errorEmitter.fire(this.asError(d))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(d){this.partialMessageEmitter.fire(d)}asError(d){if(d instanceof Error)return d;else return Error(`Reader received error. Reason: ${o.string(d.message)?d.message:"unknown"}`)}};e.AbstractMessageReader=p;var h;(function(d){function E(T){let v,R,P,S=new Map,D,x=new Map;if(T===void 0||typeof T==="string")v=T??"utf-8";else{if(v=T.charset??"utf-8",T.contentDecoder!==void 0)P=T.contentDecoder,S.set(P.name,P);if(T.contentDecoders!==void 0)for(let F of T.contentDecoders)S.set(F.name,F);if(T.contentTypeDecoder!==void 0)D=T.contentTypeDecoder,x.set(D.name,D);if(T.contentTypeDecoders!==void 0)for(let F of T.contentTypeDecoders)x.set(F.name,F)}if(D===void 0)D=(0,s.default)().applicationJson.decoder,x.set(D.name,D);return{charset:v,contentDecoder:P,contentDecoders:S,contentTypeDecoder:D,contentTypeDecoders:x}}i(E,"fromOptions"),d.fromOptions=E})(h||(h={}));var y=class extends p{static{i(this,"ReadableStreamMessageReader")}readable;options;callback;nextMessageLength;messageToken;buffer;partialMessageTimer;_partialMessageTimeout;readSemaphore;constructor(d,E){super();this.readable=d,this.options=h.fromOptions(E),this.buffer=(0,s.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new u.Semaphore(1)}set partialMessageTimeout(d){this._partialMessageTimeout=d}get partialMessageTimeout(){return this._partialMessageTimeout}listen(d){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=d;let E=this.readable.onData((T)=>{this.onData(T)});return this.readable.onError((T)=>this.fireError(T)),this.readable.onClose(()=>this.fireClose()),E}onData(d){try{this.buffer.append(d);while(!0){if(this.nextMessageLength===-1){let T=this.buffer.tryReadHeaders(!0);if(!T)return;let v=T.get("content-length");if(!v){this.fireError(Error(`Header must provide a Content-Length property.
2
2
  ${JSON.stringify(Object.fromEntries(T))}`));return}let R=parseInt(v);if(isNaN(R)){this.fireError(Error(`Content-Length value must be a number. Got ${v}`));return}this.nextMessageLength=R}let E=this.buffer.tryReadBody(this.nextMessageLength);if(E===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let T=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(E):E,v=await this.options.contentTypeDecoder.decode(T,this.options);this.callback(v)}).catch((T)=>{this.fireError(T)})}}catch(E){this.fireError(E)}}clearPartialMessageTimer(){if(this.partialMessageTimer)this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0}setPartialMessageTimer(){if(this.clearPartialMessageTimer(),this._partialMessageTimeout<=0)return;this.partialMessageTimer=(0,s.default)().timer.setTimeout((d,E)=>{if(this.partialMessageTimer=void 0,d===this.messageToken)this.firePartialMessage({messageToken:d,waitingTime:E}),this.setPartialMessageTimer()},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout)}};e.ReadableStreamMessageReader=y}}),fA=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageWriter.js"(e){var t=e&&e.__createBinding||(Object.create?function(T,v,R,P){if(P===void 0)P=R;var S=Object.getOwnPropertyDescriptor(v,R);if(!S||("get"in S?!v.__esModule:S.writable||S.configurable))S={enumerable:!0,get:i(function(){return v[R]},"get")};Object.defineProperty(T,P,S)}:function(T,v,R,P){if(P===void 0)P=R;T[P]=v[R]}),r=e&&e.__setModuleDefault||(Object.create?function(T,v){Object.defineProperty(T,"default",{enumerable:!0,value:v})}:function(T,v){T.default=v}),n=e&&e.__importStar||function(){var T=i(function(v){return T=Object.getOwnPropertyNames||function(R){var P=[];for(var S in R)if(Object.prototype.hasOwnProperty.call(R,S))P[P.length]=S;return P},T(v)},"ownKeys");return function(v){if(v&&v.__esModule)return v;var R={};if(v!=null){for(var P=T(v),S=0;S<P.length;S++)if(P[S]!=="default")t(R,v,P[S])}return r(R,v),R}}(),a=e&&e.__importDefault||function(T){return T&&T.__esModule?T:{default:T}};Object.defineProperty(e,"__esModule",{value:!0}),e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=void 0;var s=a(sn()),o=n(Fi()),l=Dm(),u=ji(),c="Content-Length: ",p=`\r
3
3
  `,h;(function(T){function v(R){let P=R;return P&&o.func(P.dispose)&&o.func(P.onClose)&&o.func(P.onError)&&o.func(P.write)}i(v,"is"),T.is=v})(h||(e.MessageWriter=h={}));var y=class{static{i(this,"AbstractMessageWriter")}errorEmitter;closeEmitter;constructor(){this.errorEmitter=new u.Emitter,this.closeEmitter=new u.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(T,v,R){this.errorEmitter.fire([this.asError(T),v,R])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(T){if(T instanceof Error)return T;else return Error(`Writer received error. Reason: ${o.string(T.message)?T.message:"unknown"}`)}};e.AbstractMessageWriter=y;var d;(function(T){function v(R){if(R===void 0||typeof R==="string")return{charset:R??"utf-8",contentTypeEncoder:(0,s.default)().applicationJson.encoder};else return{charset:R.charset??"utf-8",contentEncoder:R.contentEncoder,contentTypeEncoder:R.contentTypeEncoder??(0,s.default)().applicationJson.encoder}}i(v,"fromOptions"),T.fromOptions=v})(d||(d={}));var E=class extends y{static{i(this,"WriteableStreamMessageWriter")}writable;options;errorCount;writeSemaphore;constructor(T,v){super();this.writable=T,this.options=d.fromOptions(v),this.errorCount=0,this.writeSemaphore=new l.Semaphore(1),this.writable.onError((R)=>this.fireError(R)),this.writable.onClose(()=>this.fireClose())}async write(T){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(T,this.options).then((R)=>{if(this.options.contentEncoder!==void 0)return this.options.contentEncoder.encode(R);else return R}).then((R)=>{let P=[];return P.push(c,R.byteLength.toString(),p),P.push(p),this.doWrite(T,P,R)},(R)=>{throw this.fireError(R),R}))}async doWrite(T,v,R){try{return await this.writable.write(v.join(""),"ascii"),this.writable.write(R)}catch(P){return this.handleError(P,T),Promise.reject(P)}}handleError(T,v){this.errorCount++,this.fireError(T,v,this.errorCount)}end(){this.writable.end()}};e.WriteableStreamMessageWriter=E}}),pA=J({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMessageBuffer=void 0;var t=13,r=10,n=`\r
4
4
  `,a=class{static{i(this,"AbstractMessageBuffer")}_encoding;_chunks;_totalLength;constructor(s="utf-8"){this._encoding=s,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(s){let o=typeof s==="string"?this.fromString(s,this._encoding):s;this._chunks.push(o),this._totalLength+=o.byteLength}tryReadHeaders(s=!1){if(this._chunks.length===0)return;let o=0,l=0,u=0,c=0;e:while(l<this._chunks.length){let d=this._chunks[l];u=0;while(u<d.length){switch(d[u]){case t:switch(o){case 0:o=1;break;case 2:o=3;break;default:o=0}break;case r:switch(o){case 1:o=2;break;case 3:o=4,u++;break e;default:o=0}break;default:o=0}u++}c+=d.byteLength,l++}if(o!==4)return;let p=this._read(c+u),h=new Map,y=this.toString(p,"ascii").split(n);if(y.length<2)return h;for(let d=0;d<y.length-2;d++){let E=y[d],T=E.indexOf(":");if(T===-1)throw Error(`Message header must separate key and value using ':'
@@ -136,7 +136,7 @@ ${t}`;if(this.inline)return`{${n}}`;else return n}};function bR(e,t,r){if(e==="l
136
136
  `);return}},Je=class extends Ie{static{i(this,"CommonValueConverter")}runCustomConverter(e,t,r){return}},ce=class extends aR{static{i(this,"AbstractMermaidTokenBuilder")}constructor(e){super();this.keywords=new Set(e)}buildKeywordTokens(e,t,r){let n=super.buildKeywordTokens(e,t,r);return n.forEach((a)=>{if(this.keywords.has(a.name)&&a.PATTERN!==void 0)a.PATTERN=new RegExp(a.PATTERN.toString()+"(?:(?=%%)|(?!\\S))")}),n}},kR=class extends ce{static{i(this,"CommonTokenBuilder")}};var dP=class extends ce{static{i(this,"RadarTokenBuilder")}constructor(){super(["radar-beta"])}},IR={parser:{TokenBuilder:i(()=>new dP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function Ko(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),zl,IR);return t.ServiceRegistry.register(r),{shared:t,Radar:r}}i(Ko,"createRadarServices");var mP=class extends ce{static{i(this,"RailroadTokenBuilder")}constructor(){super(["railroad-beta"])}},NR=i((e)=>{let t=e.slice(1,-1),r="";for(let n=0;n<t.length;n++){let a=t[n];if(a==="\\"&&n+1<t.length){n++;let s=t[n];switch(s){case"n":r+=`
137
137
  `;break;case"r":r+="\r";break;case"t":r+="\t";break;default:r+=s}continue}r+=a}return r},"decodeEscapedString"),hP=class extends Ie{static{i(this,"RailroadValueConverter")}runConverter(e,t,r){let n=super.runConverter(e,t,r);if(e.name==="TITLE"&&typeof n==="string"){let a=n.trim();if(a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'"))return NR(a)}return n}runCustomConverter(e,t,r){if(e.name==="RR_STRING")return NR(t);return}},OR={parser:{TokenBuilder:i(()=>new mP,"TokenBuilder"),ValueConverter:i(()=>new hP,"ValueConverter")}};function Pn(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Vl,OR);return t.ServiceRegistry.register(r),{shared:t,Railroad:r}}i(Pn,"createRailroadServices");var yP=class extends ce{static{i(this,"RailroadEbnfTokenBuilder")}constructor(){super(["railroad-ebnf-beta"])}},MR=i((e)=>{let t=e.slice(1,-1),r="";for(let n=0;n<t.length;n++){let a=t[n];if(a==="\\"&&n+1<t.length){n++;let s=t[n];switch(s){case"n":r+=`
138
138
  `;break;case"r":r+="\r";break;case"t":r+="\t";break;default:r+=s}continue}r+=a}return r},"decodeEscapedString"),gP=class extends Ie{static{i(this,"RailroadEbnfValueConverter")}runConverter(e,t,r){let n=super.runConverter(e,t,r);if(e.name==="TITLE"&&typeof n==="string"){let a=n.trim();if(a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'"))return MR(a)}return n}runCustomConverter(e,t,r){if(e.name==="EBNF_STRING")return MR(t);if(e.name==="EBNF_SPECIAL_SEQUENCE")return t.slice(1,-1).trim();return}},DR={parser:{TokenBuilder:i(()=>new yP,"TokenBuilder"),ValueConverter:i(()=>new gP,"ValueConverter")}};function Bn(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Ul,DR);return t.ServiceRegistry.register(r),{shared:t,RailroadEbnf:r}}i(Bn,"createRailroadEbnfServices");var vP=class extends ce{static{i(this,"RailroadAbnfTokenBuilder")}constructor(){super(["railroad-abnf-beta"])}},TP=class extends Ie{static{i(this,"RailroadAbnfValueConverter")}runConverter(e,t,r){let n=super.runConverter(e,t,r);if(e.name==="TITLE"&&typeof n==="string"){let a=n.trim();if(a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'"))return a.slice(1,-1)}return n}runCustomConverter(e,t,r){if(e.name==="ABNF_STRING")return t.slice(1,-1);return}},LR={parser:{TokenBuilder:i(()=>new vP,"TokenBuilder"),ValueConverter:i(()=>new TP,"ValueConverter")}};function Fn(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Bl,LR);return t.ServiceRegistry.register(r),{shared:t,RailroadAbnf:r}}i(Fn,"createRailroadAbnfServices");var $P=class extends ce{static{i(this,"RailroadPegTokenBuilder")}constructor(){super(["railroad-peg-beta"])}},xR=i((e)=>{let t=e.slice(1,-1),r="";for(let n=0;n<t.length;n++){let a=t[n];if(a==="\\"&&n+1<t.length){n++;let s=t[n];switch(s){case"n":r+=`
139
- `;break;case"r":r+="\r";break;case"t":r+="\t";break;default:r+=s}continue}r+=a}return r},"decodeEscapedString"),RP=class extends Ie{static{i(this,"RailroadPegValueConverter")}runConverter(e,t,r){let n=super.runConverter(e,t,r);if(e.name==="TITLE"&&typeof n==="string"){let a=n.trim();if(a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'"))return xR(a)}return n}runCustomConverter(e,t,r){if(e.name==="PEG_STRING")return xR(t);return}},GR={parser:{TokenBuilder:i(()=>new $P,"TokenBuilder"),ValueConverter:i(()=>new RP,"ValueConverter")}};function $n(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Kl,GR);return t.ServiceRegistry.register(r),{shared:t,RailroadPeg:r}}i($n,"createRailroadPegServices");var AP=class extends ce{static{i(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},EP=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,CP=class extends Ie{static{i(this,"TreemapValueConverter")}runCustomConverter(e,t,r){if(e.name==="NUMBER2")return parseFloat(t.replace(/,/g,""));else if(e.name==="SEPARATOR")return t.substring(1,t.length-1);else if(e.name==="STRING2")return t.substring(1,t.length-1);else if(e.name==="INDENTATION")return t.length;else if(e.name==="ClassDef"){if(typeof t!=="string")return t;let n=EP.exec(t);if(n)return{$type:"ClassDefStatement",className:n[1],styleText:n[2]||void 0}}return}};function FR(e){let t=e.validation.TreemapValidator,r=e.validation.ValidationRegistry;if(r){let n={Treemap:t.checkSingleRoot.bind(t)};r.register(n,t)}}i(FR,"registerValidationChecks");var bP=class{static{i(this,"TreemapValidator")}checkSingleRoot(e,t){let r;for(let n of e.TreemapRows){if(!n.item)continue;if(r===void 0&&n.indent===void 0)r=0;else if(n.indent===void 0)t("error","Multiple root nodes are not allowed in a treemap.",{node:n,property:"item"});else if(r!==void 0&&r>=parseInt(n.indent,10))t("error","Multiple root nodes are not allowed in a treemap.",{node:n,property:"item"})}}},jR={parser:{TokenBuilder:i(()=>new AP,"TokenBuilder"),ValueConverter:i(()=>new CP,"ValueConverter")},validation:{TreemapValidator:i(()=>new bP,"TreemapValidator")}};function Yo(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Wl,jR);return t.ServiceRegistry.register(r),FR(r),{shared:t,Treemap:r}}i(Yo,"createTreemapServices");var _P=class extends Ie{static{i(this,"WardleyValueConverter")}runCustomConverter(e,t,r){switch(e.name.toUpperCase()){case"LINK_LABEL":return t.substring(1).trim();default:return}}},zR={parser:{ValueConverter:i(()=>new _P,"ValueConverter")}};function Xo(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Hl,zR);return t.ServiceRegistry.register(r),{shared:t,Wardley:r}}i(Xo,"createWardleyServices");var SP=class extends ce{static{i(this,"CynefinTokenBuilder")}constructor(){super(["cynefin-beta"])}},BR={parser:{TokenBuilder:i(()=>new SP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function Qo(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Dl,BR);return t.ServiceRegistry.register(r),{shared:t,Cynefin:r}}i(Qo,"createCynefinServices");var wP=class extends ce{static{i(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},UR={parser:{TokenBuilder:i(()=>new wP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function Zo(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),xl,UR);return t.ServiceRegistry.register(r),{shared:t,GitGraph:r}}i(Zo,"createGitGraphServices");var PP=class extends ce{static{i(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},VR={parser:{TokenBuilder:i(()=>new PP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function Jo(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Gl,VR);return t.ServiceRegistry.register(r),{shared:t,Info:r}}i(Jo,"createInfoServices");var kP=class extends ce{static{i(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},KR={parser:{TokenBuilder:i(()=>new kP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function es(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Fl,KR);return t.ServiceRegistry.register(r),{shared:t,Packet:r}}i(es,"createPacketServices");var IP=class extends ce{static{i(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},NP=class extends Ie{static{i(this,"PieValueConverter")}runCustomConverter(e,t,r){if(e.name!=="PIE_SECTION_LABEL")return;return t.replace(/"/g,"").trim()}},WR={parser:{TokenBuilder:i(()=>new IP,"TokenBuilder"),ValueConverter:i(()=>new NP,"ValueConverter")}};function ts(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),jl,WR);return t.ServiceRegistry.register(r),{shared:t,Pie:r}}i(ts,"createPieServices");var OP=class extends Ie{static{i(this,"TreeViewValueConverter")}runCustomConverter(e,t,r){if(e.name==="INDENTATION")return t?.length||0;if(e.name==="QUOTED_NAME")return t.substring(1,t.length-1);if(e.name==="BARE_NAME")return t.replace(/[\t ]+$/,"");if(e.name==="CLASS_ANNOTATION")return t.trim().substring(3).trim();if(e.name==="ICON_ANNOTATION"){let n=t.trim();return n.substring(5,n.length-1)}if(e.name==="DESC_ANNOTATION")return t.trim().substring(2).trim();return}},MP=class extends ce{static{i(this,"TreeViewTokenBuilder")}constructor(){super(["treeView-beta"])}},qR={parser:{TokenBuilder:i(()=>new MP,"TokenBuilder"),ValueConverter:i(()=>new OP,"ValueConverter")}};function rs(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),ql,qR);return t.ServiceRegistry.register(r),{shared:t,TreeView:r}}i(rs,"createTreeViewServices");var DP=class extends ce{static{i(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},LP=class extends Ie{static{i(this,"ArchitectureValueConverter")}runCustomConverter(e,t,r){if(e.name==="ARCH_ICON")return t.replace(/[()]/g,"").trim();else if(e.name==="ARCH_TEXT_ICON")return t.replace(/["()]/g,"");else if(e.name==="ARCH_TITLE"){let n=t.replace(/^\[|]$/g,"").trim();if(n.startsWith('"')&&n.endsWith('"')||n.startsWith("'")&&n.endsWith("'"))n=n.slice(1,-1),n=n.replace(/\\"/g,'"').replace(/\\'/g,"'");return n.trim()}return}},HR={parser:{TokenBuilder:i(()=>new DP,"TokenBuilder"),ValueConverter:i(()=>new LP,"ValueConverter")}};function ns(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Ml,HR);return t.ServiceRegistry.register(r),{shared:t,Architecture:r}}i(ns,"createArchitectureServices");var xP=class extends ce{static{i(this,"EventModelingTokenBuilder")}constructor(){super(["eventmodeling"])}},YR=new Set(["cmd","command"]),XR=new Set(["evt","event"]),fd=new Set(["rmo","readmodel"]),JR=new Set(["pcr","processor"]),ZR=new Set(["ui"]);function QR(e){let t=e.validation.EventModelingValidator,r=e.validation.ValidationRegistry;if(r){let n={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};r.register(n,t)}}i(QR,"registerValidationChecks");var GP=class{static{i(this,"EventModelingValidator")}checkSourceFrameTypes(e,t){if(e.sourceFrames.length===0)return;if(YR.has(e.modelEntityType))this.validateSources(e,new Set([...ZR,...JR]),"command","ui or processor",t);else if(XR.has(e.modelEntityType))this.validateSources(e,YR,"event","command",t);else if(fd.has(e.modelEntityType))this.validateSources(e,XR,"read model","event",t);else if(JR.has(e.modelEntityType))this.validateSources(e,fd,"processor","read model",t);else if(ZR.has(e.modelEntityType))this.validateSources(e,fd,"ui","read model",t)}validateSources(e,t,r,n,a){for(let s of e.sourceFrames){let o=s.ref;if(o!==void 0&&!t.has(o.modelEntityType))a("error",`A ${r} can only receive input from a ${n}, not from '${o.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},eA={parser:{TokenBuilder:i(()=>new xP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")},validation:{EventModelingValidator:i(()=>new GP,"EventModelingValidator")}};function as(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Ll,eA);return t.ServiceRegistry.register(r),QR(r),{shared:t,EventModel:r}}i(as,"createEventModelingServices");var je={},FP={info:i(async()=>{let{createInfoServices:e}=await (_("xea9bh7d"),import("./info-OHQRW6UA.xea9bh7d.js")),t=e().Info.parser.LangiumParser;je.info=t},"info"),packet:i(async()=>{let{createPacketServices:e}=await (_("c7dmae11"),import("./packet-JDAUHWVQ.c7dmae11.js")),t=e().Packet.parser.LangiumParser;je.packet=t},"packet"),pie:i(async()=>{let{createPieServices:e}=await (_("6rv4kzjx"),import("./pie-XZMESJXO.6rv4kzjx.js")),t=e().Pie.parser.LangiumParser;je.pie=t},"pie"),treeView:i(async()=>{let{createTreeViewServices:e}=await (_("0x1grm2t"),import("./treeView-D4JQ5SDB.0x1grm2t.js")),t=e().TreeView.parser.LangiumParser;je.treeView=t},"treeView"),architecture:i(async()=>{let{createArchitectureServices:e}=await (_("6qa86taq"),import("./architecture-WOLXFQ4H.6qa86taq.js")),t=e().Architecture.parser.LangiumParser;je.architecture=t},"architecture"),gitGraph:i(async()=>{let{createGitGraphServices:e}=await (_("txpj8e6d"),import("./gitGraph-VSP46ZUC.txpj8e6d.js")),t=e().GitGraph.parser.LangiumParser;je.gitGraph=t},"gitGraph"),eventmodeling:i(async()=>{let{createEventModelingServices:e}=await (_("9yb5zf47"),import("./eventmodeling-K75KTNOO.9yb5zf47.js")),t=e().EventModel.parser.LangiumParser;je.eventmodeling=t},"eventmodeling"),radar:i(async()=>{let{createRadarServices:e}=await (_("58dfc8ba"),import("./radar-ABXABTNO.58dfc8ba.js")),t=e().Radar.parser.LangiumParser;je.radar=t},"radar"),railroad:i(async()=>{let{createRailroadServices:e}=await (_("00fqbahv"),import("./railroad-I3PHUGI6.00fqbahv.js")),t=e().Railroad.parser.LangiumParser;je.railroad=t},"railroad"),railroadEbnf:i(async()=>{let{createRailroadEbnfServices:e}=await (_("qr5qfkga"),import("./railroad-ebnf-DWYD2UWJ.qr5qfkga.js")),t=e().RailroadEbnf.parser.LangiumParser;je.railroadEbnf=t},"railroadEbnf"),railroadAbnf:i(async()=>{let{createRailroadAbnfServices:e}=await (_("gt1x50q5"),import("./railroad-abnf-LNEFI6M7.gt1x50q5.js")),t=e().RailroadAbnf.parser.LangiumParser;je.railroadAbnf=t},"railroadAbnf"),railroadPeg:i(async()=>{let{createRailroadPegServices:e}=await (_("m61rq7hj"),import("./railroad-peg-JR7BVNR7.m61rq7hj.js")),t=e().RailroadPeg.parser.LangiumParser;je.railroadPeg=t},"railroadPeg"),treemap:i(async()=>{let{createTreemapServices:e}=await (_("1te19jsm"),import("./treemap-SAJKECNS.1te19jsm.js")),t=e().Treemap.parser.LangiumParser;je.treemap=t},"treemap"),wardley:i(async()=>{let{createWardleyServices:e}=await (_("zp6gykk3"),import("./wardley-7MLQ67FV.zp6gykk3.js")),t=e().Wardley.parser.LangiumParser;je.wardley=t},"wardley"),cynefin:i(async()=>{let{createCynefinServices:e}=await (_("e86yfa9w"),import("./cynefin-EF2NZ3EQ.e86yfa9w.js")),t=e().Cynefin.parser.LangiumParser;je.cynefin=t},"cynefin")};async function se(e,t){let r=FP[e];if(!r)throw Error(`Unknown diagram type: ${e}`);if(!je[e])await r();let a=je[e].parse(t);if(a.lexerErrors.length>0||a.parserErrors.length>0)throw new Lt(a);return a.value}i(se,"parse");var Yl=i((e)=>e!==void 0&&e>=0?e:"?","formatLocation"),Lt=class extends Error{constructor(e){let t=e.lexerErrors.map((n)=>{let a=Yl(n.line),s=Yl(n.column);return`Lexer error on line ${a}, column ${s}: ${n.message}`}).join(`
139
+ `;break;case"r":r+="\r";break;case"t":r+="\t";break;default:r+=s}continue}r+=a}return r},"decodeEscapedString"),RP=class extends Ie{static{i(this,"RailroadPegValueConverter")}runConverter(e,t,r){let n=super.runConverter(e,t,r);if(e.name==="TITLE"&&typeof n==="string"){let a=n.trim();if(a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'"))return xR(a)}return n}runCustomConverter(e,t,r){if(e.name==="PEG_STRING")return xR(t);return}},GR={parser:{TokenBuilder:i(()=>new $P,"TokenBuilder"),ValueConverter:i(()=>new RP,"ValueConverter")}};function $n(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Kl,GR);return t.ServiceRegistry.register(r),{shared:t,RailroadPeg:r}}i($n,"createRailroadPegServices");var AP=class extends ce{static{i(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},EP=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,CP=class extends Ie{static{i(this,"TreemapValueConverter")}runCustomConverter(e,t,r){if(e.name==="NUMBER2")return parseFloat(t.replace(/,/g,""));else if(e.name==="SEPARATOR")return t.substring(1,t.length-1);else if(e.name==="STRING2")return t.substring(1,t.length-1);else if(e.name==="INDENTATION")return t.length;else if(e.name==="ClassDef"){if(typeof t!=="string")return t;let n=EP.exec(t);if(n)return{$type:"ClassDefStatement",className:n[1],styleText:n[2]||void 0}}return}};function FR(e){let t=e.validation.TreemapValidator,r=e.validation.ValidationRegistry;if(r){let n={Treemap:t.checkSingleRoot.bind(t)};r.register(n,t)}}i(FR,"registerValidationChecks");var bP=class{static{i(this,"TreemapValidator")}checkSingleRoot(e,t){let r;for(let n of e.TreemapRows){if(!n.item)continue;if(r===void 0&&n.indent===void 0)r=0;else if(n.indent===void 0)t("error","Multiple root nodes are not allowed in a treemap.",{node:n,property:"item"});else if(r!==void 0&&r>=parseInt(n.indent,10))t("error","Multiple root nodes are not allowed in a treemap.",{node:n,property:"item"})}}},jR={parser:{TokenBuilder:i(()=>new AP,"TokenBuilder"),ValueConverter:i(()=>new CP,"ValueConverter")},validation:{TreemapValidator:i(()=>new bP,"TreemapValidator")}};function Yo(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Wl,jR);return t.ServiceRegistry.register(r),FR(r),{shared:t,Treemap:r}}i(Yo,"createTreemapServices");var _P=class extends Ie{static{i(this,"WardleyValueConverter")}runCustomConverter(e,t,r){switch(e.name.toUpperCase()){case"LINK_LABEL":return t.substring(1).trim();default:return}}},zR={parser:{ValueConverter:i(()=>new _P,"ValueConverter")}};function Xo(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Hl,zR);return t.ServiceRegistry.register(r),{shared:t,Wardley:r}}i(Xo,"createWardleyServices");var SP=class extends ce{static{i(this,"CynefinTokenBuilder")}constructor(){super(["cynefin-beta"])}},BR={parser:{TokenBuilder:i(()=>new SP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function Qo(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Dl,BR);return t.ServiceRegistry.register(r),{shared:t,Cynefin:r}}i(Qo,"createCynefinServices");var wP=class extends ce{static{i(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},UR={parser:{TokenBuilder:i(()=>new wP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function Zo(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),xl,UR);return t.ServiceRegistry.register(r),{shared:t,GitGraph:r}}i(Zo,"createGitGraphServices");var PP=class extends ce{static{i(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},VR={parser:{TokenBuilder:i(()=>new PP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function Jo(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Gl,VR);return t.ServiceRegistry.register(r),{shared:t,Info:r}}i(Jo,"createInfoServices");var kP=class extends ce{static{i(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},KR={parser:{TokenBuilder:i(()=>new kP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")}};function es(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Fl,KR);return t.ServiceRegistry.register(r),{shared:t,Packet:r}}i(es,"createPacketServices");var IP=class extends ce{static{i(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},NP=class extends Ie{static{i(this,"PieValueConverter")}runCustomConverter(e,t,r){if(e.name!=="PIE_SECTION_LABEL")return;return t.replace(/"/g,"").trim()}},WR={parser:{TokenBuilder:i(()=>new IP,"TokenBuilder"),ValueConverter:i(()=>new NP,"ValueConverter")}};function ts(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),jl,WR);return t.ServiceRegistry.register(r),{shared:t,Pie:r}}i(ts,"createPieServices");var OP=class extends Ie{static{i(this,"TreeViewValueConverter")}runCustomConverter(e,t,r){if(e.name==="INDENTATION")return t?.length||0;if(e.name==="QUOTED_NAME")return t.substring(1,t.length-1);if(e.name==="BARE_NAME")return t.replace(/[\t ]+$/,"");if(e.name==="CLASS_ANNOTATION")return t.trim().substring(3).trim();if(e.name==="ICON_ANNOTATION"){let n=t.trim();return n.substring(5,n.length-1)}if(e.name==="DESC_ANNOTATION")return t.trim().substring(2).trim();return}},MP=class extends ce{static{i(this,"TreeViewTokenBuilder")}constructor(){super(["treeView-beta"])}},qR={parser:{TokenBuilder:i(()=>new MP,"TokenBuilder"),ValueConverter:i(()=>new OP,"ValueConverter")}};function rs(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),ql,qR);return t.ServiceRegistry.register(r),{shared:t,TreeView:r}}i(rs,"createTreeViewServices");var DP=class extends ce{static{i(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},LP=class extends Ie{static{i(this,"ArchitectureValueConverter")}runCustomConverter(e,t,r){if(e.name==="ARCH_ICON")return t.replace(/[()]/g,"").trim();else if(e.name==="ARCH_TEXT_ICON")return t.replace(/["()]/g,"");else if(e.name==="ARCH_TITLE"){let n=t.replace(/^\[|]$/g,"").trim();if(n.startsWith('"')&&n.endsWith('"')||n.startsWith("'")&&n.endsWith("'"))n=n.slice(1,-1),n=n.replace(/\\"/g,'"').replace(/\\'/g,"'");return n.trim()}return}},HR={parser:{TokenBuilder:i(()=>new DP,"TokenBuilder"),ValueConverter:i(()=>new LP,"ValueConverter")}};function ns(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Ml,HR);return t.ServiceRegistry.register(r),{shared:t,Architecture:r}}i(ns,"createArchitectureServices");var xP=class extends ce{static{i(this,"EventModelingTokenBuilder")}constructor(){super(["eventmodeling"])}},YR=new Set(["cmd","command"]),XR=new Set(["evt","event"]),fd=new Set(["rmo","readmodel"]),JR=new Set(["pcr","processor"]),ZR=new Set(["ui"]);function QR(e){let t=e.validation.EventModelingValidator,r=e.validation.ValidationRegistry;if(r){let n={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};r.register(n,t)}}i(QR,"registerValidationChecks");var GP=class{static{i(this,"EventModelingValidator")}checkSourceFrameTypes(e,t){if(e.sourceFrames.length===0)return;if(YR.has(e.modelEntityType))this.validateSources(e,new Set([...ZR,...JR]),"command","ui or processor",t);else if(XR.has(e.modelEntityType))this.validateSources(e,YR,"event","command",t);else if(fd.has(e.modelEntityType))this.validateSources(e,XR,"read model","event",t);else if(JR.has(e.modelEntityType))this.validateSources(e,fd,"processor","read model",t);else if(ZR.has(e.modelEntityType))this.validateSources(e,fd,"ui","read model",t)}validateSources(e,t,r,n,a){for(let s of e.sourceFrames){let o=s.ref;if(o!==void 0&&!t.has(o.modelEntityType))a("error",`A ${r} can only receive input from a ${n}, not from '${o.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},eA={parser:{TokenBuilder:i(()=>new xP,"TokenBuilder"),ValueConverter:i(()=>new Je,"ValueConverter")},validation:{EventModelingValidator:i(()=>new GP,"EventModelingValidator")}};function as(e=le){let t=W(ae(e),ue),r=W(ne({shared:t}),Ll,eA);return t.ServiceRegistry.register(r),QR(r),{shared:t,EventModel:r}}i(as,"createEventModelingServices");var je={},FP={info:i(async()=>{let{createInfoServices:e}=await (_("yhwzx56w"),import("./info-OHQRW6UA.yhwzx56w.js")),t=e().Info.parser.LangiumParser;je.info=t},"info"),packet:i(async()=>{let{createPacketServices:e}=await (_("gp9cmm94"),import("./packet-JDAUHWVQ.gp9cmm94.js")),t=e().Packet.parser.LangiumParser;je.packet=t},"packet"),pie:i(async()=>{let{createPieServices:e}=await (_("fx385qqa"),import("./pie-XZMESJXO.fx385qqa.js")),t=e().Pie.parser.LangiumParser;je.pie=t},"pie"),treeView:i(async()=>{let{createTreeViewServices:e}=await (_("fj76b06b"),import("./treeView-D4JQ5SDB.fj76b06b.js")),t=e().TreeView.parser.LangiumParser;je.treeView=t},"treeView"),architecture:i(async()=>{let{createArchitectureServices:e}=await (_("230b0n6c"),import("./architecture-WOLXFQ4H.230b0n6c.js")),t=e().Architecture.parser.LangiumParser;je.architecture=t},"architecture"),gitGraph:i(async()=>{let{createGitGraphServices:e}=await (_("e4envgw8"),import("./gitGraph-VSP46ZUC.e4envgw8.js")),t=e().GitGraph.parser.LangiumParser;je.gitGraph=t},"gitGraph"),eventmodeling:i(async()=>{let{createEventModelingServices:e}=await (_("q3y4xbmj"),import("./eventmodeling-K75KTNOO.q3y4xbmj.js")),t=e().EventModel.parser.LangiumParser;je.eventmodeling=t},"eventmodeling"),radar:i(async()=>{let{createRadarServices:e}=await (_("d58r1mqp"),import("./radar-ABXABTNO.d58r1mqp.js")),t=e().Radar.parser.LangiumParser;je.radar=t},"radar"),railroad:i(async()=>{let{createRailroadServices:e}=await (_("cwq84f31"),import("./railroad-I3PHUGI6.cwq84f31.js")),t=e().Railroad.parser.LangiumParser;je.railroad=t},"railroad"),railroadEbnf:i(async()=>{let{createRailroadEbnfServices:e}=await (_("geje0ygg"),import("./railroad-ebnf-DWYD2UWJ.geje0ygg.js")),t=e().RailroadEbnf.parser.LangiumParser;je.railroadEbnf=t},"railroadEbnf"),railroadAbnf:i(async()=>{let{createRailroadAbnfServices:e}=await (_("7z7d547m"),import("./railroad-abnf-LNEFI6M7.7z7d547m.js")),t=e().RailroadAbnf.parser.LangiumParser;je.railroadAbnf=t},"railroadAbnf"),railroadPeg:i(async()=>{let{createRailroadPegServices:e}=await (_("f8xnzs1y"),import("./railroad-peg-JR7BVNR7.f8xnzs1y.js")),t=e().RailroadPeg.parser.LangiumParser;je.railroadPeg=t},"railroadPeg"),treemap:i(async()=>{let{createTreemapServices:e}=await (_("yk7967y9"),import("./treemap-SAJKECNS.yk7967y9.js")),t=e().Treemap.parser.LangiumParser;je.treemap=t},"treemap"),wardley:i(async()=>{let{createWardleyServices:e}=await (_("r3k2k1ra"),import("./wardley-7MLQ67FV.r3k2k1ra.js")),t=e().Wardley.parser.LangiumParser;je.wardley=t},"wardley"),cynefin:i(async()=>{let{createCynefinServices:e}=await (_("e9ycn4jb"),import("./cynefin-EF2NZ3EQ.e9ycn4jb.js")),t=e().Cynefin.parser.LangiumParser;je.cynefin=t},"cynefin")};async function se(e,t){let r=FP[e];if(!r)throw Error(`Unknown diagram type: ${e}`);if(!je[e])await r();let a=je[e].parse(t);if(a.lexerErrors.length>0||a.parserErrors.length>0)throw new Lt(a);return a.value}i(se,"parse");var Yl=i((e)=>e!==void 0&&e>=0?e:"?","formatLocation"),Lt=class extends Error{constructor(e){let t=e.lexerErrors.map((n)=>{let a=Yl(n.line),s=Yl(n.column);return`Lexer error on line ${a}, column ${s}: ${n.message}`}).join(`
140
140
  `),r=e.parserErrors.map((n)=>{let a=Yl(n.token.startLine),s=Yl(n.token.startColumn);return`Parse error on line ${a}, column ${s}: ${n.message}`}).join(`
141
141
  `);super(`Parsing failed: ${t} ${r}`);this.result=e}static{i(this,"MermaidParseError")}};
142
142
  export{ka,Ko,Pn,Bn,Fn,$n,Yo,Xo,Qo,Zo,Jo,es,ts,rs,ns,as,se,Lt};
@@ -0,0 +1 @@
1
+ import{Jo}from"./index.yd3167gn.js";export{Jo as createInfoServices};
@@ -1,2 +1,2 @@
1
- import{e,n,j,Y}from"./index.fgsp5qqn.js";import{se}from"./index.9zhger75.js";var i={parse:e(async(r)=>{let t=await se("info",r);n.debug(t)},"parse")},s={version:"12.4.0"},p=e(()=>s.version,"getVersion"),g={getVersion:p},m=e((r,t,o)=>{n.debug(`rendering info diagram
1
+ import{e,n,j,Y}from"./index.mjfjqm0b.js";import{se}from"./index.yd3167gn.js";var i={parse:e(async(r)=>{let t=await se("info",r);n.debug(t)},"parse")},s={version:"12.4.0"},p=e(()=>s.version,"getVersion"),g={getVersion:p},m=e((r,t,o)=>{n.debug(`rendering info diagram
2
2
  `+r);let a=Y(t);j(a,100,400,!0),a.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${o}`)},"draw"),v={draw:m},y={parser:i,db:g,renderer:v};export{y as diagram};
@@ -1,4 +1,4 @@
1
- import{e,y,j,A,L,I,R,M,O,D,u,Y,Qe,g}from"./index.fgsp5qqn.js";var dt=function(){var t=e(function(z,i,n,s){for(n=n||{},s=z.length;s--;n[z[s]]=i);return n},"o"),f=[1,4],r=[1,14],l=[1,12],o=[1,13],p=[6,7,8],m=[1,20],d=[1,18],x=[1,19],c=[6,7,11],_=[1,6,13,14],b=[1,23],S=[1,24],E=[1,6,7,11,13,14],U={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:e(function(i,n,s,h,k,a,T){var v=a.length-1;switch(k){case 6:case 7:return h;case 15:h.addNode(a[v-1].length,a[v].trim());break;case 16:h.addNode(0,a[v].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:f},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:f},{6:r,7:[1,10],9:9,12:11,13:l,14:o},t(p,[2,3]),{1:[2,2]},t(p,[2,4]),t(p,[2,5]),{1:[2,6],6:r,12:15,13:l,14:o},{6:r,9:16,12:11,13:l,14:o},{6:m,7:d,10:17,11:x},t(c,[2,18],{14:[1,21]}),t(c,[2,16]),t(c,[2,17]),{6:m,7:d,10:22,11:x},{1:[2,7],6:r,12:15,13:l,14:o},t(_,[2,14],{7:b,11:S}),t(E,[2,8]),t(E,[2,9]),t(E,[2,10]),t(c,[2,15]),t(_,[2,13],{7:b,11:S}),t(E,[2,11]),t(E,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(i,n){if(n.recoverable)this.trace(i);else{var s=Error(i);throw s.hash=n,s}},"parseError"),parse:e(function(i){var n=this,s=[0],h=[],k=[null],a=[],T=this.table,v="",V=0,P=0,C=0,W=2,X=1,rt=a.slice.call(arguments,1),w=Object.create(this.lexer),B={yy:{}};for(var q in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,q))B.yy[q]=this.yy[q];if(w.setInput(i,B.yy),B.yy.lexer=w,B.yy.parser=this,typeof w.yylloc>"u")w.yylloc={};var Q=w.yylloc;a.push(Q);var lt=w.options&&w.options.ranges;if(typeof B.yy.parseError==="function")this.parseError=B.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function xt(G){s.length=s.length-2*G,k.length=k.length-G,a.length=a.length-G}e(xt,"popStack");function yt(){var G=h.pop()||w.lex()||X;if(typeof G!=="number"){if(G instanceof Array)h=G,G=h.pop();G=n.symbols_[G]||G}return G}e(yt,"lex");var F,ot,J,H,Vt,ht,tt={},st,K,ft,nt;while(!0){if(J=s[s.length-1],this.defaultActions[J])H=this.defaultActions[J];else{if(F===null||typeof F>"u")F=yt();H=T[J]&&T[J][F]}if(typeof H>"u"||!H.length||!H[0]){var ct="";nt=[];for(st in T[J])if(this.terminals_[st]&&st>W)nt.push("'"+this.terminals_[st]+"'");if(w.showPosition)ct="Parse error on line "+(V+1)+`:
1
+ import{e,y,j,A,L,I,R,M,O,D,u,Y,Qe,g}from"./index.mjfjqm0b.js";var dt=function(){var t=e(function(z,i,n,s){for(n=n||{},s=z.length;s--;n[z[s]]=i);return n},"o"),f=[1,4],r=[1,14],l=[1,12],o=[1,13],p=[6,7,8],m=[1,20],d=[1,18],x=[1,19],c=[6,7,11],_=[1,6,13,14],b=[1,23],S=[1,24],E=[1,6,7,11,13,14],U={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:e(function(i,n,s,h,k,a,T){var v=a.length-1;switch(k){case 6:case 7:return h;case 15:h.addNode(a[v-1].length,a[v].trim());break;case 16:h.addNode(0,a[v].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:f},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:f},{6:r,7:[1,10],9:9,12:11,13:l,14:o},t(p,[2,3]),{1:[2,2]},t(p,[2,4]),t(p,[2,5]),{1:[2,6],6:r,12:15,13:l,14:o},{6:r,9:16,12:11,13:l,14:o},{6:m,7:d,10:17,11:x},t(c,[2,18],{14:[1,21]}),t(c,[2,16]),t(c,[2,17]),{6:m,7:d,10:22,11:x},{1:[2,7],6:r,12:15,13:l,14:o},t(_,[2,14],{7:b,11:S}),t(E,[2,8]),t(E,[2,9]),t(E,[2,10]),t(c,[2,15]),t(_,[2,13],{7:b,11:S}),t(E,[2,11]),t(E,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(i,n){if(n.recoverable)this.trace(i);else{var s=Error(i);throw s.hash=n,s}},"parseError"),parse:e(function(i){var n=this,s=[0],h=[],k=[null],a=[],T=this.table,v="",V=0,P=0,C=0,W=2,X=1,rt=a.slice.call(arguments,1),w=Object.create(this.lexer),B={yy:{}};for(var q in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,q))B.yy[q]=this.yy[q];if(w.setInput(i,B.yy),B.yy.lexer=w,B.yy.parser=this,typeof w.yylloc>"u")w.yylloc={};var Q=w.yylloc;a.push(Q);var lt=w.options&&w.options.ranges;if(typeof B.yy.parseError==="function")this.parseError=B.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function xt(G){s.length=s.length-2*G,k.length=k.length-G,a.length=a.length-G}e(xt,"popStack");function yt(){var G=h.pop()||w.lex()||X;if(typeof G!=="number"){if(G instanceof Array)h=G,G=h.pop();G=n.symbols_[G]||G}return G}e(yt,"lex");var F,ot,J,H,Vt,ht,tt={},st,K,ft,nt;while(!0){if(J=s[s.length-1],this.defaultActions[J])H=this.defaultActions[J];else{if(F===null||typeof F>"u")F=yt();H=T[J]&&T[J][F]}if(typeof H>"u"||!H.length||!H[0]){var ct="";nt=[];for(st in T[J])if(this.terminals_[st]&&st>W)nt.push("'"+this.terminals_[st]+"'");if(w.showPosition)ct="Parse error on line "+(V+1)+`:
2
2
  `+w.showPosition()+`
3
3
  Expecting `+nt.join(", ")+", got '"+(this.terminals_[F]||F)+"'";else ct="Parse error on line "+(V+1)+": Unexpected "+(F==X?"end of input":"'"+(this.terminals_[F]||F)+"'");this.parseError(ct,{text:w.match,token:this.terminals_[F]||F,line:w.yylineno,loc:Q,expected:nt})}if(H[0]instanceof Array&&H.length>1)throw Error("Parse Error: multiple actions possible at state: "+J+", token: "+F);switch(H[0]){case 1:if(s.push(F),k.push(w.yytext),a.push(w.yylloc),s.push(H[1]),F=null,!ot){if(P=w.yyleng,v=w.yytext,V=w.yylineno,Q=w.yylloc,C>0)C--}else F=ot,ot=null;break;case 2:if(K=this.productions_[H[1]][1],tt.$=k[k.length-K],tt._$={first_line:a[a.length-(K||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(K||1)].first_column,last_column:a[a.length-1].last_column},lt)tt._$.range=[a[a.length-(K||1)].range[0],a[a.length-1].range[1]];if(ht=this.performAction.apply(tt,[v,P,V,B.yy,H[1],k,a].concat(rt)),typeof ht<"u")return ht;if(K)s=s.slice(0,-1*K*2),k=k.slice(0,-1*K),a=a.slice(0,-1*K);s.push(this.productions_[H[1]][0]),k.push(tt.$),a.push(tt._$),ft=T[s[s.length-2]][s[s.length-1]],s.push(ft);break;case 3:return!0}}return!0},"parse")},Z=function(){var z={EOF:1,parseError:e(function(n,s){if(this.yy.parser)this.yy.parser.parseError(n,s);else throw Error(n)},"parseError"),setInput:e(function(i,n){if(this.yy=n||this.yy||{},this._input=i,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];return this.offset=0,this},"setInput"),input:e(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);if(n)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),i},"input"),unput:e(function(i){var n=i.length,s=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var h=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1)this.yylineno-=s.length-1;var k=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===h.length?this.yylloc.first_column:0)+h[h.length-s.length].length-s[0].length:this.yylloc.first_column-n},this.options.ranges)this.yylloc.range=[k[0],k[0]+this.yyleng-n];return this.yyleng=this.yytext.length,this},"unput"),more:e(function(){return this._more=!0,this},"more"),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:e(function(i){this.unput(this.match.slice(i))},"less"),pastInput:e(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var i=this.match;if(i.length<20)i+=this._input.substr(0,20-i.length);return(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var i=this.pastInput(),n=Array(i.length+1).join("-");return i+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{e,j,A,L,I,R,M,O,D,u,m,Qt}from"./index.fgsp5qqn.js";import{_r,Ca,ul,ct}from"./index.23p1k2rx.js";import{Xe}from"./index.eec12m3n.js";var nt=function(){var t=e(function(h,n,s,l){for(s=s||{},l=h.length;l--;s[h[l]]=n);return s},"o"),r=[6,8,10,11,12,14,16,17,18],a=[1,9],p=[1,10],i=[1,11],y=[1,12],g=[1,13],o=[1,14],x={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:e(function(n,s,l,d,f,c,w){var _=c.length-1;switch(f){case 1:return c[_-1];case 2:this.$=[];break;case 3:c[_-1].push(c[_]),this.$=c[_-1];break;case 4:case 5:this.$=c[_];break;case 6:case 7:this.$=[];break;case 8:d.setDiagramTitle(c[_].substr(6)),this.$=c[_].substr(6);break;case 9:this.$=c[_].trim(),d.setAccTitle(this.$);break;case 10:case 11:this.$=c[_].trim(),d.setAccDescription(this.$);break;case 12:d.addSection(c[_].substr(8)),this.$=c[_].substr(8);break;case 13:d.addTask(c[_-1],c[_]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:p,14:i,16:y,17:g,18:o},t(r,[2,7],{1:[2,1]}),t(r,[2,3]),{9:15,11:a,12:p,14:i,16:y,17:g,18:o},t(r,[2,5]),t(r,[2,6]),t(r,[2,8]),{13:[1,16]},{15:[1,17]},t(r,[2,11]),t(r,[2,12]),{19:[1,18]},t(r,[2,4]),t(r,[2,9]),t(r,[2,10]),t(r,[2,13])],defaultActions:{},parseError:e(function(n,s){if(s.recoverable)this.trace(n);else{var l=Error(n);throw l.hash=s,l}},"parseError"),parse:e(function(n){var s=this,l=[0],d=[],f=[null],c=[],w=this.table,_="",B=0,ot=0,ht=0,vt=2,ut=1,wt=c.slice.call(arguments,1),v=Object.create(this.lexer),z={yy:{}};for(var K in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,K))z.yy[K]=this.yy[K];if(v.setInput(n,z.yy),z.yy.lexer=v,z.yy.parser=this,typeof v.yylloc>"u")v.yylloc={};var Q=v.yylloc;c.push(Q);var Tt=v.options&&v.options.ranges;if(typeof z.yy.parseError==="function")this.parseError=z.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function St(E){l.length=l.length-2*E,f.length=f.length-E,c.length=c.length-E}e(St,"popStack");function yt(){var E=d.pop()||v.lex()||ut;if(typeof E!=="number"){if(E instanceof Array)d=E,E=d.pop();E=s.symbols_[E]||E}return E}e(yt,"lex");var T,tt,W,S,Gt,et,Y={},U,F,dt,Z;while(!0){if(W=l[l.length-1],this.defaultActions[W])S=this.defaultActions[W];else{if(T===null||typeof T>"u")T=yt();S=w[W]&&w[W][T]}if(typeof S>"u"||!S.length||!S[0]){var rt="";Z=[];for(U in w[W])if(this.terminals_[U]&&U>vt)Z.push("'"+this.terminals_[U]+"'");if(v.showPosition)rt="Parse error on line "+(B+1)+`:
1
+ import{e,j,A,L,I,R,M,O,D,u,m,Qt}from"./index.mjfjqm0b.js";import{_r,Ca,ul,ct}from"./index.pb5tn7q8.js";import{Xe}from"./index.b0pypc3w.js";var nt=function(){var t=e(function(h,n,s,l){for(s=s||{},l=h.length;l--;s[h[l]]=n);return s},"o"),r=[6,8,10,11,12,14,16,17,18],a=[1,9],p=[1,10],i=[1,11],y=[1,12],g=[1,13],o=[1,14],x={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:e(function(n,s,l,d,f,c,w){var _=c.length-1;switch(f){case 1:return c[_-1];case 2:this.$=[];break;case 3:c[_-1].push(c[_]),this.$=c[_-1];break;case 4:case 5:this.$=c[_];break;case 6:case 7:this.$=[];break;case 8:d.setDiagramTitle(c[_].substr(6)),this.$=c[_].substr(6);break;case 9:this.$=c[_].trim(),d.setAccTitle(this.$);break;case 10:case 11:this.$=c[_].trim(),d.setAccDescription(this.$);break;case 12:d.addSection(c[_].substr(8)),this.$=c[_].substr(8);break;case 13:d.addTask(c[_-1],c[_]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:p,14:i,16:y,17:g,18:o},t(r,[2,7],{1:[2,1]}),t(r,[2,3]),{9:15,11:a,12:p,14:i,16:y,17:g,18:o},t(r,[2,5]),t(r,[2,6]),t(r,[2,8]),{13:[1,16]},{15:[1,17]},t(r,[2,11]),t(r,[2,12]),{19:[1,18]},t(r,[2,4]),t(r,[2,9]),t(r,[2,10]),t(r,[2,13])],defaultActions:{},parseError:e(function(n,s){if(s.recoverable)this.trace(n);else{var l=Error(n);throw l.hash=s,l}},"parseError"),parse:e(function(n){var s=this,l=[0],d=[],f=[null],c=[],w=this.table,_="",B=0,ot=0,ht=0,vt=2,ut=1,wt=c.slice.call(arguments,1),v=Object.create(this.lexer),z={yy:{}};for(var K in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,K))z.yy[K]=this.yy[K];if(v.setInput(n,z.yy),z.yy.lexer=v,z.yy.parser=this,typeof v.yylloc>"u")v.yylloc={};var Q=v.yylloc;c.push(Q);var Tt=v.options&&v.options.ranges;if(typeof z.yy.parseError==="function")this.parseError=z.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function St(E){l.length=l.length-2*E,f.length=f.length-E,c.length=c.length-E}e(St,"popStack");function yt(){var E=d.pop()||v.lex()||ut;if(typeof E!=="number"){if(E instanceof Array)d=E,E=d.pop();E=s.symbols_[E]||E}return E}e(yt,"lex");var T,tt,W,S,Gt,et,Y={},U,F,dt,Z;while(!0){if(W=l[l.length-1],this.defaultActions[W])S=this.defaultActions[W];else{if(T===null||typeof T>"u")T=yt();S=w[W]&&w[W][T]}if(typeof S>"u"||!S.length||!S[0]){var rt="";Z=[];for(U in w[W])if(this.terminals_[U]&&U>vt)Z.push("'"+this.terminals_[U]+"'");if(v.showPosition)rt="Parse error on line "+(B+1)+`:
2
2
  `+v.showPosition()+`
3
3
  Expecting `+Z.join(", ")+", got '"+(this.terminals_[T]||T)+"'";else rt="Parse error on line "+(B+1)+": Unexpected "+(T==ut?"end of input":"'"+(this.terminals_[T]||T)+"'");this.parseError(rt,{text:v.match,token:this.terminals_[T]||T,line:v.yylineno,loc:Q,expected:Z})}if(S[0]instanceof Array&&S.length>1)throw Error("Parse Error: multiple actions possible at state: "+W+", token: "+T);switch(S[0]){case 1:if(l.push(T),f.push(v.yytext),c.push(v.yylloc),l.push(S[1]),T=null,!tt){if(ot=v.yyleng,_=v.yytext,B=v.yylineno,Q=v.yylloc,ht>0)ht--}else T=tt,tt=null;break;case 2:if(F=this.productions_[S[1]][1],Y.$=f[f.length-F],Y._$={first_line:c[c.length-(F||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(F||1)].first_column,last_column:c[c.length-1].last_column},Tt)Y._$.range=[c[c.length-(F||1)].range[0],c[c.length-1].range[1]];if(et=this.performAction.apply(Y,[_,ot,B,z.yy,S[1],f,c].concat(wt)),typeof et<"u")return et;if(F)l=l.slice(0,-1*F*2),f=f.slice(0,-1*F),c=c.slice(0,-1*F);l.push(this.productions_[S[1]][0]),f.push(Y.$),c.push(Y._$),dt=w[l[l.length-2]][l[l.length-1]],l.push(dt);break;case 3:return!0}}return!0},"parse")},k=function(){var h={EOF:1,parseError:e(function(s,l){if(this.yy.parser)this.yy.parser.parseError(s,l);else throw Error(s)},"parseError"),setInput:e(function(n,s){if(this.yy=s||this.yy||{},this._input=n,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];return this.offset=0,this},"setInput"),input:e(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var s=n.match(/(?:\r\n?|\n).*/g);if(s)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),n},"input"),unput:e(function(n){var s=n.length,l=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var d=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1)this.yylineno-=l.length-1;var f=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===d.length?this.yylloc.first_column:0)+d[d.length-l.length].length-l[0].length:this.yylloc.first_column-s},this.options.ranges)this.yylloc.range=[f[0],f[0]+this.yyleng-s];return this.yyleng=this.yytext.length,this},"unput"),more:e(function(){return this._more=!0,this},"more"),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:e(function(n){this.unput(this.match.slice(n))},"less"),pastInput:e(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var n=this.match;if(n.length<20)n+=this._input.substr(0,20-n.length);return(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var n=this.pastInput(),s=Array(n.length+1).join("-");return n+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{e,n,ae,h,p,F,q,Tt,u,Y,ut,dt,Ft,St,gr}from"./index.fgsp5qqn.js";import{Xe}from"./index.eec12m3n.js";var se=function(){var t=e(function(A,s,r,o){for(r=r||{},o=A.length;o--;r[A[o]]=s);return r},"o"),f=[1,4],m=[1,13],a=[1,12],y=[1,15],N=[1,16],S=[1,20],g=[1,19],C=[6,7,8],T=[1,26],b=[1,24],P=[1,25],x=[6,7,11],z=[1,31],D=[6,7,11,24],U=[1,6,13,16,17,20,23],k=[1,35],V=[1,36],w=[1,6,7,11,13,16,17,20,23],X=[1,38],B={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:e(function(s,r,o,c,d,i,j){var l=i.length-1;switch(d){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",i[l-1].id),c.addNode(i[l-2].length,i[l-1].id,i[l-1].descr,i[l-1].type,i[l]);break;case 16:c.getLogger().info("Node: ",i[l].id),c.addNode(i[l-1].length,i[l].id,i[l].descr,i[l].type);break;case 17:c.getLogger().trace("Icon: ",i[l]),c.decorateNode({icon:i[l]});break;case 18:case 23:c.decorateNode({class:i[l]});break;case 19:c.getLogger().trace("SPACELIST");break;case 20:c.getLogger().trace("Node: ",i[l-1].id),c.addNode(0,i[l-1].id,i[l-1].descr,i[l-1].type,i[l]);break;case 21:c.getLogger().trace("Node: ",i[l].id),c.addNode(0,i[l].id,i[l].descr,i[l].type);break;case 22:c.decorateNode({icon:i[l]});break;case 27:c.getLogger().trace("node found ..",i[l-2]),this.$={id:i[l-1],descr:i[l-1],type:c.getType(i[l-2],i[l])};break;case 28:this.$={id:i[l],descr:i[l],type:0};break;case 29:c.getLogger().trace("node found ..",i[l-3]),this.$={id:i[l-3],descr:i[l-1],type:c.getType(i[l-2],i[l])};break;case 30:this.$=i[l-1]+i[l];break;case 31:this.$=i[l];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:f},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:f},{6:m,7:[1,10],9:9,12:11,13:a,14:14,16:y,17:N,18:17,19:18,20:S,23:g},t(C,[2,3]),{1:[2,2]},t(C,[2,4]),t(C,[2,5]),{1:[2,6],6:m,12:21,13:a,14:14,16:y,17:N,18:17,19:18,20:S,23:g},{6:m,9:22,12:11,13:a,14:14,16:y,17:N,18:17,19:18,20:S,23:g},{6:T,7:b,10:23,11:P},t(x,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:S,23:g}),t(x,[2,19]),t(x,[2,21],{15:30,24:z}),t(x,[2,22]),t(x,[2,23]),t(D,[2,25]),t(D,[2,26]),t(D,[2,28],{20:[1,32]}),{21:[1,33]},{6:T,7:b,10:34,11:P},{1:[2,7],6:m,12:21,13:a,14:14,16:y,17:N,18:17,19:18,20:S,23:g},t(U,[2,14],{7:k,11:V}),t(w,[2,8]),t(w,[2,9]),t(w,[2,10]),t(x,[2,16],{15:37,24:z}),t(x,[2,17]),t(x,[2,18]),t(x,[2,20],{24:X}),t(D,[2,31]),{21:[1,39]},{22:[1,40]},t(U,[2,13],{7:k,11:V}),t(w,[2,11]),t(w,[2,12]),t(x,[2,15],{24:X}),t(D,[2,30]),{22:[1,41]},t(D,[2,27]),t(D,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(s,r){if(r.recoverable)this.trace(s);else{var o=Error(s);throw o.hash=r,o}},"parseError"),parse:e(function(s){var r=this,o=[0],c=[],d=[null],i=[],j=this.table,l="",K=0,he=0,ue=0,be=2,ge=1,ye=i.slice.call(arguments,1),_=Object.create(this.lexer),G={yy:{}};for(var ee in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,ee))G.yy[ee]=this.yy[ee];if(_.setInput(s,G.yy),G.yy.lexer=_,G.yy.parser=this,typeof _.yylloc>"u")_.yylloc={};var te=_.yylloc;i.push(te);var me=_.options&&_.options.ranges;if(typeof G.yy.parseError==="function")this.parseError=G.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ke(O){o.length=o.length-2*O,d.length=d.length-O,i.length=i.length-O}e(ke,"popStack");function de(){var O=c.pop()||_.lex()||ge;if(typeof O!=="number"){if(O instanceof Array)c=O,O=c.pop();O=r.symbols_[O]||O}return O}e(de,"lex");var v,ne,M,L,je,ie,W={},J,R,pe,Q;while(!0){if(M=o[o.length-1],this.defaultActions[M])L=this.defaultActions[M];else{if(v===null||typeof v>"u")v=de();L=j[M]&&j[M][v]}if(typeof L>"u"||!L.length||!L[0]){var re="";Q=[];for(J in j[M])if(this.terminals_[J]&&J>be)Q.push("'"+this.terminals_[J]+"'");if(_.showPosition)re="Parse error on line "+(K+1)+`:
1
+ import{e,n,ae,h,p,F,q,Tt,u,Y,ut,dt,Ft,St,gr}from"./index.mjfjqm0b.js";import{Xe}from"./index.b0pypc3w.js";var se=function(){var t=e(function(A,s,r,o){for(r=r||{},o=A.length;o--;r[A[o]]=s);return r},"o"),f=[1,4],m=[1,13],a=[1,12],y=[1,15],N=[1,16],S=[1,20],g=[1,19],C=[6,7,8],T=[1,26],b=[1,24],P=[1,25],x=[6,7,11],z=[1,31],D=[6,7,11,24],U=[1,6,13,16,17,20,23],k=[1,35],V=[1,36],w=[1,6,7,11,13,16,17,20,23],X=[1,38],B={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:e(function(s,r,o,c,d,i,j){var l=i.length-1;switch(d){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",i[l-1].id),c.addNode(i[l-2].length,i[l-1].id,i[l-1].descr,i[l-1].type,i[l]);break;case 16:c.getLogger().info("Node: ",i[l].id),c.addNode(i[l-1].length,i[l].id,i[l].descr,i[l].type);break;case 17:c.getLogger().trace("Icon: ",i[l]),c.decorateNode({icon:i[l]});break;case 18:case 23:c.decorateNode({class:i[l]});break;case 19:c.getLogger().trace("SPACELIST");break;case 20:c.getLogger().trace("Node: ",i[l-1].id),c.addNode(0,i[l-1].id,i[l-1].descr,i[l-1].type,i[l]);break;case 21:c.getLogger().trace("Node: ",i[l].id),c.addNode(0,i[l].id,i[l].descr,i[l].type);break;case 22:c.decorateNode({icon:i[l]});break;case 27:c.getLogger().trace("node found ..",i[l-2]),this.$={id:i[l-1],descr:i[l-1],type:c.getType(i[l-2],i[l])};break;case 28:this.$={id:i[l],descr:i[l],type:0};break;case 29:c.getLogger().trace("node found ..",i[l-3]),this.$={id:i[l-3],descr:i[l-1],type:c.getType(i[l-2],i[l])};break;case 30:this.$=i[l-1]+i[l];break;case 31:this.$=i[l];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:f},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:f},{6:m,7:[1,10],9:9,12:11,13:a,14:14,16:y,17:N,18:17,19:18,20:S,23:g},t(C,[2,3]),{1:[2,2]},t(C,[2,4]),t(C,[2,5]),{1:[2,6],6:m,12:21,13:a,14:14,16:y,17:N,18:17,19:18,20:S,23:g},{6:m,9:22,12:11,13:a,14:14,16:y,17:N,18:17,19:18,20:S,23:g},{6:T,7:b,10:23,11:P},t(x,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:S,23:g}),t(x,[2,19]),t(x,[2,21],{15:30,24:z}),t(x,[2,22]),t(x,[2,23]),t(D,[2,25]),t(D,[2,26]),t(D,[2,28],{20:[1,32]}),{21:[1,33]},{6:T,7:b,10:34,11:P},{1:[2,7],6:m,12:21,13:a,14:14,16:y,17:N,18:17,19:18,20:S,23:g},t(U,[2,14],{7:k,11:V}),t(w,[2,8]),t(w,[2,9]),t(w,[2,10]),t(x,[2,16],{15:37,24:z}),t(x,[2,17]),t(x,[2,18]),t(x,[2,20],{24:X}),t(D,[2,31]),{21:[1,39]},{22:[1,40]},t(U,[2,13],{7:k,11:V}),t(w,[2,11]),t(w,[2,12]),t(x,[2,15],{24:X}),t(D,[2,30]),{22:[1,41]},t(D,[2,27]),t(D,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(s,r){if(r.recoverable)this.trace(s);else{var o=Error(s);throw o.hash=r,o}},"parseError"),parse:e(function(s){var r=this,o=[0],c=[],d=[null],i=[],j=this.table,l="",K=0,he=0,ue=0,be=2,ge=1,ye=i.slice.call(arguments,1),_=Object.create(this.lexer),G={yy:{}};for(var ee in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,ee))G.yy[ee]=this.yy[ee];if(_.setInput(s,G.yy),G.yy.lexer=_,G.yy.parser=this,typeof _.yylloc>"u")_.yylloc={};var te=_.yylloc;i.push(te);var me=_.options&&_.options.ranges;if(typeof G.yy.parseError==="function")this.parseError=G.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ke(O){o.length=o.length-2*O,d.length=d.length-O,i.length=i.length-O}e(ke,"popStack");function de(){var O=c.pop()||_.lex()||ge;if(typeof O!=="number"){if(O instanceof Array)c=O,O=c.pop();O=r.symbols_[O]||O}return O}e(de,"lex");var v,ne,M,L,je,ie,W={},J,R,pe,Q;while(!0){if(M=o[o.length-1],this.defaultActions[M])L=this.defaultActions[M];else{if(v===null||typeof v>"u")v=de();L=j[M]&&j[M][v]}if(typeof L>"u"||!L.length||!L[0]){var re="";Q=[];for(J in j[M])if(this.terminals_[J]&&J>be)Q.push("'"+this.terminals_[J]+"'");if(_.showPosition)re="Parse error on line "+(K+1)+`:
2
2
  `+_.showPosition()+`
3
3
  Expecting `+Q.join(", ")+", got '"+(this.terminals_[v]||v)+"'";else re="Parse error on line "+(K+1)+": Unexpected "+(v==ge?"end of input":"'"+(this.terminals_[v]||v)+"'");this.parseError(re,{text:_.match,token:this.terminals_[v]||v,line:_.yylineno,loc:te,expected:Q})}if(L[0]instanceof Array&&L.length>1)throw Error("Parse Error: multiple actions possible at state: "+M+", token: "+v);switch(L[0]){case 1:if(o.push(v),d.push(_.yytext),i.push(_.yylloc),o.push(L[1]),v=null,!ne){if(he=_.yyleng,l=_.yytext,K=_.yylineno,te=_.yylloc,ue>0)ue--}else v=ne,ne=null;break;case 2:if(R=this.productions_[L[1]][1],W.$=d[d.length-R],W._$={first_line:i[i.length-(R||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(R||1)].first_column,last_column:i[i.length-1].last_column},me)W._$.range=[i[i.length-(R||1)].range[0],i[i.length-1].range[1]];if(ie=this.performAction.apply(W,[l,he,K,G.yy,L[1],d,i].concat(ye)),typeof ie<"u")return ie;if(R)o=o.slice(0,-1*R*2),d=d.slice(0,-1*R),i=i.slice(0,-1*R);o.push(this.productions_[L[1]][0]),d.push(W.$),i.push(W._$),pe=j[o[o.length-2]][o[o.length-1]],o.push(pe);break;case 3:return!0}}return!0},"parse")},Z=function(){var A={EOF:1,parseError:e(function(r,o){if(this.yy.parser)this.yy.parser.parseError(r,o);else throw Error(r)},"parseError"),setInput:e(function(s,r){if(this.yy=r||this.yy||{},this._input=s,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];return this.offset=0,this},"setInput"),input:e(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var r=s.match(/(?:\r\n?|\n).*/g);if(r)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),s},"input"),unput:e(function(s){var r=s.length,o=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var c=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1)this.yylineno-=o.length-1;var d=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===c.length?this.yylloc.first_column:0)+c[c.length-o.length].length-o[0].length:this.yylloc.first_column-r},this.options.ranges)this.yylloc.range=[d[0],d[0]+this.yyleng-r];return this.yyleng=this.yytext.length,this},"unput"),more:e(function(){return this._more=!0,this},"more"),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:e(function(s){this.unput(this.match.slice(s))},"less"),pastInput:e(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var s=this.match;if(s.length<20)s+=this._input.substr(0,20-s.length);return(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var s=this.pastInput(),r=Array(s.length+1).join("-");return s+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{de,ye,f,ie,d,l,w,i,o,r,a}from"./index.0hrfbrja.js";function c(){return c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var s=arguments[e];for(var p in s)({}).hasOwnProperty.call(s,p)&&(t[p]=s[p])}return t},c.apply(null,arguments)}function U(t,e){if(t==null)return{};var s={};for(var p in t)if({}.hasOwnProperty.call(t,p)){if(e.indexOf(p)!==-1)continue;s[p]=t[p]}return s}var or=255,fr=360,Y=100,er=(t)=>{var{r:e,g:s,b:p,a:b}=t,n=Math.max(e,s,p),v=n-Math.min(e,s,p),x=v?n===e?(s-p)/v:n===s?2+(p-e)/v:4+(e-s)/v:0;return{h:60*(x<0?x+6:x),s:n?v/n*Y:0,v:n/or*Y,a:b}},Rr=(t)=>{var e=hr(t),{h:s,s:p,l:b,a:n}=e;return"hsla("+s+", "+p+"%, "+b+"%, "+n+")"},sr=(t)=>{var{h:e,s,l:p,a:b}=t;return s*=(p<50?p:Y-p)/Y,{h:e,s:s>0?2*s/(p+s)*Y:0,v:p+s,a:b}},hr=(t)=>{var{h:e,s,v:p,a:b}=t,n=(200-s)*p/Y;return{h:e,s:n>0&&n<200?s*p/Y/(n<=Y?n:200-n)*Y:0,l:n/2,a:b}};fr/400,fr/(Math.PI*2);var Br=(t)=>{var{r:e,g:s,b:p}=t;return"#"+((b)=>Array(7-b.length).join("0")+b)((e<<16|s<<8|p).toString(16))},kr=(t)=>{var{r:e,g:s,b:p,a:b}=t,n=typeof b=="number"&&(b*255|256).toString(16).slice(1);return""+Br({r:e,g:s,b:p})+(n||"")},Z=(t)=>er(Mr(t)),Mr=(t)=>{var e=t.replace("#","");/^#?/.test(t)&&e.length===3&&(t="#"+e.charAt(0)+e.charAt(0)+e.charAt(1)+e.charAt(1)+e.charAt(2)+e.charAt(2));var s=RegExp("[A-Za-z0-9]{2}","g"),p=t.match(s).map((x)=>parseInt(x,16)),b=p[0],n=p[1],v=p[2];return{r:b,g:n,b:v===void 0?0:v,a:(p[3]??255)/or}},nr=(t)=>{var{h:e,s,v:p,a:b}=t,n=e/60,v=s/Y,x=p/Y,A=Math.floor(n)%6;A<0&&(A+=6);var R=n-Math.floor(n),L=or*x*(1-v),y=or*x*(1-v*R),k=or*x*(1-v*(1-R));x*=or;var C={};switch(A){case 0:C.r=x,C.g=k,C.b=L;break;case 1:C.r=y,C.g=x,C.b=L;break;case 2:C.r=L,C.g=x,C.b=k;break;case 3:C.r=L,C.g=y,C.b=x;break;case 4:C.r=k,C.g=L,C.b=x;break;case 5:C.r=x,C.g=L,C.b=y}return C.r=Math.round(C.r),C.g=Math.round(C.g),C.b=Math.round(C.b),c({},C,{a:b})},zr=(t)=>{var e=nr(t),{r:s,g:p,b,a:n}=e;return"rgba("+s+", "+p+", "+b+", "+n+")"},Ir=(t)=>({r:t.r,g:t.g,b:t.b}),Hr=(t)=>({h:t.h,s:t.s,l:t.l}),cr=(t)=>Br(nr(t)),jr=(t)=>kr(nr(t)),Fr=(t)=>({h:t.h,s:t.s,v:t.v}),Gr=(t)=>{var{r:e,g:s,b:p}=t,b=function(R){return R<=0.04045?R/12.92:((R+0.055)/1.055)**2.4},n=b(e/255),v=b(s/255),x=b(p/255),A={};return A.x=n*0.4124+v*0.3576+x*0.1805,A.y=n*0.2126+v*0.7152+x*0.0722,A.bri=n*0.0193+v*0.1192+x*0.9505,A},_=(t)=>{var e,s,p,b,n,v,x,A,R;return typeof t=="string"&&ur(t)?(v=Z(t),A=t):typeof t!="string"&&(v=t),v&&(p=Fr(v),n=hr(v),b=nr(v),R=kr(b),A=cr(v),s=Hr(n),e=Ir(b),x=Gr(e)),{rgb:e,hsl:s,hsv:p,rgba:b,hsla:n,hsva:v,hex:A,hexa:R,xy:x}},ur=(t)=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(t);function Or(t){if(t==null)throw TypeError("Cannot destructure "+t)}var Wr=["prefixCls","className","color","colors","style","rectProps","onChange","addonAfter","addonBefore","rectRender"],Sr=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-swatch":s,{className:b,color:n,colors:v}=t,x=v===void 0?[]:v,{style:A,rectProps:R}=t,L=R===void 0?{}:R,{onChange:y,addonAfter:k,addonBefore:C,rectRender:D}=t,T=U(t,Wr),S=c({"--swatch-background-color":"rgb(144, 19, 254)",background:"var(--swatch-background-color)",height:15,width:15,marginRight:5,marginBottom:5,cursor:"pointer",position:"relative",outline:"none",borderRadius:2},L.style),B=(N,u)=>{y&&y(Z(N),_(Z(N)),u)};return a("div",c({ref:e},T,{className:[p,b||""].filter(Boolean).join(" "),style:c({display:"flex",flexWrap:"wrap",position:"relative"},A),children:[C&&ie(C)&&C,x&&Array.isArray(x)&&x.map((N,u)=>{var E="",g="";typeof N=="string"&&(E=N,g=N),typeof N=="object"&&N.color&&(E=N.title||N.color,g=N.color);var M=n&&n.toLocaleLowerCase()===g.toLocaleLowerCase(),m=D&&D({title:E,color:g,checked:!!M,style:c({},S,{background:g}),onClick:(P)=>B(g,P)});if(m)return r(de,{children:m},u);var h=L.children&&ie(L.children)?ye(L.children,{color:g,checked:M}):null;return r("div",c({tabIndex:0,title:E,onClick:(P)=>B(g,P)},L,{children:h,style:c({},S,{background:g})}),u)}),k&&ie(k)&&k]}))});Sr.displayName="Swatch";var Ur={marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25};function Xr(t){var{style:e,title:s,checked:p}=t;t.color;var{onClick:b,rectProps:n}=t,v=i(null),x=d(()=>{v.current.style.zIndex="2",v.current.style.outline="#fff solid 2px",v.current.style.boxShadow="rgb(0 0 0 / 25%) 0 0 5px 2px"},[]),A=d(()=>{p||(v.current.style.zIndex="0",v.current.style.outline="initial",v.current.style.boxShadow="initial")},[p]);return r("div",c({ref:v,title:s},n,{onClick:b,onMouseEnter:x,onMouseLeave:A,style:c({},e,{marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25},Ur,p?{zIndex:1,outline:"#fff solid 2px",boxShadow:"rgb(0 0 0 / 25%) 0 0 5px 2px"}:{zIndex:0},n?.style)}))}var Yr=["prefixCls","placement","className","style","color","colors","showTriangle","rectProps","onChange","rectRender"],_r=["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],I=function(t){return t.Left="L",t.LeftTop="LT",t.LeftBottom="LB",t.Right="R",t.RightTop="RT",t.RightBottom="RB",t.Top="T",t.TopRight="TR",t.TopLeft="TL",t.Bottom="B",t.BottomLeft="BL",t.BottomRight="BR",t}({}),Pr=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-github":s,b=t.placement,n=b===void 0?I.TopRight:b,{className:v,style:x,color:A,colors:R}=t,L=R===void 0?_r:R,y=t.showTriangle,k=y===void 0||y,C=t.rectProps,D=C===void 0?{}:C,{onChange:T,rectRender:S}=t,B=U(t,Yr),N=typeof A=="string"&&ur(A)?Z(A):A,u=A?cr(N):"",E=(P)=>T&&T(_(P)),g=c({"--github-border":"1px solid rgba(0, 0, 0, 0.2)","--github-background-color":"#fff","--github-box-shadow":"rgb(0 0 0 / 15%) 0px 3px 12px","--github-arrow-border-color":"rgba(0, 0, 0, 0.15)",width:200,borderRadius:4,background:"var(--github-background-color)",boxShadow:"var(--github-box-shadow)",border:"var(--github-border)",position:"relative",padding:5},x),M={borderStyle:"solid",position:"absolute"},m=c({},M),h=c({},M);return/^T/.test(n)&&(m.borderWidth="0 8px 8px",m.borderColor="transparent transparent var(--github-arrow-border-color)",h.borderWidth="0 7px 7px",h.borderColor="transparent transparent var(--github-background-color)"),n===I.TopRight&&(m.top=-8,h.top=-7),n===I.Top&&(m.top=-8,h.top=-7),n===I.TopLeft&&(m.top=-8,h.top=-7),/^B/.test(n)&&(m.borderWidth="8px 8px 0",m.borderColor="var(--github-arrow-border-color) transparent transparent",h.borderWidth="7px 7px 0",h.borderColor="var(--github-background-color) transparent transparent",n===I.BottomRight&&(m.top="100%",h.top="100%"),n===I.Bottom&&(m.top="100%",h.top="100%"),n===I.BottomLeft&&(m.top="100%",h.top="100%")),/^(B|T)/.test(n)&&((n===I.Top||n===I.Bottom)&&(m.left="50%",m.marginLeft=-8,h.left="50%",h.marginLeft=-7),(n===I.TopRight||n===I.BottomRight)&&(m.right=10,h.right=11),(n===I.TopLeft||n===I.BottomLeft)&&(m.left=7,h.left=8)),/^L/.test(n)&&(m.borderWidth="8px 8px 8px 0",m.borderColor="transparent var(--github-arrow-border-color) transparent transparent",h.borderWidth="7px 7px 7px 0",h.borderColor="transparent var(--github-background-color) transparent transparent",m.left=-8,h.left=-7),/^R/.test(n)&&(m.borderWidth="8px 0 8px 8px",m.borderColor="transparent transparent transparent var(--github-arrow-border-color)",h.borderWidth="7px 0 7px 7px",h.borderColor="transparent transparent transparent var(--github-background-color)",m.right=-8,h.right=-7),/^(L|R)/.test(n)&&((n===I.RightTop||n===I.LeftTop)&&(m.top=5,h.top=6),(n===I.Left||n===I.Right)&&(m.top="50%",h.top="50%",m.marginTop=-8,h.marginTop=-7),(n===I.LeftBottom||n===I.RightBottom)&&(m.top="100%",h.top="100%",m.marginTop=-21,h.marginTop=-20)),r(Sr,c({ref:e,className:[p,v].filter(Boolean).join(" "),colors:L,color:u,rectRender:(P)=>{var j=c({},(Or(P),P));return S&&S(c({},j))||r(Xr,c({},j,{rectProps:D}))}},B,{onChange:E,style:g,rectProps:{style:{marginRight:0,marginBottom:0,borderRadius:0,height:25,width:25}},addonBefore:r(de,{children:k&&a(de,{children:[r("div",{style:m}),r("div",{style:h})]})})}))});Pr.displayName="Github";function mr(t){var e=i(t);return l(()=>{e.current=t}),d((s,p)=>e.current&&e.current(s,p),[])}var ar=(t)=>("touches"in t),xr=(t)=>{!ar(t)&&t.preventDefault&&t.preventDefault()},yr=function(t,e,s){return e===void 0&&(e=0),s===void 0&&(s=1),t>s?s:t<e?e:t},wr=(t,e)=>{var s=t.getBoundingClientRect(),p=ar(e)?e.touches[0]:e;return{left:yr((p.pageX-(s.left+window.pageXOffset))/s.width),top:yr((p.pageY-(s.top+window.pageYOffset))/s.height),width:s.width,height:s.height,x:p.pageX-(s.left+window.pageXOffset),y:p.pageY-(s.top+window.pageYOffset)}},Vr=["prefixCls","className","onMove","onDown"],gr=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-interactive":s,{className:b,onMove:n,onDown:v}=t,x=U(t,Vr),A=i(null),R=i(!1),L=o(!1),y=L[0],k=L[1],C=mr(n),D=mr(v),T=(g)=>R.current&&!ar(g)?!1:(R.current=ar(g),!0),S=d((g)=>{xr(g),A.current&&((ar(g)?g.touches.length>0:g.buttons>0)?C?.(wr(A.current,g),g):k(!1))},[C]),B=d(()=>k(!1),[]),N=d((g)=>{g?(window.addEventListener(R.current?"touchmove":"mousemove",S),window.addEventListener(R.current?"touchend":"mouseup",B)):(window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",B),window.removeEventListener("touchmove",S),window.removeEventListener("touchend",B))},[S,B]);l(()=>(N(y),()=>{N(!1)}),[y,S,B,N]);var u=d((g)=>{document.activeElement?.blur(),xr(g.nativeEvent),T(g.nativeEvent)&&A.current&&(D?.(wr(A.current,g.nativeEvent),g.nativeEvent),k(!0))},[D]),E=d((g)=>{A.current=g,typeof e=="function"?e(g):e&&(e.current=g)},[e]);return r("div",c({},x,{className:[p,b||""].filter(Boolean).join(" "),style:c({},x.style,{touchAction:"none"}),ref:E,tabIndex:0,onMouseDown:u,onTouchStart:u}))});gr.displayName="Interactive";var Jr=(t)=>{var{className:e,color:s,left:p,top:b,prefixCls:n}=t,v={position:"absolute",top:b,left:p},x={"--saturation-pointer-box-shadow":"rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px",width:6,height:6,transform:"translate(-3px, -3px)",boxShadow:"var(--saturation-pointer-box-shadow)",borderRadius:"50%",backgroundColor:s};return w(()=>r("div",{className:n+"-pointer "+(e||""),style:v,children:r("div",{className:n+"-fill",style:x})}),[b,p,s,e,n])},Kr=["prefixCls","radius","pointer","className","hue","style","hsva","onChange"],Nr=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-saturation":s,b=t.radius,n=b===void 0?0:b,{pointer:v,className:x,hue:A}=t,R=A===void 0?0:A,{style:L,hsva:y,onChange:k}=t,C=U(t,Kr),D=c({width:200,height:200,borderRadius:n},L,{position:"relative"}),T=i(null),S=d((g)=>{T.current=g,typeof e=="function"?e(g):e&&("current"in e)&&(e.current=g)},[e]),B=d((g,M)=>{k&&y&&k({h:y.h,s:g.left*100,v:(1-g.top)*100,a:y.a});var m=T.current;m&&m.focus()},[y,k]),N=d((g)=>{if(y&&k){var M=1,{s:m,v:h}=y;switch(g.key){case"ArrowLeft":m=Math.max(0,y.s-M),g.preventDefault();break;case"ArrowRight":m=Math.min(100,y.s+M),g.preventDefault();break;case"ArrowUp":h=Math.min(100,y.v+M),g.preventDefault();break;case"ArrowDown":h=Math.max(0,y.v-M),g.preventDefault();break;default:return}k({h:y.h,s:m,v:h,a:y.a})}},[y,k]),u=w(()=>{if(!y)return null;var g={top:100-y.v+"%",left:y.s+"%",color:Rr(y)};return v&&typeof v=="function"?v(c({prefixCls:p},g)):r(Jr,c({prefixCls:p},g))},[y,v,p]),E=d((g)=>{g.target.focus()},[]);return r(gr,c({className:[p,x||""].filter(Boolean).join(" ")},C,{style:c({position:"absolute",inset:0,cursor:"crosshair",backgroundImage:"linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, hsl("+(y?.h??R)+", 100%, 50%))"},D,{outline:"none"}),ref:S,onMove:B,onDown:B,onKeyDown:N,onClick:E,children:u}))});Nr.displayName="Saturation";var Qr=["className","prefixCls","left","top","style","fillProps"],Zr=(t)=>{var{className:e,prefixCls:s,left:p,top:b,style:n,fillProps:v}=t,x=U(t,Qr),A=c({},n,{position:"absolute",left:p,top:b}),R=c({width:18,height:18,boxShadow:"var(--alpha-pointer-box-shadow)",borderRadius:"50%",backgroundColor:"var(--alpha-pointer-background-color)"},v?.style,{transform:p?"translate(-9px, -1px)":"translate(-1px, -9px)"});return r("div",c({className:s+"-pointer "+(e||""),style:A},x,{children:r("div",c({className:s+"-fill"},v,{style:R}))}))},$r=["prefixCls","className","hsva","background","bgProps","innerProps","pointerProps","radius","width","height","direction","reverse","style","onChange","pointer"],qr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==",pr=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-alpha":s,{className:b,hsva:n,background:v,bgProps:x}=t,A=x===void 0?{}:x,R=t.innerProps,L=R===void 0?{}:R,y=t.pointerProps,k=y===void 0?{}:y,C=t.radius,D=C===void 0?0:C,{width:T,height:S}=t,B=S===void 0?16:S,N=t.direction,u=N===void 0?"horizontal":N,E=t.reverse,g=E!==void 0&&E,{style:M,onChange:m,pointer:h}=t,P=U(t,$r),j=d((H)=>{var O=u==="horizontal"?H.left:H.top;return u==="horizontal"?g?1-O:O:g?O:1-O},[u,g]),X=d((H)=>u==="horizontal"?g?1-H:H:g?H:1-H,[u,g]),W=(H)=>{var O=j(H);m&&m(c({},n,{a:O}),H)},z=Rr(Object.assign({},n,{a:1})),F=g?"linear-gradient(to right, "+z+" 0%, rgba(244, 67, 54, 0) 100%)":"linear-gradient(to right, rgba(244, 67, 54, 0) 0%, "+z+" 100%)",q=g?"linear-gradient(to bottom, rgba(244, 67, 54, 0) 0%, "+z+" 100%)":"linear-gradient(to bottom, "+z+" 0%, rgba(244, 67, 54, 0) 100%)",dr=u==="horizontal"?F:q,rr={};u==="horizontal"?rr.left=X(n.a)*100+"%":rr.top=X(n.a)*100+"%";var lr=c({"--alpha-background-color":"#fff","--alpha-pointer-background-color":"rgb(248, 248, 248)","--alpha-pointer-box-shadow":"rgb(0 0 0 / 37%) 0px 1px 4px 0px",borderRadius:D,background:"url("+qr+") left center",backgroundColor:"var(--alpha-background-color)"},{width:T,height:B},M,{position:"relative"}),ir=d((H)=>{var O=0.01,V=n.a,Q=V;switch(H.key){case"ArrowLeft":u==="horizontal"&&(Q=g?Math.min(1,V+O):Math.max(0,V-O),H.preventDefault());break;case"ArrowRight":u==="horizontal"&&(Q=g?Math.max(0,V-O):Math.min(1,V+O),H.preventDefault());break;case"ArrowUp":u==="vertical"&&(Q=g?Math.max(0,V-O):Math.min(1,V+O),H.preventDefault());break;case"ArrowDown":u==="vertical"&&(Q=g?Math.min(1,V+O):Math.max(0,V-O),H.preventDefault());break;default:return}if(Q!==V){var br=X(Q),Tr={left:u==="horizontal"?br:n.a,top:u==="vertical"?br:n.a,width:0,height:0,x:0,y:0};m&&m(c({},n,{a:Q}),Tr)}},[X,n,u,m,g]),G=d((H)=>{H.target.focus()},[]),K=h&&typeof h=="function"?h(c({prefixCls:p},k,rr)):r(Zr,c({},k,{prefixCls:p},rr));return a("div",c({},P,{className:[p,p+"-"+u,b||""].filter(Boolean).join(" "),style:lr,ref:e,children:[r("div",c({},A,{style:c({inset:0,position:"absolute",background:v||dr,borderRadius:D},A.style)})),r(gr,c({},L,{style:c({},L.style,{inset:0,zIndex:1,position:"absolute",outline:"none"}),onMove:W,onDown:W,onClick:G,onKeyDown:ir,children:K}))]}))});pr.displayName="Alpha";var ro=["prefixCls","className","hue","onChange","direction","reverse"],Cr="rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%",Ar="rgb(255, 0, 0) 0%, rgb(255, 0, 255) 17%, rgb(0, 0, 255) 33%, rgb(0, 255, 255) 50%, rgb(0, 255, 0) 67%, rgb(255, 255, 0) 83%, rgb(255, 0, 0) 100%",Lr=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-hue":s,{className:b,hue:n}=t,v=n===void 0?0:n,{onChange:x,direction:A}=t,R=A===void 0?"horizontal":A,L=t.reverse,y=L!==void 0&&L,k=U(t,ro),C=d(()=>R==="horizontal"?"linear-gradient(to right, "+(y?Ar:Cr)+")":"linear-gradient(to bottom, "+(y?Cr:Ar)+")",[R,y]),D=d((S)=>{var B=R==="horizontal"?S.left:S.top;return 360*(R==="horizontal"?y?1-B:B:y?B:1-B)},[R,y]),T=w(()=>C(),[C]);return r(pr,c({ref:e,className:p+" "+(b||"")},k,{direction:R,reverse:y,background:T,hsva:{h:v,s:100,v:100,a:v/360},onChange:(S,B)=>{x&&x({h:D(B)})}}))});Lr.displayName="Hue";var oo=["prefixCls","placement","label","value","className","style","labelStyle","inputStyle","onChange","onBlur","renderInput"],to=(t)=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(t),eo=(t)=>Number(String(t).replace(/%/g,"")),tr=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-editable-input":s,b=t.placement,n=b===void 0?"bottom":b,{label:v,value:x,className:A,style:R,labelStyle:L,inputStyle:y,onChange:k,onBlur:C,renderInput:D}=t,T=U(t,oo),S=o(x),B=S[0],N=S[1],u=i(!1),E=i(T.id||p+"-"+Math.random().toString(36).slice(2,11)),g=T.id||E.current;l(()=>{t.value!==B&&(u.current||N(t.value))},[t.value]);function M(W,z){var F=(z||W.target.value).trim().replace(/^#/,"");to(F)&&k&&k(W,F);var q=eo(F);isNaN(q)||k&&k(W,q),N(F)}function m(W){u.current=!1,N(t.value),C&&C(W)}var h={};n==="bottom"&&(h.flexDirection="column"),n==="top"&&(h.flexDirection="column-reverse"),n==="left"&&(h.flexDirection="row-reverse");var P=c({"--editable-input-label-color":"rgb(153, 153, 153)","--editable-input-box-shadow":"rgb(204 204 204) 0px 0px 0px 1px inset","--editable-input-color":"#666",position:"relative",alignItems:"center",display:"flex",fontSize:11},h,R),j=c({width:"100%",paddingTop:2,paddingBottom:2,paddingLeft:3,paddingRight:3,fontSize:11,background:"transparent",boxSizing:"border-box",border:"none",color:"var(--editable-input-color)",boxShadow:"var(--editable-input-box-shadow)"},y),X=c({value:B,onChange:M,onBlur:m,autoComplete:"off",onFocus:()=>u.current=!0},T,{id:g,style:j,onFocusCapture:(W)=>{var z=W.target;z.setSelectionRange(z.value.length,z.value.length)}});return a("div",{className:[p,A||""].filter(Boolean).join(" "),style:P,children:[D?D(X,e):r("input",c({ref:e},X)),v&&r("label",{htmlFor:g,style:c({color:"var(--editable-input-label-color)",textTransform:"capitalize"},L),children:v})]})});tr.displayName="EditableInput";var ao=["prefixCls","hsva","placement","rProps","gProps","bProps","aProps","className","style","onChange"],vr=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-editable-input-rgba":s,{hsva:b,placement:n}=t,v=n===void 0?"bottom":n,x=t.rProps,A=x===void 0?{}:x,R=t.gProps,L=R===void 0?{}:R,y=t.bProps,k=y===void 0?{}:y,C=t.aProps,D=C===void 0?{}:C,{className:T,style:S,onChange:B}=t,N=U(t,ao),u=b?nr(b):{};function E(h){var P=Number(h.target.value);P&&P>255&&(h.target.value="255"),P&&P<0&&(h.target.value="0")}var g=(h)=>{var P=Number(h.target.value);P&&P>100&&(h.target.value="100"),P&&P<0&&(h.target.value="0")},M=(h,P,j)=>{typeof h=="number"&&(P==="a"&&(h<0&&(h=0),h>100&&(h=100),B&&B(_(er(c({},u,{a:h/100}))))),h>255&&(h=255,j.target.value="255"),h<0&&(h=0,j.target.value="0"),P==="r"&&B&&B(_(er(c({},u,{r:h})))),P==="g"&&B&&B(_(er(c({},u,{g:h})))),P==="b"&&B&&B(_(er(c({},u,{b:h})))))},m=u.a?Math.round(u.a*100)/100:0;return a("div",c({ref:e,className:[p,T||""].filter(Boolean).join(" ")},N,{style:c({fontSize:11,display:"flex"},S),children:[r(tr,c({label:"R",value:u.r||0,onBlur:E,placement:v,onChange:(h,P)=>M(P,"r",h)},A,{style:c({},A.style)})),r(tr,c({label:"G",value:u.g||0,onBlur:E,placement:v,onChange:(h,P)=>M(P,"g",h)},L,{style:c({marginLeft:5},L.style)})),r(tr,c({label:"B",value:u.b||0,onBlur:E,placement:v,onChange:(h,P)=>M(P,"b",h)},k,{style:c({marginLeft:5},k.style)})),D&&r(tr,c({label:"A",value:parseInt(String(m*100),10),onBlur:g,placement:v,onChange:(h,P)=>M(P,"a",h)},D,{style:c({marginLeft:5},D.style)}))]}))});vr.displayName="EditableInputRGBA";var no=["prefixCls","hsva","hProps","sProps","lProps","aProps","className","onChange"],Er=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-editable-input-hsla":s,{hsva:b,hProps:n}=t,v=n===void 0?{}:n,x=t.sProps,A=x===void 0?{}:x,R=t.lProps,L=R===void 0?{}:R,y=t.aProps,k=y===void 0?{}:y,{className:C,onChange:D}=t,T=U(t,no),S=b?hr(b):{h:0,s:0,l:0,a:0},B=(u,E,g)=>{typeof u=="number"&&(E==="h"&&(u<0&&(u=0),u>360&&(u=360),D&&D(_(sr(c({},S,{h:u}))))),E==="s"&&(u<0&&(u=0),u>100&&(u=100),D&&D(_(sr(c({},S,{s:u}))))),E==="l"&&(u<0&&(u=0),u>100&&(u=100),D&&D(_(sr(c({},S,{l:u}))))),E==="a"&&(u<0&&(u=0),u>1&&(u=1),D&&D(_(sr(c({},S,{a:u}))))))},N=k!=0&&c({label:"A",value:Math.round(S.a*100)/100},k,{onChange:(u,E)=>B(E,"a",u)});return r(vr,c({ref:e,hsva:b,rProps:c({label:"H",value:Math.round(S.h)},v,{onChange:(u,E)=>B(E,"h",u)}),gProps:c({label:"S",value:Math.round(S.s)+"%"},A,{onChange:(u,E)=>B(E,"s",u)}),bProps:c({label:"L",value:Math.round(S.l)+"%"},L,{onChange:(u,E)=>B(E,"l",u)}),aProps:N,className:[p,C||""].filter(Boolean).join(" ")},T))});Er.displayName="EditableInputHSLA";var lo=["style"];function io(t){var e=t.style,s=U(t,lo),p=i(null),b=d(()=>{p.current.style.backgroundColor="var(--chrome-arrow-background-color)"},[]),n=d(()=>{p.current.style.backgroundColor="transparent"},[]);return r("div",c({ref:p,style:c({marginLeft:5,cursor:"pointer",transition:"background-color .3s",borderRadius:2},e)},s,{onMouseEnter:b,onMouseLeave:n,children:r("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24",style:{display:"block"},children:r("path",{d:"M373.888 576h276.224c9.322667 0 14.293333 11.178667 9.173333 18.773333l-1.258666 1.557334-138.112 146.858666a10.709333 10.709333 0 0 1-14.293334 1.365334l-1.536-1.365334-138.112-146.858666c-6.592-6.997333-2.666667-18.645333 5.973334-20.16l1.941333-0.170667h276.224-276.224z m146.026667-295.189333l138.112 146.858666c7.04 7.509333 2.069333 20.330667-7.914667 20.330667H373.888c-9.984 0-14.976-12.821333-7.914667-20.330667l138.112-146.858666a10.730667 10.730667 0 0 1 15.829334 0z",fill:"var(--chrome-arrow-fill)"})})}))}function so(){return"EyeDropper"in window}function po(t){return r("svg",{viewBox:"0 0 512 512",height:"1em",width:"1em",onClick:()=>{"EyeDropper"in window&&new window.EyeDropper().open().then((e)=>{t.onPickColor==null||t.onPickColor(e.sRGBHex)}).catch((e)=>{e.name})},children:r("path",{fill:"currentColor",d:"M482.8 29.23c38.9 38.98 38.9 102.17 0 141.17L381.2 271.9l9.4 9.5c12.5 12.5 12.5 32.7 0 45.2s-32.7 12.5-45.2 0l-160-160c-12.5-12.5-12.5-32.7 0-45.2s32.7-12.5 45.2 0l9.5 9.4L341.6 29.23c39-38.974 102.2-38.974 141.2 0zM55.43 323.3 176.1 202.6l45.3 45.3-120.7 120.7c-3.01 3-4.7 7-4.7 11.3V416h36.1c4.3 0 8.3-1.7 11.3-4.7l120.7-120.7 45.3 45.3-120.7 120.7c-15 15-35.4 23.4-56.6 23.4H89.69l-39.94 26.6c-12.69 8.5-29.59 6.8-40.377-4-10.786-10.8-12.459-27.7-3.998-40.4L32 422.3v-42.4c0-21.2 8.43-41.6 23.43-56.6z"})})}var ho=["prefixCls","className","style","color","showEditableInput","showEyeDropper","showColorPreview","showHue","showAlpha","horizontal","inputType","rectProps","onChange"],J=function(t){return t.HEXA="hexa",t.RGBA="rgba",t.HSLA="hsla",t}({}),Dr=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-chrome":s,{className:b,style:n,color:v,showEditableInput:x}=t,A=x===void 0||x,R=t.showEyeDropper,L=R===void 0||R,y=t.showColorPreview,k=y===void 0||y,C=t.showHue,D=C===void 0||C,T=t.showAlpha,S=T===void 0||T,B=t.horizontal,N=B!==void 0&&B,u=t.inputType,E=u===void 0?J.RGBA:u;t.rectProps;var g=t.onChange,M=U(t,ho),m=typeof v=="string"&&ur(v)?Z(v):v||{h:0,s:0,l:0,a:0},h=(G)=>g&&g(_(G)),P=o(E),j=P[0],X=P[1],W=()=>{j===J.RGBA&&X(J.HSLA),j===J.HSLA&&X(J.HEXA),j===J.HEXA&&X(J.RGBA)},z={paddingTop:6},F={textAlign:"center",paddingTop:4,paddingBottom:4},q=c({"--chrome-arrow-fill":"#333","--chrome-arrow-background-color":"#e8e8e8",borderRadius:0,flexDirection:N?"row":"column",width:N?460:230,padding:0},n),dr={"--chrome-alpha-box-shadow":"rgb(0 0 0 / 25%) 0px 0px 1px inset",borderRadius:"50%",background:zr(m),boxShadow:"var(--chrome-alpha-box-shadow)"},rr=(G)=>{var K=Z(G);h(c({},K))},lr={height:14,width:14},ir={style:c({},lr),fillProps:{style:lr}};return r(Pr,c({ref:e,color:m,style:q,colors:void 0,className:[p,b].filter(Boolean).join(" "),placement:I.TopLeft},M,{addonAfter:a(de,{children:[r(Nr,{hsva:m,style:N?{width:230,height:120}:{width:"100%",height:130},onChange:(G)=>{h(c({},m,G,{a:m.a}))}}),a("div",{style:{display:"flex",flexDirection:"column",width:N?230:"inherit"},children:[a("div",{style:{padding:15,display:"flex",alignItems:"center",gap:10},children:[so()&&L&&r(po,{onPickColor:rr}),k&&r(pr,{width:28,height:28,hsva:m,radius:2,style:{borderRadius:"50%"},bgProps:{style:{background:"transparent"}},innerProps:{style:dr},pointer:()=>r(de,{})}),a("div",{style:{flex:1},children:[D==1&&r(Lr,{hue:m.h,style:{width:"100%",height:12,borderRadius:2},pointerProps:ir,bgProps:{style:{borderRadius:2}},onChange:(G)=>{h(c({},m,G))}}),S==1&&r(pr,{hsva:m,style:{marginTop:6,height:12,borderRadius:2},pointerProps:ir,bgProps:{style:{borderRadius:2}},onChange:(G)=>{h(c({},m,G))}})]})]}),A&&a("div",{style:{display:"flex",alignItems:"flex-start",padding:"0 15px 15px 15px",userSelect:"none"},children:[a("div",{style:{flex:1},children:[j==J.RGBA&&r(vr,{hsva:m,rProps:{labelStyle:z,inputStyle:F},gProps:{labelStyle:z,inputStyle:F},bProps:{labelStyle:z,inputStyle:F},aProps:S!=0&&{labelStyle:z,inputStyle:F},onChange:(G)=>h(G.hsva)}),j===J.HEXA&&r(tr,{label:"HEX",labelStyle:z,inputStyle:F,value:m.a>0&&m.a<1?jr(m).toLocaleUpperCase():cr(m).toLocaleUpperCase(),onChange:(G,K)=>{typeof K=="string"&&h(Z(/^#/.test(K)?K:"#"+K))}}),j===J.HSLA&&r(Er,{hsva:m,hProps:{labelStyle:z,inputStyle:F},sProps:{labelStyle:z,inputStyle:F},lProps:{labelStyle:z,inputStyle:F},aProps:S!=0&&{labelStyle:z,inputStyle:F},onChange:(G)=>h(G.hsva)})]}),r(io,{onClick:W})]})]})]}),rectRender:()=>r(de,{})}))});Dr.displayName="Chrome";var co="nxgt-color-picker";function bo({color:t,onChange:e}){return r(Dr,{color:t,showTriangle:!1,showAlpha:!1,onChange:(s)=>e(s.hex),className:co})}export{bo as default};
1
+ import{de,ye,f,ie,d,l,w,i,o,r,a}from"./index.5vcex75v.js";function c(){return c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var s=arguments[e];for(var p in s)({}).hasOwnProperty.call(s,p)&&(t[p]=s[p])}return t},c.apply(null,arguments)}function U(t,e){if(t==null)return{};var s={};for(var p in t)if({}.hasOwnProperty.call(t,p)){if(e.indexOf(p)!==-1)continue;s[p]=t[p]}return s}var or=255,fr=360,Y=100,er=(t)=>{var{r:e,g:s,b:p,a:b}=t,n=Math.max(e,s,p),v=n-Math.min(e,s,p),x=v?n===e?(s-p)/v:n===s?2+(p-e)/v:4+(e-s)/v:0;return{h:60*(x<0?x+6:x),s:n?v/n*Y:0,v:n/or*Y,a:b}},Rr=(t)=>{var e=hr(t),{h:s,s:p,l:b,a:n}=e;return"hsla("+s+", "+p+"%, "+b+"%, "+n+")"},sr=(t)=>{var{h:e,s,l:p,a:b}=t;return s*=(p<50?p:Y-p)/Y,{h:e,s:s>0?2*s/(p+s)*Y:0,v:p+s,a:b}},hr=(t)=>{var{h:e,s,v:p,a:b}=t,n=(200-s)*p/Y;return{h:e,s:n>0&&n<200?s*p/Y/(n<=Y?n:200-n)*Y:0,l:n/2,a:b}};fr/400,fr/(Math.PI*2);var Br=(t)=>{var{r:e,g:s,b:p}=t;return"#"+((b)=>Array(7-b.length).join("0")+b)((e<<16|s<<8|p).toString(16))},kr=(t)=>{var{r:e,g:s,b:p,a:b}=t,n=typeof b=="number"&&(b*255|256).toString(16).slice(1);return""+Br({r:e,g:s,b:p})+(n||"")},Z=(t)=>er(Mr(t)),Mr=(t)=>{var e=t.replace("#","");/^#?/.test(t)&&e.length===3&&(t="#"+e.charAt(0)+e.charAt(0)+e.charAt(1)+e.charAt(1)+e.charAt(2)+e.charAt(2));var s=RegExp("[A-Za-z0-9]{2}","g"),p=t.match(s).map((x)=>parseInt(x,16)),b=p[0],n=p[1],v=p[2];return{r:b,g:n,b:v===void 0?0:v,a:(p[3]??255)/or}},nr=(t)=>{var{h:e,s,v:p,a:b}=t,n=e/60,v=s/Y,x=p/Y,A=Math.floor(n)%6;A<0&&(A+=6);var R=n-Math.floor(n),L=or*x*(1-v),y=or*x*(1-v*R),k=or*x*(1-v*(1-R));x*=or;var C={};switch(A){case 0:C.r=x,C.g=k,C.b=L;break;case 1:C.r=y,C.g=x,C.b=L;break;case 2:C.r=L,C.g=x,C.b=k;break;case 3:C.r=L,C.g=y,C.b=x;break;case 4:C.r=k,C.g=L,C.b=x;break;case 5:C.r=x,C.g=L,C.b=y}return C.r=Math.round(C.r),C.g=Math.round(C.g),C.b=Math.round(C.b),c({},C,{a:b})},zr=(t)=>{var e=nr(t),{r:s,g:p,b,a:n}=e;return"rgba("+s+", "+p+", "+b+", "+n+")"},Ir=(t)=>({r:t.r,g:t.g,b:t.b}),Hr=(t)=>({h:t.h,s:t.s,l:t.l}),cr=(t)=>Br(nr(t)),jr=(t)=>kr(nr(t)),Fr=(t)=>({h:t.h,s:t.s,v:t.v}),Gr=(t)=>{var{r:e,g:s,b:p}=t,b=function(R){return R<=0.04045?R/12.92:((R+0.055)/1.055)**2.4},n=b(e/255),v=b(s/255),x=b(p/255),A={};return A.x=n*0.4124+v*0.3576+x*0.1805,A.y=n*0.2126+v*0.7152+x*0.0722,A.bri=n*0.0193+v*0.1192+x*0.9505,A},_=(t)=>{var e,s,p,b,n,v,x,A,R;return typeof t=="string"&&ur(t)?(v=Z(t),A=t):typeof t!="string"&&(v=t),v&&(p=Fr(v),n=hr(v),b=nr(v),R=kr(b),A=cr(v),s=Hr(n),e=Ir(b),x=Gr(e)),{rgb:e,hsl:s,hsv:p,rgba:b,hsla:n,hsva:v,hex:A,hexa:R,xy:x}},ur=(t)=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(t);function Or(t){if(t==null)throw TypeError("Cannot destructure "+t)}var Wr=["prefixCls","className","color","colors","style","rectProps","onChange","addonAfter","addonBefore","rectRender"],Sr=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-swatch":s,{className:b,color:n,colors:v}=t,x=v===void 0?[]:v,{style:A,rectProps:R}=t,L=R===void 0?{}:R,{onChange:y,addonAfter:k,addonBefore:C,rectRender:D}=t,T=U(t,Wr),S=c({"--swatch-background-color":"rgb(144, 19, 254)",background:"var(--swatch-background-color)",height:15,width:15,marginRight:5,marginBottom:5,cursor:"pointer",position:"relative",outline:"none",borderRadius:2},L.style),B=(N,u)=>{y&&y(Z(N),_(Z(N)),u)};return a("div",c({ref:e},T,{className:[p,b||""].filter(Boolean).join(" "),style:c({display:"flex",flexWrap:"wrap",position:"relative"},A),children:[C&&ie(C)&&C,x&&Array.isArray(x)&&x.map((N,u)=>{var E="",g="";typeof N=="string"&&(E=N,g=N),typeof N=="object"&&N.color&&(E=N.title||N.color,g=N.color);var M=n&&n.toLocaleLowerCase()===g.toLocaleLowerCase(),m=D&&D({title:E,color:g,checked:!!M,style:c({},S,{background:g}),onClick:(P)=>B(g,P)});if(m)return r(de,{children:m},u);var h=L.children&&ie(L.children)?ye(L.children,{color:g,checked:M}):null;return r("div",c({tabIndex:0,title:E,onClick:(P)=>B(g,P)},L,{children:h,style:c({},S,{background:g})}),u)}),k&&ie(k)&&k]}))});Sr.displayName="Swatch";var Ur={marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25};function Xr(t){var{style:e,title:s,checked:p}=t;t.color;var{onClick:b,rectProps:n}=t,v=i(null),x=d(()=>{v.current.style.zIndex="2",v.current.style.outline="#fff solid 2px",v.current.style.boxShadow="rgb(0 0 0 / 25%) 0 0 5px 2px"},[]),A=d(()=>{p||(v.current.style.zIndex="0",v.current.style.outline="initial",v.current.style.boxShadow="initial")},[p]);return r("div",c({ref:v,title:s},n,{onClick:b,onMouseEnter:x,onMouseLeave:A,style:c({},e,{marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25},Ur,p?{zIndex:1,outline:"#fff solid 2px",boxShadow:"rgb(0 0 0 / 25%) 0 0 5px 2px"}:{zIndex:0},n?.style)}))}var Yr=["prefixCls","placement","className","style","color","colors","showTriangle","rectProps","onChange","rectRender"],_r=["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],I=function(t){return t.Left="L",t.LeftTop="LT",t.LeftBottom="LB",t.Right="R",t.RightTop="RT",t.RightBottom="RB",t.Top="T",t.TopRight="TR",t.TopLeft="TL",t.Bottom="B",t.BottomLeft="BL",t.BottomRight="BR",t}({}),Pr=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-github":s,b=t.placement,n=b===void 0?I.TopRight:b,{className:v,style:x,color:A,colors:R}=t,L=R===void 0?_r:R,y=t.showTriangle,k=y===void 0||y,C=t.rectProps,D=C===void 0?{}:C,{onChange:T,rectRender:S}=t,B=U(t,Yr),N=typeof A=="string"&&ur(A)?Z(A):A,u=A?cr(N):"",E=(P)=>T&&T(_(P)),g=c({"--github-border":"1px solid rgba(0, 0, 0, 0.2)","--github-background-color":"#fff","--github-box-shadow":"rgb(0 0 0 / 15%) 0px 3px 12px","--github-arrow-border-color":"rgba(0, 0, 0, 0.15)",width:200,borderRadius:4,background:"var(--github-background-color)",boxShadow:"var(--github-box-shadow)",border:"var(--github-border)",position:"relative",padding:5},x),M={borderStyle:"solid",position:"absolute"},m=c({},M),h=c({},M);return/^T/.test(n)&&(m.borderWidth="0 8px 8px",m.borderColor="transparent transparent var(--github-arrow-border-color)",h.borderWidth="0 7px 7px",h.borderColor="transparent transparent var(--github-background-color)"),n===I.TopRight&&(m.top=-8,h.top=-7),n===I.Top&&(m.top=-8,h.top=-7),n===I.TopLeft&&(m.top=-8,h.top=-7),/^B/.test(n)&&(m.borderWidth="8px 8px 0",m.borderColor="var(--github-arrow-border-color) transparent transparent",h.borderWidth="7px 7px 0",h.borderColor="var(--github-background-color) transparent transparent",n===I.BottomRight&&(m.top="100%",h.top="100%"),n===I.Bottom&&(m.top="100%",h.top="100%"),n===I.BottomLeft&&(m.top="100%",h.top="100%")),/^(B|T)/.test(n)&&((n===I.Top||n===I.Bottom)&&(m.left="50%",m.marginLeft=-8,h.left="50%",h.marginLeft=-7),(n===I.TopRight||n===I.BottomRight)&&(m.right=10,h.right=11),(n===I.TopLeft||n===I.BottomLeft)&&(m.left=7,h.left=8)),/^L/.test(n)&&(m.borderWidth="8px 8px 8px 0",m.borderColor="transparent var(--github-arrow-border-color) transparent transparent",h.borderWidth="7px 7px 7px 0",h.borderColor="transparent var(--github-background-color) transparent transparent",m.left=-8,h.left=-7),/^R/.test(n)&&(m.borderWidth="8px 0 8px 8px",m.borderColor="transparent transparent transparent var(--github-arrow-border-color)",h.borderWidth="7px 0 7px 7px",h.borderColor="transparent transparent transparent var(--github-background-color)",m.right=-8,h.right=-7),/^(L|R)/.test(n)&&((n===I.RightTop||n===I.LeftTop)&&(m.top=5,h.top=6),(n===I.Left||n===I.Right)&&(m.top="50%",h.top="50%",m.marginTop=-8,h.marginTop=-7),(n===I.LeftBottom||n===I.RightBottom)&&(m.top="100%",h.top="100%",m.marginTop=-21,h.marginTop=-20)),r(Sr,c({ref:e,className:[p,v].filter(Boolean).join(" "),colors:L,color:u,rectRender:(P)=>{var j=c({},(Or(P),P));return S&&S(c({},j))||r(Xr,c({},j,{rectProps:D}))}},B,{onChange:E,style:g,rectProps:{style:{marginRight:0,marginBottom:0,borderRadius:0,height:25,width:25}},addonBefore:r(de,{children:k&&a(de,{children:[r("div",{style:m}),r("div",{style:h})]})})}))});Pr.displayName="Github";function mr(t){var e=i(t);return l(()=>{e.current=t}),d((s,p)=>e.current&&e.current(s,p),[])}var ar=(t)=>("touches"in t),xr=(t)=>{!ar(t)&&t.preventDefault&&t.preventDefault()},yr=function(t,e,s){return e===void 0&&(e=0),s===void 0&&(s=1),t>s?s:t<e?e:t},wr=(t,e)=>{var s=t.getBoundingClientRect(),p=ar(e)?e.touches[0]:e;return{left:yr((p.pageX-(s.left+window.pageXOffset))/s.width),top:yr((p.pageY-(s.top+window.pageYOffset))/s.height),width:s.width,height:s.height,x:p.pageX-(s.left+window.pageXOffset),y:p.pageY-(s.top+window.pageYOffset)}},Vr=["prefixCls","className","onMove","onDown"],gr=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-interactive":s,{className:b,onMove:n,onDown:v}=t,x=U(t,Vr),A=i(null),R=i(!1),L=o(!1),y=L[0],k=L[1],C=mr(n),D=mr(v),T=(g)=>R.current&&!ar(g)?!1:(R.current=ar(g),!0),S=d((g)=>{xr(g),A.current&&((ar(g)?g.touches.length>0:g.buttons>0)?C?.(wr(A.current,g),g):k(!1))},[C]),B=d(()=>k(!1),[]),N=d((g)=>{g?(window.addEventListener(R.current?"touchmove":"mousemove",S),window.addEventListener(R.current?"touchend":"mouseup",B)):(window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",B),window.removeEventListener("touchmove",S),window.removeEventListener("touchend",B))},[S,B]);l(()=>(N(y),()=>{N(!1)}),[y,S,B,N]);var u=d((g)=>{document.activeElement?.blur(),xr(g.nativeEvent),T(g.nativeEvent)&&A.current&&(D?.(wr(A.current,g.nativeEvent),g.nativeEvent),k(!0))},[D]),E=d((g)=>{A.current=g,typeof e=="function"?e(g):e&&(e.current=g)},[e]);return r("div",c({},x,{className:[p,b||""].filter(Boolean).join(" "),style:c({},x.style,{touchAction:"none"}),ref:E,tabIndex:0,onMouseDown:u,onTouchStart:u}))});gr.displayName="Interactive";var Jr=(t)=>{var{className:e,color:s,left:p,top:b,prefixCls:n}=t,v={position:"absolute",top:b,left:p},x={"--saturation-pointer-box-shadow":"rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px",width:6,height:6,transform:"translate(-3px, -3px)",boxShadow:"var(--saturation-pointer-box-shadow)",borderRadius:"50%",backgroundColor:s};return w(()=>r("div",{className:n+"-pointer "+(e||""),style:v,children:r("div",{className:n+"-fill",style:x})}),[b,p,s,e,n])},Kr=["prefixCls","radius","pointer","className","hue","style","hsva","onChange"],Nr=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-saturation":s,b=t.radius,n=b===void 0?0:b,{pointer:v,className:x,hue:A}=t,R=A===void 0?0:A,{style:L,hsva:y,onChange:k}=t,C=U(t,Kr),D=c({width:200,height:200,borderRadius:n},L,{position:"relative"}),T=i(null),S=d((g)=>{T.current=g,typeof e=="function"?e(g):e&&("current"in e)&&(e.current=g)},[e]),B=d((g,M)=>{k&&y&&k({h:y.h,s:g.left*100,v:(1-g.top)*100,a:y.a});var m=T.current;m&&m.focus()},[y,k]),N=d((g)=>{if(y&&k){var M=1,{s:m,v:h}=y;switch(g.key){case"ArrowLeft":m=Math.max(0,y.s-M),g.preventDefault();break;case"ArrowRight":m=Math.min(100,y.s+M),g.preventDefault();break;case"ArrowUp":h=Math.min(100,y.v+M),g.preventDefault();break;case"ArrowDown":h=Math.max(0,y.v-M),g.preventDefault();break;default:return}k({h:y.h,s:m,v:h,a:y.a})}},[y,k]),u=w(()=>{if(!y)return null;var g={top:100-y.v+"%",left:y.s+"%",color:Rr(y)};return v&&typeof v=="function"?v(c({prefixCls:p},g)):r(Jr,c({prefixCls:p},g))},[y,v,p]),E=d((g)=>{g.target.focus()},[]);return r(gr,c({className:[p,x||""].filter(Boolean).join(" ")},C,{style:c({position:"absolute",inset:0,cursor:"crosshair",backgroundImage:"linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, hsl("+(y?.h??R)+", 100%, 50%))"},D,{outline:"none"}),ref:S,onMove:B,onDown:B,onKeyDown:N,onClick:E,children:u}))});Nr.displayName="Saturation";var Qr=["className","prefixCls","left","top","style","fillProps"],Zr=(t)=>{var{className:e,prefixCls:s,left:p,top:b,style:n,fillProps:v}=t,x=U(t,Qr),A=c({},n,{position:"absolute",left:p,top:b}),R=c({width:18,height:18,boxShadow:"var(--alpha-pointer-box-shadow)",borderRadius:"50%",backgroundColor:"var(--alpha-pointer-background-color)"},v?.style,{transform:p?"translate(-9px, -1px)":"translate(-1px, -9px)"});return r("div",c({className:s+"-pointer "+(e||""),style:A},x,{children:r("div",c({className:s+"-fill"},v,{style:R}))}))},$r=["prefixCls","className","hsva","background","bgProps","innerProps","pointerProps","radius","width","height","direction","reverse","style","onChange","pointer"],qr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==",pr=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-alpha":s,{className:b,hsva:n,background:v,bgProps:x}=t,A=x===void 0?{}:x,R=t.innerProps,L=R===void 0?{}:R,y=t.pointerProps,k=y===void 0?{}:y,C=t.radius,D=C===void 0?0:C,{width:T,height:S}=t,B=S===void 0?16:S,N=t.direction,u=N===void 0?"horizontal":N,E=t.reverse,g=E!==void 0&&E,{style:M,onChange:m,pointer:h}=t,P=U(t,$r),j=d((H)=>{var O=u==="horizontal"?H.left:H.top;return u==="horizontal"?g?1-O:O:g?O:1-O},[u,g]),X=d((H)=>u==="horizontal"?g?1-H:H:g?H:1-H,[u,g]),W=(H)=>{var O=j(H);m&&m(c({},n,{a:O}),H)},z=Rr(Object.assign({},n,{a:1})),F=g?"linear-gradient(to right, "+z+" 0%, rgba(244, 67, 54, 0) 100%)":"linear-gradient(to right, rgba(244, 67, 54, 0) 0%, "+z+" 100%)",q=g?"linear-gradient(to bottom, rgba(244, 67, 54, 0) 0%, "+z+" 100%)":"linear-gradient(to bottom, "+z+" 0%, rgba(244, 67, 54, 0) 100%)",dr=u==="horizontal"?F:q,rr={};u==="horizontal"?rr.left=X(n.a)*100+"%":rr.top=X(n.a)*100+"%";var lr=c({"--alpha-background-color":"#fff","--alpha-pointer-background-color":"rgb(248, 248, 248)","--alpha-pointer-box-shadow":"rgb(0 0 0 / 37%) 0px 1px 4px 0px",borderRadius:D,background:"url("+qr+") left center",backgroundColor:"var(--alpha-background-color)"},{width:T,height:B},M,{position:"relative"}),ir=d((H)=>{var O=0.01,V=n.a,Q=V;switch(H.key){case"ArrowLeft":u==="horizontal"&&(Q=g?Math.min(1,V+O):Math.max(0,V-O),H.preventDefault());break;case"ArrowRight":u==="horizontal"&&(Q=g?Math.max(0,V-O):Math.min(1,V+O),H.preventDefault());break;case"ArrowUp":u==="vertical"&&(Q=g?Math.max(0,V-O):Math.min(1,V+O),H.preventDefault());break;case"ArrowDown":u==="vertical"&&(Q=g?Math.min(1,V+O):Math.max(0,V-O),H.preventDefault());break;default:return}if(Q!==V){var br=X(Q),Tr={left:u==="horizontal"?br:n.a,top:u==="vertical"?br:n.a,width:0,height:0,x:0,y:0};m&&m(c({},n,{a:Q}),Tr)}},[X,n,u,m,g]),G=d((H)=>{H.target.focus()},[]),K=h&&typeof h=="function"?h(c({prefixCls:p},k,rr)):r(Zr,c({},k,{prefixCls:p},rr));return a("div",c({},P,{className:[p,p+"-"+u,b||""].filter(Boolean).join(" "),style:lr,ref:e,children:[r("div",c({},A,{style:c({inset:0,position:"absolute",background:v||dr,borderRadius:D},A.style)})),r(gr,c({},L,{style:c({},L.style,{inset:0,zIndex:1,position:"absolute",outline:"none"}),onMove:W,onDown:W,onClick:G,onKeyDown:ir,children:K}))]}))});pr.displayName="Alpha";var ro=["prefixCls","className","hue","onChange","direction","reverse"],Cr="rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%",Ar="rgb(255, 0, 0) 0%, rgb(255, 0, 255) 17%, rgb(0, 0, 255) 33%, rgb(0, 255, 255) 50%, rgb(0, 255, 0) 67%, rgb(255, 255, 0) 83%, rgb(255, 0, 0) 100%",Lr=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-hue":s,{className:b,hue:n}=t,v=n===void 0?0:n,{onChange:x,direction:A}=t,R=A===void 0?"horizontal":A,L=t.reverse,y=L!==void 0&&L,k=U(t,ro),C=d(()=>R==="horizontal"?"linear-gradient(to right, "+(y?Ar:Cr)+")":"linear-gradient(to bottom, "+(y?Cr:Ar)+")",[R,y]),D=d((S)=>{var B=R==="horizontal"?S.left:S.top;return 360*(R==="horizontal"?y?1-B:B:y?B:1-B)},[R,y]),T=w(()=>C(),[C]);return r(pr,c({ref:e,className:p+" "+(b||"")},k,{direction:R,reverse:y,background:T,hsva:{h:v,s:100,v:100,a:v/360},onChange:(S,B)=>{x&&x({h:D(B)})}}))});Lr.displayName="Hue";var oo=["prefixCls","placement","label","value","className","style","labelStyle","inputStyle","onChange","onBlur","renderInput"],to=(t)=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(t),eo=(t)=>Number(String(t).replace(/%/g,"")),tr=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-editable-input":s,b=t.placement,n=b===void 0?"bottom":b,{label:v,value:x,className:A,style:R,labelStyle:L,inputStyle:y,onChange:k,onBlur:C,renderInput:D}=t,T=U(t,oo),S=o(x),B=S[0],N=S[1],u=i(!1),E=i(T.id||p+"-"+Math.random().toString(36).slice(2,11)),g=T.id||E.current;l(()=>{t.value!==B&&(u.current||N(t.value))},[t.value]);function M(W,z){var F=(z||W.target.value).trim().replace(/^#/,"");to(F)&&k&&k(W,F);var q=eo(F);isNaN(q)||k&&k(W,q),N(F)}function m(W){u.current=!1,N(t.value),C&&C(W)}var h={};n==="bottom"&&(h.flexDirection="column"),n==="top"&&(h.flexDirection="column-reverse"),n==="left"&&(h.flexDirection="row-reverse");var P=c({"--editable-input-label-color":"rgb(153, 153, 153)","--editable-input-box-shadow":"rgb(204 204 204) 0px 0px 0px 1px inset","--editable-input-color":"#666",position:"relative",alignItems:"center",display:"flex",fontSize:11},h,R),j=c({width:"100%",paddingTop:2,paddingBottom:2,paddingLeft:3,paddingRight:3,fontSize:11,background:"transparent",boxSizing:"border-box",border:"none",color:"var(--editable-input-color)",boxShadow:"var(--editable-input-box-shadow)"},y),X=c({value:B,onChange:M,onBlur:m,autoComplete:"off",onFocus:()=>u.current=!0},T,{id:g,style:j,onFocusCapture:(W)=>{var z=W.target;z.setSelectionRange(z.value.length,z.value.length)}});return a("div",{className:[p,A||""].filter(Boolean).join(" "),style:P,children:[D?D(X,e):r("input",c({ref:e},X)),v&&r("label",{htmlFor:g,style:c({color:"var(--editable-input-label-color)",textTransform:"capitalize"},L),children:v})]})});tr.displayName="EditableInput";var ao=["prefixCls","hsva","placement","rProps","gProps","bProps","aProps","className","style","onChange"],vr=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-editable-input-rgba":s,{hsva:b,placement:n}=t,v=n===void 0?"bottom":n,x=t.rProps,A=x===void 0?{}:x,R=t.gProps,L=R===void 0?{}:R,y=t.bProps,k=y===void 0?{}:y,C=t.aProps,D=C===void 0?{}:C,{className:T,style:S,onChange:B}=t,N=U(t,ao),u=b?nr(b):{};function E(h){var P=Number(h.target.value);P&&P>255&&(h.target.value="255"),P&&P<0&&(h.target.value="0")}var g=(h)=>{var P=Number(h.target.value);P&&P>100&&(h.target.value="100"),P&&P<0&&(h.target.value="0")},M=(h,P,j)=>{typeof h=="number"&&(P==="a"&&(h<0&&(h=0),h>100&&(h=100),B&&B(_(er(c({},u,{a:h/100}))))),h>255&&(h=255,j.target.value="255"),h<0&&(h=0,j.target.value="0"),P==="r"&&B&&B(_(er(c({},u,{r:h})))),P==="g"&&B&&B(_(er(c({},u,{g:h})))),P==="b"&&B&&B(_(er(c({},u,{b:h})))))},m=u.a?Math.round(u.a*100)/100:0;return a("div",c({ref:e,className:[p,T||""].filter(Boolean).join(" ")},N,{style:c({fontSize:11,display:"flex"},S),children:[r(tr,c({label:"R",value:u.r||0,onBlur:E,placement:v,onChange:(h,P)=>M(P,"r",h)},A,{style:c({},A.style)})),r(tr,c({label:"G",value:u.g||0,onBlur:E,placement:v,onChange:(h,P)=>M(P,"g",h)},L,{style:c({marginLeft:5},L.style)})),r(tr,c({label:"B",value:u.b||0,onBlur:E,placement:v,onChange:(h,P)=>M(P,"b",h)},k,{style:c({marginLeft:5},k.style)})),D&&r(tr,c({label:"A",value:parseInt(String(m*100),10),onBlur:g,placement:v,onChange:(h,P)=>M(P,"a",h)},D,{style:c({marginLeft:5},D.style)}))]}))});vr.displayName="EditableInputRGBA";var no=["prefixCls","hsva","hProps","sProps","lProps","aProps","className","onChange"],Er=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-editable-input-hsla":s,{hsva:b,hProps:n}=t,v=n===void 0?{}:n,x=t.sProps,A=x===void 0?{}:x,R=t.lProps,L=R===void 0?{}:R,y=t.aProps,k=y===void 0?{}:y,{className:C,onChange:D}=t,T=U(t,no),S=b?hr(b):{h:0,s:0,l:0,a:0},B=(u,E,g)=>{typeof u=="number"&&(E==="h"&&(u<0&&(u=0),u>360&&(u=360),D&&D(_(sr(c({},S,{h:u}))))),E==="s"&&(u<0&&(u=0),u>100&&(u=100),D&&D(_(sr(c({},S,{s:u}))))),E==="l"&&(u<0&&(u=0),u>100&&(u=100),D&&D(_(sr(c({},S,{l:u}))))),E==="a"&&(u<0&&(u=0),u>1&&(u=1),D&&D(_(sr(c({},S,{a:u}))))))},N=k!=0&&c({label:"A",value:Math.round(S.a*100)/100},k,{onChange:(u,E)=>B(E,"a",u)});return r(vr,c({ref:e,hsva:b,rProps:c({label:"H",value:Math.round(S.h)},v,{onChange:(u,E)=>B(E,"h",u)}),gProps:c({label:"S",value:Math.round(S.s)+"%"},A,{onChange:(u,E)=>B(E,"s",u)}),bProps:c({label:"L",value:Math.round(S.l)+"%"},L,{onChange:(u,E)=>B(E,"l",u)}),aProps:N,className:[p,C||""].filter(Boolean).join(" ")},T))});Er.displayName="EditableInputHSLA";var lo=["style"];function io(t){var e=t.style,s=U(t,lo),p=i(null),b=d(()=>{p.current.style.backgroundColor="var(--chrome-arrow-background-color)"},[]),n=d(()=>{p.current.style.backgroundColor="transparent"},[]);return r("div",c({ref:p,style:c({marginLeft:5,cursor:"pointer",transition:"background-color .3s",borderRadius:2},e)},s,{onMouseEnter:b,onMouseLeave:n,children:r("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24",style:{display:"block"},children:r("path",{d:"M373.888 576h276.224c9.322667 0 14.293333 11.178667 9.173333 18.773333l-1.258666 1.557334-138.112 146.858666a10.709333 10.709333 0 0 1-14.293334 1.365334l-1.536-1.365334-138.112-146.858666c-6.592-6.997333-2.666667-18.645333 5.973334-20.16l1.941333-0.170667h276.224-276.224z m146.026667-295.189333l138.112 146.858666c7.04 7.509333 2.069333 20.330667-7.914667 20.330667H373.888c-9.984 0-14.976-12.821333-7.914667-20.330667l138.112-146.858666a10.730667 10.730667 0 0 1 15.829334 0z",fill:"var(--chrome-arrow-fill)"})})}))}function so(){return"EyeDropper"in window}function po(t){return r("svg",{viewBox:"0 0 512 512",height:"1em",width:"1em",onClick:()=>{"EyeDropper"in window&&new window.EyeDropper().open().then((e)=>{t.onPickColor==null||t.onPickColor(e.sRGBHex)}).catch((e)=>{e.name})},children:r("path",{fill:"currentColor",d:"M482.8 29.23c38.9 38.98 38.9 102.17 0 141.17L381.2 271.9l9.4 9.5c12.5 12.5 12.5 32.7 0 45.2s-32.7 12.5-45.2 0l-160-160c-12.5-12.5-12.5-32.7 0-45.2s32.7-12.5 45.2 0l9.5 9.4L341.6 29.23c39-38.974 102.2-38.974 141.2 0zM55.43 323.3 176.1 202.6l45.3 45.3-120.7 120.7c-3.01 3-4.7 7-4.7 11.3V416h36.1c4.3 0 8.3-1.7 11.3-4.7l120.7-120.7 45.3 45.3-120.7 120.7c-15 15-35.4 23.4-56.6 23.4H89.69l-39.94 26.6c-12.69 8.5-29.59 6.8-40.377-4-10.786-10.8-12.459-27.7-3.998-40.4L32 422.3v-42.4c0-21.2 8.43-41.6 23.43-56.6z"})})}var ho=["prefixCls","className","style","color","showEditableInput","showEyeDropper","showColorPreview","showHue","showAlpha","horizontal","inputType","rectProps","onChange"],J=function(t){return t.HEXA="hexa",t.RGBA="rgba",t.HSLA="hsla",t}({}),Dr=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-chrome":s,{className:b,style:n,color:v,showEditableInput:x}=t,A=x===void 0||x,R=t.showEyeDropper,L=R===void 0||R,y=t.showColorPreview,k=y===void 0||y,C=t.showHue,D=C===void 0||C,T=t.showAlpha,S=T===void 0||T,B=t.horizontal,N=B!==void 0&&B,u=t.inputType,E=u===void 0?J.RGBA:u;t.rectProps;var g=t.onChange,M=U(t,ho),m=typeof v=="string"&&ur(v)?Z(v):v||{h:0,s:0,l:0,a:0},h=(G)=>g&&g(_(G)),P=o(E),j=P[0],X=P[1],W=()=>{j===J.RGBA&&X(J.HSLA),j===J.HSLA&&X(J.HEXA),j===J.HEXA&&X(J.RGBA)},z={paddingTop:6},F={textAlign:"center",paddingTop:4,paddingBottom:4},q=c({"--chrome-arrow-fill":"#333","--chrome-arrow-background-color":"#e8e8e8",borderRadius:0,flexDirection:N?"row":"column",width:N?460:230,padding:0},n),dr={"--chrome-alpha-box-shadow":"rgb(0 0 0 / 25%) 0px 0px 1px inset",borderRadius:"50%",background:zr(m),boxShadow:"var(--chrome-alpha-box-shadow)"},rr=(G)=>{var K=Z(G);h(c({},K))},lr={height:14,width:14},ir={style:c({},lr),fillProps:{style:lr}};return r(Pr,c({ref:e,color:m,style:q,colors:void 0,className:[p,b].filter(Boolean).join(" "),placement:I.TopLeft},M,{addonAfter:a(de,{children:[r(Nr,{hsva:m,style:N?{width:230,height:120}:{width:"100%",height:130},onChange:(G)=>{h(c({},m,G,{a:m.a}))}}),a("div",{style:{display:"flex",flexDirection:"column",width:N?230:"inherit"},children:[a("div",{style:{padding:15,display:"flex",alignItems:"center",gap:10},children:[so()&&L&&r(po,{onPickColor:rr}),k&&r(pr,{width:28,height:28,hsva:m,radius:2,style:{borderRadius:"50%"},bgProps:{style:{background:"transparent"}},innerProps:{style:dr},pointer:()=>r(de,{})}),a("div",{style:{flex:1},children:[D==1&&r(Lr,{hue:m.h,style:{width:"100%",height:12,borderRadius:2},pointerProps:ir,bgProps:{style:{borderRadius:2}},onChange:(G)=>{h(c({},m,G))}}),S==1&&r(pr,{hsva:m,style:{marginTop:6,height:12,borderRadius:2},pointerProps:ir,bgProps:{style:{borderRadius:2}},onChange:(G)=>{h(c({},m,G))}})]})]}),A&&a("div",{style:{display:"flex",alignItems:"flex-start",padding:"0 15px 15px 15px",userSelect:"none"},children:[a("div",{style:{flex:1},children:[j==J.RGBA&&r(vr,{hsva:m,rProps:{labelStyle:z,inputStyle:F},gProps:{labelStyle:z,inputStyle:F},bProps:{labelStyle:z,inputStyle:F},aProps:S!=0&&{labelStyle:z,inputStyle:F},onChange:(G)=>h(G.hsva)}),j===J.HEXA&&r(tr,{label:"HEX",labelStyle:z,inputStyle:F,value:m.a>0&&m.a<1?jr(m).toLocaleUpperCase():cr(m).toLocaleUpperCase(),onChange:(G,K)=>{typeof K=="string"&&h(Z(/^#/.test(K)?K:"#"+K))}}),j===J.HSLA&&r(Er,{hsva:m,hProps:{labelStyle:z,inputStyle:F},sProps:{labelStyle:z,inputStyle:F},lProps:{labelStyle:z,inputStyle:F},aProps:S!=0&&{labelStyle:z,inputStyle:F},onChange:(G)=>h(G.hsva)})]}),r(io,{onClick:W})]})]})]}),rectRender:()=>r(de,{})}))});Dr.displayName="Chrome";var co="nxgt-color-picker";function bo({color:t,onChange:e}){return r(Dr,{color:t,showTriangle:!1,showAlpha:!1,onChange:(s)=>e(s.hex),className:co})}export{bo as default};
@@ -1 +1 @@
1
- import{_,me,qe,l,i,r,a,v,Se,xi,Sn,En,An,Tr,Cr,rn,Go}from"./index.0hrfbrja.js";import{wa}from"./index.fab58nn0.js";var k=qe(()=>(_("06cy435c"),import("./markup-color-chrome-ykGNUl8y.06cy435c.js")));function N(c){let{anchor:o,open:t,onOpenChange:u,current:f,onPick:h}=c,{t:g}=v(),C=Go(),n=i(null),p=Se(c.onDone),s=i(!1);l(()=>{!t&&n.current&&(p.current(n.current),n.current=null)},[t,p]);let d=r(me,{fallback:r("div",{"aria-busy":"true",className:"h-56 w-56"}),children:r(k,{color:wa(f),onChange:(e)=>{n.current=e,h(e)}})}),m=g("material.image-editor.markup.color-picker","Pick a colour");return C?r(En,{open:t,onOpenChange:u,children:a(An,{side:"bottom","data-slot":"image-editor-color-sheet",children:[r(xi,{children:r(Sn,{children:m})}),r("div",{className:"flex justify-center px-4 pb-6",children:d})]})}):a(Tr,{open:t,onOpenChange:u,children:[r(rn,{virtualRef:o}),r(Cr,{className:"w-auto p-0",side:"top",align:"start",collisionBoundary:o.current?.closest('[data-slot="image-editor"]'),"aria-label":m,onOpenAutoFocus:void 0,onInteractOutside:(e)=>{o.current?.contains(e.target)?e.preventDefault():s.current=!0},onCloseAutoFocus:(e)=>{e.preventDefault(),s.current||o.current?.focus(),s.current=!1},children:d})]})}export{N as MarkupCustomColor};
1
+ import{_,me,qe,l,i,r,a,v,Se,xi,Sn,En,An,Tr,Cr,rn,Go}from"./index.5vcex75v.js";import{wa}from"./index.je7pqrtm.js";var k=qe(()=>(_("955bjndb"),import("./markup-color-chrome-ykGNUl8y.955bjndb.js")));function j(c){let{anchor:o,open:t,onOpenChange:u,current:f,onPick:h}=c,{t:g}=v(),C=Go(),n=i(null),p=Se(c.onDone),s=i(!1);l(()=>{!t&&n.current&&(p.current(n.current),n.current=null)},[t,p]);let d=r(me,{fallback:r("div",{"aria-busy":"true",className:"h-56 w-56"}),children:r(k,{color:wa(f),onChange:(e)=>{n.current=e,h(e)}})}),m=g("material.image-editor.markup.color-picker","Pick a colour");return C?r(En,{open:t,onOpenChange:u,children:a(An,{side:"bottom","data-slot":"image-editor-color-sheet",children:[r(xi,{children:r(Sn,{children:m})}),r("div",{className:"flex justify-center px-4 pb-6",children:d})]})}):a(Tr,{open:t,onOpenChange:u,children:[r(rn,{virtualRef:o}),r(Cr,{className:"w-auto p-0",side:"top",align:"start",collisionBoundary:o.current?.closest('[data-slot="image-editor"]'),"aria-label":m,onOpenAutoFocus:void 0,onInteractOutside:(e)=>{o.current?.contains(e.target)?e.preventDefault():s.current=!0},onCloseAutoFocus:(e)=>{e.preventDefault(),s.current||o.current?.focus(),s.current=!1},children:d})]})}export{j as MarkupCustomColor};