@juki-team/base-ui 1.5.14 → 1.5.15

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 (257) hide show
  1. package/dist/esm/ArrowForwardIcon-Bd0B_Kwe.js +1 -0
  2. package/dist/esm/BarChart-B6teyAwl.js +1 -0
  3. package/dist/esm/{CartesianChart-DCv2SXML.js → CartesianChart-BZZYJ31q.js} +1 -1
  4. package/dist/esm/ChangePasswordModal-wjB2d2a0.js +1 -0
  5. package/dist/esm/CodeEditor--mRrq7Xc.js +1 -0
  6. package/dist/esm/CodeViewer-C2keyN4-.js +1 -0
  7. package/dist/esm/Collapse-C_rZY9aE.js +1 -0
  8. package/dist/esm/{DataGrid-1GBbtJPo.js → DataGrid-DbFP5mTw.js} +1 -1
  9. package/dist/esm/DataViewer-lFoDNwIZ.js +1 -0
  10. package/dist/esm/DrawerView-BLwtJxwY.js +1 -0
  11. package/dist/esm/ExcalidrawButton-CrNTOZTX.js +1 -0
  12. package/dist/esm/GraphvizViewer-beaBRsJd.js +1 -0
  13. package/dist/esm/ImageLoaderCropper-_ZIo2zEm.js +1 -0
  14. package/dist/esm/InputCellPhoneNumber-CusvoWas.js +1 -0
  15. package/dist/esm/{InputColor-UJ28fLOn.js → InputColor-ADhkNitB.js} +1 -1
  16. package/dist/esm/LineChart-DUg6yaTg.js +1 -0
  17. package/dist/esm/{LoaderLayer-CyitSTCe.js → LoaderLayer-Csc8unUJ.js} +1 -1
  18. package/dist/esm/MdMath-Dstso3EJ.js +1 -0
  19. package/dist/esm/{MdMathEditor-DWwwX_SO.js → MdMathEditor-BMYIOhto.js} +1 -1
  20. package/dist/esm/{Popover-CmhtPayh.js → Popover-DRm9Iqcj.js} +1 -1
  21. package/dist/esm/ReplyIcon-BAIEk00m.js +1 -0
  22. package/dist/esm/{SettingsIcon-CegP07CF.js → SettingsIcon-Cd0qgB0A.js} +1 -1
  23. package/dist/esm/SlideDeck-C0Py_6HO.js +1 -0
  24. package/dist/esm/{TableEyeIcon-C4nuk_xp.js → TableEyeIcon-CYXh-eSU.js} +1 -1
  25. package/dist/esm/{TableOfContents-B7API9_v.js → TableOfContents-GPaHLa0x.js} +1 -1
  26. package/dist/esm/Tooltip-DZbA_43G.js +1 -0
  27. package/dist/esm/UserCodeEditor-D_rQzIU2.js +61 -0
  28. package/dist/esm/VirtualizedRowsFixed-BgL_awYQ.js +1 -0
  29. package/dist/esm/WorksheetAsSlides-B8zp1Rak.js +1 -0
  30. package/dist/esm/{WorksheetBodies-dstnMykc.js → WorksheetBodies-Cr9jJtnr.js} +1 -1
  31. package/dist/esm/WorksheetContents-Y4b_IwYP.js +1 -0
  32. package/dist/esm/WorksheetEditor-BoecibGe.js +1 -0
  33. package/dist/esm/{WorksheetNode-BWrXWPtD.js → WorksheetNode-DTyHDssN.js} +1 -1
  34. package/dist/esm/WorksheetViewer-BkyLzOi4.js +1 -0
  35. package/dist/esm/abnfDiagram-WEYOIA3C-C_CVppQA.js +1 -0
  36. package/dist/esm/{arc-DomqdCJb.js → arc-vEmnBEcc.js} +1 -1
  37. package/dist/esm/architectureDiagram-ZHVYKT53-CCcP7rrg.js +1 -0
  38. package/dist/esm/blockDiagram-RJAE7QA3-DU8sn8Km.js +1 -0
  39. package/dist/esm/c4Diagram-XDPPPE54-DQFPX695.js +1 -0
  40. package/dist/esm/channel-5x2nMoMO.js +1 -0
  41. package/dist/esm/{chunk-2E7WHVMD-Beocb-Jh.js → chunk-2E7WHVMD-p2GM0eBD.js} +1 -1
  42. package/dist/esm/{chunk-2Q5K7J3B-BvYoUWYj.js → chunk-2Q5K7J3B-Cy8SGmP2.js} +1 -1
  43. package/dist/esm/{chunk-4EMNKR2T-CwTwaoZv.js → chunk-4EMNKR2T-CyLGLodZ.js} +1 -1
  44. package/dist/esm/{chunk-55XCU76K-Bm2vEyhO.js → chunk-55XCU76K-BN8xVJCh.js} +1 -1
  45. package/dist/esm/{chunk-5VM5RSS4-bDfGkvI-.js → chunk-5VM5RSS4-D3PGx3gp.js} +1 -1
  46. package/dist/esm/{chunk-JWPE2WC7-WoJ0Gwzc.js → chunk-JWPE2WC7-BJAR6xMq.js} +1 -1
  47. package/dist/esm/{chunk-NQOKRVIF-BsYoUZL4.js → chunk-NQOKRVIF-fUehRCXZ.js} +1 -1
  48. package/dist/esm/{chunk-VQ5W62QI-BTvKzH75.js → chunk-VQ5W62QI-mHHsR0s0.js} +1 -1
  49. package/dist/esm/{chunk-XXDRQBXY-ClHdtw3t.js → chunk-XXDRQBXY-DLLBlZjr.js} +1 -1
  50. package/dist/esm/{chunk-ZCHMQSOR-BuzD1sYe.js → chunk-ZCHMQSOR-t517tTkb.js} +1 -1
  51. package/dist/esm/classDiagram-v2-4MYWR3UA-CrNA_w1s.js +1 -0
  52. package/dist/esm/{commons-CmbPiYDE.js → commons-BLDufAOm.js} +1 -1
  53. package/dist/esm/constants.js +1 -1
  54. package/dist/esm/cose-bilkent-JH36ORCC-DTawllqu.js +1 -0
  55. package/dist/esm/cynefinDiagram-WF24UDRP-DWwhOkSi.js +1 -0
  56. package/dist/esm/dagre-NK4GIZVX-Jm0gIaFX.js +1 -0
  57. package/dist/esm/diagram-CBK3MWTC-CcOs3Ceh.js +1 -0
  58. package/dist/esm/diagram-I5XIIV2D-BBh0FWXm.js +1 -0
  59. package/dist/esm/diagram-ODIL2UCW-BlztNr6r.js +1 -0
  60. package/dist/esm/diagram-PFBEJUXE-DtRoe0ng.js +1 -0
  61. package/dist/esm/diagram-RJA3I4VV-LdjGFjBw.js +1 -0
  62. package/dist/esm/diagram-TYUNFSNR-D8WXXh7g.js +1 -0
  63. package/dist/esm/ebnfDiagram-V4P3TTPT-DESDKr7D.js +1 -0
  64. package/dist/esm/elk-QONTBCTQ-DDBz4veG.js +1 -0
  65. package/dist/esm/enums.js +1 -1
  66. package/dist/esm/erDiagram-KYQIGQAA-CBg-NMBs.js +1 -0
  67. package/dist/esm/flowDiagram-IUGLLWBU-BytjhPBX.js +1 -0
  68. package/dist/esm/ganttDiagram-R7GPNTJY-BKQtPa2l.js +1 -0
  69. package/dist/esm/gitGraphDiagram-PDYL7XHY-SgW1IIil.js +1 -0
  70. package/dist/esm/helpers.js +1 -1
  71. package/dist/esm/index-38k9tHSo.js +1 -0
  72. package/dist/esm/index-3QSNRp1k.js +1 -0
  73. package/dist/esm/{index-DBVTTZ07.js → index-CEgC-P3H.js} +1 -1
  74. package/dist/esm/{index-P2yxumel.js → index-D954khxt.js} +1 -1
  75. package/dist/esm/{index-D9j3iMPO.js → index-yFCV1i1-.js} +1 -1
  76. package/dist/esm/infoDiagram-MVDRKAX5-DfklDIw_.js +1 -0
  77. package/dist/esm/ishikawaDiagram-HPEHV2GE-BgFDqFFr.js +1 -0
  78. package/dist/esm/journeyDiagram-BOSHW7O7-DMgZlI3B.js +1 -0
  79. package/dist/esm/kanban-definition-FNSA4HC5-6nGtZdla.js +1 -0
  80. package/dist/esm/main.js +1 -1
  81. package/dist/esm/{mermaid.core-GJX79pQL.js → mermaid.core-VF3HuzPL.js} +2 -2
  82. package/dist/esm/mindmap-definition-6OY57UG3-CldUD6qU.js +1 -0
  83. package/dist/esm/pegDiagram-ECIUJNBX-CxOzmAR6.js +1 -0
  84. package/dist/esm/pieDiagram-GNMPY74T-CVzFNxbL.js +1 -0
  85. package/dist/esm/quadrantDiagram-D57K4MC3-zu8PK3sn.js +1 -0
  86. package/dist/esm/railroadDiagram-Y72NRBL7-32O5vSNO.js +1 -0
  87. package/dist/esm/requirementDiagram-EQYSW5RA-y8y1LAQQ.js +1 -0
  88. package/dist/esm/sankeyDiagram-SY24JHO5-B6RN54HY.js +1 -0
  89. package/dist/esm/sequenceDiagram-BLEHNHQU-x0406cvr.js +1 -0
  90. package/dist/esm/server.js +1 -1
  91. package/dist/esm/settings-6x4qNkNZ.js +1 -0
  92. package/dist/esm/settings.js +1 -1
  93. package/dist/esm/sizeCapture-INFHLROL--wG_Awhp.js +1 -0
  94. package/dist/esm/stateDiagram-v2-A6IESKWZ-BO6rHKAj.js +1 -0
  95. package/dist/esm/swimlanes-B3ENRKFQ-Bn5D5Wx7.js +1 -0
  96. package/dist/esm/swimlanesDiagram-AYQRV4AK-Ba9zNATm.js +1 -0
  97. package/dist/esm/timeline-definition-JXYKGLGB-BEJjWLZB.js +1 -0
  98. package/dist/esm/{types-DS5jBUtV.js → types-B-kh3Oeb.js} +1 -1
  99. package/dist/esm/usecaseDiagram-WPOLBNNX-RyH7DcwX.js +1 -0
  100. package/dist/esm/vennDiagram-Q3Y3IDCW-CxTrhG-i.js +1 -0
  101. package/dist/esm/wardleyDiagram-IVAIDKWA-pBsrgWov.js +1 -0
  102. package/dist/esm/websocket-D79arGLt.js +1 -0
  103. package/dist/esm/xychartDiagram-4URNHDU4-CA9STbh6.js +1 -0
  104. package/dist/module-types/src/components/helpers/problem.d.ts +1 -1
  105. package/dist/module-types/src/components/helpers/websocket.d.ts +3 -11
  106. package/dist/module-types/src/components/hooks/useInjectOrganizationStyles.d.ts +1 -0
  107. package/dist/module-types/src/components/hooks/useJudge.d.ts +2 -2
  108. package/dist/module-types/src/components/hooks/useJukiUser.d.ts +17 -17
  109. package/dist/module-types/src/components/hooks/{useCompanyPresence.d.ts → useOrganizationPresence.d.ts} +3 -3
  110. package/dist/module-types/src/components/hooks/useOwnPresence.d.ts +1 -1
  111. package/dist/module-types/src/components/hooks/useSubscribe.d.ts +2 -2
  112. package/dist/module-types/src/components/molecules/LinkLastPath/types.d.ts +1 -1
  113. package/dist/module-types/src/components/organisms/HorizontalMenu/MenuParts.d.ts +19 -0
  114. package/dist/module-types/src/components/organisms/LoginUser/LoginUser.d.ts +3 -1
  115. package/dist/module-types/src/components/organisms/ProblemSelector/ProblemSelector.d.ts +1 -1
  116. package/dist/module-types/src/components/organisms/ProblemSelector/types.d.ts +4 -4
  117. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmissionListenerVerdict.d.ts +2 -2
  118. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmissionVerdict.d.ts +3 -3
  119. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmitViewContent.d.ts +2 -2
  120. package/dist/module-types/src/components/organisms/UserChip/types.d.ts +2 -2
  121. package/dist/module-types/src/components/organisms/UserNicknameLink/UserNicknameLink.d.ts +1 -1
  122. package/dist/module-types/src/components/organisms/UsersSelector/types.d.ts +3 -3
  123. package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkContestTableTest/MockJkContestTable.d.ts +2 -2
  124. package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkProblemTableTest/MockJkProblemTable.d.ts +2 -2
  125. package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkSubmissionsTableTest/MockJkSubmissionTable.d.ts +2 -2
  126. package/dist/module-types/src/components/organisms/_layz_/WorksheetAsSlides/types.d.ts +2 -2
  127. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/ResultHeader.d.ts +2 -2
  128. package/dist/module-types/src/components/organisms/_layz_/WorksheetViewer/types.d.ts +2 -2
  129. package/dist/module-types/src/components/organisms/modals/ImageUploaderModal/PublicImagesTab/PublicImages.d.ts +2 -2
  130. package/dist/module-types/src/components/organisms/modals/LoginModal/LoginModal.d.ts +1 -1
  131. package/dist/module-types/src/components/organisms/modals/LoginModal/LoginModalTemplate/types.d.ts +2 -2
  132. package/dist/module-types/src/components/organisms/modals/LoginModal/types.d.ts +1 -1
  133. package/dist/module-types/src/components/organisms/modals/UserPreviewModal/UserPreviewContentModal.d.ts +4 -4
  134. package/dist/module-types/src/components/providers/JukiAblyInitializer/JukiAblyInitializer.d.ts +1 -1
  135. package/dist/module-types/src/components/providers/JukiUIProvider/JukiUIProvider.d.ts +1 -1
  136. package/dist/module-types/src/components/providers/JukiUIProvider/types.d.ts +2 -2
  137. package/dist/module-types/src/components/providers/JukiUserProvider/types.d.ts +4 -4
  138. package/dist/module-types/src/components/templates/ContestNameLinkField/types.d.ts +3 -3
  139. package/dist/module-types/src/components/templates/EditProfileModal/ImageProfileModal.d.ts +1 -1
  140. package/dist/module-types/src/components/templates/EditProfileModal/types.d.ts +5 -5
  141. package/dist/module-types/src/components/templates/MainMenu/SettingsSection/index.d.ts +1 -1
  142. package/dist/module-types/src/components/templates/MainMenu/types.d.ts +1 -1
  143. package/dist/module-types/src/components/templates/ProblemView/commons/ProblemCodeEditor.d.ts +2 -2
  144. package/dist/module-types/src/components/templates/ProblemView/types.d.ts +3 -3
  145. package/dist/module-types/src/components/templates/ResetPasswordModal/ResetPasswordModal.d.ts +1 -1
  146. package/dist/module-types/src/components/templates/ResetPasswordModal/types.d.ts +1 -1
  147. package/dist/module-types/src/components/templates/UserProfile/types.d.ts +3 -3
  148. package/dist/module-types/src/components/templates/UserProfileSettings/types.d.ts +2 -2
  149. package/dist/module-types/src/components/templates/UserViewLayout/types.d.ts +2 -2
  150. package/dist/module-types/src/components/templates/columns/contest-columns/getContestContestantsHeader.d.ts +2 -2
  151. package/dist/module-types/src/components/templates/columns/contest-columns/getContestDateHeader.d.ts +2 -2
  152. package/dist/module-types/src/components/templates/columns/contest-columns/getContestNameHeader.d.ts +2 -2
  153. package/dist/module-types/src/components/templates/columns/contest-columns/getContestStatusHeader.d.ts +2 -2
  154. package/dist/module-types/src/components/templates/columns/contest-columns/getContestTagsHeader.d.ts +2 -2
  155. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemAdminActionsHeader.d.ts +2 -2
  156. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemKeyHeader.d.ts +2 -2
  157. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemModeHeader.d.ts +2 -2
  158. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemNameHeader.d.ts +2 -2
  159. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemOwnerHeader.d.ts +2 -2
  160. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemTagsHeader.d.ts +2 -2
  161. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemTypeHeader.d.ts +2 -2
  162. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionContestHeader.d.ts +2 -2
  163. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionContestProblemHeader.d.ts +3 -3
  164. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionDateHeader.d.ts +2 -2
  165. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionLanguageHeader.d.ts +2 -2
  166. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionMemoryHeader.d.ts +2 -2
  167. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionNicknameHeader.d.ts +2 -2
  168. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionProblemHeader.d.ts +3 -3
  169. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionRejudgeHeader.d.ts +2 -2
  170. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionTimeHeader.d.ts +2 -2
  171. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionVerdictHeader.d.ts +2 -2
  172. package/dist/module-types/src/components/templates/members/DocumentMembersModal/DocumentMembersModal.d.ts +2 -2
  173. package/dist/module-types/src/components/templates/members/types.d.ts +6 -6
  174. package/dist/module-types/src/components/templates/problem/ProblemCrawlerField.d.ts +1 -1
  175. package/dist/module-types/src/components/templates/problem/ProblemOwnerField.d.ts +1 -1
  176. package/dist/module-types/src/components/templates/problem/types.d.ts +10 -10
  177. package/dist/module-types/src/components/templates/submission/SubmissionNicknameField.d.ts +1 -1
  178. package/dist/module-types/src/components/templates/submission/types.d.ts +9 -9
  179. package/dist/module-types/src/components/types/index.d.ts +6 -6
  180. package/dist/module-types/src/constants/index.d.ts +2 -2
  181. package/dist/module-types/src/enums/index.d.ts +1 -1
  182. package/dist/module-types/src/hooks/index.d.ts +1 -1
  183. package/dist/module-types/src/settings/ApiManager.d.ts +77 -93
  184. package/dist/module-types/src/settings/AppRoutes.d.ts +2 -2
  185. package/dist/module-types/src/stores/websocket/topicChannels.d.ts +9 -10
  186. package/dist/module-types/src/stores/websocket/types.d.ts +4 -7
  187. package/package.json +2 -2
  188. package/dist/esm/ArrowForwardIcon-C9lEPgxF.js +0 -1
  189. package/dist/esm/BarChart-CmUpEfgx.js +0 -1
  190. package/dist/esm/ChangePasswordModal-CLhaqd0t.js +0 -1
  191. package/dist/esm/CodeEditor-BCPgv2Cb.js +0 -1
  192. package/dist/esm/CodeViewer-BRpMXuea.js +0 -1
  193. package/dist/esm/Collapse-afKIPlSN.js +0 -1
  194. package/dist/esm/DataViewer-sY3-mm2f.js +0 -1
  195. package/dist/esm/DrawerView-CDVcbXRh.js +0 -1
  196. package/dist/esm/ExcalidrawButton-DpC-H9ia.js +0 -1
  197. package/dist/esm/GraphvizViewer-BVrLuU49.js +0 -1
  198. package/dist/esm/ImageLoaderCropper-qgwMwAGw.js +0 -1
  199. package/dist/esm/InputCellPhoneNumber-EJdJwdOU.js +0 -1
  200. package/dist/esm/LineChart-CK_uehIw.js +0 -1
  201. package/dist/esm/MdMath-DdXwM7hb.js +0 -1
  202. package/dist/esm/ReplyIcon-CxQ2sdad.js +0 -1
  203. package/dist/esm/SlideDeck-BCpZmg4u.js +0 -1
  204. package/dist/esm/Tooltip-C_PscPTv.js +0 -1
  205. package/dist/esm/UserCodeEditor-DqHZdH0s.js +0 -61
  206. package/dist/esm/VirtualizedRowsFixed-ExvaHy3O.js +0 -1
  207. package/dist/esm/WorksheetAsSlides-Bf0TBaKQ.js +0 -1
  208. package/dist/esm/WorksheetContents-DSLbRrOR.js +0 -1
  209. package/dist/esm/WorksheetEditor-DHgjrze5.js +0 -1
  210. package/dist/esm/WorksheetViewer-BtWO3C0N.js +0 -1
  211. package/dist/esm/abnfDiagram-WEYOIA3C-Hw5eOSwT.js +0 -1
  212. package/dist/esm/architectureDiagram-ZHVYKT53-BU7Zo-Vd.js +0 -1
  213. package/dist/esm/blockDiagram-RJAE7QA3-DSHzRL6J.js +0 -1
  214. package/dist/esm/c4Diagram-XDPPPE54-CpLQ9pqY.js +0 -1
  215. package/dist/esm/channel-p0K5iSo0.js +0 -1
  216. package/dist/esm/classDiagram-v2-4MYWR3UA-BGFOFtLW.js +0 -1
  217. package/dist/esm/cose-bilkent-JH36ORCC-WrGk8F3q.js +0 -1
  218. package/dist/esm/cynefinDiagram-WF24UDRP-plMeajnN.js +0 -1
  219. package/dist/esm/dagre-NK4GIZVX-DFmweJ5L.js +0 -1
  220. package/dist/esm/diagram-CBK3MWTC-Do3xyOgp.js +0 -1
  221. package/dist/esm/diagram-I5XIIV2D-BjcBIOdi.js +0 -1
  222. package/dist/esm/diagram-ODIL2UCW-B9Avmrsd.js +0 -1
  223. package/dist/esm/diagram-PFBEJUXE-BspjnifG.js +0 -1
  224. package/dist/esm/diagram-RJA3I4VV-CDb0YVvV.js +0 -1
  225. package/dist/esm/diagram-TYUNFSNR-CowQmn1U.js +0 -1
  226. package/dist/esm/ebnfDiagram-V4P3TTPT-DoV9Lfm1.js +0 -1
  227. package/dist/esm/elk-QONTBCTQ-Di5ig-t7.js +0 -1
  228. package/dist/esm/erDiagram-KYQIGQAA-bd6-MJG2.js +0 -1
  229. package/dist/esm/flowDiagram-IUGLLWBU-B0MSMUTA.js +0 -1
  230. package/dist/esm/ganttDiagram-R7GPNTJY-lkIa_H6_.js +0 -1
  231. package/dist/esm/gitGraphDiagram-PDYL7XHY-Vj--WuIK.js +0 -1
  232. package/dist/esm/index-KB6gLBva.js +0 -1
  233. package/dist/esm/index-jAIWmSeN.js +0 -1
  234. package/dist/esm/infoDiagram-MVDRKAX5-DOeZ2-C8.js +0 -1
  235. package/dist/esm/ishikawaDiagram-HPEHV2GE-CENo4osB.js +0 -1
  236. package/dist/esm/journeyDiagram-BOSHW7O7-C2tDYh4z.js +0 -1
  237. package/dist/esm/kanban-definition-FNSA4HC5-CoyAxabP.js +0 -1
  238. package/dist/esm/mindmap-definition-6OY57UG3-Cz5x8Ddo.js +0 -1
  239. package/dist/esm/pegDiagram-ECIUJNBX-Cp7mSGqB.js +0 -1
  240. package/dist/esm/pieDiagram-GNMPY74T-DoaR6KZl.js +0 -1
  241. package/dist/esm/quadrantDiagram-D57K4MC3-vGvfladt.js +0 -1
  242. package/dist/esm/railroadDiagram-Y72NRBL7-CC8xjkre.js +0 -1
  243. package/dist/esm/requirementDiagram-EQYSW5RA-CvYZNdVi.js +0 -1
  244. package/dist/esm/sankeyDiagram-SY24JHO5-DTEzoJWs.js +0 -1
  245. package/dist/esm/sequenceDiagram-BLEHNHQU-B1ssXHBq.js +0 -1
  246. package/dist/esm/settings-oXVFKYs2.js +0 -1
  247. package/dist/esm/sizeCapture-INFHLROL-BpAWjro_.js +0 -1
  248. package/dist/esm/stateDiagram-v2-A6IESKWZ-BpWTAT11.js +0 -1
  249. package/dist/esm/swimlanes-B3ENRKFQ-CRPiPPkB.js +0 -1
  250. package/dist/esm/swimlanesDiagram-AYQRV4AK-CPu0_glt.js +0 -1
  251. package/dist/esm/timeline-definition-JXYKGLGB-D7lhGXLl.js +0 -1
  252. package/dist/esm/usecaseDiagram-WPOLBNNX-07MB5ZhJ.js +0 -1
  253. package/dist/esm/vennDiagram-Q3Y3IDCW-BF4CwCTB.js +0 -1
  254. package/dist/esm/wardleyDiagram-IVAIDKWA-CE_jsTBp.js +0 -1
  255. package/dist/esm/websocket-CXHGKJlm.js +0 -1
  256. package/dist/esm/xychartDiagram-4URNHDU4-DK5TR51V.js +0 -1
  257. package/dist/module-types/src/components/hooks/useInjectCompanyStyles.d.ts +0 -1
@@ -1,61 +0,0 @@
1
- import*as e from"react/jsx-runtime";import{jsxs as t,Fragment as i,jsx as n}from"react/jsx-runtime";import{af as r,S as s,ai as a,v as o,C as l,u as c,c as h,ak as p,R as u,al as d,am as f,an as m,ao as g,ap as x,aq as y,aj as v,P as b,G as w,T as k,ar as E,i as S}from"./settings-oXVFKYs2.js";import*as C from"react";import{memo as A,useState as _,useMemo as I,useRef as N,useCallback as T,useEffect as P,use as L,createContext as V,useContext as R,forwardRef as O,createElement as j,isValidElement as D,cloneElement as M,useEffectEvent as F,useLayoutEffect as B,useImperativeHandle as U}from"react";import{RESIZE_DETECTOR_PROPS as z,CODE_EDIT0R_TAB_SIZES as J,CODE_EDIT0R_FONT_SIZES as q,CODE_EDITOR_PROGRAMMING_LANGUAGES as G,EMPTY_OBJECT as X}from"./constants.js";import{af as H,T as W,M as $,w as K,$ as Q,B as Y,z as Z,S as ee,ag as te,a as ie,b as ne,g as re,J as se,X as ae,ab as oe,ah as le,ai as ce,aj as he,ad as pe,r as ue,ak as de,al as fe,am as me,an as ge,Q as xe,e as ye,f as ve,P as be,q as we}from"./index-jAIWmSeN.js";import{n as ke,c as Ee,d as Se}from"./commons-CmbPiYDE.js";import"./enums.js";import{a as Ce,j as Ae,s as _e,q as Ie,u as Ne}from"./websocket-CXHGKJlm.js";import{j as Te,k as Pe,b as Le,D as Ve,F as Re,G as Oe,K as je,f as De,a0 as Me,a1 as Fe,P as Be,R as Ue,aa as ze,aD as Je,S as qe,l as Ge,a7 as Xe}from"./LoaderLayer-CyitSTCe.js";import"motion/react";import*as He from"react-dom";import"swr";import We from"./MdMathEditor-DWwwX_SO.js";import{A as $e,S as Ke}from"./SettingsIcon-CegP07CF.js";import{D as Qe,a as Ye,F as Ze,P as et,M as tt}from"./index-DBVTTZ07.js";import{j as it}from"./index-KB6gLBva.js";import{c as nt}from"./clsx-BeLtu-UY.js";import{a as rt,o as st,z as at,n as ot,V as lt,s as ct,q as ht,t as pt,w as ut,x as dt,y as ft,A as mt,B as gt,D as xt,E as yt,v as vt,u as bt,r as wt,d as kt,c as Et}from"./types-DS5jBUtV.js";import{n as St,f as Ct,c as At,a as _t,b as It,d as Nt,s as Tt,w as Pt,h as Lt,m as Vt,o as Rt,q as Ot,r as jt,l as Dt}from"./index-D9j3iMPO.js";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./basic-setup-DtpgwOSH.js";import"./floating-ui.dom-DGDCR4EF.js";import"./floating-ui.core-DzsaFWsC.js";import"./throttle-tEKq3i9o.js";import"./isSymbol-D2gNAbOe.js";import"./toNumber-B6ypue5Z.js";import"./viz-BmmZnl4P.js";import"./mermaid.core-GJX79pQL.js";import"./string-DPJhNSkw.js";function Mt(e,t=16){if(e.length<=t)return e;const i=e.lastIndexOf("."),n=i>0?e.slice(i):"",r=t-n.length-1;return r>0?e.slice(0,r)+"…"+n:e.slice(0,t-1)+"…"}function Ft(e){const t=[],i=new Map,n=e=>{if(i.has(e))return i.get(e);const r=e.split("/").filter(Boolean),s={type:"folder",name:r[r.length-1]??e,path:e,children:[],files:[]};if(i.set(e,s),r.length<=1)t.push(s);else{const e="/"+r.slice(0,-1).join("/");n(e).children.push(s)}return s},r=[];for(const[t,i]of e){const e=i.folderPath,s=i.description??"";if(!e||"/"===e||""===e)r.push({key:t,name:i.name,folderPath:"",index:i.index,description:s});else{n(e.startsWith("/")?e:"/"+e).files.push({key:t,name:i.name,folderPath:e,index:i.index,description:s})}}return[...r.map(e=>({type:"file",key:e.key,name:e.name,folderPath:e.folderPath,index:e.index,description:e.description})),...t].sort((e,t)=>e.name.localeCompare(t.name))}function Bt({fileKey:e,name:r,folderPath:s,description:a,globalIndex:o,currentFileName:l,viewFiles:c,readOnly:h,onChangeRef:p,setOpenFileName:u,setFileNameEdit:d,setFolderPathEdit:f,setDescriptionEdit:m,setFileNameDelete:g}){return n("div",{className:Ee("tx-t jk-pg-xsm jk-col nowrap left stretch",{"bc-ht-lt":e===l,hoverable:e!==l}),onClick:e!==l?t=>{t.stopPropagation(),p.current?.({fileName:e})}:e=>e.stopPropagation(),children:c?n(i,{children:t("div",{className:"jk-row gap nowrap space-between",children:[t("div",{className:"jk-row nowrap",children:[n(Qe,{letter:(o+1)%10+"",letterSize:12,size:"tiny"}),n("span",{"data-tooltip-id":"jk-tooltip","data-tooltip-content":r,style:{marginLeft:2,fontFamily:"monospace",letterSpacing:"-0.04em",whiteSpace:"nowrap"},children:Mt(r)})]}),!h&&t("div",{className:"jk-row gap display-on-hover-2 nowrap",children:[n(Le,{className:Ee({"cr-tx-ht-lt":e!==l}),size:"tiny",onClick:t=>{t.stopPropagation(),u(e),d(r),f(s),m(a)}}),n(Ve,{className:Ee({"cr-tx-ht-lt":e!==l}),size:"tiny",onClick:t=>{t.stopPropagation(),g(e)}})]})]})}):n("div",{className:"jk-row gap nowrap space-between",children:n("div",{className:"jk-row nowrap",children:n(Qe,{letter:(o+1)%10+"",letterSize:12,size:"tiny"})})})})}function Ut(e,t){return!!e.files.some(e=>e.key===t)||e.children.some(e=>"folder"===e.type&&Ut(e,t))}function zt({node:e,depth:i,viewFiles:r,readOnly:s,currentFileName:a,onChangeRef:o,setOpenFileName:l,setFileNameEdit:c,setFolderPathEdit:h,setDescriptionEdit:p,setFileNameDelete:u,globalIndexMap:d}){const[f,m]=_(!0),g=Ut(e,a),x=g||f;return t("div",{style:{paddingLeft:0},children:[t("div",{className:"jk-row left gap hoverable jk-pg-xsm tx-t fw-bd nowrap",style:{cursor:"pointer"},onClick:e=>{e.stopPropagation(),g||m(e=>!e)},children:[n(x?Ye:Ze,{size:"tiny"}),r&&n("span",{children:e.name}),r&&n(x?Re:Oe,{size:"tiny"})]}),x&&n("div",{style:{marginLeft:r?14:4,borderLeft:"1px solid var(--cr-ht)"},children:[...e.files.map(e=>({type:"file",name:e.name,data:e})),...e.children.filter(e=>"folder"===e.type).map(e=>({type:"folder",name:e.name,data:e}))].sort((e,t)=>e.name.localeCompare(t.name)).map(e=>"file"===e.type?n(Bt,{fileKey:e.data.key,name:e.data.name,folderPath:e.data.folderPath,description:e.data.description,globalIndex:d.get(e.data.key)??e.data.index,currentFileName:a,viewFiles:r,readOnly:s,onChangeRef:o,setOpenFileName:l,setFileNameEdit:c,setFolderPathEdit:h,setDescriptionEdit:p,setFileNameDelete:u},e.data.key):n(zt,{node:e.data,depth:i+1,viewFiles:r,readOnly:s,currentFileName:a,onChangeRef:o,setOpenFileName:l,setFileNameEdit:c,setFolderPathEdit:h,setDescriptionEdit:p,setFileNameDelete:u,globalIndexMap:d},e.data.path))})]})}const Jt=A(e=>{const{fileTreePanelRef:r,files:s,currentFileName:a,onChangeRef:o,readOnly:l}=e,[c,h]=_(!1),[p,u]=_(""),[d,f]=_(""),[m,g]=_(""),[x,y]=_(""),[v,b]=_(""),w=d.trim().replace(/\//g,"_"),k=w.length>0,E=()=>{k&&(o.current?.({fileNameEdited:[p,w,ke(m),x]}),u(""))},{tree:S,globalIndexMap:C}=I(()=>{const e=Object.entries(s),t=[...e].sort(([,e],[,t])=>e.index-t.index);return{tree:Ft(e),globalIndexMap:new Map(t.map(([e],t)=>[e,t]))}},[s]),A={currentFileName:a,viewFiles:c,readOnly:!!l,onChangeRef:o,setOpenFileName:u,setFileNameEdit:f,setFolderPathEdit:g,setDescriptionEdit:y,setFileNameDelete:b};return t(i,{children:[n(H,{primary:{label:n(W,{className:"tt-se",children:"delete"}),onClick:()=>{o.current?.({fileNameDeleted:v}),b("")}},title:n(W,{className:"tt-se",children:"warning"}),isOpen:!!v,onClose:()=>b(""),children:t("div",{className:"jk-col gap",children:[n(W,{className:"tt-se",children:"are you sure you want to delete the file?"}),n("div",{className:"jk-tag bc-ht-lt",children:v}),n(W,{className:"tt-se",children:"it can't be undone"})]})}),n($,{isOpen:!!p,onClose:()=>u(""),children:t("div",{className:"jk-pg jk-col gap stretch",children:[n(K,{label:n(W,{className:"tt-se",children:"new name"}),labelPlacement:"top",value:d,onChange:f,onEnter:E,expand:!0}),n(K,{label:n(W,{className:"tt-se",children:"folder path"}),labelPlacement:"top",value:m,onChange:g,onEnter:E,expand:!0}),n(Q,{label:n(W,{className:"tt-se",children:"description"}),labelPlacement:"top",value:x,onChange:y,expand:!0}),t("div",{className:"jk-row gap right",children:[n(Y,{type:"secondary",onClick:()=>u(""),children:n(W,{className:"tt-se",children:"cancel"})}),n(Y,{onClick:E,disabled:!k,children:n(W,{className:"tt-se",children:"change"})})]})]})}),t("div",{className:"jk-col top stretch nowrap",style:{borderRight:"1px solid var(--cr-ht-lt)"},ref:r,children:[t("div",{className:"jk-row fw-bd jk-pg-xsm-tb bc-ht-lt left hoverable",onClick:()=>h(!c),style:{paddingLeft:4},children:[n(c?Te:Pe,{}),c&&n(W,{className:"tt-se",children:"files"})]}),n("div",{className:"jk-divider vertical tiny",style:{height:1}}),t("div",{className:"jk-col top stretch gap nowrap ow-ao",children:[n("div",{className:"jk-col stretch",children:S.map(e=>"file"===e.type?n(Bt,{fileKey:e.key,name:e.name,folderPath:e.folderPath,description:e.description,globalIndex:C.get(e.key)??e.index,...A},e.key):n(zt,{node:e,depth:0,globalIndexMap:C,...A},e.path))}),n("div",{className:"jk-row jk-pg-xsm-t border-top-highlight-light",children:n(Y,{size:"tiny",icon:n($e,{size:"tiny"}),disabled:l,onClick:()=>o.current?.({newFileName:s[a]?.folderPath??""}),children:c&&n(W,{className:"tt-se",children:"new file"})})})]})]})]})});var qt,Gt={exports:{}};
2
- /*! dom-to-image-more v3.11.0 2026-09-24 23:01:12 UTC */var Xt,Ht=(qt||(qt=1,Xt=Gt,(e=>{let t=(()=>{let t=0;return{escape:function(e){return e.replace(/([.*+?^${}()|[\]/\\])/g,"\\$1")},isDataUrl:function(e){return-1!==e.search(/^(data:)/)},canvasToBlob:function(e){return e.toBlob?new Promise(function(t){e.toBlob(t)}):(t=e,new Promise(function(e){var i=y(t.toDataURL().split(",")[1]),n=i.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=i.charCodeAt(e);e(new Blob([r],{type:"image/png"}))}));var t},resolveUrl:function(e,t){var i=document.implementation.createHTMLDocument(),n=i.createElement("base"),r=(i.head.appendChild(n),i.createElement("a"));return Object.assign(r.style,o),i.body.appendChild(r),n.href=t,r.href=e,r.href},getSameDocumentFragmentId:h,rewriteFragmentUrls:function(e,t){let i,n=/url\(\s*(["']?)((?:\\.|[^\\)])+)\1\s*\)/g,r="",s=0;for(;null!==(i=n.exec(e));){var a=h(i[2].replace(/\\(.)/g,"$1"));null!==a&&(t(a),r=(r+=e.slice(s,i.index))+`url("#${a.replace(/["\\]/g,"\\$&")}")`,s=n.lastIndex)}return r+e.slice(s)},parseFontFamilies:function(e){let t=[],i="",n="";for(let s=0;s<(e||"").length;s+=1){var r=e.charAt(s);"\\"===r&&s+1<e.length?(i+=e.charAt(s+1),s+=1):n?r===n?n="":i+=r:'"'===r||"'"===r?n=r:","===r?(t.push(i),i=""):i+=r}return t.push(i),t.map(function(e){return e.trim().replace(/\s+/g," ").toLowerCase()}).filter(Boolean)},getAndEncode:function(e,t){return v(e,t,!0).then(p)},getResourceText:function(e,t,i){return v(e,t,i).then(u)},uid:function(){return"u"+("0000"+(Math.random()*Math.pow(36,4)|0).toString(36)).slice(-4)+t++},asArray:function(e){return Array.from(e)},escapeXhtml:function(e){return e.replace(/%/g,"%25").replace(/#/g,"%23").replace(/\n/g,"%0A")},makeImage:function(e){return"data:,"!==e?new Promise(function(t,i){let n=document.createElementNS(l,"svg"),r=new Image;f.impl.options.useCredentials&&(r.crossOrigin="use-credentials"),r.onload=function(){function e(){window&&window.requestAnimationFrame?window.requestAnimationFrame(function(){t(r)}):t(r)}n.remove(),"function"==typeof r.decode?r.decode().then(e,e):e()},r.onerror=t=>{n.remove();var r=String(e).split(",",1)[0];(r=new Error("dom-to-image-more: failed to rasterize the generated image ("+r+", "+String(e).length+" bytes). The source may contain malformed markup, an unsupported element, or a tainted/cross-origin resource.")).cause=t,i(r)},n.appendChild(r),Object.assign(n.style,o),r.src=e,document.body.appendChild(n)}):Promise.resolve()},width:function(e){var t,i,n=k(e,"width");return isNaN(n)?(t=b(e))?t.width:(t=k(e,"border-left-width"),i=k(e,"border-right-width"),e.scrollWidth+t+i):n},height:function(e){var t,i,n=k(e,"height");return isNaN(n)?(t=b(e))?t.height:(t=k(e,"border-top-width"),i=k(e,"border-bottom-width"),e.scrollHeight+t+i):n},getWindow:i,isElement:c,isElementHostForOpenShadowRoot:function(e){return c(e)&&null!==e.shadowRoot},isShadowRoot:s,isInShadowRoot:a,isHTMLElement:function(e){return n(e,"HTMLElement")},isHTMLCanvasElement:function(e){return n(e,"HTMLCanvasElement")},isHTMLInputElement:function(e){return n(e,"HTMLInputElement")},isHTMLImageElement:function(e){return n(e,"HTMLImageElement")},isHTMLLinkElement:function(e){return n(e,"HTMLLinkElement")},isHTMLScriptElement:function(e){return n(e,"HTMLScriptElement")},isHTMLStyleElement:function(e){return n(e,"HTMLStyleElement")},isHTMLTextAreaElement:function(e){return n(e,"HTMLTextAreaElement")},isShadowSlotElement:function(e){return a(e)&&n(e,"HTMLSlotElement")},isSVGElement:function(e){return n(e,"SVGElement")},isSVGImageElement:function(e){return n(e,"SVGImageElement")},isSVGSVGElement:function(e){return n(e,"SVGSVGElement")},isSVGRectElement:function(e){return n(e,"SVGRectElement")},isSVGUseElement:function(e){return n(e,"SVGUseElement")},isDimensionMissing:function(e){return isNaN(e)||e<=0},isInstanceOf:n};function i(t){return((t=t?t.ownerDocument:void 0)?t.defaultView:void 0)||("undefined"!=typeof window?window:void 0)||(void 0!==e?e:void 0)||globalThis}function n(e,t){var n=i(e);return r(e,n,t)||r(e,n&&n.parent,t)}function r(e,t,i){try{var n=t&&t[i];return"function"==typeof n&&e instanceof n}catch(e){return!1}}function s(e){return n(e,"ShadowRoot")}function a(e){return null!=e&&void 0!==e.getRootNode&&s(e.getRootNode())}function c(e){return n(e,"Element")}function h(e){var t=e.indexOf("#");if(-1===t||t===e.length-1)return null;if(0<t){var i=e.slice(0,t);if(i!==n(document.URL)&&i!==n(document.baseURI))return null}i=e.slice(t+1);try{return decodeURIComponent(i)}catch(e){return i}function n(e){var t=(e||"").indexOf("#");return-1===t?e:e.slice(0,t)}}function p(e){return null==e||""===e?"":"string"==typeof e?e:m(e,"readAsDataURL","")}function u(e){if(null==e||""===e)return null;if("string"!=typeof e)return m(e,"readAsText",null);{var t=e.indexOf(",");if(-1===t)return"";var i=e.slice(0,t);if(e=e.slice(t+1),!/;base64/i.test(i))return decodeURIComponent(e);let n=y(e),r="";for(let e=0;e<n.length;e+=1)r+="%"+("00"+n.charCodeAt(e).toString(16)).slice(-2);return decodeURIComponent(r)}}function m(e,t,i){return new Promise(function(n){let r=new FileReader;r.onloadend=function(){n(r.result)},r.onerror=function(){n(i)};try{r[t](e)}catch(r){n(i)}})}function v(e,t,i){let n=f.impl.urlCache.find(function(t){return t.url===e});if(n||(n={url:e,promise:null},f.impl.urlCache.push(n)),null===n.promise){let r=function(i){var n=f.impl.options.requestInterceptor;if("function"==typeof n)try{return n(e,{type:t,status:i})}catch(i){w("requestInterceptor threw:",i)}},s=function(e){return null!=e},a=r(void 0);if(s(a))return n.promise=Promise.resolve(a),n.promise;if(!1===i)return n.promise=Promise.resolve(null),n.promise;f.impl.options.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+(new Date).getTime()),n.promise=new Promise(function(i){let n=new XMLHttpRequest;function a(e){c(e,!1),i(null)}function o(){l("Status:"+n.status+" while fetching resource: "+e)}function l(e){var o=r(n.status);s(o)?Promise.resolve(o).then(function(t){c(e,!0),i(t)},function(){w(e),a(e)}):(o=t===d.IMAGE||t===d.CSS_IMAGE?f.impl.options.imagePlaceholder:void 0)?(c(e,!0),i(o)):(w(e),a(e))}function c(t,i){var r=f.impl.options.onImageError;if("function"==typeof r)try{r({url:e,message:t,status:n.status,willUsePlaceholder:i})}catch(t){w("onImageError handler threw:",t)}}if(n.timeout=f.impl.options.httpTimeout,n.onerror=o,n.ontimeout=o,n.onloadend=function(){var t;n.readyState===XMLHttpRequest.DONE&&(0===(t=n.status)&&e.toLowerCase().startsWith("file://")||200<=t&&t<=300&&null!==n.response?(t=n.response)instanceof Blob?i(t):l("Response was not a Blob (got "+typeof t+") while fetching resource: "+e):o())},0<f.impl.options.useCredentialsFilters.length&&(f.impl.options.useCredentials=0<f.impl.options.useCredentialsFilters.filter(t=>0<=e.search(t)).length),f.impl.options.useCredentials&&(n.withCredentials=!0),f.impl.options.corsImg&&0===e.indexOf("http")&&-1===e.indexOf(window.location.origin)){var h="POST"===(f.impl.options.corsImg.method||"GET").toUpperCase()?"POST":"GET";n.open(h,(f.impl.options.corsImg.url||"").replace("#{cors}",e),!0);let t=!1,i=f.impl.options.corsImg.headers||{},r=(Object.keys(i).forEach(function(e){-1!==i[e].indexOf("application/json")&&(t=!0),n.setRequestHeader(e,i[e])}),(e=>{try{return JSON.parse(JSON.stringify(e))}catch(e){w("corsImg.data is missing or invalid",e),a("corsImg.data is missing or invalid")}})(f.impl.options.corsImg.data||""));Object.keys(r).forEach(function(t){"string"==typeof r[t]&&(r[t]=r[t].replace("#{cors}",e))}),n.responseType="blob",n.send(t?JSON.stringify(r):r)}else n.open("GET",e,!0),n.responseType="blob",n.send()})}return n.promise}function b(e){if(e.nodeType!==g||"function"!=typeof e.getBBox)return null;try{var t=e.getBBox();return t&&(t.width||t.height)?t:null}catch(e){return null}}function k(e,t){if(e.nodeType===g){let i=x(e).getPropertyValue(t);if("px"===i.slice(-2))return i=i.slice(0,-2),parseFloat(i)}return NaN}})(),i=(()=>{let e=/url\(\s*(["']?)((?:\\.|[^\\)])+)\1\s*\)/gm;return{inlineAll:function(e,t,r,a){return i(e)?Promise.resolve(e).then(n).then(function(e){return f.impl.options.filterUrls?e.filter(function(e){return f.impl.options.filterUrls(e,t)}):e}).then(function(i){let n=Promise.resolve(e);return i.forEach(function(e){n=n.then(function(i){return s(i,e,t,r,a)})}),n}):Promise.resolve(e)},shouldProcess:i,impl:{readUrls:n,inline:s,urlAsRegex:r}};function i(t){return-1!==t.search(e)}function n(i){for(var n,r=[];null!==(n=e.exec(i));)r.push(n[2]);return r.filter(function(e){return!t.isDataUrl(e)&&"#"!==e.charAt(0)&&null===t.getSameDocumentFragmentId(e)})}function r(e){return new RegExp(`url\\((["']?)(${t.escape(e)})\\1\\)`,"gm")}function s(e,i,n,s,a){return Promise.resolve(i).then(function(e){return n?t.resolveUrl(e,n):e}).then(function(e){return(a||t.getAndEncode)(e,s)}).then(function(t){var n=r(i);return e.replace(n,`url($1${t}$1)`)})}})(),n={resolveAll:function(e,i){return r().then(function(n){if(e){var r=n,s=e,a=i;function o(e){t.parseFontFamilies(e).forEach(function(e){c.add(e)})}let l=f.impl.options,c=new Set(_);return[s].concat(t.asArray(s.querySelectorAll("*"))).forEach(function(e){if(e.style&&o(e.style.getPropertyValue("font-family")),t.isHTMLStyleElement(e))for(var i,n=/font-family\s*:\s*([^;}]+)/gi;null!==(i=n.exec(e.textContent));)o(i[1].replace(/\s*!important\s*$/i,""))}),a&&o(a.fontFamily||a["font-family"]),r.filter(function(e){if((e=e.descriptor()).used=c.has(e.family),"function"==typeof l.filterFonts){var t=l.filterFonts(e);if(!0===t||!1===t)return t}return e.used})}return n}).then(function(e){return Promise.all(e.map(function(e){return e.resolve()}))}).then(function(e){return e.join("\n")})},impl:{readAll:r}};function r(){return Promise.resolve(t.asArray(document.styleSheets)).then(function(e){let i="function"==typeof f.impl.options.requestInterceptor,n={};return Promise.all(e.map(function(e){let r=e.href;if(!r||n[r])return e;n[r]=!0;var s=(e=>{try{return!e.cssRules}catch(e){return!0}})(e)&&(e=>{var t=f.impl.options.loadExternalStyleSheet;if("function"==typeof t)try{return!0===t(e)}catch(e){return w("domtoimage: loadExternalStyleSheet predicate threw:",e),!1}return!0===t})(r);return i||s?t.getResourceText(r,d.STYLESHEET,s).then(function(i){return i&&((e,i)=>{try{var n=document.implementation.createHTMLDocument(""),r=n.createElement("style");return r.appendChild(document.createTextNode((s=i,e.replace(/url\((['"]?)([^'")]+)\1\)/g,function(e,i,n){return n=n.trim(),t.isDataUrl(n)||/^[a-z][a-z0-9+.-]*:/i.test(n)?e:`url(${i}${t.resolveUrl(n,s)}${i})`})))),n.body.appendChild(r),r.sheet}catch(e){return null}var s})(i,r)||e}):e}))}).then(function(e){let i=[];return e.forEach(function(e){var n=Object.getPrototypeOf(e);if(Object.prototype.hasOwnProperty.call(n,"cssRules"))try{t.asArray(e.cssRules||[]).forEach(i.push.bind(i))}catch(n){f.impl.options.ignoreCSSRuleErrors||w("domtoimage: Error while reading CSS rules from: "+e.href,n)}}),i}).then(function(e){return e.filter(function(e){return e.type===CSSRule.FONT_FACE_RULE}).filter(function(e){return i.shouldProcess(e.style.getPropertyValue("src"))})}).then(function(t){return t.map(e)});function e(e){return{resolve:function(){var t=(e.parentStyleSheet||{}).href;return i.inlineAll(e.cssText,t,d.FONT)},src:function(){return e.style.getPropertyValue("src")},descriptor:function(){var i=e.style;return{family:t.parseFontFamilies(i.getPropertyValue("font-family"))[0]||"",style:i.getPropertyValue("font-style"),weight:i.getPropertyValue("font-weight"),stretch:i.getPropertyValue("font-stretch"),unicodeRange:i.getPropertyValue("unicode-range"),src:i.getPropertyValue("src"),rule:e}}}}}let s={inlineAll:function e(n){return t.isElement(n)?((r=n).style?(s=["background","background-image","mask","mask-image","-webkit-mask","-webkit-mask-image"].map(function(e){let t=r.style.getPropertyValue(e),n=r.style.getPropertyPriority(e);return t?i.inlineAll(t,void 0,d.CSS_IMAGE).then(function(t){r.style.setProperty(e,t,n)}):Promise.resolve()}),Promise.all(s).then(function(){return r})):Promise.resolve(r)).then(function(){return t.isHTMLImageElement(n)?a(n).inline():t.isSVGImageElement(n)?!(r=(i=n).getAttribute("href")||i.getAttributeNS(c,"href")||i.getAttribute("xlink:href"))||t.isDataUrl(r)?Promise.resolve(i):Promise.resolve(r).then(function(e){return(0,t.getAndEncode)(e,d.IMAGE)}).then(function(e){return e&&(i.setAttributeNS(c,"xlink:href",e),i.setAttribute("href",e)),i}):Promise.all(t.asArray(n.childNodes).map(e));var i,r}):Promise.resolve(n);var r,s},impl:{newImage:a}};function a(e){return{inline:function(i){return t.isDataUrl(e.src)?Promise.resolve():Promise.resolve(e.src).then(function(e){return(i||t.getAndEncode)(e,d.IMAGE)}).then(function(t){return new Promise(function(i){e.onload=i,e.onerror=i,e.src=t})})}}}let o={position:"fixed",left:"-9999px",visibility:"hidden"},l="http://www.w3.org/2000/svg",c="http://www.w3.org/1999/xlink",h="data:image/svg+xml;charset=utf-8,",p={warn:function(...e){console.warn(...e)},error:function(...e){console.error(...e)}},u={copyDefaultStyles:!0,imagePlaceholder:void 0,cacheBust:!1,useCredentials:!1,useCredentialsFilters:[],httpTimeout:3e4,styleCaching:"strict",corsImg:void 0,adjustClonedNode:void 0,filterStyles:void 0,filterUrls:void 0,filterFonts:void 0,adjustPseudoElement:void 0,onImageError:void 0,ensureShown:!1,pixelRatio:1,preserveScroll:!1,ignoreCSSRuleErrors:!1,requestInterceptor:void 0,loadExternalStyleSheet:!1,logger:p},d=Object.freeze({IMAGE:"image",CSS_IMAGE:"css-image",FONT:"font",STYLESHEET:"stylesheet"}),f={toSvg:E,toPng:function(e,t){return S(e,t).then(function(e){return e.toDataURL()})},toJpeg:function(e,t){return S(e,t).then(function(e){return e.toDataURL("image/jpeg",(t?t.quality:void 0)||1)})},toBlob:function(e,i){return S(e,i).then(t.canvasToBlob)},toPixelData:function(e,i){return S(e,i).then(function(i){return i.getContext("2d").getImageData(0,0,t.width(e),t.height(e)).data})},toCanvas:S,ResourceType:d,impl:{fontFaces:n,images:s,util:t,inliner:i,urlCache:[],options:{},copyOptions:function(e){Object.keys(u).forEach(function(t){f.impl.options[t]=(void 0===e[t]?u:e)[t]})},resetUrlCache:m}};function m(){f.impl.urlCache=[]}Xt.exports=f;let g=("undefined"!=typeof Node?Node.ELEMENT_NODE:void 0)||1,x=v("getComputedStyle"),y=v("atob");function v(t){return(void 0!==e?e[t]:void 0)||("undefined"!=typeof window?window[t]:void 0)||globalThis[t]}function b(...e){k("warn",e)}function w(...e){k("error",e)}function k(e,t){var i=f.impl.options.logger||p;"function"==typeof(e=i[e])&&e.apply(i,t)}function E(e,r){let s=f.impl.util.getWindow(e),a=(r=r||{},f.impl.copyOptions(r),[]);return A=[],_=new Set,s&&s.document?(()=>{var e=s.document;if(!e.fonts||!e.fonts.ready)return Promise.resolve();let t,i=f.impl.options.httpTimeout||3e4,n=Promise.resolve(e.fonts.ready).then(function(){return!1},function(){return!1}),r=new Promise(function(e){t=s.setTimeout(function(){e(!0)},i)});return Promise.race([n,r]).then(function(e){s.clearTimeout(t),e&&b("dom-to-image-more: timed out after "+i+"ms waiting for document fonts to finish loading (document.fonts.ready); rendering anyway — the output may have missing glyphs or fallback-font metrics.")})})().then(function(){var t=e;if(t.nodeType===g)return t;var i,n=t,r=t.parentNode;if(r)return i=document.createElement("span"),r.replaceChild(i,n),i.append(t),a.push({parent:r,child:n,wrapper:i}),i;throw new Error("Cannot render a non-element node that is not attached to a parent; wrap it in an element or attach it to the document first.")}).then(function(e){return function e(n,r,s,a){var c=r.filter;return n===C||t.isHTMLScriptElement(n)||t.isHTMLStyleElement(n)||t.isHTMLLinkElement(n)||null!==s&&c&&!c(n)?Promise.resolve():Promise.resolve(n).then(function(e){return t.isHTMLCanvasElement(e)?t.makeImage(e.toDataURL()):e.cloneNode(!1)}).then(function(e){return r.adjustClonedNode&&r.adjustClonedNode(n,e,!1),Promise.resolve(e)}).then(function(i){{var s=i;let a=(e=>{if(t.isShadowSlotElement(e)){var i=e.assignedNodes();if(i&&0<i.length)return i}return e.childNodes})((i=n,i=t.isElementHostForOpenShadowRoot(i)?i.shadowRoot:i)),o=Promise.resolve();if(0!==a.length){let n=x(t.isShadowRoot(i)?i.host:i);t.asArray(a).forEach(function(t){o=o.then(function(){return e(t,r,n).then(function(e){e&&s.appendChild(e)})})})}return o.then(function(){return s})}}).then(function(e){return r.adjustClonedNode&&r.adjustClonedNode(n,e,!0),Promise.resolve(e)}).then(function(e){return a=e,c=n,!t.isElement(a)||t.isShadowSlotElement(c)?Promise.resolve(a):Promise.resolve().then(function(){if(t.isHTMLImageElement(c)&&"function"==typeof c.decode&&!(c.complete&&0<c.naturalWidth||(e=>{if("lazy"===e.loading){let i=e;for(;i&&1===i.nodeType;){if("none"===x(i).getPropertyValue("display"))return 1;var t;i=i.parentElement||((t="function"==typeof i.getRootNode?i.getRootNode():null)&&t.host?t.host:null)}}})(c)))return c.decode().catch(function(){})}).then(function(){if(a.style){var e,i,n=c,l=a,h=x(n);if(h.cssText)l.style.cssText=h.cssText,(y=l.style).font=(v=h).font,y.fontFamily=v.fontFamily,y.fontFeatureSettings=v.fontFeatureSettings,y.fontKerning=v.fontKerning,y.fontSize=v.fontSize,y.fontStretch=v.fontStretch,y.fontStyle=v.fontStyle,y.fontVariant=v.fontVariant,y.fontVariantCaps=v.fontVariantCaps,y.fontVariantEastAsian=v.fontVariantEastAsian,y.fontVariantLigatures=v.fontVariantLigatures,y.fontVariantNumeric=v.fontVariantNumeric,y.fontVariationSettings=v.fontVariationSettings,y.fontWeight=v.fontWeight;else{{var p=r,u=n,d=h,m=s,y=l;let a=f.impl.options.copyDefaultStyles?((e,i)=>{var n,r=(e=>{var t=[];do{if(e.nodeType===g){var i=e.tagName;if(t.push(i),M.includes(i))break}}while(e=e.parentNode);return t})(i);if(e=("relaxed"!==e.styleCaching?r:r.filter((e,t,i)=>0===t||t===i.length-1)).join(">")+((n=i)&&n.hasAttribute?F.filter(function(e){return n.hasAttribute(e)}).map(function(e){return`[${e}]`}).join(""):""),D[e])return D[e];var s,a=r=((e,t)=>{let i=e.body;do{var n=t.pop();n=e.createElement(n)}while(i.appendChild(n),i=n,0<t.length);return i.textContent="​",i})((s=(()=>{if(C)return C.contentWindow;i=document.characterSet||"UTF-8",e=(e=document.doctype)?(`<!DOCTYPE ${c(e.name)} ${c(e.publicId)} `+c(e.systemId)).trim()+">":"",(C=document.createElement("iframe")).id="domtoimage-sandbox-"+t.uid(),Object.assign(C.style,o),document.body.appendChild(C);var e,i,n=C,r="domtoimage-sandbox";try{return n.contentWindow.document.write(e+`<html><head><meta charset='${i}'><title>${r}</title></head><body></body></html>`),n.contentWindow}catch(e){}var s=document.createElement("meta");s.setAttribute("charset",i);try{var a=document.implementation.createHTMLDocument(r),l=(a.head.appendChild(s),e+a.documentElement.outerHTML);return n.setAttribute("srcdoc",l),n.contentWindow}catch(e){}return n.contentDocument.head.appendChild(s),n.contentDocument.title=r,n.contentWindow;function c(e){var t;return e?((t=document.createElement("div")).innerText=e,t.innerHTML):""}})()).document,r),l=i,c=(l&&l.hasAttribute&&F.forEach(function(e){l.hasAttribute(e)&&a.setAttribute(e,l.getAttribute(e))}),i=((e,i)=>{let n,r={},s=e.getComputedStyle(i),a=(t.asArray(s).forEach(function(e){r[e]="width"===e||"height"===e?"auto":s.getPropertyValue(e)}),i.parentElement);return a&&(n=e.getComputedStyle(a).getPropertyValue("font-size"),r[O]=r["font-size"]!==n),r})(s,r),r);do{var h=c.parentElement}while(null!==h&&h.removeChild(c),(c=h)&&"BODY"!==c.tagName);return D[e]=i})(p,u):{},c=y.style;t.asArray(d).forEach(function(e){var t,i,n;p.filterStyles&&!p.filterStyles(u,e)||(t=d.getPropertyValue(e),n=a[e],i=m?m.getPropertyValue(e):void 0,c.getPropertyValue(e))||(t!==n||m&&t!==i||"font-size"===e&&a[O])&&(n=d.getPropertyPriority(e),R(c,e,t,n))}),e=d,i=c,["top","right","bottom","left"].forEach(function(t){var n,r=`border-${t}-width`;(t=e.getPropertyValue(`border-${t}-style`))&&"none"!==t&&!i.getPropertyValue(r)&&(t=e.getPropertyValue(r))&&(n=e.getPropertyPriority(r),R(i,r,t,n))})}null===s&&(["inset-block","inset-block-start","inset-block-end"].forEach(e=>l.style.removeProperty(e)),["left","right","top","bottom"].forEach(e=>{l.style.getPropertyValue(e)&&l.style.setProperty(e,"0px")}))}v=x(c).getPropertyValue("visibility"),null===s?"visible"!==v&&a.style.setProperty("visibility","visible"):v===s.getPropertyValue("visibility")&&a.style.removeProperty("visibility"),L(x(c).getPropertyValue("font-family"))}var v}).then(function(){let e=t.uid();return Promise.all([":before",":after"].map(function(n){let s=x(c,n),o=s.getPropertyValue("content");if(""!==o&&"none"!==o){let h;if(r.adjustPseudoElement){var l=r.adjustPseudoElement(c,n,s);if(!1===l)return;l&&"object"==typeof l&&(h=l)}L(s.getPropertyValue("font-family")),h&&h["font-family"]&&L(h["font-family"]);let p=a.getAttribute("class")||"",u=(a.setAttribute("class",p+" "+e),`.${e}:`+n),f=s.cssText?s.cssText+` content: ${o};`:t.asArray(s).map(function(e){return e+": "+s.getPropertyValue(e)+(s.getPropertyPriority(e)?" !important":"")}).join("; ")+";";return h&&(f+=Object.keys(h).map(function(e){return` ${e}: ${h[e]};`}).join("")),i.inlineAll(f,void 0,d.CSS_IMAGE).then(function(e){var t=document.createElement("style");t.appendChild(document.createTextNode(u+`{${e}}`)),a.appendChild(t)})}}))}).then(function(){t.isHTMLTextAreaElement(c)&&(a.innerHTML=c.value),t.isHTMLInputElement(c)&&a.setAttribute("value",c.value)}).then(function(){if(a.attributes&&a.removeAttribute){var e=[];for(let i=0;i<a.attributes.length;i+=1){var t=a.attributes[i].name;/["'=<>/\s]/.test(t)&&e.push(t)}e.forEach(function(e){a.removeAttribute(e)})}}).then(function(){if(r.preserveScroll&&a.style){var e=c.scrollLeft||0,i=c.scrollTop||0;if(0!==e||0!==i){a.style.overflow="hidden";let n=`translate(${-e}px, ${-i}px)`;t.asArray(a.children).forEach(function(e){var t;e.style&&(t=e.style.transform&&"none"!==e.style.transform?" "+e.style.transform:"",e.style.transform=n+t)})}}}).then(function(){t.isSVGElement(a)&&(a.setAttribute("xmlns",l),t.isSVGRectElement(a)&&["width","height"].forEach(function(e){var t=a.getAttribute(e);t&&a.style.setProperty(e,t)}),t.isSVGUseElement(a))&&T(c,c)}).then(function(){a.style&&I.forEach(function(e){var i,n=a.style.getPropertyValue(e);n&&-1!==n.indexOf("url(")&&(i=t.rewriteFragmentUrls(n,function(e){P(c,e)}))!==n&&a.style.setProperty(e,i,a.style.getPropertyPriority(e))}),t.isSVGElement(c)&&N.forEach(function(e){(e=c.getAttribute(e))&&t.rewriteFragmentUrls(e,function(e){P(c,e)})})}).then(function(){var e;t.isElement(a)&&(()=>{var e=c.children||[];for(let t=0;t<e.length;t+=1)if("CAPTION"===e[t].tagName)return 1})()&&("table"!==(e=x(c).getPropertyValue("display"))&&"inline-table"!==e||(a.style.removeProperty("height"),a.style.removeProperty("block-size")))}).then(function(){t.isHTMLImageElement(a)&&(a.removeAttribute("loading"),c.srcset||c.sizes)&&(a.removeAttribute("srcset"),a.removeAttribute("sizes"),a.src=c.currentSrc||c.src)}).then(function(){return a});var a,c})}(e,r,null)}).then(function(e){if(0!==A.length){var t=document.createElementNS(l,"svg");t.setAttribute("xmlns",l),t.setAttribute("width","0"),t.setAttribute("height","0"),t.style.setProperty("position","absolute"),t.style.setProperty("width","0"),t.style.setProperty("height","0"),t.style.setProperty("overflow","hidden");let i=document.createElementNS(l,"defs"),n=(t.appendChild(i),new Set),r=(e.getAttribute("id")&&n.add(e.getAttribute("id")),e.querySelectorAll("[id]").forEach(function(e){n.add(e.getAttribute("id"))}),0);A.forEach(function(e){n.has(e.id)||(i.appendChild(e.node),r+=1)}),0<r&&e.insertBefore(t,e.firstChild)}return e}).then(function(e){return r.disableEmbedFonts?e:(t=e,e=r.style,n.resolveAll(t,e).then(function(e){var i;return""!==e&&(i=document.createElement("style"),t.appendChild(i),i.appendChild(document.createTextNode(e))),t}));var t}).then(r.disableInlineImages?Promise.resolve(e):V).then(function(e){e.style&&(e.style.margin="0"),r.bgcolor&&(e.style.backgroundColor=r.bgcolor),r.width&&(e.style.width=r.width+"px"),r.height&&(e.style.height=r.height+"px"),r.style&&Object.assign(e.style,r.style);let t=null;return"function"==typeof r.onclone&&(t=r.onclone(e)),Promise.resolve(t).then(function(){return e})}).then(function(i){if(t.isSVGElement(e)&&!t.isSVGSVGElement(e)){let n,s=i,a=p(s);try{n=e.getBBox()}catch(e){n={x:0,y:0,width:0,height:0}}finally{a()}s.removeAttribute("transform"),s.style.removeProperty("transform");let o=r.width||n.width,u=r.height||n.height;return Promise.resolve(s).then(function(e){return e.setAttribute("xmlns",l),(new XMLSerializer).serializeToString(e)}).then(c).then(t.escapeXhtml).then(function(e){var i=(t.isDimensionMissing(o)?"":` width="${o}"`)+(t.isDimensionMissing(u)?"":` height="${u}"`),r=`${n.x} ${n.y} ${n.width} `+n.height;return`<svg xmlns="${l}"${i} viewBox="${r}">${e}</svg>`}).then(function(e){return h+e})}{let n,s,a=p(i);try{n=r.width||t.width(e),s=r.height||t.height(e)}finally{a()}return Promise.resolve(i).then(function(e){return e.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(e)}).then(c).then(t.escapeXhtml).then(function(e){var i=(t.isDimensionMissing(n)?' width="100%"':` width="${n}"`)+(t.isDimensionMissing(s)?' height="100%"':` height="${s}"`),r=(t.isDimensionMissing(n)?"":` width="${n}"`)+(t.isDimensionMissing(s)?"":` height="${s}"`);return`<svg xmlns="${l}"${r}><foreignObject${i}>${e}</foreignObject></svg>`}).then(function(e){return h+e})}}).finally(function(){for(;0<a.length;){var e=a.pop();try{e.parent.replaceChild(e.child,e.wrapper)}catch(e){w("domtoimage: failed to restore wrapped node",e)}}m(),A=[],_=new Set,C&&(C.remove(),C=null),j&&clearTimeout(j),j=setTimeout(()=>{j=null,D={}},2e4)}):Promise.reject(new Error("dom-to-image-more: a browser DOM is required (SSR)"));function c(e){return e.replace(/url\(&quot;([^]*?)&quot;\)/g,function(e,t){return 0<=t.indexOf("'")?e:`url('${t}')`})}function p(t){function i(){}if(!r.ensureShown)return i;var n=x(e);if("0"===n.getPropertyValue("opacity")&&t.style.setProperty("opacity","1"),"none"!==n.getPropertyValue("display"))return i;let s=e.style.getPropertyValue("display"),a=e.style.getPropertyPriority("display");return e.style.removeProperty("display"),"none"===x(e).getPropertyValue("display")&&(n=s&&"none"!==s?s:"revert",e.style.setProperty("display",n,"important")),function(){var i=x(e).getPropertyValue("display");t.style.setProperty("display","none"===i?"block":i),s?e.style.setProperty("display",s,a):e.style.removeProperty("display")}}}function S(e,i){return E(e,i=i||{}).then(t.makeImage).then(function(n){var r=(e=>{let n=i.width||t.width(e),r=i.height||t.height(e);t.isDimensionMissing(n)&&(n=t.isDimensionMissing(r)?300:2*r),t.isDimensionMissing(r)&&(r=n/2),e=("number"==typeof i.scale?i.scale:1)*("number"==typeof i.pixelRatio?i.pixelRatio:1);var s,a=(o=r,!(0<(a=n)&&0<o&&0<e)||e<=(s=Math.min(16384/a,16384/o,Math.sqrt(268435456/(a*o))))?e:(b("dom-to-image-more: the requested "+Math.round(a*e)+"×"+Math.round(o*e)+" canvas exceeds the browser limit; clamping the effective scale from "+e+" to "+s+". Capture detail may be reduced — render a smaller region or lower scale/pixelRatio."),s)),o=document.createElement("canvas");return o.width=n*a,o.height=r*a,i.bgcolor&&((e=o.getContext("2d")).fillStyle=i.bgcolor,e.fillRect(0,0,o.width,o.height)),{canvas:o,scale:a,width:n,height:r}})(e),s=r.canvas,a=r.scale,o=s.getContext("2d");return o.msImageSmoothingEnabled=!1,o.imageSmoothingEnabled=!1,n&&(o.scale(a,a),o.drawImage(n,0,0,r.width,r.height)),s})}let C=null,A=[],_=new Set,I=["clip-path","mask","mask-image","-webkit-mask","-webkit-mask-image","filter","fill","stroke","marker-start","marker-mid","marker-end"],N=["clip-path","mask","filter","fill","stroke","marker-start","marker-mid","marker-end"];function T(e,t){(e=e.getAttribute("href")||e.getAttributeNS(c,"href")||e.getAttribute("xlink:href"))&&"#"===e.charAt(0)&&1<e.length&&P(t,e.slice(1))}function P(e,i){var n,r;A.some(e=>e.id===i)||(n=((n="function"==typeof e.getRootNode?e.getRootNode():null)&&"function"==typeof n.getElementById?n.getElementById(i):null)||e.ownerDocument.getElementById(i))&&((r=n.cloneNode(!0)).setAttribute("xmlns",l),A.push({id:i,node:r}),[n].concat(t.asArray(n.querySelectorAll("*"))).forEach(function(i){T(i,e),N.concat(["style"]).forEach(function(n){(n=i.getAttribute(n))&&t.rewriteFragmentUrls(n,function(t){P(e,t)})})}))}function L(e){t.parseFontFamilies(e).forEach(function(e){_.add(e)})}function V(e){return s.inlineAll(e).then(function(){return e})}function R(e,t,i,n){var r=0<=["background-clip"].indexOf(t);n?(e.setProperty(t,i,n),r&&e.setProperty("-webkit-"+t,i,n)):(e.setProperty(t,i),r&&e.setProperty("-webkit-"+t,i))}let O=Symbol("dtim-ua-relative-font-size"),j=null,D={},M=["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","DETAILS","DIALOG","DD","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","LI","MAIN","NAV","OL","P","PRE","SECTION","SVG","TABLE","UL","math","svg","BODY","HEAD","HTML"],F=["href"]})(Gt.exports)),Gt.exports),Wt=Z(Ht);const $t=e=>{const{onRunStart:t,id:i,onChangeRef:u,isRunning:d,timeLimit:f,memoryLimit:m,withLabels:g,getFiles:x,currentFileName:y,testCases:v,setRunState:b}=e,{addErrorNotification:w}=ee(),k=N(""),E=!!x()[y],S={event:r.SUBSCRIBE_CODE_RUN_STATUS,runId:i};te(S,e=>{if(p(e)){if(i!==k.current)return;const t=(t,i,n,r)=>{u.current?.({onTestCasesChange:s=>{const a={...s};for(const o in a)s[o]?.messageTimestamp&&s[o].messageTimestamp>e.messageTimestamp||a[o]&&(a[o]={...a[o],status:t,err:i,out:n,log:r,messageTimestamp:e.messageTimestamp});return a}})},n=e.status||a.NONE,r=e?.log?.inputKey;switch(n){case a.RECEIVED:case a.FAILED:case a.COMPILING:case a.COMPILED:case a.COMPILATION_ERROR:t(n,e.log?.err||"",e.log?.out||"",e.log?.log||"");break;case a.RUNNING_TEST_CASE:case a.EXECUTED_TEST_CASE:case a.FAILED_TEST_CASE:u.current?.({onTestCasesChange:t=>{const i={...t};if(r&&i[r]){const s={...i[r],status:n,out:e.log?.out||"",log:e.log?.log||"",err:e.log?.err||"",messageTimestamp:e.messageTimestamp},a=t[s.key];return a&&a.messageTimestamp>s.messageTimestamp?t:{...t,[s.key]:s}}return t}})}switch(n){case a.RECEIVED:b(e=>({...e,running:!0})),u.current?.({isRunning:!0});break;case a.FAILED:case a.COMPILATION_ERROR:case a.COMPLETED:b(e=>({...e,running:!1})),u.current?.({isRunning:!1})}u.current?.({codeRunStatus:n})}},()=>!!i);const C=async e=>{const i=e=>{const t={};for(const i in v)v[i]&&(t[i]={...v[i]},t[i].log="0\n0\n0\n",t[i].out="",t[i].err="",t[i].status=e);u?.current?.({onTestCasesChange:()=>t})};e(s.LOADING),i(a.RECEIVED);try{const n=x(),r=o();t(r),k.current=r;const{url:p,...u}=it.API_V2.code.run({body:{runId:r,files:[...Object.entries(n).map(([e,{language:t,source:i,name:r,active:s}])=>{const a=e===y||!0===s&&!n[y];return{language:t,source:i,fullFileName:r,isInput:!1,isEntryPoint:a,toCompile:a}}),...Object.values(v).map(e=>({fullFileName:`${e.key}.in`,language:l.TEXT,source:e.in,isInput:!0,isEntryPoint:!1,toCompile:!1}))],timeLimit:f,memoryLimit:m,connectionId:""}}),d=c(await Ce(p,u));d?.success&&d?.content?.runId?e(s.SUCCESS):(w(d?.message),t(""),k.current="",i(a.NONE),h("run code request failed",{request:d}),e(s.ERROR))}catch(t){h("error on run code",{error:t}),i(a.NONE),e(s.ERROR)}},A=ie(C),_=ie(d),I=ie(E),L=T(e=>{!e.metaKey&&!e.ctrlKey||e.shiftKey||e.altKey||"Enter"!==e.key||(e.preventDefault(),e.stopPropagation(),V.current&&!_.current&&I.current&&A.current(V.current))},[A,_,I]);ne(L);const V=N(void 0);return P(()=>{d?V.current?.(s.LOADING):V.current?.(s.NONE)},[d]),n(re,{"data-tooltip-id":"jk-tooltip","data-tooltip-content":g?"(Ctrl+Enter / ⌘+Enter)":"run (Ctrl+Enter / ⌘+Enter)",icon:n(et,{size:"tiny"}),onClick:C,setLoaderStatusRef:e=>V.current=e,disabled:!E,children:g&&n(W,{className:"tt-se tx-t",children:"run"})})},Kt=A(e=>{const{onChangeRef:r,setShowSettings:s,leftOptions:a,centerOptions:o,rightOptions:l,onRunStart:c,expanded:h,setExpanded:p,headerRef:d,headerWidthContainer:f,currentFileName:m,language:g,hasSource:x,getFiles:y,runner:v,setRunState:b,languages:w,readOnly:k,withoutRunCodeButton:E}=e,{addQuietNotification:S}=ee(),{width:C=0,ref:A}=se(z),{width:I=0,ref:L}=se(z),V=T(()=>{const e=y()[m];e?.source&&e?.name&&(Se(e.source,e.name),S(n(W,{className:"tt-se",children:"downloaded"})))},[S,m,y]),[R,O]=_(null),j=N(null),D=N(null);P(()=>{null!==R&&(D.current?.(),D.current=null)},[R]);const M=T(async e=>{await new Promise(t=>{D.current=t,O(e)}),await new Promise(e=>requestAnimationFrame(e));try{if(j.current)return await Wt.toBlob(j.current)}catch(e){console.error("Error al capturar imagen:",e)}finally{O(null)}},[]),F=T(async()=>{const e=y()[m];if(e?.source&&e?.name){const t=await M(e.source);t&&(Se(t,`${e.name}.png`),S(n(W,{className:"tt-se",children:"downloaded"})))}},[S,m,y,M]),B=T(async()=>{const e=y()[m];if(e?.source)try{await navigator.clipboard.writeText(e.source),S(n(W,{className:"tt-se",children:"copied"}))}catch(e){console.error("Failed to copy:",e)}},[S,m,y]),U=T(async()=>{const e=y()[m];if(e?.source)try{const t=await M(e.source);t&&(await navigator.clipboard.write([new ClipboardItem({"image/png":t})]),S(n(W,{className:"tt-se",children:"copied"})))}catch(e){console.error("Failed to copy image:",e)}},[S,m,y,M]),J=T(e=>{if(navigator.platform.toUpperCase().includes("MAC")?e.metaKey:e.ctrlKey)return e.shiftKey&&!e.altKey&&"KeyS"===e.code?(e.preventDefault(),void V()):!e.shiftKey&&e.altKey&&"KeyS"===e.code?(e.preventDefault(),void F()):e.shiftKey&&!e.altKey&&"KeyC"===e.code?(e.preventDefault(),void B()):void(!e.shiftKey&&e.altKey&&"KeyC"===e.code&&(e.preventDefault(),U()))},[V,F,B,U]);ne(J);const q=!E&&u.includes(g),G=f>(v?620:570),X=f-C-I;return t("div",{className:"options-header-content jk-row jk-pg-xsm",ref:d,children:[t("div",{className:Ee("cr-tx-ht jk-row gap left"),ref:A,children:[k||1===w.length?n("div",{className:"jk-tag bc-io",children:(w.find(e=>e.value===g)?.label||g)+""}):n(ae,{className:"languages-selector tx-s",options:w.map(e=>({value:e.value,label:e.label||e.value})),selectedOption:{value:g,label:w.find(e=>e.value===g)?.label||g},onChange:({value:e})=>r?.current?.({language:e})}),q&&n($t,{...v,onRunStart:c,withLabels:G,getFiles:y,currentFileName:m,onChangeRef:r,setRunState:b}),null!==R&&n("div",{className:"code-viewer-to-print bc-sf-md jk-pg jk-br-ie",ref:j,children:n(oe,{code:R,language:g})}),n(ae,{options:[{value:"copy-text",label:t(i,{children:[n(W,{className:"tt-se tx-t",children:"copy as text"})," ",n("span",{className:"fw-lr tx-t",children:"(Ctrl+Shift+C / ⌘+Shift+C)"})]})},{value:"copy-png",label:t(i,{children:[n(W,{className:"tt-se tx-t",children:"copy as png"})," ",n("span",{className:"fw-lr tx-t",children:"(Ctrl+Alt+C / ⌘+Option+C)"})]})}],disabled:!x,selectedOption:{value:"",label:G?t(i,{children:[n(je,{size:"tiny"}),n(W,{className:"tt-se tx-t ws-np",children:"copy"})]}):n(je,{size:"tiny"})},style:{width:"auto"},onChange:async({value:e})=>{if(x)switch(e){case"copy-text":B();break;case"copy-png":U()}}}),n(ae,{options:[{value:"download-text",label:t(i,{children:[n(W,{className:"tt-se tx-t",children:"download as file"})," ",n("span",{className:"fw-lr tx-t",children:"(Ctrl+Shift+S / ⌘+Shift+S)"})]})},{value:"download-png",label:t(i,{children:[n(W,{className:"tt-se tx-t",children:"download as png"})," ",n("span",{className:"fw-lr tx-t",children:"(Ctrl+Alt+S / ⌘+Option+S)"})]})}],disabled:!x,selectedOption:{value:"",label:G?t(i,{children:[n(De,{size:"tiny"}),n(W,{className:"tt-se tx-t ws-np",children:"download"})]}):n(De,{size:"tiny"})},style:{width:"auto"},onChange:async({value:e})=>{if(x)switch(e){case"download-text":V();break;case"download-png":F();break;case"copy-text":B();break;case"copy-png":U()}}}),a({withLabels:G})]}),n("div",{className:"jk-row flex-1",style:{width:X},children:o({widthContainer:X,withLabels:G})}),t("div",{className:Ee("jk-row gap cr-tx-ht"),ref:L,children:[l({withLabels:G}),n(Y,{"data-tooltip-id":"jk-tooltip","data-tooltip-content":G?"":"settings","data-tooltip-place":"bottom-end",type:"secondary",onClick:()=>s(!0),icon:n(Ke,{size:"tiny"}),children:G&&n(W,{className:"tt-se tx-t",children:"settings"})}),null!==h&&n(Y,{"data-tooltip-id":"jk-tooltip","data-tooltip-content":G?"":h?"back":"expand","data-tooltip-place":"bottom-end",size:"small",type:"secondary",onClick:()=>p(e=>!e),icon:n(h?Me:Fe,{}),children:G&&n(W,{className:"tt-se",children:h?"back":"expand"})})]})]})}),Qt=({onChange:e,tabSize:i,fontSize:r,...s})=>n($,{className:"jk-pg",...s,children:t("div",{className:"jk-col stretch gap jk-pg-sm-tb",children:[n("h3",{children:n(W,{className:"tt-se",children:"code editor settings"})}),t("div",{className:"jk-row left gap",children:[t("label",{className:"tt-se",children:[n(W,{children:"choose your tab size"}),": "]}),n(ae,{options:J.map(e=>({value:e,label:e+""})),selectedOption:{value:i},onChange:({value:t})=>e?.({tabSize:t})})]}),t("div",{className:"jk-row left gap",children:[t("label",{className:"tt-se",children:[n(W,{children:"choose your font size"}),": "]}),n(ae,{options:q.map(e=>({value:e,label:e+""})),selectedOption:{value:r},onChange:({value:t})=>e?.({fontSize:t})})]})]})}),Yt=e=>{const{preferredTheme:i,language:r,readOnly:s,source:a,tabSize:o,fontSize:l,languages:c,onlyFirstPane:h,triggerFocus:p,setExpanded:u,getFiles:d,hasSource:f,currentFileName:m,leftButtons:g,centerButtons:x,rightButtons:y,onChangeRef:v,runner:b,expanded:w,expandPosition:k,withoutRunCodeButton:E,documentKey:S,editorStateCache:C}=e,[A,N]=_({id:"",running:!1}),P=T(e=>{v.current?.({...e,isRunning:!1}),N(e=>({...e,running:!1}))},[v]),{width:L=0,height:V=0,ref:R}=se(z),O=I(()=>({...b,id:A.id,isRunning:A.running}),[b,A]),[j,D]=_(!1),M=T(()=>d()[m],[d,m]),F=I(()=>({runner:O,currentFileName:m,language:r,hasSource:f,getFiles:d,getCurrentFile:M}),[O,m,r,f,d,M]),B=T(({withLabels:e})=>g?.({...F,withLabels:e}),[g,F]),U=T(({widthContainer:e,withLabels:t})=>x?.({...F,widthContainer:e,withLabels:t}),[x,F]),J=T(({withLabels:e})=>y?.({...F,withLabels:e}),[y,F]),q=T(e=>N({id:e,running:!1}),[]),G=T(()=>D(!1),[]);return t("div",{className:Ee("jk-col nowrap left stretch ht-100",{"wh-100":!!h}),children:[n(Qt,{isOpen:j,onClose:G,onChange:v.current,tabSize:o,fontSize:l}),n(Kt,{headerRef:R,headerWidthContainer:L,languages:c,setRunState:N,runner:O,leftOptions:B,centerOptions:U,rightOptions:J,setShowSettings:D,onRunStart:q,onChangeRef:v,expanded:k?w:null,setExpanded:u,readOnly:!!s,currentFileName:m,language:r,hasSource:f,getFiles:d,withoutRunCodeButton:E}),n("div",{className:"ow-ao",style:{height:`calc(100% - ${V}px)`},children:n(le,{theme:i,onChange:P,language:r,readOnly:s,source:a,tabSize:o,fontSize:l,triggerFocus:p,documentKey:S,stateCache:C})})]})},Zt=["md","markdown","mdown","mkdn","mkd","mdwn","mkdown","ron"].map(function(e){return"."+e});function ei(e,t){const i=(n=e,Boolean(n&&"object"==typeof n&&"message"in n&&"messages"in n)?e:new rt(e));var n;const{format:r,...s}=t||{};return{file:i,options:{format:"md"===r||"mdx"===r?r:i.extname&&(s.mdExtensions||Zt).includes(i.extname)?"md":"mdx",...s}}}class ti{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:e=>this.replacement=e}}replace(e,t,i,n){e&&t&&(null!=i?e[t][i]=n:e[t]=n)}remove(e,t,i){e&&t&&(null!=i?e[t].splice(i,1):delete e[t])}}class ii extends ti{constructor(e,t){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:e=>this.replacement=e},this.enter=e,this.leave=t}visit(e,t,i,n){if(e){if(this.enter){const r=this.should_skip,s=this.should_remove,a=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,e,t,i,n),this.replacement&&(e=this.replacement,this.replace(t,i,n,e)),this.should_remove&&this.remove(t,i,n);const o=this.should_skip,l=this.should_remove;if(this.should_skip=r,this.should_remove=s,this.replacement=a,o)return e;if(l)return null}let r;for(r in e){const t=e[r];if(t&&"object"==typeof t)if(Array.isArray(t)){const i=t;for(let t=0;t<i.length;t+=1){const n=i[t];ni(n)&&(this.visit(n,e,r,t)||t--)}}else ni(t)&&this.visit(t,e,r,null)}if(this.leave){const r=this.replacement,s=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,e,t,i,n),this.replacement&&(e=this.replacement,this.replace(t,i,n,e)),this.should_remove&&this.remove(t,i,n);const a=this.should_remove;if(this.replacement=r,this.should_remove=s,a)return null}}return e}}function ni(e){return null!==e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type}function ri(e,{enter:t,leave:i}){return new ii(t,i).visit(e,null)}const si=/@(jsx|jsxFrag|jsxImportSource|jsxRuntime)\s+(\S+)/g;function ai(e){let t;if(e.value)if("JSXExpressionContainer"===e.value.type){const i=e.value.expression;st("JSXEmptyExpression"!==i.type),t=i}else{const i=e.value;st("JSXElement"!==i.type&&"JSXFragment"!==i.type),t=i,delete t.raw}else t={type:"Literal",value:!0};const i={type:"Property",key:oi(e.name),value:t,kind:"init",method:!1,shorthand:!1,computed:!1};return ci(e,i),i}function oi(e){let t;if("JSXMemberExpression"===e.type){const i=oi(e.property);t={type:"MemberExpression",object:oi(e.object),property:i,computed:"Literal"===i.type,optional:!1}}else t="JSXNamespacedName"===e.type?{type:"Literal",value:e.namespace.name+":"+e.name.name}:St(e.name)?{type:"Identifier",name:e.name}:{type:"Literal",value:e.name};return ci(e,t),t}function li(e){const t=e.split(".");let i,n=-1;for(;++n<t.length;){const e=St(t[n])?{type:"Identifier",name:t[n]}:{type:"Literal",value:t[n]};i=i?{type:"MemberExpression",object:i,property:e,computed:Boolean(n&&"Literal"===e.type),optional:!1}:e}return i}function ci(e,t){const i=["start","end","loc","range","comments"];let n=-1;for(;++n<i.length;){const r=i[n];r in e&&(t[r]=e[r])}}function hi(e){return function(t,i){!function(e,t){const i=t||{};let n="automatic"===i.runtime;const r={},s={};ri(e,{enter(e){if("Program"===e.type){const t=e.comments||[];let i=-1;for(;++i<t.length;){si.lastIndex=0;let e=si.exec(t[i].value);for(;e;)r[e[1]]=e[2],e=si.exec(t[i].value)}if(r.jsxRuntime)if("automatic"===r.jsxRuntime){if(n=!0,r.jsx)throw new Error("Unexpected `@jsx` pragma w/ automatic runtime");if(r.jsxFrag)throw new Error("Unexpected `@jsxFrag` pragma w/ automatic runtime")}else{if("classic"!==r.jsxRuntime)throw new Error("Unexpected `jsxRuntime` `"+r.jsxRuntime+"`, expected `automatic` or `classic`");if(n=!1,r.jsxImportSource)throw new Error("Unexpected `@jsxImportSource` w/ classic runtime")}}},leave(e){if("Program"===e.type){const t=[];if(s.fragment&&t.push({type:"ImportSpecifier",imported:{type:"Identifier",name:"Fragment"},local:{type:"Identifier",name:"_Fragment"}}),s.jsx&&t.push({type:"ImportSpecifier",imported:{type:"Identifier",name:"jsx"},local:{type:"Identifier",name:"_jsx"}}),s.jsxs&&t.push({type:"ImportSpecifier",imported:{type:"Identifier",name:"jsxs"},local:{type:"Identifier",name:"_jsxs"}}),s.jsxDEV&&t.push({type:"ImportSpecifier",imported:{type:"Identifier",name:"jsxDEV"},local:{type:"Identifier",name:"_jsxDEV"}}),t.length>0){let n=0;for(;n<e.body.length;){const t=e.body[n];if(!("directive"in t)||!t.directive)break;n++}e.body.splice(n,0,{type:"ImportDeclaration",specifiers:t,source:{type:"Literal",value:(r.jsxImportSource||i.importSource||"react")+(i.development?"/jsx-dev-runtime":"/jsx-runtime")}})}}if("JSXElement"!==e.type&&"JSXFragment"!==e.type)return;const t=[];let a,o=-1;for(;++o<e.children.length;){const i=e.children[o];if("JSXExpressionContainer"===i.type)"JSXEmptyExpression"!==i.expression.type&&t.push(i.expression);else if("JSXText"===i.type){const e=i.value.replace(/\t/g," ").replace(/ *(\r?\n|\r) */g,"\n").replace(/\n+/g,"\n").replace(/\n+$/,"").replace(/^\n+/,"").replace(/\n/g," ");if(e){const n={type:"Literal",value:e};ci(i,n),t.push(n)}}else st("JSXElement"!==i.type&&"JSXFragment"!==i.type&&"JSXSpreadChild"!==i.type),t.push(i)}const l=[];let c,h,p=[];if("JSXElement"===e.type){if(a=oi(e.openingElement.name),"Identifier"===a.type&&/^[a-z]/.test(a.name)){const e={type:"Literal",value:a.name};ci(a,e),a=e}let t;const i=e.openingElement.attributes;let r=-1;for(;++r<i.length;){const e=i[r];if("JSXSpreadAttribute"===e.type)"ObjectExpression"===e.argument.type?l.push(...e.argument.properties):l.push({type:"SpreadElement",argument:e.argument}),t=!0;else{const i=ai(e);if(n&&"Identifier"===i.key.type&&"key"===i.key.name){if(t)throw new Error("Expected `key` to come before any spread expressions");const e=i.value;st("AssignmentPattern"!==e.type&&"ArrayPattern"!==e.type&&"ObjectPattern"!==e.type&&"RestElement"!==e.type),c=e}else l.push(i)}}}else n?(s.fragment=!0,a={type:"Identifier",name:"_Fragment"}):a=li(r.jsxFrag||i.pragmaFrag||"React.Fragment");if(n?t.length>0&&l.push({type:"Property",key:{type:"Identifier",name:"children"},value:t.length>1?{type:"ArrayExpression",elements:t}:t[0],kind:"init",method:!1,shorthand:!1,computed:!1}):p=t,n){p.push({type:"ObjectExpression",properties:l}),c?p.push(c):i.development&&p.push({type:"Identifier",name:"undefined"});const n=t.length>1;if(i.development){s.jsxDEV=!0,h={type:"Identifier",name:"_jsxDEV"},p.push({type:"Literal",value:n});const t={type:"ObjectExpression",properties:[{type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"fileName"},value:{type:"Literal",value:i.filePath||"<source.js>"}}]};e.loc&&t.properties.push({type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"lineNumber"},value:{type:"Literal",value:e.loc.start.line}},{type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"columnNumber"},value:{type:"Literal",value:e.loc.start.column+1}}),p.push(t,{type:"ThisExpression"})}else n?(s.jsxs=!0,h={type:"Identifier",name:"_jsxs"}):(s.jsx=!0,h={type:"Identifier",name:"_jsx"})}else l.length>0?p.unshift({type:"ObjectExpression",properties:l}):p.length>0&&p.unshift({type:"Literal",value:null}),h=li(r.jsx||i.pragma||"React.createElement");p.unshift(a);const u={type:"CallExpression",callee:h,arguments:p,optional:!1};ci(e,u),this.replace(u)}})}(t,{filePath:i.history[0],...e})}}var pi,ui,di={exports:{}};var fi,mi,gi={exports:{}};function xi(){return fi||(fi=1,function(e){var t=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],i=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],n="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",r="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",s={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},a="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",o={5:a,"5module":a+" export import",6:a+" const class extends export import super"},l=/^in(stanceof)?$/,c=new RegExp("["+r+"]"),h=new RegExp("["+r+n+"]");function p(e,t){for(var i=65536,n=0;n<t.length;n+=2){if((i+=t[n])>e)return!1;if((i+=t[n+1])>=e)return!0}return!1}function u(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&c.test(String.fromCharCode(e)):!1!==t&&p(e,i)))}function d(e,n){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&h.test(String.fromCharCode(e)):!1!==n&&(p(e,i)||p(e,t)))))}var f=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function m(e,t){return new f(e,{beforeExpr:!0,binop:t})}var g={beforeExpr:!0},x={startsExpr:!0},y={};function v(e,t){return void 0===t&&(t={}),t.keyword=e,y[e]=new f(e,t)}var b={num:new f("num",x),regexp:new f("regexp",x),string:new f("string",x),name:new f("name",x),privateId:new f("privateId",x),eof:new f("eof"),bracketL:new f("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new f("]"),braceL:new f("{",{beforeExpr:!0,startsExpr:!0}),braceR:new f("}"),parenL:new f("(",{beforeExpr:!0,startsExpr:!0}),parenR:new f(")"),comma:new f(",",g),semi:new f(";",g),colon:new f(":",g),dot:new f("."),question:new f("?",g),questionDot:new f("?."),arrow:new f("=>",g),template:new f("template"),invalidTemplate:new f("invalidTemplate"),ellipsis:new f("...",g),backQuote:new f("`",x),dollarBraceL:new f("${",{beforeExpr:!0,startsExpr:!0}),eq:new f("=",{beforeExpr:!0,isAssign:!0}),assign:new f("_=",{beforeExpr:!0,isAssign:!0}),incDec:new f("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new f("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:m("||",1),logicalAND:m("&&",2),bitwiseOR:m("|",3),bitwiseXOR:m("^",4),bitwiseAND:m("&",5),equality:m("==/!=/===/!==",6),relational:m("</>/<=/>=",7),bitShift:m("<</>>/>>>",8),plusMin:new f("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:m("%",10),star:m("*",10),slash:m("/",10),starstar:new f("**",{beforeExpr:!0}),coalesce:m("??",1),_break:v("break"),_case:v("case",g),_catch:v("catch"),_continue:v("continue"),_debugger:v("debugger"),_default:v("default",g),_do:v("do",{isLoop:!0,beforeExpr:!0}),_else:v("else",g),_finally:v("finally"),_for:v("for",{isLoop:!0}),_function:v("function",x),_if:v("if"),_return:v("return",g),_switch:v("switch"),_throw:v("throw",g),_try:v("try"),_var:v("var"),_const:v("const"),_while:v("while",{isLoop:!0}),_with:v("with"),_new:v("new",{beforeExpr:!0,startsExpr:!0}),_this:v("this",x),_super:v("super",x),_class:v("class",x),_extends:v("extends",g),_export:v("export"),_import:v("import",x),_null:v("null",x),_true:v("true",x),_false:v("false",x),_in:v("in",{beforeExpr:!0,binop:7}),_instanceof:v("instanceof",{beforeExpr:!0,binop:7}),_typeof:v("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:v("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:v("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},w=/\r\n?|\n|\u2028|\u2029/,k=new RegExp(w.source,"g");function E(e){return 10===e||13===e||8232===e||8233===e}function S(e,t,i){void 0===i&&(i=e.length);for(var n=t;n<i;n++){var r=e.charCodeAt(n);if(E(r))return n<i-1&&13===r&&10===e.charCodeAt(n+1)?n+2:n+1}return-1}var C=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,A=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,_=Object.prototype,I=_.hasOwnProperty,N=_.toString,T=Object.hasOwn||function(e,t){return I.call(e,t)},P=Array.isArray||function(e){return"[object Array]"===N.call(e)},L=Object.create(null);function V(e){return L[e]||(L[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function R(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}var O=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,j=function(e,t){this.line=e,this.column=t};j.prototype.offset=function(e){return new j(this.line,this.column+e)};var D=function(e,t,i){this.start=t,this.end=i,null!==e.sourceFile&&(this.source=e.sourceFile)};function M(e,t){for(var i=1,n=0;;){var r=S(e,n,t);if(r<0)return new j(i,t-n);++i,n=r}}var F={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},B=!1;function U(e){var t={};for(var i in F)t[i]=e&&T(e,i)?e[i]:F[i];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!B&&"object"==typeof console&&console.warn&&(B=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),e&&null!=e.allowHashBang||(t.allowHashBang=t.ecmaVersion>=14),P(t.onToken)){var n=t.onToken;t.onToken=function(e){return n.push(e)}}if(P(t.onComment)&&(t.onComment=z(t,t.onComment)),"commonjs"===t.sourceType&&t.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return t}function z(e,t){return function(i,n,r,s,a,o){var l={type:i?"Block":"Line",value:n,start:r,end:s};e.locations&&(l.loc=new D(this,a,o)),e.ranges&&(l.range=[r,s]),t.push(l)}}var J=1,q=2,G=4,X=8,H=16,W=32,$=64,K=128,Q=256,Y=512,Z=1024,ee=J|q|Q;function te(e,t){return q|(e?G:0)|(t?X:0)}var ie=0,ne=1,re=2,se=3,ae=4,oe=5,le=function(e,t,i){this.options=e=U(e),this.sourceFile=e.sourceFile,this.keywords=V(o[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var n="";!0!==e.allowReserved&&(n=s[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(n+=" await")),this.reservedWords=V(n);var r=(n?n+" ":"")+s.strict;this.reservedWordsStrict=V(r),this.reservedWordsStrictBind=V(r+" "+s.strictBind),this.input=String(t),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf("\n",i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(w).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=b.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope("commonjs"===this.options.sourceType?q:J),this.regexpState=null,this.privateNameStack=[]},ce={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};le.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},ce.inFunction.get=function(){return(this.currentVarScope().flags&q)>0},ce.inGenerator.get=function(){return(this.currentVarScope().flags&X)>0},ce.inAsync.get=function(){return(this.currentVarScope().flags&G)>0},ce.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(t&(Q|Y))return!1;if(t&q)return(t&G)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},ce.allowReturn.get=function(){return!!this.inFunction||!!(this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&J)},ce.allowSuper.get=function(){return(this.currentThisScope().flags&$)>0||this.options.allowSuperOutsideMethod},ce.allowDirectSuper.get=function(){return(this.currentThisScope().flags&K)>0},ce.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},ce.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(t&(Q|Y)||t&q&&!(t&H))return!0}return!1},ce.allowUsing.get=function(){var e=this.currentScope().flags;return!(e&Z||!this.inModule&&e&J)},ce.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Q)>0},le.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var i=this,n=0;n<e.length;n++)i=e[n](i);return i},le.parse=function(e,t){return new this(t,e).parse()},le.parseExpressionAt=function(e,t,i){var n=new this(i,e,t);return n.nextToken(),n.parseExpression()},le.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(le.prototype,ce);var he=le.prototype,pe=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;he.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){A.lastIndex=e,e+=A.exec(this.input)[0].length;var t=pe.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){A.lastIndex=e+t[0].length;var i=A.exec(this.input),n=i.index+i[0].length,r=this.input.charAt(n);return";"===r||"}"===r||w.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||"!"===r&&"="===this.input.charAt(n+1))}e+=t[0].length,A.lastIndex=e,e+=A.exec(this.input)[0].length,";"===this.input[e]&&e++}},he.eat=function(e){return this.type===e&&(this.next(),!0)},he.isContextual=function(e){return this.type===b.name&&this.value===e&&!this.containsEsc},he.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},he.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},he.canInsertSemicolon=function(){return this.type===b.eof||this.type===b.braceR||w.test(this.input.slice(this.lastTokEnd,this.start))},he.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},he.semicolon=function(){this.eat(b.semi)||this.insertSemicolon()||this.unexpected()},he.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},he.expect=function(e){this.eat(e)||this.unexpected()},he.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var ue=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};he.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var i=t?e.parenthesizedAssign:e.parenthesizedBind;i>-1&&this.raiseRecoverable(i,t?"Assigning to rvalue":"Parenthesized pattern")}},he.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,n=e.doubleProto;if(!t)return i>=0||n>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")},he.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},he.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var de=le.prototype;de.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==b.eof;){var i=this.parseStatement(null,!0,t);e.body.push(i)}if(this.inModule)for(var n=0,r=Object.keys(this.undefinedExports);n<r.length;n+=1){var s=r[n];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType="commonjs"===this.options.sourceType?"script":this.options.sourceType,this.finishNode(e,"Program")};var fe={kind:"loop"},me={kind:"switch"};de.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;A.lastIndex=this.pos;var t=A.exec(this.input),i=this.pos+t[0].length,n=this.fullCharCodeAt(i);if(91===n||92===n)return!0;if(e)return!1;if(123===n)return!0;if(u(n)){var r=i;do{i+=n<=65535?1:2}while(d(n=this.fullCharCodeAt(i)));if(92===n)return!0;var s=this.input.slice(r,i);if(!l.test(s))return!0}return!1},de.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;A.lastIndex=this.pos;var e,t=A.exec(this.input),i=this.pos+t[0].length;return!(w.test(this.input.slice(this.pos,i))||"function"!==this.input.slice(i,i+8)||i+8!==this.input.length&&(d(e=this.fullCharCodeAt(i+8))||92===e))},de.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;A.lastIndex=this.pos;var i=A.exec(this.input),n=this.pos+i[0].length;if(w.test(this.input.slice(this.pos,n)))return!1;if(e){var r,s=n+5;if("using"!==this.input.slice(n,s)||s===this.input.length||d(r=this.fullCharCodeAt(s))||92===r)return!1;A.lastIndex=s;var a=A.exec(this.input);if(n=s+a[0].length,a&&w.test(this.input.slice(s,n)))return!1}var o=this.fullCharCodeAt(n);if(!u(o)&&92!==o)return!1;var c=n;do{n+=o<=65535?1:2}while(d(o=this.fullCharCodeAt(n)));if(92===o)return!0;var h=this.input.slice(c,n);return!(l.test(h)||t&&"of"===h)},de.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)},de.isUsing=function(e){return this.isUsingKeyword(!1,e)},de.parseStatement=function(e,t,i){var n,r=this.type,s=this.startNode();switch(this.isLet(e)&&(r=b._var,n="let"),r){case b._break:case b._continue:return this.parseBreakContinueStatement(s,r.keyword);case b._debugger:return this.parseDebuggerStatement(s);case b._do:return this.parseDoStatement(s);case b._for:return this.parseForStatement(s);case b._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case b._class:return e&&this.unexpected(),this.parseClass(s,!0);case b._if:return this.parseIfStatement(s);case b._return:return this.parseReturnStatement(s);case b._switch:return this.parseSwitchStatement(s);case b._throw:return this.parseThrowStatement(s);case b._try:return this.parseTryStatement(s);case b._const:case b._var:return n=n||this.value,e&&"var"!==n&&this.unexpected(),this.parseVarStatement(s,n);case b._while:return this.parseWhileStatement(s);case b._with:return this.parseWithStatement(s);case b.braceL:return this.parseBlock(!0,s);case b.semi:return this.parseEmptyStatement(s);case b._export:case b._import:if(this.options.ecmaVersion>10&&r===b._import){A.lastIndex=this.pos;var a=A.exec(this.input),o=this.pos+a[0].length,l=this.input.charCodeAt(o);if(40===l||46===l)return this.parseExpressionStatement(s,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===b._import?this.parseImport(s):this.parseExport(s,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var c=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(c)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),"await using"===c&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(s,!1,c),this.semicolon(),this.finishNode(s,"VariableDeclaration");var h=this.value,p=this.parseExpression();return r===b.name&&"Identifier"===p.type&&this.eat(b.colon)?this.parseLabeledStatement(s,h,p,e):this.parseExpressionStatement(s,p)}},de.parseBreakContinueStatement=function(e,t){var i="break"===t;this.next(),this.eat(b.semi)||this.insertSemicolon()?e.label=null:this.type!==b.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var n=0;n<this.labels.length;++n){var r=this.labels[n];if(null==e.label||r.name===e.label.name){if(null!=r.kind&&(i||"loop"===r.kind))break;if(e.label&&i)break}}return n===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,i?"BreakStatement":"ContinueStatement")},de.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},de.parseDoStatement=function(e){return this.next(),this.labels.push(fe),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(b._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(b.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},de.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(fe),this.enterScope(0),this.expect(b.parenL),this.type===b.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===b._var||this.type===b._const||i){var n=this.startNode(),r=i?"let":this.value;return this.next(),this.parseVar(n,!0,r),this.finishNode(n,"VariableDeclaration"),this.parseForAfterInit(e,n,t)}var s=this.isContextual("let"),a=!1,o=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(o){var l=this.startNode();return this.next(),"await using"===o&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(l,!0,o),this.finishNode(l,"VariableDeclaration"),this.parseForAfterInit(e,l,t)}var c=this.containsEsc,h=new ue,p=this.start,u=t>-1?this.parseExprSubscripts(h,"await"):this.parseExpression(!0,h);return this.type===b._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===b._in&&this.unexpected(t),e.await=!0):a&&this.options.ecmaVersion>=8&&(u.start!==p||c||"Identifier"!==u.type||"async"!==u.name?this.options.ecmaVersion>=9&&(e.await=!1):this.unexpected()),s&&a&&this.raise(u.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(u,!1,h),this.checkLValPattern(u),this.parseForIn(e,u)):(this.checkExpressionErrors(h,!0),t>-1&&this.unexpected(t),this.parseFor(e,u))},de.parseForAfterInit=function(e,t,i){return(this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===t.declarations.length?(this.options.ecmaVersion>=9&&(this.type===b._in?i>-1&&this.unexpected(i):e.await=i>-1),this.parseForIn(e,t)):(i>-1&&this.unexpected(i),this.parseFor(e,t))},de.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,xe|(i?0:ye),!1,t)},de.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(b._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},de.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(b.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},de.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(b.braceL),this.labels.push(me),this.enterScope(Z);for(var i=!1;this.type!==b.braceR;)if(this.type===b._case||this.type===b._default){var n=this.type===b._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),n?t.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,t.test=null),this.expect(b.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},de.parseThrowStatement=function(e){return this.next(),w.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var ge=[];de.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?W:0),this.checkLValPattern(e,t?ae:re),this.expect(b.parenR),e},de.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===b._catch){var t=this.startNode();this.next(),this.eat(b.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(b._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},de.parseVarStatement=function(e,t,i){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")},de.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(fe),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},de.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},de.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},de.parseLabeledStatement=function(e,t,i,n){for(var r=0,s=this.labels;r<s.length;r+=1)s[r].name===t&&this.raise(i.start,"Label '"+t+"' is already declared");for(var a=this.type.isLoop?"loop":this.type===b._switch?"switch":null,o=this.labels.length-1;o>=0;o--){var l=this.labels[o];if(l.statementStart!==e.start)break;l.statementStart=this.start,l.kind=a}return this.labels.push({name:t,kind:a,statementStart:this.start}),e.body=this.parseStatement(n?-1===n.indexOf("label")?n+"label":n:"label"),this.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")},de.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},de.parseBlock=function(e,t,i){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(b.braceL),e&&this.enterScope(0);this.type!==b.braceR;){var n=this.parseStatement(null);t.body.push(n)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},de.parseFor=function(e,t){return e.init=t,this.expect(b.semi),e.test=this.type===b.semi?null:this.parseExpression(),this.expect(b.semi),e.update=this.type===b.parenR?null:this.parseExpression(),this.expect(b.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},de.parseForIn=function(e,t){var i=this.type===b._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!i||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(b.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")},de.parseVar=function(e,t,i,n){for(e.declarations=[],e.kind=i;;){var r=this.startNode();if(this.parseVarId(r,i),this.eat(b.eq)?r.init=this.parseMaybeAssign(t):n||"const"!==i||this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual("of")?n||"using"!==i&&"await using"!==i||!(this.options.ecmaVersion>=17)||this.type===b._in||this.isContextual("of")?n||"Identifier"===r.id.type||t&&(this.type===b._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.raise(this.lastTokEnd,"Missing initializer in "+i+" declaration"):this.unexpected(),e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(b.comma))break}return e},de.parseVarId=function(e,t){e.id="using"===t||"await using"===t?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?ne:re,!1)};var xe=1,ye=2,ve=4;function be(e,t){var i=t.key.name,n=e[i],r="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(r=(t.static?"s":"i")+t.kind),"iget"===n&&"iset"===r||"iset"===n&&"iget"===r||"sget"===n&&"sset"===r||"sset"===n&&"sget"===r?(e[i]="true",!1):!!n||(e[i]=r,!1)}function we(e,t){var i=e.computed,n=e.key;return!i&&("Identifier"===n.type&&n.name===t||"Literal"===n.type&&n.value===t)}de.parseFunction=function(e,t,i,n,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===b.star&&t&ye&&this.unexpected(),e.generator=this.eat(b.star)),this.options.ecmaVersion>=8&&(e.async=!!n),t&xe&&(e.id=t&ve&&this.type!==b.name?null:this.parseIdent(),!e.id||t&ye||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?ne:re:se));var s=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(te(e.async,e.generator)),t&xe||(e.id=this.type===b.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,r),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&xe?"FunctionDeclaration":"FunctionExpression")},de.parseFunctionParams=function(e){this.expect(b.parenL),e.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},de.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var n=this.enterClassBody(),r=this.startNode(),s=!1;for(r.body=[],this.expect(b.braceL);this.type!==b.braceR;){var a=this.parseClassElement(null!==e.superClass);a&&(r.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(s&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),s=!0):a.key&&"PrivateIdentifier"===a.key.type&&be(n,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=i,this.next(),e.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},de.parseClassElement=function(e){if(this.eat(b.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),n="",r=!1,s=!1,a="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(b.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===b.star?o=!0:n="static"}if(i.static=o,!n&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==b.star||this.canInsertSemicolon()?n="async":s=!0),!n&&(t>=9||!s)&&this.eat(b.star)&&(r=!0),!n&&!s&&!r){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=l:n=l)}if(n?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=n,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===b.parenL||"method"!==a||r||s){var c=!i.static&&we(i,"constructor"),h=c&&e;c&&"method"!==a&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=c?"constructor":a,this.parseClassMethod(i,r,s,h)}else this.parseClassField(i);return i},de.isClassElementNameStart=function(){return this.type===b.name||this.type===b.privateId||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword},de.parseClassElementName=function(e){this.type===b.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},de.parseClassMethod=function(e,t,i,n){var r=e.key;"constructor"===e.kind?(t&&this.raise(r.start,"Constructor can't be a generator"),i&&this.raise(r.start,"Constructor can't be an async method")):e.static&&we(e,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var s=e.value=this.parseMethod(t,i,n);return"get"===e.kind&&0!==s.params.length&&this.raiseRecoverable(s.start,"getter should have no params"),"set"===e.kind&&1!==s.params.length&&this.raiseRecoverable(s.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===s.params[0].type&&this.raiseRecoverable(s.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},de.parseClassField=function(e){return we(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&we(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(b.eq)?(this.enterScope(Y|$),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")},de.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Q|$);this.type!==b.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},de.parseClassId=function(e,t){this.type===b.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,re,!1)):(!0===t&&this.unexpected(),e.id=null)},de.parseClassSuper=function(e){e.superClass=this.eat(b._extends)?this.parseExprSubscripts(null,!1):null},de.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},de.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,i=e.used;if(this.options.checkPrivateFields)for(var n=this.privateNameStack.length,r=0===n?null:this.privateNameStack[n-1],s=0;s<i.length;++s){var a=i[s];T(t,a.name)||(r?r.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}},de.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==b.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},de.parseExport=function(e,t){if(this.next(),this.eat(b.star))return this.parseExportAllDeclaration(e,t);if(this.eat(b._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==b.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var i=0,n=e.specifiers;i<n.length;i+=1){var r=n[i];this.checkUnreserved(r.local),this.checkLocalExport(r.local),"Literal"===r.local.type&&this.raise(r.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},de.parseExportDeclaration=function(e){return this.parseStatement(null)},de.parseExportDefaultDeclaration=function(){var e;if(this.type===b._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,xe|ve,!1,e)}if(this.type===b._class){var i=this.startNode();return this.parseClass(i,"nullableID")}var n=this.parseMaybeAssign();return this.semicolon(),n},de.checkExport=function(e,t,i){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),T(e,t)&&this.raiseRecoverable(i,"Duplicate export '"+t+"'"),e[t]=!0)},de.checkPatternExport=function(e,t){var i=t.type;if("Identifier"===i)this.checkExport(e,t,t.start);else if("ObjectPattern"===i)for(var n=0,r=t.properties;n<r.length;n+=1){var s=r[n];this.checkPatternExport(e,s)}else if("ArrayPattern"===i)for(var a=0,o=t.elements;a<o.length;a+=1){var l=o[a];l&&this.checkPatternExport(e,l)}else"Property"===i?this.checkPatternExport(e,t.value):"AssignmentPattern"===i?this.checkPatternExport(e,t.left):"RestElement"===i&&this.checkPatternExport(e,t.argument)},de.checkVariableExport=function(e,t){if(e)for(var i=0,n=t;i<n.length;i+=1){var r=n[i];this.checkPatternExport(e,r.id)}},de.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},de.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")},de.parseExportSpecifiers=function(e){var t=[],i=!0;for(this.expect(b.braceL);!this.eat(b.braceR);){if(i)i=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;t.push(this.parseExportSpecifier(e))}return t},de.parseImport=function(e){return this.next(),this.type===b.string?(e.specifiers=ge,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===b.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},de.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,re),this.finishNode(e,"ImportSpecifier")},de.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,re),this.finishNode(e,"ImportDefaultSpecifier")},de.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,re),this.finishNode(e,"ImportNamespaceSpecifier")},de.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===b.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(b.comma)))return e;if(this.type===b.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(b.braceL);!this.eat(b.braceR);){if(t)t=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;e.push(this.parseImportSpecifier())}return e},de.parseWithClause=function(){var e=[];if(!this.eat(b._with))return e;this.expect(b.braceL);for(var t={},i=!0;!this.eat(b.braceR);){if(i)i=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;var n=this.parseImportAttribute(),r="Identifier"===n.key.type?n.key.name:n.key.value;T(t,r)&&this.raiseRecoverable(n.key.start,"Duplicate attribute key '"+r+"'"),t[r]=!0,e.push(n)}return e},de.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===b.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(b.colon),this.type!==b.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")},de.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===b.string){var e=this.parseLiteral(this.value);return O.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},de.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},de.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var ke=le.prototype;ke.toAssignable=function(e,t,i){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var n=0,r=e.properties;n<r.length;n+=1){var s=r[n];this.toAssignable(s,t),"RestElement"!==s.type||"ArrayPattern"!==s.argument.type&&"ObjectPattern"!==s.argument.type||this.raise(s.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",i&&this.checkPatternErrors(i,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,i);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else i&&this.checkPatternErrors(i,!0);return e},ke.toAssignableList=function(e,t){for(var i=e.length,n=0;n<i;n++){var r=e[n];r&&this.toAssignable(r,t)}if(i){var s=e[i-1];6===this.options.ecmaVersion&&t&&s&&"RestElement"===s.type&&"Identifier"!==s.argument.type&&this.unexpected(s.argument.start)}return e},ke.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},ke.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==b.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},ke.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case b.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(b.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case b.braceL:return this.parseObj(!0)}return this.parseIdent()},ke.parseBindingList=function(e,t,i,n){for(var r=[],s=!0;!this.eat(e);)if(s?s=!1:this.expect(b.comma),t&&this.type===b.comma)r.push(null);else{if(i&&this.afterTrailingComma(e))break;if(this.type===b.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),r.push(a),this.type===b.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}r.push(this.parseAssignableListItem(n))}return r},ke.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},ke.parseBindingListItem=function(e){return e},ke.parseMaybeDefault=function(e,t,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(b.eq))return i;var n=this.startNodeAt(e,t);return n.left=i,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")},ke.checkLValSimple=function(e,t,i){void 0===t&&(t=ie);var n=t!==ie;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(n?"Binding ":"Assigning to ")+e.name+" in strict mode"),n&&(t===re&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),i&&(T(i,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),i[e.name]=!0),t!==oe&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":n&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return n&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,i);default:this.raise(e.start,(n?"Binding":"Assigning to")+" rvalue")}},ke.checkLValPattern=function(e,t,i){switch(void 0===t&&(t=ie),e.type){case"ObjectPattern":for(var n=0,r=e.properties;n<r.length;n+=1){var s=r[n];this.checkLValInnerPattern(s,t,i)}break;case"ArrayPattern":for(var a=0,o=e.elements;a<o.length;a+=1){var l=o[a];l&&this.checkLValInnerPattern(l,t,i)}break;default:this.checkLValSimple(e,t,i)}},ke.checkLValInnerPattern=function(e,t,i){switch(void 0===t&&(t=ie),e.type){case"Property":this.checkLValInnerPattern(e.value,t,i);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,i);break;case"RestElement":this.checkLValPattern(e.argument,t,i);break;default:this.checkLValPattern(e,t,i)}};var Ee=function(e,t,i,n,r){this.token=e,this.isExpr=!!t,this.preserveSpace=!!i,this.override=n,this.generator=!!r},Se={b_stat:new Ee("{",!1),b_expr:new Ee("{",!0),b_tmpl:new Ee("${",!1),p_stat:new Ee("(",!1),p_expr:new Ee("(",!0),q_tmpl:new Ee("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Ee("function",!1),f_expr:new Ee("function",!0),f_expr_gen:new Ee("function",!0,!1,null,!0),f_gen:new Ee("function",!1,!1,null,!0)},Ce=le.prototype;Ce.initialContext=function(){return[Se.b_stat]},Ce.curContext=function(){return this.context[this.context.length-1]},Ce.braceIsBlock=function(e){var t=this.curContext();return t===Se.f_expr||t===Se.f_stat||(e!==b.colon||t!==Se.b_stat&&t!==Se.b_expr?e===b._return||e===b.name&&this.exprAllowed?w.test(this.input.slice(this.lastTokEnd,this.start)):e===b._else||e===b.semi||e===b.eof||e===b.parenR||e===b.arrow||(e===b.braceL?t===Se.b_stat:e!==b._var&&e!==b._const&&e!==b.name&&!this.exprAllowed):!t.isExpr)},Ce.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},Ce.updateContext=function(e){var t,i=this.type;i.keyword&&e===b.dot?this.exprAllowed=!1:(t=i.updateContext)?t.call(this,e):this.exprAllowed=i.beforeExpr},Ce.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},b.parenR.updateContext=b.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===Se.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},b.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?Se.b_stat:Se.b_expr),this.exprAllowed=!0},b.dollarBraceL.updateContext=function(){this.context.push(Se.b_tmpl),this.exprAllowed=!0},b.parenL.updateContext=function(e){var t=e===b._if||e===b._for||e===b._with||e===b._while;this.context.push(t?Se.p_stat:Se.p_expr),this.exprAllowed=!0},b.incDec.updateContext=function(){},b._function.updateContext=b._class.updateContext=function(e){!e.beforeExpr||e===b._else||e===b.semi&&this.curContext()!==Se.p_stat||e===b._return&&w.test(this.input.slice(this.lastTokEnd,this.start))||(e===b.colon||e===b.braceL)&&this.curContext()===Se.b_stat?this.context.push(Se.f_stat):this.context.push(Se.f_expr),this.exprAllowed=!1},b.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},b.backQuote.updateContext=function(){this.curContext()===Se.q_tmpl?this.context.pop():this.context.push(Se.q_tmpl),this.exprAllowed=!1},b.star.updateContext=function(e){if(e===b._function){var t=this.context.length-1;this.context[t]===Se.f_expr?this.context[t]=Se.f_expr_gen:this.context[t]=Se.f_gen}this.exprAllowed=!0},b.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==b.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var Ae=le.prototype;function _e(e){return"Identifier"===e.type||"ParenthesizedExpression"===e.type&&_e(e.expression)}function Ie(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&Ie(e.expression)||"ParenthesizedExpression"===e.type&&Ie(e.expression)}Ae.checkPropClash=function(e,t,i){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var n,r=e.key;switch(r.type){case"Identifier":n=r.name;break;case"Literal":n=String(r.value);break;default:return}var s=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===n&&"init"===s&&(t.proto&&(i?i.doubleProto<0&&(i.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),t.proto=!0);else{var a=t[n="$"+n];a?("init"===s?this.strict&&a.init||a.get||a.set:a.init||a[s])&&this.raiseRecoverable(r.start,"Redefinition of property"):a=t[n]={init:!1,get:!1,set:!1},a[s]=!0}}},Ae.parseExpression=function(e,t){var i=this.start,n=this.startLoc,r=this.parseMaybeAssign(e,t);if(this.type===b.comma){var s=this.startNodeAt(i,n);for(s.expressions=[r];this.eat(b.comma);)s.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(s,"SequenceExpression")}return r},Ae.parseMaybeAssign=function(e,t,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var n=!1,r=-1,s=-1,a=-1;t?(r=t.parenthesizedAssign,s=t.trailingComma,a=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new ue,n=!0);var o=this.start,l=this.startLoc;this.type!==b.parenL&&this.type!==b.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var c=this.parseMaybeConditional(e,t);if(i&&(c=i.call(this,c,o,l)),this.type.isAssign){var h=this.startNodeAt(o,l);return h.operator=this.value,this.type===b.eq&&(c=this.toAssignable(c,!1,t)),n||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===b.eq?this.checkLValPattern(c):this.checkLValSimple(c),h.left=c,this.next(),h.right=this.parseMaybeAssign(e),a>-1&&(t.doubleProto=a),this.finishNode(h,"AssignmentExpression")}return n&&this.checkExpressionErrors(t,!0),r>-1&&(t.parenthesizedAssign=r),s>-1&&(t.trailingComma=s),c},Ae.parseMaybeConditional=function(e,t){var i=this.start,n=this.startLoc,r=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return r;if(this.eat(b.question)){var s=this.startNodeAt(i,n);return s.test=r,s.consequent=this.parseMaybeAssign(),this.expect(b.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return r},Ae.parseExprOps=function(e,t){var i=this.start,n=this.startLoc,r=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||r.start===i&&"ArrowFunctionExpression"===r.type?r:this.parseExprOp(r,i,n,-1,e)},Ae.parseExprOp=function(e,t,i,n,r){var s=this.type.binop;if(null!=s&&(!r||this.type!==b._in)&&s>n){var a=this.type===b.logicalOR||this.type===b.logicalAND,o=this.type===b.coalesce;o&&(s=b.logicalAND.binop);var l=this.value;this.next();var c=this.start,h=this.startLoc,p=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,r),c,h,s,r),u=this.buildBinary(t,i,e,p,l,a||o);return(a&&this.type===b.coalesce||o&&(this.type===b.logicalOR||this.type===b.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(u,t,i,n,r)}return e},Ae.buildBinary=function(e,t,i,n,r,s){"PrivateIdentifier"===n.type&&this.raise(n.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(e,t);return a.left=i,a.operator=r,a.right=n,this.finishNode(a,s?"LogicalExpression":"BinaryExpression")},Ae.parseMaybeUnary=function(e,t,i,n){var r,s=this.start,a=this.startLoc;if(this.isContextual("await")&&this.canAwait)r=this.parseAwait(n),t=!0;else if(this.type.prefix){var o=this.startNode(),l=this.type===b.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,l,n),this.checkExpressionErrors(e,!0),l?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&_e(o.argument)?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&Ie(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):t=!0,r=this.finishNode(o,l?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==b.privateId){if(r=this.parseExprSubscripts(e,n),this.checkExpressionErrors(e))return r;for(;this.type.postfix&&!this.canInsertSemicolon();){var c=this.startNodeAt(s,a);c.operator=this.value,c.prefix=!1,c.argument=r,this.checkLValSimple(r),this.next(),r=this.finishNode(c,"UpdateExpression")}}else(n||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),r=this.parsePrivateIdent(),this.type!==b._in&&this.unexpected();return i||!this.eat(b.starstar)?r:t?void this.unexpected(this.lastTokStart):this.buildBinary(s,a,r,this.parseMaybeUnary(null,!1,!1,n),"**",!1)},Ae.parseExprSubscripts=function(e,t){var i=this.start,n=this.startLoc,r=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return r;var s=this.parseSubscripts(r,i,n,!1,t);return e&&"MemberExpression"===s.type&&(e.parenthesizedAssign>=s.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=s.start&&(e.parenthesizedBind=-1),e.trailingComma>=s.start&&(e.trailingComma=-1)),s},Ae.parseSubscripts=function(e,t,i,n,r){for(var s=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,a=!1;;){var o=this.parseSubscript(e,t,i,n,s,a,r);if(o.optional&&(a=!0),o===e||"ArrowFunctionExpression"===o.type){if(a){var l=this.startNodeAt(t,i);l.expression=o,o=this.finishNode(l,"ChainExpression")}return o}e=o}},Ae.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(b.arrow)},Ae.parseSubscriptAsyncArrow=function(e,t,i,n){return this.parseArrowExpression(this.startNodeAt(e,t),i,!0,n)},Ae.parseSubscript=function(e,t,i,n,r,s,a){var o=this.options.ecmaVersion>=11,l=o&&this.eat(b.questionDot);n&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(b.bracketL);if(c||l&&this.type!==b.parenL&&this.type!==b.backQuote||this.eat(b.dot)){var h=this.startNodeAt(t,i);h.object=e,c?(h.property=this.parseExpression(),this.expect(b.bracketR)):this.type===b.privateId&&"Super"!==e.type?h.property=this.parsePrivateIdent():h.property=this.parseIdent("never"!==this.options.allowReserved),h.computed=!!c,o&&(h.optional=l),e=this.finishNode(h,"MemberExpression")}else if(!n&&this.eat(b.parenL)){var p=new ue,u=this.yieldPos,d=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1,p);if(r&&!l&&this.shouldParseAsyncArrow())return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=u,this.awaitPos=d,this.awaitIdentPos=f,this.parseSubscriptAsyncArrow(t,i,m,a);this.checkExpressionErrors(p,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=d||this.awaitPos,this.awaitIdentPos=f||this.awaitIdentPos;var g=this.startNodeAt(t,i);g.callee=e,g.arguments=m,o&&(g.optional=l),e=this.finishNode(g,"CallExpression")}else if(this.type===b.backQuote){(l||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var x=this.startNodeAt(t,i);x.tag=e,x.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(x,"TaggedTemplateExpression")}return e},Ae.parseExprAtom=function(e,t,i){this.type===b.slash&&this.readRegexp();var n,r=this.potentialArrowAt===this.start;switch(this.type){case b._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),n=this.startNode(),this.next(),this.type!==b.parenL||this.allowDirectSuper||this.raise(n.start,"super() call outside constructor of a subclass"),this.type!==b.dot&&this.type!==b.bracketL&&this.type!==b.parenL&&this.unexpected(),this.finishNode(n,"Super");case b._this:return n=this.startNode(),this.next(),this.finishNode(n,"ThisExpression");case b.name:var s=this.start,a=this.startLoc,o=this.containsEsc,l=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&"async"===l.name&&!this.canInsertSemicolon()&&this.eat(b._function))return this.overrideContext(Se.f_expr),this.parseFunction(this.startNodeAt(s,a),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(b.arrow))return this.parseArrowExpression(this.startNodeAt(s,a),[l],!1,t);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===b.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(b.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,a),[l],!0,t)}return l;case b.regexp:var c=this.value;return(n=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},n;case b.num:case b.string:return this.parseLiteral(this.value);case b._null:case b._true:case b._false:return(n=this.startNode()).value=this.type===b._null?null:this.type===b._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,"Literal");case b.parenL:var h=this.start,p=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(p)&&(e.parenthesizedAssign=h),e.parenthesizedBind<0&&(e.parenthesizedBind=h)),p;case b.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(b.bracketR,!0,!0,e),this.finishNode(n,"ArrayExpression");case b.braceL:return this.overrideContext(Se.b_expr),this.parseObj(!1,e);case b._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case b._class:return this.parseClass(this.startNode(),!1);case b._new:return this.parseNew();case b.backQuote:return this.parseTemplate();case b._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}},Ae.parseExprAtomDefault=function(){this.unexpected()},Ae.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===b.parenL&&!e)return this.parseDynamicImport(t);if(this.type===b.dot){var i=this.startNodeAt(t.start,t.loc&&t.loc.start);return i.name="import",t.meta=this.finishNode(i,"Identifier"),this.parseImportMeta(t)}this.unexpected()},Ae.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(b.parenR)?e.options=null:(this.expect(b.comma),this.afterTrailingComma(b.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(b.parenR)||(this.expect(b.comma),this.afterTrailingComma(b.parenR)||this.unexpected())));else if(!this.eat(b.parenR)){var t=this.start;this.eat(b.comma)&&this.eat(b.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},Ae.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},Ae.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=null!=t.value?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},Ae.parseParenExpression=function(){this.expect(b.parenL);var e=this.parseExpression();return this.expect(b.parenR),e},Ae.shouldParseArrow=function(e){return!this.canInsertSemicolon()},Ae.parseParenAndDistinguishExpression=function(e,t){var i,n=this.start,r=this.startLoc,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,l=this.startLoc,c=[],h=!0,p=!1,u=new ue,d=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==b.parenR;){if(h?h=!1:this.expect(b.comma),s&&this.afterTrailingComma(b.parenR,!0)){p=!0;break}if(this.type===b.ellipsis){a=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===b.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}c.push(this.parseMaybeAssign(!1,u,this.parseParenItem))}var m=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(b.parenR),e&&this.shouldParseArrow(c)&&this.eat(b.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=f,this.parseParenArrowList(n,r,c,t);c.length&&!p||this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(u,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=f||this.awaitPos,c.length>1?((i=this.startNodeAt(o,l)).expressions=c,this.finishNodeAt(i,"SequenceExpression",m,g)):i=c[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var x=this.startNodeAt(n,r);return x.expression=i,this.finishNode(x,"ParenthesizedExpression")}return i},Ae.parseParenItem=function(e){return e},Ae.parseParenArrowList=function(e,t,i,n){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,n)};var Ne=[];Ae.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===b.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var i=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var n=this.start,r=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),n,r,!0,!1),this.eat(b.parenL)?e.arguments=this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Ne,this.finishNode(e,"NewExpression")},Ae.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===b.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),i.tail=this.type===b.backQuote,this.finishNode(i,"TemplateElement")},Ae.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var n=this.parseTemplateElement({isTagged:t});for(i.quasis=[n];!n.tail;)this.type===b.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(b.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(b.braceR),i.quasis.push(n=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")},Ae.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===b.name||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===b.star)&&!w.test(this.input.slice(this.lastTokEnd,this.start))},Ae.parseObj=function(e,t){var i=this.startNode(),n=!0,r={};for(i.properties=[],this.next();!this.eat(b.braceR);){if(n)n=!1;else if(this.expect(b.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(b.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,r,t),i.properties.push(s)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")},Ae.parseProperty=function(e,t){var i,n,r,s,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(b.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===b.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,t),this.type===b.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||t)&&(r=this.start,s=this.startLoc),e||(i=this.eat(b.star)));var o=this.containsEsc;return this.parsePropertyName(a),!e&&!o&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(a)?(n=!0,i=this.options.ecmaVersion>=9&&this.eat(b.star),this.parsePropertyName(a)):n=!1,this.parsePropertyValue(a,e,i,n,r,s,t,o),this.finishNode(a,"Property")},Ae.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var i="get"===e.kind?0:1;if(e.value.params.length!==i){var n=e.value.start;"get"===e.kind?this.raiseRecoverable(n,"getter should have no params"):this.raiseRecoverable(n,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},Ae.parsePropertyValue=function(e,t,i,n,r,s,a,o){(i||n)&&this.type===b.colon&&this.unexpected(),this.eat(b.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init"):this.options.ecmaVersion>=6&&this.type===b.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(i,n),e.kind="init"):t||o||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===b.comma||this.type===b.braceR||this.type===b.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((i||n)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=r),t?e.value=this.parseMaybeDefault(r,s,this.copyNode(e.key)):this.type===b.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(r,s,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected():((i||n)&&this.unexpected(),this.parseGetterSetter(e))},Ae.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(b.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(b.bracketR),e.key;e.computed=!1}return e.key=this.type===b.num||this.type===b.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},Ae.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},Ae.parseMethod=function(e,t,i){var n=this.startNode(),r=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(te(t,n.generator)|$|(i?K:0)),this.expect(b.parenL),n.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0,!1),this.yieldPos=r,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(n,"FunctionExpression")},Ae.parseArrowExpression=function(e,t,i,n){var r=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(te(i,!1)|H),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,n),this.yieldPos=r,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")},Ae.parseFunctionBody=function(e,t,i,n){var r=t&&this.type!==b.braceL,s=this.strict,a=!1;if(r)e.body=this.parseMaybeAssign(n),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);s&&!o||(a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var l=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!s&&!a&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,oe),e.body=this.parseBlock(!1,void 0,a&&!s),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()},Ae.isSimpleParamList=function(e){for(var t=0,i=e;t<i.length;t+=1)if("Identifier"!==i[t].type)return!1;return!0},Ae.checkParams=function(e,t){for(var i=Object.create(null),n=0,r=e.params;n<r.length;n+=1){var s=r[n];this.checkLValInnerPattern(s,ne,t?null:i)}},Ae.parseExprList=function(e,t,i,n){for(var r=[],s=!0;!this.eat(e);){if(s)s=!1;else if(this.expect(b.comma),t&&this.afterTrailingComma(e))break;var a=void 0;i&&this.type===b.comma?a=null:this.type===b.ellipsis?(a=this.parseSpread(n),n&&this.type===b.comma&&n.trailingComma<0&&(n.trailingComma=this.start)):a=this.parseMaybeAssign(!1,n),r.push(a)}return r},Ae.checkUnreserved=function(e){var t=e.start,i=e.end,n=e.name;this.inGenerator&&"yield"===n&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===n&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().flags&ee||"arguments"!==n||this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==n&&"await"!==n||this.raise(t,"Cannot use "+n+" in class static initialization block"),this.keywords.test(n)&&this.raise(t,"Unexpected keyword '"+n+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,i).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(n)&&(this.inAsync||"await"!==n||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+n+"' is reserved"))},Ae.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),"await"!==t.name||this.awaitIdentPos||(this.awaitIdentPos=t.start)),t},Ae.parseIdentNode=function(){var e=this.startNode();return this.type===b.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,"class"!==e.name&&"function"!==e.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop(),this.type=b.name):this.unexpected(),e},Ae.parsePrivateIdent=function(){var e=this.startNode();return this.type===b.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},Ae.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===b.semi||this.canInsertSemicolon()||this.type!==b.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(b.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},Ae.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var Te=le.prototype;Te.raise=function(e,t){var i=M(this.input,e);t+=" ("+i.line+":"+i.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var n=new SyntaxError(t);throw n.pos=e,n.loc=i,n.raisedAt=this.pos,n},Te.raiseRecoverable=Te.raise,Te.curPosition=function(){if(this.options.locations)return new j(this.curLine,this.pos-this.lineStart)};var Pe=le.prototype,Le=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};Pe.enterScope=function(e){this.scopeStack.push(new Le(e))},Pe.exitScope=function(){this.scopeStack.pop()},Pe.treatFunctionsAsVarInScope=function(e){return e.flags&q||!this.inModule&&e.flags&J},Pe.declareName=function(e,t,i){var n=!1;if(t===re){var r=this.currentScope();n=r.lexical.indexOf(e)>-1||r.functions.indexOf(e)>-1||r.var.indexOf(e)>-1,r.lexical.push(e),this.inModule&&r.flags&J&&delete this.undefinedExports[e]}else if(t===ae)this.currentScope().lexical.push(e);else if(t===se){var s=this.currentScope();n=this.treatFunctionsAsVar?s.lexical.indexOf(e)>-1:s.lexical.indexOf(e)>-1||s.var.indexOf(e)>-1,s.functions.push(e)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(e)>-1&&!(o.flags&W&&o.lexical[0]===e)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(e)>-1){n=!0;break}if(o.var.push(e),this.inModule&&o.flags&J&&delete this.undefinedExports[e],o.flags&ee)break}n&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")},Pe.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},Pe.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Pe.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(ee|Y|Q))return t}},Pe.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(ee|Y|Q)&&!(t.flags&H))return t}};var Ve=function(e,t,i){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new D(e,i)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},Re=le.prototype;function Oe(e,t,i,n){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=n),this.options.ranges&&(e.range[1]=i),e}Re.startNode=function(){return new Ve(this,this.start,this.startLoc)},Re.startNodeAt=function(e,t){return new Ve(this,e,t)},Re.finishNode=function(e,t){return Oe.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},Re.finishNodeAt=function(e,t,i,n){return Oe.call(this,e,t,i,n)},Re.copyNode=function(e){var t=new Ve(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var je="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",De="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Me=De+" Extended_Pictographic",Fe=Me,Be=Fe+" EBase EComp EMod EPres ExtPict",Ue=Be,ze=Ue,Je={9:De,10:Me,11:Fe,12:Be,13:Ue,14:ze},qe="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Ge={9:"",10:"",11:"",12:"",13:"",14:qe},Xe="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",He="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",We=He+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",$e=We+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Ke=$e+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Qe=Ke+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Ye=Qe+" "+je,Ze={9:He,10:We,11:$e,12:Ke,13:Qe,14:Ye},et={};function tt(e){var t=et[e]={binary:V(Je[e]+" "+Xe),binaryOfStrings:V(Ge[e]),nonBinary:{General_Category:V(Xe),Script:V(Ze[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var it=0,nt=[9,10,11,12,13,14];it<nt.length;it+=1)tt(nt[it]);var rt=le.prototype,st=function(e,t){this.parent=e,this.base=t||this};st.prototype.separatedFrom=function(e){for(var t=this;t;t=t.parent)for(var i=e;i;i=i.parent)if(t.base===i.base&&t!==i)return!0;return!1},st.prototype.sibling=function(){return new st(this.parent,this.base)};var at=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=et[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function ot(e){for(var t in e)return!0;return!1}function lt(e){return 105===e||109===e||115===e}function ct(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function ht(e){return u(e,!0)||36===e||95===e}function pt(e){return d(e,!0)||36===e||95===e||8204===e||8205===e}function ut(e){return e>=65&&e<=90||e>=97&&e<=122}function dt(e){return e>=0&&e<=1114111}at.prototype.reset=function(e,t,i){var n=-1!==i.indexOf("v"),r=-1!==i.indexOf("u");this.start=0|e,this.source=t+"",this.flags=i,n&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=r&&this.parser.options.ecmaVersion>=9)},at.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},at.prototype.at=function(e,t){void 0===t&&(t=!1);var i=this.source,n=i.length;if(e>=n)return-1;var r=i.charCodeAt(e);if(!t&&!this.switchU||r<=55295||r>=57344||e+1>=n)return r;var s=i.charCodeAt(e+1);return s>=56320&&s<=57343?(r<<10)+s-56613888:r},at.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var i=this.source,n=i.length;if(e>=n)return n;var r,s=i.charCodeAt(e);return!t&&!this.switchU||s<=55295||s>=57344||e+1>=n||(r=i.charCodeAt(e+1))<56320||r>57343?e+1:e+2},at.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},at.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},at.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},at.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},at.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var i=this.pos,n=0,r=e;n<r.length;n+=1){var s=r[n],a=this.at(i,t);if(-1===a||a!==s)return!1;i=this.nextIndex(i,t)}return this.pos=i,!0},rt.validateRegExpFlags=function(e){for(var t=e.validFlags,i=e.flags,n=!1,r=!1,s=0;s<i.length;s++){var a=i.charAt(s);-1===t.indexOf(a)&&this.raise(e.start,"Invalid regular expression flag"),i.indexOf(a,s+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===a&&(n=!0),"v"===a&&(r=!0)}this.options.ecmaVersion>=15&&n&&r&&this.raise(e.start,"Invalid regular expression flag")},rt.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&ot(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},rt.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,i=e.backReferenceNames;t<i.length;t+=1){var n=i[t];e.groupNames[n]||e.raise("Invalid named capture referenced")}},rt.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new st(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},rt.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},rt.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},rt.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var i=!1;if(this.options.ecmaVersion>=9&&(i=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!i,!0}return e.pos=t,!1},rt.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},rt.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},rt.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var n=0,r=-1;if(this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue),e.eat(125)))return-1!==r&&r<n&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=i}return!1},rt.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},rt.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},rt.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var i=this.regexp_eatModifiers(e),n=e.eat(45);if(i||n){for(var r=0;r<i.length;r++){var s=i.charAt(r);i.indexOf(s,r+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(n){var a=this.regexp_eatModifiers(e);i||a||58!==e.current()||e.raise("Invalid regular expression modifiers");for(var o=0;o<a.length;o++){var l=a.charAt(o);(a.indexOf(l,o+1)>-1||i.indexOf(l)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1},rt.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},rt.regexp_eatModifiers=function(e){for(var t="",i=0;-1!==(i=e.current())&&lt(i);)t+=R(i),e.advance();return t},rt.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},rt.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},rt.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!ct(t)&&(e.lastIntValue=t,e.advance(),!0)},rt.regexp_eatPatternCharacters=function(e){for(var t=e.pos,i=0;-1!==(i=e.current())&&!ct(i);)e.advance();return e.pos!==t},rt.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t||(e.advance(),0))},rt.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,i=e.groupNames[e.lastStringValue];if(i)if(t)for(var n=0,r=i;n<r.length;n+=1)r[n].separatedFrom(e.branchID)||e.raise("Duplicate capture group name");else e.raise("Duplicate capture group name");t?(i||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}},rt.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},rt.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=R(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=R(e.lastIntValue);return!0}return!1},rt.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,n=e.current(i);return e.advance(i),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(n=e.lastIntValue),ht(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},rt.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,n=e.current(i);return e.advance(i),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(n=e.lastIntValue),pt(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},rt.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},rt.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var i=e.lastIntValue;if(e.switchU)return i>e.maxBackReference&&(e.maxBackReference=i),!0;if(i<=e.numCapturingParens)return!0;e.pos=t}return!1},rt.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},rt.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},rt.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},rt.regexp_eatZero=function(e){return 48===e.current()&&!Et(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},rt.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},rt.regexp_eatControlLetter=function(e){var t=e.current();return!!ut(t)&&(e.lastIntValue=t%32,e.advance(),!0)},rt.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var i=e.pos,n=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var r=e.lastIntValue;if(n&&r>=55296&&r<=56319){var s=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=1024*(r-55296)+(a-56320)+65536,!0}e.pos=s,e.lastIntValue=r}return!0}if(n&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&dt(e.lastIntValue))return!0;n&&e.raise("Invalid unicode escape"),e.pos=i}return!1},rt.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t||(e.lastIntValue=t,e.advance(),0))},rt.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1};var ft=0,mt=1,gt=2;function xt(e){return 100===e||68===e||115===e||83===e||119===e||87===e}function yt(e){return ut(e)||95===e}function vt(e){return yt(e)||Et(e)}function bt(e){return 33===e||e>=35&&e<=38||e>=42&&e<=44||46===e||e>=58&&e<=64||94===e||96===e||126===e}function wt(e){return 40===e||41===e||45===e||47===e||e>=91&&e<=93||e>=123&&e<=125}function kt(e){return 33===e||35===e||37===e||38===e||44===e||45===e||e>=58&&e<=62||64===e||96===e||126===e}function Et(e){return e>=48&&e<=57}function St(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Ct(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function At(e){return e>=48&&e<=55}rt.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(xt(t))return e.lastIntValue=-1,e.advance(),mt;var i=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((i=80===t)||112===t)){var n;if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(n=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&n===gt&&e.raise("Invalid property name"),n;e.raise("Invalid property name")}return ft},rt.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var i=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,n),mt}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,r)}return ft},rt.regexp_validateUnicodePropertyNameAndValue=function(e,t,i){T(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")},rt.regexp_validateUnicodePropertyNameOrValue=function(e,t){return e.unicodeProperties.binary.test(t)?mt:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?gt:void e.raise("Invalid property name")},rt.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";yt(t=e.current());)e.lastStringValue+=R(t),e.advance();return""!==e.lastStringValue},rt.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";vt(t=e.current());)e.lastStringValue+=R(t),e.advance();return""!==e.lastStringValue},rt.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},rt.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),i=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&i===gt&&e.raise("Negated character class may contain strings"),!0}return!1},rt.regexp_classContents=function(e){return 93===e.current()?mt:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),mt)},rt.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var i=e.lastIntValue;!e.switchU||-1!==t&&-1!==i||e.raise("Invalid character class"),-1!==t&&-1!==i&&t>i&&e.raise("Range out of order in character class")}}},rt.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var i=e.current();(99===i||At(i))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var n=e.current();return 93!==n&&(e.lastIntValue=n,e.advance(),!0)},rt.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},rt.regexp_classSetExpression=function(e){var t,i=mt;if(this.regexp_eatClassSetRange(e));else if(t=this.regexp_eatClassSetOperand(e)){t===gt&&(i=gt);for(var n=e.pos;e.eatChars([38,38]);)38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))?t!==gt&&(i=mt):e.raise("Invalid character in character class");if(n!==e.pos)return i;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(n!==e.pos)return i}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return i;t===gt&&(i=gt)}},rt.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;return-1!==i&&-1!==n&&i>n&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},rt.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?mt:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},rt.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var i=e.eat(94),n=this.regexp_classContents(e);if(e.eat(93))return i&&n===gt&&e.raise("Negated character class may contain strings"),n;e.pos=t}if(e.eat(92)){var r=this.regexp_eatCharacterClassEscape(e);if(r)return r;e.pos=t}return null},rt.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var i=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return i}else e.raise("Invalid escape");e.pos=t}return null},rt.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===gt&&(t=gt);return t},rt.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?mt:gt},rt.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return!(!this.regexp_eatCharacterEscape(e)&&!this.regexp_eatClassSetReservedPunctuator(e)&&(e.eat(98)?(e.lastIntValue=8,0):(e.pos=t,1)));var i=e.current();return!(i<0||i===e.lookahead()&&bt(i)||wt(i)||(e.advance(),e.lastIntValue=i,0))},rt.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return!!kt(t)&&(e.lastIntValue=t,e.advance(),!0)},rt.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!Et(t)&&95!==t||(e.lastIntValue=t%32,e.advance(),0))},rt.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},rt.regexp_eatDecimalDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Et(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t},rt.regexp_eatHexDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;St(i=e.current());)e.lastIntValue=16*e.lastIntValue+Ct(i),e.advance();return e.pos!==t},rt.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var i=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*i+e.lastIntValue:e.lastIntValue=8*t+i}else e.lastIntValue=t;return!0}return!1},rt.regexp_eatOctalDigit=function(e){var t=e.current();return At(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},rt.regexp_eatFixedHexDigits=function(e,t){var i=e.pos;e.lastIntValue=0;for(var n=0;n<t;++n){var r=e.current();if(!St(r))return e.pos=i,!1;e.lastIntValue=16*e.lastIntValue+Ct(r),e.advance()}return!0};var _t=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new D(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},It=le.prototype;function Nt(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function Tt(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}It.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new _t(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},It.getToken=function(){return this.next(),new _t(this)},"undefined"!=typeof Symbol&&(It[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===b.eof,value:t}}}}),It.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(b.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},It.readToken=function(e){return u(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},It.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var i=this.input.charCodeAt(e+1);return i<=56319||i>=57344?t:(t<<10)+i-56613888},It.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},It.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(-1===i&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var n=void 0,r=t;(n=S(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=n;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())},It.skipLineComment=function(e){for(var t=this.pos,i=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!E(n);)n=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,i,this.curPosition())},It.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&C.test(String.fromCharCode(e))))break e;++this.pos}}},It.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=e,this.value=t,this.updateContext(i)},It.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(b.ellipsis)):(++this.pos,this.finishToken(b.dot))},It.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(b.assign,2):this.finishOp(b.slash,1)},It.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,n=42===e?b.star:b.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++i,n=b.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(b.assign,i+1):this.finishOp(n,i)},It.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(b.assign,3):this.finishOp(124===e?b.logicalOR:b.logicalAND,2):61===t?this.finishOp(b.assign,2):this.finishOp(124===e?b.bitwiseOR:b.bitwiseAND,1)},It.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(b.assign,2):this.finishOp(b.bitwiseXOR,1)},It.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!w.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(b.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(b.assign,2):this.finishOp(b.plusMin,1)},It.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),i=1;return t===e?(i=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+i)?this.finishOp(b.assign,i+1):this.finishOp(b.bitShift,i)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(i=2),this.finishOp(b.relational,i)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},It.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(b.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(b.arrow)):this.finishOp(61===e?b.eq:b.prefix,1)},It.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(b.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(b.assign,3):this.finishOp(b.coalesce,2)}return this.finishOp(b.question,1)},It.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,u(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(b.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+R(e)+"'")},It.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(b.parenL);case 41:return++this.pos,this.finishToken(b.parenR);case 59:return++this.pos,this.finishToken(b.semi);case 44:return++this.pos,this.finishToken(b.comma);case 91:return++this.pos,this.finishToken(b.bracketL);case 93:return++this.pos,this.finishToken(b.bracketR);case 123:return++this.pos,this.finishToken(b.braceL);case 125:return++this.pos,this.finishToken(b.braceR);case 58:return++this.pos,this.finishToken(b.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(b.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(b.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+R(e)+"'")},It.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)},It.readRegexp=function(){for(var e,t,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(w.test(n)&&this.raise(i,"Unterminated regular expression"),e)e=!1;else{if("["===n)t=!0;else if("]"===n&&t)t=!1;else if("/"===n&&!t)break;e="\\"===n}++this.pos}var r=this.input.slice(i,this.pos);++this.pos;var s=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(s);var o=this.regexpState||(this.regexpState=new at(this));o.reset(i,r,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var l=null;try{l=new RegExp(r,a)}catch(e){}return this.finishToken(b.regexp,{pattern:r,flags:a,value:l})},It.readInt=function(e,t,i){for(var n=this.options.ecmaVersion>=12&&void 0===t,r=i&&48===this.input.charCodeAt(this.pos),s=this.pos,a=0,o=0,l=0,c=null==t?1/0:t;l<c;++l,++this.pos){var h=this.input.charCodeAt(this.pos),p=void 0;if(n&&95===h)r&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===o&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===l&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=h;else{if((p=h>=97?h-97+10:h>=65?h-65+10:h>=48&&h<=57?h-48:1/0)>=e)break;o=h,a=a*e+p}}return n&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||null!=t&&this.pos-s!==t?null:a},It.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var i=this.readInt(e);return null==i&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(i=Tt(this.input.slice(t,this.pos)),++this.pos):u(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(b.num,i)},It.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var i=this.pos-t>=2&&48===this.input.charCodeAt(t);i&&this.strict&&this.raise(t,"Invalid number");var n=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&110===n){var r=Tt(this.input.slice(t,this.pos));return++this.pos,u(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(b.num,r)}i&&/[89]/.test(this.input.slice(t,this.pos))&&(i=!1),46!==n||i||(++this.pos,this.readInt(10),n=this.input.charCodeAt(this.pos)),69!==n&&101!==n||i||(43!==(n=this.input.charCodeAt(++this.pos))&&45!==n||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),u(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s=Nt(this.input.slice(t,this.pos),i);return this.finishToken(b.num,s)},It.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},It.readString=function(e){for(var t="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===e)break;92===n?(t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!1),i=this.pos):8232===n||8233===n?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(E(n)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(b.string,t)};var Pt={};It.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==Pt)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},It.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Pt;this.raise(e,t)},It.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(96===i||36===i&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==b.template&&this.type!==b.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(b.template,e)):36===i?(this.pos+=2,this.finishToken(b.dollarBraceL)):(++this.pos,this.finishToken(b.backQuote));if(92===i)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(E(i)){switch(e+=this.input.slice(t,this.pos),++this.pos,i){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(i)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},It.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(b.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":"\n"===this.input[this.pos+1]&&++this.pos;case"\n":case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},It.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return R(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(n,8);return r>255&&(n=n.slice(0,-1),r=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),"0"===n&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return E(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}},It.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return null===i&&this.invalidStringToken(t,"Bad character escape sequence"),i},It.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,n=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(d(r,n))this.pos+=r<=65535?1:2;else{if(92!==r)break;this.containsEsc=!0,e+=this.input.slice(i,this.pos);var s=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(t?u:d)(a,n)||this.invalidStringToken(s,"Invalid Unicode escape"),e+=R(a),i=this.pos}t=!1}return e+this.input.slice(i,this.pos)},It.readWord=function(){var e=this.readWord1(),t=b.name;return this.keywords.test(e)&&(t=y[e]),this.finishToken(t,e)};var Lt="8.16.0";function Vt(e,t){return le.parse(e,t)}function Rt(e,t,i){return le.parseExpressionAt(e,t,i)}function Ot(e,t){return le.tokenizer(e,t)}le.acorn={Parser:le,version:Lt,defaultOptions:F,Position:j,SourceLocation:D,getLineInfo:M,Node:Ve,TokenType:f,tokTypes:b,keywordTypes:y,TokContext:Ee,tokContexts:Se,isIdentifierChar:d,isIdentifierStart:u,Token:_t,isNewLine:E,lineBreak:w,lineBreakG:k,nonASCIIwhitespace:C},e.Node=Ve,e.Parser=le,e.Position=j,e.SourceLocation=D,e.TokContext=Ee,e.Token=_t,e.TokenType=f,e.defaultOptions=F,e.getLineInfo=M,e.isIdentifierChar=d,e.isIdentifierStart=u,e.isNewLine=E,e.keywordTypes=y,e.lineBreak=w,e.lineBreakG=k,e.nonASCIIwhitespace=C,e.parse=Vt,e.parseExpressionAt=Rt,e.tokContexts=Se,e.tokTypes=b,e.tokenizer=Ot,e.version=Lt}(gi.exports)),gi.exports}var yi=(mi||(mi=1,function(e){const t=ui?pi:(ui=1,pi={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),i=/^[\da-fA-F]+$/,n=/^\d+$/,r=new WeakMap;function s(e){e=e.Parser.acorn||e;let t=r.get(e);if(!t){const i=e.tokTypes,n=e.TokContext,s=e.TokenType,a=new n("<tag",!1),o=new n("</tag",!1),l=new n("<tag>...</tag>",!0,!0),c={tc_oTag:a,tc_cTag:o,tc_expr:l},h={jsxName:new s("jsxName"),jsxText:new s("jsxText",{beforeExpr:!0}),jsxTagStart:new s("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new s("jsxTagEnd")};h.jsxTagStart.updateContext=function(){this.context.push(l),this.context.push(a),this.exprAllowed=!1},h.jsxTagEnd.updateContext=function(e){let t=this.context.pop();t===a&&e===i.slash||t===o?(this.context.pop(),this.exprAllowed=this.curContext()===l):this.exprAllowed=!0},t={tokContexts:c,tokTypes:h},r.set(e,t)}return t}function a(e){return e?"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?a(e.object)+"."+a(e.property):void 0:e}e.exports=function(e){return e=e||{},function(r){return function(e,r){const o=r.acorn||xi(),l=s(o),c=o.tokTypes,h=l.tokTypes,p=o.tokContexts,u=l.tokContexts.tc_oTag,d=l.tokContexts.tc_cTag,f=l.tokContexts.tc_expr,m=o.isNewLine,g=o.isIdentifierStart,x=o.isIdentifierChar;return class extends r{static get acornJsx(){return l}jsx_readToken(){let e="",t=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let i=this.input.charCodeAt(this.pos);switch(i){case 60:case 123:return this.pos===this.start?60===i&&this.exprAllowed?(++this.pos,this.finishToken(h.jsxTagStart)):this.getTokenFromCode(i):(e+=this.input.slice(t,this.pos),this.finishToken(h.jsxText,e));case 38:e+=this.input.slice(t,this.pos),e+=this.jsx_readEntity(),t=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(62===i?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:m(i)?(e+=this.input.slice(t,this.pos),e+=this.jsx_readNewLine(!0),t=this.pos):++this.pos}}}jsx_readNewLine(e){let t,i=this.input.charCodeAt(this.pos);return++this.pos,13===i&&10===this.input.charCodeAt(this.pos)?(++this.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(i),this.options.locations&&(++this.curLine,this.lineStart=this.pos),t}jsx_readString(e){let t="",i=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let n=this.input.charCodeAt(this.pos);if(n===e)break;38===n?(t+=this.input.slice(i,this.pos),t+=this.jsx_readEntity(),i=this.pos):m(n)?(t+=this.input.slice(i,this.pos),t+=this.jsx_readNewLine(!1),i=this.pos):++this.pos}return t+=this.input.slice(i,this.pos++),this.finishToken(c.string,t)}jsx_readEntity(){let e,r="",s=0,a=this.input[this.pos];"&"!==a&&this.raise(this.pos,"Entity must start with an ampersand");let o=++this.pos;for(;this.pos<this.input.length&&s++<10;){if(a=this.input[this.pos++],";"===a){"#"===r[0]?"x"===r[1]?(r=r.substr(2),i.test(r)&&(e=String.fromCharCode(parseInt(r,16)))):(r=r.substr(1),n.test(r)&&(e=String.fromCharCode(parseInt(r,10)))):e=t[r];break}r+=a}return e||(this.pos=o,"&")}jsx_readWord(){let e,t=this.pos;do{e=this.input.charCodeAt(++this.pos)}while(x(e)||45===e);return this.finishToken(h.jsxName,this.input.slice(t,this.pos))}jsx_parseIdentifier(){let e=this.startNode();return this.type===h.jsxName?e.name=this.value:this.type.keyword?e.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsx_parseNamespacedName(){let t=this.start,i=this.startLoc,n=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(c.colon))return n;var r=this.startNodeAt(t,i);return r.namespace=n,r.name=this.jsx_parseIdentifier(),this.finishNode(r,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===h.jsxTagEnd)return"";let t=this.start,i=this.startLoc,n=this.jsx_parseNamespacedName();for(this.type!==c.dot||"JSXNamespacedName"!==n.type||e.allowNamespacedObjects||this.unexpected();this.eat(c.dot);){let e=this.startNodeAt(t,i);e.object=n,e.property=this.jsx_parseIdentifier(),n=this.finishNode(e,"JSXMemberExpression")}return n}jsx_parseAttributeValue(){switch(this.type){case c.braceL:let e=this.jsx_parseExpressionContainer();return"JSXEmptyExpression"===e.expression.type&&this.raise(e.start,"JSX attributes must only be assigned a non-empty expression"),e;case h.jsxTagStart:case c.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let e=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let e=this.startNode();return this.next(),e.expression=this.type===c.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(c.braceR),this.finishNode(e,"JSXExpressionContainer")}jsx_parseAttribute(){let e=this.startNode();return this.eat(c.braceL)?(this.expect(c.ellipsis),e.argument=this.parseMaybeAssign(),this.expect(c.braceR),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsx_parseNamespacedName(),e.value=this.eat(c.eq)?this.jsx_parseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsx_parseOpeningElementAt(e,t){let i=this.startNodeAt(e,t);i.attributes=[];let n=this.jsx_parseElementName();for(n&&(i.name=n);this.type!==c.slash&&this.type!==h.jsxTagEnd;)i.attributes.push(this.jsx_parseAttribute());return i.selfClosing=this.eat(c.slash),this.expect(h.jsxTagEnd),this.finishNode(i,n?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(e,t){let i=this.startNodeAt(e,t),n=this.jsx_parseElementName();return n&&(i.name=n),this.expect(h.jsxTagEnd),this.finishNode(i,n?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(e,t){let i=this.startNodeAt(e,t),n=[],r=this.jsx_parseOpeningElementAt(e,t),s=null;if(!r.selfClosing){e:for(;;)switch(this.type){case h.jsxTagStart:if(e=this.start,t=this.startLoc,this.next(),this.eat(c.slash)){s=this.jsx_parseClosingElementAt(e,t);break e}n.push(this.jsx_parseElementAt(e,t));break;case h.jsxText:n.push(this.parseExprAtom());break;case c.braceL:n.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}a(s.name)!==a(r.name)&&this.raise(s.start,"Expected corresponding JSX closing tag for <"+a(r.name)+">")}let o=r.name?"Element":"Fragment";return i["opening"+o]=r,i["closing"+o]=s,i.children=n,this.type===c.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(i,"JSX"+o)}jsx_parseText(){let e=this.parseLiteral(this.value);return e.type="JSXText",e}jsx_parseElement(){let e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)}parseExprAtom(e){return this.type===h.jsxText?this.jsx_parseText():this.type===h.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let t=this.curContext();if(t===f)return this.jsx_readToken();if(t===u||t===d){if(g(e))return this.jsx_readWord();if(62==e)return++this.pos,this.finishToken(h.jsxTagEnd);if((34===e||39===e)&&t==u)return this.jsx_readString(e)}return 60===e&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(h.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==c.braceL){var t=this.curContext();t==u?this.context.push(p.b_expr):t==f?this.context.push(p.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else{if(this.type!==c.slash||e!==h.jsxTagStart)return super.updateContext(e);this.context.length-=2,this.context.push(d),this.exprAllowed=!1}}}}({allowNamespaces:!1!==e.allowNamespaces,allowNamespacedObjects:!!e.allowNamespacedObjects},r)}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return s(xi()).tokTypes},configurable:!0,enumerable:!0})}(di)),di.exports),vi=Z(yi);const{stringify:bi}=JSON;if(!String.prototype.repeat)throw new Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw new Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");const wi={"||":2,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},ki=17,Ei={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:ki,ClassExpression:ki,FunctionExpression:ki,ObjectExpression:ki,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function Si(e,t){const{generator:i}=e;if(e.write("("),null!=t&&t.length>0){i[t[0].type](t[0],e);const{length:n}=t;for(let r=1;r<n;r++){const n=t[r];e.write(", "),i[n.type](n,e)}}e.write(")")}function Ci(e,t,i,n){const r=e.expressionsPrecedence[t.type];if(r===ki)return!0;const s=e.expressionsPrecedence[i.type];return r!==s?!n&&15===r&&14===s&&"**"===i.operator||r<s:(13===r||14===r)&&("**"===t.operator&&"**"===i.operator?!n:13===r&&13===s&&("??"===t.operator||"??"===i.operator)||(n?wi[t.operator]<=wi[i.operator]:wi[t.operator]<wi[i.operator]))}function Ai(e,t,i,n){const{generator:r}=e;Ci(e,t,i,n)?(e.write("("),r[t.type](t,e),e.write(")")):r[t.type](t,e)}function _i(e,t,i,n){const r=t.split("\n"),s=r.length-1;if(e.write(r[0].trim()),s>0){e.write(n);for(let t=1;t<s;t++)e.write(i+r[t].trim()+n);e.write(i+r[s].trim())}}function Ii(e,t,i,n){const{length:r}=t;for(let s=0;s<r;s++){const r=t[s];e.write(i),"L"===r.type[0]?e.write("// "+r.value.trim()+"\n",r):(e.write("/*"),_i(e,r.value,i,n),e.write("*/"+n))}}function Ni(e,t){const{generator:i}=e,{declarations:n}=t;e.write(t.kind+" ");const{length:r}=n;if(r>0){i.VariableDeclarator(n[0],e);for(let t=1;t<r;t++)e.write(", "),i.VariableDeclarator(n[t],e)}}let Ti,Pi,Li,Vi,Ri,Oi;const ji={Program(e,t){const i=t.indent.repeat(t.indentLevel),{lineEnd:n,writeComments:r}=t;r&&null!=e.comments&&Ii(t,e.comments,i,n);const s=e.body,{length:a}=s;for(let e=0;e<a;e++){const a=s[e];r&&null!=a.comments&&Ii(t,a.comments,i,n),t.write(i),this[a.type](a,t),t.write(n)}r&&null!=e.trailingComments&&Ii(t,e.trailingComments,i,n)},BlockStatement:Oi=function(e,t){const i=t.indent.repeat(t.indentLevel++),{lineEnd:n,writeComments:r}=t,s=i+t.indent;t.write("{");const a=e.body;if(null!=a&&a.length>0){t.write(n),r&&null!=e.comments&&Ii(t,e.comments,s,n);const{length:o}=a;for(let e=0;e<o;e++){const i=a[e];r&&null!=i.comments&&Ii(t,i.comments,s,n),t.write(s),this[i.type](i,t),t.write(n)}t.write(i)}else r&&null!=e.comments&&(t.write(n),Ii(t,e.comments,s,n),t.write(i));r&&null!=e.trailingComments&&Ii(t,e.trailingComments,s,n),t.write("}"),t.indentLevel--},ClassBody:Oi,StaticBlock(e,t){t.write("static "),this.BlockStatement(e,t)},EmptyStatement(e,t){t.write(";")},ExpressionStatement(e,t){const i=t.expressionsPrecedence[e.expression.type];i===ki||3===i&&"O"===e.expression.left.type[0]?(t.write("("),this[e.expression.type](e.expression,t),t.write(")")):this[e.expression.type](e.expression,t),t.write(";")},IfStatement(e,t){t.write("if ("),this[e.test.type](e.test,t),t.write(") "),this[e.consequent.type](e.consequent,t),null!=e.alternate&&(t.write(" else "),this[e.alternate.type](e.alternate,t))},LabeledStatement(e,t){this[e.label.type](e.label,t),t.write(": "),this[e.body.type](e.body,t)},BreakStatement(e,t){t.write("break"),null!=e.label&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},ContinueStatement(e,t){t.write("continue"),null!=e.label&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},WithStatement(e,t){t.write("with ("),this[e.object.type](e.object,t),t.write(") "),this[e.body.type](e.body,t)},SwitchStatement(e,t){const i=t.indent.repeat(t.indentLevel++),{lineEnd:n,writeComments:r}=t;t.indentLevel++;const s=i+t.indent,a=s+t.indent;t.write("switch ("),this[e.discriminant.type](e.discriminant,t),t.write(") {"+n);const{cases:o}=e,{length:l}=o;for(let e=0;e<l;e++){const i=o[e];r&&null!=i.comments&&Ii(t,i.comments,s,n),i.test?(t.write(s+"case "),this[i.test.type](i.test,t),t.write(":"+n)):t.write(s+"default:"+n);const{consequent:l}=i,{length:c}=l;for(let e=0;e<c;e++){const i=l[e];r&&null!=i.comments&&Ii(t,i.comments,a,n),t.write(a),this[i.type](i,t),t.write(n)}}t.indentLevel-=2,t.write(i+"}")},ReturnStatement(e,t){t.write("return"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t)),t.write(";")},ThrowStatement(e,t){t.write("throw "),this[e.argument.type](e.argument,t),t.write(";")},TryStatement(e,t){if(t.write("try "),this[e.block.type](e.block,t),e.handler){const{handler:i}=e;null==i.param?t.write(" catch "):(t.write(" catch ("),this[i.param.type](i.param,t),t.write(") ")),this[i.body.type](i.body,t)}e.finalizer&&(t.write(" finally "),this[e.finalizer.type](e.finalizer,t))},WhileStatement(e,t){t.write("while ("),this[e.test.type](e.test,t),t.write(") "),this[e.body.type](e.body,t)},DoWhileStatement(e,t){t.write("do "),this[e.body.type](e.body,t),t.write(" while ("),this[e.test.type](e.test,t),t.write(");")},ForStatement(e,t){if(t.write("for ("),null!=e.init){const{init:i}=e;"V"===i.type[0]?Ni(t,i):this[i.type](i,t)}t.write("; "),e.test&&this[e.test.type](e.test,t),t.write("; "),e.update&&this[e.update.type](e.update,t),t.write(") "),this[e.body.type](e.body,t)},ForInStatement:Ti=function(e,t){t.write(`for ${e.await?"await ":""}(`);const{left:i}=e;"V"===i.type[0]?Ni(t,i):this[i.type](i,t),t.write("I"===e.type[3]?" in ":" of "),this[e.right.type](e.right,t),t.write(") "),this[e.body.type](e.body,t)},ForOfStatement:Ti,DebuggerStatement(e,t){t.write("debugger;",e)},FunctionDeclaration:Pi=function(e,t){t.write((e.async?"async ":"")+(e.generator?"function* ":"function ")+(e.id?e.id.name:""),e),Si(t,e.params),t.write(" "),this[e.body.type](e.body,t)},FunctionExpression:Pi,VariableDeclaration(e,t){Ni(t,e),t.write(";")},VariableDeclarator(e,t){this[e.id.type](e.id,t),null!=e.init&&(t.write(" = "),this[e.init.type](e.init,t))},ClassDeclaration(e,t){if(t.write("class "+(e.id?`${e.id.name} `:""),e),e.superClass){t.write("extends ");const{superClass:i}=e,{type:n}=i,r=t.expressionsPrecedence[n];"C"===n[0]&&"l"===n[1]&&"E"===n[5]||!(r===ki||r<t.expressionsPrecedence.ClassExpression)?this[i.type](i,t):(t.write("("),this[e.superClass.type](i,t),t.write(")")),t.write(" ")}this.ClassBody(e.body,t)},ImportDeclaration(e,t){t.write("import ");const{specifiers:i,attributes:n}=e,{length:r}=i;let s=0;if(r>0){for(;s<r;){s>0&&t.write(", ");const e=i[s],n=e.type[6];if("D"===n)t.write(e.local.name,e),s++;else{if("N"!==n)break;t.write("* as "+e.local.name,e),s++}}if(s<r){for(t.write("{");;){const e=i[s],{name:n}=e.imported;if(t.write(n,e),n!==e.local.name&&t.write(" as "+e.local.name),!(++s<r))break;t.write(", ")}t.write("}")}t.write(" from ")}if(this.Literal(e.source,t),n&&n.length>0){t.write(" with { ");for(let e=0;e<n.length;e++)this.ImportAttribute(n[e],t),e<n.length-1&&t.write(", ");t.write(" }")}t.write(";")},ImportAttribute(e,t){this.Identifier(e.key,t),t.write(": "),this.Literal(e.value,t)},ImportExpression(e,t){t.write("import("),this[e.source.type](e.source,t),t.write(")")},ExportDefaultDeclaration(e,t){t.write("export default "),this[e.declaration.type](e.declaration,t),null!=t.expressionsPrecedence[e.declaration.type]&&"F"!==e.declaration.type[0]&&t.write(";")},ExportNamedDeclaration(e,t){if(t.write("export "),e.declaration)this[e.declaration.type](e.declaration,t);else{t.write("{");const{specifiers:i}=e,{length:n}=i;if(n>0)for(let e=0;;){const r=i[e],{name:s}=r.local;if(t.write(s,r),s!==r.exported.name&&t.write(" as "+r.exported.name),!(++e<n))break;t.write(", ")}if(t.write("}"),e.source&&(t.write(" from "),this.Literal(e.source,t)),e.attributes&&e.attributes.length>0){t.write(" with { ");for(let i=0;i<e.attributes.length;i++)this.ImportAttribute(e.attributes[i],t),i<e.attributes.length-1&&t.write(", ");t.write(" }")}t.write(";")}},ExportAllDeclaration(e,t){if(null!=e.exported?t.write("export * as "+e.exported.name+" from "):t.write("export * from "),this.Literal(e.source,t),e.attributes&&e.attributes.length>0){t.write(" with { ");for(let i=0;i<e.attributes.length;i++)this.ImportAttribute(e.attributes[i],t),i<e.attributes.length-1&&t.write(", ");t.write(" }")}t.write(";")},MethodDefinition(e,t){e.static&&t.write("static ");const i=e.kind[0];"g"!==i&&"s"!==i||t.write(e.kind+" "),e.value.async&&t.write("async "),e.value.generator&&t.write("*"),e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),Si(t,e.value.params),t.write(" "),this[e.value.body.type](e.value.body,t)},ClassExpression(e,t){this.ClassDeclaration(e,t)},ArrowFunctionExpression(e,t){t.write(e.async?"async ":"",e);const{params:i}=e;null!=i&&(1===i.length&&"I"===i[0].type[0]?t.write(i[0].name,i[0]):Si(t,e.params)),t.write(" => "),"O"===e.body.type[0]?(t.write("("),this.ObjectExpression(e.body,t),t.write(")")):this[e.body.type](e.body,t)},ThisExpression(e,t){t.write("this",e)},Super(e,t){t.write("super",e)},RestElement:Li=function(e,t){t.write("..."),this[e.argument.type](e.argument,t)},SpreadElement:Li,YieldExpression(e,t){t.write(e.delegate?"yield*":"yield"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t))},AwaitExpression(e,t){t.write("await ",e),Ai(t,e.argument,e)},TemplateLiteral(e,t){const{quasis:i,expressions:n}=e;t.write("`");const{length:r}=n;for(let e=0;e<r;e++){const r=n[e],s=i[e];t.write(s.value.raw,s),t.write("${"),this[r.type](r,t),t.write("}")}const s=i[i.length-1];t.write(s.value.raw,s),t.write("`")},TemplateElement(e,t){t.write(e.value.raw,e)},TaggedTemplateExpression(e,t){Ai(t,e.tag,e),this[e.quasi.type](e.quasi,t)},ArrayExpression:Ri=function(e,t){if(t.write("["),e.elements.length>0){const{elements:i}=e,{length:n}=i;for(let e=0;;){const r=i[e];if(null!=r&&this[r.type](r,t),!(++e<n)){null==r&&t.write(", ");break}t.write(", ")}}t.write("]")},ArrayPattern:Ri,ObjectExpression(e,t){const i=t.indent.repeat(t.indentLevel++),{lineEnd:n,writeComments:r}=t,s=i+t.indent;if(t.write("{"),e.properties.length>0){t.write(n),r&&null!=e.comments&&Ii(t,e.comments,s,n);const a=","+n,{properties:o}=e,{length:l}=o;for(let e=0;;){const i=o[e];if(r&&null!=i.comments&&Ii(t,i.comments,s,n),t.write(s),this[i.type](i,t),!(++e<l))break;t.write(a)}t.write(n),r&&null!=e.trailingComments&&Ii(t,e.trailingComments,s,n),t.write(i+"}")}else r?null!=e.comments?(t.write(n),Ii(t,e.comments,s,n),null!=e.trailingComments&&Ii(t,e.trailingComments,s,n),t.write(i+"}")):null!=e.trailingComments?(t.write(n),Ii(t,e.trailingComments,s,n),t.write(i+"}")):t.write("}"):t.write("}");t.indentLevel--},Property(e,t){e.method||"i"!==e.kind[0]?this.MethodDefinition(e,t):(e.shorthand||(e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),t.write(": ")),this[e.value.type](e.value,t))},PropertyDefinition(e,t){e.static&&t.write("static "),e.computed&&t.write("["),this[e.key.type](e.key,t),e.computed&&t.write("]"),null!=e.value?(t.write(" = "),this[e.value.type](e.value,t),t.write(";")):"F"!==e.key.type[0]&&t.write(";")},ObjectPattern(e,t){if(t.write("{"),e.properties.length>0){const{properties:i}=e,{length:n}=i;for(let e=0;this[i[e].type](i[e],t),++e<n;)t.write(", ")}t.write("}")},SequenceExpression(e,t){Si(t,e.expressions)},UnaryExpression(e,t){if(e.prefix){const{operator:i,argument:n,argument:{type:r}}=e;t.write(i);const s=Ci(t,n,e);s||!(i.length>1)&&("U"!==r[0]||"n"!==r[1]&&"p"!==r[1]||!n.prefix||n.operator[0]!==i||"+"!==i&&"-"!==i)||t.write(" "),s?(t.write(i.length>1?" (":"("),this[r](n,t),t.write(")")):this[r](n,t)}else this[e.argument.type](e.argument,t),t.write(e.operator)},UpdateExpression(e,t){e.prefix?(t.write(e.operator),this[e.argument.type](e.argument,t)):(this[e.argument.type](e.argument,t),t.write(e.operator))},AssignmentExpression(e,t){this[e.left.type](e.left,t),t.write(" "+e.operator+" "),this[e.right.type](e.right,t)},AssignmentPattern(e,t){this[e.left.type](e.left,t),t.write(" = "),this[e.right.type](e.right,t)},BinaryExpression:Vi=function(e,t){const i="in"===e.operator;i&&t.write("("),Ai(t,e.left,e,!1),t.write(" "+e.operator+" "),Ai(t,e.right,e,!0),i&&t.write(")")},LogicalExpression:Vi,ConditionalExpression(e,t){const{test:i}=e,n=t.expressionsPrecedence[i.type];n===ki||n<=t.expressionsPrecedence.ConditionalExpression?(t.write("("),this[i.type](i,t),t.write(")")):this[i.type](i,t),t.write(" ? "),this[e.consequent.type](e.consequent,t),t.write(" : "),this[e.alternate.type](e.alternate,t)},NewExpression(e,t){t.write("new ");const i=t.expressionsPrecedence[e.callee.type];i===ki||i<t.expressionsPrecedence.CallExpression||function(e){let t=e;for(;null!=t;){const{type:e}=t;if("C"===e[0]&&"a"===e[1])return!0;if("M"!==e[0]||"e"!==e[1]||"m"!==e[2])return!1;t=t.object}}(e.callee)?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),Si(t,e.arguments)},CallExpression(e,t){const i=t.expressionsPrecedence[e.callee.type];i===ki||i<t.expressionsPrecedence.CallExpression?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),e.optional&&t.write("?."),Si(t,e.arguments)},ChainExpression(e,t){this[e.expression.type](e.expression,t)},MemberExpression(e,t){const i=t.expressionsPrecedence[e.object.type];i===ki||i<t.expressionsPrecedence.MemberExpression?(t.write("("),this[e.object.type](e.object,t),t.write(")")):this[e.object.type](e.object,t),e.computed?(e.optional&&t.write("?."),t.write("["),this[e.property.type](e.property,t),t.write("]")):(e.optional?t.write("?."):t.write("."),this[e.property.type](e.property,t))},MetaProperty(e,t){t.write(e.meta.name+"."+e.property.name,e)},Identifier(e,t){t.write(e.name,e)},PrivateIdentifier(e,t){t.write(`#${e.name}`,e)},Literal(e,t){null!=e.raw?t.write(e.raw,e):null!=e.regex?this.RegExpLiteral(e,t):null!=e.bigint?t.write(e.bigint+"n",e):t.write(bi(e.value),e)},RegExpLiteral(e,t){const{regex:i}=e;t.write(`/${i.pattern}/${i.flags}`,e)}},Di={};class Mi{constructor(e){const t=null==e?Di:e;this.output="",null!=t.output?(this.output=t.output,this.write=this.writeToStream):this.output="",this.generator=null!=t.generator?t.generator:ji,this.expressionsPrecedence=null!=t.expressionsPrecedence?t.expressionsPrecedence:Ei,this.indent=null!=t.indent?t.indent:" ",this.lineEnd=null!=t.lineEnd?t.lineEnd:"\n",this.indentLevel=null!=t.startingIndentLevel?t.startingIndentLevel:0,this.writeComments=!!t.comments&&t.comments,null!=t.sourceMap&&(this.write=null==t.output?this.writeAndMap:this.writeToStreamAndMap,this.sourceMap=t.sourceMap,this.line=1,this.column=0,this.lineEndSize=this.lineEnd.split("\n").length-1,this.mapping={original:null,generated:this,name:void 0,source:t.sourceMap.file||t.sourceMap._file})}write(e){this.output+=e}writeToStream(e){this.output.write(e)}writeAndMap(e,t){this.output+=e,this.map(e,t)}writeToStreamAndMap(e,t){this.output.write(e),this.map(e,t)}map(e,t){if(null!=t){const{type:i}=t;if("L"===i[0]&&"n"===i[2])return this.column=0,void this.line++;if(null!=t.loc){const{mapping:e}=this;e.original=t.loc.start,e.name=t.name,this.sourceMap.addMapping(e)}if("T"===i[0]&&"E"===i[8]||"L"===i[0]&&"i"===i[1]&&"string"==typeof t.value){const{length:t}=e;let{column:i,line:n}=this;for(let r=0;r<t;r++)"\n"===e[r]?(i=0,n++):i++;return this.column=i,void(this.line=n)}}const{length:i}=e,{lineEnd:n}=this;i>0&&(this.lineEndSize>0&&(1===n.length?e[i-1]===n:e.endsWith(n))?(this.line+=this.lineEndSize,this.column=0):this.column+=i)}toString(){return this.output}}const Fi={};function Bi(e,t){const{SourceMapGenerator:i,filePath:n,handlers:r}=t||Fi,s=i?new i({file:n||"<unknown>.js"}):void 0,a=function(e,t){const i=new Mi(t);return i.generator[e.type](e,i),i.output}(e,{comments:!0,generator:{...ji,...r},sourceMap:s||void 0});return{value:a,map:s?s.toJSON():void 0}}const Ui={JSXAttribute:function(e,t){this[e.name.type](e.name,t),null!==e.value&&void 0!==e.value&&(t.write("="),"Literal"===e.value.type?t.write('"'+zi(String(e.value.value)).replace(/"/g,"&quot;")+'"',e):this[e.value.type](e.value,t))},JSXClosingElement:function(e,t){t.write("</"),this[e.name.type](e.name,t),t.write(">")},JSXClosingFragment:function(e,t){t.write("</>",e)},JSXElement:function(e,t){let i=-1;if(this[e.openingElement.type](e.openingElement,t),e.children)for(;++i<e.children.length;){const n=e.children[i];if("JSXSpreadChild"===n.type)throw new Error("JSX spread children are not supported");this[n.type](n,t)}e.closingElement&&this[e.closingElement.type](e.closingElement,t)},JSXEmptyExpression:function(){},JSXExpressionContainer:function(e,t){t.write("{"),this[e.expression.type](e.expression,t),t.write("}")},JSXFragment:function(e,t){let i=-1;if(this[e.openingFragment.type](e.openingFragment,t),e.children)for(;++i<e.children.length;){const n=e.children[i];if("JSXSpreadChild"===n.type)throw new Error("JSX spread children are not supported");this[n.type](n,t)}this[e.closingFragment.type](e.closingFragment,t)},JSXIdentifier:function(e,t){t.write(e.name,e)},JSXMemberExpression:function(e,t){this[e.object.type](e.object,t),t.write("."),this[e.property.type](e.property,t)},JSXNamespacedName:function(e,t){this[e.namespace.type](e.namespace,t),t.write(":"),this[e.name.type](e.name,t)},JSXOpeningElement:function(e,t){let i=-1;if(t.write("<"),this[e.name.type](e.name,t),e.attributes)for(;++i<e.attributes.length;)t.write(" "),this[e.attributes[i].type](e.attributes[i],t);t.write(e.selfClosing?" />":">")},JSXOpeningFragment:function(e,t){t.write("<>",e)},JSXSpreadAttribute:function(e,t){t.write("{"),this.SpreadElement(e,t),t.write("}")},JSXText:function(e,t){t.write(zi(e.value).replace(/[<>{}]/g,Ji),e)}};function zi(e){return e.replace(/&(?=[#a-z])/gi,"&amp;")}function Ji(e){return"<"===e?"&lt;":">"===e?"&gt;":"{"===e?"&#123;":"&#125;"}function qi(){const e=this.data(),t=e.settings||(e.settings={}),i=t.handlers||(t.handlers={});(t.plugins||(t.plugins=[])).push(vi()),Object.assign(i,Ui)}function Gi(e){const t=this;this.compiler=function(i,n){const r={...t.data("settings"),...e},s=Bi(i,{SourceMapGenerator:r.SourceMapGenerator,filePath:n.path||"unknown.js",handlers:r.handlers});return n.map=s.map,s.value}}const Xi={}.hasOwnProperty,Hi=/[A-Z]/g,Wi=new Set(["td","th"]);function $i(e,t){try{return Nt(e,{reactCompat:!0})}catch(e){throw new Error("Could not parse `style` attribute on `"+t+"`",{cause:e})}}function Ki(e){const t={};let i;for(i in e)Xi.call(e,i)&&(t[Qi(i)]=e[i]);return t}function Qi(e){let t=e.replace(Hi,Yi);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function Yi(e){return"-"+e.toLowerCase()}const Zi={}.hasOwnProperty,en=[];function tn(e,t){const i=t?[...t].sort(sn):en;i.length>0&&nn(e,{comments:i,index:0})}function nn(e,t){if(t.index===t.comments.length)return;const i=[],n=[];let r;for(r in e)if(Zi.call(e,r)){const t=e[r];if(t&&"object"==typeof t&&"comments"!==r)if(Array.isArray(t)){let e=-1;for(;++e<t.length;)t[e]&&"string"==typeof t[e].type&&i.push(t[e])}else"string"==typeof t.type&&i.push(t)}i.sort(sn),n.push(...rn(t,e,!1,{leading:!0,trailing:!1}));let s=-1;for(;++s<i.length;)nn(i[s],t);n.push(...rn(t,e,!0,{leading:!1,trailing:i.length>0})),n.length>0&&(e.comments=n)}function rn(e,t,i,n){const r=[];for(;e.comments[e.index]&&sn(e.comments[e.index],t,i)<1;)r.push(Object.assign({},e.comments[e.index++],n));return r}function sn(e,t,i){const n=i?"end":"start";return e.range&&t.range?e.range[0]-t.range[i?1:0]:e.loc&&e.loc.start&&t.loc&&t.loc[n]?e.loc.start.line-t.loc[n].line||e.loc.start.column-t.loc[n].column:"start"in e&&n in t?e.start-t[n]:Number.NaN}function an(e,t){const i=e.data&&e.data.estree,n=i&&i.comments||[];let r;i&&(t.comments.push(...n),tn(i,i.comments),r=i.body[0]&&"ExpressionStatement"===i.body[0].type&&i.body[0].expression||void 0),r||(r={type:"JSXEmptyExpression"},t.patch(e,r));const s={type:"JSXExpressionContainer",expression:r};return t.inherit(e,s),s}function on(e,t){const i=t.schema;let n=i;const r=e.attributes||[];let s=-1;e.name&&"html"===i.space&&"svg"===e.name.toLowerCase()&&(n=Tt,t.schema=n);const a=t.all(e),o=[];for(;++s<r.length;){const e=r[s],i=e.value;let n;if("mdxJsxAttribute"===e.type){if(null==i)n=null;else if("object"==typeof i){const e=i.data&&i.data.estree,r=e&&e.comments||[];let s;e&&(t.comments.push(...r),tn(e,e.comments),s=e.body[0]&&"ExpressionStatement"===e.body[0].type&&e.body[0].expression||void 0),n={type:"JSXExpressionContainer",expression:s||{type:"JSXEmptyExpression"}},t.inherit(i,n)}else n={type:"Literal",value:String(i)};const r={type:"JSXAttribute",name:t.createJsxAttributeName(e.name),value:n};t.inherit(e,r),o.push(r)}else{const i=e.data&&e.data.estree,n=i&&i.comments||[];let r;i&&(t.comments.push(...n),tn(i,i.comments),r=i.body[0]&&"ExpressionStatement"===i.body[0].type&&i.body[0].expression&&"ObjectExpression"===i.body[0].expression.type&&i.body[0].expression.properties&&i.body[0].expression.properties[0]&&"SpreadElement"===i.body[0].expression.properties[0].type&&i.body[0].expression.properties[0].argument||void 0);const s={type:"JSXSpreadAttribute",argument:r||{type:"ObjectExpression",properties:[]}};t.inherit(e,s),o.push(s)}}t.schema=i;const l=e.name?{type:"JSXElement",openingElement:{type:"JSXOpeningElement",attributes:o,name:t.createJsxElementName(e.name),selfClosing:0===a.length},closingElement:a.length>0?{type:"JSXClosingElement",name:t.createJsxElementName(e.name)}:null,children:a}:{type:"JSXFragment",openingFragment:{type:"JSXOpeningFragment"},closingFragment:{type:"JSXClosingFragment"},children:a};return t.inherit(e,l),l}const ln={comment:function(e,t){const i={type:"Block",value:e.value};t.inherit(e,i),t.comments.push(i);const n={type:"JSXEmptyExpression",comments:[Object.assign({},i,{leading:!1,trailing:!0})]};t.patch(e,n);const r={type:"JSXExpressionContainer",expression:n};return t.patch(e,r),r},doctype:function(){},element:function(e,t){const i=t.schema;let n=i;const r=e.properties||{};"html"===i.space&&"svg"===e.tagName.toLowerCase()&&(n=Tt,t.schema=n);const s=t.all(e),a=[];let o,l,c;for(o in r)if(Xi.call(r,o)){let i=r[o];const s=Ct(n,o);let h;if(null==i||!1===i||"number"==typeof i&&Number.isNaN(i)||!i&&s.boolean)continue;if(o="react"===t.elementAttributeNameCase&&s.space?At[s.property]||s.property:s.attribute,Array.isArray(i)&&(i=s.commaSeparated?_t(i):It(i)),"style"===o){let n="object"==typeof i?i:$i(String(i),e.tagName);"css"===t.stylePropertyNameCase&&(n=Ki(n));const r=[];let s;for(s in n)Xi.call(n,s)&&r.push({type:"Property",method:!1,shorthand:!1,computed:!1,key:St(s)?{type:"Identifier",name:s}:{type:"Literal",value:s},value:{type:"Literal",value:String(n[s])},kind:"init"});c=r,h={type:"JSXExpressionContainer",expression:{type:"ObjectExpression",properties:r}}}else if(!0===i)h=null;else{if(t.tableCellAlignToStyle&&Wi.has(e.tagName)&&"align"===o){l=String(i);continue}h={type:"Literal",value:String(i)}}St(o,{jsx:!0})?a.push({type:"JSXAttribute",name:{type:"JSXIdentifier",name:o},value:h}):a.push({type:"JSXSpreadAttribute",argument:{type:"ObjectExpression",properties:[{type:"Property",method:!1,shorthand:!1,computed:!1,key:{type:"Literal",value:String(o)},value:h||{type:"Literal",value:!0},kind:"init"}]}})}if(void 0!==l){c||(c=[],a.push({type:"JSXAttribute",name:{type:"JSXIdentifier",name:"style"},value:{type:"JSXExpressionContainer",expression:{type:"ObjectExpression",properties:c}}}));const e="css"===t.stylePropertyNameCase?Qi("textAlign"):"textAlign";c.push({type:"Property",method:!1,shorthand:!1,computed:!1,key:St(e)?{type:"Identifier",name:e}:{type:"Literal",value:e},value:{type:"Literal",value:l},kind:"init"})}t.schema=i;const h={type:"JSXElement",openingElement:{type:"JSXOpeningElement",attributes:a,name:t.createJsxElementName(e.tagName),selfClosing:0===s.length},closingElement:s.length>0?{type:"JSXClosingElement",name:t.createJsxElementName(e.tagName)}:null,children:s};return t.inherit(e,h),h},mdxFlowExpression:an,mdxJsxFlowElement:on,mdxJsxTextElement:on,mdxTextExpression:an,mdxjsEsm:function(e,t){const i=e.data&&e.data.estree,n=i&&i.comments||[];i&&(t.comments.push(...n),tn(i,n),t.esm.push(...i.body))},root:function(e,t){const i=t.all(e),n=[];let r,s=-1;for(;++s<i.length;){const e=i[s];"JSXExpressionContainer"===e.type&&"Literal"===e.expression.type&&Pt(String(e.expression.value))?r&&r.push(e):(r&&n.push(...r),n.push(e),r=[])}const a={type:"JSXFragment",openingFragment:{type:"JSXOpeningFragment"},closingFragment:{type:"JSXClosingFragment"},children:n};return t.inherit(e,a),a},text:function(e,t){const i=String(e.value||"");if(i){const n={type:"Literal",value:i};t.inherit(e,n);const r={type:"JSXExpressionContainer",expression:n};return t.patch(e,r),r}}};const cn={}.hasOwnProperty,hn=new Set(["table","tbody","thead","tfoot","tr"]);function pn(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function un(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function dn(e){const t=e.children||[];let i=-1;const n=[],r="html"===this.schema.space&&"element"===e.type&&hn.has(e.tagName.toLowerCase());for(;++i<t.length;){const e=t[i];if(r&&"text"===e.type&&"\n"===e.value)continue;const s=this.handle(e);Array.isArray(s)?n.push(...s):s&&n.push(s)}return n}function fn(e,t){const i=e.data;let n,r;if(mn(e,t),i){for(r in i)cn.call(i,r)&&"estree"!==r&&(n||(n={}),n[r]=i[r]);n&&(t.data=n)}}function mn(e,t){const i=Vt(e);i&&void 0!==i.start.offset&&void 0!==i.end.offset&&(t.start=i.start.offset,t.end=i.end.offset,t.loc={start:{line:i.start.line,column:i.start.column-1},end:{line:i.end.line,column:i.end.column-1}},t.range=[i.start.offset,i.end.offset])}function gn(e){const t=yn(e);if("JSXMemberExpression"===t.type)throw new Error("Member expressions in attribute names are not supported");return t}function xn(e){return yn(e)}function yn(e){if(e.includes(".")){const t=e.split(".");let i=t.shift(),n={type:"JSXIdentifier",name:i};for(;i=t.shift();)n={type:"JSXMemberExpression",object:n,property:{type:"JSXIdentifier",name:i}};return n}if(e.includes(":")){const t=e.split(":");return{type:"JSXNamespacedName",namespace:{type:"JSXIdentifier",name:t[0]},name:{type:"JSXIdentifier",name:t[1]}}}return{type:"JSXIdentifier",name:e}}function vn(e,t){const i=function(e){const t=at("type",{invalid:pn,unknown:un,handlers:{...ln,...e.handlers}});return{elementAttributeNameCase:e.elementAttributeNameCase||"react",schema:"svg"===e.space?Tt:Lt,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==e.tableCellAlignToStyle,comments:[],esm:[],all:dn,createJsxAttributeName:gn,createJsxElementName:xn,handle:function(e){return t(e,this)},inherit:fn,patch:mn}}(t||{});let n=i.handle(e);const r=i.esm;if(n){"JSXFragment"!==n.type&&"JSXElement"!==n.type&&(n={type:"JSXFragment",openingFragment:{type:"JSXOpeningFragment"},closingFragment:{type:"JSXClosingFragment"},children:[n]},i.patch(e,n));const t={type:"ExpressionStatement",expression:n};i.patch(e,t),r.push(t)}const s={type:"Program",body:r,sourceType:"module",comments:i.comments};return i.patch(e,s),s}function bn(e){return function(t){return vn(t,e)}}function wn(e){this.enter({type:"mdxFlowExpression",value:""},e),this.buffer()}function kn(e){this.enter({type:"mdxTextExpression",value:""},e),this.buffer()}function En(e){const t=this.resume(),i=e.estree,n=this.stack[this.stack.length-1];st("mdxFlowExpression"===n.type||"mdxTextExpression"===n.type),this.exit(e),n.value=t,i&&(n.data={estree:i})}function Sn(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Cn(e,t,i){const n=e.value||"";return"{"+i.indentLines(n,function(e,t,i){return(0===t||i?"":" ")+e})+"}"}const An=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],_n={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function In(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function Nn(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Tn(e){return function(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||In(e)}const Pn=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function Ln(e){return e>=55296&&e<=57343||e>1114111}function Vn(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||!(65535&~e)||65534==(65535&e)}const Rn=/["&'<>`]/g,On=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,jn=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Dn=/[|\\{}()[\]^$+*?.]/g,Mn=new WeakMap;function Fn(e,t){return e=e.replace(t.subset?function(e){let t=Mn.get(e);t||(t=function(e){const t=[];let i=-1;for(;++i<e.length;)t.push(e[i].replace(Dn,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(e),Mn.set(e,t));return t}(t.subset):Rn,i),t.subset||t.escapeOnly?e:e.replace(On,function(e,i,n){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,n.charCodeAt(i+2),t)}).replace(jn,i);function i(e,i,n){return t.format(e.charCodeAt(0),n.charCodeAt(i+1),t)}}function Bn(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Un(e,t){return Fn(e,Object.assign({format:Bn},t))}function zn(){return{canContainEols:["mdxJsxTextElement"],enter:{mdxJsxFlowTag:n,mdxJsxFlowTagClosingMarker:r,mdxJsxFlowTagAttribute:p,mdxJsxFlowTagExpressionAttribute:u,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:a,mdxJsxTextTag:n,mdxJsxTextTagClosingMarker:r,mdxJsxTextTagAttribute:p,mdxJsxTextTagExpressionAttribute:u,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:a},exit:{mdxJsxFlowTagClosingMarker:o,mdxJsxFlowTagNamePrimary:l,mdxJsxFlowTagNameMember:c,mdxJsxFlowTagNameLocal:h,mdxJsxFlowTagExpressionAttribute:d,mdxJsxFlowTagExpressionAttributeValue:i,mdxJsxFlowTagAttributeNamePrimary:f,mdxJsxFlowTagAttributeNameLocal:m,mdxJsxFlowTagAttributeValueLiteral:g,mdxJsxFlowTagAttributeValueLiteralValue:i,mdxJsxFlowTagAttributeValueExpression:x,mdxJsxFlowTagAttributeValueExpressionValue:i,mdxJsxFlowTagSelfClosingMarker:y,mdxJsxFlowTag:v,mdxJsxTextTagClosingMarker:o,mdxJsxTextTagNamePrimary:l,mdxJsxTextTagNameMember:c,mdxJsxTextTagNameLocal:h,mdxJsxTextTagExpressionAttribute:d,mdxJsxTextTagExpressionAttributeValue:i,mdxJsxTextTagAttributeNamePrimary:f,mdxJsxTextTagAttributeNameLocal:m,mdxJsxTextTagAttributeValueLiteral:g,mdxJsxTextTagAttributeValueLiteralValue:i,mdxJsxTextTagAttributeValueExpression:x,mdxJsxTextTagAttributeValueExpressionValue:i,mdxJsxTextTagSelfClosingMarker:y,mdxJsxTextTag:v}};function e(){this.buffer()}function t(e){return{line:e.line,column:e.column,offset:e.offset}}function i(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function n(e){const t={name:void 0,attributes:[],close:!1,selfClosing:!1,start:e.start,end:e.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=t,this.buffer()}function r(e){if(0===this.data.mdxJsxTagStack.length)throw new lt("Unexpected closing slash `/` in tag, expected an open tag first",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function s(e){if(this.data.mdxJsxTag.close)throw new lt("Unexpected attribute in closing tag, expected the end of the tag",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-attribute")}function a(e){if(this.data.mdxJsxTag.close)throw new lt("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-self-closing-slash")}function o(){this.data.mdxJsxTag.close=!0}function l(e){this.data.mdxJsxTag.name=this.sliceSerialize(e)}function c(e){this.data.mdxJsxTag.name+="."+this.sliceSerialize(e)}function h(e){this.data.mdxJsxTag.name+=":"+this.sliceSerialize(e)}function p(e){const i=this.data.mdxJsxTag;s.call(this,e),i.attributes.push({type:"mdxJsxAttribute",name:"",value:null,position:{start:t(e.start),end:void 0}})}function u(e){const i=this.data.mdxJsxTag;s.call(this,e),i.attributes.push({type:"mdxJsxExpressionAttribute",value:"",position:{start:t(e.start),end:void 0}}),this.buffer()}function d(e){const i=this.data.mdxJsxTag,n=i.attributes[i.attributes.length-1];st("mdxJsxExpressionAttribute"===n.type);const r=e.estree;n.value=this.resume(),st(void 0!==n.position),n.position.end=t(e.end),r&&(n.data={estree:r})}function f(e){const i=this.data.mdxJsxTag,n=i.attributes[i.attributes.length-1];st("mdxJsxAttribute"===n.type),n.name=this.sliceSerialize(e),st(void 0!==n.position),n.position.end=t(e.end)}function m(e){const i=this.data.mdxJsxTag,n=i.attributes[i.attributes.length-1];st("mdxJsxAttribute"===n.type),n.name+=":"+this.sliceSerialize(e),st(void 0!==n.position),n.position.end=t(e.end)}function g(e){const i=this.data.mdxJsxTag,n=i.attributes[i.attributes.length-1];n.value=function(e,t){const i=t||{},n="string"==typeof i.additional?i.additional.charCodeAt(0):i.additional,r=[];let s,a,o=0,l=-1,c="";i.position&&("start"in i.position||"indent"in i.position?(a=i.position.indent,s=i.position.start):s=i.position);let h,p=(s?s.line:0)||1,u=(s?s.column:0)||1,d=f();for(o--;++o<=e.length;)if(10===h&&(u=(a?a[l]:0)||1),h=e.charCodeAt(o),38===h){const t=e.charCodeAt(o+1);if(9===t||10===t||12===t||32===t||38===t||60===t||Number.isNaN(t)||n&&t===n){c+=String.fromCharCode(h),u++;continue}const s=o+1;let a,l=s,p=s;if(35===t){p=++l;const t=e.charCodeAt(p);88===t||120===t?(a="hexadecimal",p=++l):a="decimal"}else a="named";let x="",y="",v="";const b="named"===a?Tn:"decimal"===a?In:Nn;for(p--;++p<=e.length;){const t=e.charCodeAt(p);if(!b(t))break;v+=String.fromCharCode(t),"named"===a&&An.includes(v)&&(x=v,y=ot(v))}let w=59===e.charCodeAt(p);if(w){p++;const e="named"===a&&ot(v);e&&(x=v,y=e)}let k=1+p-s,E="";if(w||!1!==i.nonTerminated)if(v)if("named"===a){if(w&&!y)m(5,1);else if(x!==v&&(p=l+x.length,k=1+p-l,w=!1),!w){const t=x?1:3;if(i.attribute){const i=e.charCodeAt(p);61===i?(m(t,k),y=""):Tn(i)?y="":m(t,k)}else m(t,k)}E=y}else{w||m(2,k);let e=Number.parseInt(v,"hexadecimal"===a?16:10);if(Ln(e))m(7,k),E=String.fromCharCode(65533);else if(e in _n)m(6,k),E=_n[e];else{let t="";Vn(e)&&m(6,k),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|1023&e),E=t+String.fromCharCode(e)}}else"named"!==a&&m(4,k);if(E){g(),d=f(),o=p-1,u+=p-s+1,r.push(E);const t=f();t.offset++,i.reference&&i.reference.call(i.referenceContext||void 0,E,{start:d,end:t},e.slice(s-1,p)),d=t}else v=e.slice(s-1,p),c+=v,u+=v.length,o=p-1}else 10===h&&(p++,l++,u=0),Number.isNaN(h)?g():(c+=String.fromCharCode(h),u++);return r.join("");function f(){return{line:p,column:u,offset:o+((s?s.offset:0)||0)}}function m(e,t){let n;i.warning&&(n=f(),n.column+=t,n.offset+=t,i.warning.call(i.warningContext||void 0,Pn[e],n,e))}function g(){c&&(r.push(c),i.text&&i.text.call(i.textContext||void 0,c,{start:d,end:f()}),c="")}}(this.resume(),{nonTerminated:!1}),st(void 0!==n.position),n.position.end=t(e.end)}function x(e){const i=this.data.mdxJsxTag,n=i.attributes[i.attributes.length-1];st("mdxJsxAttribute"===n.type);const r={type:"mdxJsxAttributeValueExpression",value:this.resume()},s=e.estree;s&&(r.data={estree:s}),n.value=r,st(void 0!==n.position),n.position.end=t(e.end)}function y(){this.data.mdxJsxTag.selfClosing=!0}function v(e){const t=this.data.mdxJsxTag,i=this.data.mdxJsxTagStack,n=i[i.length-1];if(t.close&&n.name!==t.name)throw new lt("Unexpected closing tag `"+k(t)+"`, expected corresponding closing tag for `"+k(n)+"` ("+ct(n)+")",{start:e.start,end:e.end},"mdast-util-mdx-jsx:end-tag-mismatch");this.resume(),t.close?i.pop():this.enter({type:"mdxJsxTextTag"===e.type?"mdxJsxTextElement":"mdxJsxFlowElement",name:t.name||null,attributes:t.attributes,children:[]},e,b),t.selfClosing||t.close?this.exit(e,w):i.push(t)}function b(e,t){const i=this.data.mdxJsxTagStack,n=i[i.length-1],r=e?" before the end of `"+e.type+"`":"",s=e?{start:e.start,end:e.end}:void 0;throw new lt("Expected a closing tag for `"+k(n)+"` ("+ct({start:t.start,end:t.end})+")"+r,s,"mdast-util-mdx-jsx:end-tag-mismatch")}function w(e,t){const i=this.data.mdxJsxTag;throw new lt("Expected the closing tag `"+k(i)+"` either after the end of `"+t.type+"` ("+ct(t.end)+") or another opening tag after the start of `"+t.type+"` ("+ct(t.start)+")",{start:e.start,end:e.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function k(e){return"<"+(e.close?"/":"")+(e.name||"")+">"}}function Jn(e){const t=e||{},i=t.quote||'"',n=t.quoteSmart||!1,r=t.tightSelfClosing||!1,s=t.printWidth||Number.POSITIVE_INFINITY,a='"'===i?"'":'"';if('"'!==i&&"'"!==i)throw new Error("Cannot serialize attribute values with `"+i+"` for `options.quote`, expected `\"`, or `'`");return o.peek=Xn,{handlers:{mdxJsxFlowElement:o,mdxJsxTextElement:o},unsafe:[{character:"<",inConstruct:["phrasing"]},{atBreak:!0,character:"<"}],fences:!0,resourceLink:!0};function o(e,t,o,l){const c="mdxJsxFlowElement"===e.type,h=!!e.name&&(!e.children||0===e.children.length),p=Gn(qn(o)),u=o.createTracker(l),d=o.createTracker(l),f=[],m=(c?p:"")+"<"+(e.name||""),g=o.enter(e.type);if(u.move(m),d.move(m),e.attributes&&e.attributes.length>0){if(!e.name)throw new Error("Cannot serialize fragment w/ attributes");let t=-1;for(;++t<e.attributes.length;){const r=e.attributes[t];let s;if("mdxJsxExpressionAttribute"===r.type)s="{"+(r.value||"")+"}";else{if(!r.name)throw new Error("Cannot serialize attribute w/o name");const e=r.value,t=r.name;let o="";if(null==e);else if("object"==typeof e)o="{"+(e.value||"")+"}";else{const t=n&&ht(e,i)>ht(e,a)?a:i;o=t+Un(e,{subset:[t]})+t}s=t+(o?"=":"")+o}f.push(s)}}let x=!1;const y=f.join(" ");c&&(/\r?\n|\r/.test(y)||u.current().now.column+y.length+(h?r?2:3:1)>s)&&(x=!0);let v=u,b=m;if(x){v=d;let e=-1;for(;++e<f.length;)f[e]=p+" "+f[e];b+=v.move("\n"+f.join("\n")+"\n"+p)}else y&&(b+=v.move(" "+y));return h&&(b+=v.move((r||x?"":" ")+"/")),b+=v.move(">"),e.children&&e.children.length>0&&("mdxJsxTextElement"===e.type?b+=v.move(o.containerPhrasing(e,{...v.current(),before:">",after:"<"})):(v.shift(2),b+=v.move("\n"),b+=v.move(function(e,t,i){const n=t.indexStack,r=e.children,s=t.createTracker(i),a=Gn(qn(t)),o=[];let l=-1;n.push(-1);for(;++l<r.length;){const i=r[l];n[n.length-1]=l;const c={before:"\n",after:"\n",...s.current()},h=t.handle(i,e,t,c),p="mdxJsxFlowElement"===i.type?h:t.indentLines(h,function(e,t,i){return(i?"":a)+e});o.push(s.move(p)),"list"!==i.type&&(t.bulletLastUsed=void 0),l<r.length-1&&o.push(s.move("\n\n"))}return n.pop(),o.join("")}(e,o,v.current())),b+=v.move("\n"))),h||(b+=v.move((c?p:"")+"</"+(e.name||"")+">")),g(),b}}function qn(e){let t=0,i=e.stack.length;for(;--i>-1;){const n=e.stack[i];if("blockquote"===n||"listItem"===n)break;"mdxJsxFlowElement"===n&&t++}return t}function Gn(e){return" ".repeat(e)}function Xn(){return"<"}function Hn(e){this.enter({type:"mdxjsEsm",value:""},e),this.buffer()}function Wn(e){const t=this.resume(),i=this.stack[this.stack.length-1];st("mdxjsEsm"===i.type),this.exit(e);const n=e.estree;i.value=t,n&&(i.data={estree:n})}function $n(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Kn(e){return e.value||""}var Qn=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],Yn=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],Zn="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",er={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},tr="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",ir={5:tr,"5module":tr+" export import",6:tr+" const class extends export import super"},nr=/^in(stanceof)?$/,rr=new RegExp("["+Zn+"]"),sr=new RegExp("["+Zn+"‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function ar(e,t){for(var i=65536,n=0;n<t.length;n+=2){if((i+=t[n])>e)return!1;if((i+=t[n+1])>=e)return!0}return!1}function or(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&rr.test(String.fromCharCode(e)):!1!==t&&ar(e,Yn)))}function lr(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&sr.test(String.fromCharCode(e)):!1!==t&&(ar(e,Yn)||ar(e,Qn)))))}var cr=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function hr(e,t){return new cr(e,{beforeExpr:!0,binop:t})}var pr={beforeExpr:!0},ur={startsExpr:!0},dr={};function fr(e,t){return void 0===t&&(t={}),t.keyword=e,dr[e]=new cr(e,t)}var mr={num:new cr("num",ur),regexp:new cr("regexp",ur),string:new cr("string",ur),name:new cr("name",ur),privateId:new cr("privateId",ur),eof:new cr("eof"),bracketL:new cr("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new cr("]"),braceL:new cr("{",{beforeExpr:!0,startsExpr:!0}),braceR:new cr("}"),parenL:new cr("(",{beforeExpr:!0,startsExpr:!0}),parenR:new cr(")"),comma:new cr(",",pr),semi:new cr(";",pr),colon:new cr(":",pr),dot:new cr("."),question:new cr("?",pr),questionDot:new cr("?."),arrow:new cr("=>",pr),template:new cr("template"),invalidTemplate:new cr("invalidTemplate"),ellipsis:new cr("...",pr),backQuote:new cr("`",ur),dollarBraceL:new cr("${",{beforeExpr:!0,startsExpr:!0}),eq:new cr("=",{beforeExpr:!0,isAssign:!0}),assign:new cr("_=",{beforeExpr:!0,isAssign:!0}),incDec:new cr("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new cr("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:hr("||",1),logicalAND:hr("&&",2),bitwiseOR:hr("|",3),bitwiseXOR:hr("^",4),bitwiseAND:hr("&",5),equality:hr("==/!=/===/!==",6),relational:hr("</>/<=/>=",7),bitShift:hr("<</>>/>>>",8),plusMin:new cr("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:hr("%",10),star:hr("*",10),slash:hr("/",10),starstar:new cr("**",{beforeExpr:!0}),coalesce:hr("??",1),_break:fr("break"),_case:fr("case",pr),_catch:fr("catch"),_continue:fr("continue"),_debugger:fr("debugger"),_default:fr("default",pr),_do:fr("do",{isLoop:!0,beforeExpr:!0}),_else:fr("else",pr),_finally:fr("finally"),_for:fr("for",{isLoop:!0}),_function:fr("function",ur),_if:fr("if"),_return:fr("return",pr),_switch:fr("switch"),_throw:fr("throw",pr),_try:fr("try"),_var:fr("var"),_const:fr("const"),_while:fr("while",{isLoop:!0}),_with:fr("with"),_new:fr("new",{beforeExpr:!0,startsExpr:!0}),_this:fr("this",ur),_super:fr("super",ur),_class:fr("class",ur),_extends:fr("extends",pr),_export:fr("export"),_import:fr("import",ur),_null:fr("null",ur),_true:fr("true",ur),_false:fr("false",ur),_in:fr("in",{beforeExpr:!0,binop:7}),_instanceof:fr("instanceof",{beforeExpr:!0,binop:7}),_typeof:fr("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:fr("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:fr("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},gr=/\r\n?|\n|\u2028|\u2029/,xr=new RegExp(gr.source,"g");function yr(e){return 10===e||13===e||8232===e||8233===e}function vr(e,t,i){void 0===i&&(i=e.length);for(var n=t;n<i;n++){var r=e.charCodeAt(n);if(yr(r))return n<i-1&&13===r&&10===e.charCodeAt(n+1)?n+2:n+1}return-1}var br=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,wr=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,kr=Object.prototype,Er=kr.hasOwnProperty,Sr=kr.toString,Cr=Object.hasOwn||function(e,t){return Er.call(e,t)},Ar=Array.isArray||function(e){return"[object Array]"===Sr.call(e)},_r=Object.create(null);function Ir(e){return _r[e]||(_r[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function Nr(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}var Tr=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Pr=function(e,t){this.line=e,this.column=t};Pr.prototype.offset=function(e){return new Pr(this.line,this.column+e)};var Lr=function(e,t,i){this.start=t,this.end=i,null!==e.sourceFile&&(this.source=e.sourceFile)};function Vr(e,t){for(var i=1,n=0;;){var r=vr(e,n,t);if(r<0)return new Pr(i,t-n);++i,n=r}}var Rr={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Or=!1;function jr(e){var t={};for(var i in Rr)t[i]=e&&Cr(e,i)?e[i]:Rr[i];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!Or&&"object"==typeof console&&console.warn&&(Or=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),e&&null!=e.allowHashBang||(t.allowHashBang=t.ecmaVersion>=14),Ar(t.onToken)){var n=t.onToken;t.onToken=function(e){return n.push(e)}}if(Ar(t.onComment)&&(t.onComment=function(e,t){return function(i,n,r,s,a,o){var l={type:i?"Block":"Line",value:n,start:r,end:s};e.locations&&(l.loc=new Lr(this,a,o)),e.ranges&&(l.range=[r,s]),t.push(l)}}(t,t.onComment)),"commonjs"===t.sourceType&&t.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return t}var Dr=256,Mr=259;function Fr(e,t){return 2|(e?4:0)|(t?8:0)}var Br=function(e,t,i){this.options=e=jr(e),this.sourceFile=e.sourceFile,this.keywords=Ir(ir[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var n="";!0!==e.allowReserved&&(n=er[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(n+=" await")),this.reservedWords=Ir(n);var r=(n?n+" ":"")+er.strict;this.reservedWordsStrict=Ir(r),this.reservedWordsStrictBind=Ir(r+" "+er.strictBind),this.input=String(t),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf("\n",i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(gr).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=mr.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope("commonjs"===this.options.sourceType?2:1),this.regexpState=null,this.privateNameStack=[]},Ur={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};Br.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},Ur.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Ur.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},Ur.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},Ur.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(768&t)return!1;if(2&t)return(4&t)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Ur.allowReturn.get=function(){return!!this.inFunction||!!(this.options.allowReturnOutsideFunction&&1&this.currentVarScope().flags)},Ur.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0||this.options.allowSuperOutsideMethod},Ur.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Ur.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Ur.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(768&t||2&t&&!(16&t))return!0}return!1},Ur.allowUsing.get=function(){var e=this.currentScope().flags;return!(1024&e)&&!(!this.inModule&&1&e)},Ur.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Dr)>0},Br.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var i=this,n=0;n<e.length;n++)i=e[n](i);return i},Br.parse=function(e,t){return new this(t,e).parse()},Br.parseExpressionAt=function(e,t,i){var n=new this(i,e,t);return n.nextToken(),n.parseExpression()},Br.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(Br.prototype,Ur);var zr=Br.prototype,Jr=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;zr.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){wr.lastIndex=e,e+=wr.exec(this.input)[0].length;var t=Jr.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){wr.lastIndex=e+t[0].length;var i=wr.exec(this.input),n=i.index+i[0].length,r=this.input.charAt(n);return";"===r||"}"===r||gr.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||"!"===r&&"="===this.input.charAt(n+1))}e+=t[0].length,wr.lastIndex=e,e+=wr.exec(this.input)[0].length,";"===this.input[e]&&e++}},zr.eat=function(e){return this.type===e&&(this.next(),!0)},zr.isContextual=function(e){return this.type===mr.name&&this.value===e&&!this.containsEsc},zr.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},zr.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},zr.canInsertSemicolon=function(){return this.type===mr.eof||this.type===mr.braceR||gr.test(this.input.slice(this.lastTokEnd,this.start))},zr.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},zr.semicolon=function(){this.eat(mr.semi)||this.insertSemicolon()||this.unexpected()},zr.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},zr.expect=function(e){this.eat(e)||this.unexpected()},zr.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var qr=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};zr.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var i=t?e.parenthesizedAssign:e.parenthesizedBind;i>-1&&this.raiseRecoverable(i,t?"Assigning to rvalue":"Parenthesized pattern")}},zr.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,n=e.doubleProto;if(!t)return i>=0||n>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")},zr.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},zr.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var Gr=Br.prototype;Gr.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==mr.eof;){var i=this.parseStatement(null,!0,t);e.body.push(i)}if(this.inModule)for(var n=0,r=Object.keys(this.undefinedExports);n<r.length;n+=1){var s=r[n];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType="commonjs"===this.options.sourceType?"script":this.options.sourceType,this.finishNode(e,"Program")};var Xr={kind:"loop"},Hr={kind:"switch"};Gr.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;wr.lastIndex=this.pos;var t=wr.exec(this.input),i=this.pos+t[0].length,n=this.fullCharCodeAt(i);if(91===n||92===n)return!0;if(e)return!1;if(123===n)return!0;if(or(n)){var r=i;do{i+=n<=65535?1:2}while(lr(n=this.fullCharCodeAt(i)));if(92===n)return!0;var s=this.input.slice(r,i);if(!nr.test(s))return!0}return!1},Gr.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;wr.lastIndex=this.pos;var e,t=wr.exec(this.input),i=this.pos+t[0].length;return!(gr.test(this.input.slice(this.pos,i))||"function"!==this.input.slice(i,i+8)||i+8!==this.input.length&&(lr(e=this.fullCharCodeAt(i+8))||92===e))},Gr.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;wr.lastIndex=this.pos;var i=wr.exec(this.input),n=this.pos+i[0].length;if(gr.test(this.input.slice(this.pos,n)))return!1;if(e){var r,s=n+5;if("using"!==this.input.slice(n,s)||s===this.input.length||lr(r=this.fullCharCodeAt(s))||92===r)return!1;wr.lastIndex=s;var a=wr.exec(this.input);if(n=s+a[0].length,a&&gr.test(this.input.slice(s,n)))return!1}var o=this.fullCharCodeAt(n);if(!or(o)&&92!==o)return!1;var l=n;do{n+=o<=65535?1:2}while(lr(o=this.fullCharCodeAt(n)));if(92===o)return!0;var c=this.input.slice(l,n);return!(nr.test(c)||t&&"of"===c)},Gr.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)},Gr.isUsing=function(e){return this.isUsingKeyword(!1,e)},Gr.parseStatement=function(e,t,i){var n,r=this.type,s=this.startNode();switch(this.isLet(e)&&(r=mr._var,n="let"),r){case mr._break:case mr._continue:return this.parseBreakContinueStatement(s,r.keyword);case mr._debugger:return this.parseDebuggerStatement(s);case mr._do:return this.parseDoStatement(s);case mr._for:return this.parseForStatement(s);case mr._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case mr._class:return e&&this.unexpected(),this.parseClass(s,!0);case mr._if:return this.parseIfStatement(s);case mr._return:return this.parseReturnStatement(s);case mr._switch:return this.parseSwitchStatement(s);case mr._throw:return this.parseThrowStatement(s);case mr._try:return this.parseTryStatement(s);case mr._const:case mr._var:return n=n||this.value,e&&"var"!==n&&this.unexpected(),this.parseVarStatement(s,n);case mr._while:return this.parseWhileStatement(s);case mr._with:return this.parseWithStatement(s);case mr.braceL:return this.parseBlock(!0,s);case mr.semi:return this.parseEmptyStatement(s);case mr._export:case mr._import:if(this.options.ecmaVersion>10&&r===mr._import){wr.lastIndex=this.pos;var a=wr.exec(this.input),o=this.pos+a[0].length,l=this.input.charCodeAt(o);if(40===l||46===l)return this.parseExpressionStatement(s,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===mr._import?this.parseImport(s):this.parseExport(s,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var c=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(c)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),"await using"===c&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(s,!1,c),this.semicolon(),this.finishNode(s,"VariableDeclaration");var h=this.value,p=this.parseExpression();return r===mr.name&&"Identifier"===p.type&&this.eat(mr.colon)?this.parseLabeledStatement(s,h,p,e):this.parseExpressionStatement(s,p)}},Gr.parseBreakContinueStatement=function(e,t){var i="break"===t;this.next(),this.eat(mr.semi)||this.insertSemicolon()?e.label=null:this.type!==mr.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var n=0;n<this.labels.length;++n){var r=this.labels[n];if(null==e.label||r.name===e.label.name){if(null!=r.kind&&(i||"loop"===r.kind))break;if(e.label&&i)break}}return n===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,i?"BreakStatement":"ContinueStatement")},Gr.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},Gr.parseDoStatement=function(e){return this.next(),this.labels.push(Xr),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(mr._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(mr.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},Gr.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Xr),this.enterScope(0),this.expect(mr.parenL),this.type===mr.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===mr._var||this.type===mr._const||i){var n=this.startNode(),r=i?"let":this.value;return this.next(),this.parseVar(n,!0,r),this.finishNode(n,"VariableDeclaration"),this.parseForAfterInit(e,n,t)}var s=this.isContextual("let"),a=!1,o=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(o){var l=this.startNode();return this.next(),"await using"===o&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(l,!0,o),this.finishNode(l,"VariableDeclaration"),this.parseForAfterInit(e,l,t)}var c=this.containsEsc,h=new qr,p=this.start,u=t>-1?this.parseExprSubscripts(h,"await"):this.parseExpression(!0,h);return this.type===mr._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===mr._in&&this.unexpected(t),e.await=!0):a&&this.options.ecmaVersion>=8&&(u.start!==p||c||"Identifier"!==u.type||"async"!==u.name?this.options.ecmaVersion>=9&&(e.await=!1):this.unexpected()),s&&a&&this.raise(u.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(u,!1,h),this.checkLValPattern(u),this.parseForIn(e,u)):(this.checkExpressionErrors(h,!0),t>-1&&this.unexpected(t),this.parseFor(e,u))},Gr.parseForAfterInit=function(e,t,i){return(this.type===mr._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===t.declarations.length?(this.options.ecmaVersion>=9&&(this.type===mr._in?i>-1&&this.unexpected(i):e.await=i>-1),this.parseForIn(e,t)):(i>-1&&this.unexpected(i),this.parseFor(e,t))},Gr.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,$r|(i?0:Kr),!1,t)},Gr.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(mr._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},Gr.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(mr.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},Gr.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(mr.braceL),this.labels.push(Hr),this.enterScope(1024);for(var i=!1;this.type!==mr.braceR;)if(this.type===mr._case||this.type===mr._default){var n=this.type===mr._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),n?t.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,t.test=null),this.expect(mr.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},Gr.parseThrowStatement=function(e){return this.next(),gr.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Wr=[];Gr.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?32:0),this.checkLValPattern(e,t?4:2),this.expect(mr.parenR),e},Gr.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===mr._catch){var t=this.startNode();this.next(),this.eat(mr.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(mr._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},Gr.parseVarStatement=function(e,t,i){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")},Gr.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Xr),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},Gr.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},Gr.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},Gr.parseLabeledStatement=function(e,t,i,n){for(var r=0,s=this.labels;r<s.length;r+=1){s[r].name===t&&this.raise(i.start,"Label '"+t+"' is already declared")}for(var a=this.type.isLoop?"loop":this.type===mr._switch?"switch":null,o=this.labels.length-1;o>=0;o--){var l=this.labels[o];if(l.statementStart!==e.start)break;l.statementStart=this.start,l.kind=a}return this.labels.push({name:t,kind:a,statementStart:this.start}),e.body=this.parseStatement(n?-1===n.indexOf("label")?n+"label":n:"label"),this.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")},Gr.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},Gr.parseBlock=function(e,t,i){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(mr.braceL),e&&this.enterScope(0);this.type!==mr.braceR;){var n=this.parseStatement(null);t.body.push(n)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},Gr.parseFor=function(e,t){return e.init=t,this.expect(mr.semi),e.test=this.type===mr.semi?null:this.parseExpression(),this.expect(mr.semi),e.update=this.type===mr.parenR?null:this.parseExpression(),this.expect(mr.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},Gr.parseForIn=function(e,t){var i=this.type===mr._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!i||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(mr.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")},Gr.parseVar=function(e,t,i,n){for(e.declarations=[],e.kind=i;;){var r=this.startNode();if(this.parseVarId(r,i),this.eat(mr.eq)?r.init=this.parseMaybeAssign(t):n||"const"!==i||this.type===mr._in||this.options.ecmaVersion>=6&&this.isContextual("of")?n||"using"!==i&&"await using"!==i||!(this.options.ecmaVersion>=17)||this.type===mr._in||this.isContextual("of")?n||"Identifier"===r.id.type||t&&(this.type===mr._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.raise(this.lastTokEnd,"Missing initializer in "+i+" declaration"):this.unexpected(),e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(mr.comma))break}return e},Gr.parseVarId=function(e,t){e.id="using"===t||"await using"===t?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var $r=1,Kr=2;function Qr(e,t){var i=t.key.name,n=e[i],r="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(r=(t.static?"s":"i")+t.kind),"iget"===n&&"iset"===r||"iset"===n&&"iget"===r||"sget"===n&&"sset"===r||"sset"===n&&"sget"===r?(e[i]="true",!1):!!n||(e[i]=r,!1)}function Yr(e,t){var i=e.computed,n=e.key;return!i&&("Identifier"===n.type&&n.name===t||"Literal"===n.type&&n.value===t)}Gr.parseFunction=function(e,t,i,n,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===mr.star&&t&Kr&&this.unexpected(),e.generator=this.eat(mr.star)),this.options.ecmaVersion>=8&&(e.async=!!n),t&$r&&(e.id=4&t&&this.type!==mr.name?null:this.parseIdent(),!e.id||t&Kr||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var s=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Fr(e.async,e.generator)),t&$r||(e.id=this.type===mr.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,r),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&$r?"FunctionDeclaration":"FunctionExpression")},Gr.parseFunctionParams=function(e){this.expect(mr.parenL),e.params=this.parseBindingList(mr.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Gr.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var n=this.enterClassBody(),r=this.startNode(),s=!1;for(r.body=[],this.expect(mr.braceL);this.type!==mr.braceR;){var a=this.parseClassElement(null!==e.superClass);a&&(r.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(s&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),s=!0):a.key&&"PrivateIdentifier"===a.key.type&&Qr(n,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=i,this.next(),e.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},Gr.parseClassElement=function(e){if(this.eat(mr.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),n="",r=!1,s=!1,a="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(mr.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===mr.star?o=!0:n="static"}if(i.static=o,!n&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==mr.star||this.canInsertSemicolon()?n="async":s=!0),!n&&(t>=9||!s)&&this.eat(mr.star)&&(r=!0),!n&&!s&&!r){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=l:n=l)}if(n?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=n,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===mr.parenL||"method"!==a||r||s){var c=!i.static&&Yr(i,"constructor"),h=c&&e;c&&"method"!==a&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=c?"constructor":a,this.parseClassMethod(i,r,s,h)}else this.parseClassField(i);return i},Gr.isClassElementNameStart=function(){return this.type===mr.name||this.type===mr.privateId||this.type===mr.num||this.type===mr.string||this.type===mr.bracketL||this.type.keyword},Gr.parseClassElementName=function(e){this.type===mr.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},Gr.parseClassMethod=function(e,t,i,n){var r=e.key;"constructor"===e.kind?(t&&this.raise(r.start,"Constructor can't be a generator"),i&&this.raise(r.start,"Constructor can't be an async method")):e.static&&Yr(e,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var s=e.value=this.parseMethod(t,i,n);return"get"===e.kind&&0!==s.params.length&&this.raiseRecoverable(s.start,"getter should have no params"),"set"===e.kind&&1!==s.params.length&&this.raiseRecoverable(s.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===s.params[0].type&&this.raiseRecoverable(s.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},Gr.parseClassField=function(e){return Yr(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Yr(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(mr.eq)?(this.enterScope(576),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")},Gr.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==mr.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},Gr.parseClassId=function(e,t){this.type===mr.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},Gr.parseClassSuper=function(e){e.superClass=this.eat(mr._extends)?this.parseExprSubscripts(null,!1):null},Gr.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},Gr.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,i=e.used;if(this.options.checkPrivateFields)for(var n=this.privateNameStack.length,r=0===n?null:this.privateNameStack[n-1],s=0;s<i.length;++s){var a=i[s];Cr(t,a.name)||(r?r.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}},Gr.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==mr.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},Gr.parseExport=function(e,t){if(this.next(),this.eat(mr.star))return this.parseExportAllDeclaration(e,t);if(this.eat(mr._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==mr.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var i=0,n=e.specifiers;i<n.length;i+=1){var r=n[i];this.checkUnreserved(r.local),this.checkLocalExport(r.local),"Literal"===r.local.type&&this.raise(r.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},Gr.parseExportDeclaration=function(e){return this.parseStatement(null)},Gr.parseExportDefaultDeclaration=function(){var e;if(this.type===mr._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,4|$r,!1,e)}if(this.type===mr._class){var i=this.startNode();return this.parseClass(i,"nullableID")}var n=this.parseMaybeAssign();return this.semicolon(),n},Gr.checkExport=function(e,t,i){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),Cr(e,t)&&this.raiseRecoverable(i,"Duplicate export '"+t+"'"),e[t]=!0)},Gr.checkPatternExport=function(e,t){var i=t.type;if("Identifier"===i)this.checkExport(e,t,t.start);else if("ObjectPattern"===i)for(var n=0,r=t.properties;n<r.length;n+=1){var s=r[n];this.checkPatternExport(e,s)}else if("ArrayPattern"===i)for(var a=0,o=t.elements;a<o.length;a+=1){var l=o[a];l&&this.checkPatternExport(e,l)}else"Property"===i?this.checkPatternExport(e,t.value):"AssignmentPattern"===i?this.checkPatternExport(e,t.left):"RestElement"===i&&this.checkPatternExport(e,t.argument)},Gr.checkVariableExport=function(e,t){if(e)for(var i=0,n=t;i<n.length;i+=1){var r=n[i];this.checkPatternExport(e,r.id)}},Gr.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},Gr.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")},Gr.parseExportSpecifiers=function(e){var t=[],i=!0;for(this.expect(mr.braceL);!this.eat(mr.braceR);){if(i)i=!1;else if(this.expect(mr.comma),this.afterTrailingComma(mr.braceR))break;t.push(this.parseExportSpecifier(e))}return t},Gr.parseImport=function(e){return this.next(),this.type===mr.string?(e.specifiers=Wr,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===mr.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},Gr.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportSpecifier")},Gr.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportDefaultSpecifier")},Gr.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportNamespaceSpecifier")},Gr.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===mr.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(mr.comma)))return e;if(this.type===mr.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(mr.braceL);!this.eat(mr.braceR);){if(t)t=!1;else if(this.expect(mr.comma),this.afterTrailingComma(mr.braceR))break;e.push(this.parseImportSpecifier())}return e},Gr.parseWithClause=function(){var e=[];if(!this.eat(mr._with))return e;this.expect(mr.braceL);for(var t={},i=!0;!this.eat(mr.braceR);){if(i)i=!1;else if(this.expect(mr.comma),this.afterTrailingComma(mr.braceR))break;var n=this.parseImportAttribute(),r="Identifier"===n.key.type?n.key.name:n.key.value;Cr(t,r)&&this.raiseRecoverable(n.key.start,"Duplicate attribute key '"+r+"'"),t[r]=!0,e.push(n)}return e},Gr.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===mr.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(mr.colon),this.type!==mr.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")},Gr.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===mr.string){var e=this.parseLiteral(this.value);return Tr.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},Gr.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},Gr.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var Zr=Br.prototype;Zr.toAssignable=function(e,t,i){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var n=0,r=e.properties;n<r.length;n+=1){var s=r[n];this.toAssignable(s,t),"RestElement"!==s.type||"ArrayPattern"!==s.argument.type&&"ObjectPattern"!==s.argument.type||this.raise(s.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",i&&this.checkPatternErrors(i,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,i);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else i&&this.checkPatternErrors(i,!0);return e},Zr.toAssignableList=function(e,t){for(var i=e.length,n=0;n<i;n++){var r=e[n];r&&this.toAssignable(r,t)}if(i){var s=e[i-1];6===this.options.ecmaVersion&&t&&s&&"RestElement"===s.type&&"Identifier"!==s.argument.type&&this.unexpected(s.argument.start)}return e},Zr.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},Zr.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==mr.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},Zr.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case mr.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(mr.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case mr.braceL:return this.parseObj(!0)}return this.parseIdent()},Zr.parseBindingList=function(e,t,i,n){for(var r=[],s=!0;!this.eat(e);)if(s?s=!1:this.expect(mr.comma),t&&this.type===mr.comma)r.push(null);else{if(i&&this.afterTrailingComma(e))break;if(this.type===mr.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),r.push(a),this.type===mr.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}r.push(this.parseAssignableListItem(n))}return r},Zr.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},Zr.parseBindingListItem=function(e){return e},Zr.parseMaybeDefault=function(e,t,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(mr.eq))return i;var n=this.startNodeAt(e,t);return n.left=i,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")},Zr.checkLValSimple=function(e,t,i){void 0===t&&(t=0);var n=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(n?"Binding ":"Assigning to ")+e.name+" in strict mode"),n&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),i&&(Cr(i,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),i[e.name]=!0),5!==t&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":n&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return n&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,i);default:this.raise(e.start,(n?"Binding":"Assigning to")+" rvalue")}},Zr.checkLValPattern=function(e,t,i){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var n=0,r=e.properties;n<r.length;n+=1){var s=r[n];this.checkLValInnerPattern(s,t,i)}break;case"ArrayPattern":for(var a=0,o=e.elements;a<o.length;a+=1){var l=o[a];l&&this.checkLValInnerPattern(l,t,i)}break;default:this.checkLValSimple(e,t,i)}},Zr.checkLValInnerPattern=function(e,t,i){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,i);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,i);break;case"RestElement":this.checkLValPattern(e.argument,t,i);break;default:this.checkLValPattern(e,t,i)}};var es=function(e,t,i,n,r){this.token=e,this.isExpr=!!t,this.preserveSpace=!!i,this.override=n,this.generator=!!r},ts={b_stat:new es("{",!1),b_expr:new es("{",!0),b_tmpl:new es("${",!1),p_stat:new es("(",!1),p_expr:new es("(",!0),q_tmpl:new es("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new es("function",!1),f_expr:new es("function",!0),f_expr_gen:new es("function",!0,!1,null,!0),f_gen:new es("function",!1,!1,null,!0)},is=Br.prototype;is.initialContext=function(){return[ts.b_stat]},is.curContext=function(){return this.context[this.context.length-1]},is.braceIsBlock=function(e){var t=this.curContext();return t===ts.f_expr||t===ts.f_stat||(e!==mr.colon||t!==ts.b_stat&&t!==ts.b_expr?e===mr._return||e===mr.name&&this.exprAllowed?gr.test(this.input.slice(this.lastTokEnd,this.start)):e===mr._else||e===mr.semi||e===mr.eof||e===mr.parenR||e===mr.arrow||(e===mr.braceL?t===ts.b_stat:e!==mr._var&&e!==mr._const&&e!==mr.name&&!this.exprAllowed):!t.isExpr)},is.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},is.updateContext=function(e){var t,i=this.type;i.keyword&&e===mr.dot?this.exprAllowed=!1:(t=i.updateContext)?t.call(this,e):this.exprAllowed=i.beforeExpr},is.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},mr.parenR.updateContext=mr.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===ts.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},mr.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?ts.b_stat:ts.b_expr),this.exprAllowed=!0},mr.dollarBraceL.updateContext=function(){this.context.push(ts.b_tmpl),this.exprAllowed=!0},mr.parenL.updateContext=function(e){var t=e===mr._if||e===mr._for||e===mr._with||e===mr._while;this.context.push(t?ts.p_stat:ts.p_expr),this.exprAllowed=!0},mr.incDec.updateContext=function(){},mr._function.updateContext=mr._class.updateContext=function(e){!e.beforeExpr||e===mr._else||e===mr.semi&&this.curContext()!==ts.p_stat||e===mr._return&&gr.test(this.input.slice(this.lastTokEnd,this.start))||(e===mr.colon||e===mr.braceL)&&this.curContext()===ts.b_stat?this.context.push(ts.f_stat):this.context.push(ts.f_expr),this.exprAllowed=!1},mr.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},mr.backQuote.updateContext=function(){this.curContext()===ts.q_tmpl?this.context.pop():this.context.push(ts.q_tmpl),this.exprAllowed=!1},mr.star.updateContext=function(e){if(e===mr._function){var t=this.context.length-1;this.context[t]===ts.f_expr?this.context[t]=ts.f_expr_gen:this.context[t]=ts.f_gen}this.exprAllowed=!0},mr.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==mr.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var ns=Br.prototype;function rs(e){return"Identifier"===e.type||"ParenthesizedExpression"===e.type&&rs(e.expression)}function ss(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&ss(e.expression)||"ParenthesizedExpression"===e.type&&ss(e.expression)}ns.checkPropClash=function(e,t,i){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var n,r=e.key;switch(r.type){case"Identifier":n=r.name;break;case"Literal":n=String(r.value);break;default:return}var s=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===n&&"init"===s&&(t.proto&&(i?i.doubleProto<0&&(i.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),t.proto=!0);else{var a=t[n="$"+n];if(a)("init"===s?this.strict&&a.init||a.get||a.set:a.init||a[s])&&this.raiseRecoverable(r.start,"Redefinition of property");else a=t[n]={init:!1,get:!1,set:!1};a[s]=!0}}},ns.parseExpression=function(e,t){var i=this.start,n=this.startLoc,r=this.parseMaybeAssign(e,t);if(this.type===mr.comma){var s=this.startNodeAt(i,n);for(s.expressions=[r];this.eat(mr.comma);)s.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(s,"SequenceExpression")}return r},ns.parseMaybeAssign=function(e,t,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var n=!1,r=-1,s=-1,a=-1;t?(r=t.parenthesizedAssign,s=t.trailingComma,a=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new qr,n=!0);var o=this.start,l=this.startLoc;this.type!==mr.parenL&&this.type!==mr.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var c=this.parseMaybeConditional(e,t);if(i&&(c=i.call(this,c,o,l)),this.type.isAssign){var h=this.startNodeAt(o,l);return h.operator=this.value,this.type===mr.eq&&(c=this.toAssignable(c,!1,t)),n||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===mr.eq?this.checkLValPattern(c):this.checkLValSimple(c),h.left=c,this.next(),h.right=this.parseMaybeAssign(e),a>-1&&(t.doubleProto=a),this.finishNode(h,"AssignmentExpression")}return n&&this.checkExpressionErrors(t,!0),r>-1&&(t.parenthesizedAssign=r),s>-1&&(t.trailingComma=s),c},ns.parseMaybeConditional=function(e,t){var i=this.start,n=this.startLoc,r=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return r;if(this.eat(mr.question)){var s=this.startNodeAt(i,n);return s.test=r,s.consequent=this.parseMaybeAssign(),this.expect(mr.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return r},ns.parseExprOps=function(e,t){var i=this.start,n=this.startLoc,r=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||r.start===i&&"ArrowFunctionExpression"===r.type?r:this.parseExprOp(r,i,n,-1,e)},ns.parseExprOp=function(e,t,i,n,r){var s=this.type.binop;if(null!=s&&(!r||this.type!==mr._in)&&s>n){var a=this.type===mr.logicalOR||this.type===mr.logicalAND,o=this.type===mr.coalesce;o&&(s=mr.logicalAND.binop);var l=this.value;this.next();var c=this.start,h=this.startLoc,p=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,r),c,h,s,r),u=this.buildBinary(t,i,e,p,l,a||o);return(a&&this.type===mr.coalesce||o&&(this.type===mr.logicalOR||this.type===mr.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(u,t,i,n,r)}return e},ns.buildBinary=function(e,t,i,n,r,s){"PrivateIdentifier"===n.type&&this.raise(n.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(e,t);return a.left=i,a.operator=r,a.right=n,this.finishNode(a,s?"LogicalExpression":"BinaryExpression")},ns.parseMaybeUnary=function(e,t,i,n){var r,s=this.start,a=this.startLoc;if(this.isContextual("await")&&this.canAwait)r=this.parseAwait(n),t=!0;else if(this.type.prefix){var o=this.startNode(),l=this.type===mr.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,l,n),this.checkExpressionErrors(e,!0),l?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&rs(o.argument)?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&ss(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):t=!0,r=this.finishNode(o,l?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==mr.privateId){if(r=this.parseExprSubscripts(e,n),this.checkExpressionErrors(e))return r;for(;this.type.postfix&&!this.canInsertSemicolon();){var c=this.startNodeAt(s,a);c.operator=this.value,c.prefix=!1,c.argument=r,this.checkLValSimple(r),this.next(),r=this.finishNode(c,"UpdateExpression")}}else(n||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),r=this.parsePrivateIdent(),this.type!==mr._in&&this.unexpected();return i||!this.eat(mr.starstar)?r:t?void this.unexpected(this.lastTokStart):this.buildBinary(s,a,r,this.parseMaybeUnary(null,!1,!1,n),"**",!1)},ns.parseExprSubscripts=function(e,t){var i=this.start,n=this.startLoc,r=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return r;var s=this.parseSubscripts(r,i,n,!1,t);return e&&"MemberExpression"===s.type&&(e.parenthesizedAssign>=s.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=s.start&&(e.parenthesizedBind=-1),e.trailingComma>=s.start&&(e.trailingComma=-1)),s},ns.parseSubscripts=function(e,t,i,n,r){for(var s=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,a=!1;;){var o=this.parseSubscript(e,t,i,n,s,a,r);if(o.optional&&(a=!0),o===e||"ArrowFunctionExpression"===o.type){if(a){var l=this.startNodeAt(t,i);l.expression=o,o=this.finishNode(l,"ChainExpression")}return o}e=o}},ns.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(mr.arrow)},ns.parseSubscriptAsyncArrow=function(e,t,i,n){return this.parseArrowExpression(this.startNodeAt(e,t),i,!0,n)},ns.parseSubscript=function(e,t,i,n,r,s,a){var o=this.options.ecmaVersion>=11,l=o&&this.eat(mr.questionDot);n&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(mr.bracketL);if(c||l&&this.type!==mr.parenL&&this.type!==mr.backQuote||this.eat(mr.dot)){var h=this.startNodeAt(t,i);h.object=e,c?(h.property=this.parseExpression(),this.expect(mr.bracketR)):this.type===mr.privateId&&"Super"!==e.type?h.property=this.parsePrivateIdent():h.property=this.parseIdent("never"!==this.options.allowReserved),h.computed=!!c,o&&(h.optional=l),e=this.finishNode(h,"MemberExpression")}else if(!n&&this.eat(mr.parenL)){var p=new qr,u=this.yieldPos,d=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(mr.parenR,this.options.ecmaVersion>=8,!1,p);if(r&&!l&&this.shouldParseAsyncArrow())return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=u,this.awaitPos=d,this.awaitIdentPos=f,this.parseSubscriptAsyncArrow(t,i,m,a);this.checkExpressionErrors(p,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=d||this.awaitPos,this.awaitIdentPos=f||this.awaitIdentPos;var g=this.startNodeAt(t,i);g.callee=e,g.arguments=m,o&&(g.optional=l),e=this.finishNode(g,"CallExpression")}else if(this.type===mr.backQuote){(l||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var x=this.startNodeAt(t,i);x.tag=e,x.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(x,"TaggedTemplateExpression")}return e},ns.parseExprAtom=function(e,t,i){this.type===mr.slash&&this.readRegexp();var n,r=this.potentialArrowAt===this.start;switch(this.type){case mr._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),n=this.startNode(),this.next(),this.type!==mr.parenL||this.allowDirectSuper||this.raise(n.start,"super() call outside constructor of a subclass"),this.type!==mr.dot&&this.type!==mr.bracketL&&this.type!==mr.parenL&&this.unexpected(),this.finishNode(n,"Super");case mr._this:return n=this.startNode(),this.next(),this.finishNode(n,"ThisExpression");case mr.name:var s=this.start,a=this.startLoc,o=this.containsEsc,l=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&"async"===l.name&&!this.canInsertSemicolon()&&this.eat(mr._function))return this.overrideContext(ts.f_expr),this.parseFunction(this.startNodeAt(s,a),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(mr.arrow))return this.parseArrowExpression(this.startNodeAt(s,a),[l],!1,t);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===mr.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(mr.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,a),[l],!0,t)}return l;case mr.regexp:var c=this.value;return(n=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},n;case mr.num:case mr.string:return this.parseLiteral(this.value);case mr._null:case mr._true:case mr._false:return(n=this.startNode()).value=this.type===mr._null?null:this.type===mr._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,"Literal");case mr.parenL:var h=this.start,p=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(p)&&(e.parenthesizedAssign=h),e.parenthesizedBind<0&&(e.parenthesizedBind=h)),p;case mr.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(mr.bracketR,!0,!0,e),this.finishNode(n,"ArrayExpression");case mr.braceL:return this.overrideContext(ts.b_expr),this.parseObj(!1,e);case mr._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case mr._class:return this.parseClass(this.startNode(),!1);case mr._new:return this.parseNew();case mr.backQuote:return this.parseTemplate();case mr._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}},ns.parseExprAtomDefault=function(){this.unexpected()},ns.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===mr.parenL&&!e)return this.parseDynamicImport(t);if(this.type===mr.dot){var i=this.startNodeAt(t.start,t.loc&&t.loc.start);return i.name="import",t.meta=this.finishNode(i,"Identifier"),this.parseImportMeta(t)}this.unexpected()},ns.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(mr.parenR)?e.options=null:(this.expect(mr.comma),this.afterTrailingComma(mr.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(mr.parenR)||(this.expect(mr.comma),this.afterTrailingComma(mr.parenR)||this.unexpected())));else if(!this.eat(mr.parenR)){var t=this.start;this.eat(mr.comma)&&this.eat(mr.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},ns.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},ns.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=null!=t.value?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},ns.parseParenExpression=function(){this.expect(mr.parenL);var e=this.parseExpression();return this.expect(mr.parenR),e},ns.shouldParseArrow=function(e){return!this.canInsertSemicolon()},ns.parseParenAndDistinguishExpression=function(e,t){var i,n=this.start,r=this.startLoc,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,l=this.startLoc,c=[],h=!0,p=!1,u=new qr,d=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==mr.parenR;){if(h?h=!1:this.expect(mr.comma),s&&this.afterTrailingComma(mr.parenR,!0)){p=!0;break}if(this.type===mr.ellipsis){a=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===mr.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}c.push(this.parseMaybeAssign(!1,u,this.parseParenItem))}var m=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(mr.parenR),e&&this.shouldParseArrow(c)&&this.eat(mr.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=f,this.parseParenArrowList(n,r,c,t);c.length&&!p||this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(u,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=f||this.awaitPos,c.length>1?((i=this.startNodeAt(o,l)).expressions=c,this.finishNodeAt(i,"SequenceExpression",m,g)):i=c[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var x=this.startNodeAt(n,r);return x.expression=i,this.finishNode(x,"ParenthesizedExpression")}return i},ns.parseParenItem=function(e){return e},ns.parseParenArrowList=function(e,t,i,n){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,n)};var as=[];ns.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===mr.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var i=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var n=this.start,r=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),n,r,!0,!1),this.eat(mr.parenL)?e.arguments=this.parseExprList(mr.parenR,this.options.ecmaVersion>=8,!1):e.arguments=as,this.finishNode(e,"NewExpression")},ns.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===mr.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),i.tail=this.type===mr.backQuote,this.finishNode(i,"TemplateElement")},ns.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var n=this.parseTemplateElement({isTagged:t});for(i.quasis=[n];!n.tail;)this.type===mr.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(mr.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(mr.braceR),i.quasis.push(n=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")},ns.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===mr.name||this.type===mr.num||this.type===mr.string||this.type===mr.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===mr.star)&&!gr.test(this.input.slice(this.lastTokEnd,this.start))},ns.parseObj=function(e,t){var i=this.startNode(),n=!0,r={};for(i.properties=[],this.next();!this.eat(mr.braceR);){if(n)n=!1;else if(this.expect(mr.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(mr.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,r,t),i.properties.push(s)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")},ns.parseProperty=function(e,t){var i,n,r,s,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(mr.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===mr.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,t),this.type===mr.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||t)&&(r=this.start,s=this.startLoc),e||(i=this.eat(mr.star)));var o=this.containsEsc;return this.parsePropertyName(a),!e&&!o&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(a)?(n=!0,i=this.options.ecmaVersion>=9&&this.eat(mr.star),this.parsePropertyName(a)):n=!1,this.parsePropertyValue(a,e,i,n,r,s,t,o),this.finishNode(a,"Property")},ns.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var i="get"===e.kind?0:1;if(e.value.params.length!==i){var n=e.value.start;"get"===e.kind?this.raiseRecoverable(n,"getter should have no params"):this.raiseRecoverable(n,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},ns.parsePropertyValue=function(e,t,i,n,r,s,a,o){(i||n)&&this.type===mr.colon&&this.unexpected(),this.eat(mr.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init"):this.options.ecmaVersion>=6&&this.type===mr.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(i,n),e.kind="init"):t||o||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===mr.comma||this.type===mr.braceR||this.type===mr.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((i||n)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=r),t?e.value=this.parseMaybeDefault(r,s,this.copyNode(e.key)):this.type===mr.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(r,s,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected():((i||n)&&this.unexpected(),this.parseGetterSetter(e))},ns.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(mr.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(mr.bracketR),e.key;e.computed=!1}return e.key=this.type===mr.num||this.type===mr.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},ns.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},ns.parseMethod=function(e,t,i){var n=this.startNode(),r=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|Fr(t,n.generator)|(i?128:0)),this.expect(mr.parenL),n.params=this.parseBindingList(mr.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0,!1),this.yieldPos=r,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(n,"FunctionExpression")},ns.parseArrowExpression=function(e,t,i,n){var r=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|Fr(i,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,n),this.yieldPos=r,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")},ns.parseFunctionBody=function(e,t,i,n){var r=t&&this.type!==mr.braceL,s=this.strict,a=!1;if(r)e.body=this.parseMaybeAssign(n),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);s&&!o||(a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var l=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!s&&!a&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,a&&!s),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()},ns.isSimpleParamList=function(e){for(var t=0,i=e;t<i.length;t+=1){if("Identifier"!==i[t].type)return!1}return!0},ns.checkParams=function(e,t){for(var i=Object.create(null),n=0,r=e.params;n<r.length;n+=1){var s=r[n];this.checkLValInnerPattern(s,1,t?null:i)}},ns.parseExprList=function(e,t,i,n){for(var r=[],s=!0;!this.eat(e);){if(s)s=!1;else if(this.expect(mr.comma),t&&this.afterTrailingComma(e))break;var a=void 0;i&&this.type===mr.comma?a=null:this.type===mr.ellipsis?(a=this.parseSpread(n),n&&this.type===mr.comma&&n.trailingComma<0&&(n.trailingComma=this.start)):a=this.parseMaybeAssign(!1,n),r.push(a)}return r},ns.checkUnreserved=function(e){var t=e.start,i=e.end,n=e.name;(this.inGenerator&&"yield"===n&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===n&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().flags&Mr||"arguments"!==n||this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==n&&"await"!==n||this.raise(t,"Cannot use "+n+" in class static initialization block"),this.keywords.test(n)&&this.raise(t,"Unexpected keyword '"+n+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,i).indexOf("\\"))||(this.strict?this.reservedWordsStrict:this.reservedWords).test(n)&&(this.inAsync||"await"!==n||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+n+"' is reserved"))},ns.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),"await"!==t.name||this.awaitIdentPos||(this.awaitIdentPos=t.start)),t},ns.parseIdentNode=function(){var e=this.startNode();return this.type===mr.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,"class"!==e.name&&"function"!==e.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop(),this.type=mr.name):this.unexpected(),e},ns.parsePrivateIdent=function(){var e=this.startNode();return this.type===mr.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},ns.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===mr.semi||this.canInsertSemicolon()||this.type!==mr.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(mr.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},ns.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var os=Br.prototype;os.raise=function(e,t){var i=Vr(this.input,e);t+=" ("+i.line+":"+i.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var n=new SyntaxError(t);throw n.pos=e,n.loc=i,n.raisedAt=this.pos,n},os.raiseRecoverable=os.raise,os.curPosition=function(){if(this.options.locations)return new Pr(this.curLine,this.pos-this.lineStart)};var ls=Br.prototype,cs=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};ls.enterScope=function(e){this.scopeStack.push(new cs(e))},ls.exitScope=function(){this.scopeStack.pop()},ls.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},ls.declareName=function(e,t,i){var n=!1;if(2===t){var r=this.currentScope();n=r.lexical.indexOf(e)>-1||r.functions.indexOf(e)>-1||r.var.indexOf(e)>-1,r.lexical.push(e),this.inModule&&1&r.flags&&delete this.undefinedExports[e]}else if(4===t){this.currentScope().lexical.push(e)}else if(3===t){var s=this.currentScope();n=this.treatFunctionsAsVar?s.lexical.indexOf(e)>-1:s.lexical.indexOf(e)>-1||s.var.indexOf(e)>-1,s.functions.push(e)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(e)>-1&&!(32&o.flags&&o.lexical[0]===e)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(e)>-1){n=!0;break}if(o.var.push(e),this.inModule&&1&o.flags&&delete this.undefinedExports[e],o.flags&Mr)break}n&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")},ls.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},ls.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ls.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(771&t.flags)return t}},ls.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(771&t.flags&&!(16&t.flags))return t}};var hs=function(e,t,i){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new Lr(e,i)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},ps=Br.prototype;function us(e,t,i,n){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=n),this.options.ranges&&(e.range[1]=i),e}ps.startNode=function(){return new hs(this,this.start,this.startLoc)},ps.startNodeAt=function(e,t){return new hs(this,e,t)},ps.finishNode=function(e,t){return us.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},ps.finishNodeAt=function(e,t,i,n){return us.call(this,e,t,i,n)},ps.copyNode=function(e){var t=new hs(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var ds="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",fs=ds+" Extended_Pictographic",ms=fs+" EBase EComp EMod EPres ExtPict",gs={9:ds,10:fs,11:fs,12:ms,13:ms,14:ms},xs={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},ys="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",vs="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",bs=vs+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ws=bs+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ks=ws+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Es=ks+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Ss={9:vs,10:bs,11:ws,12:ks,13:Es,14:Es+" Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz"},Cs={};function As(e){var t=Cs[e]={binary:Ir(gs[e]+" "+ys),binaryOfStrings:Ir(xs[e]),nonBinary:{General_Category:Ir(ys),Script:Ir(Ss[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var _s=0,Is=[9,10,11,12,13,14];_s<Is.length;_s+=1){As(Is[_s])}var Ns=Br.prototype,Ts=function(e,t){this.parent=e,this.base=t||this};Ts.prototype.separatedFrom=function(e){for(var t=this;t;t=t.parent)for(var i=e;i;i=i.parent)if(t.base===i.base&&t!==i)return!0;return!1},Ts.prototype.sibling=function(){return new Ts(this.parent,this.base)};var Ps=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Cs[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function Ls(e){return 105===e||109===e||115===e}function Vs(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function Rs(e){return e>=65&&e<=90||e>=97&&e<=122}Ps.prototype.reset=function(e,t,i){var n=-1!==i.indexOf("v"),r=-1!==i.indexOf("u");this.start=0|e,this.source=t+"",this.flags=i,n&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=r&&this.parser.options.ecmaVersion>=9)},Ps.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},Ps.prototype.at=function(e,t){void 0===t&&(t=!1);var i=this.source,n=i.length;if(e>=n)return-1;var r=i.charCodeAt(e);if(!t&&!this.switchU||r<=55295||r>=57344||e+1>=n)return r;var s=i.charCodeAt(e+1);return s>=56320&&s<=57343?(r<<10)+s-56613888:r},Ps.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var i=this.source,n=i.length;if(e>=n)return n;var r,s=i.charCodeAt(e);return!t&&!this.switchU||s<=55295||s>=57344||e+1>=n||(r=i.charCodeAt(e+1))<56320||r>57343?e+1:e+2},Ps.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},Ps.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Ps.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Ps.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},Ps.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var i=this.pos,n=0,r=e;n<r.length;n+=1){var s=r[n],a=this.at(i,t);if(-1===a||a!==s)return!1;i=this.nextIndex(i,t)}return this.pos=i,!0},Ns.validateRegExpFlags=function(e){for(var t=e.validFlags,i=e.flags,n=!1,r=!1,s=0;s<i.length;s++){var a=i.charAt(s);-1===t.indexOf(a)&&this.raise(e.start,"Invalid regular expression flag"),i.indexOf(a,s+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===a&&(n=!0),"v"===a&&(r=!0)}this.options.ecmaVersion>=15&&n&&r&&this.raise(e.start,"Invalid regular expression flag")},Ns.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&function(e){for(var t in e)return!0;return!1}(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},Ns.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,i=e.backReferenceNames;t<i.length;t+=1){var n=i[t];e.groupNames[n]||e.raise("Invalid named capture referenced")}},Ns.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new Ts(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},Ns.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},Ns.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},Ns.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var i=!1;if(this.options.ecmaVersion>=9&&(i=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!i,!0}return e.pos=t,!1},Ns.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},Ns.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Ns.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var n=0,r=-1;if(this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue),e.eat(125)))return-1!==r&&r<n&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=i}return!1},Ns.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},Ns.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},Ns.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var i=this.regexp_eatModifiers(e),n=e.eat(45);if(i||n){for(var r=0;r<i.length;r++){var s=i.charAt(r);i.indexOf(s,r+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(n){var a=this.regexp_eatModifiers(e);i||a||58!==e.current()||e.raise("Invalid regular expression modifiers");for(var o=0;o<a.length;o++){var l=a.charAt(o);(a.indexOf(l,o+1)>-1||i.indexOf(l)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1},Ns.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},Ns.regexp_eatModifiers=function(e){for(var t="",i=0;-1!==(i=e.current())&&Ls(i);)t+=Nr(i),e.advance();return t},Ns.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},Ns.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},Ns.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!Vs(t)&&(e.lastIntValue=t,e.advance(),!0)},Ns.regexp_eatPatternCharacters=function(e){for(var t=e.pos,i=0;-1!==(i=e.current())&&!Vs(i);)e.advance();return e.pos!==t},Ns.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t)&&(e.advance(),!0)},Ns.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,i=e.groupNames[e.lastStringValue];if(i)if(t)for(var n=0,r=i;n<r.length;n+=1){r[n].separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(i||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}},Ns.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},Ns.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Nr(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Nr(e.lastIntValue);return!0}return!1},Ns.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,n=e.current(i);return e.advance(i),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(n=e.lastIntValue),function(e){return or(e,!0)||36===e||95===e}(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},Ns.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,n=e.current(i);return e.advance(i),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(n=e.lastIntValue),function(e){return lr(e,!0)||36===e||95===e||8204===e||8205===e}(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},Ns.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},Ns.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var i=e.lastIntValue;if(e.switchU)return i>e.maxBackReference&&(e.maxBackReference=i),!0;if(i<=e.numCapturingParens)return!0;e.pos=t}return!1},Ns.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},Ns.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},Ns.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Ns.regexp_eatZero=function(e){return 48===e.current()&&!Ds(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Ns.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},Ns.regexp_eatControlLetter=function(e){var t=e.current();return!!Rs(t)&&(e.lastIntValue=t%32,e.advance(),!0)},Ns.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var i,n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(r&&s>=55296&&s<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=1024*(s-55296)+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=s}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&((i=e.lastIntValue)>=0&&i<=1114111))return!0;r&&e.raise("Invalid unicode escape"),e.pos=n}return!1},Ns.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t)&&(e.lastIntValue=t,e.advance(),!0)},Ns.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1};function Os(e){return Rs(e)||95===e}function js(e){return Os(e)||Ds(e)}function Ds(e){return e>=48&&e<=57}function Ms(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Fs(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function Bs(e){return e>=48&&e<=55}Ns.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),1;var i=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((i=80===t)||112===t)){var n;if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(n=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&2===n&&e.raise("Invalid property name"),n;e.raise("Invalid property name")}return 0},Ns.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var i=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,n),1}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,r)}return 0},Ns.regexp_validateUnicodePropertyNameAndValue=function(e,t,i){Cr(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")},Ns.regexp_validateUnicodePropertyNameOrValue=function(e,t){return e.unicodeProperties.binary.test(t)?1:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?2:void e.raise("Invalid property name")},Ns.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Os(t=e.current());)e.lastStringValue+=Nr(t),e.advance();return""!==e.lastStringValue},Ns.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";js(t=e.current());)e.lastStringValue+=Nr(t),e.advance();return""!==e.lastStringValue},Ns.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Ns.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),i=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&2===i&&e.raise("Negated character class may contain strings"),!0}return!1},Ns.regexp_classContents=function(e){return 93===e.current()?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},Ns.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var i=e.lastIntValue;!e.switchU||-1!==t&&-1!==i||e.raise("Invalid character class"),-1!==t&&-1!==i&&t>i&&e.raise("Range out of order in character class")}}},Ns.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var i=e.current();(99===i||Bs(i))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var n=e.current();return 93!==n&&(e.lastIntValue=n,e.advance(),!0)},Ns.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},Ns.regexp_classSetExpression=function(e){var t,i=1;if(this.regexp_eatClassSetRange(e));else if(t=this.regexp_eatClassSetOperand(e)){2===t&&(i=2);for(var n=e.pos;e.eatChars([38,38]);)38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))?2!==t&&(i=1):e.raise("Invalid character in character class");if(n!==e.pos)return i;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(n!==e.pos)return i}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return i;2===t&&(i=2)}},Ns.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;return-1!==i&&-1!==n&&i>n&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},Ns.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},Ns.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var i=e.eat(94),n=this.regexp_classContents(e);if(e.eat(93))return i&&2===n&&e.raise("Negated character class may contain strings"),n;e.pos=t}if(e.eat(92)){var r=this.regexp_eatCharacterClassEscape(e);if(r)return r;e.pos=t}return null},Ns.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var i=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return i}else e.raise("Invalid escape");e.pos=t}return null},Ns.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)2===this.regexp_classString(e)&&(t=2);return t},Ns.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?1:2},Ns.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return!(!this.regexp_eatCharacterEscape(e)&&!this.regexp_eatClassSetReservedPunctuator(e))||(e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1));var i=e.current();return!(i<0||i===e.lookahead()&&function(e){return 33===e||e>=35&&e<=38||e>=42&&e<=44||46===e||e>=58&&e<=64||94===e||96===e||126===e}(i))&&(!function(e){return 40===e||41===e||45===e||47===e||e>=91&&e<=93||e>=123&&e<=125}(i)&&(e.advance(),e.lastIntValue=i,!0))},Ns.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return!!function(e){return 33===e||35===e||37===e||38===e||44===e||45===e||e>=58&&e<=62||64===e||96===e||126===e}(t)&&(e.lastIntValue=t,e.advance(),!0)},Ns.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!Ds(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},Ns.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},Ns.regexp_eatDecimalDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Ds(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t},Ns.regexp_eatHexDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Ms(i=e.current());)e.lastIntValue=16*e.lastIntValue+Fs(i),e.advance();return e.pos!==t},Ns.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var i=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*i+e.lastIntValue:e.lastIntValue=8*t+i}else e.lastIntValue=t;return!0}return!1},Ns.regexp_eatOctalDigit=function(e){var t=e.current();return Bs(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},Ns.regexp_eatFixedHexDigits=function(e,t){var i=e.pos;e.lastIntValue=0;for(var n=0;n<t;++n){var r=e.current();if(!Ms(r))return e.pos=i,!1;e.lastIntValue=16*e.lastIntValue+Fs(r),e.advance()}return!0};var Us=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new Lr(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},zs=Br.prototype;function Js(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}zs.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Us(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},zs.getToken=function(){return this.next(),new Us(this)},"undefined"!=typeof Symbol&&(zs[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===mr.eof,value:t}}}}),zs.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(mr.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},zs.readToken=function(e){return or(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},zs.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var i=this.input.charCodeAt(e+1);return i<=56319||i>=57344?t:(t<<10)+i-56613888},zs.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},zs.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(-1===i&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var n=void 0,r=t;(n=vr(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=n;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())},zs.skipLineComment=function(e){for(var t=this.pos,i=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!yr(n);)n=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,i,this.curPosition())},zs.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&br.test(String.fromCharCode(e))))break e;++this.pos}}},zs.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=e,this.value=t,this.updateContext(i)},zs.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(mr.ellipsis)):(++this.pos,this.finishToken(mr.dot))},zs.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(mr.assign,2):this.finishOp(mr.slash,1)},zs.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,n=42===e?mr.star:mr.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++i,n=mr.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(mr.assign,i+1):this.finishOp(n,i)},zs.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(mr.assign,3);return this.finishOp(124===e?mr.logicalOR:mr.logicalAND,2)}return 61===t?this.finishOp(mr.assign,2):this.finishOp(124===e?mr.bitwiseOR:mr.bitwiseAND,1)},zs.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(mr.assign,2):this.finishOp(mr.bitwiseXOR,1)},zs.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!gr.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(mr.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(mr.assign,2):this.finishOp(mr.plusMin,1)},zs.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),i=1;return t===e?(i=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+i)?this.finishOp(mr.assign,i+1):this.finishOp(mr.bitShift,i)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(i=2),this.finishOp(mr.relational,i)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},zs.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(mr.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(mr.arrow)):this.finishOp(61===e?mr.eq:mr.prefix,1)},zs.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(mr.questionDot,2)}if(63===t){if(e>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(mr.assign,3);return this.finishOp(mr.coalesce,2)}}return this.finishOp(mr.question,1)},zs.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,or(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(mr.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Nr(e)+"'")},zs.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(mr.parenL);case 41:return++this.pos,this.finishToken(mr.parenR);case 59:return++this.pos,this.finishToken(mr.semi);case 44:return++this.pos,this.finishToken(mr.comma);case 91:return++this.pos,this.finishToken(mr.bracketL);case 93:return++this.pos,this.finishToken(mr.bracketR);case 123:return++this.pos,this.finishToken(mr.braceL);case 125:return++this.pos,this.finishToken(mr.braceR);case 58:return++this.pos,this.finishToken(mr.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(mr.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(mr.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Nr(e)+"'")},zs.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)},zs.readRegexp=function(){for(var e,t,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(gr.test(n)&&this.raise(i,"Unterminated regular expression"),e)e=!1;else{if("["===n)t=!0;else if("]"===n&&t)t=!1;else if("/"===n&&!t)break;e="\\"===n}++this.pos}var r=this.input.slice(i,this.pos);++this.pos;var s=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(s);var o=this.regexpState||(this.regexpState=new Ps(this));o.reset(i,r,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var l=null;try{l=new RegExp(r,a)}catch(e){}return this.finishToken(mr.regexp,{pattern:r,flags:a,value:l})},zs.readInt=function(e,t,i){for(var n=this.options.ecmaVersion>=12&&void 0===t,r=i&&48===this.input.charCodeAt(this.pos),s=this.pos,a=0,o=0,l=0,c=null==t?1/0:t;l<c;++l,++this.pos){var h=this.input.charCodeAt(this.pos),p=void 0;if(n&&95===h)r&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===o&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===l&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=h;else{if((p=h>=97?h-97+10:h>=65?h-65+10:h>=48&&h<=57?h-48:1/0)>=e)break;o=h,a=a*e+p}}return n&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||null!=t&&this.pos-s!==t?null:a},zs.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var i=this.readInt(e);return null==i&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(i=Js(this.input.slice(t,this.pos)),++this.pos):or(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(mr.num,i)},zs.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var i=this.pos-t>=2&&48===this.input.charCodeAt(t);i&&this.strict&&this.raise(t,"Invalid number");var n=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&110===n){var r=Js(this.input.slice(t,this.pos));return++this.pos,or(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(mr.num,r)}i&&/[89]/.test(this.input.slice(t,this.pos))&&(i=!1),46!==n||i||(++this.pos,this.readInt(10),n=this.input.charCodeAt(this.pos)),69!==n&&101!==n||i||(43!==(n=this.input.charCodeAt(++this.pos))&&45!==n||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),or(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s,a=(s=this.input.slice(t,this.pos),i?parseInt(s,8):parseFloat(s.replace(/_/g,"")));return this.finishToken(mr.num,a)},zs.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},zs.readString=function(e){for(var t="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===e)break;92===n?(t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!1),i=this.pos):8232===n||8233===n?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(yr(n)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(mr.string,t)};var qs={};zs.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==qs)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},zs.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw qs;this.raise(e,t)},zs.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(96===i||36===i&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==mr.template&&this.type!==mr.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(mr.template,e)):36===i?(this.pos+=2,this.finishToken(mr.dollarBraceL)):(++this.pos,this.finishToken(mr.backQuote));if(92===i)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(yr(i)){switch(e+=this.input.slice(t,this.pos),++this.pos,i){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(i)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},zs.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(mr.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":"\n"===this.input[this.pos+1]&&++this.pos;case"\n":case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},zs.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Nr(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(n,8);return r>255&&(n=n.slice(0,-1),r=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),"0"===n&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return yr(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}},zs.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return null===i&&this.invalidStringToken(t,"Bad character escape sequence"),i},zs.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,n=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(lr(r,n))this.pos+=r<=65535?1:2;else{if(92!==r)break;this.containsEsc=!0,e+=this.input.slice(i,this.pos);var s=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(t?or:lr)(a,n)||this.invalidStringToken(s,"Invalid Unicode escape"),e+=Nr(a),i=this.pos}t=!1}return e+this.input.slice(i,this.pos)},zs.readWord=function(){var e=this.readWord1(),t=mr.name;return this.keywords.test(e)&&(t=dr[e]),this.finishToken(t,e)};Br.acorn={Parser:Br,version:"8.16.0",defaultOptions:Rr,Position:Pr,SourceLocation:Lr,getLineInfo:Vr,Node:hs,TokenType:cr,tokTypes:mr,keywordTypes:dr,TokContext:es,tokContexts:ts,isIdentifierChar:lr,isIdentifierStart:or,Token:Us,isNewLine:yr,lineBreak:gr,lineBreakG:xr,nonASCIIwhitespace:br};const Gs={}.hasOwnProperty,Xs=Symbol("continue"),Hs=Symbol("exit"),Ws=Symbol("skip");function $s(e){return Array.isArray(e)?e:"number"==typeof e?[Xs,e]:[e]}function Ks(e){return Boolean(e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type&&e.type.length>0)}function Qs(e,t){const i=t.prefix||"",n=t.suffix||"",r=Object.assign({},t.acornOptions),s=[],a=[],o=r.onComment,l=r.onToken;let c,h,p=!1;const u=Object.assign({},r,{onComment:s,preserveParens:!0});l&&(u.onToken=a);const d=function(e,t){const i={value:"",stops:[]};let n=-1;for(;++n<e.length;){const r=e[n];if("enter"===r[0]){const e=r[1].type;if("lineEnding"===e||t.includes(e)){const e=r[2].sliceStream(r[1]);for(;e.length>0&&-1===e[0];)e.shift();const t=Zs(e);i.stops.push([i.value.length,r[1].start]),i.value+=t,i.stops.push([i.value.length,r[1].end])}}}return i}(e,t.tokenTypes),f=d.value,m=i+f+n,g=t.expression&&Ys(f);if(g&&!t.allowEmpty)throw new lt("Unexpected empty expression",{place:y(0),ruleId:"unexpected-empty-expression",source:"micromark-extension-mdx-expression"});try{c=t.expression&&!g?t.acorn.parseExpressionAt(m,0,u):t.acorn.parse(m,u)}catch(e){const t=e,n=y(t.pos);t.message=String(t.message).replace(/ \(\d+:\d+\)$/,""),t.pos=n.offset,t.loc={line:n.line,column:n.column-1},h=t,p=t.raisedAt>=i.length+f.length||"Unterminated comment"===t.message}if(c&&t.expression&&!g)if(Ys(m.slice(c.end,m.length-n.length)))c={type:"Program",start:0,end:i.length+f.length,body:[{type:"ExpressionStatement",expression:c,start:0,end:i.length+f.length}],sourceType:"module",comments:[]};else{const e=y(c.end),t=new Error("Unexpected content after expression");t.pos=e.offset,t.loc={line:e.line,column:e.column-1},h=t,c=void 0}if(c){if(c.comments=s,function(e,t){let i,n;"function"==typeof t?i=t:t&&"object"==typeof t&&(t.enter&&(i=t.enter),t.leave&&(n=t.leave)),function e(t,r,s,a){return Ks(t)&&(o.displayName="node ("+t.type+")"),o;function o(){const o=i?$s(i(t,r,s,a)):[];if(o[0]===Hs)return o;if(o[0]!==Ws){let i;for(i in t)if(Gs.call(t,i)&&t[i]&&"object"==typeof t[i]&&"data"!==i&&"position"!==i){const n=a.concat(t),r=t[i];if(Array.isArray(r)){const t=r;let s=0;for(;s>-1&&s<t.length;){const r=t[s];if(Ks(r)){const t=e(r,i,s,n)();if(t[0]===Hs)return t;s="number"==typeof t[1]?t[1]:s+1}else s++}}else if(Ks(r)){const t=e(r,i,void 0,n)();if(t[0]===Hs)return t}}}return n?$s(n(t,r,s,a)):o}}(e,void 0,void 0,[])()}(c,function(e,t,i,n){let r=n[n.length-1],s=t;"ParenthesizedExpression"===e.type&&r&&s&&("number"==typeof i&&(r=r[s],s=i),r[s]=e.expression),x(e)}),Array.isArray(o))o.push(...s);else if("function"==typeof o)for(const e of s)o("Block"===e.type,e.value,e.start,e.end,e.loc.start,e.loc.end);for(const e of a)e.end<=i.length||e.start-i.length>=f.length||(x(e),Array.isArray(l)?l.push(e):l(e))}return{estree:c,error:h,swallow:p};function x(e){const t=y(e.start),i=y(e.end);e.start=t.offset,e.end=i.offset,e.loc={start:{line:t.line,column:t.column-1,offset:t.offset},end:{line:i.line,column:i.column-1,offset:i.offset}},e.range=[e.start,e.end]}function y(e){let n=e-i.length;n<0?n=0:n>f.length&&(n=f.length);let r=function(e,t){let i=0;for(;i<e.length&&e[i][0]<=t;)i+=1;if(0===i)return;const[n,r]=e[i-1],s=t-n;return{line:r.line,column:r.column+s,offset:r.offset+s}}(d.stops,n);return r||(r={line:t.start.line,column:t.start.column,offset:t.start.offset}),r}}function Ys(e){return/^\s*$/.test(e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,""))}function Zs(e){let t=-1;const i=[];let n;for(;++t<e.length;){const r=e[t];let s;if("string"==typeof r)s=r;else switch(r){case-5:s="\r";break;case-4:s="\n";break;case-3:s="\r\n";break;case-2:s="\t";break;case-1:if(n)continue;s=" ";break;default:s=String.fromCharCode(r)}n=-2===r,i.push(s)}return i.join("")}function ea(e){const t=e||{},i=t.loc||{},n=t.range||[void 0,void 0],r=ta(i.start,n[0]||t.start),s=ta(i.end,n[1]||t.end);if(r&&s)return{start:r,end:s}}function ta(e,t){if(e&&"object"==typeof e){const i="line"in e?ia(e.line):void 0,n="column"in e?ia(e.column):void 0;if(i&&void 0!==n)return{line:i,column:n+1,offset:ia(t)}}}function ia(e){return"number"==typeof e&&e>-1?e:void 0}const na="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",ra="#unexpected-type-in-code-expected-an-object-spread-spread";function sa(e,t,i,n,r,s,a,o,l,c,h){const p=this,u=this.events.length+3;let d,f,m=0;return function(t){return e.enter(i),e.enter(n),e.consume(t),e.exit(n),d=p.now(),g};function g(h){if(null===h){if(f)throw f;const e=new lt("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:p.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw e.url=na+"#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",e}if(pt(h))return e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),y;if(125===h&&0===m){const m=s?aa.call(p,s,a,r,u,d,c||!1,l||!1):{type:"ok",estree:void 0};if("ok"===m.type){e.enter(n),e.consume(h),e.exit(n);const r=e.exit(i);return o&&m.estree&&Object.assign(r,{estree:m.estree}),t}return f=m.message,e.enter(r),e.consume(h),x}return e.enter(r),x(h)}function x(t){return 125===t&&0===m||null===t||pt(t)?(e.exit(r),g(t)):(123!==t||s?125===t&&(m-=1):m+=1,e.consume(t),x)}function y(t){const i=p.now();if(i.line!==d.line&&!h&&p.parser.lazy[i.line]){const e=new lt("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:p.now(),ruleId:"unexpected-lazy",source:"micromark-extension-mdx-expression"});throw e.url=na+"#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",e}return ut(t)?dt(e,g,"linePrefix",3)(t):g(t)}}function aa(e,t,i,n,r,s,a){const o=Qs(this.events.slice(n),{acorn:e,tokenTypes:[i],acornOptions:t,start:r,expression:!0,allowEmpty:s,prefix:a?"({":"",suffix:a?"})":""}),l=o.estree;if(a&&l){const e=l.body[0];if("ExpressionStatement"!==e.type||"ObjectExpression"!==e.expression.type){const t=ea(e),i=new lt("Unexpected `"+e.type+"` in code: expected an object spread (`{...spread}`)",{place:t.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw i.url=na+ra,i}if(e.expression.properties[1]){const t=ea(e.expression.properties[1]),i=new lt("Unexpected extra content in spread: only a single spread is supported",{place:t.start,ruleId:"spread-extra",source:"micromark-extension-mdx-expression"});throw i.url=na+"#unexpected-extra-content-in-spread-only-a-single-spread-is-supported",i}if(e.expression.properties[0]&&"SpreadElement"!==e.expression.properties[0].type){const t=ea(e.expression.properties[0]),i=new lt("Unexpected `"+e.expression.properties[0].type+"` in code: only spread elements are supported",{place:t.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw i.url=na+ra,i}}if(o.error){const e=new lt("Could not parse expression with acorn",{cause:o.error,place:{line:o.error.loc.line,column:o.error.loc.column+1,offset:o.error.pos},ruleId:"acorn",source:"micromark-extension-mdx-expression"});return e.url=na+"#could-not-parse-expression-with-acorn",{type:"nok",message:e}}return{type:"ok",estree:l}}function oa(e){const t=e||{},i=t.addResult,n=t.acorn,r=t.spread;let s,a=t.allowEmpty;if(null==a&&(a=!0),n){if(!n.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");s=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions)}else if(t.acornOptions||t.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{123:{name:"mdxFlowExpression",tokenize:function(e,t,o){const l=this;return function(t){return function(t){return sa.call(l,e,c,"mdxFlowExpression","mdxFlowExpressionMarker","mdxFlowExpressionChunk",n,s,i,r,a)(t)}(t)};function c(t){return ut(t)?dt(e,h,"whitespace")(t):h(t)}function h(i){const n=l.parser.constructs.flow[60],r=(Array.isArray(n)?n:n?[n]:[]).find(function(e){return"mdxJsxFlowTag"===e.name});return 60===i&&r?e.attempt(r,h,o)(i):null===i||pt(i)?t(i):o(i)}},concrete:!0}},text:{123:{name:"mdxTextExpression",tokenize:function(e,t){const o=this;return function(l){return sa.call(o,e,t,"mdxTextExpression","mdxTextExpressionMarker","mdxTextExpressionChunk",n,s,i,r,a,!0)(l)}}}}}}const la="https://github.com/micromark/micromark-extension-mdx-jsx";function ca(e,t,i,n,r,s,a,o,l,c,h,p,u,d,f,m,g,x,y,v,b,w,k,E,S,C,A,_,I,N,T,P){const L=this;let V,R;return function(t){return e.enter(o),e.enter(l),e.consume(t),e.exit(l),O};function O(e){return ft(e)?i(e):(V=j,se(e))}function j(t){return 47===t?(e.enter(c),e.consume(t),e.exit(c),V=D,se):62===t?re(t):null!==t&&t>=0&&Rt(t)?(e.enter(p),e.enter(u),e.consume(t),M):void le(t,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(33===t?" (note: to create a comment in MDX, use `{/* text */}`)":""))}function D(t){return 62===t?re(t):null!==t&&t>=0&&Rt(t)?(e.enter(p),e.enter(u),e.consume(t),M):void le(t,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(42===t||47===t?" (note: JS comments in JSX tags are not supported in MDX)":""))}function M(t){return null!==t&&t>=0&&Ot(t,{jsx:!0})?(e.consume(t),M):46===t||47===t||58===t||62===t||123===t||ft(t)||mt(t)?(e.exit(u),V=F,se(t)):void le(t,"in name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(64===t?" (note: to create a link in MDX, use `[text](url)`)":""))}function F(t){return 46===t?(e.enter(d),e.consume(t),e.exit(d),V=B,se):58===t?(e.enter(m),e.consume(t),e.exit(m),V=J,se):47===t||62===t||123===t||null!==t&&t>=0&&Rt(t)?(e.exit(p),X(t)):void le(t,"after name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function B(t){if(null!==t&&t>=0&&Rt(t))return e.enter(f),e.consume(t),U;le(t,"before member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function U(t){return null!==t&&t>=0&&Ot(t,{jsx:!0})?(e.consume(t),U):46===t||47===t||62===t||123===t||ft(t)||mt(t)?(e.exit(f),V=z,se(t)):void le(t,"in member name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(64===t?" (note: to create a link in MDX, use `[text](url)`)":""))}function z(t){return 46===t?(e.enter(d),e.consume(t),e.exit(d),V=B,se):47===t||62===t||123===t||null!==t&&t>=0&&Rt(t)?(e.exit(p),X(t)):void le(t,"after member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function J(t){if(null!==t&&t>=0&&Rt(t))return e.enter(g),e.consume(t),q;le(t,"before local name","a character that can start a name, such as a letter, `$`, or `_`"+(43===t||null!==t&&t>46&&t<58?" (note: to create a link in MDX, use `[text](url)`)":""))}function q(t){return null!==t&&t>=0&&Ot(t,{jsx:!0})?(e.consume(t),q):47===t||62===t||123===t||ft(t)||mt(t)?(e.exit(g),V=G,se(t)):void le(t,"in local name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function G(t){if(47===t||62===t||123===t||null!==t&&t>=0&&Rt(t))return e.exit(p),X(t);le(t,"after local name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function X(t){return 47===t?(e.enter(h),e.consume(t),e.exit(h),V=ne,se):62===t?re(t):123===t?sa.call(L,e,H,x,y,v,n,r,s,!0,!1,a)(t):null!==t&&t>=0&&Rt(t)?(e.enter(b),e.enter(w),e.enter(k),e.consume(t),W):void le(t,"before attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function H(e){return V=X,se(e)}function W(t){return null!==t&&t>=0&&Ot(t,{jsx:!0})?(e.consume(t),W):47===t||58===t||61===t||62===t||123===t||ft(t)||mt(t)?(e.exit(k),V=$,se(t)):void le(t,"in attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function $(t){return 58===t?(e.enter(E),e.consume(t),e.exit(E),V=K,se):61===t?(e.exit(w),e.enter(C),e.consume(t),e.exit(C),V=Z,se):47===t||62===t||123===t||ft(t)||mt(t)||null!==t&&t>=0&&Rt(t)?(e.exit(w),e.exit(b),V=X,se(t)):void le(t,"after attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function K(t){if(null!==t&&t>=0&&Rt(t))return e.enter(S),e.consume(t),Q;le(t,"before local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function Q(t){return null!==t&&t>=0&&Ot(t,{jsx:!0})?(e.consume(t),Q):47===t||61===t||62===t||123===t||ft(t)||mt(t)?(e.exit(S),e.exit(w),V=Y,se(t)):void le(t,"in local attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function Y(t){return 61===t?(e.enter(C),e.consume(t),e.exit(C),V=Z,se):47===t||62===t||123===t||null!==t&&t>=0&&Rt(t)?(e.exit(b),X(t)):void le(t,"after local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function Z(t){return 34===t||39===t?(e.enter(A),e.enter(_),e.consume(t),e.exit(_),R=t,te):123===t?sa.call(L,e,ee,N,T,P,n,r,s,!1,!1,a)(t):void le(t,"before attribute value","a character that can start an attribute value, such as `\"`, `'`, or `{`"+(60===t?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":""))}function ee(t){return e.exit(b),V=X,se(t)}function te(t){return null===t&&le(t,"in attribute value","a corresponding closing quote `"+String.fromCodePoint(R)+"`"),t===R?(e.enter(_),e.consume(t),e.exit(_),e.exit(A),e.exit(b),R=void 0,V=X,se):pt(t)?(V=te,se(t)):(e.enter(I),ie(t))}function ie(t){return null===t||t===R||pt(t)?(e.exit(I),te(t)):(e.consume(t),ie)}function ne(e){if(62===e)return re(e);le(e,"after self-closing slash","`>` to end the tag"+(42===e||47===e?" (note: JS comments in JSX tags are not supported in MDX)":""))}function re(i){return e.enter(l),e.consume(i),e.exit(l),e.exit(o),t}function se(t){return pt(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),oe):ut(t)||mt(t)?(e.enter("esWhitespace"),ae(t)):V(t)}function ae(t){return pt(t)?(e.exit("esWhitespace"),se(t)):ut(t)||mt(t)?(e.consume(t),ae):(e.exit("esWhitespace"),V(t))}function oe(e){if(!a&&L.parser.lazy[L.now().line]){const e=new lt("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",L.now(),"micromark-extension-mdx-jsx:unexpected-lazy");throw e.url=la+"#unexpected-lazy-line-in-container-expected-line-to-be",e}return se(e)}function le(e,t,i){const n=new lt("Unexpected "+(null===e?"end of file":"character `"+(96===e?"` ` `":String.fromCodePoint(e))+"` ("+function(e){return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}(e)+")")+" "+t+", expected "+i,L.now(),"micromark-extension-mdx-jsx:unexpected-"+(null===e?"eof":"character"));throw n.url=la+(null===e?"#unexpected-end-of-file-at-expected-expect":"#unexpected-character-at-expected-expect"),n}}function ha(e,t){return{name:"mdxJsxTextTag",tokenize:function(i,n,r){return ca.call(this,i,n,r,e,t.acornOptions,t.addResult,!0,"mdxJsxTextTag","mdxJsxTextTagMarker","mdxJsxTextTagClosingMarker","mdxJsxTextTagSelfClosingMarker","mdxJsxTextTagName","mdxJsxTextTagNamePrimary","mdxJsxTextTagNameMemberMarker","mdxJsxTextTagNameMember","mdxJsxTextTagNamePrefixMarker","mdxJsxTextTagNameLocal","mdxJsxTextTagExpressionAttribute","mdxJsxTextTagExpressionAttributeMarker","mdxJsxTextTagExpressionAttributeValue","mdxJsxTextTagAttribute","mdxJsxTextTagAttributeName","mdxJsxTextTagAttributeNamePrimary","mdxJsxTextTagAttributeNamePrefixMarker","mdxJsxTextTagAttributeNameLocal","mdxJsxTextTagAttributeInitializerMarker","mdxJsxTextTagAttributeValueLiteral","mdxJsxTextTagAttributeValueLiteralMarker","mdxJsxTextTagAttributeValueLiteralValue","mdxJsxTextTagAttributeValueExpression","mdxJsxTextTagAttributeValueExpressionMarker","mdxJsxTextTagAttributeValueExpressionValue")}}}function pa(e,t){return{concrete:!0,name:"mdxJsxFlowTag",tokenize:function(i,n,r){const s=this;return a;function a(n){return function(n){return ca.call(s,i,o,r,e,t.acornOptions,t.addResult,!1,"mdxJsxFlowTag","mdxJsxFlowTagMarker","mdxJsxFlowTagClosingMarker","mdxJsxFlowTagSelfClosingMarker","mdxJsxFlowTagName","mdxJsxFlowTagNamePrimary","mdxJsxFlowTagNameMemberMarker","mdxJsxFlowTagNameMember","mdxJsxFlowTagNamePrefixMarker","mdxJsxFlowTagNameLocal","mdxJsxFlowTagExpressionAttribute","mdxJsxFlowTagExpressionAttributeMarker","mdxJsxFlowTagExpressionAttributeValue","mdxJsxFlowTagAttribute","mdxJsxFlowTagAttributeName","mdxJsxFlowTagAttributeNamePrimary","mdxJsxFlowTagAttributeNamePrefixMarker","mdxJsxFlowTagAttributeNameLocal","mdxJsxFlowTagAttributeInitializerMarker","mdxJsxFlowTagAttributeValueLiteral","mdxJsxFlowTagAttributeValueLiteralMarker","mdxJsxFlowTagAttributeValueLiteralValue","mdxJsxFlowTagAttributeValueExpression","mdxJsxFlowTagAttributeValueExpressionMarker","mdxJsxFlowTagAttributeValueExpressionValue")(n)}(n)}function o(e){return ut(e)?dt(i,l,"whitespace")(e):l(e)}function l(e){const t=s.parser.constructs.flow[123],o=Array.isArray(t)?t:t?[t]:[];let c;for(const e of o)if("mdxFlowExpression"===e.name){c=e;break}return 60===e?a(e):123===e&&c?i.attempt(c,l,r)(e):null===e||pt(e)?n(e):r(e)}}}}function ua(e){const t=e||{},i=t.acorn;let n;if(i){if(!i.parse||!i.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");n=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions,{locations:!0})}else if(t.acornOptions||t.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{60:pa(i||void 0,{acornOptions:n,addResult:t.addResult||void 0})},text:{60:ha(i||void 0,{acornOptions:n,addResult:t.addResult||void 0})}}}const da={tokenize:function(e,t,i){return function(n){return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),e.attempt(xt,t,i)}},partial:!0},fa="https://github.com/micromark/micromark-extension-mdxjs-esm",ma=new Set(["ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ImportDeclaration"]);function ga(e){const t={tokenize:function(t,r,s){const a=this,o=a.parser.definedModuleSpecifiers||(a.parser.definedModuleSpecifiers=[]),l=this.events.length+1;let c="";return a.interrupt?s:function(e){return a.now().column>1?s(e):(t.enter("mdxjsEsm"),t.enter("mdxjsEsmData"),t.consume(e),c+=String.fromCharCode(e),h)};function h(e){return gt(e)?(t.consume(e),c+=String.fromCharCode(e),h):"import"!==c&&"export"!==c||32!==e?s(e):(t.consume(e),p)}function p(e){return null===e||pt(e)?(t.exit("mdxjsEsmData"),u(e)):(t.consume(e),p)}function u(e){return null===e?f(e):pt(e)?t.check(da,f,d)(e):(t.enter("mdxjsEsmData"),p(e))}function d(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),u}function f(s){const c=Qs(a.events.slice(l),{acorn:i,acornOptions:n,tokenTypes:["mdxjsEsmData"],prefix:o.length>0?"var "+o.join(",")+"\n":""});if(c.error){if(null!==s&&c.swallow)return d(s);const e=new lt("Could not parse import/exports with acorn",{cause:c.error,place:{line:c.error.loc.line,column:c.error.loc.column+1,offset:c.error.pos},ruleId:"acorn",source:"micromark-extension-mdxjs-esm"});throw e.url=fa+"#could-not-parse-importexports-with-acorn",e}o.length>0&&c.estree.body.shift();let h=-1;for(;++h<c.estree.body.length;){const e=c.estree.body[h];if(!ma.has(e.type)){const t=new lt("Unexpected `"+e.type+"` in code: only import/exports are supported",{place:ea(e),ruleId:"non-esm",source:"micromark-extension-mdxjs-esm"});throw t.url=fa+"#unexpected-type-in-code-only-importexports-are-supported",t}if("ImportDeclaration"===e.type&&!a.interrupt){let t=-1;for(;++t<e.specifiers.length;){const i=e.specifiers[t];o.push(i.local.name)}}}return Object.assign(t.exit("mdxjsEsm"),e.addResult?{estree:c.estree}:void 0),r(s)}},concrete:!0};if(!e||!e.acorn||!e.acorn.parse)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");const i=e.acorn,n=Object.assign({ecmaVersion:2024,sourceType:"module"},e.acornOptions,{locations:!0});return{flow:{101:t,105:t}}}const xa={};function ya(e){const t=e||xa,i=this.data(),n=i.micromarkExtensions||(i.micromarkExtensions=[]),r=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);n.push(function(e){const t=Object.assign({acorn:Br.extend(vi()),acornOptions:{ecmaVersion:2024,sourceType:"module"},addResult:!0},e);return yt([ga(t),oa(t),ua(t),{disable:{null:["autolink","codeIndented","htmlFlow","htmlText"]}}])}(t)),r.push([{enter:{mdxFlowExpression:wn,mdxTextExpression:kn},exit:{mdxFlowExpression:En,mdxFlowExpressionChunk:Sn,mdxTextExpression:En,mdxTextExpressionChunk:Sn}},zn(),{enter:{mdxjsEsm:Hn},exit:{mdxjsEsm:Wn,mdxjsEsmData:$n}}]),s.push(function(e){return{extensions:[{handlers:{mdxFlowExpression:Cn,mdxTextExpression:Cn},unsafe:[{character:"{",inConstruct:["phrasing"]},{atBreak:!0,character:"{"}]},Jn(e),{handlers:{mdxjsEsm:Kn}}]}}(t))}function va(e,t){const i=["start","end","loc","range"];let n=-1;for(;++n<i.length;){const r=i[n];r in e&&(t[r]=e[r])}}function ba(e,t){let i=-1;const n=[],r=[];let s;for(;++i<e.length;){const t=e[i];"ImportNamespaceSpecifier"===t.type?s=t:r.push(t)}if(s){const e={type:"VariableDeclarator",id:s.local,init:t};va(s,e),n.push(e)}return n.push({type:"VariableDeclarator",id:{type:"ObjectPattern",properties:r.map(function(e){let t="ImportSpecifier"===e.type?e.imported:"ExportSpecifier"===e.type?e.exported:{type:"Identifier",name:"default"},i=e.local;"ExportSpecifier"===e.type&&(i=t,t=e.local),st("Identifier"===i.type);const n={type:"Property",kind:"init",shorthand:"Identifier"===t.type&&"Identifier"===i.type&&t.name===i.name,method:!1,computed:!1,key:t,value:i};return va(e,n),n})},init:s?{type:"Identifier",name:s.local.name}:t}),n}function wa(e){let t,i=-1;for(;++i<e.length;){const n=e[i],r="string"==typeof n&&St(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};t=t?{type:"MemberExpression",object:t,property:r,computed:"Literal"===r.type,optional:!1}:r}return st("Literal"!==t.type),t}function ka(e){let t,i=-1;for(;++i<e.length;){const n=e[i];st("string"==typeof n&&St(n,{jsx:!0}));const r={type:"JSXIdentifier",name:n};t=t?{type:"JSXMemberExpression",object:t,property:r}:r}return t}function Ea(e){const{outputFormat:t}=e||{};return function(e){if(e.comments&&(e.comments=e.comments.filter(function(e){return!e.data?._mdxIsPragmaComment})),"function-body"===t){let t=0;for(;t<e.body.length;){const i=e.body[t];if(!("directive"in i)||!i.directive)break;t++}const i=e.body[t];i&&"ImportDeclaration"===i.type&&"string"==typeof i.source.value&&/\/jsx-(dev-)?runtime$/.test(i.source.value)&&(e.body[t]={type:"VariableDeclaration",kind:"const",declarations:ba(i.specifiers,wa(["arguments",0]))})}}}function Sa(){const e=[{block:!1,defined:[]}];return{enter:function(n){if("ArrowFunctionExpression"===n.type){e.push({block:!1,defined:[]});for(const e of n.params)i(e,!1)}else if("BlockStatement"===n.type||"DoWhileStatement"===n.type||"ForInStatement"===n.type||"ForOfStatement"===n.type||"ForStatement"===n.type||"WhileStatement"===n.type)e.push({block:!0,defined:[]});else if("CatchClause"===n.type)e.push({block:!0,defined:[]}),n.param&&i(n.param,!0);else if("ClassDeclaration"===n.type)t(n.id.name,!1);else if("FunctionDeclaration"===n.type){t(n.id.name,!1),e.push({block:!1,defined:[]});for(const e of n.params)i(e,!1)}else if("FunctionExpression"===n.type){n.id&&t(n.id.name,!1),e.push({block:!1,defined:[]});for(const e of n.params)i(e,!1)}else if("ImportDeclaration"===n.type)for(const e of n.specifiers)t(e.local.name,!1);else if("VariableDeclaration"===n.type)for(const e of n.declarations)i(e.id,"var"!==n.kind)},exit:function(t){if("ArrowFunctionExpression"===t.type||"FunctionDeclaration"===t.type||"FunctionExpression"===t.type){const t=e.pop();st(!t.block)}else if("BlockStatement"===t.type||"CatchClause"===t.type||"DoWhileStatement"===t.type||"ForInStatement"===t.type||"ForOfStatement"===t.type||"ForStatement"===t.type||"WhileStatement"===t.type){const t=e.pop();st(t.block)}},scopes:e};function t(t,i){let n,r=e.length;for(;r--&&(n=e[r],!i&&n.block););n.defined.push(t)}function i(e,n){if("ArrayPattern"===e.type)for(const t of e.elements)t&&i(t,n);else if("AssignmentPattern"===e.type)i(e.left,n);else if("Identifier"===e.type)t(e.name,n);else if("ObjectPattern"===e.type)for(const t of e.properties)"Property"===t.type?i(t.value,n):(st("RestElement"===t.type),i(t,n));else st("RestElement"===e.type),i(e.argument,n)}}function Ca(e){return"FunctionDeclaration"===e.type?{...e,type:"FunctionExpression"}:(st("ClassDeclaration"===e.type),{...e,type:"ClassExpression"})}function Aa(e){return Boolean("FunctionDeclaration"===e.type||"ClassDeclaration"===e.type||"VariableDeclaration"===e.type)}function _a(e){const t=e.baseUrl||void 0,i="object"==typeof t?t.href:t,n=e.outputFormat||"program",r=void 0===e.pragma?"React.createElement":e.pragma,s=void 0===e.pragmaFrag?"React.Fragment":e.pragmaFrag,a=e.pragmaImportSource||"react",o=e.jsxImportSource||"react",l=e.jsxRuntime||"automatic";return function(e,t){const h=[],p=[];let u,d,f,m=0;if("classic"===l&&s&&Ia(e,"@jsxFrag",s),"classic"===l&&r&&Ia(e,"@jsx",r),"automatic"===l&&o&&Ia(e,"@jsxImportSource",o),Ia(e,"@jsxRuntime",l),"classic"===l&&a){if(!r)throw new Error("Missing `pragma` in classic runtime with `pragmaImportSource`");b({type:"ImportDeclaration",specifiers:[{type:"ImportDefaultSpecifier",local:{type:"Identifier",name:r.split(".")[0]}}],attributes:[],source:{type:"Literal",value:a}})}for(f of e.body)if("ExportDefaultDeclaration"===f.type)u&&t.fail("Unexpected duplicate layout, expected a single layout (previous: "+ct(ea(u))+")",{ancestors:[e,f],place:ea(f),ruleId:"duplicate-layout",source:"recma-document"}),u=f,p.push({type:"VariableDeclaration",kind:"const",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"MDXLayout"},init:Aa(f.declaration)?Ca(f.declaration):f.declaration}]});else if("ExportNamedDeclaration"===f.type&&f.source){const i=f.source;f.specifiers=f.specifiers.filter(function(n){if("Identifier"===n.exported.type&&"default"===n.exported.name){u&&t.fail("Unexpected duplicate layout, expected a single layout (previous: "+ct(ea(u))+")",{ancestors:[e,f,n],place:ea(f),ruleId:"duplicate-layout",source:"recma-document"}),u=n;const r=[];if("Identifier"===n.local.type&&"default"===n.local.name)r.push({type:"ImportDefaultSpecifier",local:{type:"Identifier",name:"MDXLayout"}});else{const e={type:"ImportSpecifier",imported:n.local,local:{type:"Identifier",name:"MDXLayout"}};va(n.local,e),r.push(e)}const s={type:"Literal",value:i.value};va(i,s);const a={type:"ImportDeclaration",specifiers:r,attributes:[],source:s};return va(n,a),b(a),!1}return!0}),f.specifiers.length>0&&v(f)}else"ExportNamedDeclaration"===f.type||"ExportAllDeclaration"===f.type?v(f):"ImportDeclaration"===f.type?b(f):"ExpressionStatement"!==f.type||"JSXElement"!==f.expression.type&&"JSXFragment"!==f.expression.type?p.push(f):(d=!0,p.push(...c(f.expression,n,Boolean(u))));d||p.push(...c(void 0,n,Boolean(u))),h.push(["MDXContent","default"]),"function-body"===n&&p.push({type:"ReturnStatement",argument:{type:"ObjectExpression",properties:[...Array.from({length:m}).map(function(e,t){return{type:"SpreadElement",argument:{type:"Identifier",name:"_exportAll"+(t+1)}}}),...h.map(function(e){return{type:"Property",kind:"init",method:!1,computed:!1,shorthand:"string"==typeof e,key:{type:"Identifier",name:"string"==typeof e?e:e[1]},value:{type:"Identifier",name:"string"==typeof e?e:e[0]}}})]}}),e.body=p;let g=!1,x=!1;var y;function v(e){if("ExportNamedDeclaration"===e.type){if(e.declaration){const t=Sa();ri(e,{enter(e){t.enter(e),"ArrowFunctionExpression"!==e.type&&"FunctionDeclaration"!==e.type&&"FunctionExpression"!==e.type||(this.skip(),t.exit(e))},leave:t.exit}),h.push(...t.scopes[0].defined)}for(f of e.specifiers)"Identifier"===f.exported.type?h.push(f.exported.name):(st("string"==typeof f.exported.value),h.push(f.exported.value))}b(e)}function b(e){let t,i;if("function-body"===n)if("ImportDeclaration"===e.type||"ExportAllDeclaration"===e.type||"ExportNamedDeclaration"===e.type&&e.source){st(e.source);const n={type:"ImportExpression",source:e.source};va(e,n),i={type:"AwaitExpression",argument:n},t="ImportDeclaration"!==e.type&&"ExportNamedDeclaration"!==e.type||0!==e.specifiers.length?{type:"VariableDeclaration",kind:"const",declarations:"ExportAllDeclaration"===e.type?[{type:"VariableDeclarator",id:{type:"Identifier",name:"_exportAll"+ ++m},init:i}]:ba(e.specifiers,i)}:{type:"ExpressionStatement",expression:i}}else if(e.declaration)t=e.declaration;else{const i=[];for(const t of e.specifiers)"Identifier"===t.exported.type&&"Identifier"===t.local.type&&t.local.name!==t.exported.name&&i.push({type:"VariableDeclarator",id:t.exported,init:t.local});i.length>0&&(t={type:"VariableDeclaration",kind:"const",declarations:i})}else t=e;t&&p.push(t)}(i||"function-body"===n)&&ri(e,{enter(e){if(("ExportAllDeclaration"===e.type||"ExportNamedDeclaration"===e.type||"ImportDeclaration"===e.type)&&e.source){let t=e.source.value;try{new URL(t)}catch{(t.startsWith("/")||t.startsWith("./")||t.startsWith("../"))&&(t=new URL(t,i).href)}const n={type:"Literal",value:t};return va(e.source,n),void(e.source=n)}if("ImportExpression"===e.type){x=!0;const t={type:"CallExpression",callee:{type:"Identifier",name:"_resolveDynamicMdxSpecifier"},arguments:[e.source],optional:!1};return void(e.source=t)}if("MemberExpression"===e.type&&"object"in e&&"MetaProperty"===e.object.type&&"Identifier"===e.property.type&&"import"===e.object.meta.name&&"meta"===e.object.property.name&&"url"===e.property.name){g=!0;const t={type:"Identifier",name:"_importMetaUrl"};va(e,t),this.replace(t)}}}),x&&(i||(g=!0),e.body.push((y=i?{type:"Literal",value:i}:{type:"Identifier",name:"_importMetaUrl"},{type:"FunctionDeclaration",id:{type:"Identifier",name:"_resolveDynamicMdxSpecifier"},generator:!1,async:!1,params:[{type:"Identifier",name:"d"}],body:{type:"BlockStatement",body:[{type:"IfStatement",test:{type:"BinaryExpression",left:{type:"UnaryExpression",operator:"typeof",prefix:!0,argument:{type:"Identifier",name:"d"}},operator:"!==",right:{type:"Literal",value:"string"}},consequent:{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}},alternate:null},{type:"TryStatement",block:{type:"BlockStatement",body:[{type:"ExpressionStatement",expression:{type:"NewExpression",callee:{type:"Identifier",name:"URL"},arguments:[{type:"Identifier",name:"d"}]}},{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}}]},handler:{type:"CatchClause",param:null,body:{type:"BlockStatement",body:[]}},finalizer:null},{type:"IfStatement",test:{type:"LogicalExpression",left:{type:"LogicalExpression",left:{type:"CallExpression",callee:wa(["d","startsWith"]),arguments:[{type:"Literal",value:"/"}],optional:!1},operator:"||",right:{type:"CallExpression",callee:wa(["d","startsWith"]),arguments:[{type:"Literal",value:"./"}],optional:!1}},operator:"||",right:{type:"CallExpression",callee:wa(["d","startsWith"]),arguments:[{type:"Literal",value:"../"}],optional:!1}},consequent:{type:"ReturnStatement",argument:{type:"MemberExpression",object:{type:"NewExpression",callee:{type:"Identifier",name:"URL"},arguments:[{type:"Identifier",name:"d"},y]},property:{type:"Identifier",name:"href"},computed:!1,optional:!1}},alternate:null},{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}}]}}))),g&&e.body.unshift({type:"VariableDeclaration",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"_importMetaUrl"},init:wa(["arguments",0,"baseUrl"])}],kind:"const"},{type:"IfStatement",test:{type:"UnaryExpression",operator:"!",prefix:!0,argument:{type:"Identifier",name:"_importMetaUrl"}},consequent:{type:"ThrowStatement",argument:{type:"NewExpression",callee:{type:"Identifier",name:"Error"},arguments:[{type:"Literal",value:"Unexpected missing `options.baseUrl` needed to support `export … from`, `import`, or `import.meta.url` when generating `function-body`"}]}},alternate:null})};function c(e,t,i){let n={type:"JSXElement",openingElement:{type:"JSXOpeningElement",name:{type:"JSXIdentifier",name:"MDXLayout"},attributes:[{type:"JSXSpreadAttribute",argument:{type:"Identifier",name:"props"}}],selfClosing:!1},closingElement:{type:"JSXClosingElement",name:{type:"JSXIdentifier",name:"MDXLayout"}},children:[{type:"JSXElement",openingElement:{type:"JSXOpeningElement",name:{type:"JSXIdentifier",name:"_createMdxContent"},attributes:[{type:"JSXSpreadAttribute",argument:{type:"Identifier",name:"props"}}],selfClosing:!0},closingElement:null,children:[]}]};i||(n={type:"ConditionalExpression",test:{type:"Identifier",name:"MDXLayout"},consequent:n,alternate:{type:"CallExpression",callee:{type:"Identifier",name:"_createMdxContent"},arguments:[{type:"Identifier",name:"props"}],optional:!1}});let r=e||{type:"Identifier",name:"undefined"};"JSXFragment"===r.type&&1===r.children.length&&"JSXElement"===r.children[0].type&&(r=r.children[0]);let s=!1;ri(r,{enter(e){if("ArrowFunctionExpression"===e.type||"FunctionDeclaration"===e.type||"FunctionExpression"===e.type)return this.skip();("AwaitExpression"===e.type||"ForOfStatement"===e.type&&e.await)&&(s=!0)}});const a={type:"FunctionDeclaration",id:{type:"Identifier",name:"MDXContent"},params:[{type:"AssignmentPattern",left:{type:"Identifier",name:"props"},right:{type:"ObjectExpression",properties:[]}}],body:{type:"BlockStatement",body:[{type:"ReturnStatement",argument:n}]}};return[{type:"FunctionDeclaration",async:s,id:{type:"Identifier",name:"_createMdxContent"},params:[{type:"Identifier",name:"props"}],body:{type:"BlockStatement",body:[{type:"ReturnStatement",argument:r}]}},"program"===t?{type:"ExportDefaultDeclaration",declaration:a}:a]}}function Ia(e,t,i){e.comments?.unshift({type:"Block",value:t+" "+i,data:{_mdxIsPragmaComment:!0}})}function Na(e){let t,i=-1;for(;++i<e.length;){const n=e[i];t=t?{type:"BinaryExpression",left:t,operator:"+",right:n}:n}return t}function Ta(e){const{development:t,outputFormat:i,providerImportSource:n}=e;return function(e,r){const s=Sa(),a=[];let o=!1,l=!1;if(ri(e,{enter(e){s.enter(e),"FunctionDeclaration"!==e.type&&"FunctionExpression"!==e.type&&"ArrowFunctionExpression"!==e.type||(a.push({components:[],idToInvalidComponentName:new Map,node:e,objects:[],references:{},tags:[]}),Pa(e,"MDXContent")&&!La(s.scopes,"MDXLayout")&&a[0].components.push("MDXLayout"));const t=a[0];if(t&&(Pa(t.node,"_createMdxContent")||n)&&"JSXElement"===e.type){let i=e.openingElement.name;if("JSXMemberExpression"===i.type){const n=[];for(;"JSXMemberExpression"===i.type;)n.unshift(i.property.name),i=i.object;n.unshift(i.name);const r=n.join("."),o=i.name,l=La(s.scopes,o);Object.hasOwn(t.references,r)||l&&(1!==a.length||"FunctionDeclaration"!==a[0].node.type||!Pa(a[0].node,"_createMdxContent"))||(t.references[r]={component:!0,node:e}),t.objects.includes(o)||l||t.objects.push(o)}else if("JSXNamespacedName"===i.type);else if(St(i.name)&&!/^[a-z]/.test(i.name)){const n=i.name;La(s.scopes,n)||("MDXLayout"===n||Object.hasOwn(t.references,n)||(t.references[n]={component:!0,node:e}),t.components.includes(n)||t.components.push(n))}else if(e.data&&e.data._mdxExplicitJsx);else{const n=i.name;t.tags.includes(n)||t.tags.push(n);let r=["_components",n];if(!1===St(n)){let e=t.idToInvalidComponentName.get(n);void 0===e&&(e=`_component${t.idToInvalidComponentName.size}`,t.idToInvalidComponentName.set(n,e)),r=[e]}e.openingElement.name=ka(r),e.closingElement&&(e.closingElement.name=ka(r))}}},leave(e){s.exit(e);const i=[],r=[],c=[],h=[];if("FunctionDeclaration"===e.type||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type){const s=a[a.length-1];let p;for(p of s.tags.sort())i.push({type:"Property",kind:"init",key:St(p)?{type:"Identifier",name:p}:{type:"Literal",value:p},value:{type:"Literal",value:p},method:!1,shorthand:!1,computed:!1});for(p of(r.push(...s.components),s.objects))r.includes(p)||r.push(p);r.sort();const u=[];if(i.length>0||r.length>0||s.idToInvalidComponentName.size>0){if(n&&(o=!0,c.push({type:"CallExpression",callee:{type:"Identifier",name:"_provideComponents"},arguments:[],optional:!1})),(Pa(s.node,"MDXContent")||Pa(s.node,"_createMdxContent"))&&c.push(wa(["props","components"])),i.length>0||c.length>1)for(const e of c)i.push({type:"SpreadElement",argument:e});let e,t=i.length>0?{type:"ObjectExpression",properties:i}:{type:"LogicalExpression",operator:"||",left:c[0],right:{type:"ObjectExpression",properties:[]}};if(r.length>0&&(e={type:"ObjectPattern",properties:r.map(function(e){return{type:"Property",kind:"init",key:{type:"Identifier",name:"MDXLayout"===e?"wrapper":e},value:{type:"Identifier",name:e},method:!1,shorthand:"MDXLayout"!==e,computed:!1}})}),s.tags.length>0&&(h.push({type:"VariableDeclarator",id:{type:"Identifier",name:"_components"},init:t}),t={type:"Identifier",name:"_components"}),Pa(s.node,"_createMdxContent"))for(const[e,t]of[...s.idToInvalidComponentName].sort(function([e],[t]){return e.localeCompare(t)}))h.push({type:"VariableDeclarator",id:{type:"Identifier",name:t},init:{type:"MemberExpression",object:{type:"Identifier",name:"_components"},property:{type:"Literal",value:e},computed:!0,optional:!1}});e&&h.push({type:"VariableDeclarator",id:e,init:t}),h.length>0&&u.push({type:"VariableDeclaration",kind:"const",declarations:h})}let d;for(d in s.references)if(Object.hasOwn(s.references,d)){const e=d.split(".");let t=0;for(;++t<e.length;){const i=e.slice(0,t).join(".");Object.hasOwn(s.references,i)||(s.references[i]={component:!1,node:s.references[d].node})}}const f=Object.keys(s.references).sort();let m=-1;for(;++m<f.length;){const e=f[m],i=s.references[e],n=ct(ea(i.node)),r=[{type:"Literal",value:e},{type:"Literal",value:i.component}];l=!0,t&&n&&r.push({type:"Literal",value:n}),u.push({type:"IfStatement",test:{type:"UnaryExpression",operator:"!",prefix:!0,argument:wa(e.split("."))},consequent:{type:"ExpressionStatement",expression:{type:"CallExpression",callee:{type:"Identifier",name:"_missingMdxReference"},arguments:r,optional:!1}},alternate:void 0})}u.length>0&&("BlockStatement"!==e.body.type&&(e.body={type:"BlockStatement",body:[{type:"ReturnStatement",argument:e.body}]}),e.body.body.unshift(...u)),a.pop()}}}),o&&n&&e.body.unshift(function(e,t){const i=[{type:"ImportSpecifier",imported:{type:"Identifier",name:"useMDXComponents"},local:{type:"Identifier",name:"_provideComponents"}}];return"function-body"===t?{type:"VariableDeclaration",kind:"const",declarations:ba(i,wa(["arguments",0]))}:{type:"ImportDeclaration",specifiers:i,attributes:[],source:{type:"Literal",value:e}}}(n,i)),l){const i=[{type:"Literal",value:"Expected "},{type:"ConditionalExpression",test:{type:"Identifier",name:"component"},consequent:{type:"Literal",value:"component"},alternate:{type:"Literal",value:"object"}},{type:"Literal",value:" `"},{type:"Identifier",name:"id"},{type:"Literal",value:"` to be defined: you likely forgot to import, pass, or provide it."}],n=[{type:"Identifier",name:"id"},{type:"Identifier",name:"component"}];t&&(i.push({type:"ConditionalExpression",test:{type:"Identifier",name:"place"},consequent:Na([{type:"Literal",value:"\nIt’s referenced in your code at `"},{type:"Identifier",name:"place"},{type:"Literal",value:(r.path?"` in `"+r.path:"")+"`"}]),alternate:{type:"Literal",value:""}}),n.push({type:"Identifier",name:"place"})),e.body.push({type:"FunctionDeclaration",id:{type:"Identifier",name:"_missingMdxReference"},generator:!1,async:!1,params:n,body:{type:"BlockStatement",body:[{type:"ThrowStatement",argument:{type:"NewExpression",callee:{type:"Identifier",name:"Error"},arguments:[Na(i)]}}]}})}"function-body"===i&&e.body.unshift({type:"ExpressionStatement",expression:{type:"Literal",value:"use strict"},directive:"use strict"})}}function Pa(e,t){return Boolean(e&&"id"in e&&e.id&&e.id.name===t)}function La(e,t){let i=e.length;for(;i--;){if(e[i].defined.includes(t))return!0}return!1}function Va(){return function(e){vt(e,"raw",function(e,t,i){if(i&&"number"==typeof t)return i.children.splice(t,1),t})}}const Ra=/\s+/g,Oa=/[\t\n\v\f\r ]+/g;function ja(e,t){t?"string"==typeof t&&(t={style:t}):t={};const i=t.preserveLineEndings?Da:Ma;return String(e).replace("html"===t.style?Oa:Ra,t.trim?function(e){return t;function t(t,i,n){return 0===i||i+t.length===n.length?"":e(t)}}(i):i)}function Da(e){const t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function Ma(){return" "}function Fa(){return function(e){vt(e,function(e,t,i){let n=-1,r=!0,s=!1;if(i&&"number"==typeof t&&"paragraph"===e.type){const a=e.children;for(;++n<a.length;){const e=a[n];if("mdxJsxTextElement"===e.type||"mdxTextExpression"===e.type)s=!0;else if("text"!==e.type||""!==ja(e.value,{style:"html",trim:!0})){r=!1;break}}if(r&&s){n=-1;const e=[];for(;++n<a.length;){const t=a[n];"mdxJsxTextElement"===t.type&&(t.type="mdxJsxFlowElement"),"mdxTextExpression"===t.type&&(t.type="mdxFlowExpression"),"text"===t.type&&/^[\t\r\n ]+$/.test(String(t.value))||e.push(t)}return i.children.splice(t,1,...e),t}}if("mdxJsxFlowElement"===e.type||"mdxJsxTextElement"===e.type){(e.data||(e.data={}))._mdxExplicitJsx=!0}("mdxFlowExpression"===e.type||"mdxTextExpression"===e.type||"mdxjsEsm"===e.type)&&e.data&&e.data.estree&&ri(e.data.estree,{enter(e){if("JSXElement"===e.type){(e.data||(e.data={}))._mdxExplicitJsx=!0}}})})}}const Ba=["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"];let Ua=!1;function za(e,t){const{file:i,options:n}=ei(e,t);return function(e){const t=e||{};t.format,("classic"===t.jsxRuntime||t.pragma||t.pragmaFrag||t.pragmaImportSource)&&!Ua&&(Ua=!0,console.warn("Unexpected deprecated option `jsxRuntime: 'classic'`, `pragma`, `pragmaFrag`, or `pragmaImportSource`; see <https://mdxjs.com/migrating/v3/> on how to migrate"));const i=bt().use(wt);"md"!==t.format&&i.use(ya);const n=t.remarkRehypeOptions||{};return i.use(Fa).use(t.remarkPlugins||[]).use(jt,{...n,allowDangerousHtml:!0,passThrough:[...n.passThrough||[],...Ba]}).use(t.rehypePlugins||[]),"md"===t.format&&i.use(Va),i.use(bn,t).use(_a,t).use(Ta,t),t.jsx||i.use(hi,t).use(Ea,t),i.use(qi).use(Gi,t).use(t.recmaPlugins||[]),i}(n).process(i)}const Ja=Object.getPrototypeOf(qa).constructor;async function qa(e,t){return new Ja(String(e))(t)}async function Ga(e,t){const{compiletime:i,runtime:n}=function(e){const{Fragment:t,baseUrl:i,development:n,jsx:r,jsxDEV:s,jsxs:a,useMDXComponents:o,...l}=e||{};if(!t)throw new Error("Expected `Fragment` given to `evaluate`");if(n){if(!s)throw new Error("Expected `jsxDEV` given to `evaluate`")}else{if(!r)throw new Error("Expected `jsx` given to `evaluate`");if(!a)throw new Error("Expected `jsxs` given to `evaluate`")}return{compiletime:{...l,development:n,outputFormat:"function-body",providerImportSource:o?"#":void 0},runtime:{Fragment:t,baseUrl:i,jsx:r,jsxDEV:s,jsxs:a,useMDXComponents:o}}}(t);return qa(await za(e,i),n)}const Xa=(e,t=0)=>{const i=new Int32Array(e.length);for(let n=0;n<e.length;n++)i[n]=e.charCodeAt(n)-48-t;return i},Ha=e=>{const t=new Int32Array(e.length+1);for(let i=0;i<e.length;i++)t[i+1]=t[i]+e[i];return t},Wa=e=>{const t=new Int32Array(e.length);let i=0;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n)-48;i+=r>>>1^-(1&r),t[n]=i}return t},$a=Ha(Xa("E0500002005282000000002000150000020021820000011200000003022202000300004200120000200420001200021200301200010400162000010000220021010:2192001200220012000220012000200200200400010200040000000000400200108200110100000022010313000162002000020020012020080213000228200000000082000000000120002000120020020040101020300130001001010")),Ka=Ha(Xa(":11111111211111119311546544411119731869:671397415686432441111111111161114151214313433415:78311132233313187211117221449443411141111151152226611131111112212518142224214215421421542142424242516171151615616347111111111197911327451111111111111111111113134714133513411111311111111111111111111112444411111342312715245411117:3")),Qa=(()=>{const e=$a.length-1,t=new Int32Array(e);for(let i=e-1;i>=0;i--){let e=1,n=i+1;for(let r=$a[i];r<$a[i+1];r++)e+=t[n],n+=t[n];t[i]=e}const i=new Int32Array($a[e]);let n=0;for(let r=0;r<e;r++){let e=r+1;for(let s=$a[r];s<$a[r+1];s++)i[n++]=e,e+=t[e]}return i})(),Ya=Xa("02000000000000900<=0?000B000F00F00ŏI0J0LNPRTVX0000]_a00000000000000000000000rst0000000zŏ00000000000…ŏ000ˆ0000ŏ0000000000—0000000000000000000000000000000000000000000000000000Ë000000000000000000000Þ000000000000000000ð0000000ø0ùúûüýþÿĀāĂ㥹Ć000000000000000000000000000000000000000000ħ0ĨĪ00000000000000000000ļĽ00000Ŭ000000",1),Za=Ha(Xa("123333359346463635126536711576")),eo=Xa("93203242332583253248325D>E?F@03263243255B:032523853:0325B:8GA032542H<C=12727B:0328432553;D>E?3257D>032585:0325B:;0328B:032"),to=Xa("012113445661666666789111:5;;;;;;;;444;;;:62999<1161=62>>?61:21@ABCD4446996:64E:::;:?::64:F114GHHIHHHHIHH1HH1HH1HHHHHH::EEJ4444::EE4444441691;644444114244444:;K6666555555555555555999666664444444444444444444444226?6:66644L9M?D:111::::6DE199"),io=Wa("020200202020020020020020020020200200200200200200200002020202001003040106000200200200200200200200200200200200200200200200200200200200200200200200200200200200020020020020020020002020200202002002002002002002002002002020002002020020200220200200200200200200200200200200020020020000200020002000200200200020020020002000200200200020020202002020202000200200020022000200200020020002002000200220002002000200W0Z00020020002002020002002000200g0j0002002000200200020020002002000200200020020002000200002000002002002002002000200020000200002002002002002002002020020020200200200200200200200200202020020020020020020020020002002002020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020002002002002002002000200200200200200200200200200020202020002000200020002002002002000020200200"),no=(()=>{const e=new Int32Array(319).fill(-1),t=Wa("02422242:222222242224222242442222222422222244442242226224222426222422442462222422622222222626222462242622422622422424242422222222422222222242422222222222222222622442224222222222222224424442262222222222222222222226224222424242422224422422422222"),i=Wa("02222222222222222222202222222222222222222222221422222222222222222222222222222222222Y\\222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222221422222222222222222222222222222222222222Ŀł222222222222222222");for(let n=0;n<t.length;n++)e[t[n]]=i[n];return e})(),ro="container |break-after- all auto avoid avoid-page column left page right|break-before- all auto avoid avoid-page column left page right|break-inside-a uto void void-column void-page|box-decoration- clone slice|box- border content| contents flow-root hidden table table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group| not-sr-only sr-only|float- end left none right start|clear- both end left none right start|isolat e ion-auto|overflow- auto clip hidden scroll visible|overflow-x- auto clip hidden scroll visible|overflow-y- auto clip hidden scroll visible|overscroll- auto contain none|overscroll-x- auto contain none|overscroll-y- auto contain none| absolute fixed relative static sticky| collapse invisible visible|justify- around baseline between center center-safe end end-safe evenly normal start stretch|justify-items- center center-safe end end-safe normal start stretch|justify-self- auto center center-safe end end-safe start stretch|items- baseline baseline-last center center-safe end end-safe start stretch|self- auto baseline baseline-last center center-safe end end-safe start stretch|place-content- around baseline between center center-safe end end-safe evenly start stretch|place-items- baseline center center-safe end end-safe start stretch|place-self- auto center center-safe end end-safe start stretch| antialiased subpixel-antialiased| italic not-italic|normal-nums |ordinal |slashed-zero | lining-nums oldstyle-nums| proportional-nums tabular-nums| diagonal-fractions stacked-fractions| no-underline overline| capitalize lowercase normal-case uppercase|truncate |whitespace- break-spaces normal nowrap pre pre-line pre-wrap|break- all keep normal words|wrap- anywhere break-word normal|hyphens- auto manual none|mix-blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay plus-darker plus-lighter saturation screen soft-light|table- auto fixed|caption- bottom top|backface- hidden visible|appearance- auto none|scheme- dark light light-dark normal only-dark only-light|field-sizing- content fixed|pointer-events- auto none|resize -none -x -y|snap- align-none center end start|snap- always normal|snap- both none x y|snap- mandatory proximity|touch- auto manipulation none|touch-pan- left right x|touch-pan- down up y|touch-pinch-zoom |select- all auto none text|forced-color-adjust- auto none| normal size| baseline bottom middle sub super text-bottom text-top top| bounce none ping pulse spin| auto square video| auto fr max min px|none | auto full px| fixed local scroll|clip- border content padding text|origin- border content padding| bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| no-repeat repeat repeat-round repeat-space repeat-x repeat-y| auto contain cover|blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay saturation screen soft-light|to- b bl br l r t tl tr| auto dvh fit full lh lvh max min px screen svh| dashed dotted double hidden none solid| collapse separate|px |auto |full | content none strict| inline-size size|layout |paint |style | around baseline between center center-safe end end-safe evenly normal start stretch| alias all-scroll auto cell col-resize context-menu copy crosshair default e-resize ew-resize grab grabbing help move n-resize ne-resize nesw-resize no-drop none not-allowed ns-resize nw-resize nwse-resize pointer progress row-resize s-resize se-resize sw-resize text vertical-text w-resize wait zoom-in zoom-out| dashed dotted double solid wavy| auto from-font|reverse |initial | in in-out initial linear out| col col-reverse row row-reverse| nowrap wrap wrap-reverse| auto initial none| black bold extrabold extralight light medium normal semibold thin| condensed expanded extra-condensed extra-expanded normal semi-condensed semi-expanded ultra-condensed ultra-expanded|flow- col col-dense dense row row-dense| none subgrid| auto dvh dvw fit full lh lvh lvw max min px screen svh svw| block flex grid table| auto dvw fit full lvw max min px screen svw| loose none normal px relaxed snug tight|through |item | inside outside| decimal disc none| auto px| clip-border clip-content clip-fill clip-padding clip-stroke clip-view no-clip| add exclude intersect subtract| alpha luminance match|origin- border content fill padding stroke view|type- alpha luminance| circle ellipse| closest-corner closest-side farthest-corner farthest-side|at- bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| dvh fit full lh lvh max min none px screen svh| auto dvh dvw fit full lh lvh lvw max min none px screen svh svw| dvw fit full lvw max min none px screen svw| auto dvh dvw fit full lvh lvw max min none prose px svh svw| auto dvh dvw fit full lvh lvw max min none px screen svh svw| contain cover fill none scale-down| first last none| distant dramatic midrange near none normal|inset | full none|3d | auto smooth|gutter- auto both stable| auto none thin| inner none| auto dvh dvw fit full lvh lvw max min px svh svw|base | center end justify left right start| clip ellipsis| balance nowrap pretty wrap| normal tight tighter wide wider widest| cpu gpu none| 3d flat| all colors none opacity shadow transform| discrete normal| full px| auto dvh dvw fit full lvh lvw max min px screen svh svw| auto contents scroll transform".split("|").map(e=>{const t=e.split(" "),i=t.shift();for(let e=0;e<t.length;e++)t[e]=i+t[e];return t}),so=Wa("0000000000000000000000000000000000000000000000000000000000000262242:6@200000006:240B428:4422400002046044222426220026642642462026224222824220022400000000\\00N222422242222222224062242222222422226264222422222222222222442804222422222222222222222222220<4<0204260002444020204224422"),ao=Wa("ɠ222222222222222222222222222222222222222222222222222222222222˕4222226>6ʰ22ʷʺʷʺʷ42ʴ2ʓ22>621422ɶ222ɹɼɷɺɷɺ22ɱ42222ɨ2ɧ26622ɘɓ244ƸƵ222]d24242ǖǓƚÄȫ2263ȨȥȨ2222222ǣ222222222222222222ǂƽ2ƾƵ2222222422222ƜƑ22222222222222222222144Ŧţ22Ţş222222222222222222222ĸ2ı68ĦģĦɡŰ4Ġ«®ĝ822ĔđĔ2ē2222622"),oo=Wa("02222222222222222222222222222222222222222222222222222222222222222202021422222222CF2200GJ021042222WZ222IL0ad2c10h2222U00X202[^2w0000120zy|}€22ƒ†…:22z22222222222G000q†OVI00000{˜2™<40000Œ›@00000G¦§000ª00000000000000021K¬«00®“000000000000000000000–222›HGH_1¸222½2¾2222ÇÊ000­°2±"),lo=new Int32Array(987),co=new Int32Array(987),ho=new Int32Array(987);let po="";const uo=new Int32Array(1022);{const e=new Map;let t=0,i=0;for(let n=0;n<so.length;n++)for(const r of ro[oo[n]]){let s=e.get(r);void 0===s&&(s=t++,e.set(r,s),uo[2*s]=po.length,uo[2*s+1]=r.length,po+=r),lo[i]=so[n],co[i]=ao[n],ho[i]=s,i++}}const fo=Wa("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"),mo=Ha(Xa("1::24444432:442:44:44>222222:44:4421322511111311111114")),go=Wa("2Š4A;33N=C@H4A;33N=C@<27;83:;8393NQ:3NQʰ222ˉºŴŽ2R2=18cƴÅҜ=cĞÛC1ƈǝȈ:ħ25=11D3A@4=<1;1DEr25;11B3?<6;:371BCn9@7=<8192>2E121@9@EHE@9>2T25511<398454131<=V25511<398454131<=„ƧNž2Đå242L222290000f22500ɛ000ǘ222"),xo=Xa("ij"),yo=Xa("—"),vo=Xa("1");var bo={GROUP_COUNT:384,customValidatorNames:[],edgeStart:$a,labelStart:Ka,labelText:"@containerabcdefghinlmoprstunderlineviawzccentlignnimatespectuto-colsrowsaglorightnessckdrop-sisbcontrastfiltergrayscalehue-rotateinvertopacityslurrightnessaturateepia-coniclinearpositionradialsizeockurrderttom-belrstxyespacing-xyaretoursorlnt-umnsendspantartainentrasteividerop-shadowurationcorationlay-xyasendillexontromlter-featuresstretchapr-xyayscaleidow-colsrowsue-rotatedentlinesetvert-beringsxyeshadoweiadingftnest-clamp-imageabein-lrstxyskx--b-coniclpositionrsizet-x-y-fromto-fromto-inearfromto-fromto-adialfromto-fromtofromtofromtofromtoblockhinlinew-screenesblockhinlinewbjectpacityrutlinederigin-offsetbelrstxyesrspective-originaceholderioghtng-offsettateundedw-xyz-belrstlreseslr-endspantartaturatecepiahizekewpace-taleroll-xyz-barmpbelrstxyesbelrstxyes-thumbrackadowrink-xyxyartrokeabextora-shadowpckingnsformitionlate-xyz-offsetill-changeoom",edgeTarget:Qa,nodeGroup:Ya,nodeVlist:no,vlistPat:Za,vlistOps:eo,vlistRef:to,vlistGroup:io,litAnchor:lo,litGroup:co,litPool:ho,poolOffsets:uo,poolText:po,adjGid:fo,adjStart:mo,adjTgt:go,patGid:xo,patTgt:yo,postfixLookupGroups:vo,orderSensitiveModifiers:"* ** after backdrop before details-content file first-letter first-line marker placeholder selection"};const wo="line"in new Error,ko=-1,Eo=-1,So=(e,t,i)=>{let n=2166136261;for(let r=t;r<i;r++)n=Math.imul(n^e.charCodeAt(r),16777619);return n},Co=(e,t,i)=>{const n=i-t;let r=Math.imul(n,2654435761)^e.charCodeAt(t);if(n>3){const s=n>>2,a=n>>1;r=Math.imul(r^e.charCodeAt(t+1)<<8^e.charCodeAt(t+2)<<16^e.charCodeAt(t+s),2246822507),r=Math.imul(r^e.charCodeAt(t+a)<<8^e.charCodeAt(t+a+s)<<16^e.charCodeAt(i-3),3266489909),r^=e.charCodeAt(i-2)<<8^e.charCodeAt(i-1)<<16;for(let n=t+3,s=i-4;n<t+8&&n<s;n++,s--)r=Math.imul(r^e.charCodeAt(n)^e.charCodeAt(s)<<8,16777619)}return r^r>>>15},Ao=(e,t,i={})=>{const{GROUP_COUNT:n,edgeStart:r,labelStart:s,labelText:a,edgeTarget:o,nodeGroup:l,nodeVlist:c,vlistPat:h,vlistOps:p,vlistRef:u,vlistGroup:d,litAnchor:f,litGroup:m,litPool:g,poolOffsets:x,poolText:y,adjGid:v,adjStart:b,adjTgt:w,patGid:k,patTgt:E,postfixLookupGroups:S,customValidatorNames:C,orderSensitiveModifiers:A}=e,_=new Int32Array(n).fill(-1);for(let e=0;e<v.length;e++)_[v[e]]=e;let I=0;for(let e=0;e+1<b.length;e++){const t=b[e+1]-b[e];t>I&&(I=t)}let N=32;for(;N<2*(1+I+k.length);)N<<=1;const T=new Int32Array(u.length+1);for(let e=0;e<u.length;e++)T[e+1]=T[e]+h[u[e]+1]-h[u[e]];const P=new Uint8Array(n);for(let e=0;e<S.length;e++)P[S[e]]=1;const L=r.length-1,V=new Uint8Array(L);let R=0,O=!0;for(let e=0;e<f.length;e++){V[f[e]]=1;const t=x[2*g[e]+1];t>R&&(R=t);const i=y.charCodeAt(x[2*g[e]]);91!==i&&40!==i||(O=!1)}let j=1;for(;j<2*f.length;)j<<=1;const D=new Int32Array(j).fill(-1);for(let e=0;e<f.length;e++){const t=x[2*g[e]];let i=(So(y,t,t+x[2*g[e]+1])^Math.imul(f[e],2654435761))&j-1;for(;-1!==D[i];)i=i+1&j-1;D[i]=e}const M=(e,t,i,n)=>{let r=(So(t,i,n)^Math.imul(e,2654435761))&j-1;const s=n-i;for(;;){const n=D[r];if(-1===n)return-1;if(f[n]===e&&x[2*g[n]+1]===s){const e=x[2*g[n]];let r=!0;for(let n=0;n<s;n++)if(y.charCodeAt(e+n)!==t.charCodeAt(i+n)){r=!1;break}if(r)return m[n]}r=r+1&j-1}},F=i.cacheSize??8192,B=i.prefix??e.prefix??"",U=""===B?"":B+":",z=U.length,J=(C??[]).map(e=>{throw new Error("cn: missing validator "+e)}),q=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,G=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,X=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,H=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;let W=0,$=-1,K=-1,Q=-1,Y=-1;const Z=e=>e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57||95===e,ee=e=>/\s/.test(String.fromCharCode(e)),te=(e,t,i)=>{if(W=0,$=-1,i-t<3)return;const n=e.charCodeAt(t),r=e.charCodeAt(i-1);if(91===n&&93===r)W=1;else{if(40!==n||41!==r)return;W=2}Q=t+1,Y=i-1;let s=t+1;if(Z(e.charCodeAt(s))){for(s++;s<i-1;){const t=e.charCodeAt(s);if(!Z(t)&&45!==t)break;s++}s<i-2&&58===e.charCodeAt(s)&&($=t+1,K=s,Q=s+1)}},ie=(e,t,i,n)=>{if(i-t!==n.length)return!1;for(let i=0;i<n.length;i++)if(e.charCodeAt(t+i)!==n.charCodeAt(i))return!1;return!0},ne=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,re=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,se=e=>!!e&&!Number.isNaN(Number(e)),ae=[1,1,1,1,1,1,1,1,2,2,2,2,2,2,2],oe="length|number|number weight|family-name|position percentage|length size bg-size|image url|shadow|length|family-name|position percentage|length size bg-size|image url|shadow|number weight".split("|").map(e=>e.split(" ")),le=[2,3,1,0,0,0,4,5,0,0,0,0,0,1,1],ce=(e,t,i,n)=>{if(e>=10){if(e>=25)return J[e-25](t.slice(i,n));const r=e-10;if(W!==ae[r])return!1;if($>=0){for(const e of oe[r])if(ie(t,$,K,e))return!0;return!1}switch(le[r]){case 0:return!1;case 1:return!0;case 2:{const e=t.slice(Q,Y);return q.test(e)&&!G.test(e)}case 3:return se(t.slice(Q,Y));case 4:return H.test(t.slice(Q,Y));default:return X.test(t.slice(Q,Y))}}switch(e){case 0:return!0;case 1:return 0===W;case 2:return 1===W;case 3:return 2===W;case 4:return ne.test(t.slice(i,n));case 5:return se(t.slice(i,n));case 6:{const e=t.slice(i,n);return!!e&&Number.isInteger(Number(e))}case 7:return n>i&&37===t.charCodeAt(n-1)&&se(t.slice(i,n-1));case 8:return re.test(t.slice(i,n));default:return((e,t,i)=>{if(i-t<11||!ie(e,t,t+10,"@container"))return!1;if(47===e.charCodeAt(t+10))return i-t>=12;const n=e.charCodeAt(t+11);return 115===n&&i-t>=17&&ie(e,t+10,t+16,"-size/")||110===n&&i-t>=19&&ie(e,t+10,t+18,"-normal/")})(t,i,n)}},he=new Set("string"==typeof A?A.split(" "):A),pe=(e,t,i,n,r,s)=>{const a=So(t,i,n)^(r?2654435769:0);let o=e.get(a);if(void 0!==o)e:for(let e=0;e<o.length;e++){const s=o[e];if(s.imp===r&&s.k.length===n-i){for(let e=0;e<s.k.length;e++)if(s.k.charCodeAt(e)!==t.charCodeAt(i+e))continue e;return s.id}}else e.set(a,o=[]);const l=t.slice(i,n),c=s(l);return o.push({k:l,imp:r,id:c}),c};let ue=new Map,de=new Map,fe=2;const me=(e,t)=>{const i=[];let n=0,r=0,s=0;for(let t=0;t<e.length;t++){const a=e.charCodeAt(t);0===n&&0===r&&58===a?(i.push(e.slice(s,t)),s=t+1):91===a?n++:93===a?n--:40===a?r++:41===a&&r--}i.push(e.slice(s));let a=i[0];if(i.length>1){const e=[];let t=[];for(const n of i)91===n.charCodeAt(0)||he.has(n)?(t.length&&(e.push(...t.sort()),t=[]),e.push(n)):t.push(n);t.length&&e.push(...t.sort()),a=e.join(":")}const o=t?a+" !":a;let l=de.get(o);return void 0===l&&de.set(o,l=fe++),l};let ge=new Map,xe=n;const ye=n+4096,ve=()=>xe++,be=2097152,we=8192,ke=new Int32Array(we),Ee=new Array(we).fill(null),Se=new Int32Array(we),Ce=new Int32Array(we),Ae=new Uint8Array(we);let _e=0;const Ie=(e,t,i,n,r,s,a,o)=>{let l=e;if(null!==Ee[e])if(null===Ee[1|e])l=1|e;else{if(3&_e++)return;l=e|_e>>2&1}Ee[l]=t.slice(i,n),ke[l]=r,Se[l]=s,Ce[l]=a,Ae[l]=o},Ne=()=>Ee.fill(null);let Te=256,Pe=[new Int32Array(Te),new Int32Array(Te),new Int32Array(Te),new Int32Array(Te)],[Le,Ve,Re,Oe]=Pe,je=new Uint8Array(Te),De=new Uint8Array(Te);const Me=()=>{Te*=2,Pe=Pe.map(e=>{const t=new Int32Array(Te);return t.set(e),t}),[Le,Ve,Re,Oe]=Pe;const e=new Uint8Array(Te);e.set(je),je=e,De=new Uint8Array(Te)};let Fe=64,Be=new Int32Array(Fe),Ue=new Int32Array(Fe);const ze=new Int32Array(n);let Je=2048,qe=21,Ge=new Float64Array(Je),Xe=new Int32Array(Je),He=0;const We=(e,t)=>{if(0===e&&t<n)return ze[t]===He?1:(ze[t]=He,0);const i=2097152*e+t+1;let r=Math.imul(i,2654435761)>>>qe;for(;Xe[r]===He;){if(Ge[r]===i)return 1;r=r+1&Je-1}return Ge[r]=i,Xe[r]=He,0},$e=(e,t,i,n,r)=>{if(i-t>=2&&91===e.charCodeAt(t)&&93===e.charCodeAt(i-1)){let n=-1;for(let r=t+1;r<i-1;r++)if(58===e.charCodeAt(r)){n=r;break}return-1===n||n===t+1?ko:pe(ge,e,t+1,n,0,ve)}if(n>=0&&l[n]>=0)return l[n];for(let t=r-1;t>=0;t--){const n=Ue[t];if(n>i)continue;const r=Be[t],s=i-n;if(1===V[r]&&s>0&&s<=R){const t=e.charCodeAt(n);if(!1===O||91!==t&&40!==t){const t=M(r,e,n,i);if(t>=0)return t}}const a=c[r];if(a<0)continue;const o=u[a],l=h[o],f=h[o+1];if(l===f)continue;te(e,n,i);const m=T[a]-l;for(let t=l;t<f;t++)if(ce(p[t],e,n,i))return d[m+t]}return ko},Ke=e=>{const t=e.length;let i=0,l=0,h=!1;(fe>4096||ue.size>4096)&&(ue=new Map,de=new Map,fe=2,Ne()),xe>ye&&(ge=new Map,xe=n,Ne());let p=0;for(;p<t;){let u=e.charCodeAt(p);if(32===u||u>=9&&u<=13||u>=160&&ee(u)){32!==u&&(h=!0),p++;continue}const d=p;let f=0;for(;p<t;){if(u=e.charCodeAt(p),u<=32){if(32===u)break;if(u>=9&&u<=13){h=!0;break}}else if(u>=160&&ee(u)){h=!0;break}f=Math.imul(f^u,16777619),p++}const m=p,g=m-d;i===Te&&Me();const x=i++;Le[x]=d,Ve[x]=m,l+=g,f^=Math.imul(g,2654435761);const y=f^f>>>15,v=8190&y;{let t=-1;if(ke[v]===y&&null!==Ee[v]&&Ee[v].length===g?t=v:ke[1|v]===y&&null!==Ee[1|v]&&Ee[1|v].length===g&&(t=1|v),t>=0){const i=Ee[t];let n=!0;for(let t=0;t<g;t++)if(i.charCodeAt(t)!==e.charCodeAt(d+t)){n=!1;break}if(n){Re[x]=Se[t],Oe[x]=Ce[t],je[x]=Ae[t];continue}}}let b=d;if(0!==z){if(m-d<=z||!e.startsWith(U,d)){Re[x]=ko,Ie(v,e,d,m,y,ko,0,0);continue}b=d+z}let w=0,k=0,E=-1,S=-1;for(let t=b;t<m;t++){const i=e.charCodeAt(t);if(0===w&&0===k){if(58===i){E=t;continue}if(47===i){S=t;continue}}91===i?w++:93===i?w--:40===i?k++:41===i&&k--}const C=E>=b?E+1:b;let A=C,_=m,I=!1,N=0;_>A&&33===e.charCodeAt(_-1)?(I=!0,_--):_>A&&33===e.charCodeAt(A)&&(I=!0,A++,N=1);let T=-1;S>C&&(T=S+N,T>=_&&(T=-1));let L=A;_-A>1&&45===e.charCodeAt(A)&&(L=A+1);let R=0,O=0,j=0,D=-1,M=0;(c[0]>=0||1===V[0])&&(Be[0]=0,Ue[0]=L,M=1);let F=Eo,B=0;for(let t=L;t<_;t++)if(t===T&&(F=O<j?Eo:R,B=M),R!==Eo){const i=e.charCodeAt(t);let n=-1;if(O<j)a.charCodeAt(O)===i?(O++,O===j&&(n=R=D)):R=Eo;else{const e=r[R],t=r[R+1];let l=Eo;for(let r=e;r<t;r++){const e=s[r];if(a.charCodeAt(e)===i){s[r+1]-e===1?n=l=o[r]:(O=e+1,j=s[r+1],D=o[r],l=R);break}}R=l}if(n>=0&&(c[n]>=0||1===V[n])&&t+1<_&&45===e.charCodeAt(t+1)){if(M===Fe){Fe*=2;const e=new Int32Array(Fe);e.set(Be),Be=e;const t=new Int32Array(Fe);t.set(Ue),Ue=t}Be[M]=n,Ue[M]=t+2,M++}}T===_&&(F=O<j?Eo:R,B=M);const J=O<j?Eo:R;let q,G=!1;if(T>=0)if(G=!0,q=$e(e,A,T,F,B),q!==ko&&q<n&&P[q]){const t=$e(e,A,_,J,M);t!==ko&&t!==q&&(q=t,G=!1)}else q===ko&&(q=$e(e,A,_,J,M),G=!1);else q=$e(e,A,_,J,M);let X=0,H=0;q===ko?Re[x]=ko:(H=G?1:0,X=b>=E?I?1:0:pe(ue,e,b,E,I?1:0,e=>me(e,I)),Re[x]=q,je[x]=H,Oe[x]=X),Ie(v,e,d,m,y,q,X,H)}if(0===i)return"";if(1===i)return 0===Le[0]&&Ve[0]===t?e:e.slice(Le[0],Ve[0]);if(i*N>Je){for(;i*N>Je;)Je<<=1,qe--;Ge=new Float64Array(Je),Xe=new Int32Array(Je)}if(fe>=be||xe>=be)throw new Error("cn: too many distinct classes in one merge");He=He+1|0,0===He&&(ze.fill(0),Xe.fill(0),He=1);let u=!1;for(let e=i-1;e>=0;e--){const t=Re[e];if(t===ko){De[e]=1;continue}const i=Oe[e];if(1!==We(i,t)){if(De[e]=1,t<n){const n=_[t];if(n>=0)for(let e=b[n];e<b[n+1];e++)We(i,w[e]);if(1&je[e])for(let e=0;e<k.length;e++)k[e]===t&&We(i,E[e])}}else De[e]=0,u=!0}if(!u&&!h&&t===l+i-1)return e;let d="",f=0;for(;f<i;){if(!De[f]){f++;continue}const t=Le[f];let n=Ve[f],r=f+1;for(;r<i&&De[r]&&Le[r]===n+1&&32===e.charCodeAt(n);)n=Ve[r],r++;d.length>0&&(d+=" "),d+=e.slice(t,n),f=r}return d},Qe=16384,Ye=new Int32Array(32768);let Ze=0,et=1,tt=Object.create(null),it=Object.create(null),nt=new Map,rt=new Map,st=0,at=0;const ot=()=>{Ze^=Qe,et=et+1|0,at=0},lt=0===F?Ke:wo?e=>{const t=nt.get(e);return void 0!==t?t:(e=>{let t=nt.get(e);if(void 0!==t)return t;const i=Co(e,0,e.length),n=(16383&i)+Ze,r=Ye[n]===(i^et)||Ye[n^Qe]===(i^et-1);return r&&(t=rt.get(e),void 0!==t)?(nt.set(e,t),t):(t=Ke(e),r?(nt.set(e,t),++st>F&&(st=0,rt=nt,nt=new Map,ot())):(Ye[n]=i^et,++at>Qe&&ot()),t)})(e)}:e=>{let t=tt[e];if(void 0!==t)return t;const i=Co(e,0,e.length),n=(16383&i)+Ze,r=Ye[n]===(i^et)||Ye[n^Qe]===(i^et-1);return r&&(t=it[e],void 0!==t)?(tt[e]=t,t):(t=Ke(e),r?(tt[e]=t,++st>F&&(st=0,it=tt,tt=Object.create(null),ot())):(Ye[n]=i^et,++at>Qe&&ot()),t)};return{merge:function(){return lt(1===arguments.length&&"string"==typeof arguments[0]?arguments[0]:Io.apply(null,arguments))},mergeString:lt,seenBefore:0===F?()=>!1:e=>{const t=Co(e,0,e.length),i=(16383&t)+Ze;return Ye[i]===(t^et)||Ye[i^Qe]===(t^et-1)||(Ye[i]=t^et,++at>Qe&&ot(),!1)},mergeUncached:Ke}},_o=(e,t)=>{if(!e)return"";if("string"==typeof e)return e;let i="";if("number"==typeof e.length&&(!t||Array.isArray(e))){const n=e;for(let e=0;e<n.length;e++){const r=n[e];if(!r)continue;const s="string"==typeof r?r:_o(r,t);s&&(i&&(i+=" "),i+=s)}return i}if(t){if("number"==typeof e)return""+e;if("object"==typeof e)for(const t in e)e[t]&&(i&&(i+=" "),i+=t)}return i},Io=function(){return((e,t)=>{let i="";for(let n=0;n<e.length;n++){const r=e[n];if(!r)continue;const s="string"==typeof r?r:_o(r,t);s&&(i&&(i+=" "),i+=s)}return i})(arguments,!1)},No=4096,To=(e,t)=>{const i=void 0===t?()=>!0:t.seenBefore,n=void 0===t?e:t.mergeUncached;let r=new Map,s=new Map,a=0,o=null,l=null,c=[],h=[],p=0;const u=(t,i,n)=>{null===l&&(l=new Array(No).fill(""),c=new Array(No).fill(""),h=new Array(No).fill(""));const r=4094&Co(t,0,t.length);if(l[r]===t&&c[r]===i)return h[r];if(l[1|r]===t&&c[1|r]===i)return h[1|r];const s=e(n?i+" "+t:t),a=""===l[r]?r:r|(""===l[1|r]?1:1&p++);return l[a]=t,c[a]=i,h[a]=s,s},d=(e,t,i,n)=>{let r=0;if(t){if(t!==e.a0)return!1;r=1}if(i){if(i!==(0===r?e.a0:e.a1))return!1;r++}if(n){if(n!==(0===r?e.a0:1===r?e.a1:e.a2))return!1;r++}return r===e.t},f=(e,t)=>{const i=e.a;let n=0;for(let e=0;e<t.length;e++){const r=t[e];if(r){if(r!==i[n])return!1;n++}}return n===e.t},m=(t,l)=>{const c=t.length,h=null===o?null:o.n;if(!l){if(null!==h&&f(h,t))return o=h,h.r;if(null!==o&&o!==h&&f(o,t))return o.r}let p="",d=-1,m=0,g=!1;for(let e=0;e<c;e++){let i=t[e];if(i){if("string"!=typeof i){if(i=t[e]=_o(i,!0),!i)continue;g=!0}d<0&&(p=i,d=e),m++}}if(0===m)return"";if(1===m)return e(p);if(g){if(null!==h&&f(h,t))return o=h,h.r;if(null!==o&&o!==h&&f(o,t))return o.r}let x=r.get(p);void 0===x&&(x=s.get(p),void 0!==x&&r.set(p,x));let y=null;if(void 0!==x){if(x.skip>0){x.skip--,o=null;let e=p;for(let i=d+1;i<c;i++){const n=t[i];n&&(e+=" "+n)}return u(e,"",!1)}const e=x.e;e:for(let i=0;i<e.length;i++){const n=e[i];if(n.t!==m)continue;const r=n.a;let s=1;for(let e=d+1;e<c;e++){const i=t[e];if(i&&i!==r[s++])continue e}y=n;break}null!==y&&(x.miss=0)}if(null===y){let o=p;const l=[p];for(let e=d+1;e<c;e++){const i=t[e];i&&(o+=" "+i,l.push(i))}if(!i(o))return n(o);y={r:e(o),t:l.length,a0:l[0],a1:l[1],a2:l[2]??"",a:l,n:null},void 0===x?r.set(p,x={e:[],miss:0,skip:0,at:0}):++x.miss>16&&(x.miss=16,x.skip=1024,x.e.length=0,x.at=0);const h=x.e;h.length<256?h.push(y):(h[x.at]=y,x.at=x.at+1&255),++a>1e3&&(a=0,s=r,r=new Map)}return null!==o&&o!==y&&(o.n=y),o=y,y.r};return function(t,i,n){const s=arguments.length;if(3==(1|s)){const e=o;if(null!==e){const r=e.n;if(null!==r&&d(r,t,i,n))return o=r,r.r;if(e!==r&&d(e,t,i,n))return e.r}if(2===s&&"string"==typeof i&&""!==i){const e=r.get(t);if(void 0!==e&&e.skip>0)return e.skip--,o=null,u(i,t,!0)}return m([t,i,n],!0)}if(1===s)return"string"==typeof t?e(t):(a=t,Array.isArray(a)?m(a.slice(),!1):e(_o(a,!0)));var a;const l=o;if(null!==l){const e=l.n;if(null!==e){const t=e.a;let i=0,n=!0;for(let e=0;e<s;e++){const r=arguments[e];if(r){if(r!==t[i]){n=!1;break}i++}}if(n&&i===e.t)return o=e,e.r}if(l!==e){const e=l.a;let t=0,i=!0;for(let n=0;n<s;n++){const r=arguments[n];if(r){if(r!==e[t]){i=!1;break}t++}}if(i&&t===l.t)return l.r}}const c=[];for(let e=0;e<s;e++)c.push(arguments[e]);return m(c,!0)}},Po=Ao(bo),Lo=To(Po.mergeString,Po),Vo=()=>{throw new Error("You need to wrap your application inside `FrameworkProvider`.")},Ro=V({useParams:Vo,useRouter:Vo,usePathname:Vo});function Oo(e){const{Image:t}=L(Ro);if(!t){const{src:t,alt:i,priority:r,...s}=e;return n("img",{alt:i,src:t,fetchPriority:r?"high":"auto",...s})}return n(t,{...e})}function jo(e){const{Link:t}=L(Ro);if(!t){const{href:t,prefetch:i,...r}=e;return n("a",{href:t,...r})}return n(t,{...e})}function Do({ref:e,href:t="#",external:i=!(!t.match(/^\w+:/)&&!t.startsWith("//")),prefetch:r,children:s,...a}){return i?n("a",{ref:e,href:t,rel:"noreferrer noopener",target:"_blank",...a,children:s}):n(jo,{ref:e,href:t,prefetch:r,...a,children:s})}
3
- /**
4
- * @license lucide-react v1.66.0 - ISC
5
- *
6
- * This source code is licensed under the ISC license.
7
- * See the LICENSE file in the root directory of this source tree.
8
- */
9
- const Mo=(...e)=>e.filter((e,t,i)=>Boolean(e)&&""!==e.trim()&&i.indexOf(e)===t).join(" ").trim(),Fo={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};
10
- /**
11
- * @license lucide-react v1.66.0 - ISC
12
- *
13
- * This source code is licensed under the ISC license.
14
- * See the LICENSE file in the root directory of this source tree.
15
- */
16
- /**
17
- * @license lucide-react v1.66.0 - ISC
18
- *
19
- * This source code is licensed under the ISC license.
20
- * See the LICENSE file in the root directory of this source tree.
21
- */
22
- function Bo(e){return null!=e}
23
- /**
24
- * @license lucide-react v1.66.0 - ISC
25
- *
26
- * This source code is licensed under the ISC license.
27
- * See the LICENSE file in the root directory of this source tree.
28
- */
29
- function Uo(e,t={}){return function(e,t={}){const i=t.attributeNames??{},n=e=>i[e]??e,r=e.size??e.width??Fo.width,s=e.size??e.height??Fo.height,a=e.aliases?.filter(e=>"string"==typeof e&&""!==e.trim()).map(e=>`lucide-${e}`)??[],o=[...e.name?[`lucide-${e.name}`]:[],...a],l=t.className?.split(" ").filter(Boolean)??[],c=!1===t.includeDefaultClasses?Mo(...l):Mo("lucide",...o,...l),h=t.absoluteStrokeWidth?Number(t.strokeWidth??Fo["stroke-width"])*Number(e.size??e.width??Fo.width)/Number(t.size??t.width??Fo.width):t.strokeWidth??Fo["stroke-width"];return["svg",{...Object.entries(Fo).reduce((e,[t,i])=>(e[n(t)]=i,e),{}),..."color"in t&&t.color&&{[n("stroke")]:t.color},..."size"in t&&Bo(t.size)&&{[n("width")]:t.size,[n("height")]:t.size},..."width"in t&&Bo(t.width)&&{[n("width")]:t.width},..."height"in t&&Bo(t.height)&&{[n("height")]:t.height},[n("stroke-width")]:h,...c&&{[n("class")]:c},[n("viewBox")]:`0 0 ${r} ${s}`,...!1===t.hasA11yProp?{[n("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(e=>{const[i,r,s]=e,a=t.nonScalingStroke?{[n("vector-effect")]:"non-scaling-stroke",...r}:r;return s?[i,a,s]:[i,a]})]}(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}
30
- /**
31
- * @license lucide-react v1.66.0 - ISC
32
- *
33
- * This source code is licensed under the ISC license.
34
- * See the LICENSE file in the root directory of this source tree.
35
- */const zo=V({}),Jo=O(({color:e,size:t,width:i,height:n,strokeWidth:r,absoluteStrokeWidth:s,nonScalingStroke:a,className:o="",children:l,iconNode:c=[],icon:h={node:c,aliases:[],size:24},...p},u)=>{const{size:d=24,strokeWidth:f=2,absoluteStrokeWidth:m=!1,nonScalingStroke:g=!1,color:x="currentColor",className:y=""}=R(zo)??{},v=Boolean(l)||(e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(p),[b,w,k=[]]=Uo(h,{color:e??x,width:i??t??d,height:n??t??d,strokeWidth:r??f,absoluteStrokeWidth:s??m,nonScalingStroke:a??g,className:Mo(y,o),hasA11yProp:v,attributes:p});return j(b,{ref:u,...w},[...k.map(([e,t])=>j(e,t)),...Array.isArray(l)?l:[l]])});
36
- /**
37
- * @license lucide-react v1.66.0 - ISC
38
- *
39
- * This source code is licensed under the ISC license.
40
- * See the LICENSE file in the root directory of this source tree.
41
- */
42
- function qo(e,t=[],i=[]){const n="string"==typeof e?
43
- /**
44
- * @license lucide-react v1.66.0 - ISC
45
- *
46
- * This source code is licensed under the ISC license.
47
- * See the LICENSE file in the root directory of this source tree.
48
- */
49
- function(e,t,i=[]){if(null==t)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:(n=e,n?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),size:24,node:t,...i.length>0?{aliases:i}:{}};var n}(e,t,i):e,r=O(({className:e,...t},i)=>j(Jo,{ref:i,icon:n,className:e,...t}));return n.name&&(r.displayName=(e=>{const t=(e=>{let t="",i=!1;for(const n of e)"-"===n||"_"===n||n<=" "?i=t.length>0:(0===t.length?t+=n.toLowerCase():t+=i?n.toUpperCase():n,i=!1);return t})(e);return t.charAt(0).toUpperCase()+t.slice(1)})(n.name)),r}
50
- /**
51
- * @license lucide-react v1.66.0 - ISC
52
- *
53
- * This source code is licensed under the ISC license.
54
- * See the LICENSE file in the root directory of this source tree.
55
- */const Go={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]},Xo=qo(Go),Ho={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]},Wo=qo(Ho),$o={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]},Ko=qo($o),Qo={name:"clipboard",size:24,node:[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]]},Yo=qo(Qo),Zo={name:"copy-check",size:24,node:[["path",{d:"m12 15 2 2 4-4",key:"2c609p"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]},el=qo(Zo),tl={name:"info",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]},il=qo(tl),nl={name:"lightbulb",size:24,node:[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]},rl=qo(nl),sl={name:"link",size:24,node:[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]},al=qo(sl),ol={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]},ll=qo(ol),cl="size-5 -me-0.5 fill-(--callout-color) text-fd-card";function hl({type:e="info",icon:i,children:r,className:s,style:a,...o}){const l=function(e){return"warn"===e?"warning":"tip"===e?"info":e}(e);return t("div",{className:Lo("flex gap-2 my-4 rounded-xl border bg-fd-card p-3 ps-1 text-sm text-fd-card-foreground",s),style:{"--callout-color":`var(--color-fd-${l}, var(--color-fd-muted))`,...a},...o,children:[n("div",{role:"none",className:"w-0.5 bg-(--callout-color)/50 rounded-sm"}),i??{info:n(il,{className:cl}),warning:n(ll,{className:cl}),error:n(Ko,{className:cl}),success:n(Wo,{className:cl}),idea:n(rl,{className:"size-5 -me-0.5 fill-(--callout-color) text-(--callout-color)"})}[l],n("div",{className:"flex flex-col gap-2 min-w-0 flex-1",children:r})]})}function pl({children:e,className:t,...i}){return n("p",{className:Lo("font-medium my-0!",t),...i,children:e})}function ul({children:e,className:t,...i}){return n("div",{className:Lo("text-fd-muted-foreground prose-no-margin empty:hidden",t),...i,children:e})}const dl=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,fl=nt,ml="bg-fd-primary text-fd-primary-foreground hover:bg-fd-primary/80 disabled:bg-fd-secondary disabled:text-fd-secondary-foreground",gl={default:ml,primary:ml,outline:"border hover:bg-fd-accent hover:text-fd-accent-foreground",ghost:"hover:bg-fd-accent hover:text-fd-accent-foreground",secondary:"border bg-fd-secondary text-fd-secondary-foreground hover:bg-fd-accent hover:text-fd-accent-foreground"},xl=(yl="inline-flex items-center justify-center rounded-md p-2 text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring",vl={variants:{variant:gl,color:gl,size:{sm:"gap-1 px-2 py-1.5 text-xs",icon:"p-1.5 [&_svg]:size-5","icon-sm":"p-1.5 [&_svg]:size-4.5","icon-xs":"p-1 [&_svg]:size-4"}}},e=>{var t;if(null==(null==vl?void 0:vl.variants))return fl(yl,null==e?void 0:e.class,null==e?void 0:e.className);const{variants:i,defaultVariants:n}=vl,r=Object.keys(i).map(t=>{const r=null==e?void 0:e[t],s=null==n?void 0:n[t];if(null===r)return null;const a=dl(r)||dl(s);return i[t][a]}),s=e&&Object.entries(e).reduce((e,t)=>{let[i,n]=t;return void 0===n||(e[i]=n),e},{}),a=null==vl||null===(t=vl.compoundVariants)||void 0===t?void 0:t.reduce((e,t)=>{let{class:i,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,i]=e;return Array.isArray(i)?i.includes({...n,...s}[t]):{...n,...s}[t]===i})?[...e,i,r]:e},[]);return fl(yl,r,a,null==e?void 0:e.class,null==e?void 0:e.className)});var yl,vl;function bl(e){const[t,i]=_(!1),n=N(e),r=N(null);n.current=e;const s=T(()=>{r.current&&window.clearTimeout(r.current),Promise.resolve(n.current()).then(()=>{i(!0),r.current=window.setTimeout(()=>{i(!1)},1500)})},[]);return P(()=>()=>{r.current&&window.clearTimeout(r.current)},[]),[t,s]}const wl=V({}),kl=/\\?\{([^}]+)\}/g;function El({note:e}={}){const t=L(wl);return I(()=>function(e,{note:t}={}){const i=(i,n={})=>{const{note:r,variables:s}=n,a=[];t&&a.push(t),r&&a.push(r);let o=e[Sl(i,a)]??i;return s&&(o=o.replaceAll(kl,(e,t)=>"\\"===e[0]?e.slice(1):t in s?s[t]:e)),o};return i.jsx=(i,n={})=>{const{note:r,variables:s,tags:a}=n,o=[];t&&o.push(t),r&&o.push(r);const l=e[Sl(i,o)]??i;return a?function(e,t,i){const n=[{children:[]}];let r=0;const s=()=>{const e=n.pop();n[n.length-1].children.push(Il(e.tag&&i[e.tag]?_l(i[e.tag],e.children):e.children,r))};for(const a of e.matchAll(Al)){const o=n[n.length-1],[l,c]=a;if(r<a.index){const i=e.slice(r,a.index);o.children.push(t?Cl(i,t):i)}if(r=a.index+l.length,"\\"===l[0]){const e=l.slice(1);o.children.push(t?Cl(e,t):e)}else if("/"===c[0]){const e=c.slice(1);o.tag!==e?o.children.push(t?Cl(l,t):l):s()}else if("/"===c.at(-1)){const e=c.slice(0,-1);i[e]&&o.children.push(Il(_l(i[e]),r))}else n.push({children:[],tag:c})}if(r<e.length){const i=e.slice(r);n[n.length-1].children.push(t?Cl(i,t):i)}for(;n.length>1;)s();return n[0].children}(l,s,a):s?Cl(l,s):l},i.translations=e,i}(t,{note:e}),[t,e])}function Sl(e,t){return e+t.map(e=>`(${e})`).join("")}function Cl(e,t){let i=0;const n=[];for(const r of e.matchAll(kl)){const[s,a]=r;i<r.index&&n.push(e.slice(i,r.index)),i=r.index+s.length,"\\"===s[0]?n.push(s.slice(1)):a in t?n.push(Il(t[a],i)):n.push(s)}return n.push(e.slice(i)),n}const Al=/\\?<([^>]+)>/g;function _l(e,t){return D(e)?void 0===t?e:M(e,void 0,t):e(t)}function Il(e,t){return D(e)?M(e,{key:t}):e}function Nl({as:e,...i}){const r=e??"h1",s=El({note:"heading anchor"}),[a,o]=bl(()=>{if(!i.id)return;const e=new URL(window.location.href);return e.hash=i.id,navigator.clipboard.writeText(e.href)});return i.id?t(r,{...i,className:Lo("group/heading flex scroll-m-28 flex-row items-center gap-1",i.className),children:[n("a",{"data-card":"",href:`#${i.id}`,children:i.children}),t("button",{"aria-live":"polite",className:Lo(xl({variant:"ghost",size:"icon-xs"}),"not-prose shrink-0 text-fd-muted-foreground opacity-0 transition-opacity group-hover/heading:opacity-100"),onClick:o,children:[n(a?el:al,{}),n("span",{className:"sr-only",children:s(a?"Copied Anchor Link":"Copy Anchor Link",{note:"aria-label"})})]})]}):n(r,{...i})}function Tl(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})}}var Pl=Object.defineProperty,Ll=(e,t)=>Pl(e,"name",{value:t,configurable:!0}),Vl=!("undefined"==typeof window||!window.document||!window.document.createElement);function Rl(e,t,{checkForDefaultPrevented:i=!0}={}){return Ll(function(n){if(e?.(n),!1===i||!n||!n.defaultPrevented)return t?.(n)},"handleEvent")}function Ol(e){if(!Vl)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function jl(e){return"IFRAME"===e.tagName}Ll(Rl,"composeEventHandlers"),Ll(function(e){if(!Vl)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),Ll(Ol,"getOwnerDocument"),Ll(function e(t,i=!1){const{activeElement:n}=Ol(t);if(!n?.nodeName)return null;if(jl(n)&&n.contentDocument)return e(n.contentDocument.body,i);if(i){const e=n.getAttribute("aria-activedescendant");if(e){const t=Ol(n).getElementById(e);if(t)return t}}return n},"getActiveElement"),Ll(jl,"isFrame");var Dl=Object.defineProperty,Ml=(e,t)=>Dl(e,"name",{value:t,configurable:!0});function Fl(e,t=[]){let i=[];function r(t,r){const s=C.createContext(r);s.displayName=t+"Context";const a=i.length;i=[...i,r];const o=Ml(t=>{const{scope:i,children:r,...o}=t,l=i?.[e]?.[a]||s,c=C.useMemo(()=>o,Object.values(o));return n(l.Provider,{value:c,children:r})},"Provider");function l(i,n,o={}){const{optional:l=!1}=o,c=n?.[e]?.[a]||s,h=C.useContext(c);if(h)return h;if(void 0!==r)return r;if(!l)throw new Error(`\`${i}\` must be used within \`${t}\``)}return o.displayName=t+"Provider",Ml(l,"useContext"),[o,l]}Ml(r,"createContext");const s=Ml(()=>{const t=i.map(e=>C.createContext(e));return Ml(function(i){const n=i?.[e]||t;return C.useMemo(()=>({[`__scope${e}`]:{...i,[e]:n}}),[i,n])},"useScope")},"createScope");return s.scopeName=e,[r,Bl(s,...t)]}function Bl(...e){const t=e[0];if(1===e.length)return t;const i=Ml(()=>{const i=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return Ml(function(e){const n=i.reduce((t,{useScope:i,scopeName:n})=>({...t,...i(e)[`__scope${n}`]}),{});return C.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])},"useComposedScopes")},"createScope");return i.scopeName=t.scopeName,i}Ml(function(e,t){const i=C.createContext(t);i.displayName=e+"Context";const r=Ml(e=>{const{children:t,...r}=e,s=C.useMemo(()=>r,Object.values(r));return n(i.Provider,{value:s,children:t})},"Provider");function s(n,r={}){const{optional:s=!1}=r,a=C.useContext(i);if(a)return a;if(void 0!==t)return t;if(!s)throw new Error(`\`${n}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",Ml(s,"useContext"),[r,s]},"createContext"),Ml(Fl,"createContextScope"),Ml(Bl,"composeContextScopes");var Ul=Object.defineProperty,zl=(e,t)=>Ul(e,"name",{value:t,configurable:!0});function Jl(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function ql(...e){return t=>{let i=!1;const n=e.map(e=>{const n=Jl(e,t);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let t=0;t<n.length;t++){const i=n[t];"function"==typeof i?i():Jl(e[t],null)}}}}function Gl(...e){return C.useCallback(ql(...e),e)}zl(Jl,"setRef"),zl(ql,"composeRefs"),zl(Gl,"useComposedRefs");var Xl=Object.defineProperty,Hl=(e,t)=>Xl(e,"name",{value:t,configurable:!0});function Wl(e){const t=C.forwardRef((t,i)=>{let{children:n,...r}=t,s=null,a=!1;const o=[];n=nc(n),C.Children.forEach(n,e=>{if(Zl(e)){a=!0;const t=e;let i="child"in t.props?t.props.child:t.props.children;for(;tc(i)&&"function"==typeof oc;)i=oc(i._payload);s=Kl(t,i),o.push(s?.props?.children)}else o.push(e)}),s?s=C.cloneElement(s,void 0,o):!a&&1===C.Children.count(n)&&C.isValidElement(n)&&(s=n);const l=s?Yl(s):void 0,c=Gl(i,l);if(!s){if(n||0===n)throw new Error(a?ac(e):sc(e));return n}const h=Ql(r,s.props??{});return s.type!==C.Fragment&&(h.ref=i?c:l),C.cloneElement(s,h)});return t.displayName=`${e}.Slot`,t}Hl(Wl,"createSlot");var $l=Symbol.for("radix.slottable");Hl(function(e){const t=Hl(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=$l,t},"createSlottable");var Kl=Hl((e,t)=>"child"in e.props?C.isValidElement(t)?C.cloneElement(t,void 0,e.props.children(t.props.children)):null:C.isValidElement(t)?t:null,"getSlottableElementFromSlottable");function Ql(e,t){const i={...t};for(const n in t){const r=e[n],s=t[n];/^on[A-Z]/.test(n)?r&&s?i[n]=(...e)=>{const t=s(...e);return r(...e),t}:r&&(i[n]=r):"style"===n?i[n]={...r,...s}:"className"===n?i[n]=[r,s].filter(Boolean).join(" "):"aria-describedby"===n&&(i[n]=rc(s,r))}return{...e,...i}}function Yl(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,i=t&&"isReactWarning"in t&&t.isReactWarning;return i?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,i=t&&"isReactWarning"in t&&t.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}function Zl(e){return C.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===$l}Hl(Ql,"mergeProps"),Hl(Yl,"getElementRef"),Hl(Zl,"isSlottable");var ec=Symbol.for("react.lazy");function tc(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===ec&&"_payload"in e&&ic(e._payload)}function ic(e){return"object"==typeof e&&null!==e&&"then"in e}function nc(e){let t=e;for(;tc(t)&&"function"==typeof oc;)t=oc(t._payload);return t}function rc(...e){const t=new Set;for(const i of e)if("string"==typeof i)for(const e of String(i).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(" "):void 0}Hl(tc,"isLazyComponent"),Hl(ic,"isPromiseLike"),Hl(nc,"useUnwrappedLazy"),Hl(rc,"concatAriaDescribedby");var sc=Hl(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),ac=Hl(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),oc=C[" use ".trim().toString()],lc=globalThis?.document?C.useLayoutEffect:()=>{},cc=Object.defineProperty,hc=(e,t)=>cc(e,"name",{value:t,configurable:!0});function pc(e){const t=e+"CollectionProvider",[i,r]=Fl(t),[s,a]=i(t,{collectionRef:{current:null},itemMap:new Map}),o=hc(e=>{const{scope:t,children:i}=e,r=C.useRef(null),a=C.useRef(new Map).current;return n(s,{scope:t,itemMap:a,collectionRef:r,children:i})},"CollectionProvider");o.displayName=t;const l=e+"CollectionSlot",c=Wl(l),h=C.forwardRef((e,t)=>{const{scope:i,children:r}=e,s=Gl(t,a(l,i).collectionRef);return n(c,{ref:s,children:r})});h.displayName=l;const p=e+"CollectionItemSlot",u="data-radix-collection-item",d=Wl(p),f=C.forwardRef((e,t)=>{const{scope:i,children:r,...s}=e,o=C.useRef(null),l=Gl(t,o),c=a(p,i);return C.useEffect(()=>(c.itemMap.set(o,{ref:o,...s}),()=>{c.itemMap.delete(o)})),n(d,{[u]:"",ref:l,children:r})});function m(t){const i=a(e+"CollectionConsumer",t);return C.useCallback(()=>{const e=i.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${u}]`));return Array.from(i.itemMap.values()).sort((e,i)=>t.indexOf(e.ref.current)-t.indexOf(i.ref.current))},[i.collectionRef,i.itemMap])}return f.displayName=p,hc(m,"useCollection"),[{Provider:o,Slot:h,ItemSlot:f},m,r]}hc(pc,"createCollection");var uc=new WeakMap,dc=class e extends Map{static{hc(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],uc.set(this,!0)}set(e,t){return uc.get(this)&&!this.has(e)&&this.#e.push(e),super.set(e,t),this}insert(e,t,i){const n=this.has(t),r=n?this.size:this.size+1,s=gc(e),a=s>=0?Math.min(s,r-1):Math.max(r+s,0);if(n?this.#e.indexOf(t)===a:a===this.size)return this.set(t,i),this;const o=this.#e.filter(e=>e!==t);o.splice(a,0,t);const l=o.map(e=>[e,e===t?i:this.get(e)]);this.clear();for(const[e,t]of l)this.set(e,t);return this}with(t,i,n){const r=new e(this);return r.insert(t,i,n),r}before(e){const t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,i){const n=this.#e.indexOf(e);if(-1===n)return this;const r=this.#e.indexOf(t),s=-1!==r&&r<n?n-1:n;return this.insert(s,t,i)}after(e){let t=this.#e.indexOf(e);if(t=-1===t||t===this.size-1?-1:t+1,-1!==t)return this.entryAt(t)}setAfter(e,t,i){const n=this.#e.indexOf(e);if(-1===n)return this;const r=this.#e.indexOf(t),s=-1!==r&&r<=n?n:n+1;return this.insert(s,t,i)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){const t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){const t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){const t=fc(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){const t=fc(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return fc(this.#e,e)}from(e,t){const i=this.indexOf(e);if(-1===i)return;let n=i+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){const i=this.indexOf(e);if(-1===i)return;let n=i+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let i=0;for(const n of this){if(Reflect.apply(e,t,[n,i,this]))return n;i++}}findIndex(e,t){let i=0;for(const n of this){if(Reflect.apply(e,t,[n,i,this]))return i;i++}return-1}filter(t,i){const n=[];let r=0;for(const e of this)Reflect.apply(t,i,[e,r,this])&&n.push(e),r++;return new e(n)}map(t,i){const n=[];let r=0;for(const e of this)n.push([e[0],Reflect.apply(t,i,[e,r,this])]),r++;return new e(n)}reduce(...e){const[t,i]=e,n=e.length>1;if(!n&&0===this.size)throw new TypeError("Reduce of empty OrderedDict with no initial value");let r=0,s=i;for(const e of this)s=0!==r||n?Reflect.apply(t,this,[s,e,r,this]):e,r++;return s}reduceRight(...e){const[t,i]=e,n=e.length>1;if(!n&&0===this.size)throw new TypeError("Reduce of empty OrderedDict with no initial value");let r=i;for(let e=this.size-1;e>=0;e--){const i=this.entryAt(e);r=e!==this.size-1||n?Reflect.apply(t,this,[r,i,e,this]):i}return r}sort(e){if("function"!=typeof e)throw new TypeError("OrderedDict.sort requires a compare function");const t=[...this.entries()].sort(e);this.clear();for(const[e,i]of t)this.set(e,i);return this}toSorted(t){if("function"!=typeof t)throw new TypeError("OrderedDict.toSorted requires a compare function");const i=[...this.entries()].sort(t);return new e(i)}toReversed(){const t=new e;for(let e=this.size-1;e>=0;e--){const i=this.keyAt(e),n=this.get(i);t.set(i,n)}return t}toSpliced(...t){const i=[...this.entries()];return i.splice(...t),new e(i)}slice(t,i){const n=new e;for(const e of this.#e.slice(t,i))n.set(e,this.get(e));return n}every(e,t){let i=0;for(const n of this){if(!Reflect.apply(e,t,[n,i,this]))return!1;i++}return!0}some(e,t){let i=0;for(const n of this){if(Reflect.apply(e,t,[n,i,this]))return!0;i++}return!1}};function fc(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const i=mc(e,t);return-1===i?void 0:e[i]}function mc(e,t){const i=e.length,n=gc(t),r=n>=0?n:i+n;return r<0||r>=i?-1:r}function gc(e){return e!=e||0===e?0:Math.trunc(e)}function xc(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t)return!1;if(null==e||null==t)return!1;const i=Object.keys(e),n=Object.keys(t);if(i.length!==n.length)return!1;for(const n of i){if(!Object.prototype.hasOwnProperty.call(t,n))return!1;if(e[n]!==t[n])return!1}return!0}function yc(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function vc(e){let t;for(const i of e.keys()){if(t){const e=t.compareDocumentPosition(i);if(!(e&Node.DOCUMENT_POSITION_DISCONNECTED)&&e&Node.DOCUMENT_POSITION_PRECEDING)return!1}t=i}return!0}function bc(e,t){return e[1].element&&t[1].element?yc(e[1].element,t[1].element)?-1:1:0}function wc(e){return new MutationObserver(t=>{for(const i of t)if("childList"===i.type)return void e()})}hc(fc,"at"),hc(mc,"toSafeIndex"),hc(gc,"toSafeInteger"),hc(function(e){const t=e+"CollectionProvider",[i,r]=Fl(t),[s,a]=i(t);s.displayName=e+"CollectionStableContextProvider";const[o,l]=i(t);o.displayName=e+"CollectionStatefulContextProvider";const c=hc(({state:e,...t})=>e?n(p,{...t,state:e}):n(h,{...t}),"CollectionProvider");c.displayName=t;const h=hc(e=>{const t=v();return n(p,{...e,state:t})},"CollectionInit");h.displayName=e+"CollectionInit";const p=hc(e=>{const{scope:t,children:i,state:r}=e,a=C.useRef(null),[l,c]=C.useState(null),h=Gl(a,c),[p,u]=r,d=C.useRef(new dc),f=C.useCallback(()=>{const e=d.current;return vc(e)||e.sort(bc),e},[]);return C.useEffect(()=>{if(!l)return;const e=wc(()=>{u(e=>{const t=e.toSorted(bc);return t.some(([t],i)=>e.keyAt(i)!==t)?t:e})});return e.observe(l,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[l,u]),n(s,{scope:t,collectionElementRef:h,collectionElementRefObject:a,getCollection:f,setCollection:u,registryRef:d,children:n(o,{scope:t,collectionElement:l,collection:p,children:i})})},"CollectionProviderImpl");p.displayName=e+"CollectionProviderImpl";const u=e+"CollectionSlot",d=Wl(u),f=C.forwardRef((e,t)=>{const{scope:i,children:r}=e,s=Gl(t,a(u,i).collectionElementRef);return n(d,{ref:s,children:r})});f.displayName=u;const m=e+"CollectionItemSlot",g="data-radix-collection-item",x=Wl(m),y=C.forwardRef((e,t)=>{const{scope:i,children:r,...s}=e,o=C.useRef(null),l=a(m,i),{setCollection:c,registryRef:h}=l,p=C.useRef(s);xc(p.current,s)||(p.current=s);const u=p.current,d=Gl(t,C.useCallback(e=>{const t=h.current;e?t.set(e,{...p.current,element:e}):o.current&&t.delete(o.current)},[h]),o);lc(()=>{const e=o.current,t=h.current;e&&t.has(e)&&t.set(e,{...u,element:e})},[u,h]);const f=C.useRef(null);return C.useEffect(()=>{const e=o.current,t=f.current;((t?.element??null)!==e||e&&t?.itemData!==u)&&(f.current=e?{element:e,itemData:u}:null,c(i=>{const n=new dc(i);return t&&t.element!==e&&n.delete(t.element),e&&n.set(e,{...u,element:e}),n.sort(bc)}))}),C.useEffect(()=>()=>{const e=f.current;f.current=null,e&&c(t=>{if(!t.has(e.element))return t;const i=new dc(t);return i.delete(e.element),i})},[c]),n(x,{[g]:"",ref:d,children:r})});function v(){return C.useState(new dc)}function b(t){const{collection:i}=l(e+"CollectionConsumer",t);return i}function w(t){const{getCollection:i}=a(e+"CollectionConsumer",t);return i}return y.displayName=m,hc(v,"useInitCollection"),hc(b,"useCollection"),hc(w,"useGetCollection"),[{Provider:c,Slot:f,ItemSlot:y},{createCollectionScope:r,useCollection:b,useGetCollection:w,useInitCollection:v}]},"createCollection"),hc(xc,"shallowEqual"),hc(yc,"isElementPreceding"),hc(vc,"isInDocumentOrder"),hc(bc,"sortByDocumentPosition"),hc(wc,"getChildListObserver");var kc=Object.defineProperty,Ec=C[" useId ".trim().toString()]||(()=>{}),Sc=0;function Cc(e){const[t,i]=C.useState(Ec());return lc(()=>{e||i(e=>e??String(Sc++))},[e]),e||(t?`radix-${t}`:"")}kc(Cc,"name",{value:"useId",configurable:!0});var Ac=Object.defineProperty,_c=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const i=Wl(`Primitive.${t}`),r=C.forwardRef((e,r)=>{const{asChild:s,...a}=e,o=s?i:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),n(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});((e,t)=>{Ac(e,"name",{value:t,configurable:!0})})(function(e,t){e&&He.flushSync(()=>e.dispatchEvent(t))},"dispatchDiscreteCustomEvent");var Ic=Object.defineProperty,Nc=C[" useInsertionEffect ".trim().toString()];function Tc(e){const t=C.useRef(e);return"function"==typeof Nc?Nc(()=>{t.current=e}):lc(()=>{t.current=e}),C.useMemo(()=>(...e)=>t.current?.(...e),[])}((e,t)=>{Ic(e,"name",{value:t,configurable:!0})})(Tc,"useCallbackRef");var Pc=Object.defineProperty,Lc=C[" useEffectEvent ".trim().toString()],Vc=C[" useInsertionEffect ".trim().toString()];function Rc(e){if("function"==typeof Lc)return Lc(e);const t=C.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return"function"==typeof Vc?Vc(()=>{t.current=e}):lc(()=>{t.current=e}),C.useMemo(()=>(...e)=>t.current?.(...e),[])}((e,t)=>{Pc(e,"name",{value:t,configurable:!0})})(Rc,"useEffectEvent");var Oc=Object.defineProperty,jc=(e,t)=>Oc(e,"name",{value:t,configurable:!0}),Dc=C[" useInsertionEffect ".trim().toString()]||lc;function Mc({prop:e,defaultProp:t,onChange:i=jc(()=>{},"onChange"),caller:n}){const[r,s,a]=Fc({defaultProp:t,onChange:i}),o=void 0!==e;return[o?e:r,C.useCallback(t=>{if(o){const i=Bc(t)?t(e):t;i!==e&&a.current?.(i)}else s(t)},[o,e,s,a])]}function Fc({defaultProp:e,onChange:t}){const[i,n]=C.useState(e),r=C.useRef(i),s=C.useRef(t);return Dc(()=>{s.current=t},[t]),C.useEffect(()=>{r.current!==i&&(s.current?.(i),r.current=i)},[i,r]),[i,n,s]}function Bc(e){return"function"==typeof e}jc(Mc,"useControllableState"),jc(Fc,"useUncontrolledState"),jc(Bc,"isFunction");var Uc=Symbol("RADIX:SYNC_STATE");jc(function(e,t,i,n){const{prop:r,defaultProp:s,onChange:a,caller:o}=t,l=void 0!==r,c=Rc(a),h=[{...i,state:s}];n&&h.push(n);const[p,u]=C.useReducer((t,i)=>{if(i.type===Uc)return{...t,state:i.state};const n=e(t,i);return l&&!Object.is(n.state,t.state)&&c(n.state),n},...h),d=p.state,f=C.useRef(d);C.useEffect(()=>{f.current!==d&&(f.current=d,l||c(d))},[d,f,l]);const m=C.useMemo(()=>void 0!==r?{...p,state:r}:p,[p,r]);return C.useEffect(()=>{l&&!Object.is(r,p.state)&&u({type:Uc,state:r})},[r,p.state,l]),[m,u]},"useControllableStateReducer");var zc=Object.defineProperty,Jc="ltr",qc=C.createContext(void 0);function Gc(e){const t=C.useContext(qc);return e||t||Jc}((e,t)=>{zc(e,"name",{value:t,configurable:!0})})(Gc,"useDirection");var Xc=Object.defineProperty,Hc=(e,t)=>Xc(e,"name",{value:t,configurable:!0}),Wc=!1;function $c(){const[e,t]=C.useState(Wc);return C.useEffect(()=>{Wc||(Wc=!0,t(!0))},[]),e}Hc($c,"useIsHydrated");var Kc=C[" useSyncExternalStore ".trim().toString()];function Qc(){return()=>{}}function Yc(){return Kc(Qc,()=>!0,()=>!1)}Hc(Qc,"subscribe"),Hc(Yc,"useIsHydratedModern");var Zc="function"==typeof Kc?Yc:$c,eh=Object.defineProperty,th=(e,t)=>eh(e,"name",{value:t,configurable:!0}),ih="rovingFocusGroup.onEntryFocus",nh={bubbles:!1,cancelable:!0},rh="RovingFocusGroup",[sh,ah,oh]=pc(rh),[lh,ch]=Fl(rh,[oh]),hh="vertical",ph="horizontal",uh="rtl",[dh,fh]=lh(rh),mh=C.forwardRef(th(function(e,t){return n(sh.Provider,{scope:e.__scopeRovingFocusGroup,children:n(sh.Slot,{scope:e.__scopeRovingFocusGroup,children:n(gh,{...e,ref:t})})})},"RovingFocusGroup")),gh=C.forwardRef(th(function(e,t){const{__scopeRovingFocusGroup:i,orientation:r,loop:s=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:h,preventScrollOnEntryFocus:p=!1,...u}=e,d=C.useRef(null),f=Gl(t,d),m=Gc(a),[g,x]=Mc({prop:o,defaultProp:l??null,onChange:c,caller:rh}),[y,v]=C.useState(!1),b=Tc(h),w=ah(i),k=C.useRef(!1),[E,S]=C.useState(0);return C.useEffect(()=>{const e=d.current;if(e)return e.addEventListener(ih,b),()=>e.removeEventListener(ih,b)},[b]),n(dh,{scope:i,orientation:r,dir:m,loop:s,currentTabStopId:g,onItemFocus:C.useCallback(e=>x(e),[x]),onItemShiftTab:C.useCallback(()=>v(!0),[]),onFocusableItemAdd:C.useCallback(()=>S(e=>e+1),[]),onFocusableItemRemove:C.useCallback(()=>S(e=>e-1),[]),children:n(_c.div,{tabIndex:y||0===E?-1:0,"data-orientation":r,...u,ref:f,style:{outline:"none",...e.style},onMouseDown:Rl(e.onMouseDown,()=>{k.current=!0}),onFocus:Rl(e.onFocus,e=>{const t=!k.current;if(e.target===e.currentTarget&&t&&!y){const t=new CustomEvent(ih,nh);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=w().filter(e=>e.focusable);wh([e.find(e=>e.active),e.find(e=>e.id===g),...e].filter(Boolean).map(e=>e.ref.current),p)}}k.current=!1}),onBlur:Rl(e.onBlur,()=>v(!1))})})},"RovingFocusGroupImpl")),xh=C.forwardRef(th(function(e,t){const{__scopeRovingFocusGroup:i,focusable:r=!0,active:s=!1,tabStopId:a,children:o,...l}=e,c=Cc(),h=a||c,p=fh("RovingFocusGroupItem",i),u=p.currentTabStopId===h,d=ah(i),{onFocusableItemAdd:f,onFocusableItemRemove:m,currentTabStopId:g}=p,x=Zc();return lc(()=>{if(x&&r)return f(),()=>m()},[x,r,f,m]),C.useEffect(()=>{if(!x&&r)return f(),()=>m()},[x,r,f,m]),n(sh.ItemSlot,{scope:i,id:h,focusable:r,active:s,children:n(_c.span,{tabIndex:u?0:-1,"data-orientation":p.orientation,...l,ref:t,onMouseDown:Rl(e.onMouseDown,e=>{r?p.onItemFocus(h):e.preventDefault()}),onFocus:Rl(e.onFocus,()=>p.onItemFocus(h)),onKeyDown:Rl(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void p.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=bh(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=d().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){"prev"===t&&i.reverse();const n=i.indexOf(e.currentTarget);i=p.loop?kh(i,n+1):i.slice(n+1)}setTimeout(()=>wh(i))}}),children:"function"==typeof o?o({isCurrentTabStop:u,hasTabStop:null!=g}):o})})},"RovingFocusGroupItem")),yh={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function vh(e,t){return t!==uh?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function bh(e,t,i){const n=vh(e.key,i);if(!(t===hh&&["ArrowLeft","ArrowRight"].includes(n)||t===ph&&["ArrowUp","ArrowDown"].includes(n)))return yh[n]}function wh(e,t=!1){const i=document.activeElement;for(const n of e){if(n===i)return;if(n.focus({preventScroll:t}),document.activeElement!==i)return}}function kh(e,t){return e.map((i,n)=>e[(t+n)%e.length])}th(vh,"getDirectionAwareKey"),th(bh,"getFocusIntent"),th(wh,"focusFirst"),th(kh,"wrapArray");var Eh=Object.defineProperty,Sh=(e,t)=>Eh(e,"name",{value:t,configurable:!0});function Ch(e,t){return C.useReducer((e,i)=>t[e][i]??e,e)}Sh(Ch,"useStateMachine");var Ah=Sh(e=>{const{present:t,children:i}=e,n=_h(t),r="function"==typeof i?i({present:n.isPresent}):C.Children.only(i),s=Nh(n.ref,Ph(r));return"function"==typeof i||n.isPresent?C.cloneElement(r,{ref:s}):null},"Presence");function _h(e){const[t,i]=C.useState(),n=C.useRef(null),r=C.useRef(e),s=C.useRef("none"),a=C.useRef(void 0),o=e?"mounted":"unmounted",[l,c]=Ch(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{"mounted"===l?(s.current=a.current??Th(n.current),a.current=void 0):s.current="none"},[l]),lc(()=>{const t=n.current,i=r.current;if(i!==e){const n=s.current,o=Th(t);if(e)a.current=o,c("MOUNT");else if("none"===o||"none"===t?.display)c("UNMOUNT");else{c(i&&n!==o?"ANIMATION_OUT":"UNMOUNT")}r.current=e}},[e,c]),lc(()=>{if(t){let e;const i=t.ownerDocument.defaultView??window,a=Sh(s=>{const a=Th(n.current).includes(CSS.escape(s.animationName));if(s.target===t&&a&&(c("ANIMATION_END"),!r.current)){const n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=i.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)})}},"handleAnimationEnd"),o=Sh(e=>{e.target===t&&(s.current=Th(n.current))},"handleAnimationStart");return t.addEventListener("animationstart",o),t.addEventListener("animationcancel",a),t.addEventListener("animationend",a),()=>{i.clearTimeout(e),t.removeEventListener("animationstart",o),t.removeEventListener("animationcancel",a),t.removeEventListener("animationend",a)}}c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:C.useCallback(e=>{if(e){const t=getComputedStyle(e);n.current=t,a.current=Th(t)}else n.current=null;i(e)},[])}}function Ih(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Nh(...e){const t=C.useRef(e);return t.current=e,C.useCallback(e=>{const i=t.current;let n=!1;const r=i.map(t=>{const i=Ih(t,e);return n||"function"!=typeof i||(n=!0),i});if(n)return()=>{for(let e=0;e<r.length;e++){const t=r[e];"function"==typeof t?t():Ih(i[e],null)}}},[])}function Th(e){return e?.animationName||"none"}function Ph(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,i=t&&"isReactWarning"in t&&t.isReactWarning;return i?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,i=t&&"isReactWarning"in t&&t.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}Sh(_h,"usePresence"),Sh(Ih,"setRef"),Sh(Nh,"useStableComposedRefs"),Sh(Th,"getAnimationName"),Sh(Ph,"getElementRef");var Lh=Object.defineProperty,Vh=(e,t)=>Lh(e,"name",{value:t,configurable:!0}),Rh={Automatic:"automatic",Manual:"manual"},Oh="Tabs",[jh,Dh]=Fl(Oh,[ch]),Mh=ch(),[Fh,Bh]=jh(Oh),Uh=C.forwardRef(Vh(function(e,t){const{__scopeTabs:i,value:r,onValueChange:s,defaultValue:a,orientation:o="horizontal",dir:l,activationMode:c=Rh.Automatic,...h}=e,p=Gc(l),[u,d]=Mc({prop:r,onChange:s,defaultProp:a??"",caller:Oh});return n(Fh,{scope:i,baseId:Cc(),value:u,onValueChange:d,orientation:o,dir:p,activationMode:c,children:n(_c.div,{dir:p,"data-orientation":o,...h,ref:t})})},"Tabs")),zh=C.forwardRef(Vh(function(e,t){const{__scopeTabs:i,loop:r=!0,...s}=e,a=Bh("TabsList",i),o=Mh(i);return n(mh,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:n(_c.div,{role:"tablist","aria-orientation":a.orientation,...s,ref:t})})},"TabsList")),Jh=C.forwardRef(Vh(function(e,t){const{__scopeTabs:i,value:r,disabled:s=!1,...a}=e,o=Bh("TabsTrigger",i),l=Mh(i),c=Gh(o.baseId,r),h=Xh(o.baseId,r),p=r===o.value;return n(xh,{asChild:!0,...l,focusable:!s,active:p,children:n(_c.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":h,"data-state":p?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:c,...a,ref:t,onMouseDown:Rl(e.onMouseDown,e=>{s||0!==e.button||!1!==e.ctrlKey?e.preventDefault():(e.currentTarget.focus(),o.onValueChange(r))}),onKeyDown:Rl(e.onKeyDown,e=>{s||e.target!==e.currentTarget||[" ","Enter"].includes(e.key)&&o.onValueChange(r)}),onFocus:Rl(e.onFocus,()=>{const e=o.activationMode!==Rh.Manual;p||s||!e||o.onValueChange(r)})})})},"TabsTrigger")),qh=C.forwardRef(Vh(function(e,t){const{__scopeTabs:i,value:r,forceMount:s,children:a,...o}=e,l=Bh("TabsContent",i),c=Gh(l.baseId,r),h=Xh(l.baseId,r),p=r===l.value,u=C.useRef(p);return C.useEffect(()=>{const e=requestAnimationFrame(()=>u.current=!1);return()=>cancelAnimationFrame(e)},[]),n(Ah,{present:s||p,children:({present:i})=>n(_c.div,{"data-state":p?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!i,id:h,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:u.current?"0s":void 0},children:i&&a})})},"TabsContent"));function Gh(e,t){return`${e}-trigger-${t}`}function Xh(e,t){return`${e}-content-${t}`}Vh(Gh,"makeTriggerId"),Vh(Xh,"makeContentId");const Hh=new Map,Wh=V(null);function $h(){const e=L(Wh);if(!e)throw new Error("You must wrap your component in <Tabs>");return e}const Kh=zh;function Qh({value:e,ref:t,...i}){const{triggers:r}=$h();return n(Jh,{ref:Tl(t,t=>{t?r.add(e):r.delete(e)}),value:e,...i})}function Yh({ref:e,groupId:t,persist:i=!1,updateAnchor:r=!1,defaultValue:s,value:a,onValueChange:o,...l}){const c=N(null),h=I(()=>new Map,[]),p=I(()=>new Map,[]),u=I(()=>new Set,[]),[d,f]=void 0===a?_(s):[a,e=>o?.(e)],m=F(e=>{u.has(e)&&f(e)}),g=F(()=>{const e=window.location.hash.slice(1);if(!e)return;for(const[t,i]of h.entries())if(i===e)return f(t),void c.current?.scrollIntoView();const t=document.getElementById(e);if(t)for(const[e,i]of p.entries())if(i.contains(t))return f(e),void requestAnimationFrame(()=>t.scrollIntoView())});return B(()=>{if(!t)return;let e=sessionStorage.getItem(t);i&&(e??=localStorage.getItem(t)),e&&m(e);const n=Hh.get(t)??new Set;return n.add(m),Hh.set(t,n),()=>{n.delete(m)}},[t,i]),B(()=>(g(),window.addEventListener("hashchange",g),()=>window.removeEventListener("hashchange",g)),[]),n(Uh,{ref:Tl(e,c),value:d,onValueChange:e=>{if(r){const t=h.get(e);t&&window.history.replaceState(null,"",`#${t}`)}if(t){const n=Hh.get(t);if(n)for(const t of n)t(e);sessionStorage.setItem(t,e),i&&localStorage.setItem(t,e)}else f(e)},...l,children:n(Wh,{value:I(()=>({valueToIdMap:h,panels:p,triggers:u}),[h,p,u]),children:l.children})})}function Zh({value:e,ref:t,...i}){const{valueToIdMap:r,panels:s}=$h();return i.id&&r.set(e,i.id),n(qh,{ref:Tl(t,t=>{t?s.set(e,t):s.delete(e)}),value:e,...i,children:i.children})}const ep=V(null);function tp(e){return n("pre",{...e,className:Lo("min-w-full w-max *:flex *:flex-col",e.className),children:e.children})}function ip({ref:e,title:i,allowCopy:r=!0,keepBackground:s=!1,icon:a,viewportProps:o={},children:l,Actions:c=e=>n("div",{...e,className:Lo("empty:hidden",e.className)}),...h}){const p=null!==L(ep),u=N(null);return"true"===r?r=!0:"false"===r&&(r=!1),t("figure",{ref:e,dir:"ltr",...h,tabIndex:-1,className:Lo(p?"bg-fd-secondary -mx-px -mb-px last:rounded-b-xl":"my-4 bg-fd-card rounded-xl",s&&"bg-(--shiki-light-bg) dark:bg-(--shiki-dark-bg)","shiki relative border not-prose overflow-hidden text-sm",h.className),children:[i?t("div",{className:"flex text-fd-muted-foreground items-center gap-2 h-9.5 border-b px-4",children:["string"==typeof a?n("div",{className:"[&_svg]:size-3.5",dangerouslySetInnerHTML:{__html:a}}):a,n("figcaption",{className:"flex-1 truncate",children:i}),c({className:"-me-2",children:r&&n(np,{containerRef:u})})]}):c({className:"absolute top-3 right-2 z-2 backdrop-blur-lg rounded-lg text-fd-muted-foreground",children:r&&n(np,{containerRef:u})}),n("div",{ref:u,...o,role:"region",tabIndex:0,className:Lo("text-[0.8125rem] py-3.5 overflow-auto max-h-[600px] fd-scroll-container focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-fd-ring",o.className),style:{"--padding-right":i?void 0:"calc(var(--spacing) * 8)",counterSet:h["data-line-numbers"]?"line "+(Number(h["data-line-numbers-start"]??1)-1):void 0,...o.style},children:l})]})}function np({className:e,containerRef:i,...r}){const s=El({note:"code block"}),[a,o]=bl(()=>{const e=i.current?.getElementsByTagName("pre").item(0);if(!e)return;const t=e.cloneNode(!0);return t.querySelectorAll(".nd-copy-ignore").forEach(e=>{e.replaceWith("\n")}),navigator.clipboard.writeText(t.textContent??"")});return t("button",{type:"button","data-checked":a||void 0,className:Lo(xl({className:"hover:text-fd-accent-foreground data-checked:text-fd-accent-foreground",size:"icon-xs"}),e),"aria-live":"polite",onClick:o,...r,children:[n(a?Xo:Yo,{}),n("span",{className:"sr-only",children:s(a?"Copied Text":"Copy Text",{note:"aria-label"})})]})}const rp={CodeBlockTab:function(e){return n(Zh,{...e})},CodeBlockTabs:function({ref:e,...t}){const i=N(null),r=null!==L(ep);return n(Yh,{ref:Tl(i,e),...t,className:Lo("bg-fd-card rounded-xl border",!r&&"my-4",t.className),children:n(ep,{value:I(()=>({containerRef:i,nested:r}),[r]),children:t.children})})},CodeBlockTabsList:function(e){return n(Kh,{...e,className:Lo("flex flex-row px-2 overflow-x-auto text-fd-muted-foreground",e.className),children:e.children})},CodeBlockTabsTrigger:function({children:e,...i}){return t(Qh,{...i,className:Lo("relative group inline-flex text-sm font-medium text-nowrap items-center transition-colors gap-2 px-2 py-1.5 hover:text-fd-accent-foreground data-[state=active]:text-fd-primary [&_svg]:size-3.5",i.className),children:[n("div",{className:"absolute inset-x-2 bottom-0 h-px group-data-[state=active]:bg-fd-primary"}),e]})},pre:e=>n(ip,{...e,children:n(tp,{children:e.children})}),Card:function({icon:e,title:i,description:r,...s}){const a=s.href?Do:"div";return t(a,{...s,"data-card":!0,className:Lo("block rounded-xl border bg-fd-card p-4 text-fd-card-foreground transition-colors @max-lg:col-span-full",s.href&&"hover:bg-fd-accent/80",s.className),children:[e?n("div",{className:"not-prose mb-2 w-fit shadow-md rounded-lg border bg-fd-muted p-1.5 text-fd-muted-foreground [&_svg]:size-4",children:e}):null,n("h3",{className:"not-prose mb-1 text-sm font-medium",children:i}),r?n("p",{className:"my-0! text-sm text-fd-muted-foreground",children:r}):null,n("div",{className:"text-sm text-fd-muted-foreground prose-no-margin empty:hidden",children:s.children})]})}
56
- /**
57
- * @license lucide-react v1.66.0 - ISC
58
- *
59
- * This source code is licensed under the ISC license.
60
- * See the LICENSE file in the root directory of this source tree.
61
- */,Cards:function(e){return n("div",{...e,className:Lo("grid grid-cols-2 gap-3 @container",e.className),children:e.children})},a:Do,img:function(e){return n(Oo,{sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 70vw, 900px",...e,className:Lo("rounded-lg",e.className)})},h1:e=>n(Nl,{as:"h1",...e}),h2:e=>n(Nl,{as:"h2",...e}),h3:e=>n(Nl,{as:"h3",...e}),h4:e=>n(Nl,{as:"h4",...e}),h5:e=>n(Nl,{as:"h5",...e}),h6:e=>n(Nl,{as:"h6",...e}),table:function(e){return n("div",{className:"relative overflow-auto prose-no-margin my-6",tabIndex:0,children:n("table",{...e})})},Callout:function({children:e,title:i,...r}){return t(hl,{...r,children:[i&&n(pl,{children:i}),n(ul,{children:e})]})},CalloutContainer:hl,CalloutTitle:pl,CalloutDescription:ul};function sp({source:i,components:r}){const[s,a]=_(null),[o,l]=_(null);if(P(()=>{let t=!1;return async function(){try{const{default:n}=await Ga(i,{...e,baseUrl:import.meta.url,remarkPlugins:[kt,Et],rehypePlugins:[Dt]});t||(a(()=>n),l(null))}catch(e){t||(l(e.message),a(null))}}(),()=>{t=!0}},[i]),o)return n("pre",{style:{color:"red",whiteSpace:"pre-wrap"},children:o});if(!s)return null;const c={...rp,...r},h=[...i.matchAll(/<([A-Z][a-zA-Z0-9]*)\b/g)].map(e=>e[1]);for(const e of h)if(!(e in c)){const i=e;c[i]=({children:e})=>t("span",{style:{color:"orange",border:"1px dashed orange",padding:"0 4px",fontFamily:"monospace"},children:["<",i,">",e,"</",i,">"]})}return n(s,{components:c})}function ap(e){const{zoom:r,isRendering:s,isFullscreen:a,onZoom:o,onReset:l,onToggleFullscreen:c,zoomShortcutButtons:h}=e;return t("div",{className:"jk-row gap jk-pg-xsm",children:[n(Y,{onClick:()=>o(-.1),icon:n(tt,{size:"small"}),size:"tiny",type:"secondary"}),t("span",{style:{minWidth:"42px",textAlign:"center",fontSize:"0.8rem",userSelect:"none"},children:[Math.round(100*r),"%"]}),n(Y,{onClick:()=>o(.1),icon:n(Be,{size:"small"}),size:"tiny",type:"secondary"}),h&&t(i,{children:[n("div",{style:{width:"1px",height:"16px",background:"var(--t-color-gray-4)",margin:"0 4px"}}),n(Y,{onClick:()=>o(1-r),size:"tiny",type:"secondary",children:"100%"}),n(Y,{onClick:()=>o(2-r),size:"tiny",type:"secondary",children:"200%"}),n(Y,{onClick:l,icon:n(Ue,{size:"small"}),size:"tiny",type:"secondary",children:n(W,{className:"tt-se",children:"reset"})})]}),n("div",{style:{flex:1}}),s&&n(ze,{size:"small"}),n(Y,{onClick:c,icon:n(a?Me:Fe,{size:"small"}),size:"tiny",type:"secondary"})]})}const op='{\n "logLevel": "error",\n "securityLevel": "loose",\n "startOnLoad": false\n}';function lp({error:e}){return t("div",{style:{background:"var(--t-color-error-light, #fee2e2)",color:"var(--t-color-error, #dc2626)",borderTop:"2px solid var(--t-color-error, #dc2626)",padding:"8px 12px",flexShrink:0,overflow:"auto",maxHeight:"140px",display:"flex",gap:"8px",alignItems:"flex-start"},children:[n(Je,{size:"small",style:{flexShrink:0,marginTop:"2px"}}),n("pre",{style:{fontSize:"0.75rem",margin:0,whiteSpace:"pre-wrap",wordBreak:"break-word",fontFamily:"monospace"},children:e})]})}const cp=e=>{const{source:r,mermaidTheme:s="default",configJson:a=op,fileName:o="diagram",copyButtons:l=!0,downloadButtons:c=!0,zoomShortcutButtons:h=!0}=e,[p,u]=_(1),[d,f]=_({x:0,y:0}),[m,g]=_(!1),[x,y]=_(!1),v=N({x:0,y:0}),b=N(null),w=N(null);P(()=>{const e=()=>y(!!document.fullscreenElement);return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[]);const k=T(e=>{u(t=>Math.max(.1,Math.min(8,parseFloat((t+e).toFixed(2)))))},[]),E=T(()=>{u(1),f({x:0,y:0})},[]),S=T(e=>{0===e.button&&(g(!0),v.current={x:e.clientX-d.x,y:e.clientY-d.y})},[d]),C=T(e=>{m&&f({x:e.clientX-v.current.x,y:e.clientY-v.current.y})},[m]),A=T(()=>g(!1),[]);P(()=>{const e=w.current;if(!e)return;const t=e=>{e.preventDefault();const t=.001*-e.deltaY;u(e=>Math.max(.1,Math.min(8,parseFloat((e+t).toFixed(3)))))};return e.addEventListener("wheel",t,{passive:!1}),()=>e.removeEventListener("wheel",t)},[]);const[I,L]=_(""),[V,R]=_(""),[O,j]=_(!1),D=N(null),M=N(0);P(()=>{const e=++M.current;j(!0);const t=setTimeout(async()=>{try{const{default:t}=await import("./mermaid.core-GJX79pQL.js").then(function(e){return e.bk});let i={};try{i=JSON.parse(a)}catch(e){console.warn("Error on parsing configJson",e)}t.initialize({startOnLoad:!1,theme:s,look:"classic",layout:"dagre",securityLevel:"loose",...i});const{svg:n}=await t.render(`mermaid-render-${e}`,r);if(n.includes('aria-roledescription="error"')){const e=n.match(/<text class="error-text"[^>]*>([^<]*)<\/text>/);throw new Error(e?.[1]??"Syntax error")}e===M.current&&(L(n),R(""),j(!1))}catch(t){if(document.getElementById(`dmermaid-render-${e}`)?.remove(),e===M.current){const e=t instanceof Error?t.message:String(t);R(e.replace(/^Error:\s*/i,"")),L(""),j(!1)}}},400);return()=>{clearTimeout(t)}},[r,s,a]);const F=T(()=>{const e=D.current;return e?Wt.toBlob(e,{bgcolor:"dark"===s?"#1e1e2e":"#ffffff"}):Promise.reject(new Error("No SVG"))},[s]),B=T(()=>{if(!I)return;const e=new Blob([I],{type:"image/svg+xml"});Se(e,`${o}.svg`)},[I,o]),U=T(async()=>{try{const e=await F();Se(e,`${o}.png`)}catch(e){console.error("PNG export failed",e)}},[F,o]),z=T(async()=>{try{const e=await F();await navigator.clipboard.write([new ClipboardItem({"image/png":e})])}catch(e){console.error("PNG copy failed",e)}},[F]),J=T(async()=>{b.current&&(document.fullscreenElement?await document.exitFullscreen():await b.current.requestFullscreen())},[]);return n("div",{className:"ht-100 jk-col ow-hn flex-1 wh-100",ref:b,children:V?n(lp,{error:V}):t(i,{children:[n(ap,{zoom:p,isRendering:O,isFullscreen:x,onZoom:k,onReset:E,onToggleFullscreen:J,renderedSvg:I,mermaidTheme:s,zoomShortcutButtons:h}),(l||c)&&t("div",{className:"jk-row gap",children:[l&&t(i,{children:[n(ce,{disabled:!I,iconSize:"tiny",text:I,children:"SVG"},"copy-svg"),n(Y,{onClick:z,disabled:!I,icon:n(je,{size:"small"}),size:"tiny",children:"PNG"})]}),c&&t(i,{children:[n(Y,{onClick:B,disabled:!I,icon:n(De,{size:"small"}),size:"tiny",children:"SVG"}),n(Y,{onClick:U,disabled:!I,icon:n(De,{size:"small"}),size:"tiny",children:"PNG"})]})]}),t("div",{ref:w,className:"wh-100",style:{flex:1,overflow:"hidden",cursor:m?"grabbing":"grab",position:"relative",userSelect:"none",background:"dark"===s?"#1e1e2e":"var(--t-color-bg-1, #f8fafc)"},onMouseDown:S,onMouseMove:C,onMouseUp:A,onMouseLeave:A,children:[n("div",{style:{position:"absolute",top:"50%",left:"50%",transform:`translate(calc(-50% + ${d.x}px), calc(-50% + ${d.y}px)) scale(${p})`,transformOrigin:"center center"},children:I?n("div",{ref:D,dangerouslySetInnerHTML:{__html:I},style:{maxWidth:"100%",lineHeight:0}}):O||V?null:t("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"12px",color:"var(--t-color-gray-5)",padding:"3rem",userSelect:"none"},children:[n(et,{size:"huge"}),n(W,{className:"tt-se",children:"start typing to see your diagram"})]})}),O&&!I&&n("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(0,0,0,0.05)"},children:n(ze,{size:"large"})}),n("div",{style:{position:"absolute",bottom:"8px",right:"8px",fontSize:"0.7rem",color:"var(--t-color-gray-5)",background:"var(--t-color-bg)",padding:"3px 7px",borderRadius:"4px",border:"1px solid var(--t-color-gray-3)",pointerEvents:"none",userSelect:"none"},children:"scroll to zoom · drag to pan"})]})]})})},hp=[a.COMPILING,a.COMPILED,a.COMPILATION_ERROR],pp=({testCase:e,timeLimit:i,memoryLimit:r})=>{const{timeUsed:s,timeLimitExceeded:o,memoryUsed:l,memoryLimitExceeded:c,exitCode:h,runtimeError:p}=d(e,hp.includes(e.status)?10*f:i,hp.includes(e.status)?1048576:r);if(e.status===a.COMPILATION_ERROR)return n("div",{className:"jk-pg-xsm jk-row gap left tx-t",style:{lineHeight:1},children:n("span",{className:"tt-se cr-er",children:n(W,{children:"compilation error"})})});const u=p&&!o&&!c;return t("div",{className:"jk-col gap left stretch tx-s",style:{lineHeight:1},children:[t("div",{className:Ee("jk-row left",{"cr-er":o}),children:[n(W,{className:"tt-se",children:"time used"}),": ",s," ",n(W,{children:"ms"})," / ",i," ",n(W,{children:"ms"})]}),o&&n(W,{className:"tt-se cr-er jk-pg-l",children:"time limit exceeded"}),t("div",{className:Ee("jk-row left",{"cr-er":c}),children:[n(W,{className:"tt-se",children:"memory used"}),": ",l," ",n(W,{children:"KB"})," / ",r," ",n(W,{children:"KB"})]}),c&&n(W,{className:"tt-se cr-er jk-pg-l",children:"memory limit exceeded"}),t("div",{className:Ee("jk-row left",{"cr-er":u}),children:[n(W,{className:"tt-se",children:"exit code"}),": ",h]}),u&&n(W,{className:"tt-se cr-er jk-pg-l",children:"runtime error"})]})},up=({onChangeRef:e,testCasesValues:t,sample:i=!1})=>{const{addNotification:r}=ee();return n("div",{"data-tooltip-id":"jk-tooltip","data-tooltip-content":`add ${i?"sample":"custom sample"} case`,"data-tooltip-place":"left",className:"jk-button secondary small only-icon jk-br-ie",children:n($e,{size:"small",onClick:()=>{const s=t.filter(e=>!e.sample),o=t.filter(e=>e.sample),l=i?o:s;if(l.length<(i?30:16)){const t=globalThis.crypto.randomUUID(),n=y(l.map(e=>e.index));e.current?.({onTestCasesChange:e=>({...e,[t]:{key:t,index:n,in:"",out:"",testOut:"",withPE:o?.[0]?.withPE??!0,err:"",log:"",hidden:!1,sample:i,status:a.NONE,messageTimestamp:0}})})}else r({type:v.QUIET,message:n(W,{children:"maximum test cases achieved"})})}})})},dp={},fp=A(e=>{const{testCases:r=dp,onChangeRef:s,timeLimit:o,memoryLimit:l,direction:c,enableAddSampleCases:h,enableAddCustomSampleCases:p,readOnly:u=!1}=e,f=!u,y=I(()=>Object.values(r).sort((e,t)=>"*"===e.key?-1:"*"===t.key?1:e.sample!==t.sample?+t.sample-+e.sample:e.index-t.index),[r]),[v,b]=_(y[0]?.key||"*");P(()=>{const e=Object.values(r);e.length&&e[0]&&(e.some(e=>e.key===v)||b(e[0].key))},[v,r]);const[w,k]=_("output"),[E,S]=_("input"),C=r[v],A=!!C&&(d(C,o,l).failed||!!C?.err||[a.FAILED,a.COMPILATION_ERROR,a.FAILED_TEST_CASE].includes(C.status));P(()=>{k(A?"error":"output")},[A]);const N=C?.status===a.RECEIVED||C?.status===a.COMPILING||C?.status===a.RUNNING_TEST_CASES||C?.status===a.RUNNING_TEST_CASE,T=N&&n("div",{className:"jk-overlay jk-overlay-backdrop jk-row center pn-ae",style:{background:"transparent",position:"absolute"},children:t("div",{className:"jk-row",style:{alignItems:"baseline"},children:[n(W,{className:"tt-se",children:m[C?.status].label})," ",n("div",{className:"dot-flashing"})]})}),L={};C?.testOut&&(L["test-output"]={key:"test-output",header:t("div",{className:"jk-row gap left nowrap",children:[n(W,{className:"tt-se",children:"expected output"}),C?.withPE&&n(he,{text:C?.testOut||""})]}),body:n("div",{className:"ht-100 jk-col stretch nowrap",children:n("div",{className:"jk-pg-xsm ow-ao flex-1",children:n("span",{className:"jk-text-stdout",children:C?.testOut})})})}),L.output={key:"output",header:n(W,{className:Ee("tt-se"),children:"your output"}),body:t("div",{className:"ht-100 jk-col stretch nowrap pn-re",children:[T,n("div",{className:"jk-pg-xsm ow-ao flex-1",children:n("span",{className:"jk-text-stdout",children:C?.out})})]})},A&&(L.error={key:"error",header:n(W,{className:Ee("tt-se"),children:"error"}),body:t("div",{className:"ht-100 jk-col stretch nowrap pn-re",children:[T,n("div",C&&!C?.err?{className:"jk-row",children:n(pp,{testCase:C,timeLimit:o,memoryLimit:l})}:{className:"jk-pg-xsm ow-ao flex-1",children:n("span",{className:"jk-text-stderr tx-t bc-er cr-we jk-pg-xsm",children:C?.err})})]})});const V={input:{key:"input",header:n(W,{className:"tt-se",children:"input"}),body:(C?.sample?h:p)&&f?n(pe,{style:{height:"calc(100% - 4px)",overflow:"auto",width:"calc(100% - 4px)",margin:2,position:"absolute"},wrap:"off",className:"tx-s flex-1",value:C?.in,disabled:!C,onChange:C?e=>s?.current?.({onTestCasesChange:t=>({...t,[C.key]:{...t[C.key]??C,in:e}})}):void 0}):n("div",{className:"flex-1 ow-ao jk-pg-xsm",children:n("span",{className:"jk-text-stdout",children:C?.in})})}};return C?.sample&&h&&(V.output={key:"output",header:n(W,{className:"tt-se",children:"expected output"}),body:f?n(pe,{style:{height:"calc(100% - 4px)",overflow:"auto",width:"calc(100% - 4px)",margin:2,position:"absolute"},wrap:"off",className:"tx-s flex-1",value:C?.testOut,onChange:e=>s?.current?.({onTestCasesChange:t=>({...t,[C.key]:{...t[C.key]??C,testOut:e}})})}):n("div",{className:"flex-1 ow-ao jk-pg-xsm",children:n("span",{className:"jk-text-stdout",children:C?.testOut})})},V.settings={key:"settings",header:n(W,{className:"tt-se",children:"settings"}),body:t("div",{className:"jk-col gap jk-pg-sm",children:[n(ue,{size:"small",checked:C?.hidden,leftLabel:n(W,{className:"tt-se tx-s",children:"no hidden"}),rightLabel:n(W,{className:"tt-se tx-s",children:"hidden"}),onChange:f?e=>s?.current?.({onTestCasesChange:t=>({...t,[C.key]:{...t[C.key]??C,hidden:e}})}):void 0}),n(ue,{size:"small",checked:C?.withPE,leftLabel:n(W,{className:"tt-se tx-s",children:"without PE"}),rightLabel:n(W,{className:"tt-se tx-s",children:"with PE"}),onChange:f?e=>s?.current?.({onTestCasesChange:t=>({...t,[C.key]:{...t[C.key]??C,withPE:e}})}):void 0})]})}),t("div",{className:"jk-code-mirror-editor-test-cases jk-row stretch nowrap",children:[t("div",{className:"jk-col nowrap stretch top tx-t border-right-highlight-light test-cases-header ow-ao",children:[n("div",{className:"jk-row ta-cr fw-bd jk-pg-xsm-tb border-bottom-highlight-light",children:n(W,{className:"tt-se",style:{width:48,lineHeight:1},children:"test cases"})}),y.map(e=>{const r=g(e,o,l).verdict;return t("div",{"data-tooltip-id":"jk-tooltip","data-tooltip-content":(e.sample?"sample":"custom sample")+" case","data-tooltip-place":"left",onClick:()=>b(e.key),className:Ee("jk-row hoverable jk-pg-xsm space-between",{"bc-ht-lt":e.key===v}),style:{minWidth:80},children:[t("div",{className:"jk-row left",children:["*"===e.key?n(Qe,{size:"small"}):n(Qe,{letter:(e.index+1)%10+"",letterSize:12,size:"small",className:Ee({"cr-io-lt":e.sample})}),(e.sample?h:p)&&"*"!==e.key&&t(i,{children:[" ",n(Ve,{size:"tiny",className:"clickable br-50-pc","data-tooltip-id":"jk-tooltip","data-tooltip-content":"delete case","data-tooltip-place":"right",onClick:()=>{s?.current?.({onTestCasesChange:t=>{const i={...t};return delete i[e.key],i}})}})]})]}),e.status!==a.NONE&&([a.EXECUTED_TEST_CASE,a.FAILED_TEST_CASE,a.COMPILATION_ERROR].includes(e.status)?e.testOut||r===x.CE||r===x.MLE||r===x.TLE||r===x.RE?t(i,{children:[" ",n(de,{verdict:r,small:!0})]}):n("div",{"data-tooltip-id":"jk-tooltip","data-tooltip-content":"success executed",className:"cr-io-lt",style:{lineHeight:1,padding:"2px 4px"},children:n(Ge,{size:"tiny",filledCircle:!0})}):t(i,{children:[" ",n(qe,{size:"tiny"})]}))]},e.key)}),h&&f&&s&&n("div",{className:"jk-row jk-pg-xsm-tb border-top-highlight-light",children:n(up,{onChangeRef:s,testCasesValues:y,sample:!0})}),p&&f&&s&&n("div",{className:"jk-row jk-pg-xsm-tb border-top-highlight-light",children:n(up,{onChangeRef:s,testCasesValues:y})})]}),!h&&C?.hidden?n("div",{className:"jk-row center ht-100 flex-1",children:n(W,{className:"tt-se jk-tag bc-io-lt",children:"test input hidden"})}):t(fe,{direction:"row"===c?"column":"row",className:"flex-1 ow-hn",children:[t("div",{className:"jk-col extend stretch nowrap",children:[n(me,{tabs:V,selectedTabKey:E,onChange:S,tabButtonsClassName:"tx-t"}),n("div",{className:"flex-1 wh-100 pn-re ow-hn",children:n(ge,{tabs:V,selectedTabKey:E})})]}),t("div",{className:"jk-col stretch test-cases-output-stderr",children:[n(me,{tabs:L,selectedTabKey:w,onChange:k,tabButtonsClassName:"tx-t",extraNodesPlacement:"left",extraNodes:[n("div",{children:n(xe,{popoverClassName:"bc-sf-hi jk-br-ie elevation-1 jk-pg-xsm",content:t("div",{className:"pn-re",children:[N&&t("div",{className:"jk-row",style:{alignItems:"baseline"},children:[n(W,{className:"tt-se",children:m[C?.status].label})," ",n("div",{className:"dot-flashing"})]}),C&&!N&&C.status!==a.NONE?n(pp,{testCase:C,timeLimit:o,memoryLimit:l}):!!C&&!N&&n(W,{className:"tt-se",children:C.sample?"unexecuted sample case":"unexecuted test case"})]}),children:n("div",{className:Ee("jk-row jk-pg-xsm-l",{"cr-er-lt":A,"cr-io-lt":!A}),children:n(Xe,{filledCircle:!0,size:"tiny"})})})},"info")]}),n("div",{className:"flex-1 wh-100 pn-re ow-hn",children:n(ge,{tabs:L,selectedTabKey:w})})]})]})]})});let mp;function gp(e){const{readOnly:i,languages:r,onChange:s,leftButtons:a,centerButtons:o,rightButtons:c,testCases:h,tabSize:p=4,fontSize:d=14,timeLimit:m=f,memoryLimit:g=1048576,expandPosition:x,className:y,enableAddCustomSampleCases:v,enableAddSampleCases:k,onlyCodeEditor:E,files:S,currentFileName:C,documentScope:A="",triggerFocus:L,mdEditorRef:V,withoutRunCodeButton:R,mermaidTheme:O,mermaidConfigJson:j,mermaidFileName:D,onBlur:M}=e,{source:F="",language:B=l.TEXT}=S?.[C]??{},U=N(new Map).current,z=e=>`${A}\0${e}`,J=z(C),q=(r??[]).map(({value:e})=>String(e)).join("\0"),X=ie(r),H=I(()=>X.current??mp??(mp=G.map(e=>({value:e,label:w[e]?.label||e}))),[q,X]),$=Object.entries(S).map(([e,{name:t,folderPath:i,index:n,description:r}])=>`${e}${t}${i}${n}${r??""}`).join(""),K=I(()=>Object.fromEntries(Object.entries(S).map(([e,{name:t,folderPath:i,index:n,description:r}])=>[e,{name:t,folderPath:i,index:n,description:r}])),[$]);P(()=>{const e=new Set(Object.keys(K).map(z));for(const t of Array.from(U.keys()))e.has(t)||U.delete(t)},[K,A]);const Q=ie(i?void 0:s),Z=ie(S),ee=T(()=>Z.current,[Z]),te=F.length>0,ne=ye(e=>e.user.settings[b.THEME]),[re,ae]=_("row"),[oe,le]=_(!1),ce=ve(e=>e.viewPort.isSmallScreen),he=I(()=>u.includes(B)?n(fp,{testCases:h,timeLimit:m,memoryLimit:g,onChangeRef:Q,direction:re,enableAddSampleCases:!i&&!!k,enableAddCustomSampleCases:!i&&!!v,readOnly:!!i}):B===l.MERMAID?n(cp,{source:F,mermaidTheme:O,configJson:j,fileName:D}):B===l.MDX?n("div",{className:"ht-100 wh-100 ow-ao jk-pg-xsm",children:n(sp,{source:F})}):B===l.MARKDOWN?n(We,{ref:V,className:"ow-ao ht-100",value:F,onChange:e=>Q?.current?.({source:e})}):null,[F,B,h,m,g,Q,re,i,k,v,V,O,j,D]),pe=null!=he,ue=E||!pe,de=I(()=>({testCases:h||{},timeLimit:m,memoryLimit:g,enableAddSampleCases:!!k,enableAddCustomSampleCases:!!v}),[v,k,g,h,m]),me=I(()=>n(Yt,{preferredTheme:ne,language:B,readOnly:i,source:F,tabSize:p,fontSize:d,languages:H,onlyFirstPane:ue,triggerFocus:L,setExpanded:le,getFiles:ee,hasSource:te,currentFileName:C,leftButtons:a,centerButtons:o,rightButtons:c,onChangeRef:Q,runner:de,expandPosition:x,expanded:oe,withoutRunCodeButton:R,documentKey:J,editorStateCache:U}),[ne,B,i,F,p,d,H,ue,L,ee,te,C,a,o,c,Q,de,x,oe,R,J,U]),ge=I(()=>pe?{align:"right",expandLabel:n(W,{className:"label tx-t",children:"test cases"})}:void 0,[pe]),xe=I(()=>pe&&ce?{align:"right",expandLabel:n(W,{className:"label tx-t",children:"code editor"})}:void 0,[pe,ce]),{ref:we,width:ke=0}=se(),Se=n("div",{className:Ee("jk-code-mirror-editor-layout jk-br-ie jk-col nowrap stretch bc-sf-md ht-100 wh-100 pn-re",{"elevation-1":oe},y),style:{overflow:oe?"hidden":void 0},onBlur:M?e=>{e.currentTarget.contains(e.relatedTarget)||M()}:void 0,children:t("div",{className:"flex-1 ow-hn jk-row nowrap stretch",children:[n(Jt,{fileTreePanelRef:we,files:K,currentFileName:C,onChangeRef:Q,readOnly:i}),n("div",{className:"jk-row transition-width flex-1",style:{width:`calc(100% - ${ke}px)`},children:0===Object.keys(S).length?t("div",{className:"jk-col gap jk-pg",children:[n(W,{className:"tt-se",children:"there are no files in the editor, create a new file to start using the editor"}),n(Y,{type:"secondary",onClick:()=>Q.current?.({newFileName:""}),children:n(W,{className:"tt-se",children:"create a new file"})})]}):ue?me:t(fe,{direction:re,minSize:80,onlyFirstPane:!pe,closableSecondPane:ge,closableFirstPane:xe,toggleable:!0,onChangeDirection:ae,onePanelAtATime:ce,className:"ht-100",children:[me,he]})})]})});return oe?n(be,{children:n("div",{className:"jk-overlay jk-overlay-backdrop",children:n("div",{style:{position:"absolute",...x},children:Se})})}):Se}function xp(e){let t={};if("undefined"!=typeof localStorage){const i=e&&localStorage.getItem(e)||"{}";S(i)&&(t=JSON.parse(i))}return t}function yp(e,t,i,n){const r=ie(i),s=ie(n),a=T(i=>{const n={},a={...s.current(xp(e)),...i};for(const[e,i]of Object.entries(t))n[e]=r.current(i,a[e]);for(const[e,t]of Object.entries(a))n[e]||(n[e]=t);return n},[e,s,r,t]),[o,l]=_(()=>a()),[c,h]=_(()=>a);return c!==a&&(h(()=>a),l(e=>a(e))),P(()=>{const t=setTimeout(()=>{const t=JSON.stringify(o);localStorage.getItem(e)!==t&&localStorage.setItem(e,t)},300);return()=>clearTimeout(t)},[e,o]),[o,l]}function vp(e,t){const i=ie(t),n=N(null),r=N(void 0),s=T(()=>{clearTimeout(r.current);const e=n.current;e&&(n.current=null,i.current(e.value))},[i]);return P(()=>{n.current={value:e},clearTimeout(r.current),r.current=setTimeout(s,300)},[e,s]),P(()=>s,[s]),s}const bp=e=>w[e]?.fileExtension[0]??"source",wp=(e,t)=>e?`${e}/${t}`:t,kp=(e,t)=>{const i={};for(const[n,r]of Object.entries(e))i[n]={...r,out:t?.[n]?.out??r?.out??"",err:t?.[n]?.err??r?.err??"",log:t?.[n]?.log??r?.log??"",status:t?.[n]?.status??r?.status??a.NONE,messageTimestamp:t?.[n]?.messageTimestamp??r?.messageTimestamp??0},"*"===n&&(i[n].in=t?.[n]?.in??r?.in??"");for(const[e,n]of Object.entries(t??{}))i[e]||(i[e]=n);return i},Ep=(e,t)=>({...t,...e}),Sp=(e,t)=>({...e,...t}),Cp={},Ap=(e,t,i)=>{let n=`${e}${t}`,r=1;for(;i(n);)n=`${e}(${r})${t}`,r++;return n},_p=e=>{const t={};for(const[i,n]of Object.entries(e||{}))t[i]={lastFileName:"string"==typeof n?.lastFileName?n.lastFileName:""};return t},Ip=e=>{const t={};for(const[i,n]of Object.entries(e||{})){t[i]={};for(const[e,r]of Object.entries(n))!1===r?.sample&&(t[i][e]={key:e,in:r?.in||"",testOut:r?.testOut||"",withPE:r?.withPE||!1,sample:!1,hidden:r?.hidden||!1,index:r?.index??-1,messageTimestamp:r?.messageTimestamp??0,out:r?.out||"",err:r?.err||"",log:r?.log||"",status:r?.status||a.NONE})}return t};var Np=O(function(e,t){const{className:i,expandPosition:r,initialTestCases:s={},initialFileName:o,storeKey:c,languages:h,leftButtons:p,centerButtons:u,rightButtons:d,onFilesChange:f,onCurrentFileNameChange:m,onTestCasesChange:g,initialFiles:x,enableAddSampleCases:y,enableAddCustomSampleCases:v,onIsRunningChange:b,readOnly:S,onCodeRunStatusChange:C,onlyCodeEditor:A,withoutRunCodeButton:L,mermaidTheme:V,mermaidConfigJson:R,mermaidFileName:O}=e,j=ye(e=>e.user.nickname),{addErrorNotification:D}=ee(),M=Ae(j),[F,B]=function(e,t){const i=ie(t),[n,r]=_(()=>({...t,...xp(e)})),[s,a]=_(e);return s!==e&&(a(e),r({...i.current,...xp(e)})),P(()=>{const t=setTimeout(()=>{if(e){const t=JSON.stringify(n);localStorage.getItem(e)!==t&&localStorage.setItem(e,t)}},300);return()=>clearTimeout(t)},[e,n]),[n,r]}(M,{theme:k.LIGHT,lastLanguageUsed:l.CPP,tabSize:2,fontSize:14});let z=F.lastLanguageUsed;h?.length&&!h.some(e=>e.value===z)&&h[0]&&(z=h[0].value);const J=(h??[]).map(({value:e})=>String(e)).join("\0"),q=ie(h),G=I(()=>(e=>t=>{const i={};for(const[n,r]of Object.entries(t||{})){i[n]={};let t=1;for(const[s,a]of Object.entries(r||{}))if("string"==typeof a){const r=`source-${t}.${bp(s)}`;i[n][r]={source:a,language:e?.some(({value:e})=>e===s)?s:l.TEXT,index:t,name:r,hidden:!1,protected:!1,readonly:!1,folderPath:"",description:"",active:!1},t++}else if("object"==typeof a&&null!==a){const t=ke("folderPath"in a&&"string"==typeof a?.folderPath?a.folderPath:""),r=ke("name"in a&&"string"==typeof a?.name?a.name:""),s=i[n]?.[wp(t,r)]?Ap(r,`.${bp("language"in a&&"string"==typeof a?.language?a.language:"")}`,e=>!!i[n]?.[wp(t,e)]):r,o=wp(t,s);i[n][o]={source:"source"in a&&"string"==typeof a?.source?a?.source:"",language:("language"in a&&"string"==typeof a?.language?e?.some(({value:e})=>e===a?.language)?a?.language:l.TEXT:"")||l.TEXT,index:"index"in a&&"number"==typeof a?.index?a?.index:0,name:s,hidden:"hidden"in a&&"boolean"==typeof a?.hidden&&a.hidden,protected:"protected"in a&&"boolean"==typeof a?.protected&&a.protected,readonly:"readonly"in a&&"boolean"==typeof a?.readonly&&a.readonly,folderPath:t,description:"description"in a&&"string"==typeof a?.description?a?.description:"",active:"active"in a&&"boolean"==typeof a?.active&&a.active}}}for(const[e,t]of Object.entries(i)){i[e]={};for(const[,n]of Object.entries(t||{}))n.name||(n.name=Ap("recovered",`.${bp(n.language)}`,t=>!!i[e]?.[wp(n.folderPath,t)])),i[e][wp(n.folderPath,n.name)]=n}return i})(q.current),[J,q]),H=N(void 0),$=N(x);x!==$.current&&x!==H.current&&($.current=x);const K=$.current,[Q]=we(I(()=>G({[c]:{...K}}),[G,c,K])),[Y,Z]=yp(_e(j),Q,Ep,G),te=ie(f),ne=Y[c]||X,re=ie(ne),se=vp(ne,e=>{H.current=e,te.current?.(e)}),ae=o??Object.keys(Q[c]??{})[0]??(oe=z,w[oe]?.mainFilename??"main.source");var oe;const[le]=we(I(()=>({[c]:{lastFileName:ae}}),[c,ae])),[ce,he]=yp(Ie(j),le,Sp,_p),pe=ie(m),ue=ce[c]?.lastFileName??ae,de=Object.keys(ne),fe=ne[ue]||0===de.length?ue:de[0],me=ie(fe);P(()=>pe.current?.(fe),[fe,pe]);const ge=e=>{he(t=>({...t,[c]:{...t[c],lastFileName:e}})),Z(t=>{const i=t[c];if(!i||!i[e])return t;let n=!1;const r=Object.fromEntries(Object.entries(i).map(([t,i])=>{const r=t===e;return(i.active??!1)!==r?(n=!0,[t,{...i,active:r}]):[t,i]}));return n?{...t,[c]:r}:t})},xe=c,ve=N(void 0),be=N(s);s!==be.current&&s!==ve.current&&(be.current=s);const Ee=be.current,[Se]=we(I(()=>((e,t)=>{const i={[e]:{...t}};return 0===Object.keys(t).length&&(i[e]["*"]={key:"*",in:"",testOut:"",withPE:!1,sample:!1,hidden:!1,index:-1,messageTimestamp:0,out:"",err:"",log:"",status:a.NONE}),i})(xe,Ee),[xe,Ee])),[Ce,Te]=yp(Ne(j),Se,kp,Ip),Pe=ie(g),Le=Ce[xe]??Cp,Ve=ie(Le),Re=vp(Le,e=>{ve.current=e,Pe.current?.(e)}),Oe=T(()=>{se(),Re()},[se,Re]),[je,De]=_(0),Me=()=>setTimeout(()=>De(e=>e+1),200),Fe=N(null);U(t,()=>({setFile:e=>{Z(t=>{if(t[c]){const i=ke(e.folderPath),n=wp(i,e.name);return{...t,[c]:{...t[c],[n]:{...e,folderPath:i}}}}return t})},markdownGetSelection:()=>Fe.current?.getSelectionMarkdown()??"",markdownReplaceSelectionWithMarkdown:e=>Fe.current?.replaceSelectionWithMarkdown(e),markdownHighlightSelectionNodes:e=>Fe.current?.highlightSelectionNodes(e),markdownClearHighlight:()=>Fe.current?.clearHighlight(),getFiles:()=>re.current,getTestCases:()=>Ve.current,getCurrentFileName:()=>me.current,flushChanges:Oe}),[Z,c,re,Ve,me,Oe]);const Be=(e,t,i,n,r)=>{const s=e[c]||{};if(s[t]){const a=(void 0!==n?n:s[t]?.folderPath)||"",o=wp(a,i),l={...s[t],name:i,folderPath:a,...void 0!==r&&{description:r}},{[t]:h,...p}={...s};return p[o]=l,{...e,[c]:p}}return e};return n(gp,{onBlur:Oe,triggerFocus:je,files:ne,currentFileName:fe,documentScope:c,className:i,theme:F.theme,tabSize:F.tabSize,fontSize:F.fontSize,languages:h,readOnly:S,onChange:({source:e,language:t,onTestCasesChange:i,theme:r,tabSize:s,fontSize:o,isRunning:l,codeRunStatus:h,newFileName:p,fileName:u,fileNameEdited:d,fileNameDeleted:f})=>{if(h&&(h===a.RECEIVED&&Oe(),C?.(h,{files:ne,currentFileName:fe,testCases:Le})),"boolean"==typeof l&&b?.(l),"string"==typeof e&&Z(t=>t[c]&&t[c][fe]?{...t,[c]:{...t[c],[fe]:{...t[c][fe],source:e}}}:t),t){B(e=>({...e,lastLanguageUsed:t}));const e=ne,i=e[fe];if(i){const n=i.folderPath??"",r=((e,t)=>(w[t]?.fileExtension??[]).includes((e=>{const t=e.lastIndexOf(".");return t>0?e.slice(t+1).toLowerCase():""})(e)))(i.name,t)?i.name:Ap(E(i.name),`.${bp(t)}`,t=>!!e[wp(n,t)]),s=wp(n,r);Z(e=>{const i=e[c]?.[fe];if(!i)return e;const a={...e,[c]:{...e[c],[fe]:{...i,language:t}}};return s===fe?a:Be(a,fe,r,n)}),s!==fe&&ge(s)}Me()}if(i&&Te(e=>({...e,[xe]:i(e[xe]||{})})),r&&(B(e=>({...e,theme:r})),Me()),s&&(B(e=>({...e,tabSize:s})),Me()),o&&(B(e=>({...e,fontSize:o})),Me()),void 0!==p){const e=ne,t=ke(p),i=Ap("new",`.${bp(z)}`,i=>!!e[wp(t,i)]),n=wp(t,i),r=Object.values(e).reduce((e,{index:t})=>Math.max(e,t||0),0);Z(e=>{const s=e[c]||{};return s[n]?e:{...e,[c]:{...s,[n]:{source:w[z]?.templateSourceCode||"",language:z,index:r+1,name:i,hidden:!1,protected:!1,readonly:!1,folderPath:t,description:"",active:!0}}}}),ge(n),Me()}if(u&&(ge(u),Me()),"string"==typeof d?.[0]&&"string"==typeof d?.[1]){const e=d[0],t=d[1],i=ne,r=void 0!==d[2]?d[2]:i[e]?.folderPath??"",s=wp(r,t);i[s]&&s!==e?D(n(W,{className:"tt-se",children:"file name already exists"})):(Z(i=>Be(i,e,t,r,d[3])),ge(s),Me())}if(f){if(Z(e=>{const t=e[c]||{};if(!t[f])return e;const{[f]:i,...n}=t;return{...e,[c]:n}}),f===fe){const e=Object.keys(ne).filter(e=>e!==f);ge(e[0]??"")}Me()}},leftButtons:p,centerButtons:u,rightButtons:d,testCases:Le,expandPosition:r,enableAddSampleCases:y,enableAddCustomSampleCases:v,onlyCodeEditor:A,mdEditorRef:Fe,withoutRunCodeButton:L,mermaidTheme:V,mermaidConfigJson:R,mermaidFileName:O})});export{Np as default};