@jackuait/blok 0.11.0 → 0.11.1

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 (290) hide show
  1. package/README.md +36 -0
  2. package/dist/blok.cjs +1 -0
  3. package/dist/blok.iife.js +526 -0
  4. package/dist/blok.mjs +2 -2
  5. package/dist/chunks/_basePickBy-mUHvTE6c.cjs +1 -0
  6. package/dist/chunks/_baseUniq-BP5sM8qF.cjs +1 -0
  7. package/dist/chunks/am-CyXvGFRE.cjs +1 -0
  8. package/dist/chunks/ar-BbusVfTp.cjs +1 -0
  9. package/dist/chunks/arc-lSzOinJz.cjs +1 -0
  10. package/dist/chunks/architecture-YZFGNWBL-D91d5pcl.cjs +1 -0
  11. package/dist/chunks/architectureDiagram-Q4EWVU46-CyW5N5Ic.cjs +36 -0
  12. package/dist/chunks/array-BMXfsgb2.cjs +1 -0
  13. package/dist/chunks/az-D7MMnw6r.cjs +1 -0
  14. package/dist/chunks/bg-C3H2Qh_2.cjs +1 -0
  15. package/dist/chunks/blockDiagram-DXYQGD6D-DmhBCLgd.cjs +132 -0
  16. package/dist/chunks/blok-CNEP3LpI.cjs +16 -0
  17. package/dist/chunks/{blok-CUidffof.mjs → blok-DNvzyOYn.mjs} +1 -1
  18. package/dist/chunks/bn-BGOycYTM.cjs +1 -0
  19. package/dist/chunks/bs-C7amuK1D.cjs +1 -0
  20. package/dist/chunks/c-DNJHkQXQ.cjs +1 -0
  21. package/dist/chunks/c4Diagram-AHTNJAMY-DU2IYTXY.cjs +10 -0
  22. package/dist/chunks/ccount-DtzbJUOh.cjs +1 -0
  23. package/dist/chunks/channel-BqhnS5zl.cjs +1 -0
  24. package/dist/chunks/chunk-2KRD3SAO-COfwt0om.cjs +1 -0
  25. package/dist/chunks/chunk-336JU56O-CqWDeAp1.cjs +1 -0
  26. package/dist/chunks/chunk-426QAEUC-MjtXwzdI.cjs +1 -0
  27. package/dist/chunks/chunk-4BX2VUAB-Zs4zJRk9.cjs +1 -0
  28. package/dist/chunks/chunk-4TB4RGXK-Bq0teBqe.cjs +206 -0
  29. package/dist/chunks/chunk-55IACEB6-DyTTYuc2.cjs +1 -0
  30. package/dist/chunks/chunk-5FUZZQ4R-6rlcIGG-.cjs +62 -0
  31. package/dist/chunks/chunk-5PVQY5BW-DmATt7Fz.cjs +2 -0
  32. package/dist/chunks/chunk-67CJDMHE-zWcmgvwZ.cjs +1 -0
  33. package/dist/chunks/chunk-7N4EOEYR-CAuNhdG9.cjs +1 -0
  34. package/dist/chunks/chunk-AA7GKIK3-YMbh5HEs.cjs +1 -0
  35. package/dist/chunks/chunk-BSJP7CBP-CjkEoJDh.cjs +1 -0
  36. package/dist/chunks/chunk-CIAEETIT-BP9BiKe5.cjs +1 -0
  37. package/dist/chunks/chunk-EDXVE4YY-Bw1v2mUF.cjs +1 -0
  38. package/dist/chunks/chunk-ENJZ2VHE-9fAN50L-.cjs +10 -0
  39. package/dist/chunks/chunk-FMBD7UC4-CH_SSwhS.cjs +15 -0
  40. package/dist/chunks/chunk-FOC6F5B3-ScFIigAO.cjs +1 -0
  41. package/dist/chunks/chunk-ICPOFSXX-DQ4NxQTM.cjs +122 -0
  42. package/dist/chunks/chunk-K5T4RW27-BdGvq1o8.cjs +94 -0
  43. package/dist/chunks/chunk-KGLVRYIC-uzPiXgAg.cjs +1 -0
  44. package/dist/chunks/chunk-Kud-AIAt.cjs +1 -0
  45. package/dist/chunks/chunk-LIHQZDEY-ChgbfPTz.cjs +1 -0
  46. package/dist/chunks/chunk-ORNJ4GCN-HF28XIop.cjs +1 -0
  47. package/dist/chunks/chunk-OYMX7WX6-CGUpemDb.cjs +231 -0
  48. package/dist/chunks/chunk-QZHKN3VN-d_ESXyai.cjs +1 -0
  49. package/dist/chunks/chunk-U2HBQHQK-D62A_XCV.cjs +70 -0
  50. package/dist/chunks/chunk-X2U36JSP-BEHpYlmW.cjs +1 -0
  51. package/dist/chunks/chunk-XPW4576I-BidQL50C.cjs +32 -0
  52. package/dist/chunks/chunk-YZCP3GAM-DuLQPyT4.cjs +1 -0
  53. package/dist/chunks/chunk-ZZ45TVLE-CZOUDLGO.cjs +1 -0
  54. package/dist/chunks/classDiagram-6PBFFD2Q-GDkPRBlp.cjs +1 -0
  55. package/dist/chunks/classDiagram-v2-HSJHXN6E-B4vt694Q.cjs +1 -0
  56. package/dist/chunks/clone-_XTzxdN3.cjs +1 -0
  57. package/dist/chunks/constants-DJjFgioo.cjs +451 -0
  58. package/dist/chunks/{constants-C4TrPxXY.mjs → constants-DMsOCPcF.mjs} +1 -1
  59. package/dist/chunks/core-C8BHLAAO.cjs +12 -0
  60. package/dist/chunks/cose-bilkent-S5V4N54A-RkR02HV4.cjs +1 -0
  61. package/dist/chunks/cpp-DVBevX-J.cjs +1 -0
  62. package/dist/chunks/cs-BUD3Muxp.cjs +1 -0
  63. package/dist/chunks/csharp-CHUT4JOq.cjs +1 -0
  64. package/dist/chunks/css-QEheyxtB.cjs +1 -0
  65. package/dist/chunks/cytoscape.esm-CjWrb5SM.cjs +321 -0
  66. package/dist/chunks/da-CO2FYbLa.cjs +1 -0
  67. package/dist/chunks/dagre-KV5264BT-B5pZgbkN.cjs +4 -0
  68. package/dist/chunks/dagre-VHP8Ngkv.cjs +1 -0
  69. package/dist/chunks/dart-jPH5d8ma.cjs +1 -0
  70. package/dist/chunks/de-B8nkOjfD.cjs +1 -0
  71. package/dist/chunks/default-DP8dtTxC.cjs +1 -0
  72. package/dist/chunks/defaultLocale-BxWls4I1.cjs +1 -0
  73. package/dist/chunks/diagram-5BDNPKRD-C1llOHQP.cjs +10 -0
  74. package/dist/chunks/diagram-G4DWMVQ6-CLdEGHkn.cjs +24 -0
  75. package/dist/chunks/diagram-MMDJMWI5-CnbiCUM3.cjs +43 -0
  76. package/dist/chunks/diagram-TYMM5635-BtMB4AKf.cjs +24 -0
  77. package/dist/chunks/dist-CxdzFxpy.cjs +1 -0
  78. package/dist/chunks/dockerfile-B2jMQOes.cjs +1 -0
  79. package/dist/chunks/el-D2ILhp1-.cjs +1 -0
  80. package/dist/chunks/engine-javascript-HHRWd9yA.cjs +141 -0
  81. package/dist/chunks/erDiagram-SMLLAGMA-luvZB3lF.cjs +85 -0
  82. package/dist/chunks/es-DXxnOS9P.cjs +1 -0
  83. package/dist/chunks/et-mT4xnDc7.cjs +1 -0
  84. package/dist/chunks/fa-D9CUFSHX.cjs +1 -0
  85. package/dist/chunks/fi-DpCqdl_1.cjs +1 -0
  86. package/dist/chunks/fil-BjeZREJI.cjs +1 -0
  87. package/dist/chunks/flowDiagram-DWJPFMVM-BpYbAeYP.cjs +162 -0
  88. package/dist/chunks/fr-DYmwW1y1.cjs +1 -0
  89. package/dist/chunks/ganttDiagram-T4ZO3ILL-BaWZufgI.cjs +292 -0
  90. package/dist/chunks/gitGraph-7Q5UKJZL-Ds_Z9h4o.cjs +1 -0
  91. package/dist/chunks/gitGraphDiagram-UUTBAWPF-DjMU1Vyg.cjs +106 -0
  92. package/dist/chunks/go-BX-cNLGO.cjs +1 -0
  93. package/dist/chunks/graphlib-CYv_-0LK.cjs +1 -0
  94. package/dist/chunks/graphql-BnxAS09v.cjs +1 -0
  95. package/dist/chunks/gu-4g6NA9h8.cjs +1 -0
  96. package/dist/chunks/he-2H5DcbO0.cjs +1 -0
  97. package/dist/chunks/hi-Dvb4O5oj.cjs +1 -0
  98. package/dist/chunks/hr-B4Y5vULZ.cjs +1 -0
  99. package/dist/chunks/html-CAN0GHkJ.cjs +1 -0
  100. package/dist/chunks/hu-D3Pi7CJx.cjs +1 -0
  101. package/dist/chunks/hy-DZ74SDlC.cjs +1 -0
  102. package/dist/chunks/i18next-CkovSPO7.cjs +1 -0
  103. package/dist/chunks/i18next-loader-cGwOOjK3.cjs +1 -0
  104. package/dist/chunks/id-WfjZeYKN.cjs +1 -0
  105. package/dist/chunks/info-OMHHGYJF-u0RRQ9Uo.cjs +1 -0
  106. package/dist/chunks/infoDiagram-42DDH7IO-DOYkYMWg.cjs +2 -0
  107. package/dist/chunks/init-BvlcnoG2.cjs +1 -0
  108. package/dist/chunks/isArrayLikeObject-CnaR8YJm.cjs +1 -0
  109. package/dist/chunks/isEmpty-BHdznGlG.cjs +1 -0
  110. package/dist/chunks/ishikawaDiagram-UXIWVN3A-CbqoivFu.cjs +70 -0
  111. package/dist/chunks/it-hqsqt6f7.cjs +1 -0
  112. package/dist/chunks/ja-BwLgKsdH.cjs +1 -0
  113. package/dist/chunks/java-O-rzZ2Bn.cjs +1 -0
  114. package/dist/chunks/javascript-z9G2vOAZ.cjs +1 -0
  115. package/dist/chunks/journeyDiagram-VCZTEJTY-B5Peb7wS.cjs +139 -0
  116. package/dist/chunks/json-C_epQRuA.cjs +1 -0
  117. package/dist/chunks/ka-xoKako16.cjs +1 -0
  118. package/dist/chunks/kanban-definition-6JOO6SKY-CwmSo6Ve.cjs +89 -0
  119. package/dist/chunks/katex-_C7fvrbX.cjs +265 -0
  120. package/dist/chunks/km-D7Fl8wAA.cjs +1 -0
  121. package/dist/chunks/kn-Ckju1oeq.cjs +1 -0
  122. package/dist/chunks/ko-Dt1tQEjC.cjs +1 -0
  123. package/dist/chunks/kotlin-Dj7KFgV1.cjs +1 -0
  124. package/dist/chunks/ku-_i2C5XD5.cjs +1 -0
  125. package/dist/chunks/latex-u7qVP95p.cjs +1 -0
  126. package/dist/chunks/lightweight-i18n-CGBjC2TJ.cjs +1 -0
  127. package/dist/chunks/line-B7XG48Uf.cjs +1 -0
  128. package/dist/chunks/linear-D5j5Vgij.cjs +1 -0
  129. package/dist/chunks/lo-DfEpgG9m.cjs +1 -0
  130. package/dist/chunks/lt-BwLILIED.cjs +1 -0
  131. package/dist/chunks/lua-6ceNckPi.cjs +1 -0
  132. package/dist/chunks/lv-DdrYab3x.cjs +1 -0
  133. package/dist/chunks/markdown-Vce1p-mO.cjs +1 -0
  134. package/dist/chunks/mdast-util-math-B9OHoBuN.cjs +5 -0
  135. package/dist/chunks/mermaid-Cu5vPKfS.cjs +1 -0
  136. package/dist/chunks/mermaid-parser.core-BrZQFEht.cjs +3 -0
  137. package/dist/chunks/mermaid.core-GiTRPJLF.cjs +10 -0
  138. package/dist/chunks/messages--CbdZY2w.cjs +1 -0
  139. package/dist/chunks/messages-1hpCmcb5.cjs +1 -0
  140. package/dist/chunks/messages-4_3WFJMy2.cjs +1 -0
  141. package/dist/chunks/messages-ADxG1iWK2.cjs +1 -0
  142. package/dist/chunks/messages-B3MONaxw2.cjs +1 -0
  143. package/dist/chunks/messages-B3tNgyxG2.cjs +1 -0
  144. package/dist/chunks/messages-B91FdwB0.cjs +1 -0
  145. package/dist/chunks/messages-B9igXgiw.cjs +1 -0
  146. package/dist/chunks/messages-BB1xM_oB.cjs +1 -0
  147. package/dist/chunks/messages-BGZLiYrQ.cjs +1 -0
  148. package/dist/chunks/messages-BK6gK3wu.cjs +1 -0
  149. package/dist/chunks/messages-BKmAFG9Z.cjs +1 -0
  150. package/dist/chunks/messages-BMVJq-1T.cjs +1 -0
  151. package/dist/chunks/messages-BMsqJNz0.cjs +1 -0
  152. package/dist/chunks/messages-BSVhckNg.cjs +1 -0
  153. package/dist/chunks/messages-BUaHDggs.cjs +1 -0
  154. package/dist/chunks/messages-BUaJv5qS.cjs +1 -0
  155. package/dist/chunks/messages-BXcSH14N.cjs +1 -0
  156. package/dist/chunks/messages-BYOYrUOu.cjs +1 -0
  157. package/dist/chunks/messages-BYSE1Iq2.cjs +1 -0
  158. package/dist/chunks/messages-Bb225KE6.cjs +1 -0
  159. package/dist/chunks/messages-BiDR95AW.cjs +1 -0
  160. package/dist/chunks/messages-BkAoxm6t.cjs +1 -0
  161. package/dist/chunks/messages-BpUasRQ3.cjs +1 -0
  162. package/dist/chunks/messages-BxV8K7y42.cjs +1 -0
  163. package/dist/chunks/messages-Bxhns4Ui.cjs +1 -0
  164. package/dist/chunks/messages-C0sxGmLV2.cjs +1 -0
  165. package/dist/chunks/messages-C5nqE8O42.cjs +1 -0
  166. package/dist/chunks/messages-C7il6l-S.cjs +1 -0
  167. package/dist/chunks/messages-CFyGEGXM2.cjs +1 -0
  168. package/dist/chunks/messages-CN2yjHzW.cjs +1 -0
  169. package/dist/chunks/messages-CTy_3-mw2.cjs +1 -0
  170. package/dist/chunks/messages-C_ogasse2.cjs +1 -0
  171. package/dist/chunks/messages-CbFuceEb.cjs +1 -0
  172. package/dist/chunks/messages-CbbYb7cc.cjs +1 -0
  173. package/dist/chunks/messages-CfO5kKI72.cjs +1 -0
  174. package/dist/chunks/messages-Cgv5DuNV.cjs +1 -0
  175. package/dist/chunks/messages-CkBrRFY02.cjs +1 -0
  176. package/dist/chunks/messages-CpppvIiu.cjs +1 -0
  177. package/dist/chunks/messages-D8-vyZ2V.cjs +1 -0
  178. package/dist/chunks/messages-DIpVfyX-2.cjs +1 -0
  179. package/dist/chunks/messages-DJBeEI7G.cjs +1 -0
  180. package/dist/chunks/messages-DR8nFHdw2.cjs +1 -0
  181. package/dist/chunks/messages-DT5Ux3el.cjs +1 -0
  182. package/dist/chunks/messages-Da2SYMf52.cjs +1 -0
  183. package/dist/chunks/messages-DaaqkvOz2.cjs +1 -0
  184. package/dist/chunks/messages-DdiqfVCc.cjs +1 -0
  185. package/dist/chunks/messages-DfZe7SKZ.cjs +1 -0
  186. package/dist/chunks/messages-DkJ0bcqu.cjs +1 -0
  187. package/dist/chunks/messages-DkmG49t8.cjs +1 -0
  188. package/dist/chunks/messages-Do4o9ckW.cjs +1 -0
  189. package/dist/chunks/messages-DrbTe09r.cjs +1 -0
  190. package/dist/chunks/messages-DtgIZDlN.cjs +1 -0
  191. package/dist/chunks/messages-DxCaGN-Q2.cjs +1 -0
  192. package/dist/chunks/messages-DxpBJ5ZY.cjs +1 -0
  193. package/dist/chunks/messages-DyWu9_0D.cjs +1 -0
  194. package/dist/chunks/messages-Hg0BECWK.cjs +1 -0
  195. package/dist/chunks/messages-JlduXweH2.cjs +1 -0
  196. package/dist/chunks/messages-Km2PU_o7.cjs +1 -0
  197. package/dist/chunks/messages-MgJnGL9X2.cjs +1 -0
  198. package/dist/chunks/messages-PIoKW4js2.cjs +1 -0
  199. package/dist/chunks/messages-VEm9mp5H.cjs +1 -0
  200. package/dist/chunks/messages-WgwkG5PL2.cjs +1 -0
  201. package/dist/chunks/messages-X46KAUoI.cjs +1 -0
  202. package/dist/chunks/messages-ZZd1ckSO2.cjs +1 -0
  203. package/dist/chunks/messages-vRqPeNM_.cjs +1 -0
  204. package/dist/chunks/messages-vhq442qv.cjs +1 -0
  205. package/dist/chunks/micromark-extension-math-BXJknrtf.cjs +1 -0
  206. package/dist/chunks/micromark-factory-space-BnsBDplI.cjs +1 -0
  207. package/dist/chunks/mindmap-definition-QFDTVHPH-6O8s-b35.cjs +96 -0
  208. package/dist/chunks/mk-CsPHE4cO.cjs +1 -0
  209. package/dist/chunks/ml-CAsiw8BP.cjs +1 -0
  210. package/dist/chunks/mn-Db6DwHPv.cjs +1 -0
  211. package/dist/chunks/mr-BBAuoEIQ.cjs +1 -0
  212. package/dist/chunks/ms-Cfv7BOEG.cjs +1 -0
  213. package/dist/chunks/my-DOLHceI8.cjs +1 -0
  214. package/dist/chunks/native-DbFHGXp1.cjs +1 -0
  215. package/dist/chunks/ne-B2gHspK_.cjs +1 -0
  216. package/dist/chunks/nl-C5ezxTkA.cjs +1 -0
  217. package/dist/chunks/no-D4hjenPs.cjs +1 -0
  218. package/dist/chunks/notifier-CwnFVNdD.cjs +1 -0
  219. package/dist/chunks/objectSpread2-iNkE6aJh.cjs +1 -0
  220. package/dist/chunks/objectWithoutProperties-BbzyiphF.cjs +1 -0
  221. package/dist/chunks/one-light-D2mpnHEP.cjs +1 -0
  222. package/dist/chunks/ordinal-DFFZs5-y.cjs +1 -0
  223. package/dist/chunks/pa-CemLebw7.cjs +1 -0
  224. package/dist/chunks/packet-4T2RLAQJ-B5XvZd2W.cjs +1 -0
  225. package/dist/chunks/path-CLcQoP7n.cjs +1 -0
  226. package/dist/chunks/php-BMavm1CR.cjs +1 -0
  227. package/dist/chunks/pie-ZZUOXDRM-SOG0aDPa.cjs +1 -0
  228. package/dist/chunks/pieDiagram-DEJITSTG-BkEwYBz9.cjs +30 -0
  229. package/dist/chunks/pl-D_sFAkCs.cjs +1 -0
  230. package/dist/chunks/ps-ygHHO68A.cjs +1 -0
  231. package/dist/chunks/pt-x_mmaTtD.cjs +1 -0
  232. package/dist/chunks/python-Dcoit5Q5.cjs +1 -0
  233. package/dist/chunks/quadrantDiagram-34T5L4WZ-RJme4lkz.cjs +7 -0
  234. package/dist/chunks/r-BdDCwgEs.cjs +1 -0
  235. package/dist/chunks/radar-PYXPWWZC-Doch8Lt3.cjs +1 -0
  236. package/dist/chunks/requirementDiagram-MS252O5E-CMqFsK_K.cjs +84 -0
  237. package/dist/chunks/ro-CLGSgHzJ.cjs +1 -0
  238. package/dist/chunks/rough.esm-BaIXPgTh.cjs +1 -0
  239. package/dist/chunks/ru-LpaLXWmO.cjs +1 -0
  240. package/dist/chunks/ruby-DHm8_lqY.cjs +1 -0
  241. package/dist/chunks/rust-Cdm0j4IC.cjs +1 -0
  242. package/dist/chunks/sankeyDiagram-XADWPNL6-BPaUkDQv.cjs +10 -0
  243. package/dist/chunks/scala-Tb1u_9W3.cjs +1 -0
  244. package/dist/chunks/sd-B5PS8K1I.cjs +1 -0
  245. package/dist/chunks/sequenceDiagram-FGHM5R23-DbM-gyMR.cjs +157 -0
  246. package/dist/chunks/shellscript-D6KsENaG.cjs +1 -0
  247. package/dist/chunks/si-BjMoO5xu.cjs +1 -0
  248. package/dist/chunks/sk-pQPYnDDU.cjs +1 -0
  249. package/dist/chunks/sl-B_yalM3h.cjs +1 -0
  250. package/dist/chunks/sq-gzZkHXFJ.cjs +1 -0
  251. package/dist/chunks/sql-BlpbD7FB.cjs +1 -0
  252. package/dist/chunks/sr-O4v1KJY1.cjs +1 -0
  253. package/dist/chunks/src-d9yswOqA.cjs +1 -0
  254. package/dist/chunks/stateDiagram-FHFEXIEX-CEcLtV9Z.cjs +1 -0
  255. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-aa692V81.cjs +1 -0
  256. package/dist/chunks/sv-D0tEFwN7.cjs +1 -0
  257. package/dist/chunks/sw-DE8oPVEt.cjs +1 -0
  258. package/dist/chunks/swift-DubrdZus.cjs +1 -0
  259. package/dist/chunks/ta-BCVLtFMU.cjs +1 -0
  260. package/dist/chunks/te-BISdOeGS.cjs +1 -0
  261. package/dist/chunks/th-CJXhSA-L.cjs +1 -0
  262. package/dist/chunks/timeline-definition-GMOUNBTQ-ceXDJGg_.cjs +120 -0
  263. package/dist/chunks/{tools-CmNY86rS.mjs → tools-DPov06L-.mjs} +1 -1
  264. package/dist/chunks/tools-NAqHj-Cy.cjs +9 -0
  265. package/dist/chunks/tr-BjTvmhJt.cjs +1 -0
  266. package/dist/chunks/treeView-SZITEDCU-BUuSm_Hn.cjs +1 -0
  267. package/dist/chunks/treemap-W4RFUUIX-BerKlw0i.cjs +1 -0
  268. package/dist/chunks/tw-CjHZc17C.cjs +1 -0
  269. package/dist/chunks/types-BQX8SD8Q.cjs +1 -0
  270. package/dist/chunks/typescript-BKtlqLze.cjs +1 -0
  271. package/dist/chunks/ug-DsQjxbOa.cjs +1 -0
  272. package/dist/chunks/uk-BPzbNIjw.cjs +1 -0
  273. package/dist/chunks/ur-Do8k1hR-.cjs +1 -0
  274. package/dist/chunks/vennDiagram-DHZGUBPP-BzOeMJe8.cjs +34 -0
  275. package/dist/chunks/vi-CCTEx9XR.cjs +1 -0
  276. package/dist/chunks/vitesse-dark-BSL-cCXL.cjs +1 -0
  277. package/dist/chunks/wardley-RL74JXVD-BzKtPJ3g.cjs +1 -0
  278. package/dist/chunks/wardleyDiagram-NUSXRM2D-qo6LFohO.cjs +20 -0
  279. package/dist/chunks/xml-CwiH0x4E.cjs +1 -0
  280. package/dist/chunks/xychartDiagram-5P7HB3ND-CH1Z2Cbf.cjs +7 -0
  281. package/dist/chunks/yaml-CkVxfQ4c.cjs +1 -0
  282. package/dist/chunks/zh-Ive4on8E.cjs +1 -0
  283. package/dist/full.cjs +1 -0
  284. package/dist/full.mjs +3 -3
  285. package/dist/markdown.cjs +3 -0
  286. package/dist/react.cjs +1 -0
  287. package/dist/react.mjs +2 -2
  288. package/dist/tools.cjs +1 -0
  289. package/dist/tools.mjs +2 -2
  290. package/package.json +17 -8
