@wildo-ai/application-creation-workbench 1.1.10 → 1.1.11

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 (170) hide show
  1. package/dist/.vite/manifest.json +956 -404
  2. package/dist/assets/ChartEmptyState-C3M4S9b4.js +1 -0
  3. package/dist/assets/{ChartView-DKDZOjZJ.js → ChartView-1QK3FBtx.js} +19 -19
  4. package/dist/assets/{_basePickBy-BuyVDPfJ.js → _basePickBy-B6h3s-sF.js} +1 -1
  5. package/dist/assets/{_baseUniq-CVvDgwC4.js → _baseUniq-D-4MA4hd.js} +1 -1
  6. package/dist/assets/af-B21OzSmE.js +1 -0
  7. package/dist/assets/ar-ZLisgQnh.js +1 -0
  8. package/dist/assets/{arc-DE9sx_Jn.js → arc-CtbTPoNE.js} +1 -1
  9. package/dist/assets/architectureDiagram-VXUJARFQ-Vk4L8Lzc.js +36 -0
  10. package/dist/assets/bg-CBCYKVQ7.js +1 -0
  11. package/dist/assets/{blockDiagram-VD42YOAC-TQm1EY8a.js → blockDiagram-VD42YOAC-CJmwT1sH.js} +1 -1
  12. package/dist/assets/bn-BBAs6eqY.js +1 -0
  13. package/dist/assets/{c4Diagram-YG6GDRKO-DPVnrqS2.js → c4Diagram-YG6GDRKO-Cd2JXSKY.js} +1 -1
  14. package/dist/assets/ca-CHtdRZF8.js +1 -0
  15. package/dist/assets/channel-BczTlnHr.js +1 -0
  16. package/dist/assets/{chunk-4BX2VUAB-V_Lu-A8z.js → chunk-4BX2VUAB-B45XKmeh.js} +1 -1
  17. package/dist/assets/{chunk-55IACEB6-CrshiQUZ.js → chunk-55IACEB6-Dus25Vau.js} +1 -1
  18. package/dist/assets/{chunk-B4BG7PRW-B4fN1huZ.js → chunk-B4BG7PRW-7heZqqKJ.js} +1 -1
  19. package/dist/assets/{chunk-DI55MBZ5-gtIXZHBU.js → chunk-DI55MBZ5-tDIJ1980.js} +1 -1
  20. package/dist/assets/{chunk-FMBD7UC4-j8bev95J.js → chunk-FMBD7UC4-p2MT9Qgj.js} +1 -1
  21. package/dist/assets/{chunk-QN33PNHL-B-kGe_H0.js → chunk-QN33PNHL-C8irSNHD.js} +1 -1
  22. package/dist/assets/{chunk-QZHKN3VN-BLVfc9yR.js → chunk-QZHKN3VN-BnzUirvg.js} +1 -1
  23. package/dist/assets/{chunk-TZMSLE5B-CHEgF8Sz.js → chunk-TZMSLE5B-vN6WFHgE.js} +1 -1
  24. package/dist/assets/classDiagram-2ON5EDUG-COA7cz19.js +1 -0
  25. package/dist/assets/classDiagram-v2-WZHVMYZB-COA7cz19.js +1 -0
  26. package/dist/assets/clone-CgA-DYeg.js +1 -0
  27. package/dist/assets/{cm6-editor-ComXvSgE.js → cm6-editor-DjOHnDo5.js} +3 -3
  28. package/dist/assets/{code-block-IT6T5CEO-CL2mSW30.js → code-block-IT6T5CEO-DrggLL3z.js} +1 -1
  29. package/dist/assets/context-BsxPj3fo.js +1 -0
  30. package/dist/assets/cose-bilkent-S5V4N54A-DAVrPej8.js +1 -0
  31. package/dist/assets/cs-CeiaQwdU.js +1 -0
  32. package/dist/assets/cy-BSB-wEmv.js +1 -0
  33. package/dist/assets/da-ubM2m_tA.js +1 -0
  34. package/dist/assets/{dagre-6UL2VRFP-D-6HwSlh.js → dagre-6UL2VRFP-BC4b_XYs.js} +1 -1
  35. package/dist/assets/dagre.esm-DdGNJMRW.js +1 -0
  36. package/dist/assets/de-AT-BSzCeQWr.js +1 -0
  37. package/dist/assets/de-C1Jd6Jap.js +1 -0
  38. package/dist/assets/{diagram-PSM6KHXK-DVMAwfhR.js → diagram-PSM6KHXK-DNFChJ0f.js} +1 -1
  39. package/dist/assets/{diagram-QEK2KX5R-ztEXARNd.js → diagram-QEK2KX5R-BVhCBnwr.js} +1 -1
  40. package/dist/assets/{diagram-S2PKOQOG-aOEIHitS.js → diagram-S2PKOQOG-9lXj7QHC.js} +1 -1
  41. package/dist/assets/{dropbox-picker-Cgd6aaxu.js → dropbox-picker-Db0ZMzrx.js} +1 -1
  42. package/dist/assets/el-C45oMinb.js +1 -0
  43. package/dist/assets/en-AU-D8LSUJ_1.js +1 -0
  44. package/dist/assets/en-CA-SBS0AmfB.js +1 -0
  45. package/dist/assets/en-GB-Cov3Ml3U.js +1 -0
  46. package/dist/assets/{erDiagram-Q2GNP2WA-BeX2p48P.js → erDiagram-Q2GNP2WA-CbAO0LL2.js} +1 -1
  47. package/dist/assets/es-D-8DLZpn.js +1 -0
  48. package/dist/assets/et-X1jtpHsB.js +1 -0
  49. package/dist/assets/eu-CuGQ69e6.js +1 -0
  50. package/dist/assets/fa-IR-Ix96Bcel.js +1 -0
  51. package/dist/assets/fi-BV2qx6It.js +1 -0
  52. package/dist/assets/{flowDiagram-NV44I4VS-B5OF-K2x.js → flowDiagram-NV44I4VS-DhKFlSYT.js} +1 -1
  53. package/dist/assets/flows-actors-graph-runtime-DXWrUBOs.js +1 -0
  54. package/dist/assets/fr-BobMQp2m.js +1 -0
  55. package/dist/assets/fr-CA-D7f0MGFd.js +1 -0
  56. package/dist/assets/ganttDiagram-JELNMOA3-BSLWLuNm.js +267 -0
  57. package/dist/assets/{gitGraphDiagram-V2S2FVAM-DBYlH4FL.js → gitGraphDiagram-V2S2FVAM-BuY8ZQCy.js} +1 -1
  58. package/dist/assets/gl-DIxa7Uua.js +1 -0
  59. package/dist/assets/{google-drive-picker-BKyN80GQ.js → google-drive-picker-DAtYjlyJ.js} +1 -1
  60. package/dist/assets/{graph-AvBeoHop.js → graph-CZl0oLiw.js} +1 -1
  61. package/dist/assets/graph-runtime-s1VQXDD1.js +1 -0
  62. package/dist/assets/he-8B_S-IGJ.js +1 -0
  63. package/dist/assets/hi-DAveE-s0.js +1 -0
  64. package/dist/assets/hr-BiqatTpE.js +1 -0
  65. package/dist/assets/hu-CkmDYALv.js +1 -0
  66. package/dist/assets/id-CEIQaYFZ.js +1 -0
  67. package/dist/assets/{index-BHi5TkWc.js → index-5WbcaDHE.js} +1 -1
  68. package/dist/assets/{index-Cj0s-NJv.js → index-6mdg1_5r.js} +1 -1
  69. package/dist/assets/{index-Dv1hCn5N.js → index-Ab3QlNIl.js} +1 -1
  70. package/dist/assets/{index-BLyj7STg.js → index-BYLFSxol.js} +1 -1
  71. package/dist/assets/{index-CwdHV_FX.js → index-B_c7MY4O.js} +1 -1
  72. package/dist/assets/{index-9hIdGCE2.js → index-Ba5B32Fl.js} +1 -1
  73. package/dist/assets/index-BbsjKkIz.js +15 -0
  74. package/dist/assets/{index-BJGqq48m.js → index-BgCqk92w.js} +1 -1
  75. package/dist/assets/{index-BG-y5UcD.js → index-BlQ-dtmP.js} +1 -1
  76. package/dist/assets/{index-D3CAZMVF.js → index-C--TU0cT.js} +1 -1
  77. package/dist/assets/{index-6zr8R4dA.js → index-C7yjEhDq.js} +1 -1
  78. package/dist/assets/{index-Br7zFzuz.js → index-C9FemyBL.js} +1 -1
  79. package/dist/assets/{index-CK3Bi__8.js → index-CD0o7ijU.js} +1 -1
  80. package/dist/assets/{index-Db4UIXz-.js → index-CI0O31Cp.js} +1 -1
  81. package/dist/assets/{index-DikSr-5K.js → index-CIBxHZnA.js} +1 -1
  82. package/dist/assets/{index-C-hOTyb_.js → index-CMxaoNlJ.js} +1 -1
  83. package/dist/assets/{index-C8H6aj0j.js → index-CWE3FEZN.js} +1 -1
  84. package/dist/assets/{index-Bpku8s6k.js → index-C_NGDq2w.js} +1 -1
  85. package/dist/assets/index-Ccf8muta.js +1261 -0
  86. package/dist/assets/index-CzvHWEPS.js +1 -0
  87. package/dist/assets/{index-BZeyH3ke.js → index-DDd8ozYp.js} +1 -1
  88. package/dist/assets/{index-CMQis7aS.js → index-DLv9veAb.js} +1 -1
  89. package/dist/assets/index-DQ5p5-oO.css +1 -0
  90. package/dist/assets/{index-B5EaGcLw.js → index-KTNhvzNT.js} +1 -1
  91. package/dist/assets/{index-DYY9gnp9.js → index-_bSqFwX-.js} +1 -1
  92. package/dist/assets/{index-DyQa6Mm5.js → index-aDaNN3ga.js} +1 -1
  93. package/dist/assets/{index-DIo0Wrbb.js → index-bK1lB11U.js} +1 -1
  94. package/dist/assets/index-fTTODqFZ.js +372 -0
  95. package/dist/assets/{index-BFcDqzUt.js → index-l36QeemA.js} +1 -1
  96. package/dist/assets/{index.es-B9u8rJ1d.js → index.es-Dov84Q7L.js} +1 -1
  97. package/dist/assets/{infoDiagram-HS3SLOUP-Bt2AfSr_.js → infoDiagram-HS3SLOUP-BMxiOms9.js} +1 -1
  98. package/dist/assets/is-CFRfpcIV.js +1 -0
  99. package/dist/assets/isSameWeek-CVp5lUeg.js +1 -0
  100. package/dist/assets/it-wj2FxBeN.js +1 -0
  101. package/dist/assets/ja-C76INfXB.js +1 -0
  102. package/dist/assets/{journeyDiagram-XKPGCS4Q-B9RxAwyj.js → journeyDiagram-XKPGCS4Q-DCWsE8zZ.js} +1 -1
  103. package/dist/assets/{kanban-definition-3W4ZIXB7-KUyHlyqc.js → kanban-definition-3W4ZIXB7-CB2mRoXc.js} +1 -1
  104. package/dist/assets/ko-B8wQPQK9.js +1 -0
  105. package/dist/assets/{layout-Dq4vO6R-.js → layout-_08RBJmw.js} +1 -1
  106. package/dist/assets/linear-DgScXpWB.js +1 -0
  107. package/dist/assets/lt-BTz08iQZ.js +1 -0
  108. package/dist/assets/lv-CS3iPrpf.js +1 -0
  109. package/dist/assets/match-CMf6gi5c.js +1 -0
  110. package/dist/assets/match-rP2MYsHL.js +1 -0
  111. package/dist/assets/{maximize-2-Bl11RTvy.js → maximize-2-B0LqzzJD.js} +1 -1
  112. package/dist/assets/{mermaid-VLURNSYL-DPc-hyxN.js → mermaid-VLURNSYL-CFdBlgNU.js} +4 -4
  113. package/dist/assets/mermaid.core-Bm9ZP7gJ.js +198 -0
  114. package/dist/assets/{mindmap-definition-VGOIOE7T-ih3nvg2M.js → mindmap-definition-VGOIOE7T-CuBc5wmR.js} +1 -1
  115. package/dist/assets/ms-Cl9dOMs9.js +1 -0
  116. package/dist/assets/mt-SxIP5cQY.js +1 -0
  117. package/dist/assets/nb-Bx9pdwqt.js +1 -0
  118. package/dist/assets/nl-LA6duOkc.js +1 -0
  119. package/dist/assets/{onedrive-picker-9JhZVdja.js → onedrive-picker-C9HIxKdV.js} +1 -1
  120. package/dist/assets/{pdf-viewer-BU_zv2sb.js → pdf-viewer-Cm0cmjrF.js} +1 -1
  121. package/dist/assets/{pieDiagram-ADFJNKIX-2y6i9a-Q.js → pieDiagram-ADFJNKIX-BAEg106K.js} +1 -1
  122. package/dist/assets/pl-C9o65KdE.js +1 -0
  123. package/dist/assets/pt-BR-DzQ5E1HI.js +1 -0
  124. package/dist/assets/pt-DTUo2gXr.js +1 -0
  125. package/dist/assets/{quadrantDiagram-AYHSOK5B-Bpbt_ZL6.js → quadrantDiagram-AYHSOK5B-DnH9aNk6.js} +1 -1
  126. package/dist/assets/{requirementDiagram-UZGBJVZJ-DKhx22Et.js → requirementDiagram-UZGBJVZJ-BC08j3iJ.js} +1 -1
  127. package/dist/assets/ro-D0C5XwLr.js +1 -0
  128. package/dist/assets/ru-CdLptA_8.js +1 -0
  129. package/dist/assets/{sankeyDiagram-TZEHDZUN-DOz9tNgj.js → sankeyDiagram-TZEHDZUN-D2w97jyv.js} +1 -1
  130. package/dist/assets/{sequenceDiagram-WL72ISMW-aQQbVp6L.js → sequenceDiagram-WL72ISMW-Y_hpHzaj.js} +1 -1
  131. package/dist/assets/{shiki-highlighter-runtime-B9niRUB2.js → shiki-highlighter-runtime-Bl0H0KPz.js} +1 -1
  132. package/dist/assets/sk-CeQBmfzD.js +1 -0
  133. package/dist/assets/sl-BKgErU1D.js +1 -0
  134. package/dist/assets/{stateDiagram-FKZM4ZOC-vDZ9FAaz.js → stateDiagram-FKZM4ZOC-Cn_uBJn5.js} +1 -1
  135. package/dist/assets/stateDiagram-v2-4FDKWEC3-4ptWp8bn.js +1 -0
  136. package/dist/assets/sv-OWWvKBOh.js +1 -0
  137. package/dist/assets/ta-BO8Vz6nD.js +1 -0
  138. package/dist/assets/th-Cv66UIk0.js +1 -0
  139. package/dist/assets/{timeline-definition-IT6M3QCI-C1jpqiM9.js → timeline-definition-IT6M3QCI-Pm7JOk6q.js} +1 -1
  140. package/dist/assets/tr-DJBdUg4Y.js +1 -0
  141. package/dist/assets/{treemap-GDKQZRPO-Bskqcsjn.js → treemap-GDKQZRPO-CB8vQsyY.js} +1 -1
  142. package/dist/assets/useQuickActionButtonBehavior-EHioc1n0.js +1 -0
  143. package/dist/assets/vi-5cFVA26_.js +1 -0
  144. package/dist/assets/{xychartDiagram-PRI3JC2R-BD8d9TGv.js → xychartDiagram-PRI3JC2R-CQSQ6r3l.js} +1 -1
  145. package/dist/assets/zh-CN-CfAV3Hxo.js +1 -0
  146. package/dist/assets/zh-HK-DoEn5xH2.js +1 -0
  147. package/dist/assets/zh-TW-CUUKOLkj.js +1 -0
  148. package/dist/index.html +2 -2
  149. package/package.json +9 -8
  150. package/dist/assets/ChartEmptyState-BIIyFwDZ.js +0 -1
  151. package/dist/assets/architectureDiagram-VXUJARFQ-DY4uZXMe.js +0 -36
  152. package/dist/assets/channel-C4B85_Ht.js +0 -1
  153. package/dist/assets/classDiagram-2ON5EDUG-CejTSo9E.js +0 -1
  154. package/dist/assets/classDiagram-v2-WZHVMYZB-CejTSo9E.js +0 -1
  155. package/dist/assets/clone-eq-IW2p2.js +0 -1
  156. package/dist/assets/context-BB5qtAPe.js +0 -1
  157. package/dist/assets/cose-bilkent-S5V4N54A-DMODvaS_.js +0 -1
  158. package/dist/assets/flows-actors-graph-runtime-BN2k8R04.js +0 -1
  159. package/dist/assets/ganttDiagram-JELNMOA3-CMYOZD-b.js +0 -267
  160. package/dist/assets/graph-runtime-4LdwGgRA.js +0 -1
  161. package/dist/assets/index-BVKCM4BG.js +0 -1
  162. package/dist/assets/index-BjG3MUUI.js +0 -347
  163. package/dist/assets/index-CHO8NA6v.js +0 -1094
  164. package/dist/assets/index-D-THewyc.css +0 -1
  165. package/dist/assets/index-DPuqBa_G.js +0 -499
  166. package/dist/assets/linear-BIzHWTWZ.js +0 -1
  167. package/dist/assets/mermaid.core-DL97wpul.js +0 -197
  168. package/dist/assets/module-DUSXqJtA.js +0 -3
  169. package/dist/assets/stateDiagram-v2-4FDKWEC3-Cfb6lTuy.js +0 -1
  170. package/dist/assets/useQuickActionButtonBehavior-DK86ZrMU.js +0 -1
@@ -1 +1 @@
1
- import{s as R,a as W,S as N}from"./chunk-DI55MBZ5-gtIXZHBU.js";import{_ as f,c as t,l as S,d as P,j as z,a8 as _,a9 as U,a5 as C,u as F}from"./mermaid.core-DL97wpul.js";import{s as H}from"./index-CHO8NA6v.js";import{G as O}from"./graph-AvBeoHop.js";import{l as J}from"./layout-Dq4vO6R-.js";import"./chunk-55IACEB6-CrshiQUZ.js";import"./chunk-QN33PNHL-B-kGe_H0.js";import"./mermaid-VLURNSYL-DPc-hyxN.js";import"./index-e-4cSkrt.js";import"./maximize-2-Bl11RTvy.js";import"./_baseUniq-CVvDgwC4.js";import"./_basePickBy-BuyVDPfJ.js";var X=f(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),D=f(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),Y=f((e,i)=>{const d=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),c=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),d},"drawSimpleState"),I=f((e,i)=>{const d=f(function(g,B,m){const E=g.append("tspan").attr("x",2*t().state.padding).text(B);m||E.attr("dy",t().state.textHeight)},"addTspan"),n=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),l=n.height,x=e.append("text").attr("x",t().state.padding).attr("y",l+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,s=!0;i.descriptions.forEach(function(g){a||(d(x,g,s),s=!1),a=!1});const w=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+l+t().state.dividerMargin/2).attr("y2",t().state.padding+l+t().state.dividerMargin/2).attr("class","descr-divider"),p=x.node().getBBox(),o=Math.max(p.width,n.width);return w.attr("x2",o+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",o+2*t().state.padding).attr("height",p.height+l+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),$=f((e,i,d)=>{const c=t().state.padding,n=2*t().state.padding,l=e.node().getBBox(),x=l.width,a=l.x,s=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),p=s.node().getBBox().width+n;let o=Math.max(p,x);o===x&&(o=o+n);let g;const B=e.node().getBBox();i.doc,g=a-c,p>x&&(g=(x-o)/2+c),Math.abs(a-B.x)<c&&p>x&&(g=a-(p-x)/2);const m=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",g).attr("y",m).attr("class",d?"alt-composit":"composit").attr("width",o).attr("height",B.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),s.attr("x",g+c),p<=x&&s.attr("x",a+(o-n)/2-p/2+c),e.insert("rect",":first-child").attr("x",g).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",o).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",g).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",o).attr("height",B.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),j=f(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),q=f((e,i)=>{let d=t().state.forkWidth,c=t().state.forkHeight;if(i.parentId){let n=d;d=c,c=n}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),Z=f((e,i,d,c)=>{let n=0;const l=c.append("text");l.style("text-anchor","start"),l.attr("class","noteText");let x=e.replace(/\r\n/g,"<br/>");x=x.replace(/\n/g,"<br/>");const a=x.split(z.lineBreakRegex);let s=1.25*t().state.noteMargin;for(const w of a){const p=w.trim();if(p.length>0){const o=l.append("tspan");if(o.text(p),s===0){const g=o.node().getBBox();s+=g.height}n+=s,o.attr("x",i+t().state.noteMargin),o.attr("y",d+n+1.25*t().state.noteMargin)}}return{textWidth:l.node().getBBox().width,textHeight:n}},"_drawLongText"),K=f((e,i)=>{i.attr("class","state-note");const d=i.append("rect").attr("x",0).attr("y",t().state.padding),c=i.append("g"),{textWidth:n,textHeight:l}=Z(e,0,0,c);return d.attr("height",l+2*t().state.noteMargin),d.attr("width",n+t().state.noteMargin*2),d},"drawNote"),L=f(function(e,i){const d=i.id,c={id:d,label:i.id,width:0,height:0},n=e.append("g").attr("id",d).attr("class","stateGroup");i.type==="start"&&X(n),i.type==="end"&&j(n),(i.type==="fork"||i.type==="join")&&q(n,i),i.type==="note"&&K(i.note.text,n),i.type==="divider"&&D(n),i.type==="default"&&i.descriptions.length===0&&Y(n,i),i.type==="default"&&i.descriptions.length>0&&I(n,i);const l=n.node().getBBox();return c.width=l.width+2*t().state.padding,c.height=l.height+2*t().state.padding,c},"drawState"),A=0,Q=f(function(e,i,d){const c=f(function(s){switch(s){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}},"getRelationType");i.points=i.points.filter(s=>!Number.isNaN(s.y));const n=i.points,l=_().x(function(s){return s.x}).y(function(s){return s.y}).curve(U),x=e.append("path").attr("d",l(n)).attr("id","edge"+A).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=C(!0)),x.attr("marker-end","url("+a+"#"+c(N.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const s=e.append("g").attr("class","stateLabel"),{x:w,y:p}=F.calcLabelPosition(i.points),o=z.getRows(d.title);let g=0;const B=[];let m=0,E=0;for(let u=0;u<=o.length;u++){const h=s.append("text").attr("text-anchor","middle").text(o[u]).attr("x",w).attr("y",p+g),y=h.node().getBBox();m=Math.max(m,y.width),E=Math.min(E,y.x),S.info(y.x,w,p+g),g===0&&(g=h.node().getBBox().height,S.info("Title height",g,p)),B.push(h)}let k=g*o.length;if(o.length>1){const u=(o.length-1)*g*.5;B.forEach((h,y)=>h.attr("y",p+y*g-u)),k=g*o.length}const r=s.node().getBBox();s.insert("rect",":first-child").attr("class","box").attr("x",w-m/2-t().state.padding/2).attr("y",p-k/2-t().state.padding/2-3.5).attr("width",m+t().state.padding).attr("height",k+t().state.padding),S.info(r)}A++},"drawEdge"),b,T={},V=f(function(){},"setConf"),tt=f(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),et=f(function(e,i,d,c){b=t().state;const n=t().securityLevel;let l;n==="sandbox"&&(l=H("#i"+i));const x=n==="sandbox"?H(l.nodes()[0].contentDocument.body):H("body"),a=n==="sandbox"?l.nodes()[0].contentDocument:document;S.debug("Rendering diagram "+e);const s=x.select(`[id='${i}']`);tt(s);const w=c.db.getRootDoc();G(w,s,void 0,!1,x,a,c);const p=b.padding,o=s.node().getBBox(),g=o.width+p*2,B=o.height+p*2,m=g*1.75;P(s,B,m,b.useMaxWidth),s.attr("viewBox",`${o.x-b.padding} ${o.y-b.padding} `+g+" "+B)},"draw"),at=f(e=>e?e.length*b.fontSizeFactor:1,"getLabelWidth"),G=f((e,i,d,c,n,l,x)=>{const a=new O({compound:!0,multigraph:!0});let s,w=!0;for(s=0;s<e.length;s++)if(e[s].stmt==="relation"){w=!1;break}d?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:w?1:b.edgeLengthFactor,nodeSep:w?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:w?1:b.edgeLengthFactor,nodeSep:w?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});const p=x.db.getStates(),o=x.db.getRelations(),g=Object.keys(p);for(const r of g){const u=p[r];d&&(u.parentId=d);let h;if(u.doc){let y=i.append("g").attr("id",u.id).attr("class","stateGroup");h=G(u.doc,y,u.id,!c,n,l,x);{y=$(y,u,c);let v=y.node().getBBox();h.width=v.width,h.height=v.height+b.padding/2,T[u.id]={y:b.compositTitleSize}}}else h=L(i,u,a);if(u.note){const y={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},v=L(i,y,a);u.note.position==="left of"?(a.setNode(h.id+"-note",v),a.setNode(h.id,h)):(a.setNode(h.id,h),a.setNode(h.id+"-note",v)),a.setParent(h.id,h.id+"-group"),a.setParent(h.id+"-note",h.id+"-group")}else a.setNode(h.id,h)}S.debug("Count=",a.nodeCount(),a);let B=0;o.forEach(function(r){B++,S.debug("Setting edge",r),a.setEdge(r.id1,r.id2,{relation:r,width:at(r.title),height:b.labelHeight*z.getRows(r.title).length,labelpos:"c"},"id"+B)}),J(a),S.debug("Graph after layout",a.nodes());const m=i.node();a.nodes().forEach(function(r){r!==void 0&&a.node(r)!==void 0?(S.warn("Node "+r+": "+JSON.stringify(a.node(r))),n.select("#"+m.id+" #"+r).attr("transform","translate("+(a.node(r).x-a.node(r).width/2)+","+(a.node(r).y+(T[r]?T[r].y:0)-a.node(r).height/2)+" )"),n.select("#"+m.id+" #"+r).attr("data-x-shift",a.node(r).x-a.node(r).width/2),l.querySelectorAll("#"+m.id+" #"+r+" .divider").forEach(h=>{const y=h.parentElement;let v=0,M=0;y&&(y.parentElement&&(v=y.parentElement.getBBox().width),M=parseInt(y.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",v-M-8)})):S.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let E=m.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(S.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),Q(i,a.edge(r),a.edge(r).relation))}),E=m.getBBox();const k={id:d||"root",label:d||"root",width:0,height:0};return k.width=E.width+2*b.padding,k.height=E.height+2*b.padding,S.debug("Doc rendered",k,a),k},"renderDoc"),it={setConf:V,draw:et},ft={parser:W,get db(){return new N(1)},renderer:it,styles:R,init:f(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{ft as diagram};
1
+ import{s as R,a as W,S as N}from"./chunk-DI55MBZ5-tDIJ1980.js";import{_ as f,c as t,l as S,d as P,j as z,a8 as _,a9 as U,a5 as C,u as F}from"./mermaid.core-Bm9ZP7gJ.js";import{a as H}from"./index-Ccf8muta.js";import{G as O}from"./graph-CZl0oLiw.js";import{l as J}from"./layout-_08RBJmw.js";import"./chunk-55IACEB6-Dus25Vau.js";import"./chunk-QN33PNHL-C8irSNHD.js";import"./mermaid-VLURNSYL-CFdBlgNU.js";import"./index-e-4cSkrt.js";import"./maximize-2-B0LqzzJD.js";import"./_baseUniq-D-4MA4hd.js";import"./_basePickBy-B6h3s-sF.js";var X=f(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),D=f(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),Y=f((e,i)=>{const d=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),c=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),d},"drawSimpleState"),I=f((e,i)=>{const d=f(function(g,B,m){const E=g.append("tspan").attr("x",2*t().state.padding).text(B);m||E.attr("dy",t().state.textHeight)},"addTspan"),n=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),l=n.height,x=e.append("text").attr("x",t().state.padding).attr("y",l+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,s=!0;i.descriptions.forEach(function(g){a||(d(x,g,s),s=!1),a=!1});const w=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+l+t().state.dividerMargin/2).attr("y2",t().state.padding+l+t().state.dividerMargin/2).attr("class","descr-divider"),p=x.node().getBBox(),o=Math.max(p.width,n.width);return w.attr("x2",o+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",o+2*t().state.padding).attr("height",p.height+l+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),$=f((e,i,d)=>{const c=t().state.padding,n=2*t().state.padding,l=e.node().getBBox(),x=l.width,a=l.x,s=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),p=s.node().getBBox().width+n;let o=Math.max(p,x);o===x&&(o=o+n);let g;const B=e.node().getBBox();i.doc,g=a-c,p>x&&(g=(x-o)/2+c),Math.abs(a-B.x)<c&&p>x&&(g=a-(p-x)/2);const m=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",g).attr("y",m).attr("class",d?"alt-composit":"composit").attr("width",o).attr("height",B.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),s.attr("x",g+c),p<=x&&s.attr("x",a+(o-n)/2-p/2+c),e.insert("rect",":first-child").attr("x",g).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",o).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",g).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",o).attr("height",B.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),j=f(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),q=f((e,i)=>{let d=t().state.forkWidth,c=t().state.forkHeight;if(i.parentId){let n=d;d=c,c=n}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),Z=f((e,i,d,c)=>{let n=0;const l=c.append("text");l.style("text-anchor","start"),l.attr("class","noteText");let x=e.replace(/\r\n/g,"<br/>");x=x.replace(/\n/g,"<br/>");const a=x.split(z.lineBreakRegex);let s=1.25*t().state.noteMargin;for(const w of a){const p=w.trim();if(p.length>0){const o=l.append("tspan");if(o.text(p),s===0){const g=o.node().getBBox();s+=g.height}n+=s,o.attr("x",i+t().state.noteMargin),o.attr("y",d+n+1.25*t().state.noteMargin)}}return{textWidth:l.node().getBBox().width,textHeight:n}},"_drawLongText"),K=f((e,i)=>{i.attr("class","state-note");const d=i.append("rect").attr("x",0).attr("y",t().state.padding),c=i.append("g"),{textWidth:n,textHeight:l}=Z(e,0,0,c);return d.attr("height",l+2*t().state.noteMargin),d.attr("width",n+t().state.noteMargin*2),d},"drawNote"),L=f(function(e,i){const d=i.id,c={id:d,label:i.id,width:0,height:0},n=e.append("g").attr("id",d).attr("class","stateGroup");i.type==="start"&&X(n),i.type==="end"&&j(n),(i.type==="fork"||i.type==="join")&&q(n,i),i.type==="note"&&K(i.note.text,n),i.type==="divider"&&D(n),i.type==="default"&&i.descriptions.length===0&&Y(n,i),i.type==="default"&&i.descriptions.length>0&&I(n,i);const l=n.node().getBBox();return c.width=l.width+2*t().state.padding,c.height=l.height+2*t().state.padding,c},"drawState"),A=0,Q=f(function(e,i,d){const c=f(function(s){switch(s){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}},"getRelationType");i.points=i.points.filter(s=>!Number.isNaN(s.y));const n=i.points,l=_().x(function(s){return s.x}).y(function(s){return s.y}).curve(U),x=e.append("path").attr("d",l(n)).attr("id","edge"+A).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=C(!0)),x.attr("marker-end","url("+a+"#"+c(N.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const s=e.append("g").attr("class","stateLabel"),{x:w,y:p}=F.calcLabelPosition(i.points),o=z.getRows(d.title);let g=0;const B=[];let m=0,E=0;for(let u=0;u<=o.length;u++){const h=s.append("text").attr("text-anchor","middle").text(o[u]).attr("x",w).attr("y",p+g),y=h.node().getBBox();m=Math.max(m,y.width),E=Math.min(E,y.x),S.info(y.x,w,p+g),g===0&&(g=h.node().getBBox().height,S.info("Title height",g,p)),B.push(h)}let k=g*o.length;if(o.length>1){const u=(o.length-1)*g*.5;B.forEach((h,y)=>h.attr("y",p+y*g-u)),k=g*o.length}const r=s.node().getBBox();s.insert("rect",":first-child").attr("class","box").attr("x",w-m/2-t().state.padding/2).attr("y",p-k/2-t().state.padding/2-3.5).attr("width",m+t().state.padding).attr("height",k+t().state.padding),S.info(r)}A++},"drawEdge"),b,T={},V=f(function(){},"setConf"),tt=f(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),et=f(function(e,i,d,c){b=t().state;const n=t().securityLevel;let l;n==="sandbox"&&(l=H("#i"+i));const x=n==="sandbox"?H(l.nodes()[0].contentDocument.body):H("body"),a=n==="sandbox"?l.nodes()[0].contentDocument:document;S.debug("Rendering diagram "+e);const s=x.select(`[id='${i}']`);tt(s);const w=c.db.getRootDoc();G(w,s,void 0,!1,x,a,c);const p=b.padding,o=s.node().getBBox(),g=o.width+p*2,B=o.height+p*2,m=g*1.75;P(s,B,m,b.useMaxWidth),s.attr("viewBox",`${o.x-b.padding} ${o.y-b.padding} `+g+" "+B)},"draw"),at=f(e=>e?e.length*b.fontSizeFactor:1,"getLabelWidth"),G=f((e,i,d,c,n,l,x)=>{const a=new O({compound:!0,multigraph:!0});let s,w=!0;for(s=0;s<e.length;s++)if(e[s].stmt==="relation"){w=!1;break}d?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:w?1:b.edgeLengthFactor,nodeSep:w?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:w?1:b.edgeLengthFactor,nodeSep:w?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});const p=x.db.getStates(),o=x.db.getRelations(),g=Object.keys(p);for(const r of g){const u=p[r];d&&(u.parentId=d);let h;if(u.doc){let y=i.append("g").attr("id",u.id).attr("class","stateGroup");h=G(u.doc,y,u.id,!c,n,l,x);{y=$(y,u,c);let v=y.node().getBBox();h.width=v.width,h.height=v.height+b.padding/2,T[u.id]={y:b.compositTitleSize}}}else h=L(i,u,a);if(u.note){const y={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},v=L(i,y,a);u.note.position==="left of"?(a.setNode(h.id+"-note",v),a.setNode(h.id,h)):(a.setNode(h.id,h),a.setNode(h.id+"-note",v)),a.setParent(h.id,h.id+"-group"),a.setParent(h.id+"-note",h.id+"-group")}else a.setNode(h.id,h)}S.debug("Count=",a.nodeCount(),a);let B=0;o.forEach(function(r){B++,S.debug("Setting edge",r),a.setEdge(r.id1,r.id2,{relation:r,width:at(r.title),height:b.labelHeight*z.getRows(r.title).length,labelpos:"c"},"id"+B)}),J(a),S.debug("Graph after layout",a.nodes());const m=i.node();a.nodes().forEach(function(r){r!==void 0&&a.node(r)!==void 0?(S.warn("Node "+r+": "+JSON.stringify(a.node(r))),n.select("#"+m.id+" #"+r).attr("transform","translate("+(a.node(r).x-a.node(r).width/2)+","+(a.node(r).y+(T[r]?T[r].y:0)-a.node(r).height/2)+" )"),n.select("#"+m.id+" #"+r).attr("data-x-shift",a.node(r).x-a.node(r).width/2),l.querySelectorAll("#"+m.id+" #"+r+" .divider").forEach(h=>{const y=h.parentElement;let v=0,M=0;y&&(y.parentElement&&(v=y.parentElement.getBBox().width),M=parseInt(y.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",v-M-8)})):S.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let E=m.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(S.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),Q(i,a.edge(r),a.edge(r).relation))}),E=m.getBBox();const k={id:d||"root",label:d||"root",width:0,height:0};return k.width=E.width+2*b.padding,k.height=E.height+2*b.padding,S.debug("Doc rendered",k,a),k},"renderDoc"),it={setConf:V,draw:et},ft={parser:W,get db(){return new N(1)},renderer:it,styles:R,init:f(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{ft as diagram};
@@ -0,0 +1 @@
1
+ import{s as r,b as e,a,S as s}from"./chunk-DI55MBZ5-tDIJ1980.js";import{_ as i}from"./mermaid.core-Bm9ZP7gJ.js";import"./index-Ccf8muta.js";import"./chunk-55IACEB6-Dus25Vau.js";import"./chunk-QN33PNHL-C8irSNHD.js";import"./mermaid-VLURNSYL-CFdBlgNU.js";import"./index-e-4cSkrt.js";import"./maximize-2-B0LqzzJD.js";var b={parser:a,get db(){return new s(2)},renderer:e,styles:r,init:i(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{b as diagram};
@@ -0,0 +1 @@
1
+ import{a5 as m,ab as o,aq as d,ar as l,aa as s}from"./index-Ccf8muta.js";const u={lessThanXSeconds:{one:"mindre än en sekund",other:"mindre än {{count}} sekunder"},xSeconds:{one:"en sekund",other:"{{count}} sekunder"},halfAMinute:"en halv minut",lessThanXMinutes:{one:"mindre än en minut",other:"mindre än {{count}} minuter"},xMinutes:{one:"en minut",other:"{{count}} minuter"},aboutXHours:{one:"ungefär en timme",other:"ungefär {{count}} timmar"},xHours:{one:"en timme",other:"{{count}} timmar"},xDays:{one:"en dag",other:"{{count}} dagar"},aboutXWeeks:{one:"ungefär en vecka",other:"ungefär {{count}} veckor"},xWeeks:{one:"en vecka",other:"{{count}} veckor"},aboutXMonths:{one:"ungefär en månad",other:"ungefär {{count}} månader"},xMonths:{one:"en månad",other:"{{count}} månader"},aboutXYears:{one:"ungefär ett år",other:"ungefär {{count}} år"},xYears:{one:"ett år",other:"{{count}} år"},overXYears:{one:"över ett år",other:"över {{count}} år"},almostXYears:{one:"nästan ett år",other:"nästan {{count}} år"}},f=["noll","en","två","tre","fyra","fem","sex","sju","åtta","nio","tio","elva","tolv"],c=(e,a,t)=>{let n;const i=u[e];return typeof i=="string"?n=i:a===1?n=i.one:n=i.other.replace("{{count}}",a<13?f[a]:String(a)),t?.addSuffix?t.comparison&&t.comparison>0?"om "+n:n+" sedan":n},g={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"y-MM-dd"},h={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},b={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},v={date:m({formats:g,defaultWidth:"full"}),time:m({formats:h,defaultWidth:"full"}),dateTime:m({formats:b,defaultWidth:"full"})},p={lastWeek:"'i' EEEE's kl.' p",yesterday:"'igår kl.' p",today:"'idag kl.' p",tomorrow:"'imorgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},k=(e,a,t,n)=>p[e],P={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["före Kristus","efter Kristus"]},w={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1:a kvartalet","2:a kvartalet","3:e kvartalet","4:e kvartalet"]},y={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","maj","juni","juli","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]},M={narrow:["S","M","T","O","T","F","L"],short:["sö","må","ti","on","to","fr","lö"],abbreviated:["sön","mån","tis","ons","tors","fre","lör"],wide:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"]},j={narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"morg.",afternoon:"efterm.",evening:"kväll",night:"natt"},abbreviated:{am:"f.m.",pm:"e.m.",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"efterm.",evening:"kväll",night:"natt"},wide:{am:"förmiddag",pm:"eftermiddag",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"eftermiddag",evening:"kväll",night:"natt"}},W={narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},abbreviated:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},wide:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morgonen",afternoon:"på eftermiddagen",evening:"på kvällen",night:"på natten"}},D=(e,a)=>{const t=Number(e),n=t%100;if(n>20||n<10)switch(n%10){case 1:case 2:return t+":a"}return t+":e"},E={ordinalNumber:D,era:o({values:P,defaultWidth:"wide"}),quarter:o({values:w,defaultWidth:"wide",argumentCallback:e=>e-1}),month:o({values:y,defaultWidth:"wide"}),day:o({values:M,defaultWidth:"wide"}),dayPeriod:o({values:j,defaultWidth:"wide",formattingValues:W,defaultFormattingWidth:"wide"})},x=/^(\d+)(:a|:e)?/i,K=/\d+/i,V={narrow:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,abbreviated:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,wide:/^(före Kristus|före vår tid|efter Kristus|vår tid)/i},F={any:[/^f/i,/^[ev]/i]},H={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](:a|:e)? kvartalet/i},N={any:[/1/i,/2/i,/3/i,/4/i]},z={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i,wide:/^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i},L={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},X={narrow:/^[smtofl]/i,short:/^(sö|må|ti|on|to|fr|lö)/i,abbreviated:/^(sön|mån|tis|ons|tors|fre|lör)/i,wide:/^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i},S={any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},Q={any:/^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgonen|eftermiddagen|kvällen|natten))/i},T={any:{am:/^f/i,pm:/^e/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/eftermiddag/i,evening:/kväll/i,night:/natt/i}},Y={ordinalNumber:l({matchPattern:x,parsePattern:K,valueCallback:e=>parseInt(e,10)}),era:d({matchPatterns:V,defaultMatchWidth:"wide",parsePatterns:F,defaultParseWidth:"any"}),quarter:d({matchPatterns:H,defaultMatchWidth:"wide",parsePatterns:N,defaultParseWidth:"any",valueCallback:e=>e+1}),month:d({matchPatterns:z,defaultMatchWidth:"wide",parsePatterns:L,defaultParseWidth:"any"}),day:d({matchPatterns:X,defaultMatchWidth:"wide",parsePatterns:S,defaultParseWidth:"any"}),dayPeriod:d({matchPatterns:Q,defaultMatchWidth:"any",parsePatterns:T,defaultParseWidth:"any"})},q={code:"sv",formatDistance:c,formatLong:v,formatRelative:k,localize:E,match:Y,options:{weekStartsOn:1,firstWeekContainsDate:4}},$={...q,labels:{labelDayButton:(e,a,t,n)=>{let r=(n??new s(t)).format(e,"PPPP");return a.today&&(r=`Idag, ${r}`),a.selected&&(r=`${r}, vald`),r},labelMonthDropdown:"Välj månad",labelNext:"Gå till nästa månad",labelPrevious:"Gå till föregående månad",labelWeekNumber:e=>`Vecka ${e}`,labelYearDropdown:"Välj år",labelGrid:(e,a,t)=>(t??new s(a)).formatMonthYear(e),labelGridcell:(e,a,t,n)=>{let r=(n??new s(t)).format(e,"PPPP");return a?.today&&(r=`Idag, ${r}`),r},labelNav:"Navigationsfält",labelWeekNumberHeader:"Veckonummer",labelWeekday:(e,a,t)=>(t??new s(a)).format(e,"cccc")}};export{$ as sv};
@@ -0,0 +1 @@
1
+ import{a5 as l,ab as r,aq as d,ar as s,aa as u}from"./index-Ccf8muta.js";function c(t){return t.one!==void 0}const m={lessThanXSeconds:{one:{default:"ஒரு வினாடிக்கு குறைவாக",in:"ஒரு வினாடிக்குள்",ago:"ஒரு வினாடிக்கு முன்பு"},other:{default:"{{count}} வினாடிகளுக்கு குறைவாக",in:"{{count}} வினாடிகளுக்குள்",ago:"{{count}} வினாடிகளுக்கு முன்பு"}},xSeconds:{one:{default:"1 வினாடி",in:"1 வினாடியில்",ago:"1 வினாடி முன்பு"},other:{default:"{{count}} விநாடிகள்",in:"{{count}} வினாடிகளில்",ago:"{{count}} விநாடிகளுக்கு முன்பு"}},halfAMinute:{default:"அரை நிமிடம்",in:"அரை நிமிடத்தில்",ago:"அரை நிமிடம் முன்பு"},lessThanXMinutes:{one:{default:"ஒரு நிமிடத்திற்கும் குறைவாக",in:"ஒரு நிமிடத்திற்குள்",ago:"ஒரு நிமிடத்திற்கு முன்பு"},other:{default:"{{count}} நிமிடங்களுக்கும் குறைவாக",in:"{{count}} நிமிடங்களுக்குள்",ago:"{{count}} நிமிடங்களுக்கு முன்பு"}},xMinutes:{one:{default:"1 நிமிடம்",in:"1 நிமிடத்தில்",ago:"1 நிமிடம் முன்பு"},other:{default:"{{count}} நிமிடங்கள்",in:"{{count}} நிமிடங்களில்",ago:"{{count}} நிமிடங்களுக்கு முன்பு"}},aboutXHours:{one:{default:"சுமார் 1 மணி நேரம்",in:"சுமார் 1 மணி நேரத்தில்",ago:"சுமார் 1 மணி நேரத்திற்கு முன்பு"},other:{default:"சுமார் {{count}} மணி நேரம்",in:"சுமார் {{count}} மணி நேரத்திற்கு முன்பு",ago:"சுமார் {{count}} மணி நேரத்தில்"}},xHours:{one:{default:"1 மணி நேரம்",in:"1 மணி நேரத்தில்",ago:"1 மணி நேரத்திற்கு முன்பு"},other:{default:"{{count}} மணி நேரம்",in:"{{count}} மணி நேரத்தில்",ago:"{{count}} மணி நேரத்திற்கு முன்பு"}},xDays:{one:{default:"1 நாள்",in:"1 நாளில்",ago:"1 நாள் முன்பு"},other:{default:"{{count}} நாட்கள்",in:"{{count}} நாட்களில்",ago:"{{count}} நாட்களுக்கு முன்பு"}},aboutXWeeks:{one:{default:"சுமார் 1 வாரம்",in:"சுமார் 1 வாரத்தில்",ago:"சுமார் 1 வாரம் முன்பு"},other:{default:"சுமார் {{count}} வாரங்கள்",in:"சுமார் {{count}} வாரங்களில்",ago:"சுமார் {{count}} வாரங்களுக்கு முன்பு"}},xWeeks:{one:{default:"1 வாரம்",in:"1 வாரத்தில்",ago:"1 வாரம் முன்பு"},other:{default:"{{count}} வாரங்கள்",in:"{{count}} வாரங்களில்",ago:"{{count}} வாரங்களுக்கு முன்பு"}},aboutXMonths:{one:{default:"சுமார் 1 மாதம்",in:"சுமார் 1 மாதத்தில்",ago:"சுமார் 1 மாதத்திற்கு முன்பு"},other:{default:"சுமார் {{count}} மாதங்கள்",in:"சுமார் {{count}} மாதங்களில்",ago:"சுமார் {{count}} மாதங்களுக்கு முன்பு"}},xMonths:{one:{default:"1 மாதம்",in:"1 மாதத்தில்",ago:"1 மாதம் முன்பு"},other:{default:"{{count}} மாதங்கள்",in:"{{count}} மாதங்களில்",ago:"{{count}} மாதங்களுக்கு முன்பு"}},aboutXYears:{one:{default:"சுமார் 1 வருடம்",in:"சுமார் 1 ஆண்டில்",ago:"சுமார் 1 வருடம் முன்பு"},other:{default:"சுமார் {{count}} ஆண்டுகள்",in:"சுமார் {{count}} ஆண்டுகளில்",ago:"சுமார் {{count}} ஆண்டுகளுக்கு முன்பு"}},xYears:{one:{default:"1 வருடம்",in:"1 ஆண்டில்",ago:"1 வருடம் முன்பு"},other:{default:"{{count}} ஆண்டுகள்",in:"{{count}} ஆண்டுகளில்",ago:"{{count}} ஆண்டுகளுக்கு முன்பு"}},overXYears:{one:{default:"1 வருடத்திற்கு மேல்",in:"1 வருடத்திற்கும் மேலாக",ago:"1 வருடம் முன்பு"},other:{default:"{{count}} ஆண்டுகளுக்கும் மேலாக",in:"{{count}} ஆண்டுகளில்",ago:"{{count}} ஆண்டுகளுக்கு முன்பு"}},almostXYears:{one:{default:"கிட்டத்தட்ட 1 வருடம்",in:"கிட்டத்தட்ட 1 ஆண்டில்",ago:"கிட்டத்தட்ட 1 வருடம் முன்பு"},other:{default:"கிட்டத்தட்ட {{count}} ஆண்டுகள்",in:"கிட்டத்தட்ட {{count}} ஆண்டுகளில்",ago:"கிட்டத்தட்ட {{count}} ஆண்டுகளுக்கு முன்பு"}}},f=(t,a,e)=>{const o=e?.addSuffix?e.comparison&&e.comparison>0?"in":"ago":"default",i=m[t];return c(i)?a===1?i.one[o]:i.other[o].replace("{{count}}",String(a)):i[o]},h={full:"EEEE, d MMMM, y",long:"d MMMM, y",medium:"d MMM, y",short:"d/M/yy"},g={full:"a h:mm:ss zzzz",long:"a h:mm:ss z",medium:"a h:mm:ss",short:"a h:mm"},b={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},P={date:l({formats:h,defaultWidth:"full"}),time:l({formats:g,defaultWidth:"full"}),dateTime:l({formats:b,defaultWidth:"full"})},w={lastWeek:"'கடந்த' eeee p 'மணிக்கு'",yesterday:"'நேற்று ' p 'மணிக்கு'",today:"'இன்று ' p 'மணிக்கு'",tomorrow:"'நாளை ' p 'மணிக்கு'",nextWeek:"eeee p 'மணிக்கு'",other:"P"},y=(t,a,e,o)=>w[t],p={narrow:["கி.மு.","கி.பி."],abbreviated:["கி.மு.","கி.பி."],wide:["கிறிஸ்துவுக்கு முன்","அன்னோ டோமினி"]},v={narrow:["1","2","3","4"],abbreviated:["காலா.1","காலா.2","காலா.3","காலா.4"],wide:["ஒன்றாம் காலாண்டு","இரண்டாம் காலாண்டு","மூன்றாம் காலாண்டு","நான்காம் காலாண்டு"]},M={narrow:["ஜ","பி","மா","ஏ","மே","ஜூ","ஜூ","ஆ","செ","அ","ந","டி"],abbreviated:["ஜன.","பிப்.","மார்.","ஏப்.","மே","ஜூன்","ஜூலை","ஆக.","செப்.","அக்.","நவ.","டிச."],wide:["ஜனவரி","பிப்ரவரி","மார்ச்","ஏப்ரல்","மே","ஜூன்","ஜூலை","ஆகஸ்ட்","செப்டம்பர்","அக்டோபர்","நவம்பர்","டிசம்பர்"]},W={narrow:["ஞா","தி","செ","பு","வி","வெ","ச"],short:["ஞா","தி","செ","பு","வி","வெ","ச"],abbreviated:["ஞாயி.","திங்.","செவ்.","புத.","வியா.","வெள்.","சனி"],wide:["ஞாயிறு","திங்கள்","செவ்வாய்","புதன்","வியாழன்","வெள்ளி","சனி"]},D={narrow:{am:"மு.ப",pm:"பி.ப",midnight:"நள்.",noon:"நண்.",morning:"கா.",afternoon:"மதி.",evening:"மா.",night:"இர."},abbreviated:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"},wide:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"}},k={narrow:{am:"மு.ப",pm:"பி.ப",midnight:"நள்.",noon:"நண்.",morning:"கா.",afternoon:"மதி.",evening:"மா.",night:"இர."},abbreviated:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"},wide:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"}},x=(t,a)=>String(t),F={ordinalNumber:x,era:r({values:p,defaultWidth:"wide"}),quarter:r({values:v,defaultWidth:"wide",argumentCallback:t=>t-1}),month:r({values:M,defaultWidth:"wide"}),day:r({values:W,defaultWidth:"wide"}),dayPeriod:r({values:D,defaultWidth:"wide",formattingValues:k,defaultFormattingWidth:"wide"})},z=/^(\d+)(வது)?/i,N=/\d+/i,V={narrow:/^(கி.மு.|கி.பி.)/i,abbreviated:/^(கி\.?\s?மு\.?|கி\.?\s?பி\.?)/,wide:/^(கிறிஸ்துவுக்கு\sமுன்|அன்னோ\sடோமினி)/i},X={any:[/கி\.?\s?மு\.?/,/கி\.?\s?பி\.?/]},L={narrow:/^[1234]/i,abbreviated:/^காலா.[1234]/i,wide:/^(ஒன்றாம்|இரண்டாம்|மூன்றாம்|நான்காம்) காலாண்டு/i},$={narrow:[/1/i,/2/i,/3/i,/4/i],any:[/(1|காலா.1|ஒன்றாம்)/i,/(2|காலா.2|இரண்டாம்)/i,/(3|காலா.3|மூன்றாம்)/i,/(4|காலா.4|நான்காம்)/i]},E={narrow:/^(ஜ|பி|மா|ஏ|மே|ஜூ|ஆ|செ|அ|ந|டி)$/i,abbreviated:/^(ஜன.|பிப்.|மார்.|ஏப்.|மே|ஜூன்|ஜூலை|ஆக.|செப்.|அக்.|நவ.|டிச.)/i,wide:/^(ஜனவரி|பிப்ரவரி|மார்ச்|ஏப்ரல்|மே|ஜூன்|ஜூலை|ஆகஸ்ட்|செப்டம்பர்|அக்டோபர்|நவம்பர்|டிசம்பர்)/i},S={narrow:[/^ஜ$/i,/^பி/i,/^மா/i,/^ஏ/i,/^மே/i,/^ஜூ/i,/^ஜூ/i,/^ஆ/i,/^செ/i,/^அ/i,/^ந/i,/^டி/i],any:[/^ஜன/i,/^பி/i,/^மா/i,/^ஏ/i,/^மே/i,/^ஜூன்/i,/^ஜூலை/i,/^ஆ/i,/^செ/i,/^அ/i,/^ந/i,/^டி/i]},Y={narrow:/^(ஞா|தி|செ|பு|வி|வெ|ச)/i,short:/^(ஞா|தி|செ|பு|வி|வெ|ச)/i,abbreviated:/^(ஞாயி.|திங்.|செவ்.|புத.|வியா.|வெள்.|சனி)/i,wide:/^(ஞாயிறு|திங்கள்|செவ்வாய்|புதன்|வியாழன்|வெள்ளி|சனி)/i},T={narrow:[/^ஞா/i,/^தி/i,/^செ/i,/^பு/i,/^வி/i,/^வெ/i,/^ச/i],any:[/^ஞா/i,/^தி/i,/^செ/i,/^பு/i,/^வி/i,/^வெ/i,/^ச/i]},q={narrow:/^(மு.ப|பி.ப|நள்|நண்|காலை|மதியம்|மாலை|இரவு)/i,any:/^(மு.ப|பி.ப|முற்பகல்|பிற்பகல்|நள்ளிரவு|நண்பகல்|காலை|மதியம்|மாலை|இரவு)/i},C={any:{am:/^மு/i,pm:/^பி/i,midnight:/^நள்/i,noon:/^நண்/i,morning:/காலை/i,afternoon:/மதியம்/i,evening:/மாலை/i,night:/இரவு/i}},_={ordinalNumber:s({matchPattern:z,parsePattern:N,valueCallback:t=>parseInt(t,10)}),era:d({matchPatterns:V,defaultMatchWidth:"wide",parsePatterns:X,defaultParseWidth:"any"}),quarter:d({matchPatterns:L,defaultMatchWidth:"wide",parsePatterns:$,defaultParseWidth:"any",valueCallback:t=>t+1}),month:d({matchPatterns:E,defaultMatchWidth:"wide",parsePatterns:S,defaultParseWidth:"any"}),day:d({matchPatterns:Y,defaultMatchWidth:"wide",parsePatterns:T,defaultParseWidth:"any"}),dayPeriod:d({matchPatterns:q,defaultMatchWidth:"any",parsePatterns:C,defaultParseWidth:"any"})},H={code:"ta",formatDistance:f,formatLong:P,formatRelative:y,localize:F,match:_,options:{weekStartsOn:1,firstWeekContainsDate:4}},R={...H,labels:{labelDayButton:(t,a,e,o)=>{let n=(o??new u(e)).format(t,"PPPP");return a.today&&(n=`இன்று, ${n}`),a.selected&&(n=`${n}, தேர்ந்தெடுக்கப்பட்டது`),n},labelMonthDropdown:"மாதத்தை தேர்வு செய்யவும்",labelNext:"அடுத்த மாதத்துக்கு செல்லவும்",labelPrevious:"முந்தைய மாதத்துக்கு செல்லவும்",labelWeekNumber:t=>`வாரம் ${t}`,labelYearDropdown:"ஆண்டை தேர்வு செய்யவும்",labelGrid:(t,a,e)=>(e??new u(a)).formatMonthYear(t),labelGridcell:(t,a,e,o)=>{let n=(o??new u(e)).format(t,"PPPP");return a?.today&&(n=`இன்று, ${n}`),n},labelNav:"வழிசெலுத்தல் பட்டை",labelWeekNumberHeader:"வார எண்",labelWeekday:(t,a,e)=>(e??new u(a)).format(t,"cccc")}};export{R as ta};
@@ -0,0 +1 @@
1
+ import{a5 as l,ab as r,aq as s,ar as m,aa as d}from"./index-Ccf8muta.js";const c={lessThanXSeconds:{one:"น้อยกว่า 1 วินาที",other:"น้อยกว่า {{count}} วินาที"},xSeconds:{one:"1 วินาที",other:"{{count}} วินาที"},halfAMinute:"ครึ่งนาที",lessThanXMinutes:{one:"น้อยกว่า 1 นาที",other:"น้อยกว่า {{count}} นาที"},xMinutes:{one:"1 นาที",other:"{{count}} นาที"},aboutXHours:{one:"ประมาณ 1 ชั่วโมง",other:"ประมาณ {{count}} ชั่วโมง"},xHours:{one:"1 ชั่วโมง",other:"{{count}} ชั่วโมง"},xDays:{one:"1 วัน",other:"{{count}} วัน"},aboutXWeeks:{one:"ประมาณ 1 สัปดาห์",other:"ประมาณ {{count}} สัปดาห์"},xWeeks:{one:"1 สัปดาห์",other:"{{count}} สัปดาห์"},aboutXMonths:{one:"ประมาณ 1 เดือน",other:"ประมาณ {{count}} เดือน"},xMonths:{one:"1 เดือน",other:"{{count}} เดือน"},aboutXYears:{one:"ประมาณ 1 ปี",other:"ประมาณ {{count}} ปี"},xYears:{one:"1 ปี",other:"{{count}} ปี"},overXYears:{one:"มากกว่า 1 ปี",other:"มากกว่า {{count}} ปี"},almostXYears:{one:"เกือบ 1 ปี",other:"เกือบ {{count}} ปี"}},u=(e,t,a)=>{let n;const o=c[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",String(t)),a?.addSuffix?a.comparison&&a.comparison>0?e==="halfAMinute"?"ใน"+n:"ใน "+n:n+"ที่ผ่านมา":n},h={full:"วันEEEEที่ do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"dd/MM/yyyy"},b={full:"H:mm:ss น. zzzz",long:"H:mm:ss น. z",medium:"H:mm:ss น.",short:"H:mm น."},f={full:"{{date}} 'เวลา' {{time}}",long:"{{date}} 'เวลา' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},P={date:l({formats:h,defaultWidth:"full"}),time:l({formats:b,defaultWidth:"medium"}),dateTime:l({formats:f,defaultWidth:"full"})},g={lastWeek:"eeee'ที่แล้วเวลา' p",yesterday:"'เมื่อวานนี้เวลา' p",today:"'วันนี้เวลา' p",tomorrow:"'พรุ่งนี้เวลา' p",nextWeek:"eeee 'เวลา' p",other:"P"},w=(e,t,a,n)=>g[e],y={narrow:["B","คศ"],abbreviated:["BC","ค.ศ."],wide:["ปีก่อนคริสตกาล","คริสต์ศักราช"]},p={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["ไตรมาสแรก","ไตรมาสที่สอง","ไตรมาสที่สาม","ไตรมาสที่สี่"]},v={narrow:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],short:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],abbreviated:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],wide:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์"]},M={narrow:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],abbreviated:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],wide:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"]},W={narrow:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"},abbreviated:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"},wide:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"}},D={narrow:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"},abbreviated:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"},wide:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"}},k=(e,t)=>String(e),x={ordinalNumber:k,era:r({values:y,defaultWidth:"wide"}),quarter:r({values:p,defaultWidth:"wide",argumentCallback:e=>e-1}),month:r({values:M,defaultWidth:"wide"}),day:r({values:v,defaultWidth:"wide"}),dayPeriod:r({values:W,defaultWidth:"wide",formattingValues:D,defaultFormattingWidth:"wide"})},F=/^\d+/i,z=/\d+/i,N={narrow:/^([bB]|[aA]|คศ)/i,abbreviated:/^([bB]\.?\s?[cC]\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?|ค\.?ศ\.?)/i,wide:/^(ก่อนคริสตกาล|คริสต์ศักราช|คริสตกาล)/i},V={any:[/^[bB]/i,/^(^[aA]|ค\.?ศ\.?|คริสตกาล|คริสต์ศักราช|)/i]},X={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^ไตรมาส(ที่)? ?[1234]/i},H={any:[/(1|แรก|หนึ่ง)/i,/(2|สอง)/i,/(3|สาม)/i,/(4|สี่)/i]},L={narrow:/^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?)/i,abbreviated:/^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?')/i,wide:/^(มกราคม|กุมภาพันธ์|มีนาคม|เมษายน|พฤษภาคม|มิถุนายน|กรกฎาคม|สิงหาคม|กันยายน|ตุลาคม|พฤศจิกายน|ธันวาคม)/i},B={wide:[/^มก/i,/^กุม/i,/^มี/i,/^เม/i,/^พฤษ/i,/^มิ/i,/^กรก/i,/^ส/i,/^กัน/i,/^ต/i,/^พฤศ/i,/^ธ/i],any:[/^ม\.?ค\.?/i,/^ก\.?พ\.?/i,/^มี\.?ค\.?/i,/^เม\.?ย\.?/i,/^พ\.?ค\.?/i,/^มิ\.?ย\.?/i,/^ก\.?ค\.?/i,/^ส\.?ค\.?/i,/^ก\.?ย\.?/i,/^ต\.?ค\.?/i,/^พ\.?ย\.?/i,/^ธ\.?ค\.?/i]},C={narrow:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,short:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,abbreviated:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,wide:/^(อาทิตย์|จันทร์|อังคาร|พุธ|พฤหัสบดี|ศุกร์|เสาร์)/i},E={wide:[/^อา/i,/^จั/i,/^อั/i,/^พุธ/i,/^พฤ/i,/^ศ/i,/^เส/i],any:[/^อา/i,/^จ/i,/^อ/i,/^พ(?!ฤ)/i,/^พฤ/i,/^ศ/i,/^ส/i]},Q={any:/^(ก่อนเที่ยง|หลังเที่ยง|เที่ยงคืน|เที่ยง|(ตอน.*?)?.*(เที่ยง|เช้า|บ่าย|เย็น|กลางคืน))/i},S={any:{am:/^ก่อนเที่ยง/i,pm:/^หลังเที่ยง/i,midnight:/^เที่ยงคืน/i,noon:/^เที่ยง/i,morning:/เช้า/i,afternoon:/บ่าย/i,evening:/เย็น/i,night:/กลางคืน/i}},Y={ordinalNumber:m({matchPattern:F,parsePattern:z,valueCallback:e=>parseInt(e,10)}),era:s({matchPatterns:N,defaultMatchWidth:"wide",parsePatterns:V,defaultParseWidth:"any"}),quarter:s({matchPatterns:X,defaultMatchWidth:"wide",parsePatterns:H,defaultParseWidth:"any",valueCallback:e=>e+1}),month:s({matchPatterns:L,defaultMatchWidth:"wide",parsePatterns:B,defaultParseWidth:"any"}),day:s({matchPatterns:C,defaultMatchWidth:"wide",parsePatterns:E,defaultParseWidth:"any"}),dayPeriod:s({matchPatterns:Q,defaultMatchWidth:"any",parsePatterns:S,defaultParseWidth:"any"})},q={code:"th",formatDistance:u,formatLong:P,formatRelative:w,localize:x,match:Y,options:{weekStartsOn:0,firstWeekContainsDate:1}},A={...q,labels:{labelDayButton:(e,t,a,n)=>{let i=(n??new d(a)).format(e,"PPPP");return t.today&&(i=`วันนี้, ${i}`),t.selected&&(i=`${i}, เลือกแล้ว`),i},labelMonthDropdown:"เลือกเดือน",labelNext:"ไปเดือนถัดไป",labelPrevious:"ไปเดือนก่อนหน้า",labelWeekNumber:e=>`สัปดาห์ ${e}`,labelYearDropdown:"เลือกปี",labelGrid:(e,t,a)=>(a??new d(t)).formatMonthYear(e),labelGridcell:(e,t,a,n)=>{let i=(n??new d(a)).format(e,"PPPP");return t?.today&&(i=`วันนี้, ${i}`),i},labelNav:"แถบนำทาง",labelWeekNumberHeader:"หมายเลขสัปดาห์",labelWeekday:(e,t,a)=>(a??new d(t)).format(e,"cccc")}};export{A as th};
@@ -1,4 +1,4 @@
1
- import{_ as s,c as xt,l as E,ab as kt,ac as vt,ad as _t,ae as bt,B as wt,af as St,y as Et}from"./mermaid.core-DL97wpul.js";import{s as j}from"./index-CHO8NA6v.js";import{d as nt}from"./arc-DE9sx_Jn.js";import"./mermaid-VLURNSYL-DPc-hyxN.js";import"./index-e-4cSkrt.js";import"./maximize-2-Bl11RTvy.js";var Q=(function(){var n=s(function(x,r,a,c){for(a=a||{},c=x.length;c--;a[x[c]]=r);return a},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],l=[1,10],i=[1,11],d=[1,12],h=[1,13],f=[1,16],m=[1,17],p={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline: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,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",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",20:"period",21:"event"},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,1],[9,1],[18,1],[19,1]],performAction:s(function(r,a,c,u,y,o,w){var v=o.length-1;switch(y){case 1:return o[v-1];case 2:this.$=[];break;case 3:o[v-1].push(o[v]),this.$=o[v-1];break;case 4:case 5:this.$=o[v];break;case 6:case 7:this.$=[];break;case 8:u.getCommonDb().setDiagramTitle(o[v].substr(6)),this.$=o[v].substr(6);break;case 9:this.$=o[v].trim(),u.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[v].trim(),u.getCommonDb().setAccDescription(this.$);break;case 12:u.addSection(o[v].substr(8)),this.$=o[v].substr(8);break;case 15:u.addTask(o[v],0,""),this.$=o[v];break;case 16:u.addEvent(o[v].substr(2)),this.$=o[v];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:l,14:i,16:d,17:h,18:14,19:15,20:f,21:m},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:l,14:i,16:d,17:h,18:14,19:15,20:f,21:m},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:s(function(r,a){if(a.recoverable)this.trace(r);else{var c=new Error(r);throw c.hash=a,c}},"parseError"),parse:s(function(r){var a=this,c=[0],u=[],y=[null],o=[],w=this.table,v="",N=0,P=0,V=2,U=1,H=o.slice.call(arguments,1),g=Object.create(this.lexer),b={yy:{}};for(var L in this.yy)Object.prototype.hasOwnProperty.call(this.yy,L)&&(b.yy[L]=this.yy[L]);g.setInput(r,b.yy),b.yy.lexer=g,b.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var M=g.yylloc;o.push(M);var W=g.options&&g.options.ranges;typeof b.yy.parseError=="function"?this.parseError=b.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Z(T){c.length=c.length-2*T,y.length=y.length-T,o.length=o.length-T}s(Z,"popStack");function tt(){var T;return T=u.pop()||g.lex()||U,typeof T!="number"&&(T instanceof Array&&(u=T,T=u.pop()),T=a.symbols_[T]||T),T}s(tt,"lex");for(var S,A,I,J,R={},B,$,et,O;;){if(A=c[c.length-1],this.defaultActions[A]?I=this.defaultActions[A]:((S===null||typeof S>"u")&&(S=tt()),I=w[A]&&w[A][S]),typeof I>"u"||!I.length||!I[0]){var K="";O=[];for(B in w[A])this.terminals_[B]&&B>V&&O.push("'"+this.terminals_[B]+"'");g.showPosition?K="Parse error on line "+(N+1)+`:
1
+ import{_ as s,c as xt,l as E,ab as kt,ac as vt,ad as _t,ae as bt,B as wt,af as St,y as Et}from"./mermaid.core-Bm9ZP7gJ.js";import{a as j}from"./index-Ccf8muta.js";import{d as nt}from"./arc-CtbTPoNE.js";import"./mermaid-VLURNSYL-CFdBlgNU.js";import"./index-e-4cSkrt.js";import"./maximize-2-B0LqzzJD.js";var Q=(function(){var n=s(function(x,r,a,c){for(a=a||{},c=x.length;c--;a[x[c]]=r);return a},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],l=[1,10],i=[1,11],d=[1,12],h=[1,13],f=[1,16],m=[1,17],p={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline: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,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",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",20:"period",21:"event"},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,1],[9,1],[18,1],[19,1]],performAction:s(function(r,a,c,u,y,o,w){var v=o.length-1;switch(y){case 1:return o[v-1];case 2:this.$=[];break;case 3:o[v-1].push(o[v]),this.$=o[v-1];break;case 4:case 5:this.$=o[v];break;case 6:case 7:this.$=[];break;case 8:u.getCommonDb().setDiagramTitle(o[v].substr(6)),this.$=o[v].substr(6);break;case 9:this.$=o[v].trim(),u.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[v].trim(),u.getCommonDb().setAccDescription(this.$);break;case 12:u.addSection(o[v].substr(8)),this.$=o[v].substr(8);break;case 15:u.addTask(o[v],0,""),this.$=o[v];break;case 16:u.addEvent(o[v].substr(2)),this.$=o[v];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:l,14:i,16:d,17:h,18:14,19:15,20:f,21:m},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:l,14:i,16:d,17:h,18:14,19:15,20:f,21:m},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:s(function(r,a){if(a.recoverable)this.trace(r);else{var c=new Error(r);throw c.hash=a,c}},"parseError"),parse:s(function(r){var a=this,c=[0],u=[],y=[null],o=[],w=this.table,v="",N=0,P=0,V=2,U=1,H=o.slice.call(arguments,1),g=Object.create(this.lexer),b={yy:{}};for(var L in this.yy)Object.prototype.hasOwnProperty.call(this.yy,L)&&(b.yy[L]=this.yy[L]);g.setInput(r,b.yy),b.yy.lexer=g,b.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var M=g.yylloc;o.push(M);var W=g.options&&g.options.ranges;typeof b.yy.parseError=="function"?this.parseError=b.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Z(T){c.length=c.length-2*T,y.length=y.length-T,o.length=o.length-T}s(Z,"popStack");function tt(){var T;return T=u.pop()||g.lex()||U,typeof T!="number"&&(T instanceof Array&&(u=T,T=u.pop()),T=a.symbols_[T]||T),T}s(tt,"lex");for(var S,A,I,J,R={},B,$,et,O;;){if(A=c[c.length-1],this.defaultActions[A]?I=this.defaultActions[A]:((S===null||typeof S>"u")&&(S=tt()),I=w[A]&&w[A][S]),typeof I>"u"||!I.length||!I[0]){var K="";O=[];for(B in w[A])this.terminals_[B]&&B>V&&O.push("'"+this.terminals_[B]+"'");g.showPosition?K="Parse error on line "+(N+1)+`:
2
2
  `+g.showPosition()+`
3
3
  Expecting `+O.join(", ")+", got '"+(this.terminals_[S]||S)+"'":K="Parse error on line "+(N+1)+": Unexpected "+(S==U?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(K,{text:g.match,token:this.terminals_[S]||S,line:g.yylineno,loc:M,expected:O})}if(I[0]instanceof Array&&I.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+S);switch(I[0]){case 1:c.push(S),y.push(g.yytext),o.push(g.yylloc),c.push(I[1]),S=null,P=g.yyleng,v=g.yytext,N=g.yylineno,M=g.yylloc;break;case 2:if($=this.productions_[I[1]][1],R.$=y[y.length-$],R._$={first_line:o[o.length-($||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-($||1)].first_column,last_column:o[o.length-1].last_column},W&&(R._$.range=[o[o.length-($||1)].range[0],o[o.length-1].range[1]]),J=this.performAction.apply(R,[v,P,N,b.yy,I[1],y,o].concat(H)),typeof J<"u")return J;$&&(c=c.slice(0,-1*$*2),y=y.slice(0,-1*$),o=o.slice(0,-1*$)),c.push(this.productions_[I[1]][0]),y.push(R.$),o.push(R._$),et=w[c[c.length-2]][c[c.length-1]],c.push(et);break;case 3:return!0}}return!0},"parse")},k=(function(){var x={EOF:1,parseError:s(function(a,c){if(this.yy.parser)this.yy.parser.parseError(a,c);else throw new Error(a)},"parseError"),setInput:s(function(r,a){return this.yy=a||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var a=r.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:s(function(r){var a=r.length,c=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(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:s(function(r){this.unput(this.match.slice(r))},"less"),pastInput:s(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var r=this.pastInput(),a=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
@@ -0,0 +1 @@
1
+ import{a5 as m,ab as o,aq as s,ar as d,aa as l}from"./index-Ccf8muta.js";const c={lessThanXSeconds:{one:"bir saniyeden az",other:"{{count}} saniyeden az"},xSeconds:{one:"1 saniye",other:"{{count}} saniye"},halfAMinute:"yarım dakika",lessThanXMinutes:{one:"bir dakikadan az",other:"{{count}} dakikadan az"},xMinutes:{one:"1 dakika",other:"{{count}} dakika"},aboutXHours:{one:"yaklaşık 1 saat",other:"yaklaşık {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 gün",other:"{{count}} gün"},aboutXWeeks:{one:"yaklaşık 1 hafta",other:"yaklaşık {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"yaklaşık 1 ay",other:"yaklaşık {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"yaklaşık 1 yıl",other:"yaklaşık {{count}} yıl"},xYears:{one:"1 yıl",other:"{{count}} yıl"},overXYears:{one:"1 yıldan fazla",other:"{{count}} yıldan fazla"},almostXYears:{one:"neredeyse 1 yıl",other:"neredeyse {{count}} yıl"}},u=(a,e,t)=>{let n;const r=c[a];return typeof r=="string"?n=r:e===1?n=r.one:n=r.other.replace("{{count}}",e.toString()),t?.addSuffix?t.comparison&&t.comparison>0?n+" sonra":n+" önce":n},y={full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},h={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},b={full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},k={date:m({formats:y,defaultWidth:"full"}),time:m({formats:h,defaultWidth:"full"}),dateTime:m({formats:b,defaultWidth:"full"})},f={lastWeek:"'geçen hafta' eeee 'saat' p",yesterday:"'dün saat' p",today:"'bugün saat' p",tomorrow:"'yarın saat' p",nextWeek:"eeee 'saat' p",other:"P"},g=(a,e,t,n)=>f[a],P={narrow:["MÖ","MS"],abbreviated:["MÖ","MS"],wide:["Milattan Önce","Milattan Sonra"]},p={narrow:["1","2","3","4"],abbreviated:["1Ç","2Ç","3Ç","4Ç"],wide:["İlk çeyrek","İkinci Çeyrek","Üçüncü çeyrek","Son çeyrek"]},w={narrow:["O","Ş","M","N","M","H","T","A","E","E","K","A"],abbreviated:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],wide:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"]},M={narrow:["P","P","S","Ç","P","C","C"],short:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],abbreviated:["Paz","Pzt","Sal","Çar","Per","Cum","Cts"],wide:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},z={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"},wide:{am:"Ö.Ö.",pm:"Ö.S.",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"}},v={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"},wide:{am:"ö.ö.",pm:"ö.s.",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"}},W=(a,e)=>Number(a)+".",S={ordinalNumber:W,era:o({values:P,defaultWidth:"wide"}),quarter:o({values:p,defaultWidth:"wide",argumentCallback:a=>Number(a)-1}),month:o({values:w,defaultWidth:"wide"}),day:o({values:M,defaultWidth:"wide"}),dayPeriod:o({values:z,defaultWidth:"wide",formattingValues:v,defaultFormattingWidth:"wide"})},H=/^(\d+)(\.)?/i,D=/\d+/i,N={narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},C={any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},E={narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},x={any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1ç/i,/2ç/i,/3ç/i,/4ç/i],wide:[/^(i|İ)lk çeyrek/i,/(i|İ)kinci çeyrek/i,/üçüncü çeyrek/i,/son çeyrek/i]},F={narrow:/^[oşmnhtaek]/i,abbreviated:/^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,wide:/^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i},A={narrow:[/^o/i,/^ş/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^ş/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^ağ/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},V={narrow:/^[psçc]/i,short:/^(pz|pt|sa|ça|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|çar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i},X={narrow:[/^p/i,/^p/i,/^s/i,/^ç/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^ça/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^salı/i,/^çarşamba/i,/^perşembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},L={narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},T={any:{am:/^ö\.?ö\.?/i,pm:/^ö\.?s\.?/i,midnight:/^(gy|gece yarısı)/i,noon:/^öğ/i,morning:/^sa/i,afternoon:/^öğleden sonra/i,evening:/^ak/i,night:/^ge/i}},Y={ordinalNumber:d({matchPattern:H,parsePattern:D,valueCallback:function(a){return parseInt(a,10)}}),era:s({matchPatterns:N,defaultMatchWidth:"wide",parsePatterns:C,defaultParseWidth:"any"}),quarter:s({matchPatterns:E,defaultMatchWidth:"wide",parsePatterns:x,defaultParseWidth:"any",valueCallback:a=>a+1}),month:s({matchPatterns:F,defaultMatchWidth:"wide",parsePatterns:A,defaultParseWidth:"any"}),day:s({matchPatterns:V,defaultMatchWidth:"wide",parsePatterns:X,defaultParseWidth:"any"}),dayPeriod:s({matchPatterns:L,defaultMatchWidth:"any",parsePatterns:T,defaultParseWidth:"any"})},O={code:"tr",formatDistance:u,formatLong:k,formatRelative:g,localize:S,match:Y,options:{weekStartsOn:1,firstWeekContainsDate:1}},q={...O,labels:{labelDayButton:(a,e,t,n)=>{let i=(n??new l(t)).format(a,"PPPP");return e.today&&(i=`Bugün, ${i}`),e.selected&&(i=`${i}, seçili`),i},labelMonthDropdown:"Ayı seçin",labelNext:"Sonraki aya git",labelPrevious:"Önceki aya git",labelWeekNumber:a=>`Hafta ${a}`,labelYearDropdown:"Yılı seçin",labelGrid:(a,e,t)=>(t??new l(e)).formatMonthYear(a),labelGridcell:(a,e,t,n)=>{let i=(n??new l(t)).format(a,"PPPP");return e?.today&&(i=`Bugün, ${i}`),i},labelNav:"Gezinme çubuğu",labelWeekNumberHeader:"Hafta numarası",labelWeekday:(a,e,t)=>(t??new l(e)).format(a,"cccc")}};export{q as tr};
@@ -1,4 +1,4 @@
1
- import{b as vt,JC as Mp,_ as Pn}from"./index-CHO8NA6v.js";import{bn as Fp,bo as Gp,aO as Ef,b7 as Up,aS as jp,aP as Be,aq as zp,ar as jl,aZ as Bp,b0 as Af,b1 as Sf,a_ as qp,bc as zl,at as Jn,au as oe,aQ as Bl,aK as Wp}from"./mermaid.core-DL97wpul.js";import{k as wr,j as fl,g as Wr,S as Vp,w as Kp,x as Hp,c as kf,v as Oe,y as Cf,l as Yp,z as Xp,A as Jp,B as Qp,C as Zp,a as Nf,d as U,i as nn,r as Ze,f as mt,D as De}from"./_baseUniq-CVvDgwC4.js";import{j as hl,m as x,d as em,f as Et,g as br,h as z,i as pl,l as qn,e as tm}from"./_basePickBy-BuyVDPfJ.js";import{c as We}from"./clone-eq-IW2p2.js";var nm=Object.prototype,rm=nm.hasOwnProperty,pt=Fp(function(t,e){if(Gp(e)||Ef(e)){Up(e,wr(e),t);return}for(var n in e)rm.call(e,n)&&jp(t,n,e[n])});function wf(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(i);++r<i;)s[r]=t[r+e];return s}function qi(t){for(var e=-1,n=t==null?0:t.length,r=0,i=[];++e<n;){var s=t[e];s&&(i[r++]=s)}return i}function im(t,e,n,r){for(var i=-1,s=t==null?0:t.length;++i<s;){var a=t[i];e(r,a,n(a),t)}return r}function sm(t,e,n,r){return fl(t,function(i,s,a){e(r,i,n(i),a)}),r}function am(t,e){return function(n,r){var i=Be(n)?im:sm,s=e?e():{};return i(n,t,Wr(r),s)}}var om=200;function cm(t,e,n,r){var i=-1,s=Kp,a=!0,o=t.length,c=[],l=e.length;if(!o)return c;e.length>=om&&(s=Hp,a=!1,e=new Vp(e));e:for(;++i<o;){var d=t[i],h=d;if(d=d!==0?d:0,a&&h===h){for(var p=l;p--;)if(e[p]===h)continue e;c.push(d)}else s(e,h,r)||c.push(d)}return c}var Aa=zp(function(t,e){return jl(t)?cm(t,kf(e,1,jl,!0)):[]});function Ue(t,e,n){var r=t==null?0:t.length;return r?(e=e===void 0?1:hl(e),wf(t,e<0?0:e,r)):[]}function bi(t,e,n){var r=t==null?0:t.length;return r?(e=e===void 0?1:hl(e),e=r-e,wf(t,0,e<0?0:e)):[]}function lm(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function um(t,e){var n=!0;return fl(t,function(r,i,s){return n=!!e(r,i,s),n}),n}function _t(t,e,n){var r=Be(t)?lm:um;return r(t,Wr(e))}function $t(t){return t&&t.length?t[0]:void 0}function ht(t,e){return kf(x(t,e))}var dm=Object.prototype,fm=dm.hasOwnProperty,hm=am(function(t,e,n){fm.call(t,n)?t[n].push(e):Bp(t,n,[e])}),pm="[object String]";function at(t){return typeof t=="string"||!Be(t)&&Af(t)&&Sf(t)==pm}var mm=Math.max;function nt(t,e,n,r){t=Ef(t)?t:Oe(t),n=n?hl(n):0;var i=t.length;return n<0&&(n=mm(i+n,0)),at(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Cf(t,e,n)>-1}function ql(t,e,n){var r=t==null?0:t.length;if(!r)return-1;var i=0;return Cf(t,e,i)}var gm="[object RegExp]";function ym(t){return Af(t)&&Sf(t)==gm}var Wl=zl&&zl.isRegExp,rn=Wl?qp(Wl):ym,Tm="Expected a function";function Rm(t){if(typeof t!="function")throw new TypeError(Tm);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Pt(t,e){if(t==null)return{};var n=Yp(Xp(t),function(r){return[r]});return e=Wr(e),em(t,n,function(r,i){return e(r,i[0])})}function Sa(t,e){var n=Be(t)?Jp:Qp;return n(t,Rm(Wr(e)))}function vm(t,e){var n;return fl(t,function(r,i,s){return n=e(r,i,s),!n}),!!n}function bf(t,e,n){var r=Be(t)?Zp:vm;return r(t,Wr(e))}function ml(t){return t&&t.length?Nf(t):[]}function Em(t,e){return t&&t.length?Nf(t,Wr(e)):[]}function He(t){return typeof t=="object"&&t!==null&&typeof t.$type=="string"}function wt(t){return typeof t=="object"&&t!==null&&typeof t.$refText=="string"&&"ref"in t}function hn(t){return typeof t=="object"&&t!==null&&typeof t.$refText=="string"&&"items"in t}function Am(t){return typeof t=="object"&&t!==null&&typeof t.name=="string"&&typeof t.type=="string"&&typeof t.path=="string"}function oi(t){return typeof t=="object"&&t!==null&&typeof t.info=="object"&&typeof t.message=="string"}class _f{constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){const n=this.types[e.container.$type];if(!n)throw new Error(`Type ${e.container.$type||"undefined"} not found.`);const r=n.properties[e.property]?.referenceType;if(!r)throw new Error(`Property ${e.property||"undefined"} of type ${e.container.$type} is not a reference.`);return r}getTypeMetaData(e){const n=this.types[e];return n||{name:e,properties:{},superTypes:[]}}isInstance(e,n){return He(e)&&this.isSubtype(e.$type,n)}isSubtype(e,n){if(e===n)return!0;let r=this.subtypes[e];r||(r=this.subtypes[e]={});const i=r[n];if(i!==void 0)return i;{const s=this.types[e],a=s?s.superTypes.some(o=>this.isSubtype(o,n)):!1;return r[n]=a,a}}getAllSubTypes(e){const n=this.allSubtypes[e];if(n)return n;{const r=this.getAllTypes(),i=[];for(const s of r)this.isSubtype(s,e)&&i.push(s);return this.allSubtypes[e]=i,i}}}function _i(t){return typeof t=="object"&&t!==null&&Array.isArray(t.content)}function If(t){return typeof t=="object"&&t!==null&&typeof t.tokenType=="object"}function $f(t){return _i(t)&&typeof t.fullText=="string"}class je{constructor(e,n){this.startFn=e,this.nextFn=n}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){const e=this.iterator();let n=0,r=e.next();for(;!r.done;)n++,r=e.next();return n}toArray(){const e=[],n=this.iterator();let r;do r=n.next(),r.value!==void 0&&e.push(r.value);while(!r.done);return e}toSet(){return new Set(this)}toMap(e,n){const r=this.map(i=>[e?e(i):i,n?n(i):i]);return new Map(r)}toString(){return this.join()}concat(e){return new je(()=>({first:this.startFn(),firstDone:!1,iterator:e[Symbol.iterator]()}),n=>{let r;if(!n.firstDone){do if(r=this.nextFn(n.first),!r.done)return r;while(!r.done);n.firstDone=!0}do if(r=n.iterator.next(),!r.done)return r;while(!r.done);return dt})}join(e=","){const n=this.iterator();let r="",i,s=!1;do i=n.next(),i.done||(s&&(r+=e),r+=Sm(i.value)),s=!0;while(!i.done);return r}indexOf(e,n=0){const r=this.iterator();let i=0,s=r.next();for(;!s.done;){if(i>=n&&s.value===e)return i;s=r.next(),i++}return-1}every(e){const n=this.iterator();let r=n.next();for(;!r.done;){if(!e(r.value))return!1;r=n.next()}return!0}some(e){const n=this.iterator();let r=n.next();for(;!r.done;){if(e(r.value))return!0;r=n.next()}return!1}forEach(e){const n=this.iterator();let r=0,i=n.next();for(;!i.done;)e(i.value,r),i=n.next(),r++}map(e){return new je(this.startFn,n=>{const{done:r,value:i}=this.nextFn(n);return r?dt:{done:!1,value:e(i)}})}filter(e){return new je(this.startFn,n=>{let r;do if(r=this.nextFn(n),!r.done&&e(r.value))return r;while(!r.done);return dt})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,n){const r=this.iterator();let i=n,s=r.next();for(;!s.done;)i===void 0?i=s.value:i=e(i,s.value),s=r.next();return i}reduceRight(e,n){return this.recursiveReduce(this.iterator(),e,n)}recursiveReduce(e,n,r){const i=e.next();if(i.done)return r;const s=this.recursiveReduce(e,n,r);return s===void 0?i.value:n(s,i.value)}find(e){const n=this.iterator();let r=n.next();for(;!r.done;){if(e(r.value))return r.value;r=n.next()}}findIndex(e){const n=this.iterator();let r=0,i=n.next();for(;!i.done;){if(e(i.value))return r;i=n.next(),r++}return-1}includes(e){const n=this.iterator();let r=n.next();for(;!r.done;){if(r.value===e)return!0;r=n.next()}return!1}flatMap(e){return new je(()=>({this:this.startFn()}),n=>{do{if(n.iterator){const s=n.iterator.next();if(s.done)n.iterator=void 0;else return s}const{done:r,value:i}=this.nextFn(n.this);if(!r){const s=e(i);if(Ws(s))n.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}}while(n.iterator);return dt})}flat(e){if(e===void 0&&(e=1),e<=0)return this;const n=e>1?this.flat(e-1):this;return new je(()=>({this:n.startFn()}),r=>{do{if(r.iterator){const a=r.iterator.next();if(a.done)r.iterator=void 0;else return a}const{done:i,value:s}=n.nextFn(r.this);if(!i)if(Ws(s))r.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}while(r.iterator);return dt})}head(){const n=this.iterator().next();if(!n.done)return n.value}tail(e=1){return new je(()=>{const n=this.startFn();for(let r=0;r<e;r++)if(this.nextFn(n).done)return n;return n},this.nextFn)}limit(e){return new je(()=>({size:0,state:this.startFn()}),n=>(n.size++,n.size>e?dt:this.nextFn(n.state)))}distinct(e){return new je(()=>({set:new Set,internalState:this.startFn()}),n=>{let r;do if(r=this.nextFn(n.internalState),!r.done){const i=e?e(r.value):r.value;if(!n.set.has(i))return n.set.add(i),r}while(!r.done);return dt})}exclude(e,n){const r=new Set;for(const i of e){const s=n?n(i):i;r.add(s)}return this.filter(i=>{const s=n?n(i):i;return!r.has(s)})}}function Sm(t){return typeof t=="string"?t:typeof t>"u"?"undefined":typeof t.toString=="function"?t.toString():Object.prototype.toString.call(t)}function Ws(t){return!!t&&typeof t[Symbol.iterator]=="function"}const Pf=new je(()=>{},()=>dt),dt=Object.freeze({done:!0,value:void 0});function he(...t){if(t.length===1){const e=t[0];if(e instanceof je)return e;if(Ws(e))return new je(()=>e[Symbol.iterator](),n=>n.next());if(typeof e.length=="number")return new je(()=>({index:0}),n=>n.index<e.length?{done:!1,value:e[n.index++]}:dt)}return t.length>1?new je(()=>({collIndex:0,arrIndex:0}),e=>{do{if(e.iterator){const n=e.iterator.next();if(!n.done)return n;e.iterator=void 0}if(e.array){if(e.arrIndex<e.array.length)return{done:!1,value:e.array[e.arrIndex++]};e.array=void 0,e.arrIndex=0}if(e.collIndex<t.length){const n=t[e.collIndex++];Ws(n)?e.iterator=n[Symbol.iterator]():n&&typeof n.length=="number"&&(e.array=n)}}while(e.iterator||e.array||e.collIndex<t.length);return dt}):Pf}class gl extends je{constructor(e,n,r){super(()=>({iterators:r?.includeRoot?[[e][Symbol.iterator]()]:[n(e)[Symbol.iterator]()],pruned:!1}),i=>{for(i.pruned&&(i.iterators.pop(),i.pruned=!1);i.iterators.length>0;){const a=i.iterators[i.iterators.length-1].next();if(a.done)i.iterators.pop();else return i.iterators.push(n(a.value)[Symbol.iterator]()),a}return dt})}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),prune:()=>{e.state.pruned=!0},[Symbol.iterator]:()=>e};return e}}var vo;(function(t){function e(s){return s.reduce((a,o)=>a+o,0)}t.sum=e;function n(s){return s.reduce((a,o)=>a*o,0)}t.product=n;function r(s){return s.reduce((a,o)=>Math.min(a,o))}t.min=r;function i(s){return s.reduce((a,o)=>Math.max(a,o))}t.max=i})(vo||(vo={}));function Eo(t,e={}){for(const[n,r]of Object.entries(t))n.startsWith("$")||(Array.isArray(r)?r.forEach((i,s)=>{He(i)&&(i.$container=t,i.$containerProperty=n,i.$containerIndex=s,e.deep&&Eo(i,e))}):He(r)&&(r.$container=t,r.$containerProperty=n,e.deep&&Eo(r,e)))}function ka(t,e){let n=t;for(;n;){if(e(n))return n;n=n.$container}}function Qt(t){const n=Is(t).$document;if(!n)throw new Error("AST node has no document.");return n}function Is(t){for(;t.$container;)t=t.$container;return t}function Vl(t){return wt(t)?t.ref?[t.ref]:[]:hn(t)?t.items.map(e=>e.ref):[]}function yl(t,e){if(!t)throw new Error("Node must be an AstNode.");const n=e?.range;return new je(()=>({keys:Object.keys(t),keyIndex:0,arrayIndex:0}),r=>{for(;r.keyIndex<r.keys.length;){const i=r.keys[r.keyIndex];if(!i.startsWith("$")){const s=t[i];if(He(s)){if(r.keyIndex++,Kl(s,n))return{done:!1,value:s}}else if(Array.isArray(s)){for(;r.arrayIndex<s.length;){const a=r.arrayIndex++,o=s[a];if(He(o)&&Kl(o,n))return{done:!1,value:o}}r.arrayIndex=0}}r.keyIndex++}return dt})}function Wi(t,e){if(!t)throw new Error("Root node must be an AstNode.");return new gl(t,n=>yl(n,e))}function Zt(t,e){if(!t)throw new Error("Root node must be an AstNode.");return new gl(t,n=>yl(n,e),{includeRoot:!0})}function Kl(t,e){if(!e)return!0;const n=t.$cstNode?.range;return n?Vm(n,e):!1}function Vs(t){return new je(()=>({keys:Object.keys(t),keyIndex:0,arrayIndex:0}),e=>{for(;e.keyIndex<e.keys.length;){const n=e.keys[e.keyIndex];if(!n.startsWith("$")){const r=t[n];if(wt(r)||hn(r))return e.keyIndex++,{done:!1,value:{reference:r,container:t,property:n}};if(Array.isArray(r)){for(;e.arrayIndex<r.length;){const i=e.arrayIndex++,s=r[i];if(wt(s)||hn(r))return{done:!1,value:{reference:s,container:t,property:n,index:i}}}e.arrayIndex=0}}e.keyIndex++}return dt})}function km(t,e){const n=t.getTypeMetaData(e.$type),r=e;for(const i of Object.values(n.properties))i.defaultValue!==void 0&&r[i.name]===void 0&&(r[i.name]=Lf(i.defaultValue))}function Lf(t){return Array.isArray(t)?[...t.map(Lf)]:t}const ut={$type:"AbstractElement",cardinality:"cardinality"};function Cm(t){return Z.isInstance(t,ut.$type)}const $s={$type:"AbstractParserRule"};function Vi(t){return Z.isInstance(t,$s.$type)}const Ts={$type:"AbstractRule"},Ct={$type:"AbstractType"},xn={$type:"Action",cardinality:"cardinality",feature:"feature",inferredType:"inferredType",operator:"operator",type:"type"};function Ca(t){return Z.isInstance(t,xn.$type)}const Ps={$type:"Alternatives",cardinality:"cardinality",elements:"elements"};function Of(t){return Z.isInstance(t,Ps.$type)}const Hl={$type:"ArrayLiteral",elements:"elements"},Yl={$type:"ArrayType",elementType:"elementType"},Dn={$type:"Assignment",cardinality:"cardinality",feature:"feature",operator:"operator",predicate:"predicate",terminal:"terminal"};function Wn(t){return Z.isInstance(t,Dn.$type)}const Ao={$type:"BooleanLiteral",true:"true"};function Nm(t){return Z.isInstance(t,Ao.$type)}const Mn={$type:"CharacterRange",cardinality:"cardinality",left:"left",lookahead:"lookahead",parenthesized:"parenthesized",right:"right"};function wm(t){return Z.isInstance(t,Mn.$type)}const ir={$type:"Condition"},Ls={$type:"Conjunction",left:"left",right:"right"};function bm(t){return Z.isInstance(t,Ls.$type)}const Fn={$type:"CrossReference",cardinality:"cardinality",deprecatedSyntax:"deprecatedSyntax",isMulti:"isMulti",terminal:"terminal",type:"type"};function Na(t){return Z.isInstance(t,Fn.$type)}const Os={$type:"Disjunction",left:"left",right:"right"};function _m(t){return Z.isInstance(t,Os.$type)}const So={$type:"EndOfFile",cardinality:"cardinality"};function Im(t){return Z.isInstance(t,So.$type)}const Ln={$type:"Grammar",imports:"imports",interfaces:"interfaces",isDeclared:"isDeclared",name:"name",rules:"rules",types:"types"},Xl={$type:"GrammarImport",path:"path"},ur={$type:"Group",cardinality:"cardinality",elements:"elements",guardCondition:"guardCondition",predicate:"predicate"};function Tl(t){return Z.isInstance(t,ur.$type)}const ko={$type:"InferredType",name:"name"};function xf(t){return Z.isInstance(t,ko.$type)}const Vt={$type:"InfixRule",call:"call",dataType:"dataType",inferredType:"inferredType",name:"name",operators:"operators",parameters:"parameters",returnType:"returnType"};function Ks(t){return Z.isInstance(t,Vt.$type)}const Qa={$type:"InfixRuleOperatorList",associativity:"associativity",operators:"operators"},Jl={$type:"InfixRuleOperators",precedences:"precedences"},gi={$type:"Interface",attributes:"attributes",name:"name",superTypes:"superTypes"};function $m(t){return Z.isInstance(t,gi.$type)}const yi={$type:"Keyword",cardinality:"cardinality",predicate:"predicate",value:"value"};function Vn(t){return Z.isInstance(t,yi.$type)}const Rs={$type:"NamedArgument",calledByName:"calledByName",parameter:"parameter",value:"value"},dr={$type:"NegatedToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function Pm(t){return Z.isInstance(t,dr.$type)}const Co={$type:"Negation",value:"value"};function Lm(t){return Z.isInstance(t,Co.$type)}const Ql={$type:"NumberLiteral",value:"value"},vs={$type:"Parameter",name:"name"},No={$type:"ParameterReference",parameter:"parameter"};function Om(t){return Z.isInstance(t,No.$type)}const Dt={$type:"ParserRule",dataType:"dataType",definition:"definition",entry:"entry",fragment:"fragment",inferredType:"inferredType",name:"name",parameters:"parameters",returnType:"returnType"};function on(t){return Z.isInstance(t,Dt.$type)}const Za={$type:"ReferenceType",isMulti:"isMulti",referenceType:"referenceType"},fr={$type:"RegexToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",regex:"regex"};function xm(t){return Z.isInstance(t,fr.$type)}const wo={$type:"ReturnType",name:"name"};function Dm(t){return Z.isInstance(t,wo.$type)}const hr={$type:"RuleCall",arguments:"arguments",cardinality:"cardinality",predicate:"predicate",rule:"rule"};function Kn(t){return Z.isInstance(t,hr.$type)}const Ti={$type:"SimpleType",primitiveType:"primitiveType",stringType:"stringType",typeRef:"typeRef"};function Mm(t){return Z.isInstance(t,Ti.$type)}const Zl={$type:"StringLiteral",value:"value"},pr={$type:"TerminalAlternatives",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function Fm(t){return Z.isInstance(t,pr.$type)}const Tt={$type:"TerminalElement",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"},mr={$type:"TerminalGroup",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function Gm(t){return Z.isInstance(t,mr.$type)}const fn={$type:"TerminalRule",definition:"definition",fragment:"fragment",hidden:"hidden",name:"name",type:"type"};function cn(t){return Z.isInstance(t,fn.$type)}const gr={$type:"TerminalRuleCall",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",rule:"rule"};function Um(t){return Z.isInstance(t,gr.$type)}const xs={$type:"Type",name:"name",type:"type"};function jm(t){return Z.isInstance(t,xs.$type)}const ci={$type:"TypeAttribute",defaultValue:"defaultValue",isOptional:"isOptional",name:"name",type:"type"},li={$type:"TypeDefinition"},eu={$type:"UnionType",types:"types"},Ds={$type:"UnorderedGroup",cardinality:"cardinality",elements:"elements"};function Df(t){return Z.isInstance(t,Ds.$type)}const yr={$type:"UntilToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function zm(t){return Z.isInstance(t,yr.$type)}const ui={$type:"ValueLiteral"},Ri={$type:"Wildcard",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function Bm(t){return Z.isInstance(t,Ri.$type)}class Mf extends _f{constructor(){super(...arguments),this.types={AbstractElement:{name:ut.$type,properties:{cardinality:{name:ut.cardinality}},superTypes:[]},AbstractParserRule:{name:$s.$type,properties:{},superTypes:[Ts.$type,Ct.$type]},AbstractRule:{name:Ts.$type,properties:{},superTypes:[]},AbstractType:{name:Ct.$type,properties:{},superTypes:[]},Action:{name:xn.$type,properties:{cardinality:{name:xn.cardinality},feature:{name:xn.feature},inferredType:{name:xn.inferredType},operator:{name:xn.operator},type:{name:xn.type,referenceType:Ct.$type}},superTypes:[ut.$type]},Alternatives:{name:Ps.$type,properties:{cardinality:{name:Ps.cardinality},elements:{name:Ps.elements,defaultValue:[]}},superTypes:[ut.$type]},ArrayLiteral:{name:Hl.$type,properties:{elements:{name:Hl.elements,defaultValue:[]}},superTypes:[ui.$type]},ArrayType:{name:Yl.$type,properties:{elementType:{name:Yl.elementType}},superTypes:[li.$type]},Assignment:{name:Dn.$type,properties:{cardinality:{name:Dn.cardinality},feature:{name:Dn.feature},operator:{name:Dn.operator},predicate:{name:Dn.predicate},terminal:{name:Dn.terminal}},superTypes:[ut.$type]},BooleanLiteral:{name:Ao.$type,properties:{true:{name:Ao.true,defaultValue:!1}},superTypes:[ir.$type,ui.$type]},CharacterRange:{name:Mn.$type,properties:{cardinality:{name:Mn.cardinality},left:{name:Mn.left},lookahead:{name:Mn.lookahead},parenthesized:{name:Mn.parenthesized,defaultValue:!1},right:{name:Mn.right}},superTypes:[Tt.$type]},Condition:{name:ir.$type,properties:{},superTypes:[]},Conjunction:{name:Ls.$type,properties:{left:{name:Ls.left},right:{name:Ls.right}},superTypes:[ir.$type]},CrossReference:{name:Fn.$type,properties:{cardinality:{name:Fn.cardinality},deprecatedSyntax:{name:Fn.deprecatedSyntax,defaultValue:!1},isMulti:{name:Fn.isMulti,defaultValue:!1},terminal:{name:Fn.terminal},type:{name:Fn.type,referenceType:Ct.$type}},superTypes:[ut.$type]},Disjunction:{name:Os.$type,properties:{left:{name:Os.left},right:{name:Os.right}},superTypes:[ir.$type]},EndOfFile:{name:So.$type,properties:{cardinality:{name:So.cardinality}},superTypes:[ut.$type]},Grammar:{name:Ln.$type,properties:{imports:{name:Ln.imports,defaultValue:[]},interfaces:{name:Ln.interfaces,defaultValue:[]},isDeclared:{name:Ln.isDeclared,defaultValue:!1},name:{name:Ln.name},rules:{name:Ln.rules,defaultValue:[]},types:{name:Ln.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:Xl.$type,properties:{path:{name:Xl.path}},superTypes:[]},Group:{name:ur.$type,properties:{cardinality:{name:ur.cardinality},elements:{name:ur.elements,defaultValue:[]},guardCondition:{name:ur.guardCondition},predicate:{name:ur.predicate}},superTypes:[ut.$type]},InferredType:{name:ko.$type,properties:{name:{name:ko.name}},superTypes:[Ct.$type]},InfixRule:{name:Vt.$type,properties:{call:{name:Vt.call},dataType:{name:Vt.dataType},inferredType:{name:Vt.inferredType},name:{name:Vt.name},operators:{name:Vt.operators},parameters:{name:Vt.parameters,defaultValue:[]},returnType:{name:Vt.returnType,referenceType:Ct.$type}},superTypes:[$s.$type]},InfixRuleOperatorList:{name:Qa.$type,properties:{associativity:{name:Qa.associativity},operators:{name:Qa.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:Jl.$type,properties:{precedences:{name:Jl.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:gi.$type,properties:{attributes:{name:gi.attributes,defaultValue:[]},name:{name:gi.name},superTypes:{name:gi.superTypes,defaultValue:[],referenceType:Ct.$type}},superTypes:[Ct.$type]},Keyword:{name:yi.$type,properties:{cardinality:{name:yi.cardinality},predicate:{name:yi.predicate},value:{name:yi.value}},superTypes:[ut.$type]},NamedArgument:{name:Rs.$type,properties:{calledByName:{name:Rs.calledByName,defaultValue:!1},parameter:{name:Rs.parameter,referenceType:vs.$type},value:{name:Rs.value}},superTypes:[]},NegatedToken:{name:dr.$type,properties:{cardinality:{name:dr.cardinality},lookahead:{name:dr.lookahead},parenthesized:{name:dr.parenthesized,defaultValue:!1},terminal:{name:dr.terminal}},superTypes:[Tt.$type]},Negation:{name:Co.$type,properties:{value:{name:Co.value}},superTypes:[ir.$type]},NumberLiteral:{name:Ql.$type,properties:{value:{name:Ql.value}},superTypes:[ui.$type]},Parameter:{name:vs.$type,properties:{name:{name:vs.name}},superTypes:[]},ParameterReference:{name:No.$type,properties:{parameter:{name:No.parameter,referenceType:vs.$type}},superTypes:[ir.$type]},ParserRule:{name:Dt.$type,properties:{dataType:{name:Dt.dataType},definition:{name:Dt.definition},entry:{name:Dt.entry,defaultValue:!1},fragment:{name:Dt.fragment,defaultValue:!1},inferredType:{name:Dt.inferredType},name:{name:Dt.name},parameters:{name:Dt.parameters,defaultValue:[]},returnType:{name:Dt.returnType,referenceType:Ct.$type}},superTypes:[$s.$type]},ReferenceType:{name:Za.$type,properties:{isMulti:{name:Za.isMulti,defaultValue:!1},referenceType:{name:Za.referenceType}},superTypes:[li.$type]},RegexToken:{name:fr.$type,properties:{cardinality:{name:fr.cardinality},lookahead:{name:fr.lookahead},parenthesized:{name:fr.parenthesized,defaultValue:!1},regex:{name:fr.regex}},superTypes:[Tt.$type]},ReturnType:{name:wo.$type,properties:{name:{name:wo.name}},superTypes:[]},RuleCall:{name:hr.$type,properties:{arguments:{name:hr.arguments,defaultValue:[]},cardinality:{name:hr.cardinality},predicate:{name:hr.predicate},rule:{name:hr.rule,referenceType:Ts.$type}},superTypes:[ut.$type]},SimpleType:{name:Ti.$type,properties:{primitiveType:{name:Ti.primitiveType},stringType:{name:Ti.stringType},typeRef:{name:Ti.typeRef,referenceType:Ct.$type}},superTypes:[li.$type]},StringLiteral:{name:Zl.$type,properties:{value:{name:Zl.value}},superTypes:[ui.$type]},TerminalAlternatives:{name:pr.$type,properties:{cardinality:{name:pr.cardinality},elements:{name:pr.elements,defaultValue:[]},lookahead:{name:pr.lookahead},parenthesized:{name:pr.parenthesized,defaultValue:!1}},superTypes:[Tt.$type]},TerminalElement:{name:Tt.$type,properties:{cardinality:{name:Tt.cardinality},lookahead:{name:Tt.lookahead},parenthesized:{name:Tt.parenthesized,defaultValue:!1}},superTypes:[ut.$type]},TerminalGroup:{name:mr.$type,properties:{cardinality:{name:mr.cardinality},elements:{name:mr.elements,defaultValue:[]},lookahead:{name:mr.lookahead},parenthesized:{name:mr.parenthesized,defaultValue:!1}},superTypes:[Tt.$type]},TerminalRule:{name:fn.$type,properties:{definition:{name:fn.definition},fragment:{name:fn.fragment,defaultValue:!1},hidden:{name:fn.hidden,defaultValue:!1},name:{name:fn.name},type:{name:fn.type}},superTypes:[Ts.$type]},TerminalRuleCall:{name:gr.$type,properties:{cardinality:{name:gr.cardinality},lookahead:{name:gr.lookahead},parenthesized:{name:gr.parenthesized,defaultValue:!1},rule:{name:gr.rule,referenceType:fn.$type}},superTypes:[Tt.$type]},Type:{name:xs.$type,properties:{name:{name:xs.name},type:{name:xs.type}},superTypes:[Ct.$type]},TypeAttribute:{name:ci.$type,properties:{defaultValue:{name:ci.defaultValue},isOptional:{name:ci.isOptional,defaultValue:!1},name:{name:ci.name},type:{name:ci.type}},superTypes:[]},TypeDefinition:{name:li.$type,properties:{},superTypes:[]},UnionType:{name:eu.$type,properties:{types:{name:eu.types,defaultValue:[]}},superTypes:[li.$type]},UnorderedGroup:{name:Ds.$type,properties:{cardinality:{name:Ds.cardinality},elements:{name:Ds.elements,defaultValue:[]}},superTypes:[ut.$type]},UntilToken:{name:yr.$type,properties:{cardinality:{name:yr.cardinality},lookahead:{name:yr.lookahead},parenthesized:{name:yr.parenthesized,defaultValue:!1},terminal:{name:yr.terminal}},superTypes:[Tt.$type]},ValueLiteral:{name:ui.$type,properties:{},superTypes:[]},Wildcard:{name:Ri.$type,properties:{cardinality:{name:Ri.cardinality},lookahead:{name:Ri.lookahead},parenthesized:{name:Ri.parenthesized,defaultValue:!1}},superTypes:[Tt.$type]}}}}const Z=new Mf;function bo(t){return new gl(t,e=>_i(e)?e.content:[],{includeRoot:!0})}function qm(t,e){for(;t.container;)if(t=t.container,t===e)return!0;return!1}function _o(t){return{start:{character:t.startColumn-1,line:t.startLine-1},end:{character:t.endColumn,line:t.endLine-1}}}function Hs(t){if(!t)return;const{offset:e,end:n,range:r}=t;return{range:r,offset:e,end:n,length:n-e}}var Xt;(function(t){t[t.Before=0]="Before",t[t.After=1]="After",t[t.OverlapFront=2]="OverlapFront",t[t.OverlapBack=3]="OverlapBack",t[t.Inside=4]="Inside",t[t.Outside=5]="Outside"})(Xt||(Xt={}));function Wm(t,e){if(t.end.line<e.start.line||t.end.line===e.start.line&&t.end.character<=e.start.character)return Xt.Before;if(t.start.line>e.end.line||t.start.line===e.end.line&&t.start.character>=e.end.character)return Xt.After;const n=t.start.line>e.start.line||t.start.line===e.start.line&&t.start.character>=e.start.character,r=t.end.line<e.end.line||t.end.line===e.end.line&&t.end.character<=e.end.character;return n&&r?Xt.Inside:n?Xt.OverlapBack:r?Xt.OverlapFront:Xt.Outside}function Vm(t,e){return Wm(t,e)>Xt.After}const Km=/^[\w\p{L}]$/u;function Hm(t,e){if(t){const n=Ym(t,!0);if(n&&tu(n,e))return n;if($f(t)){const r=t.content.findIndex(i=>!i.hidden);for(let i=r-1;i>=0;i--){const s=t.content[i];if(tu(s,e))return s}}}}function tu(t,e){return If(t)&&e.includes(t.tokenType.name)}function Ym(t,e=!0){for(;t.container;){const n=t.container;let r=n.content.indexOf(t);for(;r>0;){r--;const i=n.content[r];if(e||!i.hidden)return i}t=n}}class Ff extends Error{constructor(e,n){super(e?`${n} at ${e.range.start.line}:${e.range.start.character}`:n)}}function Ki(t,e="Error: Got unexpected value."){throw new Error(e)}function B(t){return t.charCodeAt(0)}function eo(t,e){Array.isArray(t)?t.forEach(function(n){e.push(n)}):e.push(t)}function di(t,e){if(t[e]===!0)throw"duplicate flag "+e;t[e],t[e]=!0}function sr(t){if(t===void 0)throw Error("Internal Error - Should never get here!");return!0}function Xm(){throw Error("Internal Error - Should never get here!")}function nu(t){return t.type==="Character"}const Ys=[];for(let t=B("0");t<=B("9");t++)Ys.push(t);const Xs=[B("_")].concat(Ys);for(let t=B("a");t<=B("z");t++)Xs.push(t);for(let t=B("A");t<=B("Z");t++)Xs.push(t);const ru=[B(" "),B("\f"),B(`
1
+ import{a3 as vt,PR as Mp,$ as Pn}from"./index-Ccf8muta.js";import{bn as Fp,bo as Gp,aO as Ef,b7 as Up,aS as jp,aP as Be,aq as zp,ar as jl,aZ as Bp,b0 as Af,b1 as Sf,a_ as qp,bc as zl,at as Jn,au as oe,aQ as Bl,aK as Wp}from"./mermaid.core-Bm9ZP7gJ.js";import{k as wr,j as fl,g as Wr,S as Vp,w as Kp,x as Hp,c as kf,v as Oe,y as Cf,l as Yp,z as Xp,A as Jp,B as Qp,C as Zp,a as Nf,d as U,i as nn,r as Ze,f as mt,D as De}from"./_baseUniq-D-4MA4hd.js";import{j as hl,m as x,d as em,f as Et,g as br,h as z,i as pl,l as qn,e as tm}from"./_basePickBy-B6h3s-sF.js";import{c as We}from"./clone-CgA-DYeg.js";var nm=Object.prototype,rm=nm.hasOwnProperty,pt=Fp(function(t,e){if(Gp(e)||Ef(e)){Up(e,wr(e),t);return}for(var n in e)rm.call(e,n)&&jp(t,n,e[n])});function wf(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(i);++r<i;)s[r]=t[r+e];return s}function qi(t){for(var e=-1,n=t==null?0:t.length,r=0,i=[];++e<n;){var s=t[e];s&&(i[r++]=s)}return i}function im(t,e,n,r){for(var i=-1,s=t==null?0:t.length;++i<s;){var a=t[i];e(r,a,n(a),t)}return r}function sm(t,e,n,r){return fl(t,function(i,s,a){e(r,i,n(i),a)}),r}function am(t,e){return function(n,r){var i=Be(n)?im:sm,s=e?e():{};return i(n,t,Wr(r),s)}}var om=200;function cm(t,e,n,r){var i=-1,s=Kp,a=!0,o=t.length,c=[],l=e.length;if(!o)return c;e.length>=om&&(s=Hp,a=!1,e=new Vp(e));e:for(;++i<o;){var d=t[i],h=d;if(d=d!==0?d:0,a&&h===h){for(var p=l;p--;)if(e[p]===h)continue e;c.push(d)}else s(e,h,r)||c.push(d)}return c}var Aa=zp(function(t,e){return jl(t)?cm(t,kf(e,1,jl,!0)):[]});function Ue(t,e,n){var r=t==null?0:t.length;return r?(e=e===void 0?1:hl(e),wf(t,e<0?0:e,r)):[]}function bi(t,e,n){var r=t==null?0:t.length;return r?(e=e===void 0?1:hl(e),e=r-e,wf(t,0,e<0?0:e)):[]}function lm(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function um(t,e){var n=!0;return fl(t,function(r,i,s){return n=!!e(r,i,s),n}),n}function _t(t,e,n){var r=Be(t)?lm:um;return r(t,Wr(e))}function $t(t){return t&&t.length?t[0]:void 0}function ht(t,e){return kf(x(t,e))}var dm=Object.prototype,fm=dm.hasOwnProperty,hm=am(function(t,e,n){fm.call(t,n)?t[n].push(e):Bp(t,n,[e])}),pm="[object String]";function at(t){return typeof t=="string"||!Be(t)&&Af(t)&&Sf(t)==pm}var mm=Math.max;function nt(t,e,n,r){t=Ef(t)?t:Oe(t),n=n?hl(n):0;var i=t.length;return n<0&&(n=mm(i+n,0)),at(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Cf(t,e,n)>-1}function ql(t,e,n){var r=t==null?0:t.length;if(!r)return-1;var i=0;return Cf(t,e,i)}var gm="[object RegExp]";function ym(t){return Af(t)&&Sf(t)==gm}var Wl=zl&&zl.isRegExp,rn=Wl?qp(Wl):ym,Tm="Expected a function";function Rm(t){if(typeof t!="function")throw new TypeError(Tm);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Pt(t,e){if(t==null)return{};var n=Yp(Xp(t),function(r){return[r]});return e=Wr(e),em(t,n,function(r,i){return e(r,i[0])})}function Sa(t,e){var n=Be(t)?Jp:Qp;return n(t,Rm(Wr(e)))}function vm(t,e){var n;return fl(t,function(r,i,s){return n=e(r,i,s),!n}),!!n}function bf(t,e,n){var r=Be(t)?Zp:vm;return r(t,Wr(e))}function ml(t){return t&&t.length?Nf(t):[]}function Em(t,e){return t&&t.length?Nf(t,Wr(e)):[]}function He(t){return typeof t=="object"&&t!==null&&typeof t.$type=="string"}function wt(t){return typeof t=="object"&&t!==null&&typeof t.$refText=="string"&&"ref"in t}function hn(t){return typeof t=="object"&&t!==null&&typeof t.$refText=="string"&&"items"in t}function Am(t){return typeof t=="object"&&t!==null&&typeof t.name=="string"&&typeof t.type=="string"&&typeof t.path=="string"}function oi(t){return typeof t=="object"&&t!==null&&typeof t.info=="object"&&typeof t.message=="string"}class _f{constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){const n=this.types[e.container.$type];if(!n)throw new Error(`Type ${e.container.$type||"undefined"} not found.`);const r=n.properties[e.property]?.referenceType;if(!r)throw new Error(`Property ${e.property||"undefined"} of type ${e.container.$type} is not a reference.`);return r}getTypeMetaData(e){const n=this.types[e];return n||{name:e,properties:{},superTypes:[]}}isInstance(e,n){return He(e)&&this.isSubtype(e.$type,n)}isSubtype(e,n){if(e===n)return!0;let r=this.subtypes[e];r||(r=this.subtypes[e]={});const i=r[n];if(i!==void 0)return i;{const s=this.types[e],a=s?s.superTypes.some(o=>this.isSubtype(o,n)):!1;return r[n]=a,a}}getAllSubTypes(e){const n=this.allSubtypes[e];if(n)return n;{const r=this.getAllTypes(),i=[];for(const s of r)this.isSubtype(s,e)&&i.push(s);return this.allSubtypes[e]=i,i}}}function _i(t){return typeof t=="object"&&t!==null&&Array.isArray(t.content)}function If(t){return typeof t=="object"&&t!==null&&typeof t.tokenType=="object"}function $f(t){return _i(t)&&typeof t.fullText=="string"}class je{constructor(e,n){this.startFn=e,this.nextFn=n}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){const e=this.iterator();let n=0,r=e.next();for(;!r.done;)n++,r=e.next();return n}toArray(){const e=[],n=this.iterator();let r;do r=n.next(),r.value!==void 0&&e.push(r.value);while(!r.done);return e}toSet(){return new Set(this)}toMap(e,n){const r=this.map(i=>[e?e(i):i,n?n(i):i]);return new Map(r)}toString(){return this.join()}concat(e){return new je(()=>({first:this.startFn(),firstDone:!1,iterator:e[Symbol.iterator]()}),n=>{let r;if(!n.firstDone){do if(r=this.nextFn(n.first),!r.done)return r;while(!r.done);n.firstDone=!0}do if(r=n.iterator.next(),!r.done)return r;while(!r.done);return dt})}join(e=","){const n=this.iterator();let r="",i,s=!1;do i=n.next(),i.done||(s&&(r+=e),r+=Sm(i.value)),s=!0;while(!i.done);return r}indexOf(e,n=0){const r=this.iterator();let i=0,s=r.next();for(;!s.done;){if(i>=n&&s.value===e)return i;s=r.next(),i++}return-1}every(e){const n=this.iterator();let r=n.next();for(;!r.done;){if(!e(r.value))return!1;r=n.next()}return!0}some(e){const n=this.iterator();let r=n.next();for(;!r.done;){if(e(r.value))return!0;r=n.next()}return!1}forEach(e){const n=this.iterator();let r=0,i=n.next();for(;!i.done;)e(i.value,r),i=n.next(),r++}map(e){return new je(this.startFn,n=>{const{done:r,value:i}=this.nextFn(n);return r?dt:{done:!1,value:e(i)}})}filter(e){return new je(this.startFn,n=>{let r;do if(r=this.nextFn(n),!r.done&&e(r.value))return r;while(!r.done);return dt})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,n){const r=this.iterator();let i=n,s=r.next();for(;!s.done;)i===void 0?i=s.value:i=e(i,s.value),s=r.next();return i}reduceRight(e,n){return this.recursiveReduce(this.iterator(),e,n)}recursiveReduce(e,n,r){const i=e.next();if(i.done)return r;const s=this.recursiveReduce(e,n,r);return s===void 0?i.value:n(s,i.value)}find(e){const n=this.iterator();let r=n.next();for(;!r.done;){if(e(r.value))return r.value;r=n.next()}}findIndex(e){const n=this.iterator();let r=0,i=n.next();for(;!i.done;){if(e(i.value))return r;i=n.next(),r++}return-1}includes(e){const n=this.iterator();let r=n.next();for(;!r.done;){if(r.value===e)return!0;r=n.next()}return!1}flatMap(e){return new je(()=>({this:this.startFn()}),n=>{do{if(n.iterator){const s=n.iterator.next();if(s.done)n.iterator=void 0;else return s}const{done:r,value:i}=this.nextFn(n.this);if(!r){const s=e(i);if(Ws(s))n.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}}while(n.iterator);return dt})}flat(e){if(e===void 0&&(e=1),e<=0)return this;const n=e>1?this.flat(e-1):this;return new je(()=>({this:n.startFn()}),r=>{do{if(r.iterator){const a=r.iterator.next();if(a.done)r.iterator=void 0;else return a}const{done:i,value:s}=n.nextFn(r.this);if(!i)if(Ws(s))r.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}while(r.iterator);return dt})}head(){const n=this.iterator().next();if(!n.done)return n.value}tail(e=1){return new je(()=>{const n=this.startFn();for(let r=0;r<e;r++)if(this.nextFn(n).done)return n;return n},this.nextFn)}limit(e){return new je(()=>({size:0,state:this.startFn()}),n=>(n.size++,n.size>e?dt:this.nextFn(n.state)))}distinct(e){return new je(()=>({set:new Set,internalState:this.startFn()}),n=>{let r;do if(r=this.nextFn(n.internalState),!r.done){const i=e?e(r.value):r.value;if(!n.set.has(i))return n.set.add(i),r}while(!r.done);return dt})}exclude(e,n){const r=new Set;for(const i of e){const s=n?n(i):i;r.add(s)}return this.filter(i=>{const s=n?n(i):i;return!r.has(s)})}}function Sm(t){return typeof t=="string"?t:typeof t>"u"?"undefined":typeof t.toString=="function"?t.toString():Object.prototype.toString.call(t)}function Ws(t){return!!t&&typeof t[Symbol.iterator]=="function"}const Pf=new je(()=>{},()=>dt),dt=Object.freeze({done:!0,value:void 0});function he(...t){if(t.length===1){const e=t[0];if(e instanceof je)return e;if(Ws(e))return new je(()=>e[Symbol.iterator](),n=>n.next());if(typeof e.length=="number")return new je(()=>({index:0}),n=>n.index<e.length?{done:!1,value:e[n.index++]}:dt)}return t.length>1?new je(()=>({collIndex:0,arrIndex:0}),e=>{do{if(e.iterator){const n=e.iterator.next();if(!n.done)return n;e.iterator=void 0}if(e.array){if(e.arrIndex<e.array.length)return{done:!1,value:e.array[e.arrIndex++]};e.array=void 0,e.arrIndex=0}if(e.collIndex<t.length){const n=t[e.collIndex++];Ws(n)?e.iterator=n[Symbol.iterator]():n&&typeof n.length=="number"&&(e.array=n)}}while(e.iterator||e.array||e.collIndex<t.length);return dt}):Pf}class gl extends je{constructor(e,n,r){super(()=>({iterators:r?.includeRoot?[[e][Symbol.iterator]()]:[n(e)[Symbol.iterator]()],pruned:!1}),i=>{for(i.pruned&&(i.iterators.pop(),i.pruned=!1);i.iterators.length>0;){const a=i.iterators[i.iterators.length-1].next();if(a.done)i.iterators.pop();else return i.iterators.push(n(a.value)[Symbol.iterator]()),a}return dt})}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),prune:()=>{e.state.pruned=!0},[Symbol.iterator]:()=>e};return e}}var vo;(function(t){function e(s){return s.reduce((a,o)=>a+o,0)}t.sum=e;function n(s){return s.reduce((a,o)=>a*o,0)}t.product=n;function r(s){return s.reduce((a,o)=>Math.min(a,o))}t.min=r;function i(s){return s.reduce((a,o)=>Math.max(a,o))}t.max=i})(vo||(vo={}));function Eo(t,e={}){for(const[n,r]of Object.entries(t))n.startsWith("$")||(Array.isArray(r)?r.forEach((i,s)=>{He(i)&&(i.$container=t,i.$containerProperty=n,i.$containerIndex=s,e.deep&&Eo(i,e))}):He(r)&&(r.$container=t,r.$containerProperty=n,e.deep&&Eo(r,e)))}function ka(t,e){let n=t;for(;n;){if(e(n))return n;n=n.$container}}function Qt(t){const n=Is(t).$document;if(!n)throw new Error("AST node has no document.");return n}function Is(t){for(;t.$container;)t=t.$container;return t}function Vl(t){return wt(t)?t.ref?[t.ref]:[]:hn(t)?t.items.map(e=>e.ref):[]}function yl(t,e){if(!t)throw new Error("Node must be an AstNode.");const n=e?.range;return new je(()=>({keys:Object.keys(t),keyIndex:0,arrayIndex:0}),r=>{for(;r.keyIndex<r.keys.length;){const i=r.keys[r.keyIndex];if(!i.startsWith("$")){const s=t[i];if(He(s)){if(r.keyIndex++,Kl(s,n))return{done:!1,value:s}}else if(Array.isArray(s)){for(;r.arrayIndex<s.length;){const a=r.arrayIndex++,o=s[a];if(He(o)&&Kl(o,n))return{done:!1,value:o}}r.arrayIndex=0}}r.keyIndex++}return dt})}function Wi(t,e){if(!t)throw new Error("Root node must be an AstNode.");return new gl(t,n=>yl(n,e))}function Zt(t,e){if(!t)throw new Error("Root node must be an AstNode.");return new gl(t,n=>yl(n,e),{includeRoot:!0})}function Kl(t,e){if(!e)return!0;const n=t.$cstNode?.range;return n?Vm(n,e):!1}function Vs(t){return new je(()=>({keys:Object.keys(t),keyIndex:0,arrayIndex:0}),e=>{for(;e.keyIndex<e.keys.length;){const n=e.keys[e.keyIndex];if(!n.startsWith("$")){const r=t[n];if(wt(r)||hn(r))return e.keyIndex++,{done:!1,value:{reference:r,container:t,property:n}};if(Array.isArray(r)){for(;e.arrayIndex<r.length;){const i=e.arrayIndex++,s=r[i];if(wt(s)||hn(r))return{done:!1,value:{reference:s,container:t,property:n,index:i}}}e.arrayIndex=0}}e.keyIndex++}return dt})}function km(t,e){const n=t.getTypeMetaData(e.$type),r=e;for(const i of Object.values(n.properties))i.defaultValue!==void 0&&r[i.name]===void 0&&(r[i.name]=Lf(i.defaultValue))}function Lf(t){return Array.isArray(t)?[...t.map(Lf)]:t}const ut={$type:"AbstractElement",cardinality:"cardinality"};function Cm(t){return Z.isInstance(t,ut.$type)}const $s={$type:"AbstractParserRule"};function Vi(t){return Z.isInstance(t,$s.$type)}const Ts={$type:"AbstractRule"},Ct={$type:"AbstractType"},xn={$type:"Action",cardinality:"cardinality",feature:"feature",inferredType:"inferredType",operator:"operator",type:"type"};function Ca(t){return Z.isInstance(t,xn.$type)}const Ps={$type:"Alternatives",cardinality:"cardinality",elements:"elements"};function Of(t){return Z.isInstance(t,Ps.$type)}const Hl={$type:"ArrayLiteral",elements:"elements"},Yl={$type:"ArrayType",elementType:"elementType"},Dn={$type:"Assignment",cardinality:"cardinality",feature:"feature",operator:"operator",predicate:"predicate",terminal:"terminal"};function Wn(t){return Z.isInstance(t,Dn.$type)}const Ao={$type:"BooleanLiteral",true:"true"};function Nm(t){return Z.isInstance(t,Ao.$type)}const Mn={$type:"CharacterRange",cardinality:"cardinality",left:"left",lookahead:"lookahead",parenthesized:"parenthesized",right:"right"};function wm(t){return Z.isInstance(t,Mn.$type)}const ir={$type:"Condition"},Ls={$type:"Conjunction",left:"left",right:"right"};function bm(t){return Z.isInstance(t,Ls.$type)}const Fn={$type:"CrossReference",cardinality:"cardinality",deprecatedSyntax:"deprecatedSyntax",isMulti:"isMulti",terminal:"terminal",type:"type"};function Na(t){return Z.isInstance(t,Fn.$type)}const Os={$type:"Disjunction",left:"left",right:"right"};function _m(t){return Z.isInstance(t,Os.$type)}const So={$type:"EndOfFile",cardinality:"cardinality"};function Im(t){return Z.isInstance(t,So.$type)}const Ln={$type:"Grammar",imports:"imports",interfaces:"interfaces",isDeclared:"isDeclared",name:"name",rules:"rules",types:"types"},Xl={$type:"GrammarImport",path:"path"},ur={$type:"Group",cardinality:"cardinality",elements:"elements",guardCondition:"guardCondition",predicate:"predicate"};function Tl(t){return Z.isInstance(t,ur.$type)}const ko={$type:"InferredType",name:"name"};function xf(t){return Z.isInstance(t,ko.$type)}const Vt={$type:"InfixRule",call:"call",dataType:"dataType",inferredType:"inferredType",name:"name",operators:"operators",parameters:"parameters",returnType:"returnType"};function Ks(t){return Z.isInstance(t,Vt.$type)}const Qa={$type:"InfixRuleOperatorList",associativity:"associativity",operators:"operators"},Jl={$type:"InfixRuleOperators",precedences:"precedences"},gi={$type:"Interface",attributes:"attributes",name:"name",superTypes:"superTypes"};function $m(t){return Z.isInstance(t,gi.$type)}const yi={$type:"Keyword",cardinality:"cardinality",predicate:"predicate",value:"value"};function Vn(t){return Z.isInstance(t,yi.$type)}const Rs={$type:"NamedArgument",calledByName:"calledByName",parameter:"parameter",value:"value"},dr={$type:"NegatedToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function Pm(t){return Z.isInstance(t,dr.$type)}const Co={$type:"Negation",value:"value"};function Lm(t){return Z.isInstance(t,Co.$type)}const Ql={$type:"NumberLiteral",value:"value"},vs={$type:"Parameter",name:"name"},No={$type:"ParameterReference",parameter:"parameter"};function Om(t){return Z.isInstance(t,No.$type)}const Dt={$type:"ParserRule",dataType:"dataType",definition:"definition",entry:"entry",fragment:"fragment",inferredType:"inferredType",name:"name",parameters:"parameters",returnType:"returnType"};function on(t){return Z.isInstance(t,Dt.$type)}const Za={$type:"ReferenceType",isMulti:"isMulti",referenceType:"referenceType"},fr={$type:"RegexToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",regex:"regex"};function xm(t){return Z.isInstance(t,fr.$type)}const wo={$type:"ReturnType",name:"name"};function Dm(t){return Z.isInstance(t,wo.$type)}const hr={$type:"RuleCall",arguments:"arguments",cardinality:"cardinality",predicate:"predicate",rule:"rule"};function Kn(t){return Z.isInstance(t,hr.$type)}const Ti={$type:"SimpleType",primitiveType:"primitiveType",stringType:"stringType",typeRef:"typeRef"};function Mm(t){return Z.isInstance(t,Ti.$type)}const Zl={$type:"StringLiteral",value:"value"},pr={$type:"TerminalAlternatives",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function Fm(t){return Z.isInstance(t,pr.$type)}const Tt={$type:"TerminalElement",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"},mr={$type:"TerminalGroup",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function Gm(t){return Z.isInstance(t,mr.$type)}const fn={$type:"TerminalRule",definition:"definition",fragment:"fragment",hidden:"hidden",name:"name",type:"type"};function cn(t){return Z.isInstance(t,fn.$type)}const gr={$type:"TerminalRuleCall",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",rule:"rule"};function Um(t){return Z.isInstance(t,gr.$type)}const xs={$type:"Type",name:"name",type:"type"};function jm(t){return Z.isInstance(t,xs.$type)}const ci={$type:"TypeAttribute",defaultValue:"defaultValue",isOptional:"isOptional",name:"name",type:"type"},li={$type:"TypeDefinition"},eu={$type:"UnionType",types:"types"},Ds={$type:"UnorderedGroup",cardinality:"cardinality",elements:"elements"};function Df(t){return Z.isInstance(t,Ds.$type)}const yr={$type:"UntilToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function zm(t){return Z.isInstance(t,yr.$type)}const ui={$type:"ValueLiteral"},Ri={$type:"Wildcard",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function Bm(t){return Z.isInstance(t,Ri.$type)}class Mf extends _f{constructor(){super(...arguments),this.types={AbstractElement:{name:ut.$type,properties:{cardinality:{name:ut.cardinality}},superTypes:[]},AbstractParserRule:{name:$s.$type,properties:{},superTypes:[Ts.$type,Ct.$type]},AbstractRule:{name:Ts.$type,properties:{},superTypes:[]},AbstractType:{name:Ct.$type,properties:{},superTypes:[]},Action:{name:xn.$type,properties:{cardinality:{name:xn.cardinality},feature:{name:xn.feature},inferredType:{name:xn.inferredType},operator:{name:xn.operator},type:{name:xn.type,referenceType:Ct.$type}},superTypes:[ut.$type]},Alternatives:{name:Ps.$type,properties:{cardinality:{name:Ps.cardinality},elements:{name:Ps.elements,defaultValue:[]}},superTypes:[ut.$type]},ArrayLiteral:{name:Hl.$type,properties:{elements:{name:Hl.elements,defaultValue:[]}},superTypes:[ui.$type]},ArrayType:{name:Yl.$type,properties:{elementType:{name:Yl.elementType}},superTypes:[li.$type]},Assignment:{name:Dn.$type,properties:{cardinality:{name:Dn.cardinality},feature:{name:Dn.feature},operator:{name:Dn.operator},predicate:{name:Dn.predicate},terminal:{name:Dn.terminal}},superTypes:[ut.$type]},BooleanLiteral:{name:Ao.$type,properties:{true:{name:Ao.true,defaultValue:!1}},superTypes:[ir.$type,ui.$type]},CharacterRange:{name:Mn.$type,properties:{cardinality:{name:Mn.cardinality},left:{name:Mn.left},lookahead:{name:Mn.lookahead},parenthesized:{name:Mn.parenthesized,defaultValue:!1},right:{name:Mn.right}},superTypes:[Tt.$type]},Condition:{name:ir.$type,properties:{},superTypes:[]},Conjunction:{name:Ls.$type,properties:{left:{name:Ls.left},right:{name:Ls.right}},superTypes:[ir.$type]},CrossReference:{name:Fn.$type,properties:{cardinality:{name:Fn.cardinality},deprecatedSyntax:{name:Fn.deprecatedSyntax,defaultValue:!1},isMulti:{name:Fn.isMulti,defaultValue:!1},terminal:{name:Fn.terminal},type:{name:Fn.type,referenceType:Ct.$type}},superTypes:[ut.$type]},Disjunction:{name:Os.$type,properties:{left:{name:Os.left},right:{name:Os.right}},superTypes:[ir.$type]},EndOfFile:{name:So.$type,properties:{cardinality:{name:So.cardinality}},superTypes:[ut.$type]},Grammar:{name:Ln.$type,properties:{imports:{name:Ln.imports,defaultValue:[]},interfaces:{name:Ln.interfaces,defaultValue:[]},isDeclared:{name:Ln.isDeclared,defaultValue:!1},name:{name:Ln.name},rules:{name:Ln.rules,defaultValue:[]},types:{name:Ln.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:Xl.$type,properties:{path:{name:Xl.path}},superTypes:[]},Group:{name:ur.$type,properties:{cardinality:{name:ur.cardinality},elements:{name:ur.elements,defaultValue:[]},guardCondition:{name:ur.guardCondition},predicate:{name:ur.predicate}},superTypes:[ut.$type]},InferredType:{name:ko.$type,properties:{name:{name:ko.name}},superTypes:[Ct.$type]},InfixRule:{name:Vt.$type,properties:{call:{name:Vt.call},dataType:{name:Vt.dataType},inferredType:{name:Vt.inferredType},name:{name:Vt.name},operators:{name:Vt.operators},parameters:{name:Vt.parameters,defaultValue:[]},returnType:{name:Vt.returnType,referenceType:Ct.$type}},superTypes:[$s.$type]},InfixRuleOperatorList:{name:Qa.$type,properties:{associativity:{name:Qa.associativity},operators:{name:Qa.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:Jl.$type,properties:{precedences:{name:Jl.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:gi.$type,properties:{attributes:{name:gi.attributes,defaultValue:[]},name:{name:gi.name},superTypes:{name:gi.superTypes,defaultValue:[],referenceType:Ct.$type}},superTypes:[Ct.$type]},Keyword:{name:yi.$type,properties:{cardinality:{name:yi.cardinality},predicate:{name:yi.predicate},value:{name:yi.value}},superTypes:[ut.$type]},NamedArgument:{name:Rs.$type,properties:{calledByName:{name:Rs.calledByName,defaultValue:!1},parameter:{name:Rs.parameter,referenceType:vs.$type},value:{name:Rs.value}},superTypes:[]},NegatedToken:{name:dr.$type,properties:{cardinality:{name:dr.cardinality},lookahead:{name:dr.lookahead},parenthesized:{name:dr.parenthesized,defaultValue:!1},terminal:{name:dr.terminal}},superTypes:[Tt.$type]},Negation:{name:Co.$type,properties:{value:{name:Co.value}},superTypes:[ir.$type]},NumberLiteral:{name:Ql.$type,properties:{value:{name:Ql.value}},superTypes:[ui.$type]},Parameter:{name:vs.$type,properties:{name:{name:vs.name}},superTypes:[]},ParameterReference:{name:No.$type,properties:{parameter:{name:No.parameter,referenceType:vs.$type}},superTypes:[ir.$type]},ParserRule:{name:Dt.$type,properties:{dataType:{name:Dt.dataType},definition:{name:Dt.definition},entry:{name:Dt.entry,defaultValue:!1},fragment:{name:Dt.fragment,defaultValue:!1},inferredType:{name:Dt.inferredType},name:{name:Dt.name},parameters:{name:Dt.parameters,defaultValue:[]},returnType:{name:Dt.returnType,referenceType:Ct.$type}},superTypes:[$s.$type]},ReferenceType:{name:Za.$type,properties:{isMulti:{name:Za.isMulti,defaultValue:!1},referenceType:{name:Za.referenceType}},superTypes:[li.$type]},RegexToken:{name:fr.$type,properties:{cardinality:{name:fr.cardinality},lookahead:{name:fr.lookahead},parenthesized:{name:fr.parenthesized,defaultValue:!1},regex:{name:fr.regex}},superTypes:[Tt.$type]},ReturnType:{name:wo.$type,properties:{name:{name:wo.name}},superTypes:[]},RuleCall:{name:hr.$type,properties:{arguments:{name:hr.arguments,defaultValue:[]},cardinality:{name:hr.cardinality},predicate:{name:hr.predicate},rule:{name:hr.rule,referenceType:Ts.$type}},superTypes:[ut.$type]},SimpleType:{name:Ti.$type,properties:{primitiveType:{name:Ti.primitiveType},stringType:{name:Ti.stringType},typeRef:{name:Ti.typeRef,referenceType:Ct.$type}},superTypes:[li.$type]},StringLiteral:{name:Zl.$type,properties:{value:{name:Zl.value}},superTypes:[ui.$type]},TerminalAlternatives:{name:pr.$type,properties:{cardinality:{name:pr.cardinality},elements:{name:pr.elements,defaultValue:[]},lookahead:{name:pr.lookahead},parenthesized:{name:pr.parenthesized,defaultValue:!1}},superTypes:[Tt.$type]},TerminalElement:{name:Tt.$type,properties:{cardinality:{name:Tt.cardinality},lookahead:{name:Tt.lookahead},parenthesized:{name:Tt.parenthesized,defaultValue:!1}},superTypes:[ut.$type]},TerminalGroup:{name:mr.$type,properties:{cardinality:{name:mr.cardinality},elements:{name:mr.elements,defaultValue:[]},lookahead:{name:mr.lookahead},parenthesized:{name:mr.parenthesized,defaultValue:!1}},superTypes:[Tt.$type]},TerminalRule:{name:fn.$type,properties:{definition:{name:fn.definition},fragment:{name:fn.fragment,defaultValue:!1},hidden:{name:fn.hidden,defaultValue:!1},name:{name:fn.name},type:{name:fn.type}},superTypes:[Ts.$type]},TerminalRuleCall:{name:gr.$type,properties:{cardinality:{name:gr.cardinality},lookahead:{name:gr.lookahead},parenthesized:{name:gr.parenthesized,defaultValue:!1},rule:{name:gr.rule,referenceType:fn.$type}},superTypes:[Tt.$type]},Type:{name:xs.$type,properties:{name:{name:xs.name},type:{name:xs.type}},superTypes:[Ct.$type]},TypeAttribute:{name:ci.$type,properties:{defaultValue:{name:ci.defaultValue},isOptional:{name:ci.isOptional,defaultValue:!1},name:{name:ci.name},type:{name:ci.type}},superTypes:[]},TypeDefinition:{name:li.$type,properties:{},superTypes:[]},UnionType:{name:eu.$type,properties:{types:{name:eu.types,defaultValue:[]}},superTypes:[li.$type]},UnorderedGroup:{name:Ds.$type,properties:{cardinality:{name:Ds.cardinality},elements:{name:Ds.elements,defaultValue:[]}},superTypes:[ut.$type]},UntilToken:{name:yr.$type,properties:{cardinality:{name:yr.cardinality},lookahead:{name:yr.lookahead},parenthesized:{name:yr.parenthesized,defaultValue:!1},terminal:{name:yr.terminal}},superTypes:[Tt.$type]},ValueLiteral:{name:ui.$type,properties:{},superTypes:[]},Wildcard:{name:Ri.$type,properties:{cardinality:{name:Ri.cardinality},lookahead:{name:Ri.lookahead},parenthesized:{name:Ri.parenthesized,defaultValue:!1}},superTypes:[Tt.$type]}}}}const Z=new Mf;function bo(t){return new gl(t,e=>_i(e)?e.content:[],{includeRoot:!0})}function qm(t,e){for(;t.container;)if(t=t.container,t===e)return!0;return!1}function _o(t){return{start:{character:t.startColumn-1,line:t.startLine-1},end:{character:t.endColumn,line:t.endLine-1}}}function Hs(t){if(!t)return;const{offset:e,end:n,range:r}=t;return{range:r,offset:e,end:n,length:n-e}}var Xt;(function(t){t[t.Before=0]="Before",t[t.After=1]="After",t[t.OverlapFront=2]="OverlapFront",t[t.OverlapBack=3]="OverlapBack",t[t.Inside=4]="Inside",t[t.Outside=5]="Outside"})(Xt||(Xt={}));function Wm(t,e){if(t.end.line<e.start.line||t.end.line===e.start.line&&t.end.character<=e.start.character)return Xt.Before;if(t.start.line>e.end.line||t.start.line===e.end.line&&t.start.character>=e.end.character)return Xt.After;const n=t.start.line>e.start.line||t.start.line===e.start.line&&t.start.character>=e.start.character,r=t.end.line<e.end.line||t.end.line===e.end.line&&t.end.character<=e.end.character;return n&&r?Xt.Inside:n?Xt.OverlapBack:r?Xt.OverlapFront:Xt.Outside}function Vm(t,e){return Wm(t,e)>Xt.After}const Km=/^[\w\p{L}]$/u;function Hm(t,e){if(t){const n=Ym(t,!0);if(n&&tu(n,e))return n;if($f(t)){const r=t.content.findIndex(i=>!i.hidden);for(let i=r-1;i>=0;i--){const s=t.content[i];if(tu(s,e))return s}}}}function tu(t,e){return If(t)&&e.includes(t.tokenType.name)}function Ym(t,e=!0){for(;t.container;){const n=t.container;let r=n.content.indexOf(t);for(;r>0;){r--;const i=n.content[r];if(e||!i.hidden)return i}t=n}}class Ff extends Error{constructor(e,n){super(e?`${n} at ${e.range.start.line}:${e.range.start.character}`:n)}}function Ki(t,e="Error: Got unexpected value."){throw new Error(e)}function B(t){return t.charCodeAt(0)}function eo(t,e){Array.isArray(t)?t.forEach(function(n){e.push(n)}):e.push(t)}function di(t,e){if(t[e]===!0)throw"duplicate flag "+e;t[e],t[e]=!0}function sr(t){if(t===void 0)throw Error("Internal Error - Should never get here!");return!0}function Xm(){throw Error("Internal Error - Should never get here!")}function nu(t){return t.type==="Character"}const Ys=[];for(let t=B("0");t<=B("9");t++)Ys.push(t);const Xs=[B("_")].concat(Ys);for(let t=B("a");t<=B("z");t++)Xs.push(t);for(let t=B("A");t<=B("Z");t++)Xs.push(t);const ru=[B(" "),B("\f"),B(`
2
2
  `),B("\r"),B(" "),B("\v"),B(" "),B(" "),B(" "),B(" "),B(" "),B(" "),B(" "),B(" "),B(" "),B(" "),B(" "),B(" "),B(" "),B(" "),B("\u2028"),B("\u2029"),B(" "),B(" "),B(" "),B("\uFEFF")],Jm=/[0-9a-fA-F]/,Es=/[0-9]/,Qm=/[1-9]/;class Gf{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");const n=this.disjunction();this.consumeChar("/");const r={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":di(r,"global");break;case"i":di(r,"ignoreCase");break;case"m":di(r,"multiLine");break;case"u":di(r,"unicode");break;case"y":di(r,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:r,value:n,loc:this.loc(0)}}disjunction(){const e=[],n=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(n)}}alternative(){const e=[],n=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(n)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let n;switch(this.popChar()){case"=":n="Lookahead";break;case"!":n="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":n="Lookbehind";break;case"!":n="NegativeLookbehind"}break}}sr(n);const r=this.disjunction();return this.consumeChar(")"),{type:n,value:r,loc:this.loc(e)}}return Xm()}quantifier(e=!1){let n;const r=this.idx;switch(this.popChar()){case"*":n={atLeast:0,atMost:1/0};break;case"+":n={atLeast:1,atMost:1/0};break;case"?":n={atLeast:0,atMost:1};break;case"{":const i=this.integerIncludingZero();switch(this.popChar()){case"}":n={atLeast:i,atMost:i};break;case",":let s;this.isDigit()?(s=this.integerIncludingZero(),n={atLeast:i,atMost:s}):n={atLeast:i,atMost:1/0},this.consumeChar("}");break}if(e===!0&&n===void 0)return;sr(n);break}if(!(e===!0&&n===void 0)&&sr(n))return this.peekChar(0)==="?"?(this.consumeChar("?"),n.greedy=!1):n.greedy=!0,n.type="Quantifier",n.loc=this.loc(r),n}atom(){let e;const n=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}if(e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),sr(e))return e.loc=this.loc(n),this.isQuantifier()&&(e.quantifier=this.quantifier()),e}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[B(`
3
3
  `),B("\r"),B("\u2028"),B("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,n=!1;switch(this.popChar()){case"d":e=Ys;break;case"D":e=Ys,n=!0;break;case"s":e=ru;break;case"S":e=ru,n=!0;break;case"w":e=Xs;break;case"W":e=Xs,n=!0;break}if(sr(e))return{type:"Set",value:e,complement:n}}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=B("\f");break;case"n":e=B(`
4
4
  `);break;case"r":e=B("\r");break;case"t":e=B(" ");break;case"v":e=B("\v");break}if(sr(e))return{type:"Character",value:e}}controlLetterEscapeAtom(){this.consumeChar("c");const e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:B("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){const e=this.popChar();return{type:"Character",value:B(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case`
@@ -0,0 +1 @@
1
+ import{bG as fe,r as t,bH as pe,bI as ce,o as P,bJ as se,bK as me,bL as Te,bM as L,bN as U,bO as w,bP as B,bQ as S,bR as J,bS as Z,bT as X,bU as Ce,bV as ge,bW as K,bX as Ae,bY as he,bZ as Q,b_ as ye,b$ as Ie,ai as be,c0 as ue,c1 as Oe,c2 as le,c3 as Re,c4 as ie,c5 as z,c6 as $,u as W,F as E,c7 as Ne,c8 as Ee,c9 as Se,ca as Le,cb as ve,cc as q,cd as Me,ce as Be,cf as j,af as _e,cg as de,ch as ee,ci as ne,cj as Pe,ck as ke,cl as x,cm as we,cn as Ve,co as Ue,cp as Fe,cq as De,cr as Y,cs as xe,ct as He,cu as Ke,cv as je,cw as re,cx as Ye,cy as Qe,cz as We,cA as ze,cB as _,ao as G,cC as $e,cD as Ge,cE as ae}from"./index-Ccf8muta.js";function Je(n){t.useEffect(()=>{if(!n)return;const s=Array.from(document.querySelectorAll('link[rel~="icon"]')),i=s.length===0?document.createElement("link"):void 0;i&&(i.rel="icon",document.head.appendChild(i));const o=i?[i]:s,u=o.map(a=>a.getAttribute("href"));return o.forEach(a=>{a.href=n}),()=>{if(i){i.remove();return}o.forEach((a,f)=>{const l=u[f];l==null?a.removeAttribute("href"):a.setAttribute("href",l)})}},[n])}function ln(n=!1,s){const{markComponentInitialized:i,frontendConfiguration:o}=fe();t.useEffect(()=>{i(pe.PUBLIC_APP_CONTAINER)},[i]);const u=ce({includeOrganizationBrand:!1}),{shellIdentity:a}=P(),f=n&&!a?s:void 0,l=se(f?.logoUrl||void 0),C=se(f?.faviconUrl||void 0),m=f?{name:f.productName||f.organizationName||u.name,logoUrl:f.logoUrl?l:u.logoUrl,logoComposition:void 0}:u,g=o.publicShellIdentityMode===me.BRAND_HEADER?m:void 0;return Je(C),{useCardLayout:n,isReady:!0,brandHeader:g,brandAccentColor:g?f?.primaryColor:void 0}}function Ze(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function Xe(n){switch(n){case w.VERTICAL_RAIL:return{direction:B.VERTICAL,borderSide:S.END,tooltipSide:S.END,orientation:B.VERTICAL};case w.HORIZONTAL_BAR:return{direction:B.HORIZONTAL,borderSide:S.BOTTOM,tooltipSide:S.TOP,orientation:B.HORIZONTAL};case w.BOTTOM_TAB_BAR:return{direction:B.HORIZONTAL,borderSide:S.TOP,tooltipSide:S.TOP,orientation:B.HORIZONTAL};default:return{direction:B.VERTICAL,borderSide:S.END,tooltipSide:S.END,orientation:B.VERTICAL}}}function dn(){const{UIConfig:n,appComponentsConfiguration:s}=P(),i=Te(),o=s?.[L.ACTIVITY_BAR],a=n?.currentBreakpoint===U.MOBILE,f=t.useMemo(()=>Ze(o)?a?o.mobileRendering??w.BOTTOM_TAB_BAR:o.desktopRendering??w.VERTICAL_RAIL:a?w.BOTTOM_TAB_BAR:w.VERTICAL_RAIL,[o,a]),l=t.useMemo(()=>Xe(f),[f]);return{availableModes:t.useMemo(()=>i?.availableModes??[],[i?.availableModes]),activeMode:i?.activeMode??null,setActiveMode:i?.setActiveMode??(()=>{}),hasModes:i?.hasModes??!1,activeRenderingMode:f,layout:l,isNavigationLoading:!i}}function H(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function fn(n={}){const{mode:s}=n,{UIConfig:i,appComponentsConfiguration:o,navigationLayout:u,homeDefinition:a}=P(),f=J(),{navigate:l}=Z(),C=X(),{isNavigationItemActive:m,isHomeActive:g,handleHomeClick:y}=Ce(),I=a?.compositeViewReference,T=o?.[L.MENUBAR],A=i?.currentBreakpoint,h=H(T)?T.brandMarkTheme:void 0,O=ce({theme:h}),R=H(T)&&T.brandHeader===!0?O:void 0,M=t.useMemo(()=>H(T)?ge(L.MENUBAR,T.hostedComponents,o,A,K.START,u):[],[o,T,A,u]),r=t.useMemo(()=>H(T)?Ae(T.items,C):void 0,[T,C]),e=t.useMemo(()=>{if(!f||!r?.length)return[];const p=he(void 0,r,f),b=Q.getMostSpecificActiveRoute(p.items.map(c=>c.urlPath),m),v=c=>g&&I!==void 0&&c.viewRef===I;return p.items.map(c=>({id:c.id,label:c.label,icon:c.icon,group:c.group,isActive:b!==void 0&&c.urlPath===b||v(c),...c.notificationBadgeRef?{notificationBadgeRef:c.notificationBadgeRef}:{},onExecute:()=>{Q.dispatchNavigationForResolvedTarget(l,c,L.MENUBAR)}}))},[r,f,l,m,g,I]),d=t.useMemo(()=>{const p=s||(H(T)?T.displayPolicy??"FIXED":typeof T=="string"?T:"FIXED"),b=p==="OVERLAY",v=A===U.MOBILE;return{mode:p,isOverlay:b,showMobileLayout:v&&b}},[T,s,A]);return{containerComponents:M,brandHeader:R,isHomeActive:g,handleHomeClick:y,items:e,menubarConfig:d,mapToFrontendComponentType:ye}}function qe(n,s){if(!n)return;const i=n.resourceConfigurations[s.resourceType];if(!i?.mainSchema)return;const o=Ie.resolveFieldShapeOfAnyVariant(i),u=o?.[s.fieldIdentifier];if(u)return{schema:u,isPrimaryKeyFallback:!1};if(s.fieldIdentifier!==i.resourceFieldIdentifier)return;const a=o?._id??o?.id;return a?{schema:a,isPrimaryKeyFallback:!0}:void 0}function pn(n={}){const s=be(),{on:i}=ue(),{registry:o}=Oe(),[u,a]=t.useState(0),f=n.focusTrigger??u;t.useEffect(()=>{if(n.focusTrigger===void 0)return i(le.HOTKEY_QUICK_SWITCHER_OPEN,()=>{a(r=>r+1)})},[i,n.focusTrigger]);const l=Re({mode:"onChange",defaultValues:s?.customScopeValues??{}}),C=t.useRef(!1),m=t.useCallback((r,e)=>r==null?e?[]:void 0:Array.isArray(r)?e?r:r[0]:e?[r]:r,[]),g=t.useMemo(()=>s?.customScopeFields?[...s.customScopeFields].sort((r,e)=>(r.position??ie)-(e.position??ie)):[],[s?.customScopeFields]),y=t.useMemo(()=>{const r=new Map;if(!o)return r;for(const e of g){const d=qe(o,e);d&&r.set(e.fieldIdentifier,d)}return r},[g,o]);t.useEffect(()=>{if(s?.customScopeValues){C.current=!0;for(const r of s.customScopeFields){const e=r.fieldIdentifier,d=s.customScopeValues[e],p=l.getValues(e),b=y.get(e)?.schema,v=b?z(b)===$.ARRAY:Array.isArray(d),c=m(d??null,v);JSON.stringify(p)!==JSON.stringify(c)&&l.setValue(e,c)}queueMicrotask(()=>{C.current=!1})}},[s?.customScopeValues,s?.customScopeFields,l,m,y]);const I=t.useMemo(()=>{const r=new Set;for(const e of g)r.add(e.resourceType);return Array.from(r)},[g]),{tResourceHeader:T}=W({component:E.APPLICATION_LEVEL_QUICK_SWITCHER,resource:I}),A=t.useMemo(()=>g.map(r=>r.fieldIdentifier),[g]),h=Ne({control:l.control,name:A});t.useEffect(()=>{C.current||A.forEach((r,e)=>{const d=h[e],p=s?.customScopeValues[r],b=y.get(r)?.schema,v=b?z(b)===$.ARRAY:!1;let c;if(d===void 0||d===""||d===null)c=null;else if(v){const N=Array.isArray(d)?d.filter(k=>typeof k=="string"&&k.length>0):[String(d)];c=N.length>0?N:null}else c=Array.isArray(d)?d[0]??null:String(d);JSON.stringify(c)!==JSON.stringify(p??null)&&s?.setScopeValue(r,c,{initiator:Ee.USER_SELECTION})})},[h,A,s,g,y]);const O=t.useCallback(r=>{const e=r.dependsOn?s?.allScopeValues?.[r.dependsOn]:null;return r.dependsOn?Array.isArray(e)?e.length===0:!e:!1},[s?.allScopeValues]),R=t.useMemo(()=>g.flatMap(r=>{const e=r.fieldIdentifier,d=y.get(e);if(!d)return Se.isDevelopment()&&console.warn(`[QuickSwitcher] No schema found for scope field "${e}" — field will not render.`),[];const{schema:p,isPrimaryKeyFallback:b}=d,c=z(p)===$.ARRAY,N=c?Le(p)??p:p,k=z(N),F=ve(N)||b?q.RESOURCE_REFERENCE:k===$.ENUM?q.ENUM:q.RAW,te=T(r.resourceType,"title"),oe=r.label||te||e;return[{fieldId:e,label:oe,schema:p,valueSchema:N,disabled:O(r),isMultiple:c,controlKind:F,targetResourceType:b?r.resourceType:void 0,placeholder:te||oe,optionDisplayMode:r.optionDisplayMode??Be,presentation:r.presentation??Me.CONTROL_ONLY,onClear:()=>l.setValue(e,c?[]:void 0,{shouldDirty:!0,shouldTouch:!0}),hasValue:(()=>{const D=l.getValues(e);return Array.isArray(D)?D.length>0:D!=null&&D!==""})(),definition:r}]}),[g,y,T,O,l,h]),M=t.useMemo(()=>n.containerType===L.SIDEBAR?"vertical":"horizontal",[n.containerType]);return{fields:R,formMethods:l,layoutDirection:M,focusTrigger:f}}function mn(n=j.BOTTOM){const{UIConfig:s,appComponentsConfiguration:i,shellAppearance:o}=P(),{tComponent:u}=W({component:E.APPLICATION_LEVEL_STATUS_BAR}),{status:a}=_e(),{notifications:f}=de(),l=i?.[L.STATUS_BAR],C=s?.currentBreakpoint,m=we(l)?l:void 0,g=m?.showConnectionStatus??!0,y=m?.showConnectionStatusOnMobile??!1,I=m?.showNotificationCount??!0,T=m?.showMemoryUsage??!1,A=t.useMemo(()=>I?f.length:0,[I,f.length]),h=t.useMemo(()=>(m?.statusItems??[]).map(c=>{const N=c.value!=null?String(c.value):void 0;switch(c.type){case ne.LINK:return{id:c.id,label:c.label,iconReference:c.icon,valueText:N,interaction:{type:ee.LINK,href:c.href}};case ne.BUTTON:return{id:c.id,label:c.label,iconReference:c.icon,valueText:N,interaction:{type:ee.BUTTON,onClick:c.onClick}};case ne.TEXT:default:return{id:c.id,label:c.label,iconReference:c.icon,valueText:N,interaction:{type:ee.STATIC}}}}),[m]),O=t.useMemo(()=>m?.style,[m]),R=t.useMemo(()=>{const c=C===U.MOBILE;return{height:m?.height??(c?28:32)}},[C,m]),M=t.useMemo(()=>{const c=n===j.TOP,N=n===j.BOTTOM,k=C===U.MOBILE,F=o===Pe.CONTINUOUS;return{isTop:c,isBottom:N,isMobile:k,backgroundClassName:m?.backgroundClassName??(F?"bg-transparent":"bg-surface-sunken"),textClassName:m?.textClassName??(F?"text-foreground":"text-surface-sunken-foreground"),showBorder:m?.showBorder??!F}},[n,C,m,o]),r=t.useMemo(()=>{const c=C===U.MOBILE;return g&&(!c||y)},[C,g,y]),e=I&&A>0,d=t.useMemo(()=>!T||typeof performance>"u"||!("memory"in performance)?null:`${Math.round((performance.memory?.usedJSHeapSize??0)/1048576)}MB`,[T]),p=t.useMemo(()=>ke(A),[A]),b=t.useMemo(()=>u(E.APPLICATION_LEVEL_STATUS_BAR,"notificationCount",{count:p}),[p,u]),v=t.useMemo(()=>{switch(a){case x.CONNECTED:return u(E.APPLICATION_LEVEL_STATUS_BAR,"connected");case x.CONNECTING:case x.RECONNECTING:return u(E.APPLICATION_LEVEL_STATUS_BAR,"reconnecting");case x.DISCONNECTED:case x.ERROR:default:return u(E.APPLICATION_LEVEL_STATUS_BAR,"disconnected")}},[a,u]);return{totalBadgeCount:A,connectionStatus:a,showConnectionStatus:g,showConnectionStatusOnMobile:y,shouldShowConnectionStatus:r,showNotificationCount:I,shouldShowNotificationCount:e,showMemoryUsage:T,memoryUsageLabel:d,notificationCountLabel:p,notificationCountAriaLabel:b,connectionStatusLabel:v,statusItems:h,dimensions:R,statusBarConfig:M,customStyle:O,currentBreakpoint:C}}function en(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function Tn(){const{UIConfig:n,appComponentsConfiguration:s}=P(),i=J(),{navigate:o}=Z(),u=X(),a=s?.[L.TOOLBAR],f=n?.currentBreakpoint,l=f===U.MOBILE,C=en(a)?a:void 0,m=t.useMemo(()=>Ve(C?.tools,u),[C?.tools,u]),g=t.useMemo(()=>!m?.length||!i?[]:Ue(m,i),[m,i]),y=t.useMemo(()=>g.map(A=>({id:A.id,label:A.label,icon:A.icon,iconOnly:A.iconOnly,onClick:()=>Q.dispatchNavigationForResolvedTarget(o,A,L.TOOLBAR)})),[g,o]),I=t.useMemo(()=>({placement:C?.placement??"top",compact:C?.compact??!1,showSeparator:C?.showSeparator??!0,hideOnMobile:C?.hideOnMobile??!1}),[C]),T=y.length>0&&!(l&&I.hideOnMobile);return{tools:y,toolbarConfig:I,shouldRender:T,currentBreakpoint:f}}function nn(n){return Fe.isRegistered(n,De.DEFAULT)}function tn(n,s,i=nn){return n.map(o=>{if(o.kind===Y.VIEW){const a=s.includes(o.viewRef);return!a&&typeof console<"u"&&console.warn(`[utility-panel] item "${o.label}" names viewRef "${o.viewRef}", which no declared application-scoped view carries. Declare it in the application's \`flowsActorsViews\`, or the panel has nothing to host for this item.`),{kind:Y.VIEW,viewRef:o.viewRef,resolvedViewRef:a?o.viewRef:null,icon:o.icon,label:o.label}}const u=i(o.componentRef);return!u&&typeof console<"u"&&console.warn(`[utility-panel] item "${o.label}" names componentRef "${o.componentRef}", which has no component registered under the default preset. Register it — an application component through its domain module's \`componentRegistrations\`, an engine one through its preset — or nothing will render for this item.`),{kind:Y.CUSTOM_COMPONENT,componentRef:o.componentRef,resolvedComponentRef:u?o.componentRef:null,icon:o.icon,label:o.label}})}function on(n){if(n)return Qe.map(s=>`${s}:${n.zones[s].stack.map(i=>i.id).join(",")}#${n.zones[s].activeTabId??""}`).join("|")}function Cn(n=K.END,s){const{UIConfig:i,appComponentsConfiguration:o,flowsActorsViews:u}=P(),[a,f]=t.useState(!1),l=t.useContext(xe),C=on(l?.state),m=t.useRef(void 0);t.useEffect(()=>{if(!a){m.current=void 0;return}if(m.current===void 0){m.current=C;return}C!==m.current&&f(!1)},[a,C]);const g=i?.currentBreakpoint,y=o?.[L.UTILITY_PANEL],I=He(y)?y:void 0,T=t.useMemo(()=>tn(s??I?.items??[],u?.map(b=>b.ref)??[]),[I,s,u]),A=t.useMemo(()=>I?.position??n,[I,n]),h=T.length===1?T[0]:void 0,O=h?.kind===Y.VIEW?Ke(h.viewRef):void 0,R=t.useMemo(()=>O?[je({family:re.FLOWS_ACTORS,translationRef:O})]:[],[O]),{tComponent:M,tView:r,isReady:e}=W({component:E.APPLICATION_LEVEL_UTILITY_PANEL,keys:R}),d=O?r(re.FLOWS_ACTORS,O,"title"):h?.kind===Y.CUSTOM_COMPONENT?h.label:Ye({tComponent:M,componentType:E.APPLICATION_LEVEL_UTILITY_PANEL,key:"title"}),p=I?.icon??(T.length===1?T[0].icon:void 0);return{isOpen:a,setIsOpen:f,items:T,itemCount:T.length,position:A,triggerIcon:p,panelName:d,isPanelNameReady:e,currentBreakpoint:g}}function sn(n,s){const i=Number(n);return Number.isFinite(i)?i:s}function gn(n=K.END,s=[]){const{UIConfig:i,appComponentsConfiguration:o}=P(),u=J(),{navigate:a}=Z(),{tComponent:f}=W({component:E.APPLICATION_LEVEL_CONTROL_PANEL}),l=X(),[C,m]=t.useState(!1),g=i?.currentBreakpoint,y=o?.[L.CONTROL_PANEL],I=typeof y=="object"&&y!==null?y.items:void 0,T=t.useMemo(()=>We(I,l),[I,l]),A=t.useMemo(()=>!T||!u?[]:ze(T,u),[T,u]),h=t.useMemo(()=>{const e={uncategorized:[]};for(const d of A){const p=d.section??"uncategorized";e[p]||(e[p]=[]),e[p].push(d)}return e},[A]),O=t.useMemo(()=>s.map(e=>{const d=!e.onChange;switch(e.type){case _.BUTTON:return{id:e.id,label:e.label,type:_.BUTTON,disabled:d,onTrigger:()=>e.onChange?.(!0)};case _.TOGGLE:{const p=e.value===!0;return{id:e.id,label:e.label,type:_.TOGGLE,disabled:d,value:p,onToggle:()=>e.onChange?.(!p)}}case _.SELECT:return{id:e.id,label:e.label,type:_.SELECT,disabled:d,value:e.value,options:(e.options??[]).map(p=>({label:p.label,value:p.value,isSelected:e.value===p.value,onSelect:()=>e.onChange?.(p.value)}))};case _.SLIDER:{const p=e.min??0,b=e.max??100,v=e.step??1,c=sn(e.value,p);return{id:e.id,label:e.label,type:_.SLIDER,disabled:d,value:c,min:p,max:b,step:v,onValueChange:N=>e.onChange?.(N)}}}}),[s]),R=t.useMemo(()=>Object.entries(h).filter(([,e])=>e.length>0).map(([e,d])=>({id:e,label:e==="uncategorized"?f(E.APPLICATION_LEVEL_CONTROL_PANEL,"actions"):f(E.APPLICATION_LEVEL_CONTROL_PANEL,e),items:d})),[h,f]),M=t.useCallback(e=>{m(!1),Q.dispatchNavigationForResolvedTarget(a,e,L.CONTROL_PANEL)},[a]),r=t.useMemo(()=>{const e=n;return e===K.START?S.START:e===K.END?S.END:e===j.TOP?S.TOP:e===j.BOTTOM?S.BOTTOM:S.END},[n]);return{isOpen:C,setIsOpen:m,groupedItems:h,sections:R,controls:O,handleItemClick:M,sheetSide:r,isNavigationLoading:!u,navigationItemCount:A.length,currentBreakpoint:g}}function V(n,s,i,o){const u=E.APPLICATION_LEVEL_NOTIFICATION_CENTER,a=n(u,s,o),f=`components.${u}.${s}`;return a===f?i??a:a}function rn(n,s,i,o){const u=s-n,a=Math.floor(u/6e4),f=Math.floor(u/36e5),l=Math.floor(u/864e5);return a<1?V(i,"timeJustNow"):a<60?V(i,"timeMinutesAgo",void 0,{count:a}):f<24?V(i,"timeHoursAgo",void 0,{count:f}):l<7?V(i,"timeDaysAgo",void 0,{count:l}):o(n)}function an(n){switch(n){case"success":return G.CHECK_CIRCLE;case"warning":return G.WARNING;case"error":return G.X_CIRCLE;default:return G.INFO}}function An(n,s,i={}){const{notifications:o,clearAll:u,removeNotification:a}=de(),{on:f}=ue(),{tComponent:l,formatDate:C}=W({component:E.APPLICATION_LEVEL_NOTIFICATION_CENTER}),[m,g]=t.useState(!1),[y,I]=t.useState(()=>Date.now()),T=i.listenForHotkeys!==!1,A=n!==void 0&&s!==void 0,h=A?n:m,O=t.useRef(h);O.current=h;const R=t.useCallback(e=>{if(A&&s){s(e);return}g(e)},[A,s]);t.useEffect(()=>T?f(le.HOTKEY_NOTIFICATIONS_OPEN,()=>{R(!O.current)}):void 0,[f,T,R]),t.useEffect(()=>{const e=globalThis.setInterval(()=>{I(Date.now())},6e4);return()=>globalThis.clearInterval(e)},[]);const M=t.useMemo(()=>o.map(e=>{let d="",p=e.message;return e.source==="resource"&&e.resourceContext?(d=V(l,"resourceNotificationTitle",e.resourceContext.resourceType,{resourceType:e.resourceContext.resourceType}),p||(p=V(l,"resourceNotificationMessage",e.resourceContext.operationIdentifier,{operation:e.resourceContext.operationIdentifier}))):e.source==="custom"&&e.identifier&&(d=""),!d&&p&&(d=p,p=""),!d&&e.identifier&&(d=e.identifier),d||(d=l(E.APPLICATION_LEVEL_NOTIFICATION_CENTER,"title")),{id:e.id,type:e.type,source:e.source,timestamp:e.timestamp,displayTitle:d,displayMessage:p,relativeTimeLabel:rn(e.timestamp,y,l,C),iconReference:an(e.type),nextStep:e.nextStep}}),[o,l,y,C]),r=t.useCallback(e=>{a(e)},[a]);return{isOpen:h,setIsOpen:R,sessionNotifications:M,notificationCount:o.length,handleClearAll:u,dismissNotification:r}}function cn(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function hn(){const{UIConfig:n,appComponentsConfiguration:s}=P(),i=J(),{navigate:o}=Z(),u=X(),a=s?.[L.QUICK_ACTION_BUTTON],f=cn(a)?a:void 0,l=t.useMemo(()=>$e(f?.actions,u),[f?.actions,u]),C=t.useMemo(()=>!l?.length||!i?[]:Ge(l,i),[l,i]),m=t.useMemo(()=>C.map(h=>({id:h.id,label:h.label,icon:h.icon,displayPolicy:h.displayPolicy,onClick:()=>Q.dispatchNavigationForResolvedTarget(o,h,L.QUICK_ACTION_BUTTON)})),[C,o]),{primaryAction:g,menuActions:y}=t.useMemo(()=>{const h=m.find(R=>R.displayPolicy===ae.PRIMARY)??null,O=m.filter(R=>R.displayPolicy!==ae.PRIMARY);return{primaryAction:h,menuActions:O}},[m]),[I,T]=t.useState(!1),A=t.useCallback(h=>{T(!1),h.onClick()},[]);return{allItems:m,primaryAction:g,menuActions:y,isOpen:I,setIsOpen:T,handleActionClick:A,hasActions:!!l?.length,isNavigationLoading:!!l?.length&&i===null,currentBreakpoint:n?.currentBreakpoint}}export{tn as a,gn as b,fn as c,An as d,ln as e,hn as f,pn as g,mn as h,nn as i,Tn as j,Cn as k,on as l,qe as r,dn as u};
@@ -0,0 +1 @@
1
+ import{a5 as g,ab as h,aq as o,ar as u,aa as s}from"./index-Ccf8muta.js";const m={lessThanXSeconds:{one:"dưới 1 giây",other:"dưới {{count}} giây"},xSeconds:{one:"1 giây",other:"{{count}} giây"},halfAMinute:"nửa phút",lessThanXMinutes:{one:"dưới 1 phút",other:"dưới {{count}} phút"},xMinutes:{one:"1 phút",other:"{{count}} phút"},aboutXHours:{one:"khoảng 1 giờ",other:"khoảng {{count}} giờ"},xHours:{one:"1 giờ",other:"{{count}} giờ"},xDays:{one:"1 ngày",other:"{{count}} ngày"},aboutXWeeks:{one:"khoảng 1 tuần",other:"khoảng {{count}} tuần"},xWeeks:{one:"1 tuần",other:"{{count}} tuần"},aboutXMonths:{one:"khoảng 1 tháng",other:"khoảng {{count}} tháng"},xMonths:{one:"1 tháng",other:"{{count}} tháng"},aboutXYears:{one:"khoảng 1 năm",other:"khoảng {{count}} năm"},xYears:{one:"1 năm",other:"{{count}} năm"},overXYears:{one:"hơn 1 năm",other:"hơn {{count}} năm"},almostXYears:{one:"gần 1 năm",other:"gần {{count}} năm"}},d=(t,a,n)=>{let e;const r=m[t];return typeof r=="string"?e=r:a===1?e=r.one:e=r.other.replace("{{count}}",String(a)),n?.addSuffix?n.comparison&&n.comparison>0?e+" nữa":e+" trước":e},c={full:"EEEE, 'ngày' d MMMM 'năm' y",long:"'ngày' d MMMM 'năm' y",medium:"d MMM 'năm' y",short:"dd/MM/y"},l={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},T={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},b={date:g({formats:c,defaultWidth:"full"}),time:g({formats:l,defaultWidth:"full"}),dateTime:g({formats:T,defaultWidth:"full"})},f={lastWeek:"eeee 'tuần trước vào lúc' p",yesterday:"'hôm qua vào lúc' p",today:"'hôm nay vào lúc' p",tomorrow:"'ngày mai vào lúc' p",nextWeek:"eeee 'tới vào lúc' p",other:"P"},w=(t,a,n,e)=>f[t],y={narrow:["TCN","SCN"],abbreviated:["trước CN","sau CN"],wide:["trước Công Nguyên","sau Công Nguyên"]},v={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["Quý 1","Quý 2","Quý 3","Quý 4"]},M={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["quý I","quý II","quý III","quý IV"]},P={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["Thg 1","Thg 2","Thg 3","Thg 4","Thg 5","Thg 6","Thg 7","Thg 8","Thg 9","Thg 10","Thg 11","Thg 12"],wide:["Tháng Một","Tháng Hai","Tháng Ba","Tháng Tư","Tháng Năm","Tháng Sáu","Tháng Bảy","Tháng Tám","Tháng Chín","Tháng Mười","Tháng Mười Một","Tháng Mười Hai"]},p={narrow:["01","02","03","04","05","06","07","08","09","10","11","12"],abbreviated:["thg 1","thg 2","thg 3","thg 4","thg 5","thg 6","thg 7","thg 8","thg 9","thg 10","thg 11","thg 12"],wide:["tháng 01","tháng 02","tháng 03","tháng 04","tháng 05","tháng 06","tháng 07","tháng 08","tháng 09","tháng 10","tháng 11","tháng 12"]},N={narrow:["CN","T2","T3","T4","T5","T6","T7"],short:["CN","Th 2","Th 3","Th 4","Th 5","Th 6","Th 7"],abbreviated:["CN","Thứ 2","Thứ 3","Thứ 4","Thứ 5","Thứ 6","Thứ 7"],wide:["Chủ Nhật","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ Sáu","Thứ Bảy"]},C={narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"}},W={narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"giữa trưa",morning:"vào buổi sáng",afternoon:"vào buổi chiều",evening:"vào buổi tối",night:"vào ban đêm"}},H=(t,a)=>{const n=Number(t),e=a?.unit;if(e==="quarter")switch(n){case 1:return"I";case 2:return"II";case 3:return"III";case 4:return"IV"}else if(e==="day")switch(n){case 1:return"thứ 2";case 2:return"thứ 3";case 3:return"thứ 4";case 4:return"thứ 5";case 5:return"thứ 6";case 6:return"thứ 7";case 7:return"chủ nhật"}else{if(e==="week")return n===1?"thứ nhất":"thứ "+n;if(e==="dayOfYear")return n===1?"đầu tiên":"thứ "+n}return String(n)},k={ordinalNumber:H,era:h({values:y,defaultWidth:"wide"}),quarter:h({values:v,defaultWidth:"wide",formattingValues:M,defaultFormattingWidth:"wide",argumentCallback:t=>t-1}),month:h({values:P,defaultWidth:"wide",formattingValues:p,defaultFormattingWidth:"wide"}),day:h({values:N,defaultWidth:"wide"}),dayPeriod:h({values:C,defaultWidth:"wide",formattingValues:W,defaultFormattingWidth:"wide"})},S=/^(\d+)/i,_=/\d+/i,D={narrow:/^(tcn|scn)/i,abbreviated:/^(trước CN|sau CN)/i,wide:/^(trước Công Nguyên|sau Công Nguyên)/i},I={any:[/^t/i,/^s/i]},Q={narrow:/^([1234]|i{1,3}v?)/i,abbreviated:/^q([1234]|i{1,3}v?)/i,wide:/^quý ([1234]|i{1,3}v?)/i},V={any:[/(1|i)$/i,/(2|ii)$/i,/(3|iii)$/i,/(4|iv)$/i]},B={narrow:/^(0?[2-9]|10|11|12|0?1)/i,abbreviated:/^thg[ _]?(0?[1-9](?!\d)|10|11|12)/i,wide:/^tháng ?(Một|Hai|Ba|Tư|Năm|Sáu|Bảy|Tám|Chín|Mười|Mười ?Một|Mười ?Hai|0?[1-9](?!\d)|10|11|12)/i},q={narrow:[/0?1$/i,/0?2/i,/3/,/4/,/5/,/6/,/7/,/8/,/9/,/10/,/11/,/12/],abbreviated:[/^thg[ _]?0?1(?!\d)/i,/^thg[ _]?0?2/i,/^thg[ _]?0?3/i,/^thg[ _]?0?4/i,/^thg[ _]?0?5/i,/^thg[ _]?0?6/i,/^thg[ _]?0?7/i,/^thg[ _]?0?8/i,/^thg[ _]?0?9/i,/^thg[ _]?10/i,/^thg[ _]?11/i,/^thg[ _]?12/i],wide:[/^tháng ?(Một|0?1(?!\d))/i,/^tháng ?(Hai|0?2)/i,/^tháng ?(Ba|0?3)/i,/^tháng ?(Tư|0?4)/i,/^tháng ?(Năm|0?5)/i,/^tháng ?(Sáu|0?6)/i,/^tháng ?(Bảy|0?7)/i,/^tháng ?(Tám|0?8)/i,/^tháng ?(Chín|0?9)/i,/^tháng ?(Mười|10)/i,/^tháng ?(Mười ?Một|11)/i,/^tháng ?(Mười ?Hai|12)/i]},x={narrow:/^(CN|T2|T3|T4|T5|T6|T7)/i,short:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,abbreviated:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,wide:/^(Chủ ?Nhật|Chúa ?Nhật|thứ ?Hai|thứ ?Ba|thứ ?Tư|thứ ?Năm|thứ ?Sáu|thứ ?Bảy)/i},F={narrow:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],short:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],abbreviated:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],wide:[/(Chủ|Chúa) ?Nhật/i,/Hai/i,/Ba/i,/Tư/i,/Năm/i,/Sáu/i,/Bảy/i]},$={narrow:/^(a|p|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,abbreviated:/^(am|pm|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,wide:/^(ch[^i]*|sa|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i},z={any:{am:/^(a|sa)/i,pm:/^(p|ch[^i]*)/i,midnight:/nửa đêm/i,noon:/trưa/i,morning:/sáng/i,afternoon:/chiều/i,evening:/tối/i,night:/^đêm/i}},X={ordinalNumber:u({matchPattern:S,parsePattern:_,valueCallback:t=>parseInt(t,10)}),era:o({matchPatterns:D,defaultMatchWidth:"wide",parsePatterns:I,defaultParseWidth:"any"}),quarter:o({matchPatterns:Q,defaultMatchWidth:"wide",parsePatterns:V,defaultParseWidth:"any",valueCallback:t=>t+1}),month:o({matchPatterns:B,defaultMatchWidth:"wide",parsePatterns:q,defaultParseWidth:"wide"}),day:o({matchPatterns:x,defaultMatchWidth:"wide",parsePatterns:F,defaultParseWidth:"wide"}),dayPeriod:o({matchPatterns:$,defaultMatchWidth:"wide",parsePatterns:z,defaultParseWidth:"any"})},L={code:"vi",formatDistance:d,formatLong:b,formatRelative:w,localize:k,match:X,options:{weekStartsOn:1,firstWeekContainsDate:1}},E={...L,labels:{labelDayButton:(t,a,n,e)=>{let i=(e??new s(n)).format(t,"PPPP");return a.today&&(i=`Hôm nay, ${i}`),a.selected&&(i=`${i}, đã chọn`),i},labelMonthDropdown:"Chọn tháng",labelNext:"Đến tháng tiếp theo",labelPrevious:"Đến tháng trước",labelWeekNumber:t=>`Tuần ${t}`,labelYearDropdown:"Chọn năm",labelGrid:(t,a,n)=>(n??new s(a)).formatMonthYear(t),labelGridcell:(t,a,n,e)=>{let i=(e??new s(n)).format(t,"PPPP");return a?.today&&(i=`Hôm nay, ${i}`),i},labelNav:"Thanh điều hướng",labelWeekNumberHeader:"Số tuần",labelWeekday:(t,a,n)=>(n??new s(a)).format(t,"cccc")}};export{E as vi};
@@ -1,4 +1,4 @@
1
- import{s as ei,g as si,q as Lt,p as ni,a as ai,b as ri,_ as a,l as Et,I as oi,d as hi,y as li,G as xt,h as ci,E as It,F as ui,a0 as gi,aE as xi,a8 as Tt}from"./mermaid.core-DL97wpul.js";import"./index-CHO8NA6v.js";import{i as di}from"./init-Gi6I4Gst.js";import{o as fi}from"./ordinal-Cboi1Yqb.js";import{l as Dt}from"./linear-BIzHWTWZ.js";import"./mermaid-VLURNSYL-DPc-hyxN.js";import"./index-e-4cSkrt.js";import"./maximize-2-Bl11RTvy.js";import"./defaultLocale-DX6XiGOO.js";function pi(t,i,e){t=+t,i=+i,e=(n=arguments.length)<2?(i=t,t=0,1):n<3?1:+e;for(var s=-1,n=Math.max(0,Math.ceil((i-t)/e))|0,x=new Array(n);++s<n;)x[s]=t+s*e;return x}function ht(){var t=fi().unknown(void 0),i=t.domain,e=t.range,s=0,n=1,x,g,m=!1,S=0,D=0,v=.5;delete t.unknown;function w(){var y=i().length,E=n<s,T=E?n:s,P=E?s:n;x=(P-T)/Math.max(1,y-S+D*2),m&&(x=Math.floor(x)),T+=(P-T-x*(y-S))*v,g=x*(1-S),m&&(T=Math.round(T),g=Math.round(g));var I=pi(y).map(function(p){return T+x*p});return e(E?I.reverse():I)}return t.domain=function(y){return arguments.length?(i(y),w()):i()},t.range=function(y){return arguments.length?([s,n]=y,s=+s,n=+n,w()):[s,n]},t.rangeRound=function(y){return[s,n]=y,s=+s,n=+n,m=!0,w()},t.bandwidth=function(){return g},t.step=function(){return x},t.round=function(y){return arguments.length?(m=!!y,w()):m},t.padding=function(y){return arguments.length?(S=Math.min(1,D=+y),w()):S},t.paddingInner=function(y){return arguments.length?(S=Math.min(1,y),w()):S},t.paddingOuter=function(y){return arguments.length?(D=+y,w()):D},t.align=function(y){return arguments.length?(v=Math.max(0,Math.min(1,y)),w()):v},t.copy=function(){return ht(i(),[s,n]).round(m).paddingInner(S).paddingOuter(D).align(v)},di.apply(w(),arguments)}var lt=(function(){var t=a(function(F,o,c,u){for(c=c||{},u=F.length;u--;c[F[u]]=o);return c},"o"),i=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],n=[1,5],x=[1,6],g=[1,7],m=[1,5,10,12,14,16,18,19,21,23,34,35,36],S=[1,25],D=[1,26],v=[1,28],w=[1,29],y=[1,30],E=[1,31],T=[1,32],P=[1,33],I=[1,34],p=[1,35],_=[1,36],l=[1,37],W=[1,43],z=[1,42],U=[1,47],X=[1,50],h=[1,10,12,14,16,18,19,21,23,34,35,36],L=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],C=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],k=[1,64],$={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:a(function(o,c,u,d,A,r,j){var f=r.length-1;switch(A){case 5:d.setOrientation(r[f]);break;case 9:d.setDiagramTitle(r[f].text.trim());break;case 12:d.setLineData({text:"",type:"text"},r[f]);break;case 13:d.setLineData(r[f-1],r[f]);break;case 14:d.setBarData({text:"",type:"text"},r[f]);break;case 15:d.setBarData(r[f-1],r[f]);break;case 16:this.$=r[f].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=r[f].trim(),d.setAccDescription(this.$);break;case 19:this.$=r[f-1];break;case 20:this.$=[Number(r[f-2]),...r[f]];break;case 21:this.$=[Number(r[f])];break;case 22:d.setXAxisTitle(r[f]);break;case 23:d.setXAxisTitle(r[f-1]);break;case 24:d.setXAxisTitle({type:"text",text:""});break;case 25:d.setXAxisBand(r[f]);break;case 26:d.setXAxisRangeData(Number(r[f-2]),Number(r[f]));break;case 27:this.$=r[f-1];break;case 28:this.$=[r[f-2],...r[f]];break;case 29:this.$=[r[f]];break;case 30:d.setYAxisTitle(r[f]);break;case 31:d.setYAxisTitle(r[f-1]);break;case 32:d.setYAxisTitle({type:"text",text:""});break;case 33:d.setYAxisRangeData(Number(r[f-2]),Number(r[f]));break;case 37:this.$={text:r[f],type:"text"};break;case 38:this.$={text:r[f],type:"text"};break;case 39:this.$={text:r[f],type:"markdown"};break;case 40:this.$=r[f];break;case 41:this.$=r[f-1]+""+r[f];break}},"anonymous"),table:[t(i,e,{3:1,4:2,7:4,5:s,34:n,35:x,36:g}),{1:[3]},t(i,e,{4:2,7:4,3:8,5:s,34:n,35:x,36:g}),t(i,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:n,35:x,36:g}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(m,[2,34]),t(m,[2,35]),t(m,[2,36]),{1:[2,1]},t(i,e,{4:2,7:4,3:21,5:s,34:n,35:x,36:g}),{1:[2,3]},t(m,[2,5]),t(i,[2,7],{4:22,34:n,35:x,36:g}),{11:23,37:24,38:S,39:D,40:27,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l},{11:39,13:38,24:W,27:z,29:40,30:41,37:24,38:S,39:D,40:27,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l},{11:45,15:44,27:U,33:46,37:24,38:S,39:D,40:27,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l},{11:49,17:48,24:X,37:24,38:S,39:D,40:27,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l},{11:52,17:51,24:X,37:24,38:S,39:D,40:27,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l},{20:[1,53]},{22:[1,54]},t(h,[2,18]),{1:[2,2]},t(h,[2,8]),t(h,[2,9]),t(L,[2,37],{40:55,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l}),t(L,[2,38]),t(L,[2,39]),t(C,[2,40]),t(C,[2,42]),t(C,[2,43]),t(C,[2,44]),t(C,[2,45]),t(C,[2,46]),t(C,[2,47]),t(C,[2,48]),t(C,[2,49]),t(C,[2,50]),t(C,[2,51]),t(h,[2,10]),t(h,[2,22],{30:41,29:56,24:W,27:z}),t(h,[2,24]),t(h,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:S,39:D,40:27,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l},t(h,[2,11]),t(h,[2,30],{33:60,27:U}),t(h,[2,32]),{31:[1,61]},t(h,[2,12]),{17:62,24:X},{25:63,27:k},t(h,[2,14]),{17:65,24:X},t(h,[2,16]),t(h,[2,17]),t(C,[2,41]),t(h,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(h,[2,31]),{27:[1,69]},t(h,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(h,[2,15]),t(h,[2,26]),t(h,[2,27]),{11:59,32:72,37:24,38:S,39:D,40:27,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l},t(h,[2,33]),t(h,[2,19]),{25:73,27:k},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:a(function(o,c){if(c.recoverable)this.trace(o);else{var u=new Error(o);throw u.hash=c,u}},"parseError"),parse:a(function(o){var c=this,u=[0],d=[],A=[null],r=[],j=this.table,f="",J=0,St=0,Zt=2,_t=1,Jt=r.slice.call(arguments,1),R=Object.create(this.lexer),Y={yy:{}};for(var nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,nt)&&(Y.yy[nt]=this.yy[nt]);R.setInput(o,Y.yy),Y.yy.lexer=R,Y.yy.parser=this,typeof R.yylloc>"u"&&(R.yylloc={});var at=R.yylloc;r.push(at);var ti=R.options&&R.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ii(V){u.length=u.length-2*V,A.length=A.length-V,r.length=r.length-V}a(ii,"popStack");function kt(){var V;return V=d.pop()||R.lex()||_t,typeof V!="number"&&(V instanceof Array&&(d=V,V=d.pop()),V=c.symbols_[V]||V),V}a(kt,"lex");for(var M,H,B,rt,q={},tt,O,Rt,it;;){if(H=u[u.length-1],this.defaultActions[H]?B=this.defaultActions[H]:((M===null||typeof M>"u")&&(M=kt()),B=j[H]&&j[H][M]),typeof B>"u"||!B.length||!B[0]){var ot="";it=[];for(tt in j[H])this.terminals_[tt]&&tt>Zt&&it.push("'"+this.terminals_[tt]+"'");R.showPosition?ot="Parse error on line "+(J+1)+`:
1
+ import{s as ei,g as si,q as Lt,p as ni,a as ai,b as ri,_ as a,l as Et,I as oi,d as hi,y as li,G as xt,h as ci,E as It,F as ui,a0 as gi,aE as xi,a8 as Tt}from"./mermaid.core-Bm9ZP7gJ.js";import"./index-Ccf8muta.js";import{i as di}from"./init-Gi6I4Gst.js";import{o as fi}from"./ordinal-Cboi1Yqb.js";import{l as Dt}from"./linear-DgScXpWB.js";import"./mermaid-VLURNSYL-CFdBlgNU.js";import"./index-e-4cSkrt.js";import"./maximize-2-B0LqzzJD.js";import"./defaultLocale-DX6XiGOO.js";function pi(t,i,e){t=+t,i=+i,e=(n=arguments.length)<2?(i=t,t=0,1):n<3?1:+e;for(var s=-1,n=Math.max(0,Math.ceil((i-t)/e))|0,x=new Array(n);++s<n;)x[s]=t+s*e;return x}function ht(){var t=fi().unknown(void 0),i=t.domain,e=t.range,s=0,n=1,x,g,m=!1,S=0,D=0,v=.5;delete t.unknown;function w(){var y=i().length,E=n<s,T=E?n:s,P=E?s:n;x=(P-T)/Math.max(1,y-S+D*2),m&&(x=Math.floor(x)),T+=(P-T-x*(y-S))*v,g=x*(1-S),m&&(T=Math.round(T),g=Math.round(g));var I=pi(y).map(function(p){return T+x*p});return e(E?I.reverse():I)}return t.domain=function(y){return arguments.length?(i(y),w()):i()},t.range=function(y){return arguments.length?([s,n]=y,s=+s,n=+n,w()):[s,n]},t.rangeRound=function(y){return[s,n]=y,s=+s,n=+n,m=!0,w()},t.bandwidth=function(){return g},t.step=function(){return x},t.round=function(y){return arguments.length?(m=!!y,w()):m},t.padding=function(y){return arguments.length?(S=Math.min(1,D=+y),w()):S},t.paddingInner=function(y){return arguments.length?(S=Math.min(1,y),w()):S},t.paddingOuter=function(y){return arguments.length?(D=+y,w()):D},t.align=function(y){return arguments.length?(v=Math.max(0,Math.min(1,y)),w()):v},t.copy=function(){return ht(i(),[s,n]).round(m).paddingInner(S).paddingOuter(D).align(v)},di.apply(w(),arguments)}var lt=(function(){var t=a(function(F,o,c,u){for(c=c||{},u=F.length;u--;c[F[u]]=o);return c},"o"),i=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],n=[1,5],x=[1,6],g=[1,7],m=[1,5,10,12,14,16,18,19,21,23,34,35,36],S=[1,25],D=[1,26],v=[1,28],w=[1,29],y=[1,30],E=[1,31],T=[1,32],P=[1,33],I=[1,34],p=[1,35],_=[1,36],l=[1,37],W=[1,43],z=[1,42],U=[1,47],X=[1,50],h=[1,10,12,14,16,18,19,21,23,34,35,36],L=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],C=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],k=[1,64],$={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:a(function(o,c,u,d,A,r,j){var f=r.length-1;switch(A){case 5:d.setOrientation(r[f]);break;case 9:d.setDiagramTitle(r[f].text.trim());break;case 12:d.setLineData({text:"",type:"text"},r[f]);break;case 13:d.setLineData(r[f-1],r[f]);break;case 14:d.setBarData({text:"",type:"text"},r[f]);break;case 15:d.setBarData(r[f-1],r[f]);break;case 16:this.$=r[f].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=r[f].trim(),d.setAccDescription(this.$);break;case 19:this.$=r[f-1];break;case 20:this.$=[Number(r[f-2]),...r[f]];break;case 21:this.$=[Number(r[f])];break;case 22:d.setXAxisTitle(r[f]);break;case 23:d.setXAxisTitle(r[f-1]);break;case 24:d.setXAxisTitle({type:"text",text:""});break;case 25:d.setXAxisBand(r[f]);break;case 26:d.setXAxisRangeData(Number(r[f-2]),Number(r[f]));break;case 27:this.$=r[f-1];break;case 28:this.$=[r[f-2],...r[f]];break;case 29:this.$=[r[f]];break;case 30:d.setYAxisTitle(r[f]);break;case 31:d.setYAxisTitle(r[f-1]);break;case 32:d.setYAxisTitle({type:"text",text:""});break;case 33:d.setYAxisRangeData(Number(r[f-2]),Number(r[f]));break;case 37:this.$={text:r[f],type:"text"};break;case 38:this.$={text:r[f],type:"text"};break;case 39:this.$={text:r[f],type:"markdown"};break;case 40:this.$=r[f];break;case 41:this.$=r[f-1]+""+r[f];break}},"anonymous"),table:[t(i,e,{3:1,4:2,7:4,5:s,34:n,35:x,36:g}),{1:[3]},t(i,e,{4:2,7:4,3:8,5:s,34:n,35:x,36:g}),t(i,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:n,35:x,36:g}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(m,[2,34]),t(m,[2,35]),t(m,[2,36]),{1:[2,1]},t(i,e,{4:2,7:4,3:21,5:s,34:n,35:x,36:g}),{1:[2,3]},t(m,[2,5]),t(i,[2,7],{4:22,34:n,35:x,36:g}),{11:23,37:24,38:S,39:D,40:27,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l},{11:39,13:38,24:W,27:z,29:40,30:41,37:24,38:S,39:D,40:27,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l},{11:45,15:44,27:U,33:46,37:24,38:S,39:D,40:27,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l},{11:49,17:48,24:X,37:24,38:S,39:D,40:27,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l},{11:52,17:51,24:X,37:24,38:S,39:D,40:27,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l},{20:[1,53]},{22:[1,54]},t(h,[2,18]),{1:[2,2]},t(h,[2,8]),t(h,[2,9]),t(L,[2,37],{40:55,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l}),t(L,[2,38]),t(L,[2,39]),t(C,[2,40]),t(C,[2,42]),t(C,[2,43]),t(C,[2,44]),t(C,[2,45]),t(C,[2,46]),t(C,[2,47]),t(C,[2,48]),t(C,[2,49]),t(C,[2,50]),t(C,[2,51]),t(h,[2,10]),t(h,[2,22],{30:41,29:56,24:W,27:z}),t(h,[2,24]),t(h,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:S,39:D,40:27,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l},t(h,[2,11]),t(h,[2,30],{33:60,27:U}),t(h,[2,32]),{31:[1,61]},t(h,[2,12]),{17:62,24:X},{25:63,27:k},t(h,[2,14]),{17:65,24:X},t(h,[2,16]),t(h,[2,17]),t(C,[2,41]),t(h,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(h,[2,31]),{27:[1,69]},t(h,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(h,[2,15]),t(h,[2,26]),t(h,[2,27]),{11:59,32:72,37:24,38:S,39:D,40:27,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l},t(h,[2,33]),t(h,[2,19]),{25:73,27:k},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:a(function(o,c){if(c.recoverable)this.trace(o);else{var u=new Error(o);throw u.hash=c,u}},"parseError"),parse:a(function(o){var c=this,u=[0],d=[],A=[null],r=[],j=this.table,f="",J=0,St=0,Zt=2,_t=1,Jt=r.slice.call(arguments,1),R=Object.create(this.lexer),Y={yy:{}};for(var nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,nt)&&(Y.yy[nt]=this.yy[nt]);R.setInput(o,Y.yy),Y.yy.lexer=R,Y.yy.parser=this,typeof R.yylloc>"u"&&(R.yylloc={});var at=R.yylloc;r.push(at);var ti=R.options&&R.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ii(V){u.length=u.length-2*V,A.length=A.length-V,r.length=r.length-V}a(ii,"popStack");function kt(){var V;return V=d.pop()||R.lex()||_t,typeof V!="number"&&(V instanceof Array&&(d=V,V=d.pop()),V=c.symbols_[V]||V),V}a(kt,"lex");for(var M,H,B,rt,q={},tt,O,Rt,it;;){if(H=u[u.length-1],this.defaultActions[H]?B=this.defaultActions[H]:((M===null||typeof M>"u")&&(M=kt()),B=j[H]&&j[H][M]),typeof B>"u"||!B.length||!B[0]){var ot="";it=[];for(tt in j[H])this.terminals_[tt]&&tt>Zt&&it.push("'"+this.terminals_[tt]+"'");R.showPosition?ot="Parse error on line "+(J+1)+`:
2
2
  `+R.showPosition()+`
3
3
  Expecting `+it.join(", ")+", got '"+(this.terminals_[M]||M)+"'":ot="Parse error on line "+(J+1)+": Unexpected "+(M==_t?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(ot,{text:R.match,token:this.terminals_[M]||M,line:R.yylineno,loc:at,expected:it})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+H+", token: "+M);switch(B[0]){case 1:u.push(M),A.push(R.yytext),r.push(R.yylloc),u.push(B[1]),M=null,St=R.yyleng,f=R.yytext,J=R.yylineno,at=R.yylloc;break;case 2:if(O=this.productions_[B[1]][1],q.$=A[A.length-O],q._$={first_line:r[r.length-(O||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(O||1)].first_column,last_column:r[r.length-1].last_column},ti&&(q._$.range=[r[r.length-(O||1)].range[0],r[r.length-1].range[1]]),rt=this.performAction.apply(q,[f,St,J,Y.yy,B[1],A,r].concat(Jt)),typeof rt<"u")return rt;O&&(u=u.slice(0,-1*O*2),A=A.slice(0,-1*O),r=r.slice(0,-1*O)),u.push(this.productions_[B[1]][0]),A.push(q.$),r.push(q._$),Rt=j[u[u.length-2]][u[u.length-1]],u.push(Rt);break;case 3:return!0}}return!0},"parse")},Ct=(function(){var F={EOF:1,parseError:a(function(c,u){if(this.yy.parser)this.yy.parser.parseError(c,u);else throw new Error(c)},"parseError"),setInput:a(function(o,c){return this.yy=c||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var c=o.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:a(function(o){var c=o.length,u=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var A=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===d.length?this.yylloc.first_column:0)+d[d.length-u.length].length-u[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(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:a(function(o){this.unput(this.match.slice(o))},"less"),pastInput:a(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var o=this.pastInput(),c=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
@@ -0,0 +1 @@
1
+ import{a5 as l,ab as i,aq as s,ar as u,aa as d}from"./index-Ccf8muta.js";import{i as c}from"./isSameWeek-CVp5lUeg.js";const h={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},f=(t,a,e)=>{let n;const r=h[t];return typeof r=="string"?n=r:a===1?n=r.one:n=r.other.replace("{{count}}",String(a)),e?.addSuffix?e.comparison&&e.comparison>0?n+"内":n+"前":n},b={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},g={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},P={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},y={date:l({formats:b,defaultWidth:"full"}),time:l({formats:g,defaultWidth:"full"}),dateTime:l({formats:P,defaultWidth:"full"})};function m(t,a,e){const n="eeee p";return c(t,a,e)?n:t.getTime()>a.getTime()?"'下个'"+n:"'上个'"+n}const w={lastWeek:m,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:m,other:"PP p"},p=(t,a,e,n)=>{const r=w[t];return typeof r=="function"?r(a,e,n):r},v={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},W={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},M={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},k={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},D={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},N={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},x=(t,a)=>{const e=Number(t);switch(a?.unit){case"date":return e.toString()+"日";case"hour":return e.toString()+"时";case"minute":return e.toString()+"分";case"second":return e.toString()+"秒";default:return"第 "+e.toString()}},z={ordinalNumber:x,era:i({values:v,defaultWidth:"wide"}),quarter:i({values:W,defaultWidth:"wide",argumentCallback:t=>t-1}),month:i({values:M,defaultWidth:"wide"}),day:i({values:k,defaultWidth:"wide"}),dayPeriod:i({values:D,defaultWidth:"wide",formattingValues:N,defaultFormattingWidth:"wide"})},S=/^(第\s*)?\d+(日|时|分|秒)?/i,F=/\d+/i,V={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},X={any:[/^(前)/i,/^(公元)/i]},C={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},L={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},E={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},T={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Y={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},$={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},q={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},H={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},O={ordinalNumber:u({matchPattern:S,parsePattern:F,valueCallback:t=>parseInt(t,10)}),era:s({matchPatterns:V,defaultMatchWidth:"wide",parsePatterns:X,defaultParseWidth:"any"}),quarter:s({matchPatterns:C,defaultMatchWidth:"wide",parsePatterns:L,defaultParseWidth:"any",valueCallback:t=>t+1}),month:s({matchPatterns:E,defaultMatchWidth:"wide",parsePatterns:T,defaultParseWidth:"any"}),day:s({matchPatterns:Y,defaultMatchWidth:"wide",parsePatterns:$,defaultParseWidth:"any"}),dayPeriod:s({matchPatterns:q,defaultMatchWidth:"any",parsePatterns:H,defaultParseWidth:"any"})},R={code:"zh-CN",formatDistance:f,formatLong:y,formatRelative:p,localize:z,match:O,options:{weekStartsOn:1,firstWeekContainsDate:4}},A={...R,labels:{labelDayButton:(t,a,e,n)=>{let o=(n??new d(e)).format(t,"PPPP");return a.today&&(o=`今天,${o}`),a.selected&&(o=`${o},已选择`),o},labelMonthDropdown:"选择月份",labelNext:"前往下个月",labelPrevious:"前往上个月",labelWeekNumber:t=>`第 ${t} 周`,labelYearDropdown:"选择年份",labelGrid:(t,a,e)=>(e??new d(a)).formatMonthYear(t),labelGridcell:(t,a,e,n)=>{let o=(n??new d(e)).format(t,"PPPP");return a?.today&&(o=`今天,${o}`),o},labelNav:"导航栏",labelWeekNumberHeader:"周数",labelWeekday:(t,a,e)=>(e??new d(a)).format(t,"cccc")}};export{A as zhCN};
@@ -0,0 +1 @@
1
+ import{a5 as l,ab as i,aq as s,ar as m,aa as d}from"./index-Ccf8muta.js";const u={lessThanXSeconds:{one:"少於 1 秒",other:"少於 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分鐘",lessThanXMinutes:{one:"少於 1 分鐘",other:"少於 {{count}} 分鐘"},xMinutes:{one:"1 分鐘",other:"{{count}} 分鐘"},xHours:{one:"1 小時",other:"{{count}} 小時"},aboutXHours:{one:"大約 1 小時",other:"大約 {{count}} 小時"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大約 1 個星期",other:"大約 {{count}} 個星期"},xWeeks:{one:"1 個星期",other:"{{count}} 個星期"},aboutXMonths:{one:"大約 1 個月",other:"大約 {{count}} 個月"},xMonths:{one:"1 個月",other:"{{count}} 個月"},aboutXYears:{one:"大約 1 年",other:"大約 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超過 1 年",other:"超過 {{count}} 年"},almostXYears:{one:"將近 1 年",other:"將近 {{count}} 年"}},c=(e,a,t)=>{let n;const r=u[e];return typeof r=="string"?n=r:a===1?n=r.one:n=r.other.replace("{{count}}",String(a)),t?.addSuffix?t.comparison&&t.comparison>0?n+"內":n+"前":n},h={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},f={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},b={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},P={date:l({formats:h,defaultWidth:"full"}),time:l({formats:f,defaultWidth:"full"}),dateTime:l({formats:b,defaultWidth:"full"})},g={lastWeek:"'上個'eeee p",yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:"'下個'eeee p",other:"P"},w=(e,a,t,n)=>g[e],y={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},p={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},v={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},W={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["週日","週一","週二","週三","週四","週五","週六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},M={narrow:{am:"上",pm:"下",midnight:"午夜",noon:"晌",morning:"早",afternoon:"午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"午夜",noon:"中午",morning:"上午",afternoon:"下午",evening:"晚上",night:"夜晚"},wide:{am:"上午",pm:"下午",midnight:"午夜",noon:"中午",morning:"上午",afternoon:"下午",evening:"晚上",night:"夜晚"}},D={narrow:{am:"上",pm:"下",midnight:"午夜",noon:"晌",morning:"早",afternoon:"午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"午夜",noon:"中午",morning:"上午",afternoon:"下午",evening:"晚上",night:"夜晚"},wide:{am:"上午",pm:"下午",midnight:"午夜",noon:"中午",morning:"上午",afternoon:"下午",evening:"晚上",night:"夜晚"}},k=(e,a)=>{const t=Number(e);switch(a?.unit){case"date":return t+"日";case"hour":return t+"時";case"minute":return t+"分";case"second":return t+"秒";default:return"第 "+t}},x={ordinalNumber:k,era:i({values:y,defaultWidth:"wide"}),quarter:i({values:p,defaultWidth:"wide",argumentCallback:e=>e-1}),month:i({values:v,defaultWidth:"wide"}),day:i({values:W,defaultWidth:"wide"}),dayPeriod:i({values:M,defaultWidth:"wide",formattingValues:D,defaultFormattingWidth:"wide"})},z=/^(第\s*)?\d+(日|時|分|秒)?/i,F=/\d+/i,N={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},V={any:[/^(前)/i,/^(公元)/i]},X={narrow:/^[1234]/i,abbreviated:/^第[一二三四]季/i,wide:/^第[一二三四]季度/i},L={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},E={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},H={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Y={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},S={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},$={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},q={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},C={ordinalNumber:m({matchPattern:z,parsePattern:F,valueCallback:e=>parseInt(e,10)}),era:s({matchPatterns:N,defaultMatchWidth:"wide",parsePatterns:V,defaultParseWidth:"any"}),quarter:s({matchPatterns:X,defaultMatchWidth:"wide",parsePatterns:L,defaultParseWidth:"any",valueCallback:e=>e+1}),month:s({matchPatterns:E,defaultMatchWidth:"wide",parsePatterns:H,defaultParseWidth:"any"}),day:s({matchPatterns:Y,defaultMatchWidth:"wide",parsePatterns:S,defaultParseWidth:"any"}),dayPeriod:s({matchPatterns:$,defaultMatchWidth:"any",parsePatterns:q,defaultParseWidth:"any"})},T={code:"zh-HK",formatDistance:c,formatLong:P,formatRelative:w,localize:x,match:C,options:{weekStartsOn:0,firstWeekContainsDate:1}},O={...T,labels:{labelDayButton:(e,a,t,n)=>{let o=(n??new d(t)).format(e,"PPPP");return a.today&&(o=`今日,${o}`),a.selected&&(o=`${o},已選擇`),o},labelMonthDropdown:"選擇月份",labelNext:"前往下個月",labelPrevious:"前往上個月",labelWeekNumber:e=>`第 ${e} 週`,labelYearDropdown:"選擇年份",labelGrid:(e,a,t)=>(t??new d(a)).formatMonthYear(e),labelGridcell:(e,a,t,n)=>{let o=(n??new d(t)).format(e,"PPPP");return a?.today&&(o=`今日,${o}`),o},labelNav:"導覽列",labelWeekNumberHeader:"週數",labelWeekday:(e,a,t)=>(t??new d(a)).format(e,"cccc")}};export{O as zhHK};