@@ -0,0 +1,141 @@
1
+ require(`./chunk-Kud-AIAt.cjs`);const e=require(`./objectSpread2-iNkE6aJh.cjs`),t=require(`./objectWithoutProperties-BbzyiphF.cjs`);var n=4294967295,r=class{constructor(t,n={}){e.n(this,`regexps`,void 0),this.patterns=t,this.options=n;let{forgiving:r=!1,cache:i,regexConstructor:a}=n;if(!a)throw Error("Option `regexConstructor` is not provided");this.regexps=t.map(e=>{if(typeof e!=`string`)return e;let t=i==null?void 0:i.get(e);if(t){if(t instanceof RegExp)return t;if(r)return null;throw t}try{let t=a(e);return i==null||i.set(e,t),t}catch(t){if(i==null||i.set(e,t),r)return null;throw t}})}findNextMatchSync(e,t,r){let i=typeof e==`string`?e:e.content,a=[];function o(e,t,r=0){return{index:e,captureIndices:t.indices.map(e=>e==null?{start:n,end:n,length:0}:{start:e[0]+r,end:e[1]+r,length:e[1]-e[0]})}}for(let e=0;e<this.regexps.length;e++){let n=this.regexps[e];if(n)try{n.lastIndex=t;let r=n.exec(i);if(!r)continue;if(r.index===t)return o(e,r,0);a.push([e,r,0])}catch(e){if(this.options.forgiving)continue;throw e}}if(a.length){let e=Math.min(...a.map(e=>e[1].index));for(let[t,n,r]of a)if(n.index===e)return o(t,n,r)}return null}};function i(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function a(e,t){i(e,t),t.add(e)}function o(e,t,n){i(e,t),t.set(e,n)}function s(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function c(e,t){return e.get(s(e,t))}function l(e,t,n){return e.set(s(e,t),n),n}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){for(;!{}.hasOwnProperty.call(e,t)&&(e=u(e))!==null;);return e}function f(){return f=typeof Reflect<`u`&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=d(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},f.apply(null,arguments)}function p(e,t,n,r){var i=f(u(1&r?e.prototype:e),t,n);return 2&r&&typeof i==`function`?function(e){return i.apply(n,e)}:i}function m(e){if([...e].length!==1)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function h(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}var g=new Set([`alnum`,`alpha`,`ascii`,`blank`,`cntrl`,`digit`,`graph`,`lower`,`print`,`punct`,`space`,`upper`,`word`,`xdigit`]),_=String.raw;function v(e,t){if(e==null)throw Error(t==null?`Value expected`:t);return e}var y=_`\[\^?`,ee=`c.? | C(?:-.?)?|${_`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${_`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${_`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${_`o\{[^\}]*\}?`}|${_`\d{1,3}`}`,b=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,te=new RegExp(_`
2
+ \\ (?:
3
+ ${ee}
4
+ | [gk]<[^>]*>?
5
+ | [gk]'[^']*'?
6
+ | .
7
+ )
8
+ | \( (?:
9
+ \? (?:
10
+ [:=!>({]
11
+ | <[=!]
12
+ | <[^>]*>
13
+ | '[^']*'
14
+ | ~\|?
15
+ | #(?:[^)\\]|\\.?)*
16
+ | [^:)]*[:)]
17
+ )?
18
+ | \*[^\)]*\)?
19
+ )?
20
+ | (?:${b.source})+
21
+ | ${y}
22
+ | .
23
+ `.replace(/\s+/g,``),`gsu`),ne=new RegExp(_`
24
+ \\ (?:
25
+ ${ee}
26
+ | .
27
+ )
28
+ | \[:(?:\^?\p{Alpha}+|\^):\]
29
+ | ${y}
30
+ | &&
31
+ | .
32
+ `.replace(/\s+/g,``),`gsu`);function re(t,n={}){let r=e.t(e.t({flags:``},n),{},{rules:e.t({captureGroup:!1,singleline:!1},n.rules)});if(typeof t!=`string`)throw Error(`String expected as pattern`);let i=Ae(r.flags),a=[i.extended],o={captureGroup:r.rules.captureGroup,getCurrentModX(){return a.at(-1)},numOpenGroups:0,popModX(){a.pop()},pushModX(e){a.push(e)},replaceCurrentModX(e){a[a.length-1]=e},singleline:r.rules.singleline},s=[],c;for(te.lastIndex=0;c=te.exec(t);){let e=ie(o,t,c[0],te.lastIndex);e.tokens?s.push(...e.tokens):e.token&&s.push(e.token),e.lastIndex!==void 0&&(te.lastIndex=e.lastIndex)}let l=[],u=0;s.filter(e=>e.type===`GroupOpen`).forEach(e=>{e.kind===`capturing`?e.number=++u:e.raw===`(`&&l.push(e)}),u||l.forEach((e,t)=>{e.kind=`capturing`,e.number=t+1});let d=u||l.length;return{tokens:s.map(e=>e.type===`EscapedNumber`?Me(e,d):e).flat(),flags:i}}function ie(t,n,r,i){let[a,o]=r;if(r===`[`||r===`[^`){let e=ae(n,r,i);return{tokens:e.tokens,lastIndex:e.lastIndex}}if(a===`\\`){if(`AbBGyYzZ`.includes(o))return{token:le(r,r)};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw Error(`Invalid group name "${r}"`);return{token:be(r)}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw Error(`Invalid group name "${r}"`);return{token:ue(r)}}if(o===`K`)return{token:he(`keep`,r)};if(o===`N`||o===`R`)return{token:S(`newline`,r,{negate:o===`N`})};if(o===`O`)return{token:S(`any`,r)};if(o===`X`)return{token:S(`text_segment`,r)};let e=se(r,{inCharClass:!1});return Array.isArray(e)?{tokens:e}:{token:e}}if(a===`(`){if(o===`*`)return{token:Te(r)};if(r===`(?{`)throw Error(`Unsupported callout "${r}"`);if(r.startsWith(`(?#`)){if(n[i]!==`)`)throw Error(`Unclosed comment group "(?#"`);return{lastIndex:i+1}}if(/^\(\?[-imx]+[:)]$/.test(r))return{token:we(r,t)};if(t.pushModX(t.getCurrentModX()),t.numOpenGroups++,r===`(`&&!t.captureGroup||r===`(?:`)return{token:C(`group`,r)};if(r===`(?>`)return{token:C(`atomic`,r)};if(r===`(?=`||r===`(?!`||r===`(?<=`||r===`(?<!`)return{token:C(r[2]===`<`?`lookbehind`:`lookahead`,r,{negate:r.endsWith(`!`)})};if(r===`(`&&t.captureGroup||r.startsWith(`(?<`)&&r.endsWith(`>`)||r.startsWith(`(?'`)&&r.endsWith(`'`))return{token:C(`capturing`,r,e.t({},r!==`(`&&{name:r.slice(3,-1)}))};if(r.startsWith(`(?~`)){if(r===`(?~|`)throw Error(`Unsupported absence function kind "${r}"`);return{token:C(`absence_repeater`,r)}}throw r===`(?(`?Error(`Unsupported conditional "${r}"`):Error(`Invalid or unsupported group option "${r}"`)}if(r===`)`){if(t.popModX(),t.numOpenGroups--,t.numOpenGroups<0)throw Error(`Unmatched ")"`);return{token:_e(r)}}if(t.getCurrentModX()){if(r===`#`){let e=n.indexOf(`
33
+ `,i);return{lastIndex:e===-1?n.length:e}}if(/^\s$/.test(r)){let e=/\s+/y;return e.lastIndex=i,{lastIndex:e.exec(n)?e.lastIndex:i}}}return r===`.`?{token:S(`dot`,r)}:r===`^`||r===`$`?{token:le(t.singleline?{"^":_`\A`,$:_`\Z`}[r]:r,r)}:r===`|`?{token:ce(r)}:b.test(r)?{tokens:Ne(r)}:{token:x(m(r),r)}}function ae(e,t,n){let r=[me(t[1]===`^`,t)],i=1,a;for(ne.lastIndex=n;a=ne.exec(e);){let e=a[0];if(e[0]===`[`&&e[1]!==`:`)i++,r.push(me(e[1]===`^`,e));else if(e===`]`){if(r.at(-1).type===`CharacterClassOpen`)r.push(x(93,e));else if(i--,r.push(de(e)),!i)break}else{let t=oe(e);Array.isArray(t)?r.push(...t):r.push(t)}}return{tokens:r,lastIndex:ne.lastIndex||e.length}}function oe(e){if(e[0]===`\\`)return se(e,{inCharClass:!0});if(e[0]===`[`){let t=RegExp(`\\[:(?<negate>\\^?)(?<name>[a-z]+):\\]`,``).exec(e);if(!t||!g.has(t.groups.name))throw Error(`Invalid POSIX class "${e}"`);return S(`posix`,e,{value:t.groups.name,negate:!!t.groups.negate})}return e===`-`?fe(e):e===`&&`?pe(e):x(m(e),e)}function se(e,{inCharClass:t}){let n=e[1];if(n===`c`||n===`C`)return Ce(e);if(`dDhHsSwW`.includes(n))return De(e);if(e.startsWith(_`\o{`))throw Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw Error(`Incomplete or invalid Unicode property "${e}"`);return Oe(e)}if(RegExp(`^\\\\x[89A-Fa-f]\\p{AHex}`,`u`).test(e))try{let t=e.split(/\\x/).slice(1).map(e=>parseInt(e,16)),n=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(t)),r=new TextEncoder;return[...n].map(e=>{let t=[...r.encode(e)].map(e=>`\\x${e.toString(16)}`).join(``);return x(m(e),t)})}catch(t){throw Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n===`u`||n===`x`)return x(je(e),e);if(Se.has(n))return x(Se.get(n),e);if(/\d/.test(n))return ge(t,e);if(e===`\\`)throw Error(_`Incomplete escape "\"`);if(n===`M`)throw Error(`Unsupported meta "${e}"`);if([...e].length===2)return x(e.codePointAt(1),e);throw Error(`Unexpected escape "${e}"`)}function ce(e){return{type:`Alternator`,raw:e}}function le(e,t){return{type:`Assertion`,kind:e,raw:t}}function ue(e){return{type:`Backreference`,raw:e}}function x(e,t){return{type:`Character`,value:e,raw:t}}function de(e){return{type:`CharacterClassClose`,raw:e}}function fe(e){return{type:`CharacterClassHyphen`,raw:e}}function pe(e){return{type:`CharacterClassIntersector`,raw:e}}function me(e,t){return{type:`CharacterClassOpen`,negate:e,raw:t}}function S(t,n,r={}){return e.t(e.t({type:`CharacterSet`,kind:t},r),{},{raw:n})}function he(e,t,n={}){return e===`keep`?{type:`Directive`,kind:e,raw:t}:{type:`Directive`,kind:e,flags:v(n.flags),raw:t}}function ge(e,t){return{type:`EscapedNumber`,inCharClass:e,raw:t}}function _e(e){return{type:`GroupClose`,raw:e}}function C(t,n,r={}){return e.t(e.t({type:`GroupOpen`,kind:t},r),{},{raw:n})}function ve(e,t,n,r){return{type:`NamedCallout`,kind:e,tag:t,arguments:n,raw:r}}function ye(e,t,n,r){return{type:`Quantifier`,kind:e,min:t,max:n,raw:r}}function be(e){return{type:`Subroutine`,raw:e}}var xe=new Set([`COUNT`,`CMP`,`ERROR`,`FAIL`,`MAX`,`MISMATCH`,`SKIP`,`TOTAL_COUNT`]),Se=new Map([[`a`,7],[`b`,8],[`e`,27],[`f`,12],[`n`,10],[`r`,13],[`t`,9],[`v`,11]]);function Ce(e){let t=e[1]===`c`?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw Error(`Unsupported control character "${e}"`);return x(m(t.toUpperCase())-64,e)}function we(t,n){let{on:r,off:i}=RegExp(`^\\(\\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?`,``).exec(t).groups;i!=null||(i=``);let a=(n.getCurrentModX()||r.includes(`x`))&&!i.includes(`x`),o=ke(r),s=ke(i),c={};if(o&&(c.enable=o),s&&(c.disable=s),t.endsWith(`)`))return n.replaceCurrentModX(a),he(`flags`,t,{flags:c});if(t.endsWith(`:`))return n.pushModX(a),n.numOpenGroups++,C(`group`,t,e.t({},(o||s)&&{flags:c}));throw Error(`Unexpected flag modifier "${t}"`)}function Te(e){var t;let n=RegExp(`\\(\\*(?<name>[A-Za-z_]\\w*)?(?:\\[(?<tag>(?:[A-Za-z_]\\w*)?)\\])?(?:\\{(?<args>[^}]*)\\})?\\)`,``).exec(e);if(!n)throw Error(`Incomplete or invalid named callout "${e}"`);let{name:r,tag:i,args:a}=n.groups;if(!r)throw Error(`Invalid named callout "${e}"`);if(i===``)throw Error(`Named callout tag with empty value not allowed "${e}"`);let o=a?a.split(`,`).filter(e=>e!==``).map(e=>/^[+-]?\d+$/.test(e)?+e:e):[],[s,c,l]=o,u=xe.has(r)?r.toLowerCase():`custom`;switch(u){case`fail`:case`mismatch`:case`skip`:if(o.length>0)throw Error(`Named callout arguments not allowed "${o}"`);break;case`error`:if(o.length>1)throw Error(`Named callout allows only one argument "${o}"`);if(typeof s==`string`)throw Error(`Named callout argument must be a number "${s}"`);break;case`max`:if(!o.length||o.length>2)throw Error(`Named callout must have one or two arguments "${o}"`);if(typeof s==`string`&&!/^[A-Za-z_]\w*$/.test(s))throw Error(`Named callout argument one must be a tag or number "${s}"`);if(o.length===2&&(typeof c==`number`||!/^[<>X]$/.test(c)))throw Error(`Named callout optional argument two must be '<', '>', or 'X' "${c}"`);break;case`count`:case`total_count`:if(o.length>1)throw Error(`Named callout allows only one argument "${o}"`);if(o.length===1&&(typeof s==`number`||!/^[<>X]$/.test(s)))throw Error(`Named callout optional argument must be '<', '>', or 'X' "${s}"`);break;case`cmp`:if(o.length!==3)throw Error(`Named callout must have three arguments "${o}"`);if(typeof s==`string`&&!/^[A-Za-z_]\w*$/.test(s))throw Error(`Named callout argument one must be a tag or number "${s}"`);if(typeof c==`number`||!/^(?:[<>!=]=|[<>])$/.test(c))throw Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${c}"`);if(typeof l==`string`&&!/^[A-Za-z_]\w*$/.test(l))throw Error(`Named callout argument three must be a tag or number "${l}"`);break;case`custom`:throw Error(`Undefined callout name "${r}"`);default:throw Error(`Unexpected named callout kind "${u}"`)}return ve(u,i==null?null:i,(t=a==null?void 0:a.split(`,`))==null?null:t,e)}function Ee(e){let t=null,n,r;if(e[0]===`{`){let{minStr:i,maxStr:a}=RegExp(`^\\{(?<minStr>\\d*)(?:,(?<maxStr>\\d*))?`,``).exec(e).groups,o=1e5;if(+i>o||a&&+a>o)throw Error(`Quantifier value unsupported in Oniguruma`);if(n=+i,r=a===void 0?+i:a===``?1/0:+a,n>r&&(t=`possessive`,[n,r]=[r,n]),e.endsWith(`?`)){if(t===`possessive`)throw Error(`Unsupported possessive interval quantifier chain with "?"`);t=`lazy`}else t||(t=`greedy`)}else n=e[0]===`+`?1:0,r=e[0]===`?`?1:1/0,t=e[1]===`+`?`possessive`:e[1]===`?`?`lazy`:`greedy`;return ye(t,n,r,e)}function De(e){let t=e[1].toLowerCase();return S({d:`digit`,h:`hex`,s:`space`,w:`word`}[t],e,{negate:e[1]!==t})}function Oe(e){let{p:t,neg:n,value:r}=RegExp(`^\\\\(?<p>[pP])\\{(?<neg>\\^?)(?<value>[^}]+)`,``).exec(e).groups;return S(`property`,e,{value:r,negate:t===`P`&&!n||t===`p`&&!!n})}function ke(e){let t={};return e.includes(`i`)&&(t.ignoreCase=!0),e.includes(`m`)&&(t.dotAll=!0),e.includes(`x`)&&(t.extended=!0),Object.keys(t).length?t:null}function Ae(e){let t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){let r=e[n];if(!`imxDPSWy`.includes(r))throw Error(`Invalid flag "${r}"`);if(r===`y`){if(!/^y{[gw]}/.test(e.slice(n)))throw Error(`Invalid or unspecified flag "y" mode`);t.textSegmentMode=e[n+2]===`g`?`grapheme`:`word`,n+=3;continue}t[{i:`ignoreCase`,m:`dotAll`,x:`extended`,D:`digitIsAscii`,P:`posixIsAscii`,S:`spaceIsAscii`,W:`wordIsAscii`}[r]]=!0}return t}function je(e){if(RegExp(`^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))`,`u`).test(e))throw Error(`Incomplete or invalid escape "${e}"`);let t=e[2]===`{`?RegExp(`^\\\\x\\{\\s*(?<hex>\\p{AHex}+)`,`u`).exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function Me(e,t){let{raw:n,inCharClass:r}=e,i=n.slice(1);if(!r&&(i!==`0`&&i.length===1||i[0]!==`0`&&+i<=t))return[ue(n)];let a=[],o=i.match(/^[0-7]+|\d/g);for(let e=0;e<o.length;e++){let t=o[e],r;if(e===0&&t!==`8`&&t!==`9`){if(r=parseInt(t,8),r>127)throw Error(_`Octal encoded byte above 177 unsupported "${n}"`)}else r=m(t);a.push(x(r,(e===0?`\\`:``)+t))}return a}function Ne(e){let t=[],n=new RegExp(b,`gy`),r;for(;r=n.exec(e);){let e=r[0];if(e[0]===`{`){let r=RegExp(`^\\{(?<min>\\d+),(?<max>\\d+)\\}\\??$`,``).exec(e);if(r){let{min:i,max:a}=r.groups;if(+i>+a&&e.endsWith(`?`)){n.lastIndex--,t.push(Ee(e.slice(0,-1)));continue}}}t.push(Ee(e))}return t}function Pe(e,t){if(!Array.isArray(e.body))throw Error(`Expected node with body array`);if(e.body.length!==1)return!1;let n=e.body[0];return!t||Object.keys(t).every(e=>t[e]===n[e])}function Fe(e){return Ie.has(e.type)}var Ie=new Set([`AbsenceFunction`,`Backreference`,`CapturingGroup`,`Character`,`CharacterClass`,`CharacterSet`,`Group`,`Quantifier`,`Subroutine`]);function Le(t,n={}){let r=e.t(e.t({flags:``,normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null},n),{},{rules:e.t({captureGroup:!1,singleline:!1},n.rules)}),i=re(t,{flags:r.flags,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}}),a=(e,t)=>{let n=i.tokens[o.nextIndex];switch(o.parent=e,o.nextIndex++,n.type){case`Alternator`:return w();case`Assertion`:return Re(n);case`Backreference`:return ze(n,o);case`Character`:return T(n.value,{useLastValid:!!t.isCheckingRangeEnd});case`CharacterClassHyphen`:return Be(n,o,t);case`CharacterClassOpen`:return Ve(n,o,t);case`CharacterSet`:return He(n,o);case`Directive`:return Qe(n.kind,{flags:n.flags});case`GroupOpen`:return Ue(n,o,t);case`NamedCallout`:return et(n.kind,n.tag,n.arguments);case`Quantifier`:return We(n,o);case`Subroutine`:return Ge(n,o);default:throw Error(`Unexpected token type "${n.type}"`)}},o={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:r.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:r.skipBackrefValidation,skipLookbehindValidation:r.skipLookbehindValidation,skipPropertyNameValidation:r.skipPropertyNameValidation,subroutines:[],tokens:i.tokens,unicodePropertyMap:r.unicodePropertyMap,walk:a},s=rt($e(i.flags)),c=s.body[0];for(;o.nextIndex<i.tokens.length;){let e=a(c,{});e.type===`Alternative`?(s.body.push(e),c=e):c.body.push(e)}let{capturingGroups:l,hasNumberedRef:u,namedGroupsByName:d,subroutines:f}=o;if(u&&d.size&&!r.rules.captureGroup)throw Error(`Numbered backref/subroutine not allowed when using named capture`);for(let{ref:e}of f)if(typeof e==`number`){if(e>l.length)throw Error(`Subroutine uses a group number that's not defined`);e&&(l[e-1].isSubroutined=!0)}else if(d.has(e)){if(d.get(e).length>1)throw Error(_`Subroutine uses a duplicate group name "\g<${e}>"`);d.get(e)[0].isSubroutined=!0}else throw Error(_`Subroutine uses a group name that's not defined "\g<${e}>"`);return s}function Re({kind:e}){return qe(v({"^":`line_start`,$:`line_end`,"\\A":`string_start`,"\\b":`word_boundary`,"\\B":`word_boundary`,"\\G":`search_start`,"\\y":`text_segment_boundary`,"\\Y":`text_segment_boundary`,"\\z":`string_end`,"\\Z":`string_end_newline`}[e],`Unexpected assertion kind "${e}"`),{negate:e===_`\B`||e===_`\Y`})}function ze({raw:e},t){let n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),i=(n,r=!1)=>{let i=t.capturingGroups.length,a=!1;if(n>i)if(t.skipBackrefValidation)a=!0;else throw Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,Je(r?i+1-n:n,{orphan:a})};if(n){let n=RegExp(`^(?<sign>-?)0*(?<num>[1-9]\\d*)$`,``).exec(r);if(n)return i(+n.groups.num,!!n.groups.sign);if(/[-+]/.test(r))throw Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(r))throw Error(`Group name not defined to the left "${e}"`);return Je(r)}return i(+r)}function Be(t,n,r){let{tokens:i,walk:a}=n,o=n.parent,s=o.body.at(-1),c=i[n.nextIndex];if(!r.isCheckingRangeEnd&&s&&s.type!==`CharacterClass`&&s.type!==`CharacterClassRange`&&c&&c.type!==`CharacterClassOpen`&&c.type!==`CharacterClassClose`&&c.type!==`CharacterClassIntersector`){let t=a(o,e.t(e.t({},r),{},{isCheckingRangeEnd:!0}));if(s.type===`Character`&&t.type===`Character`)return o.body.pop(),Xe(s,t);throw Error(`Invalid character class range`)}return T(m(`-`))}function Ve({negate:e},t,n){let{tokens:r,walk:i}=t,a=r[t.nextIndex],o=[E()],s=dt(a);for(;s.type!==`CharacterClassClose`;){if(s.type===`CharacterClassIntersector`)o.push(E()),t.nextIndex++;else{let e=o.at(-1);e.body.push(i(e,n))}s=dt(r[t.nextIndex],a)}let c=E({negate:e});return o.length===1?c.body=o[0].body:(c.kind=`intersection`,c.body=o.map(e=>e.body.length===1?e.body[0]:e)),t.nextIndex++,c}function He({kind:e,negate:t,value:n},r){let{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:o}=r;if(e===`property`){let r=j(n);if(g.has(r)&&!(o!=null&&o.has(r)))e=`posix`,n=r;else return k(n,{negate:t,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:o})}return e===`posix`?tt(n,{negate:t}):Ze(e,{negate:t})}function Ue(t,n,r){let{tokens:i,capturingGroups:a,namedGroupsByName:o,skipLookbehindValidation:s,walk:c}=n,l=at(t),u=l.type===`AbsenceFunction`,d=ct(l),f=d&&l.negate;if(l.type===`CapturingGroup`&&(a.push(l),l.name&&h(o,l.name,[]).push(l)),u&&r.isInAbsenceFunction)throw Error(`Nested absence function not supported by Oniguruma`);let p=ft(i[n.nextIndex]);for(;p.type!==`GroupClose`;){if(p.type===`Alternator`)l.body.push(w()),n.nextIndex++;else{let t=l.body.at(-1),n=c(t,e.t(e.t({},r),{},{isInAbsenceFunction:r.isInAbsenceFunction||u,isInLookbehind:r.isInLookbehind||d,isInNegLookbehind:r.isInNegLookbehind||f}));if(t.body.push(n),(d||r.isInLookbehind)&&!s){let e=`Lookbehind includes a pattern not allowed by Oniguruma`;if(f||r.isInNegLookbehind){if(st(n)||n.type===`CapturingGroup`)throw Error(e)}else if(st(n)||ct(n)&&n.negate)throw Error(e)}}p=ft(i[n.nextIndex])}return n.nextIndex++,l}function We({kind:e,min:t,max:n},r){let i=r.parent,a=i.body.at(-1);if(!a||!Fe(a))throw Error(`Quantifier requires a repeatable token`);let o=nt(e,t,n,a);return i.body.pop(),o}function Ge({raw:e},t){let{capturingGroups:n,subroutines:r}=t,i=e.slice(3,-1),a=RegExp(`^(?<sign>[-+]?)0*(?<num>[1-9]\\d*)$`,``).exec(i);if(a){let e=+a.groups.num,r=n.length;if(t.hasNumberedRef=!0,i={"":e,"+":r+e,"-":r+1-e}[a.groups.sign],i<1)throw Error(`Invalid subroutine number`)}else i===`0`&&(i=0);let o=it(i);return r.push(o),o}function Ke(e,t){if(e!==`repeater`)throw Error(`Unexpected absence function kind "${e}"`);return{type:`AbsenceFunction`,kind:e,body:A(t==null?void 0:t.body)}}function w(e){return{type:`Alternative`,body:ot(e==null?void 0:e.body)}}function qe(e,t){let n={type:`Assertion`,kind:e};return(e===`word_boundary`||e===`text_segment_boundary`)&&(n.negate=!!(t!=null&&t.negate)),n}function Je(t,n){let r=!!(n!=null&&n.orphan);return e.t({type:`Backreference`,ref:t},r&&{orphan:r})}function Ye(t,n){let r=e.t({name:void 0,isSubroutined:!1},n);if(r.name!==void 0&&!lt(r.name))throw Error(`Group name "${r.name}" invalid in Oniguruma`);return e.t(e.t(e.t({type:`CapturingGroup`,number:t},r.name&&{name:r.name}),r.isSubroutined&&{isSubroutined:r.isSubroutined}),{},{body:A(n==null?void 0:n.body)})}function T(t,n){let r=e.t({useLastValid:!1},n);if(t>1114111){let e=t.toString(16);if(r.useLastValid)t=1114111;else throw t>1310719?Error(`Invalid code point out of range "\\x{${e}}"`):Error(`Invalid code point out of range in JS "\\x{${e}}"`)}return{type:`Character`,value:t}}function E(t){let n=e.t({kind:`union`,negate:!1},t);return{type:`CharacterClass`,kind:n.kind,negate:n.negate,body:ot(t==null?void 0:t.body)}}function Xe(e,t){if(t.value<e.value)throw Error(`Character class range out of order`);return{type:`CharacterClassRange`,min:e,max:t}}function Ze(e,t){let n=!!(t!=null&&t.negate),r={type:`CharacterSet`,kind:e};return(e===`digit`||e===`hex`||e===`newline`||e===`space`||e===`word`)&&(r.negate=n),(e===`text_segment`||e===`newline`&&!n)&&(r.variableLength=!0),r}function Qe(e,t={}){if(e===`keep`)return{type:`Directive`,kind:e};if(e===`flags`)return{type:`Directive`,kind:e,flags:v(t.flags)};throw Error(`Unexpected directive kind "${e}"`)}function $e(t){return e.t({type:`Flags`},t)}function D(t){let n=t==null?void 0:t.atomic,r=t==null?void 0:t.flags;if(n&&r)throw Error(`Atomic group cannot have flags`);return e.t(e.t(e.t({type:`Group`},n&&{atomic:n}),r&&{flags:r}),{},{body:A(t==null?void 0:t.body)})}function O(t){let n=e.t({behind:!1,negate:!1},t);return{type:`LookaroundAssertion`,kind:n.behind?`lookbehind`:`lookahead`,negate:n.negate,body:A(t==null?void 0:t.body)}}function et(e,t,n){return{type:`NamedCallout`,kind:e,tag:t,arguments:n}}function tt(e,t){let n=!!(t!=null&&t.negate);if(!g.has(e))throw Error(`Invalid POSIX class "${e}"`);return{type:`CharacterSet`,kind:`posix`,value:e,negate:n}}function nt(e,t,n,r){if(t>n)throw Error(`Invalid reversed quantifier range`);return{type:`Quantifier`,kind:e,min:t,max:n,body:r}}function rt(e,t){return{type:`Regex`,body:A(t==null?void 0:t.body),flags:e}}function it(e){return{type:`Subroutine`,ref:e}}function k(t,n){var r,i;let a=e.t({negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null},n),o=(r=a.unicodePropertyMap)==null?void 0:r.get(j(t));if(!o){if(a.normalizeUnknownPropertyNames)o=ut(t);else if(a.unicodePropertyMap&&!a.skipPropertyNameValidation)throw Error(_`Invalid Unicode property "\p{${t}}"`)}return{type:`CharacterSet`,kind:`property`,value:(i=o)==null?t:i,negate:a.negate}}function at({flags:e,kind:t,name:n,negate:r,number:i}){switch(t){case`absence_repeater`:return Ke(`repeater`);case`atomic`:return D({atomic:!0});case`capturing`:return Ye(i,{name:n});case`group`:return D({flags:e});case`lookahead`:case`lookbehind`:return O({behind:t===`lookbehind`,negate:r});default:throw Error(`Unexpected group kind "${t}"`)}}function A(e){if(e===void 0)e=[w()];else if(!Array.isArray(e)||!e.length||!e.every(e=>e.type===`Alternative`))throw Error(`Invalid body; expected array of one or more Alternative nodes`);return e}function ot(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(e=>!!e.type))throw Error(`Invalid body; expected array of nodes`);return e}function st(e){return e.type===`LookaroundAssertion`&&e.kind===`lookahead`}function ct(e){return e.type===`LookaroundAssertion`&&e.kind===`lookbehind`}function lt(e){return RegExp(`^[\\p{Alpha}\\p{Pc}][^)]*$`,`u`).test(e)}function ut(e){return e.trim().replace(/[- _]+/g,`_`).replace(/[A-Z][a-z]+(?=[A-Z])/g,`$&_`).replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase())}function j(e){return e.replace(/[- _]+/g,``).toLowerCase()}function dt(e,t){return v(e,`${(t==null?void 0:t.type)===`Character`&&t.value===93?`Empty`:`Unclosed`} character class`)}function ft(e){return v(e,`Unclosed group`)}function M(e,t,n=null){function r(e,t){for(let n=0;n<e.length;n++){let r=i(e[n],t,n,e);n=Math.max(-1,n+r)}}function i(a,o=null,s=null,c=null){var l,u;let d=0,f=!1,p={node:a,parent:o,key:s,container:c,root:e,remove(){N(c).splice(Math.max(0,P(s)+d),1),d--,f=!0},removeAllNextSiblings(){return N(c).splice(P(s)+1)},removeAllPrevSiblings(){let e=P(s)+d;return d-=e,N(c).splice(0,Math.max(0,e))},replaceWith(e,t={}){let n=!!t.traverse;c?c[Math.max(0,P(s)+d)]=e:v(o,`Can't replace root node`)[s]=e,n&&i(e,o,s,c),f=!0},replaceWithMultiple(e,t={}){let n=!!t.traverse;if(N(c).splice(Math.max(0,P(s)+d),1,...e),d+=e.length-1,n){let t=0;for(let n=0;n<e.length;n++)t+=i(e[n],o,P(s)+n+t,c)}f=!0},skip(){f=!0}},{type:m}=a,h=t[`*`],g=t[m],_=typeof h==`function`?h:h==null?void 0:h.enter,y=typeof g==`function`?g:g==null?void 0:g.enter;if(_==null||_(p,n),y==null||y(p,n),!f)switch(m){case`AbsenceFunction`:case`CapturingGroup`:case`Group`:r(a.body,a);break;case`Alternative`:case`CharacterClass`:r(a.body,a);break;case`Assertion`:case`Backreference`:case`Character`:case`CharacterSet`:case`Directive`:case`Flags`:case`NamedCallout`:case`Subroutine`:break;case`CharacterClassRange`:i(a.min,a,`min`),i(a.max,a,`max`);break;case`LookaroundAssertion`:r(a.body,a);break;case`Quantifier`:i(a.body,a,`body`);break;case`Regex`:r(a.body,a),i(a.flags,a,`flags`);break;default:throw Error(`Unexpected node type "${m}"`)}return g==null||(l=g.exit)==null||l.call(g,p,n),h==null||(u=h.exit)==null||u.call(h,p,n),d}return i(e),e}function N(e){if(!Array.isArray(e))throw Error(`Container expected`);return e}function P(e){if(typeof e!=`number`)throw Error(`Numeric key expected`);return e}var pt=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function mt(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function ht(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}var F=Object.freeze({DEFAULT:`DEFAULT`,CHAR_CLASS:`CHAR_CLASS`});function gt(e,t,n,r){let i=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,`gsu`),a=[!1],o=0,s=``;for(let t of e.matchAll(i)){let{0:e,groups:{$skip:i}}=t;if(!i&&(!r||r===F.DEFAULT==!o)){n instanceof Function?s+=n(t,{context:o?F.CHAR_CLASS:F.DEFAULT,negated:a[a.length-1]}):s+=n;continue}e[0]===`[`?(o++,a.push(e[1]===`^`)):e===`]`&&o&&(o--,a.pop()),s+=e}return s}function _t(e,t,n,r){gt(e,t,n,r)}function vt(e,t,n=0,r){if(!new RegExp(t,`su`).test(e))return null;let i=RegExp(`${t}|(?<$skip>\\\\?.)`,`gsu`);i.lastIndex=n;let a=0,o;for(;o=i.exec(e);){let{0:e,groups:{$skip:t}}=o;if(!t&&(!r||r===F.DEFAULT==!a))return o;e===`[`?a++:e===`]`&&a&&a--,i.lastIndex==o.index&&i.lastIndex++}return null}function yt(e,t,n){return!!vt(e,t,0,n)}function bt(e,t){let n=RegExp(`\\\\?.`,`gsu`);n.lastIndex=t;let r=e.length,i=0,a=1,o;for(;o=n.exec(e);){let[e]=o;if(e===`[`)i++;else if(i)e===`]`&&i--;else if(e===`(`)a++;else if(e===`)`&&(a--,!a)){r=o.index;break}}return e.slice(t,r)}var xt=new RegExp(String.raw`(?<noncapturingStart>${pt})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,`gsu`);function St(e,t){var n,r;let i=(n=t==null?void 0:t.hiddenCaptures)==null?[]:n,a=(r=t==null?void 0:t.captureTransfers)==null?new Map:r;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:i};let o=[0],s=[],c=0,l=0,u=NaN,d;do{d=!1;let t=0,n=0,r=!1,f;for(xt.lastIndex=Number.isNaN(u)?0:u+7;f=xt.exec(e);){let{0:p,index:m,groups:{capturingStart:h,noncapturingStart:g}}=f;if(p===`[`)t++;else if(t)p===`]`&&t--;else if(p===`(?>`&&!r)u=m,r=!0;else if(r&&g)n++;else if(h)r?n++:(c++,o.push(c+l));else if(p===`)`&&r){if(!n){l++;let t=c+l;if(e=`${e.slice(0,u)}(?:(?=(${e.slice(u+3,m)}))<$$${t}>)${e.slice(m+1)}`,d=!0,s.push(t),mt(i,t),a.size){let e=new Map;a.forEach((n,r)=>{e.set(r>=t?r+1:r,n.map(e=>e>=t?e+1:e))}),a=e}break}n--}}}while(d);return i.push(...s),e=gt(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:e,groups:{backrefNum:t,wrappedBackrefNum:n}})=>{if(t){let n=+t;if(n>o.length-1)throw Error(`Backref "${e}" greater than number of captures`);return`\\${o[n]}`}return`\\${n}`},F.DEFAULT),{pattern:e,captureTransfers:a,hiddenCaptures:i}}var Ct=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,wt=new RegExp(String.raw`
34
+ \\(?: \d+
35
+ | c[A-Za-z]
36
+ | [gk]<[^>]+>
37
+ | [pPu]\{[^\}]+\}
38
+ | u[A-Fa-f\d]{4}
39
+ | x[A-Fa-f\d]{2}
40
+ )
41
+ | \((?: \? (?: [:=!>]
42
+ | <(?:[=!]|[^>]+>)
43
+ | [A-Za-z\-]+:
44
+ | \(DEFINE\)
45
+ ))?
46
+ | (?<qBase>${Ct})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
47
+ | \\?.
48
+ `.replace(/\s+/g,``),`gsu`);function Tt(e){if(!RegExp(`${Ct}\\+`).test(e))return{pattern:e};let t=[],n=null,r=null,i=``,a=0,o;for(wt.lastIndex=0;o=wt.exec(e);){let{0:s,index:c,groups:{qBase:l,qMod:u,invalidQ:d}}=o;if(s===`[`)a||(r=c),a++;else if(s===`]`)a?a--:r=null;else if(!a)if(u===`+`&&i&&!i.startsWith(`(`)){if(d)throw Error(`Invalid quantifier "${s}"`);let t=-1;if(/^\{\d+\}$/.test(l))e=ht(e,c+l.length,u,``);else{if(i===`)`||i===`]`){let t=i===`)`?n:r;if(t===null)throw Error(`Invalid unmatched "${i}"`);e=`${e.slice(0,t)}(?>${e.slice(t,c)}${l})${e.slice(c+s.length)}`}else e=`${e.slice(0,c-i.length)}(?>${i}${l})${e.slice(c+s.length)}`;t+=4}wt.lastIndex+=t}else s[0]===`(`?t.push(c):s===`)`&&(n=t.length?t.pop():null);i=s}return{pattern:e}}var I=String.raw,Et=I`\(\?R=(?<rDepth>[^\)]+)\)|${I`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`}`,Dt=I`\(\?<(?![=!])(?<captureName>[^>]+)>`,Ot=I`${Dt}|(?<unnamed>\()(?!\?)`,L=new RegExp(I`${Dt}|${Et}|\(\?|\\?.`,`gsu`),kt=`Cannot use multiple overlapping recursions`;function At(t,n){var r;let{hiddenCaptures:i,mode:a}=e.t({hiddenCaptures:[],mode:`plugin`},n),o=(r=n==null?void 0:n.captureTransfers)==null?new Map:r;if(!new RegExp(Et,`su`).test(t))return{pattern:t,captureTransfers:o,hiddenCaptures:i};if(a===`plugin`&&yt(t,I`\(\?\(DEFINE\)`,F.DEFAULT))throw Error(`DEFINE groups cannot be used with recursion`);let s=[],c=yt(t,I`\\[1-9]`,F.DEFAULT),l=new Map,u=[],d=!1,f=0,p=0,m;for(L.lastIndex=0;m=L.exec(t);){let{0:e,groups:{captureName:n,rDepth:r,gRNameOrNum:h,gRDepth:g}}=m;if(e===`[`)f++;else if(f)e===`]`&&f--;else if(r){if(jt(r),d)throw Error(kt);if(c)throw Error(`${a===`external`?`Backrefs`:`Numbered backrefs`} cannot be used with global recursion`);let e=t.slice(0,m.index),n=t.slice(L.lastIndex);if(yt(n,Et,F.DEFAULT))throw Error(kt);let l=r-1;t=Mt(e,n,l,!1,i,s,p),o=Ft(o,e,l,s.length,0,p);break}else if(h){jt(g);let n=!1;for(let e of u)if(e.name===h||e.num===+h){if(n=!0,e.hasRecursedWithin)throw Error(kt);break}if(!n)throw Error(I`Recursive \g cannot be used outside the referenced group "${a===`external`?h:I`\g<${h}&R=${g}>`}"`);let r=l.get(h),f=bt(t,r);if(c&&yt(f,I`${Dt}|\((?!\?)`,F.DEFAULT))throw Error(`${a===`external`?`Backrefs`:`Numbered backrefs`} cannot be used with recursion of capturing groups`);let _=t.slice(r,m.index),v=f.slice(_.length+e.length),y=s.length,ee=g-1,b=Mt(_,v,ee,!0,i,s,p);o=Ft(o,_,ee,s.length-y,y,p),t=`${t.slice(0,r)}${b}${t.slice(r+f.length)}`,L.lastIndex+=b.length-e.length-_.length-v.length,u.forEach(e=>e.hasRecursedWithin=!0),d=!0}else if(n)p++,l.set(String(p),L.lastIndex),l.set(n,L.lastIndex),u.push({num:p,name:n});else if(e[0]===`(`){let t=e===`(`;t&&(p++,l.set(String(p),L.lastIndex)),u.push(t?{num:p}:{})}else e===`)`&&u.pop()}return i.push(...s),{pattern:t,captureTransfers:o,hiddenCaptures:i}}function jt(e){let t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e)||(e=+e,e<2||e>100))throw Error(t)}function Mt(e,t,n,r,i,a,o){let s=new Set;r&&_t(e+t,Dt,({groups:{captureName:e}})=>{s.add(e)},F.DEFAULT);let c=[n,r?s:null,i,a,o];return`${e}${Nt(`(?:${e}`,`forward`,...c)}(?:)${Nt(`${t})`,`backward`,...c)}${t}`}function Nt(e,t,n,r,i,a,o){let s=e=>t===`forward`?e+2:n-e+2-1,c=``;for(let t=0;t<n;t++){let n=s(t);c+=gt(e,I`${Ot}|\\k<(?<backref>[^>]+)>`,({0:e,groups:{captureName:t,unnamed:s,backref:c}})=>{if(c&&r&&!r.has(c))return e;let l=`_$${n}`;if(s||t){let n=o+a.length+1;return a.push(n),Pt(i,n),s?e:`(?<${t}${l}>`}return I`\k<${c}${l}>`},F.DEFAULT)}return c}function Pt(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function Ft(e,t,n,r,i,a){if(e.size&&r){let o=0;_t(t,Ot,()=>o++,F.DEFAULT);let s=a-o+i,c=new Map;return e.forEach((e,t)=>{let i=(r-o*n)/n,a=o*n,l=t>s+o?t+r:t,u=[];for(let t of e)if(t<=s)u.push(t);else if(t>s+o+i)u.push(t+r);else if(t<=s+o)for(let e=0;e<=n;e++)u.push(t+o*e);else for(let e=0;e<=n;e++)u.push(t+a+i*e);c.set(l,u)}),c}return e}var It=[`lazyCompile`],R,z,B,V,H,U,Lt,W=String.fromCodePoint,G=String.raw,K={flagGroups:!0,unicodeSets:!0};K.bugFlagVLiteralHyphenIsRange=K.unicodeSets?(()=>{try{new RegExp(G`[\d\-a]`,`v`)}catch(e){return!0}return!1})():!1,K.bugNestedClassIgnoresNegation=K.unicodeSets&&RegExp(`[[^a]]`,`v`).test(`a`);function Rt(e,{enable:t,disable:n}){return{dotAll:!(n!=null&&n.dotAll)&&!!(t!=null&&t.dotAll||e.dotAll),ignoreCase:!(n!=null&&n.ignoreCase)&&!!(t!=null&&t.ignoreCase||e.ignoreCase)}}function q(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function zt(e,t){return Vt[e]>=Vt[t]}function Bt(e,t){if(e==null)throw Error(t==null?`Value expected`:t);return e}var Vt={ES2025:2025,ES2024:2024,ES2018:2018},Ht={auto:`auto`,ES2025:`ES2025`,ES2024:`ES2024`,ES2018:`ES2018`};function Ut(t={}){if({}.toString.call(t)!==`[object Object]`)throw Error(`Unexpected options`);if(t.target!==void 0&&!Ht[t.target])throw Error(`Unexpected target "${t.target}"`);let n=e.t(e.t({accuracy:`default`,avoidSubclass:!1,flags:``,global:!1,hasIndices:!1,lazyCompileLength:1/0,target:`auto`,verbose:!1},t),{},{rules:e.t({allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1},t.rules)});return n.target===`auto`&&(n.target=K.flagGroups?`ES2025`:K.unicodeSets?`ES2024`:`ES2018`),n}var Wt=`[ -\r ]`,Gt=new Set([W(304),W(305)]),J=G`[\p{L}\p{M}\p{N}\p{Pc}]`;function Kt(e){if(Gt.has(e))return[e];let t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),i=Xt.get(n),a=Jt.get(n),o=Yt.get(n);return[...r].length===1&&t.add(r),o&&t.add(o),i&&t.add(i),t.add(n),a&&t.add(a),[...t]}var qt=new Map(`C Other
49
+ Cc Control cntrl
50
+ Cf Format
51
+ Cn Unassigned
52
+ Co Private_Use
53
+ Cs Surrogate
54
+ L Letter
55
+ LC Cased_Letter
56
+ Ll Lowercase_Letter
57
+ Lm Modifier_Letter
58
+ Lo Other_Letter
59
+ Lt Titlecase_Letter
60
+ Lu Uppercase_Letter
61
+ M Mark Combining_Mark
62
+ Mc Spacing_Mark
63
+ Me Enclosing_Mark
64
+ Mn Nonspacing_Mark
65
+ N Number
66
+ Nd Decimal_Number digit
67
+ Nl Letter_Number
68
+ No Other_Number
69
+ P Punctuation punct
70
+ Pc Connector_Punctuation
71
+ Pd Dash_Punctuation
72
+ Pe Close_Punctuation
73
+ Pf Final_Punctuation
74
+ Pi Initial_Punctuation
75
+ Po Other_Punctuation
76
+ Ps Open_Punctuation
77
+ S Symbol
78
+ Sc Currency_Symbol
79
+ Sk Modifier_Symbol
80
+ Sm Math_Symbol
81
+ So Other_Symbol
82
+ Z Separator
83
+ Zl Line_Separator
84
+ Zp Paragraph_Separator
85
+ Zs Space_Separator
86
+ ASCII
87
+ ASCII_Hex_Digit AHex
88
+ Alphabetic Alpha
89
+ Any
90
+ Assigned
91
+ Bidi_Control Bidi_C
92
+ Bidi_Mirrored Bidi_M
93
+ Case_Ignorable CI
94
+ Cased
95
+ Changes_When_Casefolded CWCF
96
+ Changes_When_Casemapped CWCM
97
+ Changes_When_Lowercased CWL
98
+ Changes_When_NFKC_Casefolded CWKCF
99
+ Changes_When_Titlecased CWT
100
+ Changes_When_Uppercased CWU
101
+ Dash
102
+ Default_Ignorable_Code_Point DI
103
+ Deprecated Dep
104
+ Diacritic Dia
105
+ Emoji
106
+ Emoji_Component EComp
107
+ Emoji_Modifier EMod
108
+ Emoji_Modifier_Base EBase
109
+ Emoji_Presentation EPres
110
+ Extended_Pictographic ExtPict
111
+ Extender Ext
112
+ Grapheme_Base Gr_Base
113
+ Grapheme_Extend Gr_Ext
114
+ Hex_Digit Hex
115
+ IDS_Binary_Operator IDSB
116
+ IDS_Trinary_Operator IDST
117
+ ID_Continue IDC
118
+ ID_Start IDS
119
+ Ideographic Ideo
120
+ Join_Control Join_C
121
+ Logical_Order_Exception LOE
122
+ Lowercase Lower
123
+ Math
124
+ Noncharacter_Code_Point NChar
125
+ Pattern_Syntax Pat_Syn
126
+ Pattern_White_Space Pat_WS
127
+ Quotation_Mark QMark
128
+ Radical
129
+ Regional_Indicator RI
130
+ Sentence_Terminal STerm
131
+ Soft_Dotted SD
132
+ Terminal_Punctuation Term
133
+ Unified_Ideograph UIdeo
134
+ Uppercase Upper
135
+ Variation_Selector VS
136
+ White_Space space
137
+ XID_Continue XIDC
138
+ XID_Start XIDS`.split(/\s/).map(e=>[j(e),e])),Jt=new Map([[`s`,W(383)],[W(383),`s`]]),Yt=new Map([[W(223),W(7838)],[W(107),W(8490)],[W(229),W(8491)],[W(969),W(8486)]]),Xt=new Map([Y(453),Y(456),Y(459),Y(498),...$t(8072,8079),...$t(8088,8095),...$t(8104,8111),Y(8124),Y(8140),Y(8188)]),Zt=new Map([[`alnum`,G`[\p{Alpha}\p{Nd}]`],[`alpha`,G`\p{Alpha}`],[`ascii`,G`\p{ASCII}`],[`blank`,G`[\p{Zs}\t]`],[`cntrl`,G`\p{Cc}`],[`digit`,G`\p{Nd}`],[`graph`,G`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],[`lower`,G`\p{Lower}`],[`print`,G`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],[`punct`,G`[\p{P}\p{S}]`],[`space`,G`\p{space}`],[`upper`,G`\p{Upper}`],[`word`,G`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],[`xdigit`,G`\p{AHex}`]]);function Qt(e,t){let n=[];for(let r=e;r<=t;r++)n.push(r);return n}function Y(e){let t=W(e);return[t.toLowerCase(),t]}function $t(e,t){return Qt(e,t).map(e=>Y(e))}var en=new Set([`Lower`,`Lowercase`,`Upper`,`Uppercase`,`Ll`,`Lowercase_Letter`,`Lt`,`Titlecase_Letter`,`Lu`,`Uppercase_Letter`]);function tn(t,n){let r=e.t({accuracy:`default`,asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:`ES2025`},n);on(t);let i={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:zt(r.bestEffortTarget,`ES2024`),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:t.flags.digitIsAscii,spaceIsAscii:t.flags.spaceIsAscii,wordIsAscii:t.flags.wordIsAscii};M(t,nn,i);let a={dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},o={currentFlags:a,prevFlags:null,globalFlags:a,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:i.subroutineRefMap};return M(t,rn,o),M(t,an,{groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer}),t._originMap=o.groupOriginByCopy,t._strategy=i.strategy,t}var nn={AbsenceFunction({node:e,parent:t,replaceWith:n}){let{body:r,kind:i}=e;if(i===`repeater`){let e=D();e.body[0].body.push(O({negate:!0,body:r}),k(`Any`));let i=D();i.body[0].body.push(nt(`greedy`,0,1/0,e)),n(Q(i,t),{traverse:!0})}else throw Error(`Unsupported absence function "(?~|"`)},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){let i=e.body.filter(e=>e.kind===`flags`);for(let e=n+1;e<t.body.length;e++){let n=t.body[e];q(r,n,[]).push(...i)}},exit({node:e},{flagDirectivesByAlt:t}){var n;if((n=t.get(e))!=null&&n.length){let n=pn(t.get(e));if(n){let t=D({flags:n});t.body[0].body=e.body,e.body=[Q(t,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:i,remove:a,replaceWith:o},s){let{kind:c,negate:l}=e,{asciiWordBoundaries:u,avoidSubclass:d,supportedGNodes:f,wordIsAscii:p}=s;if(c===`text_segment_boundary`)throw Error(`Unsupported text segment boundary "\\${l?`Y`:`y`}"`);if(c===`line_end`)o(Q(O({body:[w({body:[qe(`string_end`)]}),w({body:[T(10)]})]}),t));else if(c===`line_start`)o(Q(X(G`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(c===`search_start`)if(f.has(e))i.flags.sticky=!0,a();else{let e=r[n-1];if(e&&yn(e))o(Q(O({negate:!0}),t));else if(d)throw Error(G`Uses "\G" in a way that requires a subclass`);else o(Z(qe(`string_start`),t)),s.strategy=`clip_search`}else if(!(c===`string_end`||c===`string_start`))if(c===`string_end_newline`)o(Q(X(G`(?=\n?\z)`),t));else if(c===`word_boundary`){if(!p&&!u){let e=`(?:(?<=${J})(?!${J})|(?<!${J})(?=${J}))`,n=`(?:(?<=${J})(?=${J})|(?<!${J})(?!${J}))`;o(Q(X(l?n:e),t))}}else throw Error(`Unexpected assertion kind "${c}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n==`string`&&!xn(n)&&(n=fn(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!xn(r)&&(r=fn(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){t.kind===`intersection`&&n(Q(E({body:[e]}),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:i,digitIsAscii:a,spaceIsAscii:o,wordIsAscii:s}){let{kind:c,negate:l,value:u}=e;if(a&&(c===`digit`||u===`digit`)){n(Z(Ze(`digit`,{negate:l}),t));return}if(o&&(c===`space`||u===`space`)){n(Q(Sn(X(Wt),l),t));return}if(s&&(c===`word`||u===`word`)){n(Z(Ze(`word`,{negate:l}),t));return}if(c===`any`)n(Z(k(`Any`),t));else if(c===`digit`)n(Z(k(`Nd`,{negate:l}),t));else if(c!==`dot`)if(c===`text_segment`){if(r===`strict`)throw Error(G`Use of "\X" requires non-strict accuracy`);let e=`\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?`,a=G`\p{RI}{2}|${e}(?:\u200D${e})*`;n(Q(X(G`(?>\r\n|${i?G`\p{RGI_Emoji}`:a}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(c===`hex`)n(Z(k(`AHex`,{negate:l}),t));else if(c===`newline`)n(Q(X(l?`[^
139
+ ]`:`(?>\r
140
+ ?|[
141
+ \v\f…\u2028\u2029])`),t));else if(c===`posix`)if(!i&&(u===`graph`||u===`print`)){if(r===`strict`)throw Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let e={graph:`!-~`,print:` -~`}[u];l&&(e=`\0-${W(e.codePointAt(0)-1)}${W(e.codePointAt(2)+1)}-\u{10FFFF}`),n(Q(X(`[${e}]`),t))}else n(Q(Sn(X(Zt.get(u)),l),t));else if(c===`property`)qt.has(j(u))||(e.key=`sc`);else if(c===`space`)n(Z(k(`space`,{negate:l}),t));else if(c===`word`)n(Q(Sn(X(J),l),t));else throw Error(`Unexpected character set kind "${c}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:i,removeAllPrevSiblings:a,removeAllNextSiblings:o}){let{kind:s,flags:c}=e;if(s===`flags`)if(!c.enable&&!c.disable)r();else{let e=D({flags:c});e.body[0].body=o(),i(Q(e,t),{traverse:!0})}else if(s===`keep`){let e=n.body[0],r=n.body.length===1&&Pe(e,{type:`Group`})&&e.body[0].body.length===1?e.body[0]:n;if(t.parent!==r||r.body.length>1)throw Error(G`Uses "\K" in a way that's unsupported`);let o=O({behind:!0});o.body[0].body=a(),i(Q(o,t))}else throw Error(`Unexpected directive kind "${s}"`)},Flags({node:e,parent:t}){var n;if(e.posixIsAscii)throw Error(`Unsupported flag "P"`);if(e.textSegmentMode===`word`)throw Error(`Unsupported flag "y{w}"`);[`digitIsAscii`,`extended`,`posixIsAscii`,`spaceIsAscii`,`wordIsAscii`,`textSegmentMode`].forEach(t=>delete e[t]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:(n=e.sticky)==null?!1:n}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:n}=e.flags;t!=null&&t.extended&&delete t.extended,n!=null&&n.extended&&delete n.extended,t!=null&&t.dotAll&&n!=null&&n.dotAll&&delete t.dotAll,t!=null&&t.ignoreCase&&n!=null&&n.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){let{kind:n}=e;n===`lookbehind`&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){let{kind:r}=e;if(r===`fail`)n(Q(O({negate:!0}),t));else throw Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type===`Quantifier`){let t=D();t.body[0].body.push(e.body),e.body=Q(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let n=[],r=!1,i=!1;for(let t of e.body)if(t.body.length===1&&t.body[0].kind===`search_start`)t.body.pop();else{let e=gn(t.body);e?(r=!0,Array.isArray(e)?n.push(...e):n.push(e)):i=!0}r&&!i&&n.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t===`strict`&&n&&r)throw Error(G`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n==`string`&&!xn(n)&&(n=fn(n,t),e.ref=n)}},rn={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){let{orphan:r,ref:i}=e;r||n.set(e,[...t.get(i).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:i,groupsByName:a,multiplexCapturesToLeftByRef:o,openRefs:s,reffedNodesByReferencer:c}){var l;let u=i.get(e);if(u&&s.has(e.number)){let r=Z(un(e.number),t);c.set(r,s.get(e.number)),n(r);return}s.set(e.number,e),o.set(e.number,[]),e.name&&q(o,e.name,[]);let d=o.get((l=e.name)==null?e.number:l);for(let t=0;t<d.length;t++){let n=d[t];if(u===n.node||u&&u===n.origin||e===n.origin){d.splice(t,1);break}}if(o.get(e.number).push({node:e,origin:u}),e.name&&o.get(e.name).push({node:e,origin:u}),e.name){let t=q(a,e.name,new Map),n=!1;if(u)n=!0;else for(let e of t.values())if(!e.hasDuplicateNameToRemove){n=!0;break}a.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:n})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=Rt(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){let{isRecursive:i,ref:a}=e;if(i){let n=t;for(;(n=n.parent)&&!(n.type===`CapturingGroup`&&(n.name===a||n.number===a)););r.reffedNodesByReferencer.set(e,n);return}let o=r.subroutineRefMap.get(a),s=a===0,c=s?un(0):ln(o,r.groupOriginByCopy,null),l=c;if(!s){let e=pn(dn(o,e=>e.type===`Group`&&!!e.flags)),t=e?Rt(r.globalFlags,e):r.globalFlags;sn(t,r.currentFlags)||(l=D({flags:mn(t)}),l.body[0].body.push(c))}n(Q(l,t),{traverse:!s})}},an={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}let i=r.reffedNodesByReferencer.get(e).filter(t=>cn(t,e));i.length?i.length>1?n(Q(D({atomic:!0,body:i.reverse().map(e=>w({body:[Je(e.number)]}))}),t)):e.ref=i[0].number:n(Q(O({negate:!0}),t))},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){let n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let t=0;t<n;t++){let t=Ye();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function on(e){M(e,{"*"({node:e,parent:t}){e.parent=t}})}function sn(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function cn(e,t){let n=t;do{if(n.type===`Regex`)return!1;if(n.type===`Alternative`)continue;if(n===e)return!1;let t=hn(n.parent);for(let r of t){if(r===n)break;if(r===e||_n(r,e))return!0}}while(n=n.parent);throw Error(`Unexpected path`)}function ln(e,t,n,r){let i=Array.isArray(e)?[]:{};for(let[o,s]of Object.entries(e))if(o===`parent`)i.parent=Array.isArray(n)?r:n;else if(s&&typeof s==`object`)i[o]=ln(s,t,i,n);else{if(o===`type`&&s===`CapturingGroup`){var a;t.set(i,(a=t.get(e))==null?e:a)}i[o]=s}return i}function un(e){let t=it(e);return t.isRecursive=!0,t}function dn(e,t){let n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function fn(e,t){if(t.has(e))return t.get(e);let n=`$${t.size}_${e.replace(RegExp(`^[^$_\\p{IDS}]|[^$\\u200C\\u200D\\p{IDC}]`,`gu`),`_`)}`;return t.set(e,n),n}function pn(e){let t=[`dotAll`,`ignoreCase`],n={enable:{},disable:{}};return e.forEach(({flags:e})=>{t.forEach(t=>{var r,i;(r=e.enable)!=null&&r[t]&&(delete n.disable[t],n.enable[t]=!0),(i=e.disable)!=null&&i[t]&&(n.disable[t]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function mn({dotAll:e,ignoreCase:t}){let n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function hn(e){if(!e)throw Error(`Node expected`);let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function gn(e){let t=e.find(e=>e.kind===`search_start`||bn(e,{negate:!1})||!vn(e));if(!t)return null;if(t.kind===`search_start`)return t;if(t.type===`LookaroundAssertion`)return t.body[0].body[0];if(t.type===`CapturingGroup`||t.type===`Group`){let e=[];for(let n of t.body){let t=gn(n.body);if(!t)return null;Array.isArray(t)?e.push(...t):e.push(t)}return e}return null}function _n(e,t){var n;let r=(n=hn(e))==null?[]:n;for(let e of r)if(e===t||_n(e,t))return!0;return!1}function vn({type:e}){return e===`Assertion`||e===`Directive`||e===`LookaroundAssertion`}function yn(e){let t=[`Character`,`CharacterClass`,`CharacterSet`];return t.includes(e.type)||e.type===`Quantifier`&&e.min&&t.includes(e.body.type)}function bn(t,n){let r=e.t({negate:null},n);return t.type===`LookaroundAssertion`&&(r.negate===null||t.negate===r.negate)&&t.body.length===1&&Pe(t.body[0],{type:`Assertion`,kind:`search_start`})}function xn(e){return RegExp(`^[$_\\p{IDS}][$\\u200C\\u200D\\p{IDC}]*$`,`u`).test(e)}function X(t,n){let r=Le(t,e.t(e.t({},n),{},{unicodePropertyMap:qt})).body;return r.length>1||r[0].body.length>1?D({body:r}):r[0].body[0]}function Sn(e,t){return e.negate=t,e}function Z(e,t){return e.parent=t,e}function Q(e,t){return on(e),e.parent=t,e}function Cn(t,n){let r=Ut(n),i=zt(r.target,`ES2024`),a=zt(r.target,`ES2025`),o=r.rules.recursionLimit;if(!Number.isInteger(o)||o<2||o>20)throw Error(`Invalid recursionLimit; use 2-20`);let s=null,c=null;if(!a){let e=[t.flags.ignoreCase];M(t,wn,{getCurrentModI:()=>e.at(-1),popModI(){e.pop()},pushModI(t){e.push(t)},setHasCasedChar(){e.at(-1)?s=!0:c=!0}})}let l={dotAll:t.flags.dotAll,ignoreCase:!!((t.flags.ignoreCase||s)&&!c)},u=t,d={accuracy:r.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},inCharClass:!1,lastNode:u,originMap:t._originMap,recursionLimit:o,useAppliedIgnoreCase:!!(!a&&s&&c),useFlagMods:a,useFlagV:i,verbose:r.verbose};function f(e){return d.lastNode=u,u=e,Bt(Tn[e.type],`Unexpected node type "${e.type}"`)(e,d,f)}let p={pattern:t.body.map(f).join(`|`),flags:f(t.flags),options:e.t({},t.options)};return i||(delete p.options.force.v,p.options.disable.v=!0,p.options.unicodeSetsPlugin=null),p._captureTransfers=new Map,p._hiddenCaptures=[],d.captureMap.forEach((e,t)=>{e.hidden&&p._hiddenCaptures.push(t),e.transferTo&&q(p._captureTransfers,e.transferTo,[]).push(t)}),p}var wn={"*":{enter({node:e},t){if(In(e)){let n=t.getCurrentModI();t.pushModI(e.flags?Rt({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){In(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){jn(W(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),Mn(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind===`property`&&en.has(e.value)&&t.setHasCasedChar()}},Tn={Alternative({body:e},t,n){return e.map(n).join(``)},Assertion({kind:e,negate:t}){if(e===`string_end`)return`$`;if(e===`string_start`)return`^`;if(e===`word_boundary`)return t?G`\B`:G`\b`;throw Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!=`number`)throw Error(`Unexpected named backref in transformed AST`);if(!t.useFlagMods&&t.accuracy===`strict`&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw Error(`Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy`);return`\\`+e},CapturingGroup(e,t,n){let{body:r,name:i,number:a}=e,o={ignoreCase:t.currentFlags.ignoreCase},s=t.originMap.get(e);return s&&(o.hidden=!0,a>s.number&&(o.transferTo=s.number)),t.captureMap.set(a,o),`(${i?`?<${i}>`:``}${r.map(n).join(`|`)})`},Character({value:e},t){let n=W(e),r=$(e,{escDigit:t.lastNode.type===`Backreference`,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&jn(n)){let e=Kt(n);return t.inCharClass?e.join(``):e.length>1?`[${e.join(``)}]`:e[0]}return n},CharacterClass(e,t,n){let{kind:r,negate:i,parent:a}=e,{body:o}=e;if(r===`intersection`&&!t.useFlagV)throw Error(`Use of character class intersection requires min target ES2024`);K.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&o.some(Rn)&&(o=[T(45),...o.filter(e=>!Rn(e))]);let s=()=>`[${i?`^`:``}${o.map(n).join(r===`intersection`?`&&`:``)}]`;if(!t.inCharClass){if((!t.useFlagV||K.bugNestedClassIgnoresNegation)&&!i){let t=o.filter(e=>e.type===`CharacterClass`&&e.kind===`union`&&e.negate);if(t.length){let r=D(),i=r.body[0];return r.parent=a,i.parent=r,o=o.filter(e=>!t.includes(e)),e.body=o,o.length?(e.parent=i,i.body.push(e)):r.body.pop(),t.forEach(e=>{let t=w({body:[e]});e.parent=t,t.parent=r,r.body.push(t)}),n(r)}}t.inCharClass=!0;let r=s();return t.inCharClass=!1,r}let c=o[0];if(r===`union`&&!i&&c&&((!t.useFlagV||!t.verbose)&&a.kind===`union`&&!(K.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&a.kind===`intersection`&&o.length===1&&c.type!==`CharacterClassRange`))return o.map(n).join(``);if(!t.useFlagV&&a.type===`CharacterClass`)throw Error(`Uses nested character class in a way that requires min target ES2024`);return s()},CharacterClassRange(e,t){let n=e.min.value,r=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=$(n,i),o=$(r,i),s=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Nn(Mn(e)).forEach(e=>{s.add(Array.isArray(e)?`${$(e[0],i)}-${$(e[1],i)}`:$(e,i))}),`${a}-${o}${[...s].join(``)}`},CharacterSet({kind:e,negate:t,value:n,key:r},i){if(e===`dot`)return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?`.`:`[^]`:G`[^\n]`;if(e===`digit`)return t?G`\D`:G`\d`;if(e===`property`){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&en.has(n))throw Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?G`\P`:G`\p`}{${r?`${r}=`:``}${n}}`}if(e===`word`)return t?G`\W`:G`\w`;throw Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?`i`:``)+(e.dotAll?`s`:``)+(e.sticky?`y`:``)},Group({atomic:e,body:t,flags:n,parent:r},i,a){let o=i.currentFlags;n&&(i.currentFlags=Rt(o,n));let s=t.map(a).join(`|`),c=!i.verbose&&t.length===1&&r.type!==`Quantifier`&&!e&&(!i.useFlagMods||!n)?s:`(?${Pn(e,n,i.useFlagMods)}${s})`;return i.currentFlags=o,c},LookaroundAssertion({body:e,kind:t,negate:n},r,i){return`(?${`${t===`lookahead`?``:`<`}${n?`!`:`=`}`}${e.map(i).join(`|`)})`},Quantifier(e,t,n){return n(e.body)+Fn(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw Error(`Unexpected non-recursive subroutine in transformed AST`);let r=n.recursionLimit;return t===0?`(?R=${r})`:G`\g<${t}&R=${r}>`}},En=new Set([`$`,`(`,`)`,`*`,`+`,`.`,`?`,`[`,`\\`,`]`,`^`,`{`,`|`,`}`]),Dn=new Set([`-`,`\\`,`]`,`^`,`[`]),On=new Set("()-/[\\]^{|}!#$%&*+,.:;<=>?@`~".split(``)),kn=new Map([[9,G`\t`],[10,G`\n`],[11,G`\v`],[12,G`\f`],[13,G`\r`],[8232,G`\u2028`],[8233,G`\u2029`],[65279,G`\uFEFF`]]),An=RegExp(`^\\p{Cased}$`,`u`);function jn(e){return An.test(e)}function Mn(e,t){let n=!!(t!=null&&t.firstOnly),r=e.min.value,i=e.max.value,a=[];if(r<65&&(i===65535||i>=131071)||r===65536&&i>=131071)return a;for(let e=r;e<=i;e++){let t=W(e);if(!jn(t))continue;let o=Kt(t).filter(e=>{let t=e.codePointAt(0);return t<r||t>i});if(o.length&&(a.push(...o),n))break}return a}function $(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(kn.has(e))return kn.get(e);if(e<32||e>126&&e<160||e>262143||t&&Ln(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,`0`)}`;let i=n?r?On:Dn:En,a=W(e);return(i.has(a)?`\\`:``)+a}function Nn(e){let t=e.map(e=>e.codePointAt(0)).sort((e,t)=>e-t),n=[],r=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?r!=null||(r=t[e]):r===null?n.push(t[e]):(n.push([r,t[e]]),r=null);return n}function Pn(e,t,n){if(e)return`>`;let r=``;if(t&&n){let{enable:e,disable:n}=t;r=(e!=null&&e.ignoreCase?`i`:``)+(e!=null&&e.dotAll?`s`:``)+(n?`-`:``)+(n!=null&&n.ignoreCase?`i`:``)+(n!=null&&n.dotAll?`s`:``)}return`${r}:`}function Fn({kind:e,max:t,min:n}){let r;return r=!n&&t===1?`?`:!n&&t===1/0?`*`:n===1&&t===1/0?`+`:n===t?`{${n}}`:`{${n},${t===1/0?``:t}}`,r+{greedy:``,lazy:`?`,possessive:`+`}[e]}function In({type:e}){return e===`CapturingGroup`||e===`Group`||e===`LookaroundAssertion`}function Ln(e){return e>47&&e<58}function Rn({type:e,value:t}){return e===`Character`&&t===45}var zn=(R=new WeakMap,z=new WeakMap,B=new WeakMap,V=new WeakMap,H=new WeakMap,U=new WeakSet,Lt=class n extends RegExp{get source(){return c(B,this)||`(?:)`}constructor(t,r,i){var s=(...t)=>(super(...t),a(this,U),o(this,R,new Map),o(this,z,null),o(this,B,void 0),o(this,V,null),o(this,H,null),e.n(this,`rawOptions`,{}),this);let u=!!(i!=null&&i.lazyCompile);if(t instanceof RegExp){if(i)throw Error(`Cannot provide options when copying a regexp`);let e=t;s(e,r),l(B,this,e.source),e instanceof n&&(l(R,this,c(R,e)),l(V,this,c(V,e)),l(H,this,c(H,e)),this.rawOptions=e.rawOptions)}else{let n=e.t({hiddenCaptures:[],strategy:null,transfers:[]},i);s(u?``:t,r),l(B,this,t),l(R,this,Hn(n.hiddenCaptures,n.transfers)),l(H,this,n.strategy),this.rawOptions=i==null?{}:i}u||l(z,this,this)}exec(e){if(!c(z,this)){let e=this.rawOptions,{lazyCompile:r}=e,i=t.t(e,It);l(z,this,new n(c(B,this),this.flags,i))}let r=this.global||this.sticky,i=this.lastIndex;if(c(H,this)===`clip_search`&&r&&i){this.lastIndex=0;let t=s(U,this,Bn).call(this,e.slice(i));return t&&(Vn(t,i,e,this.hasIndices),this.lastIndex+=i),t}return s(U,this,Bn).call(this,e)}},Lt);function Bn(e){c(z,this).lastIndex=this.lastIndex;let t=p(Lt.prototype,`exec`,this).call(c(z,this),e);if(this.lastIndex=c(z,this).lastIndex,!t||!c(R,this).size)return t;let n=[...t];t.length=1;let r;this.hasIndices&&(r=[...t.indices],t.indices.length=1);let i=[0];for(let e=1;e<n.length;e++){var a;let{hidden:o,transferTo:s}=(a=c(R,this).get(e))==null?{}:a;if(o?i.push(null):(i.push(t.length),t.push(n[e]),this.hasIndices&&t.indices.push(r[e])),s&&n[e]!==void 0){let a=i[s];if(!a)throw Error(`Invalid capture transfer to "${a}"`);if(t[a]=n[e],this.hasIndices&&(t.indices[a]=r[e]),t.groups){c(V,this)||l(V,this,Un(this.source));let i=c(V,this).get(s);i&&(t.groups[i]=n[e],this.hasIndices&&(t.indices.groups[i]=r[e]))}}}return t}function Vn(e,t,n,r){if(e.index+=t,e.input=n,r){let n=e.indices;for(let e=0;e<n.length;e++){let r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])}let r=n.groups;r&&Object.keys(r).forEach(e=>{let n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])})}}function Hn(e,t){let n=new Map;for(let t of e)n.set(t,{hidden:!0});for(let[e,r]of t)for(let t of r)q(n,t,{}).transferTo=e;return n}function Un(e){let t=RegExp(`(?<capture>\\((?:\\?<(?![=!])(?<name>[^>]+)>|(?!\\?)))|\\\\?.`,`gsu`),n=new Map,r=0,i=0,a;for(;a=t.exec(e);){let{0:e,groups:{capture:t,name:o}}=a;e===`[`?r++:r?e===`]`&&r--:t&&(i++,o&&n.set(i,o))}return n}function Wn(e,t){let n=Gn(e,t);return n.options?new zn(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function Gn(t,n){let r=Ut(n),i=tn(Le(t,{flags:r.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline},skipBackrefValidation:r.rules.allowOrphanBackrefs,unicodePropertyMap:qt}),{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,bestEffortTarget:r.target}),a=Cn(i,r),o=At(a.pattern,{captureTransfers:a._captureTransfers,hiddenCaptures:a._hiddenCaptures,mode:`external`}),s=St(Tt(o.pattern).pattern,{captureTransfers:o.captureTransfers,hiddenCaptures:o.hiddenCaptures}),c={pattern:s.pattern,flags:`${r.hasIndices?`d`:``}${r.global?`g`:``}${a.flags}${a.options.disable.v?`u`:`v`}`};if(r.avoidSubclass){if(r.lazyCompileLength!==1/0)throw Error(`Lazy compilation requires subclass`)}else{let t=s.hiddenCaptures.sort((e,t)=>e-t),n=Array.from(s.captureTransfers),a=i._strategy,o=c.pattern.length>=r.lazyCompileLength;(t.length||n.length||a||o)&&(c.options=e.t(e.t(e.t(e.t({},t.length&&{hiddenCaptures:t}),n.length&&{transfers:n}),a&&{strategy:a}),o&&{lazyCompile:o}))}return c}function Kn(t,n){return Wn(t,e.t({global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0}},n))}function qn(e={}){let t=Object.assign({target:`auto`,cache:new Map},e);return t.regexConstructor||(t.regexConstructor=e=>Kn(e,{target:t.target})),{createScanner(e){return new r(e,t)},createString(e){return{content:e}}}}exports.createJavaScriptRegexEngine=qn;
@@ -0,0 +1,85 @@
1
+ require(`./chunk-Kud-AIAt.cjs`);const e=require(`./chunk-5PVQY5BW-DmATt7Fz.cjs`),t=require(`./src-d9yswOqA.cjs`),n=require(`./chunk-ICPOFSXX-DQ4NxQTM.cjs`),r=require(`./channel-BqhnS5zl.cjs`);require(`./dist-CxdzFxpy.cjs`),require(`./chunk-U2HBQHQK-D62A_XCV.cjs`),require(`./chunk-BSJP7CBP-CjkEoJDh.cjs`),require(`./chunk-ZZ45TVLE-CZOUDLGO.cjs`);const i=require(`./chunk-55IACEB6-DyTTYuc2.cjs`),a=require(`./chunk-EDXVE4YY-Bw1v2mUF.cjs`);require(`./chunk-X2U36JSP-BEHpYlmW.cjs`),require(`./chunk-5FUZZQ4R-6rlcIGG-.cjs`),require(`./chunk-ENJZ2VHE-9fAN50L-.cjs`);const o=require(`./chunk-336JU56O-CqWDeAp1.cjs`);var s,c=(function(){var e=t.h(function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],r=[1,10],i=[1,11],a=[1,12],o=[1,13],s=[1,23],c=[1,24],l=[1,25],u=[1,26],d=[1,27],f=[1,19],p=[1,28],m=[1,29],h=[1,20],g=[1,18],_=[1,21],v=[1,22],y=[1,36],b=[1,37],x=[1,38],S=[1,39],C=[1,40],w=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],T=[1,45],E=[1,46],D=[1,55],O=[40,48,50,51,52,70,71],k=[1,66],A=[1,64],j=[1,61],M=[1,65],N=[1,67],P=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],F=[65,66,67,68,69],I=[1,84],L=[1,83],R=[1,81],z=[1,82],B=[6,10,42,47],V=[6,10,13,41,42,47,48,49],H=[1,92],U=[1,91],W=[1,90],G=[19,58],K=[1,101],q=[1,100],J=[19,58,60,62],Y={trace:t.h(function(){},`trace`),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72,$accept:0,$end:1},terminals_:{2:`error`,4:`ER_DIAGRAM`,6:`EOF`,8:`SPACE`,10:`NEWLINE`,13:`COLON`,15:`STYLE_SEPARATOR`,17:`BLOCK_START`,19:`BLOCK_STOP`,20:`SQS`,21:`SQE`,22:`title`,23:`title_value`,24:`acc_title`,25:`acc_title_value`,26:`acc_descr`,27:`acc_descr_value`,28:`acc_descr_multiline_value`,33:`direction_tb`,34:`direction_bt`,35:`direction_rl`,36:`direction_lr`,37:`CLASSDEF`,40:`UNICODE_TEXT`,41:`STYLE_TEXT`,42:`COMMA`,43:`CLASS`,44:`STYLE`,47:`SEMI`,48:`NUM`,49:`BRKT`,50:`ENTITY_NAME`,51:`DECIMAL_NUM`,52:`ENTITY_ONE`,58:`ATTRIBUTE_WORD`,60:`,`,61:`ATTRIBUTE_KEY`,62:`COMMENT`,65:`ZERO_OR_ONE`,66:`ZERO_OR_MORE`,67:`ONE_OR_MORE`,68:`ONLY_ONE`,69:`MD_PARENT`,70:`NON_IDENTIFYING`,71:`IDENTIFYING`,72:`WORD`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:t.h(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:break;case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(a[s-4]),r.addEntity(a[s-2]),r.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 9:r.addEntity(a[s-8]),r.addEntity(a[s-4]),r.addRelationship(a[s-8],a[s],a[s-4],a[s-5]),r.setClass([a[s-8]],a[s-6]),r.setClass([a[s-4]],a[s-2]);break;case 10:r.addEntity(a[s-6]),r.addEntity(a[s-2]),r.addRelationship(a[s-6],a[s],a[s-2],a[s-3]),r.setClass([a[s-6]],a[s-4]);break;case 11:r.addEntity(a[s-6]),r.addEntity(a[s-4]),r.addRelationship(a[s-6],a[s],a[s-4],a[s-5]),r.setClass([a[s-4]],a[s-2]);break;case 12:r.addEntity(a[s-3]),r.addAttributes(a[s-3],a[s-1]);break;case 13:r.addEntity(a[s-5]),r.addAttributes(a[s-5],a[s-1]),r.setClass([a[s-5]],a[s-3]);break;case 14:r.addEntity(a[s-2]);break;case 15:r.addEntity(a[s-4]),r.setClass([a[s-4]],a[s-2]);break;case 16:r.addEntity(a[s]);break;case 17:r.addEntity(a[s-2]),r.setClass([a[s-2]],a[s]);break;case 18:r.addEntity(a[s-6],a[s-4]),r.addAttributes(a[s-6],a[s-1]);break;case 19:r.addEntity(a[s-8],a[s-6]),r.addAttributes(a[s-8],a[s-1]),r.setClass([a[s-8]],a[s-3]);break;case 20:r.addEntity(a[s-5],a[s-3]);break;case 21:r.addEntity(a[s-7],a[s-5]),r.setClass([a[s-7]],a[s-2]);break;case 22:r.addEntity(a[s-3],a[s-1]);break;case 23:r.addEntity(a[s-5],a[s-3]),r.setClass([a[s-5]],a[s]);break;case 24:case 25:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection(`TB`);break;case 33:r.setDirection(`BT`);break;case 34:r.setDirection(`RL`);break;case 35:r.setDirection(`LR`);break;case 36:this.$=a[s-3],r.addClass(a[s-2],a[s-1]);break;case 37:case 38:case 59:case 67:this.$=[a[s]];break;case 39:case 40:this.$=a[s-2].concat([a[s]]);break;case 41:this.$=a[s-2],r.setClass(a[s-1],a[s]);break;case 42:this.$=a[s-3],r.addCssStyles(a[s-2],a[s-1]);break;case 43:this.$=[a[s]];break;case 44:a[s-2].push(a[s]),this.$=a[s-2];break;case 46:this.$=a[s-1]+a[s];break;case 54:case 79:case 80:this.$=a[s].replace(/"/g,``);break;case 55:case 56:case 57:case 58:case 81:this.$=a[s];break;case 60:a[s].push(a[s-1]),this.$=a[s];break;case 61:this.$={type:a[s-1],name:a[s]};break;case 62:this.$={type:a[s-2],name:a[s-1],keys:a[s]};break;case 63:this.$={type:a[s-2],name:a[s-1],comment:a[s]};break;case 64:this.$={type:a[s-3],name:a[s-2],keys:a[s-1],comment:a[s]};break;case 65:case 66:case 69:this.$=a[s];break;case 68:a[s-2].push(a[s]),this.$=a[s-2];break;case 70:this.$=a[s].replace(/"/g,``);break;case 71:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 72:this.$=r.Cardinality.ZERO_OR_ONE;break;case 73:this.$=r.Cardinality.ZERO_OR_MORE;break;case 74:this.$=r.Cardinality.ONE_OR_MORE;break;case 75:this.$=r.Cardinality.ONLY_ONE;break;case 76:this.$=r.Cardinality.MD_PARENT;break;case 77:this.$=r.Identification.NON_IDENTIFYING;break;case 78:this.$=r.Identification.IDENTIFYING;break}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:r,24:i,26:a,28:o,29:14,30:15,31:16,32:17,33:s,34:c,35:l,36:u,37:d,40:f,43:p,44:m,48:h,50:g,51:_,52:v},e(n,[2,7],{1:[2,1]}),e(n,[2,3]),{9:30,11:9,22:r,24:i,26:a,28:o,29:14,30:15,31:16,32:17,33:s,34:c,35:l,36:u,37:d,40:f,43:p,44:m,48:h,50:g,51:_,52:v},e(n,[2,5]),e(n,[2,6]),e(n,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:y,66:b,67:x,68:S,69:C}),{23:[1,41]},{25:[1,42]},{27:[1,43]},e(n,[2,27]),e(n,[2,28]),e(n,[2,29]),e(n,[2,30]),e(n,[2,31]),e(w,[2,54]),e(w,[2,55]),e(w,[2,56]),e(w,[2,57]),e(w,[2,58]),e(n,[2,32]),e(n,[2,33]),e(n,[2,34]),e(n,[2,35]),{16:44,40:T,41:E},{16:47,40:T,41:E},{16:48,40:T,41:E},e(n,[2,4]),{11:49,40:f,48:h,50:g,51:_,52:v},{16:50,40:T,41:E},{18:51,19:[1,52],53:53,54:54,58:D},{11:56,40:f,48:h,50:g,51:_,52:v},{64:57,70:[1,58],71:[1,59]},e(O,[2,72]),e(O,[2,73]),e(O,[2,74]),e(O,[2,75]),e(O,[2,76]),e(n,[2,24]),e(n,[2,25]),e(n,[2,26]),{13:k,38:60,41:A,42:j,45:62,46:63,48:M,49:N},e(P,[2,37]),e(P,[2,38]),{16:68,40:T,41:E,42:j},{13:k,38:69,41:A,42:j,45:62,46:63,48:M,49:N},{13:[1,70],15:[1,71]},e(n,[2,17],{63:35,12:72,17:[1,73],42:j,65:y,66:b,67:x,68:S,69:C}),{19:[1,74]},e(n,[2,14]),{18:75,19:[2,59],53:53,54:54,58:D},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:y,66:b,67:x,68:S,69:C},e(F,[2,77]),e(F,[2,78]),{6:I,10:L,39:80,42:R,47:z},{40:[1,85],41:[1,86]},e(B,[2,43],{46:87,13:k,41:A,48:M,49:N}),e(V,[2,45]),e(V,[2,50]),e(V,[2,51]),e(V,[2,52]),e(V,[2,53]),e(n,[2,41],{42:j}),{6:I,10:L,39:88,42:R,47:z},{14:89,40:H,50:U,72:W},{16:93,40:T,41:E},{11:94,40:f,48:h,50:g,51:_,52:v},{18:95,19:[1,96],53:53,54:54,58:D},e(n,[2,12]),{19:[2,60]},e(G,[2,61],{56:97,57:98,59:99,61:K,62:q}),e([19,58,61,62],[2,66]),e(n,[2,22],{15:[1,103],17:[1,102]}),e([40,48,50,51,52],[2,71]),e(n,[2,36]),{13:k,41:A,45:104,46:63,48:M,49:N},e(n,[2,47]),e(n,[2,48]),e(n,[2,49]),e(P,[2,39]),e(P,[2,40]),e(V,[2,46]),e(n,[2,42]),e(n,[2,8]),e(n,[2,79]),e(n,[2,80]),e(n,[2,81]),{13:[1,105],42:j},{13:[1,107],15:[1,106]},{19:[1,108]},e(n,[2,15]),e(G,[2,62],{57:109,60:[1,110],62:q}),e(G,[2,63]),e(J,[2,67]),e(G,[2,70]),e(J,[2,69]),{18:111,19:[1,112],53:53,54:54,58:D},{16:113,40:T,41:E},e(B,[2,44],{46:87,13:k,41:A,48:M,49:N}),{14:114,40:H,50:U,72:W},{16:115,40:T,41:E},{14:116,40:H,50:U,72:W},e(n,[2,13]),e(G,[2,64]),{59:117,61:K},{19:[1,118]},e(n,[2,20]),e(n,[2,23],{17:[1,119],42:j}),e(n,[2,11]),{13:[1,120],42:j},e(n,[2,10]),e(J,[2,68]),e(n,[2,18]),{18:121,19:[1,122],53:53,54:54,58:D},{14:123,40:H,50:U,72:W},{19:[1,124]},e(n,[2,21]),e(n,[2,9]),e(n,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:t.h(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t.h(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t.h(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t.h(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S==null&&(S=x()),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
+ `+h.showPosition()+`
3
+ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};Y.lexer=(function(){return{EOF:1,parseError:t.h(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t.h(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t.h(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t.h(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t.h(function(){return this._more=!0,this},`more`),reject:t.h(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t.h(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t.h(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t.h(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t.h(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
+ `+t+`^`},`showPosition`),test_match:t.h(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:t.h(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:t.h(function(){return this.next()||this.lex()},`lex`),begin:t.h(function(e){this.conditionStack.push(e)},`begin`),popState:t.h(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t.h(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:t.h(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t.h(function(e){this.begin(e)},`pushState`),stateStackSize:t.h(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:t.h(function(e,t,n,r){switch(n){case 0:return this.begin(`acc_title`),24;case 1:return this.popState(),`acc_title_value`;case 2:return this.begin(`acc_descr`),26;case 3:return this.popState(),`acc_descr_value`;case 4:this.begin(`acc_descr_multiline`);break;case 5:this.popState();break;case 6:return`acc_descr_multiline_value`;case 7:return 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:break;case 13:return 8;case 14:return 50;case 15:return 72;case 16:return 4;case 17:return this.begin(`block`),17;case 18:return 49;case 19:return 49;case 20:return 42;case 21:return 15;case 22:return 13;case 23:break;case 24:return 61;case 25:return 58;case 26:return 58;case 27:return 62;case 28:break;case 29:return this.popState(),19;case 30:return t.yytext[0];case 31:return 20;case 32:return 21;case 33:return this.begin(`style`),44;case 34:return this.popState(),10;case 35:break;case 36:return 13;case 37:return 42;case 38:return 49;case 39:return this.begin(`style`),37;case 40:return 43;case 41:return 65;case 42:return 67;case 43:return 67;case 44:return 67;case 45:return 65;case 46:return 65;case 47:return 66;case 48:return 66;case 49:return 66;case 50:return 66;case 51:return 66;case 52:return 67;case 53:return 66;case 54:return 67;case 55:return 68;case 56:return 68;case 57:return 51;case 58:return 68;case 59:return 68;case 60:return 68;case 61:return 52;case 62:return 48;case 63:return 68;case 64:return 65;case 65:return 66;case 66:return 67;case 67:return 69;case 68:return 70;case 69:return 71;case 70:return 71;case 71:return 70;case 72:return 70;case 73:return 70;case 74:return 41;case 75:return 47;case 76:return 40;case 77:return t.yytext[0];case 78:return 6}},`anonymous`),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[34,35,36,37,38,74,75],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[23,24,25,26,27,28,29,30],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,31,32,33,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,76,77,78],inclusive:!0}}}})();function X(){this.yy={}}return t.h(X,`Parser`),X.prototype=Y,Y.Parser=X,new X})();c.parser=c;var l=c,u=(s=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.direction=`TB`,this.Cardinality={ZERO_OR_ONE:`ZERO_OR_ONE`,ZERO_OR_MORE:`ZERO_OR_MORE`,ONE_OR_MORE:`ONE_OR_MORE`,ONLY_ONE:`ONLY_ONE`,MD_PARENT:`MD_PARENT`},this.Identification={NON_IDENTIFYING:`NON_IDENTIFYING`,IDENTIFYING:`IDENTIFYING`},this.setAccTitle=n.V,this.getAccTitle=n.v,this.setAccDescription=n.B,this.getAccDescription=n._,this.setDiagramTitle=n.W,this.getDiagramTitle=n.C,this.getConfig=t.h(()=>n.b().er,`getConfig`),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}addEntity(e,r=``){var i;if(this.entities.has(e))!((i=this.entities.get(e))!=null&&i.alias)&&r&&(this.entities.get(e).alias=r,t.g.info(`Add alias '${r}' to entity '${e}'`));else{var a;this.entities.set(e,{id:`entity-${e}-${this.entities.size}`,label:e,attributes:[],alias:r,shape:`erBox`,look:(a=n.b().look)==null?`default`:a,cssClasses:`default`,cssStyles:[],labelType:`markdown`}),t.g.info(`Added new entity :`,e)}return this.entities.get(e)}getEntity(e){return this.entities.get(e)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(e,n){let r=this.addEntity(e),i;for(i=n.length-1;i>=0;i--)n[i].keys||(n[i].keys=[]),n[i].comment||(n[i].comment=``),r.attributes.push(n[i]),t.g.debug(`Added attribute `,n[i].name)}addRelationship(e,n,r,i){let a=this.entities.get(e),o=this.entities.get(r);if(!a||!o)return;let s={entityA:a.id,roleA:n,entityB:o.id,relSpec:i};this.relationships.push(s),t.g.debug(`Added new relationship :`,s)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(e){this.direction=e}getCompiledStyles(e){let t=[];for(let i of e){let e=this.classes.get(i);if(e!=null&&e.styles){var n;t=[...t,...(n=e.styles)==null?[]:n].map(e=>e.trim())}if(e!=null&&e.textStyles){var r;t=[...t,...(r=e.textStyles)==null?[]:r].map(e=>e.trim())}}return t}addCssStyles(e,t){for(let n of e){let e=this.entities.get(n);if(!t||!e)return;for(let n of t)e.cssStyles.push(n)}}addClass(e,t){e.forEach(e=>{let n=this.classes.get(e);n===void 0&&(n={id:e,styles:[],textStyles:[]},this.classes.set(e,n)),t&&t.forEach(function(e){if(/color/.exec(e)){let t=e.replace(`fill`,`bgFill`);n.textStyles.push(t)}n.styles.push(e)})})}setClass(e,t){for(let n of e){let e=this.entities.get(n);if(e)for(let n of t)e.cssClasses+=` `+n}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],n.a()}getData(){let t=[],r=[],i=n.b(),a=0;for(let e of this.entities.keys()){let n=this.entities.get(e);n&&(n.cssCompiledStyles=this.getCompiledStyles(n.cssClasses.split(` `)),n.colorIndex=a++,t.push(n))}let o=0;for(let t of this.relationships){let n={id:e.s(t.entityA,t.entityB,{prefix:`id`,counter:o++}),type:`normal`,curve:`basis`,start:t.entityA,end:t.entityB,label:t.roleA,labelpos:`c`,thickness:`normal`,classes:`relationshipLine`,arrowTypeStart:t.relSpec.cardB.toLowerCase(),arrowTypeEnd:t.relSpec.cardA.toLowerCase(),pattern:t.relSpec.relType==`IDENTIFYING`?`solid`:`dashed`,look:i.look,labelType:`markdown`};r.push(n)}return{nodes:t,edges:r,other:{},config:i,direction:`TB`}}},t.h(s,`ErDB`),s),d={};t.m(d,{draw:()=>f});var f=t.h(async function(r,s,c,l){var u,d;t.g.info(`REF0:`),t.g.info(`Drawing er diagram (unified)`,s);let{securityLevel:f,er:p,layout:m}=n.b(),h=l.db.getData(),g=i.t(s,f);h.type=l.type,h.layoutAlgorithm=o.t(m),h.config.flowchart.nodeSpacing=(p==null?void 0:p.nodeSpacing)||140,h.config.flowchart.rankSpacing=(p==null?void 0:p.rankSpacing)||80,h.direction=l.db.getDirection();let{config:_}=h,{look:v}=_;v===`neo`?h.markers=[`only_one_neo`,`zero_or_one_neo`,`one_or_more_neo`,`zero_or_more_neo`]:h.markers=[`only_one`,`zero_or_one`,`one_or_more`,`zero_or_more`],h.diagramId=s,await o.r(h,g),h.layoutAlgorithm===`elk`&&g.select(`.edges`).lower();let y=g.selectAll(`[id*="-background"]`);Array.from(y).length>0&&y.each(function(){let e=t.p(this),n=e.attr(`id`).replace(`-background`,``),r=g.select(`#${CSS.escape(n)}`);if(!r.empty()){let t=r.attr(`transform`);e.attr(`transform`,t)}}),e.h.insertTitle(g,`erDiagramTitleText`,(u=p==null?void 0:p.titleTopMargin)==null?25:u,l.db.getDiagramTitle()),a.t(g,8,`erDiagram`,(d=p==null?void 0:p.useMaxWidth)==null?!0:d)},`draw`),p=t.h((e,t)=>{let i=r.t,a=i(e,`r`),o=i(e,`g`),s=i(e,`b`);return n.nt(a,o,s,t)},`fade`),m=new Set([`redux-color`,`redux-dark-color`]),h=t.h(e=>{let{theme:t,look:n,bkgColorArray:r,borderColorArray:i}=e;if(!m.has(t))return``;let a=(r==null?void 0:r.length)>0,o=``;for(let t=0;t<e.THEME_COLOR_LIMIT;t++)o+=`
7
+
8
+ [data-look="${n}"][data-color-id="color-${t}"].node path {
9
+ stroke: ${i[t]};
10
+ ${a?`fill: ${r[t]};`:``}
11
+ }
12
+
13
+ [data-look="${n}"][data-color-id="color-${t}"].node rect {
14
+ stroke: ${i[t]};
15
+ ${a?`fill: ${r[t]};`:``}
16
+ }
17
+ `;return o},`genColor`),g={parser:l,get db(){return new u},renderer:d,styles:t.h(e=>{let{look:t,theme:n,erEdgeLabelBackground:r,strokeWidth:i}=e;return`
18
+ ${h(e)}
19
+ .entityBox {
20
+ fill: ${e.mainBkg};
21
+ stroke: ${e.nodeBorder};
22
+ }
23
+
24
+ .relationshipLabelBox {
25
+ fill: ${e.tertiaryColor};
26
+ opacity: 0.7;
27
+ background-color: ${e.tertiaryColor};
28
+ rect {
29
+ opacity: 0.5;
30
+ }
31
+ }
32
+
33
+ .labelBkg {
34
+ background-color: ${m.has(n)&&r?r:p(e.tertiaryColor,.5)};
35
+ }
36
+
37
+ .edgeLabel {
38
+ background-color: ${m.has(n)&&r?r:e.edgeLabelBackground};
39
+ }
40
+ .edgeLabel .label rect {
41
+ fill: ${m.has(n)&&r?r:e.edgeLabelBackground};
42
+ }
43
+ .edgeLabel .label text {
44
+ fill: ${e.textColor};
45
+ }
46
+
47
+ .edgeLabel .label {
48
+ fill: ${e.nodeBorder};
49
+ font-size: 14px;
50
+ }
51
+
52
+ .label {
53
+ font-family: ${e.fontFamily};
54
+ color: ${e.nodeTextColor||e.textColor};
55
+ }
56
+
57
+ .edge-pattern-dashed {
58
+ stroke-dasharray: 8,8;
59
+ }
60
+
61
+ .node rect,
62
+ .node circle,
63
+ .node ellipse,
64
+ .node polygon
65
+ {
66
+ fill: ${e.mainBkg};
67
+ stroke: ${e.nodeBorder};
68
+ stroke-width: ${t===`neo`?i:`1px`};
69
+ }
70
+
71
+ .relationshipLine {
72
+ stroke: ${e.lineColor};
73
+ stroke-width: ${t===`neo`?i:`1px`};
74
+ fill: none;
75
+ }
76
+
77
+ .marker {
78
+ fill: none !important;
79
+ stroke: ${e.lineColor} !important;
80
+ stroke-width: 1;
81
+ }
82
+ [data-look=neo].labelBkg {
83
+ background-color: ${p(e.tertiaryColor,.5)};
84
+ }
85
+ `},`getStyles`)};exports.diagram=g;