@juki-team/base-ui 1.5.1 → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/README.md +17 -7
  2. package/dist/esm/ArrowForwardIcon-D6Jfdilm.js +1 -0
  3. package/dist/esm/{BarChart-D74BtmuY.js → BarChart-D6H2EH3B.js} +1 -1
  4. package/dist/esm/{CartesianChart-CW5O6vne.js → CartesianChart-_EyixekW.js} +1 -1
  5. package/dist/esm/{ChangePasswordModal-BjmZ4w-n.js → ChangePasswordModal-DP68K_jG.js} +1 -1
  6. package/dist/esm/{CodeEditor-DHSwOQl_.js → CodeEditor-CPsmXl7i.js} +1 -1
  7. package/dist/esm/{CodeViewer-BgcqqnsU.js → CodeViewer-DIncRhD1.js} +1 -1
  8. package/dist/esm/{Collapse-CJGjLO29.js → Collapse-Bn9-0z3I.js} +1 -1
  9. package/dist/esm/{DataGrid-B2ZsmTQN.js → DataGrid-CzZsh4gG.js} +1 -1
  10. package/dist/esm/{DataViewer-C7cqe5jJ.js → DataViewer-CSIcp1dE.js} +1 -1
  11. package/dist/esm/{DrawerView-CBLVa95i.js → DrawerView-D-MEVHS0.js} +1 -1
  12. package/dist/esm/{ExcalidrawButton-Gtzt3GBc.js → ExcalidrawButton-CL_vPewV.js} +1 -1
  13. package/dist/esm/{GraphvizViewer-Dyqijdc9.js → GraphvizViewer-BfJg604I.js} +1 -1
  14. package/dist/esm/{ImageLoaderCropper-DhWDuHK1.js → ImageLoaderCropper-BjHykYfo.js} +1 -1
  15. package/dist/esm/{InputCellPhoneNumber-BgKCDHLv.js → InputCellPhoneNumber-CAi0AXMP.js} +1 -1
  16. package/dist/esm/{InputColor-DeeYpvdA.js → InputColor-Ch5Do1U-.js} +1 -1
  17. package/dist/esm/{LineChart-D2VT5Aos.js → LineChart-BL9HlHkG.js} +1 -1
  18. package/dist/esm/{LoaderLayer-D9O7WqFD.js → LoaderLayer-CXFK-kAz.js} +1 -1
  19. package/dist/esm/{MdMath-PFhigRVS.js → MdMath-DwyNLKE_.js} +1 -1
  20. package/dist/esm/{MdMathEditor-CNn23WdZ.js → MdMathEditor-D0f1McYj.js} +1 -1
  21. package/dist/esm/{Popover-kYKitQai.js → Popover-DPn39FUa.js} +1 -1
  22. package/dist/esm/ReplyIcon-Dd5U6wGZ.js +1 -0
  23. package/dist/esm/{SettingsIcon-Dk27Vz1G.js → SettingsIcon-BCDZw0HR.js} +1 -1
  24. package/dist/esm/{SlideDeck-DMd0LgxX.js → SlideDeck-et5M4lE-.js} +1 -1
  25. package/dist/esm/{TableEyeIcon-D74isCSR.js → TableEyeIcon-CDLbQapU.js} +1 -1
  26. package/dist/esm/{TableOfContents-zzI7FQbW.js → TableOfContents-CLrH5fjb.js} +1 -1
  27. package/dist/esm/{Tooltip-B8AobPsl.js → Tooltip-CEgmNtFX.js} +1 -1
  28. package/dist/esm/{UserCodeEditor-CbgpE94F.js → UserCodeEditor-DlHeWLUu.js} +2 -2
  29. package/dist/esm/{VirtualizedRowsFixed-Cau69yw0.js → VirtualizedRowsFixed-8Wk8DRYc.js} +1 -1
  30. package/dist/esm/{WorksheetAsSlides-cYn12ViE.js → WorksheetAsSlides-X5Ljvk2t.js} +1 -1
  31. package/dist/esm/{WorksheetBodies-oAHNxEoL.js → WorksheetBodies-pHyqSVPy.js} +1 -1
  32. package/dist/esm/{WorksheetContents-m3z1cSCO.js → WorksheetContents-ByjM-HNk.js} +1 -1
  33. package/dist/esm/{WorksheetEditor-DL9l5iCM.js → WorksheetEditor-Dq3apeLg.js} +1 -1
  34. package/dist/esm/{WorksheetNode-D6tMtEqC.js → WorksheetNode-Chf37TwI.js} +1 -1
  35. package/dist/esm/{WorksheetViewer-tctJbZIu.js → WorksheetViewer-B-slMCYv.js} +1 -1
  36. package/dist/esm/{architecture-YZFGNWBL-rccIGhXm.js → architecture-YZFGNWBL-B4qRp-MK.js} +1 -1
  37. package/dist/esm/{architectureDiagram-Q4EWVU46-D4BxMEG7.js → architectureDiagram-Q4EWVU46-MfdUMKWh.js} +1 -1
  38. package/dist/esm/{blockDiagram-DXYQGD6D-z0-_xhoI.js → blockDiagram-DXYQGD6D-B53ncWj8.js} +1 -1
  39. package/dist/esm/{c4Diagram-AHTNJAMY-BoabvxgU.js → c4Diagram-AHTNJAMY-FdREycKs.js} +1 -1
  40. package/dist/esm/channel-D_ARZf1V.js +1 -0
  41. package/dist/esm/{chunk-4BX2VUAB-BD59bCvh.js → chunk-4BX2VUAB-Dc1mlsfk.js} +1 -1
  42. package/dist/esm/{chunk-4TB4RGXK-bRIvkE2u.js → chunk-4TB4RGXK-DpY00B8-.js} +1 -1
  43. package/dist/esm/{chunk-55IACEB6-B9SJqSMu.js → chunk-55IACEB6-Csh8qgjO.js} +1 -1
  44. package/dist/esm/{chunk-EDXVE4YY-DO0UVobI.js → chunk-EDXVE4YY-DCPe-NtF.js} +1 -1
  45. package/dist/esm/{chunk-FMBD7UC4-B0l_pK7G.js → chunk-FMBD7UC4-DAo4g5fP.js} +1 -1
  46. package/dist/esm/{chunk-OYMX7WX6-ChpTvaWt.js → chunk-OYMX7WX6-C7RHHgRc.js} +1 -1
  47. package/dist/esm/{chunk-QZHKN3VN-9SrlxM-A.js → chunk-QZHKN3VN-CUifo-Cb.js} +1 -1
  48. package/dist/esm/{chunk-YZCP3GAM-B9nB-mZv.js → chunk-YZCP3GAM-DELqvesl.js} +1 -1
  49. package/dist/esm/classDiagram-6PBFFD2Q-B7_Zpqtq.js +1 -0
  50. package/dist/esm/classDiagram-v2-HSJHXN6E-B7_Zpqtq.js +1 -0
  51. package/dist/esm/clone-DZNciEx8.js +1 -0
  52. package/dist/esm/{commons-B_OozOv-.js → commons-D9Mh1s5L.js} +1 -1
  53. package/dist/esm/constants.js +1 -1
  54. package/dist/esm/{cose-bilkent-S5V4N54A-DOOhcKZn.js → cose-bilkent-S5V4N54A-BOV94ldj.js} +1 -1
  55. package/dist/esm/{dagre-KV5264BT-DNQuzBru.js → dagre-KV5264BT-BfFz9a4k.js} +1 -1
  56. package/dist/esm/{diagram-5BDNPKRD-BuDsbwIH.js → diagram-5BDNPKRD-I9IS2ANw.js} +1 -1
  57. package/dist/esm/{diagram-G4DWMVQ6-Dqe6ehne.js → diagram-G4DWMVQ6-BXU7Dvs-.js} +1 -1
  58. package/dist/esm/{diagram-MMDJMWI5-DutUl44V.js → diagram-MMDJMWI5-Csk96FFg.js} +1 -1
  59. package/dist/esm/{diagram-TYMM5635-Dg8R_BVT.js → diagram-TYMM5635-DPvqrKRl.js} +1 -1
  60. package/dist/esm/{erDiagram-SMLLAGMA-Z9rnwC7z.js → erDiagram-SMLLAGMA-Dc1SOwcN.js} +1 -1
  61. package/dist/esm/{flowDiagram-DWJPFMVM-DlD4QYIw.js → flowDiagram-DWJPFMVM-Ck8eEuPh.js} +1 -1
  62. package/dist/esm/{ganttDiagram-T4ZO3ILL-DCyjcGXR.js → ganttDiagram-T4ZO3ILL-D5DV1RYK.js} +1 -1
  63. package/dist/esm/gitGraph-7Q5UKJZL-AWq1Wmi2.js +1 -0
  64. package/dist/esm/{gitGraphDiagram-UUTBAWPF-CdYpB5kl.js → gitGraphDiagram-UUTBAWPF-BWpwlfSt.js} +1 -1
  65. package/dist/esm/{graph-BuAvWT_r.js → graph-DcE5swO6.js} +1 -1
  66. package/dist/esm/helpers.js +1 -1
  67. package/dist/esm/{index-BoA3EjMr.js → index-33u6FCUW.js} +1 -1
  68. package/dist/esm/{index-DVFv6Eth.js → index-BVw40LAx.js} +1 -1
  69. package/dist/esm/index-TeLD_8PN.js +1 -0
  70. package/dist/esm/{index-CODLgwqm.js → index-o2jBRnrQ.js} +1 -1
  71. package/dist/esm/{index-Cj5SSv5l.js → index-tAJiDyYy.js} +1 -1
  72. package/dist/esm/info-OMHHGYJF-CDJfFYlp.js +1 -0
  73. package/dist/esm/{infoDiagram-42DDH7IO-Ce56qzjb.js → infoDiagram-42DDH7IO-aiwYT7Xb.js} +1 -1
  74. package/dist/esm/{ishikawaDiagram-UXIWVN3A-Cc0AgO_R.js → ishikawaDiagram-UXIWVN3A-adhn2Hxg.js} +1 -1
  75. package/dist/esm/{journeyDiagram-VCZTEJTY-BQAuB_0y.js → journeyDiagram-VCZTEJTY-w8F4Ngn_.js} +1 -1
  76. package/dist/esm/{kanban-definition-6JOO6SKY-CFfdKxrM.js → kanban-definition-6JOO6SKY-BUy-pXA5.js} +1 -1
  77. package/dist/esm/{layout-C9Uq7X58.js → layout-LXPx6gJv.js} +1 -1
  78. package/dist/esm/main.js +1 -1
  79. package/dist/esm/{mermaid-parser.core-B9BVFPAN.js → mermaid-parser.core-_V3e3eig.js} +1 -1
  80. package/dist/esm/{mermaid.core-Ch6a1N6x.js → mermaid.core-C89m9NSM.js} +1 -1
  81. package/dist/esm/{mindmap-definition-QFDTVHPH-BwtZAHVe.js → mindmap-definition-QFDTVHPH-DQor9UlS.js} +1 -1
  82. package/dist/esm/packet-4T2RLAQJ-DGgnF4xi.js +1 -0
  83. package/dist/esm/pie-ZZUOXDRM-jgrNXYlk.js +1 -0
  84. package/dist/esm/{pieDiagram-DEJITSTG-ChBY2XYY.js → pieDiagram-DEJITSTG-CFXV-DSu.js} +1 -1
  85. package/dist/esm/{quadrantDiagram-34T5L4WZ-CRGLfMnt.js → quadrantDiagram-34T5L4WZ-C5PWeOxe.js} +1 -1
  86. package/dist/esm/radar-PYXPWWZC-ZVxMZ3XM.js +1 -0
  87. package/dist/esm/{requirementDiagram-MS252O5E-qmbcV6Kf.js → requirementDiagram-MS252O5E-CAFUQ1SL.js} +1 -1
  88. package/dist/esm/{sankeyDiagram-XADWPNL6-DaL42Ehn.js → sankeyDiagram-XADWPNL6-D63_orrT.js} +1 -1
  89. package/dist/esm/{sequenceDiagram-FGHM5R23-D28F9BbZ.js → sequenceDiagram-FGHM5R23-DjI8jxRK.js} +1 -1
  90. package/dist/esm/server.js +1 -1
  91. package/dist/esm/{settings-BIQ7IqJl.js → settings-BONQQsPx.js} +1 -1
  92. package/dist/esm/settings.js +1 -1
  93. package/dist/esm/{stateDiagram-FHFEXIEX-RgoWlW1V.js → stateDiagram-FHFEXIEX-BeDx2Idm.js} +1 -1
  94. package/dist/esm/stateDiagram-v2-QKLJ7IA2-BSzNVn1D.js +1 -0
  95. package/dist/esm/{timeline-definition-GMOUNBTQ-BcOvpU4t.js → timeline-definition-GMOUNBTQ-BRHpffn4.js} +1 -1
  96. package/dist/esm/treeView-SZITEDCU-CMK4b3Hd.js +1 -0
  97. package/dist/esm/treemap-W4RFUUIX-DjdwA0Jd.js +1 -0
  98. package/dist/esm/{types-DI2OON_b.js → types-CsXckO56.js} +1 -1
  99. package/dist/esm/{vennDiagram-DHZGUBPP-CZrtDTUB.js → vennDiagram-DHZGUBPP-Cauja-PK.js} +1 -1
  100. package/dist/esm/wardley-RL74JXVD-DiOshmTl.js +1 -0
  101. package/dist/esm/{wardleyDiagram-NUSXRM2D-vlFiIB8t.js → wardleyDiagram-NUSXRM2D-CSY5_Vpk.js} +1 -1
  102. package/dist/esm/{websocket-CxbYBjHT.js → websocket-C4G3j9Rm.js} +1 -1
  103. package/dist/esm/{xychartDiagram-5P7HB3ND-DsCQdXVH.js → xychartDiagram-5P7HB3ND-Bkd1VEMW.js} +1 -1
  104. package/dist/module-types/src/components/molecules/TabsInline/TabsInlineButton.d.ts +1 -1
  105. package/dist/module-types/src/components/molecules/TabsInline/TabsInlineButtonLoader.d.ts +1 -1
  106. package/dist/module-types/src/components/molecules/TabsInline/utils.d.ts +3 -0
  107. package/dist/module-types/src/components/templates/UserViewLayout/ProfileSubmissions.d.ts +1 -1
  108. package/dist/module-types/src/components/templates/UserViewLayout/types.d.ts +1 -0
  109. package/package.json +2 -2
  110. package/src/styles/components/atoms/_tabs-inline.scss +12 -0
  111. package/dist/esm/ArrowForwardIcon-B6qJaqxW.js +0 -1
  112. package/dist/esm/ReplyIcon-CPGYEALJ.js +0 -1
  113. package/dist/esm/channel-B33C1-lx.js +0 -1
  114. package/dist/esm/classDiagram-6PBFFD2Q-BsMMZhRG.js +0 -1
  115. package/dist/esm/classDiagram-v2-HSJHXN6E-BsMMZhRG.js +0 -1
  116. package/dist/esm/clone-BDf6Yet-.js +0 -1
  117. package/dist/esm/gitGraph-7Q5UKJZL-B-fw09HA.js +0 -1
  118. package/dist/esm/index-rYUgz1LC.js +0 -1
  119. package/dist/esm/info-OMHHGYJF-fbv9Xw4D.js +0 -1
  120. package/dist/esm/packet-4T2RLAQJ-BGTrXSHu.js +0 -1
  121. package/dist/esm/pie-ZZUOXDRM-Dx3xGYkv.js +0 -1
  122. package/dist/esm/radar-PYXPWWZC-BYId5clz.js +0 -1
  123. package/dist/esm/stateDiagram-v2-QKLJ7IA2-DuyT41He.js +0 -1
  124. package/dist/esm/treeView-SZITEDCU-BjLEV1yZ.js +0 -1
  125. package/dist/esm/treemap-W4RFUUIX-Cuo2Y8dN.js +0 -1
  126. package/dist/esm/wardley-RL74JXVD-d0LkVT8_.js +0 -1
@@ -1,4 +1,4 @@
1
- import*as e from"react/jsx-runtime";import{jsxs as t,Fragment as i,jsx as s}from"react/jsx-runtime";import{ad as r,S as n,ag as a,v as o,C as l,u as c,c as p,ai as h,R as u,aj as d,ak as m,al as f,am as g,an as x,ao as y,ah as v,G as b,P as w,T as k,ap as E,i as S}from"./settings-BIQ7IqJl.js";import*as C from"react";import _,{useState as N,useRef as I,useCallback as A,useEffect as T,useMemo as P,use as L,createContext as V,forwardRef as R,useContext as O,createElement as j,useEffectEvent as D,useLayoutEffect as M,useImperativeHandle as F}from"react";import{RESIZE_DETECTOR_PROPS as B,CODE_EDIT0R_TAB_SIZES as U,CODE_EDIT0R_FONT_SIZES as J,CODE_EDITOR_PROGRAMMING_LANGUAGES as z,EMPTY_OBJECT as q}from"./constants.js";import{af as X,T as G,M as H,w as W,$,B as K,y as Q,S as Y,ag as Z,a as ee,b as te,g as ie,H as se,X as re,ab as ne,ah as ae,ai as oe,aj as le,ad as ce,r as pe,ak as he,al as ue,am as de,an as me,O as fe,e as ge,f as xe,P as ye,q as ve}from"./index-rYUgz1LC.js";import{n as be,c as we,d as ke}from"./commons-B_OozOv-.js";import"./enums.js";import{a as Ee,j as Se,s as Ce,q as _e,u as Ne}from"./websocket-CxbYBjHT.js";import{j as Ie,k as Ae,b as Te,D as Pe,F as Le,G as Ve,K as Re,f as Oe,a0 as je,a1 as De,P as Me,R as Fe,aa as Be,aD as Ue,S as Je,l as ze,a7 as qe}from"./LoaderLayer-D9O7WqFD.js";import"motion/react";import"react-dom";import"swr";import Xe from"./MdMathEditor-CNn23WdZ.js";import{A as Ge,S as He}from"./SettingsIcon-Dk27Vz1G.js";import{D as We,a as $e,F as Ke,P as Qe,M as Ye}from"./index-DVFv6Eth.js";import{j as Ze}from"./index-CODLgwqm.js";import{c as et}from"./clsx-BeLtu-UY.js";import{a as tt,o as it,z as st,n as rt,V as nt,s as at,q as ot,t as lt,w as ct,x as pt,y as ht,A as ut,B as dt,D as mt,E as ft,v as gt,u as xt,r as yt,d as vt,c as bt}from"./types-DI2OON_b.js";import{n as wt,f as kt,c as Et,a as St,b as Ct,d as _t,s as Nt,w as It,h as At,m as Tt,o as Pt,q as Lt,r as Vt,l as Rt}from"./index-BoA3EjMr.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-UGhpl5jF.js";import"./purify.es-DBOWJxv3.js";import"./floating-ui.dom-BKnkJW47.js";import"./throttle-BsCMUG1-.js";import"./memoize-CPUrcYQl.js";import"./toNumber-Bh_HTlSx.js";import"./isSymbol-CATEdeai.js";import"./viz-CFEjElvl.js";import"./mermaid.core-Ch6a1N6x.js";import"./string-LeDn2fkG.js";function Ot(e,t=16){if(e.length<=t)return e;const i=e.lastIndexOf("."),s=i>0?e.slice(i):"",r=t-s.length-1;return r>0?e.slice(0,r)+"…"+s:e.slice(0,t-1)+"…"}function jt({fileKey:e,name:r,folderPath:n,description:a,globalIndex:o,currentFileName:l,viewFiles:c,onChangeRef:p,setOpenFileName:h,setFileNameEdit:u,setFolderPathEdit:d,setDescriptionEdit:m,setFileNameDelete:f}){return s("div",{className:we("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?s(i,{children:t("div",{className:"jk-row gap nowrap space-between",children:[t("div",{className:"jk-row nowrap",children:[s(We,{letter:(o+1)%10+"",letterSize:12,size:"tiny"}),s("span",{"data-tooltip-id":"jk-tooltip","data-tooltip-content":r,style:{marginLeft:2,fontFamily:"monospace",letterSpacing:"-0.04em",whiteSpace:"nowrap"},children:Ot(r)})]}),t("div",{className:"jk-row gap display-on-hover-2 nowrap",children:[s(Te,{className:we({"cr-tx-ht-lt":e!==l}),size:"tiny",onClick:()=>{h(e),u(r),d(n),m(a)}}),s(Pe,{className:we({"cr-tx-ht-lt":e!==l}),size:"tiny",onClick:()=>f(e)})]})]})}):s("div",{className:"jk-row gap nowrap space-between",children:s("div",{className:"jk-row nowrap",children:s(We,{letter:(o+1)%10+"",letterSize:12,size:"tiny"})})})})}function Dt(e,t){return!!e.files.some(e=>e.key===t)||e.children.some(e=>"folder"===e.type&&Dt(e,t))}function Mt({node:e,depth:i,viewFiles:r,currentFileName:n,onChangeRef:a,setOpenFileName:o,setFileNameEdit:l,setFolderPathEdit:c,setDescriptionEdit:p,setFileNameDelete:h,globalIndexMap:u}){const[d,m]=N(!0),f=Dt(e,n),g=f||d;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(),f||m(e=>!e)},children:[s(g?$e:Ke,{size:"tiny"}),r&&s("span",{children:e.name}),r&&s(g?Le:Ve,{size:"tiny"})]}),g&&s("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?s(jt,{fileKey:e.data.key,name:e.data.name,folderPath:e.data.folderPath,description:e.data.description,globalIndex:u.get(e.data.key)??e.data.index,currentFileName:n,viewFiles:r,onChangeRef:a,setOpenFileName:o,setFileNameEdit:l,setFolderPathEdit:c,setDescriptionEdit:p,setFileNameDelete:h},e.data.key):s(Mt,{node:e.data,depth:i+1,viewFiles:r,currentFileName:n,onChangeRef:a,setOpenFileName:o,setFileNameEdit:l,setFolderPathEdit:c,setDescriptionEdit:p,setFileNameDelete:h,globalIndexMap:u},e.data.path))})]})}const Ft=e=>{const{fileTreePanelRef:r,files:n,currentFileName:a,onChangeRef:o,readOnly:l}=e,[c,p]=N(!1),[h,u]=N(""),[d,m]=N(""),[f,g]=N(""),[x,y]=N(""),[v,b]=N(""),w=()=>{o.current?.({fileNameEdited:[h,d.trim().replace(/\//g,"_"),be(f),x]}),u("")},k=Object.entries(n),E=[...k].sort(([,e],[,t])=>e.index-t.index),S=new Map(E.map(([e],t)=>[e,t])),C=function(e){const t=[],i=new Map,s=e=>{if(i.has(e))return i.get(e);const r=e.split("/").filter(Boolean),n={type:"folder",name:r[r.length-1]??e,path:e,children:[],files:[]};if(i.set(e,n),r.length<=1)t.push(n);else{const e="/"+r.slice(0,-1).join("/");s(e).children.push(n)}return n},r=[];for(const[t,i]of e){const e=i.folderPath,n=i.description??"";e&&"/"!==e&&""!==e?s(e.startsWith("/")?e:"/"+e).files.push({key:t,name:i.name,folderPath:e,index:i.index,description:n}):r.push({key:t,name:i.name,folderPath:"",index:i.index,description:n})}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))}(k),_={currentFileName:a,viewFiles:c,onChangeRef:o,setOpenFileName:u,setFileNameEdit:m,setFolderPathEdit:g,setDescriptionEdit:y,setFileNameDelete:b};return t(i,{children:[s(X,{primary:{label:s(G,{className:"tt-se",children:"delete"}),onClick:()=>{o.current?.({fileNameDeleted:v}),b("")}},title:s(G,{className:"tt-se",children:"warning"}),isOpen:!!v,onClose:()=>b(""),children:t("div",{className:"jk-col gap",children:[s(G,{className:"tt-se",children:"are you sure you want to delete the file?"}),s("div",{className:"jk-tag bc-ht-lt",children:v}),s(G,{className:"tt-se",children:"it can't be undone"})]})}),s(H,{isOpen:!!h,onClose:()=>u(""),children:t("div",{className:"jk-pg jk-col gap stretch",children:[s(W,{label:s(G,{className:"tt-se",children:"new name"}),labelPlacement:"top",value:d,onChange:m,onEnter:w,expand:!0}),s(W,{label:s(G,{className:"tt-se",children:"folder path"}),labelPlacement:"top",value:f,onChange:g,onEnter:w,expand:!0}),s($,{label:s(G,{className:"tt-se",children:"description"}),labelPlacement:"top",value:x,onChange:y,expand:!0}),t("div",{className:"jk-row gap right",children:[s(K,{type:"secondary",onClick:()=>u(""),children:s(G,{className:"tt-se",children:"cancel"})}),s(K,{onClick:w,children:s(G,{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:()=>p(!c),style:{paddingLeft:4},children:[s(c?Ie:Ae,{}),c&&s(G,{className:"tt-se",children:"files"})]}),s("div",{className:"jk-divider vertical tiny",style:{height:1}}),t("div",{className:"jk-col top stretch gap nowrap ow-ao",children:[s("div",{className:"jk-col stretch",children:C.map(e=>"file"===e.type?s(jt,{fileKey:e.key,name:e.name,folderPath:e.folderPath,description:e.description,globalIndex:S.get(e.key)??e.index,..._},e.key):s(Mt,{node:e,depth:0,globalIndexMap:S,..._},e.path))}),s("div",{className:"jk-row jk-pg-xsm-t border-top-highlight-light",children:s(K,{size:"tiny",icon:s(Ge,{size:"tiny"}),disabled:l,onClick:()=>o.current?.({newFileName:n[a]?.folderPath??""}),children:c&&s(G,{className:"tt-se",children:"new file"})})})]})]})]})};var Bt,Ut={exports:{}};
1
+ import*as e from"react/jsx-runtime";import{jsxs as t,Fragment as i,jsx as s}from"react/jsx-runtime";import{ad as r,S as n,ag as a,v as o,C as l,u as c,c as p,ai as h,R as u,aj as d,ak as m,al as f,am as g,an as x,ao as y,ah as v,G as b,P as w,T as k,ap as E,i as S}from"./settings-BONQQsPx.js";import*as C from"react";import _,{useState as N,useRef as I,useCallback as A,useEffect as T,useMemo as P,use as L,createContext as V,forwardRef as R,useContext as O,createElement as j,useEffectEvent as D,useLayoutEffect as M,useImperativeHandle as F}from"react";import{RESIZE_DETECTOR_PROPS as B,CODE_EDIT0R_TAB_SIZES as U,CODE_EDIT0R_FONT_SIZES as J,CODE_EDITOR_PROGRAMMING_LANGUAGES as z,EMPTY_OBJECT as q}from"./constants.js";import{af as X,T as G,M as H,w as W,$,B as K,y as Q,S as Y,ag as Z,a as ee,b as te,g as ie,H as se,X as re,ab as ne,ah as ae,ai as oe,aj as le,ad as ce,r as pe,ak as he,al as ue,am as de,an as me,O as fe,e as ge,f as xe,P as ye,q as ve}from"./index-TeLD_8PN.js";import{n as be,c as we,d as ke}from"./commons-D9Mh1s5L.js";import"./enums.js";import{a as Ee,j as Se,s as Ce,q as _e,u as Ne}from"./websocket-C4G3j9Rm.js";import{j as Ie,k as Ae,b as Te,D as Pe,F as Le,G as Ve,K as Re,f as Oe,a0 as je,a1 as De,P as Me,R as Fe,aa as Be,aD as Ue,S as Je,l as ze,a7 as qe}from"./LoaderLayer-CXFK-kAz.js";import"motion/react";import"react-dom";import"swr";import Xe from"./MdMathEditor-D0f1McYj.js";import{A as Ge,S as He}from"./SettingsIcon-BCDZw0HR.js";import{D as We,a as $e,F as Ke,P as Qe,M as Ye}from"./index-BVw40LAx.js";import{j as Ze}from"./index-o2jBRnrQ.js";import{c as et}from"./clsx-BeLtu-UY.js";import{a as tt,o as it,z as st,n as rt,V as nt,s as at,q as ot,t as lt,w as ct,x as pt,y as ht,A as ut,B as dt,D as mt,E as ft,v as gt,u as xt,r as yt,d as vt,c as bt}from"./types-CsXckO56.js";import{n as wt,f as kt,c as Et,a as St,b as Ct,d as _t,s as Nt,w as It,h as At,m as Tt,o as Pt,q as Lt,r as Vt,l as Rt}from"./index-33u6FCUW.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-UGhpl5jF.js";import"./purify.es-DBOWJxv3.js";import"./floating-ui.dom-BKnkJW47.js";import"./throttle-BsCMUG1-.js";import"./memoize-CPUrcYQl.js";import"./toNumber-Bh_HTlSx.js";import"./isSymbol-CATEdeai.js";import"./viz-CFEjElvl.js";import"./mermaid.core-C89m9NSM.js";import"./string-LeDn2fkG.js";function Ot(e,t=16){if(e.length<=t)return e;const i=e.lastIndexOf("."),s=i>0?e.slice(i):"",r=t-s.length-1;return r>0?e.slice(0,r)+"…"+s:e.slice(0,t-1)+"…"}function jt({fileKey:e,name:r,folderPath:n,description:a,globalIndex:o,currentFileName:l,viewFiles:c,onChangeRef:p,setOpenFileName:h,setFileNameEdit:u,setFolderPathEdit:d,setDescriptionEdit:m,setFileNameDelete:f}){return s("div",{className:we("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?s(i,{children:t("div",{className:"jk-row gap nowrap space-between",children:[t("div",{className:"jk-row nowrap",children:[s(We,{letter:(o+1)%10+"",letterSize:12,size:"tiny"}),s("span",{"data-tooltip-id":"jk-tooltip","data-tooltip-content":r,style:{marginLeft:2,fontFamily:"monospace",letterSpacing:"-0.04em",whiteSpace:"nowrap"},children:Ot(r)})]}),t("div",{className:"jk-row gap display-on-hover-2 nowrap",children:[s(Te,{className:we({"cr-tx-ht-lt":e!==l}),size:"tiny",onClick:()=>{h(e),u(r),d(n),m(a)}}),s(Pe,{className:we({"cr-tx-ht-lt":e!==l}),size:"tiny",onClick:()=>f(e)})]})]})}):s("div",{className:"jk-row gap nowrap space-between",children:s("div",{className:"jk-row nowrap",children:s(We,{letter:(o+1)%10+"",letterSize:12,size:"tiny"})})})})}function Dt(e,t){return!!e.files.some(e=>e.key===t)||e.children.some(e=>"folder"===e.type&&Dt(e,t))}function Mt({node:e,depth:i,viewFiles:r,currentFileName:n,onChangeRef:a,setOpenFileName:o,setFileNameEdit:l,setFolderPathEdit:c,setDescriptionEdit:p,setFileNameDelete:h,globalIndexMap:u}){const[d,m]=N(!0),f=Dt(e,n),g=f||d;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(),f||m(e=>!e)},children:[s(g?$e:Ke,{size:"tiny"}),r&&s("span",{children:e.name}),r&&s(g?Le:Ve,{size:"tiny"})]}),g&&s("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?s(jt,{fileKey:e.data.key,name:e.data.name,folderPath:e.data.folderPath,description:e.data.description,globalIndex:u.get(e.data.key)??e.data.index,currentFileName:n,viewFiles:r,onChangeRef:a,setOpenFileName:o,setFileNameEdit:l,setFolderPathEdit:c,setDescriptionEdit:p,setFileNameDelete:h},e.data.key):s(Mt,{node:e.data,depth:i+1,viewFiles:r,currentFileName:n,onChangeRef:a,setOpenFileName:o,setFileNameEdit:l,setFolderPathEdit:c,setDescriptionEdit:p,setFileNameDelete:h,globalIndexMap:u},e.data.path))})]})}const Ft=e=>{const{fileTreePanelRef:r,files:n,currentFileName:a,onChangeRef:o,readOnly:l}=e,[c,p]=N(!1),[h,u]=N(""),[d,m]=N(""),[f,g]=N(""),[x,y]=N(""),[v,b]=N(""),w=()=>{o.current?.({fileNameEdited:[h,d.trim().replace(/\//g,"_"),be(f),x]}),u("")},k=Object.entries(n),E=[...k].sort(([,e],[,t])=>e.index-t.index),S=new Map(E.map(([e],t)=>[e,t])),C=function(e){const t=[],i=new Map,s=e=>{if(i.has(e))return i.get(e);const r=e.split("/").filter(Boolean),n={type:"folder",name:r[r.length-1]??e,path:e,children:[],files:[]};if(i.set(e,n),r.length<=1)t.push(n);else{const e="/"+r.slice(0,-1).join("/");s(e).children.push(n)}return n},r=[];for(const[t,i]of e){const e=i.folderPath,n=i.description??"";e&&"/"!==e&&""!==e?s(e.startsWith("/")?e:"/"+e).files.push({key:t,name:i.name,folderPath:e,index:i.index,description:n}):r.push({key:t,name:i.name,folderPath:"",index:i.index,description:n})}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))}(k),_={currentFileName:a,viewFiles:c,onChangeRef:o,setOpenFileName:u,setFileNameEdit:m,setFolderPathEdit:g,setDescriptionEdit:y,setFileNameDelete:b};return t(i,{children:[s(X,{primary:{label:s(G,{className:"tt-se",children:"delete"}),onClick:()=>{o.current?.({fileNameDeleted:v}),b("")}},title:s(G,{className:"tt-se",children:"warning"}),isOpen:!!v,onClose:()=>b(""),children:t("div",{className:"jk-col gap",children:[s(G,{className:"tt-se",children:"are you sure you want to delete the file?"}),s("div",{className:"jk-tag bc-ht-lt",children:v}),s(G,{className:"tt-se",children:"it can't be undone"})]})}),s(H,{isOpen:!!h,onClose:()=>u(""),children:t("div",{className:"jk-pg jk-col gap stretch",children:[s(W,{label:s(G,{className:"tt-se",children:"new name"}),labelPlacement:"top",value:d,onChange:m,onEnter:w,expand:!0}),s(W,{label:s(G,{className:"tt-se",children:"folder path"}),labelPlacement:"top",value:f,onChange:g,onEnter:w,expand:!0}),s($,{label:s(G,{className:"tt-se",children:"description"}),labelPlacement:"top",value:x,onChange:y,expand:!0}),t("div",{className:"jk-row gap right",children:[s(K,{type:"secondary",onClick:()=>u(""),children:s(G,{className:"tt-se",children:"cancel"})}),s(K,{onClick:w,children:s(G,{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:()=>p(!c),style:{paddingLeft:4},children:[s(c?Ie:Ae,{}),c&&s(G,{className:"tt-se",children:"files"})]}),s("div",{className:"jk-divider vertical tiny",style:{height:1}}),t("div",{className:"jk-col top stretch gap nowrap ow-ao",children:[s("div",{className:"jk-col stretch",children:C.map(e=>"file"===e.type?s(jt,{fileKey:e.key,name:e.name,folderPath:e.folderPath,description:e.description,globalIndex:S.get(e.key)??e.index,..._},e.key):s(Mt,{node:e,depth:0,globalIndexMap:S,..._},e.path))}),s("div",{className:"jk-row jk-pg-xsm-t border-top-highlight-light",children:s(K,{size:"tiny",icon:s(Ge,{size:"tiny"}),disabled:l,onClick:()=>o.current?.({newFileName:n[a]?.folderPath??""}),children:c&&s(G,{className:"tt-se",children:"new file"})})})]})]})]})};var Bt,Ut={exports:{}};
2
2
  /*! dom-to-image-more 23-10-2025 */var Jt,zt=(Bt||(Bt=1,Jt=Ut,(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)}):(e=>new Promise(function(t){var i=h(e.toDataURL().split(",")[1]),s=i.length,r=new Uint8Array(s);for(let e=0;e<s;e++)r[e]=i.charCodeAt(e);t(new Blob([r],{type:"image/png"}))}))(e)},resolveUrl:function(e,t){var i=document.implementation.createHTMLDocument(),s=i.createElement("base"),r=(i.head.appendChild(s),i.createElement("a"));return i.body.appendChild(r),s.href=t,r.href=e,r.href},getAndEncode:function(e){let t=l.impl.urlCache.find(function(t){return t.url===e});return t||(t={url:e,promise:null},l.impl.urlCache.push(t)),null===t.promise&&(l.impl.options.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+(new Date).getTime()),t.promise=new Promise(function(t){let i=new XMLHttpRequest;function s(e){console.error(e),t("")}function r(){var r=l.impl.options.imagePlaceholder;r?t(r):s("Status:"+i.status+" while fetching resource: "+e)}if(i.timeout=l.impl.options.httpTimeout,i.onerror=r,i.ontimeout=r,i.onloadend=function(){if(i.readyState===XMLHttpRequest.DONE){var n=i.status;if(0===n&&e.toLowerCase().startsWith("file://")||200<=n&&n<=300&&null!==i.response){(n=i.response)instanceof Blob||s("Expected response to be a Blob, but got: "+typeof n);let e=new FileReader;e.onloadend=function(){var i=e.result;t(i)};try{e.readAsDataURL(n)}catch(n){s("Failed to read the response as Data URL: "+n.toString())}}else r()}},0<l.impl.options.useCredentialsFilters.length&&(l.impl.options.useCredentials=0<l.impl.options.useCredentialsFilters.filter(t=>0<=e.search(t)).length),l.impl.options.useCredentials&&(i.withCredentials=!0),l.impl.options.corsImg&&0===e.indexOf("http")&&-1===e.indexOf(window.location.origin)){var n="POST"===(l.impl.options.corsImg.method||"GET").toUpperCase()?"POST":"GET";i.open(n,(l.impl.options.corsImg.url||"").replace("#{cors}",e),!0);let t=!1,r=l.impl.options.corsImg.headers||{},a=(Object.keys(r).forEach(function(e){-1!==r[e].indexOf("application/json")&&(t=!0),i.setRequestHeader(e,r[e])}),(e=>{try{return JSON.parse(JSON.stringify(e))}catch(e){s("corsImg.data is missing or invalid:"+e.toString())}})(l.impl.options.corsImg.data||""));Object.keys(a).forEach(function(t){"string"==typeof a[t]&&(a[t]=a[t].replace("#{cors}",e))}),i.responseType="blob",i.send(t?JSON.stringify(a):a)}else i.open("GET",e,!0),i.responseType="blob",i.send()})),t.promise},uid:function(){return"u"+("0000"+(Math.random()*Math.pow(36,4)|0).toString(36)).slice(-4)+t++},asArray:function(e){var t=[],i=e.length;for(let s=0;s<i;s++)t.push(e[s]);return t},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 s=document.createElementNS("http://www.w3.org/2000/svg","svg"),r=new Image;l.impl.options.useCredentials&&(r.crossOrigin="use-credentials"),r.onload=function(){document.body.removeChild(s),window&&window.requestAnimationFrame?window.requestAnimationFrame(function(){t(r)}):t(r)},r.onerror=e=>{document.body.removeChild(s),i(e)},s.appendChild(r),r.src=e,document.body.appendChild(s)}):Promise.resolve()},width:function(e){var t=a(e,"width");if(!isNaN(t))return t;t=a(e,"border-left-width");var i=a(e,"border-right-width");return e.scrollWidth+t+i},height:function(e){var t=a(e,"height");if(!isNaN(t))return t;t=a(e,"border-top-width");var i=a(e,"border-bottom-width");return e.scrollHeight+t+i},getWindow:i,isElement:n,isElementHostForOpenShadowRoot:function(e){return n(e)&&null!==e.shadowRoot},isShadowRoot:s,isInShadowRoot:r,isHTMLElement:function(e){return e instanceof i(e).HTMLElement},isHTMLCanvasElement:function(e){return e instanceof i(e).HTMLCanvasElement},isHTMLInputElement:function(e){return e instanceof i(e).HTMLInputElement},isHTMLImageElement:function(e){return e instanceof i(e).HTMLImageElement},isHTMLLinkElement:function(e){return e instanceof i(e).HTMLLinkElement},isHTMLScriptElement:function(e){return e instanceof i(e).HTMLScriptElement},isHTMLStyleElement:function(e){return e instanceof i(e).HTMLStyleElement},isHTMLTextAreaElement:function(e){return e instanceof i(e).HTMLTextAreaElement},isShadowSlotElement:function(e){return r(e)&&e instanceof i(e).HTMLSlotElement},isSVGElement:function(e){return e instanceof i(e).SVGElement},isSVGRectElement:function(e){return e instanceof i(e).SVGRectElement},isDimensionMissing:function(e){return isNaN(e)||e<=0}};function i(t){return((t=t?t.ownerDocument:void 0)?t.defaultView:void 0)||window||e}function s(e){return e instanceof i(e).ShadowRoot}function r(e){return null!=e&&void 0!==e.getRootNode&&s(e.getRootNode())}function n(e){return e instanceof i(e).Element}function a(e,t){if(e.nodeType===c){let i=p(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){return i(e)?Promise.resolve(e).then(s).then(function(i){let s=Promise.resolve(e);return i.forEach(function(e){s=s.then(function(i){return n(i,e,t,r)})}),s}):Promise.resolve(e)},shouldProcess:i,impl:{readUrls:s,inline:n,urlAsRegex:r}};function i(t){return-1!==t.search(e)}function s(i){for(var s,r=[];null!==(s=e.exec(i));)r.push(s[2]);return r.filter(function(e){return!t.isDataUrl(e)})}function r(e){return new RegExp(`url\\((["']?)(${t.escape(e)})\\1\\)`,"gm")}function n(e,i,s,n){return Promise.resolve(i).then(function(e){return s?t.resolveUrl(e,s):e}).then(n||t.getAndEncode).then(function(t){var s=r(i);return e.replace(s,`url($1${t}$1)`)})}})(),s={resolveAll:function(){return r().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=[];return e.forEach(function(e){var s=Object.getPrototypeOf(e);if(Object.prototype.hasOwnProperty.call(s,"cssRules"))try{t.asArray(e.cssRules||[]).forEach(i.push.bind(i))}catch(s){console.error("domtoimage: Error while reading CSS rules from: "+e.href,s.toString())}}),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)},src:function(){return e.style.getPropertyValue("src")}}}}let n={inlineAll:function e(s){return t.isElement(s)?function(e){let t=["background","background-image"].map(function(t){let s=e.style.getPropertyValue(t),r=e.style.getPropertyPriority(t);return s?i.inlineAll(s).then(function(i){e.style.setProperty(t,i,r)}):Promise.resolve()});return Promise.all(t).then(function(){return e})}(s).then(function(){return t.isHTMLImageElement(s)?a(s).inline():Promise.all(t.asArray(s.childNodes).map(function(t){return e(t)}))}):Promise.resolve(s)},impl:{newImage:a}};function a(e){return{inline:function(i){return t.isDataUrl(e.src)?Promise.resolve():Promise.resolve(e.src).then(i||t.getAndEncode).then(function(t){return new Promise(function(i){e.onload=i,e.onerror=i,e.src=t})})}}}let o={copyDefaultStyles:!0,imagePlaceholder:void 0,cacheBust:!1,useCredentials:!1,useCredentialsFilters:[],httpTimeout:3e4,styleCaching:"strict",corsImg:void 0},l={toSvg:u,toPng:function(e,t){return d(e,t).then(function(e){return e.toDataURL()})},toJpeg:function(e,t){return d(e,t).then(function(e){return e.toDataURL("image/jpeg",(t?t.quality:void 0)||1)})},toBlob:function(e,i){return d(e,i).then(t.canvasToBlob)},toPixelData:function(e,i){return d(e,i).then(function(i){return i.getContext("2d").getImageData(0,0,t.width(e),t.height(e)).data})},toCanvas:d,impl:{fontFaces:s,images:n,util:t,inliner:i,urlCache:[],options:{},copyOptions:function(e){void 0===e.copyDefaultStyles?l.impl.options.copyDefaultStyles=o.copyDefaultStyles:l.impl.options.copyDefaultStyles=e.copyDefaultStyles,l.impl.options.imagePlaceholder=(void 0===e.imagePlaceholder?o:e).imagePlaceholder,l.impl.options.cacheBust=(void 0===e.cacheBust?o:e).cacheBust,l.impl.options.corsImg=(void 0===e.corsImg?o:e).corsImg,l.impl.options.useCredentials=(void 0===e.useCredentials?o:e).useCredentials,l.impl.options.useCredentialsFilters=(void 0===e.useCredentialsFilters?o:e).useCredentialsFilters,l.impl.options.httpTimeout=(void 0===e.httpTimeout?o:e).httpTimeout,l.impl.options.styleCaching=(void 0===e.styleCaching?o:e).styleCaching}}},c=(Jt.exports=l,(void 0===Node?void 0:Node.ELEMENT_NODE)||1),p=(void 0===e?void 0:e.getComputedStyle)||(void 0===window?void 0:window.getComputedStyle)||globalThis.getComputedStyle,h=(void 0===e?void 0:e.atob)||(void 0===window?void 0:window.atob)||globalThis.atob;function u(e,i){l.impl.util.getWindow(e);let s=(i=i||{},l.impl.copyOptions(i),[]);return Promise.resolve(e).then(function(e){if(e.nodeType===c)return e;var t=e,i=document.createElement("span");return t.replaceWith(i),i.append(e),s.push({child:t,wrapper:i}),i}).then(function(e){return function e(i,s,r,n){let a=s.filter;return i===m||t.isHTMLScriptElement(i)||t.isHTMLStyleElement(i)||t.isHTMLLinkElement(i)||null!==r&&a&&!a(i)?Promise.resolve():Promise.resolve(i).then(function(e){return t.isHTMLCanvasElement(e)?t.makeImage(e.toDataURL()):e.cloneNode(!1)}).then(function(e){return s.adjustClonedNode&&s.adjustClonedNode(i,e,!1),Promise.resolve(e)}).then(function(r){return function(i,r){let n=l(r),a=Promise.resolve();if(0!==n.length){let l=p(o(r));t.asArray(n).forEach(function(t){a=a.then(function(){return e(t,s,l).then(function(e){e&&i.appendChild(e)})})})}return a.then(function(){return i});function o(e){return t.isShadowRoot(e)?e.host:e}function l(e){if(t.isShadowSlotElement(e)){let t=e.assignedNodes();if(t&&0<t.length)return t}return e.childNodes}}(r,function(e){return t.isElementHostForOpenShadowRoot(e)?e.shadowRoot:e}(i))}).then(function(e){return s.adjustClonedNode&&s.adjustClonedNode(i,e,!0),Promise.resolve(e)}).then(function(e){return function(e,i){return!t.isElement(e)||t.isShadowSlotElement(i)?Promise.resolve(e):Promise.resolve().then(a).then(o).then(l).then(c).then(n).then(function(){return e});function n(){t.isHTMLImageElement(e)&&(e.removeAttribute("loading"),i.srcset||i.sizes)&&(e.removeAttribute("srcset"),e.removeAttribute("sizes"),e.src=i.currentSrc||i.src)}function a(){function t(e,t){t.font=e.font,t.fontFamily=e.fontFamily,t.fontFeatureSettings=e.fontFeatureSettings,t.fontKerning=e.fontKerning,t.fontSize=e.fontSize,t.fontStretch=e.fontStretch,t.fontStyle=e.fontStyle,t.fontVariant=e.fontVariant,t.fontVariantCaps=e.fontVariantCaps,t.fontVariantEastAsian=e.fontVariantEastAsian,t.fontVariantLigatures=e.fontVariantLigatures,t.fontVariantNumeric=e.fontVariantNumeric,t.fontVariationSettings=e.fontVariationSettings,t.fontWeight=e.fontWeight}function n(e,i){let n=p(e);n.cssText?(i.style.cssText=n.cssText,t(n,i.style)):(x(s,e,n,r,i),null===r&&(["inset-block","inset-block-start","inset-block-end"].forEach(e=>i.style.removeProperty(e)),["left","right","top","bottom"].forEach(e=>{i.style.getPropertyValue(e)&&i.style.setProperty(e,"0px")})))}n(i,e)}function o(){let s=t.uid();function r(r){let n=p(i,r),a=n.getPropertyValue("content");if(""!==a&&"none"!==a){let o=e.getAttribute("class")||"",l=(e.setAttribute("class",o+" "+s),document.createElement("style"));function c(){let e=`.${s}:`+r,i=(n.cssText?o:l)();return document.createTextNode(e+`{${i}}`);function o(){return`${n.cssText} content: ${a};`}function l(){return t.asArray(n).map(e).join("; ")+";";function e(e){return e+": "+n.getPropertyValue(e)+(n.getPropertyPriority(e)?" !important":"")}}}l.appendChild(c()),e.appendChild(l)}}[":before",":after"].forEach(function(e){r(e)})}function l(){t.isHTMLTextAreaElement(i)&&(e.innerHTML=i.value),t.isHTMLInputElement(i)&&e.setAttribute("value",i.value)}function c(){t.isSVGElement(e)&&(e.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.isSVGRectElement(e))&&["width","height"].forEach(function(t){let i=e.getAttribute(t);i&&e.style.setProperty(t,i)})}}(e,i)})}(e,i,null)}).then(i.disableEmbedFonts?Promise.resolve(e):f).then(i.disableInlineImages?Promise.resolve(e):g).then(function(e){i.bgcolor&&(e.style.backgroundColor=i.bgcolor),i.width&&(e.style.width=i.width+"px"),i.height&&(e.style.height=i.height+"px"),i.style&&Object.keys(i.style).forEach(function(t){e.style[t]=i.style[t]});let t=null;return"function"==typeof i.onclone&&(t=i.onclone(e)),Promise.resolve(t).then(function(){return e})}).then(function(s){let r=i.width||t.width(e),n=i.height||t.height(e);return Promise.resolve(s).then(function(e){return e.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(e)}).then(t.escapeXhtml).then(function(e){var i=(t.isDimensionMissing(r)?' width="100%"':` width="${r}"`)+(t.isDimensionMissing(n)?' height="100%"':` height="${n}"`);return`<svg xmlns="http://www.w3.org/2000/svg"${(t.isDimensionMissing(r)?"":` width="${r}"`)+(t.isDimensionMissing(n)?"":` height="${n}"`)}><foreignObject${i}>${e}</foreignObject></svg>`}).then(function(e){return"data:image/svg+xml;charset=utf-8,"+e})}).then(function(e){for(;0<s.length;){var t=s.pop();t.wrapper.replaceWith(t.child)}return e}).then(function(e){return l.impl.urlCache=[],m&&(document.body.removeChild(m),m=null),y&&clearTimeout(y),y=setTimeout(()=>{y=null,v={}},2e4),e})}function d(e,i){return u(e,i=i||{}).then(t.makeImage).then(function(s){var r="number"!=typeof i.scale?1:i.scale,n=((e,s)=>{let r=i.width||t.width(e),n=i.height||t.height(e);return t.isDimensionMissing(r)&&(r=t.isDimensionMissing(n)?300:2*n),t.isDimensionMissing(n)&&(n=r/2),(e=document.createElement("canvas")).width=r*s,e.height=n*s,i.bgcolor&&((s=e.getContext("2d")).fillStyle=i.bgcolor,s.fillRect(0,0,e.width,e.height)),e})(e,r),a=n.getContext("2d");return a.msImageSmoothingEnabled=!1,a.imageSmoothingEnabled=!1,s&&(a.scale(r,r),a.drawImage(s,0,0)),n})}let m=null;function f(e){return s.resolveAll().then(function(t){var i;return""!==t&&(i=document.createElement("style"),e.appendChild(i),i.appendChild(document.createTextNode(t))),e})}function g(e){return n.inlineAll(e).then(function(){return e})}function x(e,i,s,r,n){let a=l.impl.options.copyDefaultStyles?((e,i)=>{var s,r=(t=>("relaxed"!==e.styleCaching?t:t.filter((e,t,i)=>0===t||t===i.length-1)).join(">"))(i=(e=>{var t=[];do{if(e.nodeType===c){var i=e.tagName;if(t.push(i),b.includes(i))break}}while(e=e.parentNode);return t})(i));if(v[r])return v[r];i=((e,t)=>{let i=e.body;do{var s=t.pop();s=e.createElement(s),i.appendChild(s),i=s}while(0<t.length);return i.textContent="​",i})((s=(()=>{if(m)return m.contentWindow;i=document.characterSet||"UTF-8",e=(e=document.doctype)?(`<!DOCTYPE ${l(e.name)} ${l(e.publicId)} `+l(e.systemId)).trim()+">":"",(m=document.createElement("iframe")).id="domtoimage-sandbox-"+t.uid(),m.style.top="-9999px",m.style.visibility="hidden",m.style.position="fixed",document.body.appendChild(m);var e,i,s=m,r="domtoimage-sandbox";try{return s.contentWindow.document.write(e+`<html><head><meta charset='${i}'><title>${r}</title></head><body></body></html>`),s.contentWindow}catch(e){}var n=document.createElement("meta");n.setAttribute("charset",i);try{var a=document.implementation.createHTMLDocument(r),o=(a.head.appendChild(n),e+a.documentElement.outerHTML);return s.setAttribute("srcdoc",o),s.contentWindow}catch(e){}return s.contentDocument.head.appendChild(n),s.contentDocument.title=r,s.contentWindow;function l(e){var t;return e?((t=document.createElement("div")).innerText=e,t.innerHTML):""}})()).document,i),s=((e,i)=>{let s={},r=e.getComputedStyle(i);return t.asArray(r).forEach(function(e){s[e]="width"===e||"height"===e?"auto":r.getPropertyValue(e)}),s})(s,i);var n=i;do{var a=n.parentElement;null!==a&&a.removeChild(n),n=a}while(n&&"BODY"!==n.tagName);return v[r]=s})(e,i):{},o=n.style;t.asArray(s).forEach(function(t){var n,l,c,p;e.filterStyles&&!e.filterStyles(i,t)||(l=s.getPropertyValue(t),c=a[t],n=r?r.getPropertyValue(t):void 0,o.getPropertyValue(t))||(l!==c||r&&l!==n)&&(c=s.getPropertyPriority(t),n=o,p=0<=["background-clip"].indexOf(t),c?(n.setProperty(t,l,c),p&&n.setProperty("-webkit-"+t,l,c)):(n.setProperty(t,l),p&&n.setProperty("-webkit-"+t,l)))})}let y=null,v={},b=["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"]})(Ut.exports)),Ut.exports),qt=Q(zt);const Xt=e=>{const{onRunStart:t,id:i,onChangeRef:u,isRunning:d,timeLimit:m,memoryLimit:f,withLabels:g,files:x,currentFileName:y,testCases:v,setRunState:b}=e,{addErrorNotification:w}=Y(),k=I(""),E=x[y],S={event:r.SUBSCRIBE_CODE_RUN_STATUS,runId:i};Z(S,e=>{if(h(e)){if(i!==k.current)return;const t=(t,i,s,r)=>{u.current?.({onTestCasesChange:n=>{const a={...n};for(const o in a)n[o]?.messageTimestamp&&n[o].messageTimestamp>e.messageTimestamp||a[o]&&(a[o]={...a[o],status:t,err:i,out:s,log:r,messageTimestamp:e.messageTimestamp});return a}})},s=e.status||a.NONE,r=e?.log?.inputKey;switch(s){case a.RECEIVED:case a.FAILED:case a.COMPILING:case a.COMPILED:case a.COMPILATION_ERROR:t(s,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 n={...i[r],status:s,out:e.log?.out||"",log:e.log?.log||"",err:e.log?.err||"",messageTimestamp:e.messageTimestamp},a=t[n.key];return a&&a.messageTimestamp>n.messageTimestamp?t:{...t,[n.key]:n}}return t}})}switch(s){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:s})}},()=>!!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(n.LOADING),i(a.RECEIVED);try{const s=o();t(s),k.current=s;const{url:r,...h}=Ze.API_V2.code.run({body:{runId:s,files:[...Object.values(x).map(({language:e,source:t,name:i,active:s})=>({language:e,source:t,fullFileName:i,isInput:!1,isEntryPoint:s??!1,toCompile:s??!1})),...Object.values(v).map(e=>({fullFileName:`${e.key}.in`,language:l.TEXT,source:e.in,isInput:!0,isEntryPoint:!1,toCompile:!1}))],timeLimit:m,memoryLimit:f,connectionId:""}}),u=c(await Ee(r,h));u?.success&&u?.content?.runId?e(n.SUCCESS):(w(u?.message),t(""),k.current="",i(a.NONE),p("run code request failed",{request:u}),e(n.ERROR))}catch(t){p("error on run code",{error:t}),i(a.NONE),e(n.ERROR)}},_=ee(C),N=A(e=>{if(!e.shiftKey&&!e.altKey&&"Enter"===e.key)return e.preventDefault(),e.stopPropagation(),void(P.current&&_.current(P.current))},[_]);te(N);const P=I(void 0);return T(()=>{d?P.current?.(n.LOADING):P.current?.(n.NONE)},[d]),s(ie,{"data-tooltip-id":"jk-tooltip","data-tooltip-content":g?"(Ctrl+Enter / ⌘+Enter)":"run (Ctrl+Enter / ⌘+Enter)",icon:s(Qe,{size:"tiny"}),onClick:C,setLoaderStatusRef:e=>P.current=e,disabled:!E,children:g&&s(G,{className:"tt-se tx-t",children:"run"})})},Gt=e=>{const{onChangeRef:r,setShowSettings:n,leftOptions:a,centerOptions:o,rightOptions:c,onRunStart:p,expanded:h,setExpanded:d,headerRef:m,headerWidthContainer:f,files:g,currentFileName:x,runner:y,setRunState:v,languages:b,readOnly:w,withoutRunCodeButton:k}=e,{addQuietNotification:E}=Y(),{width:S=0,ref:C}=se(B),{width:_=0,ref:N}=se(B),{source:I="",language:T=l.TEXT}=g[x]??{},P=A(()=>{const e=g[x];e?.source&&e?.name&&(ke(e.source,e.name),E(s(G,{className:"tt-se",children:"downloaded"})))},[E,x,g]),L=async()=>{const e=document.querySelector(".code-viewer-to-print");if(e)try{return await qt.toBlob(e)}catch(e){console.error("Error al capturar imagen:",e)}},V=A(async()=>{const e=g[x];if(e?.source&&e?.name){const t=await L();t&&(ke(t,`${e.name}.png`),E(s(G,{className:"tt-se",children:"downloaded"})))}},[E,x,g]),R=A(async()=>{const e=g[x];if(e?.source)try{await navigator.clipboard.writeText(e.source),E(s(G,{className:"tt-se",children:"copied"}))}catch(e){console.error("Failed to copy:",e)}},[E,x,g]),O=A(async()=>{try{const e=await L();e&&(await navigator.clipboard.write([new ClipboardItem({"image/png":e})]),E(s(G,{className:"tt-se",children:"copied"})))}catch(e){console.error("Failed to copy image:",e)}},[E]),j=A(e=>{if(navigator.platform.toUpperCase().includes("MAC")?e.metaKey:e.ctrlKey)return e.shiftKey&&!e.altKey&&"KeyS"===e.code?(e.preventDefault(),void P()):!e.shiftKey&&e.altKey&&"KeyS"===e.code?(e.preventDefault(),void V()):e.shiftKey&&!e.altKey&&"KeyC"===e.code?(e.preventDefault(),void R()):void(!e.shiftKey&&e.altKey&&"KeyC"===e.code&&(e.preventDefault(),O()))},[P,V,R,O]);te(j);const D=!k&&u.includes(T),M=f>(y?620:570),F=f-S-_;return t("div",{className:"options-header-content jk-row jk-pg-xsm",ref:m,children:[t("div",{className:we("cr-tx-ht jk-row gap left"),ref:C,children:[w||1===b.length?s("div",{className:"jk-tag bc-io",children:(b.find(e=>e.value===T)?.label||T)+""}):s(re,{className:"languages-selector tx-s",options:b.map(e=>({value:e.value,label:e.label||e.value})),selectedOption:{value:T,label:b.find(e=>e.value===T)?.label||T},onChange:({value:e})=>r?.current?.({language:e})}),D&&s(Xt,{...y,onRunStart:p,withLabels:M,files:g,currentFileName:x,onChangeRef:r,setRunState:v}),s("div",{className:"code-viewer-to-print bc-sf-md jk-pg jk-br-ie",children:s(ne,{code:I,language:T})}),s(re,{options:[{value:"copy-text",label:t(i,{children:[s(G,{className:"tt-se tx-t",children:"copy as text"})," ",s("span",{className:"fw-lr tx-t",children:"(Ctrl+Shift+C / ⌘+Shift+C)"})]})},{value:"copy-png",label:t(i,{children:[s(G,{className:"tt-se tx-t",children:"copy as png"})," ",s("span",{className:"fw-lr tx-t",children:"(Ctrl+Alt+C / ⌘+Option+C)"})]})}],disabled:!I,selectedOption:{value:"",label:M?t(i,{children:[s(Re,{size:"tiny"}),s(G,{className:"tt-se tx-t ws-np",children:"copy"})]}):s(Re,{size:"tiny"})},style:{width:"auto"},onChange:async({value:e})=>{if(I)switch(e){case"copy-text":R();break;case"copy-png":O()}}}),s(re,{options:[{value:"download-text",label:t(i,{children:[s(G,{className:"tt-se tx-t",children:"download as file"})," ",s("span",{className:"fw-lr tx-t",children:"(Ctrl+Shift+S / ⌘+Shift+S)"})]})},{value:"download-png",label:t(i,{children:[s(G,{className:"tt-se tx-t",children:"download as png"})," ",s("span",{className:"fw-lr tx-t",children:"(Ctrl+Alt+S / ⌘+Option+S)"})]})}],disabled:!I,selectedOption:{value:"",label:M?t(i,{children:[s(Oe,{size:"tiny"}),s(G,{className:"tt-se tx-t ws-np",children:"download"})]}):s(Oe,{size:"tiny"})},style:{width:"auto"},onChange:async({value:e})=>{if(I)switch(e){case"download-text":P();break;case"download-png":V();break;case"copy-text":R();break;case"copy-png":O()}}}),a({withLabels:M})]}),s("div",{className:"jk-row flex-1",style:{width:F},children:o({widthContainer:F,withLabels:M})}),t("div",{className:we("jk-row gap cr-tx-ht"),ref:N,children:[c({withLabels:M}),s(K,{"data-tooltip-id":"jk-tooltip","data-tooltip-content":M?"":"settings","data-tooltip-place":"bottom-end",type:"secondary",onClick:()=>n(!0),icon:s(He,{size:"tiny"}),children:M&&s(G,{className:"tt-se tx-t",children:"settings"})}),null!==h&&s(K,{"data-tooltip-id":"jk-tooltip","data-tooltip-content":M?"":h?"back":"expand","data-tooltip-place":"bottom-end",size:"small",type:"secondary",onClick:()=>d(e=>!e),icon:s(h?je:De,{}),children:M&&s(G,{className:"tt-se",children:h?"back":"expand"})})]})]})},Ht=({onChange:e,tabSize:i,fontSize:r,...n})=>s(H,{className:"jk-pg",...n,children:t("div",{className:"jk-col stretch gap jk-pg-sm-tb",children:[s("h3",{children:s(G,{className:"tt-se",children:"code editor settings"})}),t("div",{className:"jk-row left gap",children:[t("label",{className:"tt-se",children:[s(G,{children:"choose your tab size"}),": "]}),s(re,{options:U.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:[s(G,{children:"choose your font size"}),": "]}),s(re,{options:J.map(e=>({value:e,label:e+""})),selectedOption:{value:r},onChange:({value:t})=>e?.({fontSize:t})})]})]})}),Wt=e=>{const{preferredTheme:i,language:r,readOnly:n,source:a,tabSize:o,fontSize:l,languages:c,onlyFirstPane:p,triggerFocus:h,setExpanded:u,files:d,currentFileName:m,leftButtons:f,centerButtons:g,rightButtons:x,onChangeRef:y,runner:v,expanded:b,expandPosition:w,withoutRunCodeButton:k}=e,[E,S]=N({id:"",running:!1}),C=A(e=>{y.current?.({...e,isRunning:!1}),S(e=>({...e,running:!1}))},[y]),{width:_=0,height:I=0,ref:T}=se(B),L=P(()=>({...v,id:E.id,isRunning:E.running}),[v,E]),[V,R]=N(!1);return t("div",{className:we("jk-col nowrap left stretch ht-100",{"wh-100":!!p}),children:[s(Ht,{isOpen:V,onClose:()=>R(!1),onChange:y.current,tabSize:o,fontSize:l}),s(Gt,{headerRef:T,headerWidthContainer:_,languages:c,setRunState:S,runner:L,leftOptions:({withLabels:e})=>f?.({runner:L,withLabels:e,files:d,currentFileName:m}),centerOptions:({widthContainer:e,withLabels:t})=>g?.({runner:L,widthContainer:e,withLabels:t,files:d,currentFileName:m}),rightOptions:({withLabels:e})=>x?.({runner:L,withLabels:e,files:d,currentFileName:m}),setShowSettings:R,onRunStart:e=>{S({id:e,running:!1})},onChangeRef:y,expanded:w?b:null,setExpanded:u,readOnly:!!n,files:d,currentFileName:m,withoutRunCodeButton:k}),s("div",{className:"ow-ao",style:{height:`calc(100% - ${I}px)`},children:s(ae,{theme:i,onChange:C,language:r,readOnly:n,source:a,tabSize:o,fontSize:l,triggerFocus:h})})]})},$t=["md","markdown","mdown","mkdn","mkd","mdwn","mkdown","ron"].map(function(e){return"."+e});function Kt(e,t){const i=(s=e,Boolean(s&&"object"==typeof s&&"message"in s&&"messages"in s)?e:new tt(e));var s;const{format:r,...n}=t||{};return{file:i,options:{format:"md"===r||"mdx"===r?r:i.extname&&(n.mdExtensions||$t).includes(i.extname)?"md":"mdx",...n}}}class Qt{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,s){e&&t&&(null!=i?e[t][i]=s:e[t]=s)}remove(e,t,i){e&&t&&(null!=i?e[t].splice(i,1):delete e[t])}}class Yt extends Qt{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,s){if(e){if(this.enter){const r=this.should_skip,n=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,s),this.replacement&&(e=this.replacement,this.replace(t,i,s,e)),this.should_remove&&this.remove(t,i,s);const o=this.should_skip,l=this.should_remove;if(this.should_skip=r,this.should_remove=n,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 s=i[t];Zt(s)&&(this.visit(s,e,r,t)||t--)}}else Zt(t)&&this.visit(t,e,r,null)}if(this.leave){const r=this.replacement,n=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,e,t,i,s),this.replacement&&(e=this.replacement,this.replace(t,i,s,e)),this.should_remove&&this.remove(t,i,s);const a=this.should_remove;if(this.replacement=r,this.should_remove=n,a)return null}}return e}}function Zt(e){return null!==e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type}function ei(e,{enter:t,leave:i}){return new Yt(t,i).visit(e,null)}const ti=/@(jsx|jsxFrag|jsxImportSource|jsxRuntime)\s+(\S+)/g;function ii(e){let t;if(e.value)if("JSXExpressionContainer"===e.value.type){const i=e.value.expression;it("JSXEmptyExpression"!==i.type),t=i}else{const i=e.value;it("JSXElement"!==i.type&&"JSXFragment"!==i.type),t=i,delete t.raw}else t={type:"Literal",value:!0};const i={type:"Property",key:si(e.name),value:t,kind:"init",method:!1,shorthand:!1,computed:!1};return ni(e,i),i}function si(e){let t;if("JSXMemberExpression"===e.type){const i=si(e.property);t={type:"MemberExpression",object:si(e.object),property:i,computed:"Literal"===i.type,optional:!1}}else t="JSXNamespacedName"===e.type?{type:"Literal",value:e.namespace.name+":"+e.name.name}:wt(e.name)?{type:"Identifier",name:e.name}:{type:"Literal",value:e.name};return ni(e,t),t}function ri(e){const t=e.split(".");let i,s=-1;for(;++s<t.length;){const e=wt(t[s])?{type:"Identifier",name:t[s]}:{type:"Literal",value:t[s]};i=i?{type:"MemberExpression",object:i,property:e,computed:Boolean(s&&"Literal"===e.type),optional:!1}:e}return i}function ni(e,t){const i=["start","end","loc","range","comments"];let s=-1;for(;++s<i.length;){const r=i[s];r in e&&(t[r]=e[r])}}function ai(e){return function(t,i){!function(e,t){const i=t||{};let s="automatic"===i.runtime;const r={},n={};ei(e,{enter(e){if("Program"===e.type){const t=e.comments||[];let i=-1;for(;++i<t.length;){ti.lastIndex=0;let e=ti.exec(t[i].value);for(;e;)r[e[1]]=e[2],e=ti.exec(t[i].value)}if(r.jsxRuntime)if("automatic"===r.jsxRuntime){if(s=!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(s=!1,r.jsxImportSource)throw new Error("Unexpected `@jsxImportSource` w/ classic runtime")}}},leave(e){if("Program"===e.type){const t=[];if(n.fragment&&t.push({type:"ImportSpecifier",imported:{type:"Identifier",name:"Fragment"},local:{type:"Identifier",name:"_Fragment"}}),n.jsx&&t.push({type:"ImportSpecifier",imported:{type:"Identifier",name:"jsx"},local:{type:"Identifier",name:"_jsx"}}),n.jsxs&&t.push({type:"ImportSpecifier",imported:{type:"Identifier",name:"jsxs"},local:{type:"Identifier",name:"_jsxs"}}),n.jsxDEV&&t.push({type:"ImportSpecifier",imported:{type:"Identifier",name:"jsxDEV"},local:{type:"Identifier",name:"_jsxDEV"}}),t.length>0){let s=0;for(;s<e.body.length;){const t=e.body[s];if(!("directive"in t)||!t.directive)break;s++}e.body.splice(s,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 s={type:"Literal",value:e};ni(i,s),t.push(s)}}else it("JSXElement"!==i.type&&"JSXFragment"!==i.type&&"JSXSpreadChild"!==i.type),t.push(i)}const l=[];let c,p,h=[];if("JSXElement"===e.type){if(a=si(e.openingElement.name),"Identifier"===a.type&&/^[a-z]/.test(a.name)){const e={type:"Literal",value:a.name};ni(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=ii(e);if(s&&"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;it("AssignmentPattern"!==e.type&&"ArrayPattern"!==e.type&&"ObjectPattern"!==e.type&&"RestElement"!==e.type),c=e}else l.push(i)}}}else s?(n.fragment=!0,a={type:"Identifier",name:"_Fragment"}):a=ri(r.jsxFrag||i.pragmaFrag||"React.Fragment");if(s?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}):h=t,s){h.push({type:"ObjectExpression",properties:l}),c?h.push(c):i.development&&h.push({type:"Identifier",name:"undefined"});const s=t.length>1;if(i.development){n.jsxDEV=!0,p={type:"Identifier",name:"_jsxDEV"},h.push({type:"Literal",value:s});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}}),h.push(t,{type:"ThisExpression"})}else s?(n.jsxs=!0,p={type:"Identifier",name:"_jsxs"}):(n.jsx=!0,p={type:"Identifier",name:"_jsx"})}else l.length>0?h.unshift({type:"ObjectExpression",properties:l}):h.length>0&&h.unshift({type:"Literal",value:null}),p=ri(r.jsx||i.pragma||"React.createElement");h.unshift(a);const u={type:"CallExpression",callee:p,arguments:h,optional:!1};ni(e,u),this.replace(u)}})}(t,{filePath:i.history[0],...e})}}var oi,li,ci={exports:{}};var pi,hi,ui={exports:{}};function di(){return pi||(pi=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],s="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",r="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",n={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+"]"),p=new RegExp("["+r+s+"]");function h(e,t){for(var i=65536,s=0;s<t.length;s+=2){if((i+=t[s])>e)return!1;if((i+=t[s+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&&h(e,i)))}function d(e,s){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&p.test(String.fromCharCode(e)):!1!==s&&(h(e,i)||h(e,t)))))}var m=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 f(e,t){return new m(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 m(e,t)}var b={num:new m("num",x),regexp:new m("regexp",x),string:new m("string",x),name:new m("name",x),privateId:new m("privateId",x),eof:new m("eof"),bracketL:new m("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new m("]"),braceL:new m("{",{beforeExpr:!0,startsExpr:!0}),braceR:new m("}"),parenL:new m("(",{beforeExpr:!0,startsExpr:!0}),parenR:new m(")"),comma:new m(",",g),semi:new m(";",g),colon:new m(":",g),dot:new m("."),question:new m("?",g),questionDot:new m("?."),arrow:new m("=>",g),template:new m("template"),invalidTemplate:new m("invalidTemplate"),ellipsis:new m("...",g),backQuote:new m("`",x),dollarBraceL:new m("${",{beforeExpr:!0,startsExpr:!0}),eq:new m("=",{beforeExpr:!0,isAssign:!0}),assign:new m("_=",{beforeExpr:!0,isAssign:!0}),incDec:new m("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new m("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:f("||",1),logicalAND:f("&&",2),bitwiseOR:f("|",3),bitwiseXOR:f("^",4),bitwiseAND:f("&",5),equality:f("==/!=/===/!==",6),relational:f("</>/<=/>=",7),bitShift:f("<</>>/>>>",8),plusMin:new m("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:f("%",10),star:f("*",10),slash:f("/",10),starstar:new m("**",{beforeExpr:!0}),coalesce:f("??",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 s=t;s<i;s++){var r=e.charCodeAt(s);if(E(r))return s<i-1&&13===r&&10===e.charCodeAt(s+1)?s+2:s+1}return-1}var C=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,_=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,N=Object.prototype,I=N.hasOwnProperty,A=N.toString,T=Object.hasOwn||function(e,t){return I.call(e,t)},P=Array.isArray||function(e){return"[object Array]"===A.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,s=0;;){var r=S(e,s,t);if(r<0)return new j(i,t-s);++i,s=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 s=t.onToken;t.onToken=function(e){return s.push(e)}}if(P(t.onComment)&&(t.onComment=J(t,t.onComment)),"commonjs"===t.sourceType&&t.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return t}function J(e,t){return function(i,s,r,n,a,o){var l={type:i?"Block":"Line",value:s,start:r,end:n};e.locations&&(l.loc=new D(this,a,o)),e.ranges&&(l.range=[r,n]),t.push(l)}}var z=1,q=2,X=4,G=8,H=16,W=32,$=64,K=128,Q=256,Y=512,Z=1024,ee=z|q|Q;function te(e,t){return q|(e?X:0)|(t?G:0)}var ie=0,se=1,re=2,ne=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 s="";!0!==e.allowReserved&&(s=n[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(s+=" await")),this.reservedWords=V(s);var r=(s?s+" ":"")+n.strict;this.reservedWordsStrict=V(r),this.reservedWordsStrictBind=V(r+" "+n.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:z),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&G)>0},ce.inAsync.get=function(){return(this.currentVarScope().flags&X)>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&X)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},ce.allowReturn.get=function(){return!!this.inFunction||!!(this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&z)},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&z)},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,s=0;s<e.length;s++)i=e[s](i);return i},le.parse=function(e,t){return new this(t,e).parse()},le.parseExpressionAt=function(e,t,i){var s=new this(i,e,t);return s.nextToken(),s.parseExpression()},le.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(le.prototype,ce);var pe=le.prototype,he=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;pe.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){_.lastIndex=e,e+=_.exec(this.input)[0].length;var t=he.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){_.lastIndex=e+t[0].length;var i=_.exec(this.input),s=i.index+i[0].length,r=this.input.charAt(s);return";"===r||"}"===r||w.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||"!"===r&&"="===this.input.charAt(s+1))}e+=t[0].length,_.lastIndex=e,e+=_.exec(this.input)[0].length,";"===this.input[e]&&e++}},pe.eat=function(e){return this.type===e&&(this.next(),!0)},pe.isContextual=function(e){return this.type===b.name&&this.value===e&&!this.containsEsc},pe.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},pe.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},pe.canInsertSemicolon=function(){return this.type===b.eof||this.type===b.braceR||w.test(this.input.slice(this.lastTokEnd,this.start))},pe.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},pe.semicolon=function(){this.eat(b.semi)||this.insertSemicolon()||this.unexpected()},pe.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},pe.expect=function(e){this.eat(e)||this.unexpected()},pe.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};pe.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")}},pe.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,s=e.doubleProto;if(!t)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")},pe.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")},pe.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 s=0,r=Object.keys(this.undefinedExports);s<r.length;s+=1){var n=r[s];this.raiseRecoverable(this.undefinedExports[n].start,"Export '"+n+"' 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 me={kind:"loop"},fe={kind:"switch"};de.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;_.lastIndex=this.pos;var t=_.exec(this.input),i=this.pos+t[0].length,s=this.fullCharCodeAt(i);if(91===s||92===s)return!0;if(e)return!1;if(123===s)return!0;if(u(s)){var r=i;do{i+=s<=65535?1:2}while(d(s=this.fullCharCodeAt(i)));if(92===s)return!0;var n=this.input.slice(r,i);if(!l.test(n))return!0}return!1},de.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;_.lastIndex=this.pos;var e,t=_.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;_.lastIndex=this.pos;var i=_.exec(this.input),s=this.pos+i[0].length;if(w.test(this.input.slice(this.pos,s)))return!1;if(e){var r,n=s+5;if("using"!==this.input.slice(s,n)||n===this.input.length||d(r=this.fullCharCodeAt(n))||92===r)return!1;_.lastIndex=n;var a=_.exec(this.input);if(s=n+a[0].length,a&&w.test(this.input.slice(n,s)))return!1}var o=this.fullCharCodeAt(s);if(!u(o)&&92!==o)return!1;var c=s;do{s+=o<=65535?1:2}while(d(o=this.fullCharCodeAt(s)));if(92===o)return!0;var p=this.input.slice(c,s);return!(l.test(p)||t&&"of"===p)},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 s,r=this.type,n=this.startNode();switch(this.isLet(e)&&(r=b._var,s="let"),r){case b._break:case b._continue:return this.parseBreakContinueStatement(n,r.keyword);case b._debugger:return this.parseDebuggerStatement(n);case b._do:return this.parseDoStatement(n);case b._for:return this.parseForStatement(n);case b._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(n,!1,!e);case b._class:return e&&this.unexpected(),this.parseClass(n,!0);case b._if:return this.parseIfStatement(n);case b._return:return this.parseReturnStatement(n);case b._switch:return this.parseSwitchStatement(n);case b._throw:return this.parseThrowStatement(n);case b._try:return this.parseTryStatement(n);case b._const:case b._var:return s=s||this.value,e&&"var"!==s&&this.unexpected(),this.parseVarStatement(n,s);case b._while:return this.parseWhileStatement(n);case b._with:return this.parseWithStatement(n);case b.braceL:return this.parseBlock(!0,n);case b.semi:return this.parseEmptyStatement(n);case b._export:case b._import:if(this.options.ecmaVersion>10&&r===b._import){_.lastIndex=this.pos;var a=_.exec(this.input),o=this.pos+a[0].length,l=this.input.charCodeAt(o);if(40===l||46===l)return this.parseExpressionStatement(n,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(n):this.parseExport(n,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(n,!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(n,!1,c),this.semicolon(),this.finishNode(n,"VariableDeclaration");var p=this.value,h=this.parseExpression();return r===b.name&&"Identifier"===h.type&&this.eat(b.colon)?this.parseLabeledStatement(n,p,h,e):this.parseExpressionStatement(n,h)}},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 s=0;s<this.labels.length;++s){var r=this.labels[s];if(null==e.label||r.name===e.label.name){if(null!=r.kind&&(i||"loop"===r.kind))break;if(e.label&&i)break}}return s===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(me),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(me),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 s=this.startNode(),r=i?"let":this.value;return this.next(),this.parseVar(s,!0,r),this.finishNode(s,"VariableDeclaration"),this.parseForAfterInit(e,s,t)}var n=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,p=new ue,h=this.start,u=t>-1?this.parseExprSubscripts(p,"await"):this.parseExpression(!0,p);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!==h||c||"Identifier"!==u.type||"async"!==u.name?this.options.ecmaVersion>=9&&(e.await=!1):this.unexpected()),n&&a&&this.raise(u.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(u,!1,p),this.checkLValPattern(u),this.parseForIn(e,u)):(this.checkExpressionErrors(p,!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(fe),this.enterScope(Z);for(var i=!1;this.type!==b.braceR;)if(this.type===b._case||this.type===b._default){var s=this.type===b._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),s?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(me),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,s){for(var r=0,n=this.labels;r<n.length;r+=1)n[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(s?-1===s.indexOf("label")?s+"label":s:"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 s=this.parseStatement(null);t.body.push(s)}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,s){for(e.declarations=[],e.kind=i;;){var r=this.startNode();if(this.parseVarId(r,i),this.eat(b.eq)?r.init=this.parseMaybeAssign(t):s||"const"!==i||this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual("of")?s||"using"!==i&&"await using"!==i||!(this.options.ecmaVersion>=17)||this.type===b._in||this.isContextual("of")?s||"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?se:re,!1)};var xe=1,ye=2,ve=4;function be(e,t){var i=t.key.name,s=e[i],r="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(r=(t.static?"s":"i")+t.kind),"iget"===s&&"iset"===r||"iset"===s&&"iget"===r||"sget"===s&&"sset"===r||"sset"===s&&"sget"===r?(e[i]="true",!1):!!s||(e[i]=r,!1)}function we(e,t){var i=e.computed,s=e.key;return!i&&("Identifier"===s.type&&s.name===t||"Literal"===s.type&&s.value===t)}de.parseFunction=function(e,t,i,s,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===b.star&&t&ye&&this.unexpected(),e.generator=this.eat(b.star)),this.options.ecmaVersion>=8&&(e.async=!!s),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?se:re:ne));var n=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=n,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 s=this.enterClassBody(),r=this.startNode(),n=!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?(n&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),n=!0):a.key&&"PrivateIdentifier"===a.key.type&&be(s,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(),s="",r=!1,n=!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:s="static"}if(i.static=o,!s&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==b.star||this.canInsertSemicolon()?s="async":n=!0),!s&&(t>=9||!n)&&this.eat(b.star)&&(r=!0),!s&&!n&&!r){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=l:s=l)}if(s?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=s,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===b.parenL||"method"!==a||r||n){var c=!i.static&&we(i,"constructor"),p=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,n,p)}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,s){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 n=e.value=this.parseMethod(t,i,s);return"get"===e.kind&&0!==n.params.length&&this.raiseRecoverable(n.start,"getter should have no params"),"set"===e.kind&&1!==n.params.length&&this.raiseRecoverable(n.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===n.params[0].type&&this.raiseRecoverable(n.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 s=this.privateNameStack.length,r=0===s?null:this.privateNameStack[s-1],n=0;n<i.length;++n){var a=i[n];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,s=e.specifiers;i<s.length;i+=1){var r=s[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 s=this.parseMaybeAssign();return this.semicolon(),s},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 s=0,r=t.properties;s<r.length;s+=1){var n=r[s];this.checkPatternExport(e,n)}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,s=t;i<s.length;i+=1){var r=s[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 s=this.parseImportAttribute(),r="Identifier"===s.key.type?s.key.name:s.key.value;T(t,r)&&this.raiseRecoverable(s.key.start,"Duplicate attribute key '"+r+"'"),t[r]=!0,e.push(s)}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 s=0,r=e.properties;s<r.length;s+=1){var n=r[s];this.toAssignable(n,t),"RestElement"!==n.type||"ArrayPattern"!==n.argument.type&&"ObjectPattern"!==n.argument.type||this.raise(n.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,s=0;s<i;s++){var r=e[s];r&&this.toAssignable(r,t)}if(i){var n=e[i-1];6===this.options.ecmaVersion&&t&&n&&"RestElement"===n.type&&"Identifier"!==n.argument.type&&this.unexpected(n.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,s){for(var r=[],n=!0;!this.eat(e);)if(n?n=!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(s))}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 s=this.startNodeAt(e,t);return s.left=i,s.right=this.parseMaybeAssign(),this.finishNode(s,"AssignmentPattern")},ke.checkLValSimple=function(e,t,i){void 0===t&&(t=ie);var s=t!==ie;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(s?"Binding ":"Assigning to ")+e.name+" in strict mode"),s&&(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":s&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return s&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,i);default:this.raise(e.start,(s?"Binding":"Assigning to")+" rvalue")}},ke.checkLValPattern=function(e,t,i){switch(void 0===t&&(t=ie),e.type){case"ObjectPattern":for(var s=0,r=e.properties;s<r.length;s+=1){var n=r[s];this.checkLValInnerPattern(n,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,s,r){this.token=e,this.isExpr=!!t,this.preserveSpace=!!i,this.override=s,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 _e=le.prototype;function Ne(e){return"Identifier"===e.type||"ParenthesizedExpression"===e.type&&Ne(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)}_e.checkPropClash=function(e,t,i){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var s,r=e.key;switch(r.type){case"Identifier":s=r.name;break;case"Literal":s=String(r.value);break;default:return}var n=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===s&&"init"===n&&(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[s="$"+s];a?("init"===n?this.strict&&a.init||a.get||a.set:a.init||a[n])&&this.raiseRecoverable(r.start,"Redefinition of property"):a=t[s]={init:!1,get:!1,set:!1},a[n]=!0}}},_e.parseExpression=function(e,t){var i=this.start,s=this.startLoc,r=this.parseMaybeAssign(e,t);if(this.type===b.comma){var n=this.startNodeAt(i,s);for(n.expressions=[r];this.eat(b.comma);)n.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(n,"SequenceExpression")}return r},_e.parseMaybeAssign=function(e,t,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var s=!1,r=-1,n=-1,a=-1;t?(r=t.parenthesizedAssign,n=t.trailingComma,a=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new ue,s=!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 p=this.startNodeAt(o,l);return p.operator=this.value,this.type===b.eq&&(c=this.toAssignable(c,!1,t)),s||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===b.eq?this.checkLValPattern(c):this.checkLValSimple(c),p.left=c,this.next(),p.right=this.parseMaybeAssign(e),a>-1&&(t.doubleProto=a),this.finishNode(p,"AssignmentExpression")}return s&&this.checkExpressionErrors(t,!0),r>-1&&(t.parenthesizedAssign=r),n>-1&&(t.trailingComma=n),c},_e.parseMaybeConditional=function(e,t){var i=this.start,s=this.startLoc,r=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return r;if(this.eat(b.question)){var n=this.startNodeAt(i,s);return n.test=r,n.consequent=this.parseMaybeAssign(),this.expect(b.colon),n.alternate=this.parseMaybeAssign(e),this.finishNode(n,"ConditionalExpression")}return r},_e.parseExprOps=function(e,t){var i=this.start,s=this.startLoc,r=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||r.start===i&&"ArrowFunctionExpression"===r.type?r:this.parseExprOp(r,i,s,-1,e)},_e.parseExprOp=function(e,t,i,s,r){var n=this.type.binop;if(null!=n&&(!r||this.type!==b._in)&&n>s){var a=this.type===b.logicalOR||this.type===b.logicalAND,o=this.type===b.coalesce;o&&(n=b.logicalAND.binop);var l=this.value;this.next();var c=this.start,p=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,r),c,p,n,r),u=this.buildBinary(t,i,e,h,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,s,r)}return e},_e.buildBinary=function(e,t,i,s,r,n){"PrivateIdentifier"===s.type&&this.raise(s.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=s,this.finishNode(a,n?"LogicalExpression":"BinaryExpression")},_e.parseMaybeUnary=function(e,t,i,s){var r,n=this.start,a=this.startLoc;if(this.isContextual("await")&&this.canAwait)r=this.parseAwait(s),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,s),this.checkExpressionErrors(e,!0),l?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&Ne(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,s),this.checkExpressionErrors(e))return r;for(;this.type.postfix&&!this.canInsertSemicolon();){var c=this.startNodeAt(n,a);c.operator=this.value,c.prefix=!1,c.argument=r,this.checkLValSimple(r),this.next(),r=this.finishNode(c,"UpdateExpression")}}else(s||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(n,a,r,this.parseMaybeUnary(null,!1,!1,s),"**",!1)},_e.parseExprSubscripts=function(e,t){var i=this.start,s=this.startLoc,r=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return r;var n=this.parseSubscripts(r,i,s,!1,t);return e&&"MemberExpression"===n.type&&(e.parenthesizedAssign>=n.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=n.start&&(e.parenthesizedBind=-1),e.trailingComma>=n.start&&(e.trailingComma=-1)),n},_e.parseSubscripts=function(e,t,i,s,r){for(var n=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,s,n,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}},_e.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(b.arrow)},_e.parseSubscriptAsyncArrow=function(e,t,i,s){return this.parseArrowExpression(this.startNodeAt(e,t),i,!0,s)},_e.parseSubscript=function(e,t,i,s,r,n,a){var o=this.options.ecmaVersion>=11,l=o&&this.eat(b.questionDot);s&&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 p=this.startNodeAt(t,i);p.object=e,c?(p.property=this.parseExpression(),this.expect(b.bracketR)):this.type===b.privateId&&"Super"!==e.type?p.property=this.parsePrivateIdent():p.property=this.parseIdent("never"!==this.options.allowReserved),p.computed=!!c,o&&(p.optional=l),e=this.finishNode(p,"MemberExpression")}else if(!s&&this.eat(b.parenL)){var h=new ue,u=this.yieldPos,d=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var f=this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1,h);if(r&&!l&&this.shouldParseAsyncArrow())return this.checkPatternErrors(h,!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=m,this.parseSubscriptAsyncArrow(t,i,f,a);this.checkExpressionErrors(h,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=d||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var g=this.startNodeAt(t,i);g.callee=e,g.arguments=f,o&&(g.optional=l),e=this.finishNode(g,"CallExpression")}else if(this.type===b.backQuote){(l||n)&&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},_e.parseExprAtom=function(e,t,i){this.type===b.slash&&this.readRegexp();var s,r=this.potentialArrowAt===this.start;switch(this.type){case b._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),s=this.startNode(),this.next(),this.type!==b.parenL||this.allowDirectSuper||this.raise(s.start,"super() call outside constructor of a subclass"),this.type!==b.dot&&this.type!==b.bracketL&&this.type!==b.parenL&&this.unexpected(),this.finishNode(s,"Super");case b._this:return s=this.startNode(),this.next(),this.finishNode(s,"ThisExpression");case b.name:var n=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(n,a),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(b.arrow))return this.parseArrowExpression(this.startNodeAt(n,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(n,a),[l],!0,t)}return l;case b.regexp:var c=this.value;return(s=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},s;case b.num:case b.string:return this.parseLiteral(this.value);case b._null:case b._true:case b._false:return(s=this.startNode()).value=this.type===b._null?null:this.type===b._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case b.parenL:var p=this.start,h=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(h)&&(e.parenthesizedAssign=p),e.parenthesizedBind<0&&(e.parenthesizedBind=p)),h;case b.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(b.bracketR,!0,!0,e),this.finishNode(s,"ArrayExpression");case b.braceL:return this.overrideContext(Se.b_expr),this.parseObj(!1,e);case b._function:return s=this.startNode(),this.next(),this.parseFunction(s,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()}},_e.parseExprAtomDefault=function(){this.unexpected()},_e.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()},_e.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")},_e.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")},_e.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")},_e.parseParenExpression=function(){this.expect(b.parenL);var e=this.parseExpression();return this.expect(b.parenR),e},_e.shouldParseArrow=function(e){return!this.canInsertSemicolon()},_e.parseParenAndDistinguishExpression=function(e,t){var i,s=this.start,r=this.startLoc,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,l=this.startLoc,c=[],p=!0,h=!1,u=new ue,d=this.yieldPos,m=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==b.parenR;){if(p?p=!1:this.expect(b.comma),n&&this.afterTrailingComma(b.parenR,!0)){h=!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 f=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=m,this.parseParenArrowList(s,r,c,t);c.length&&!h||this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(u,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=m||this.awaitPos,c.length>1?((i=this.startNodeAt(o,l)).expressions=c,this.finishNodeAt(i,"SequenceExpression",f,g)):i=c[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var x=this.startNodeAt(s,r);return x.expression=i,this.finishNode(x,"ParenthesizedExpression")}return i},_e.parseParenItem=function(e){return e},_e.parseParenArrowList=function(e,t,i,s){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,s)};var Ae=[];_e.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 s=this.start,r=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),s,r,!0,!1),this.eat(b.parenL)?e.arguments=this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Ae,this.finishNode(e,"NewExpression")},_e.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")},_e.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 s=this.parseTemplateElement({isTagged:t});for(i.quasis=[s];!s.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(s=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")},_e.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))},_e.parseObj=function(e,t){var i=this.startNode(),s=!0,r={};for(i.properties=[],this.next();!this.eat(b.braceR);){if(s)s=!1;else if(this.expect(b.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(b.braceR))break;var n=this.parseProperty(e,t);e||this.checkPropClash(n,r,t),i.properties.push(n)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")},_e.parseProperty=function(e,t){var i,s,r,n,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,n=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)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(b.star),this.parsePropertyName(a)):s=!1,this.parsePropertyValue(a,e,i,s,r,n,t,o),this.finishNode(a,"Property")},_e.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 s=e.value.start;"get"===e.kind?this.raiseRecoverable(s,"getter should have no params"):this.raiseRecoverable(s,"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")},_e.parsePropertyValue=function(e,t,i,s,r,n,a,o){(i||s)&&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,s),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||s)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=r),t?e.value=this.parseMaybeDefault(r,n,this.copyNode(e.key)):this.type===b.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(r,n,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected():((i||s)&&this.unexpected(),this.parseGetterSetter(e))},_e.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)},_e.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},_e.parseMethod=function(e,t,i){var s=this.startNode(),r=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=e),this.options.ecmaVersion>=8&&(s.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(te(t,s.generator)|$|(i?K:0)),this.expect(b.parenL),s.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(s,"FunctionExpression")},_e.parseArrowExpression=function(e,t,i,s){var r=this.yieldPos,n=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,s),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")},_e.parseFunctionBody=function(e,t,i,s){var r=t&&this.type!==b.braceL,n=this.strict,a=!1;if(r)e.body=this.parseMaybeAssign(s),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);n&&!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,!n&&!a&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,oe),e.body=this.parseBlock(!1,void 0,a&&!n),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()},_e.isSimpleParamList=function(e){for(var t=0,i=e;t<i.length;t+=1)if("Identifier"!==i[t].type)return!1;return!0},_e.checkParams=function(e,t){for(var i=Object.create(null),s=0,r=e.params;s<r.length;s+=1){var n=r[s];this.checkLValInnerPattern(n,se,t?null:i)}},_e.parseExprList=function(e,t,i,s){for(var r=[],n=!0;!this.eat(e);){if(n)n=!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(s),s&&this.type===b.comma&&s.trailingComma<0&&(s.trailingComma=this.start)):a=this.parseMaybeAssign(!1,s),r.push(a)}return r},_e.checkUnreserved=function(e){var t=e.start,i=e.end,s=e.name;this.inGenerator&&"yield"===s&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===s&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().flags&ee||"arguments"!==s||this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==s&&"await"!==s||this.raise(t,"Cannot use "+s+" in class static initialization block"),this.keywords.test(s)&&this.raise(t,"Unexpected keyword '"+s+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,i).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(s)&&(this.inAsync||"await"!==s||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+s+"' is reserved"))},_e.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},_e.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},_e.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},_e.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")},_e.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 s=new SyntaxError(t);throw s.pos=e,s.loc=i,s.raisedAt=this.pos,s},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&z},Pe.declareName=function(e,t,i){var s=!1;if(t===re){var r=this.currentScope();s=r.lexical.indexOf(e)>-1||r.functions.indexOf(e)>-1||r.var.indexOf(e)>-1,r.lexical.push(e),this.inModule&&r.flags&z&&delete this.undefinedExports[e]}else if(t===ae)this.currentScope().lexical.push(e);else if(t===ne){var n=this.currentScope();s=this.treatFunctionsAsVar?n.lexical.indexOf(e)>-1:n.lexical.indexOf(e)>-1||n.var.indexOf(e)>-1,n.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){s=!0;break}if(o.var.push(e),this.inModule&&o.flags&z&&delete this.undefinedExports[e],o.flags&ee)break}s&&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,s){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=s),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,s){return Oe.call(this,e,t,i,s)},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,Je=Ue,ze={9:De,10:Me,11:Fe,12:Be,13:Ue,14:Je},qe="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Xe={9:"",10:"",11:"",12:"",13:"",14:qe},Ge="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(ze[e]+" "+Ge),binaryOfStrings:V(Xe[e]),nonBinary:{General_Category:V(Ge),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,st=[9,10,11,12,13,14];it<st.length;it+=1)tt(st[it]);var rt=le.prototype,nt=function(e,t){this.parent=e,this.base=t||this};nt.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},nt.prototype.sibling=function(){return new nt(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 pt(e){return u(e,!0)||36===e||95===e}function ht(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 s=-1!==i.indexOf("v"),r=-1!==i.indexOf("u");this.start=0|e,this.source=t+"",this.flags=i,s&&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,s=i.length;if(e>=s)return-1;var r=i.charCodeAt(e);if(!t&&!this.switchU||r<=55295||r>=57344||e+1>=s)return r;var n=i.charCodeAt(e+1);return n>=56320&&n<=57343?(r<<10)+n-56613888:r},at.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var i=this.source,s=i.length;if(e>=s)return s;var r,n=i.charCodeAt(e);return!t&&!this.switchU||n<=55295||n>=57344||e+1>=s||(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,s=0,r=e;s<r.length;s+=1){var n=r[s],a=this.at(i,t);if(-1===a||a!==n)return!1;i=this.nextIndex(i,t)}return this.pos=i,!0},rt.validateRegExpFlags=function(e){for(var t=e.validFlags,i=e.flags,s=!1,r=!1,n=0;n<i.length;n++){var a=i.charAt(n);-1===t.indexOf(a)&&this.raise(e.start,"Invalid regular expression flag"),i.indexOf(a,n+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===a&&(s=!0),"v"===a&&(r=!0)}this.options.ecmaVersion>=15&&s&&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 s=i[t];e.groupNames[s]||e.raise("Invalid named capture referenced")}},rt.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new nt(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 s=0,r=-1;if(this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue),e.eat(125)))return-1!==r&&r<s&&!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),s=e.eat(45);if(i||s){for(var r=0;r<i.length;r++){var n=i.charAt(r);i.indexOf(n,r+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(s){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 s=0,r=i;s<r.length;s+=1)r[s].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,s=e.current(i);return e.advance(i),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),pt(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)},rt.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,s=e.current(i);return e.advance(i),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),ht(s)?(e.lastIntValue=s,!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,s=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var r=e.lastIntValue;if(s&&r>=55296&&r<=56319){var n=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=n,e.lastIntValue=r}return!0}if(s&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&dt(e.lastIntValue))return!0;s&&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 mt=0,ft=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 _t(e){return e>=48&&e<=55}rt.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(xt(t))return e.lastIntValue=-1,e.advance(),ft;var i=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((i=80===t)||112===t)){var s;if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(s=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&s===gt&&e.raise("Invalid property name"),s;e.raise("Invalid property name")}return mt},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 s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,s),ft}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,r)}return mt},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)?ft: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()?ft:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),ft)},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||_t(i))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var s=e.current();return 93!==s&&(e.lastIntValue=s,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=ft;if(this.regexp_eatClassSetRange(e));else if(t=this.regexp_eatClassSetOperand(e)){t===gt&&(i=gt);for(var s=e.pos;e.eatChars([38,38]);)38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))?t!==gt&&(i=ft):e.raise("Invalid character in character class");if(s!==e.pos)return i;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(s!==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 s=e.lastIntValue;return-1!==i&&-1!==s&&i>s&&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)?ft: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),s=this.regexp_classContents(e);if(e.eat(93))return i&&s===gt&&e.raise("Negated character class may contain strings"),s;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?ft: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 _t(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 s=0;s<t;++s){var r=e.current();if(!St(r))return e.pos=i,!1;e.lastIntValue=16*e.lastIntValue+Ct(r),e.advance()}return!0};var Nt=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 At(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 Nt(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 Nt(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 s=void 0,r=t;(s=S(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=s;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(),s=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!E(s);)s=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,s=42===e?b.star:b.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++i,s=b.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(b.assign,i+1):this.finishOp(s,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 s=this.input.charAt(this.pos);if(w.test(s)&&this.raise(i,"Unterminated regular expression"),e)e=!1;else{if("["===s)t=!0;else if("]"===s&&t)t=!1;else if("/"===s&&!t)break;e="\\"===s}++this.pos}var r=this.input.slice(i,this.pos);++this.pos;var n=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(n);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 s=this.options.ecmaVersion>=12&&void 0===t,r=i&&48===this.input.charCodeAt(this.pos),n=this.pos,a=0,o=0,l=0,c=null==t?1/0:t;l<c;++l,++this.pos){var p=this.input.charCodeAt(this.pos),h=void 0;if(s&&95===p)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=p;else{if((h=p>=97?p-97+10:p>=65?p-65+10:p>=48&&p<=57?p-48:1/0)>=e)break;o=p,a=a*e+h}}return s&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===n||null!=t&&this.pos-n!==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 s=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&110===s){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!==s||i||(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),69!==s&&101!==s||i||(43!==(s=this.input.charCodeAt(++this.pos))&&45!==s||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),u(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var n=At(this.input.slice(t,this.pos),i);return this.finishToken(b.num,n)},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 s=this.input.charCodeAt(this.pos);if(s===e)break;92===s?(t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!1),i=this.pos):8232===s||8233===s?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(E(s)&&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 s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(s,8);return r>255&&(s=s.slice(0,-1),r=parseInt(s,8)),this.pos+=s.length-1,t=this.input.charCodeAt(this.pos),"0"===s&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-s.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,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(d(r,s))this.pos+=r<=65535?1:2;else{if(92!==r)break;this.containsEsc=!0,e+=this.input.slice(i,this.pos);var n=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,s)||this.invalidStringToken(n,"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:m,tokTypes:b,keywordTypes:y,TokContext:Ee,tokContexts:Se,isIdentifierChar:d,isIdentifierStart:u,Token:Nt,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=Nt,e.TokenType=m,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}(ui.exports)),ui.exports}var mi=(hi||(hi=1,function(e){const t=li?oi:(li=1,oi={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]+$/,s=/^\d+$/,r=new WeakMap;function n(e){e=e.Parser.acorn||e;let t=r.get(e);if(!t){const i=e.tokTypes,s=e.TokContext,n=e.TokenType,a=new s("<tag",!1),o=new s("</tag",!1),l=new s("<tag>...</tag>",!0,!0),c={tc_oTag:a,tc_cTag:o,tc_expr:l},p={jsxName:new n("jsxName"),jsxText:new n("jsxText",{beforeExpr:!0}),jsxTagStart:new n("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new n("jsxTagEnd")};p.jsxTagStart.updateContext=function(){this.context.push(l),this.context.push(a),this.exprAllowed=!1},p.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:p},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||di(),l=n(o),c=o.tokTypes,p=l.tokTypes,h=o.tokContexts,u=l.tokContexts.tc_oTag,d=l.tokContexts.tc_cTag,m=l.tokContexts.tc_expr,f=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(p.jsxTagStart)):this.getTokenFromCode(i):(e+=this.input.slice(t,this.pos),this.finishToken(p.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:f(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 s=this.input.charCodeAt(this.pos);if(s===e)break;38===s?(t+=this.input.slice(i,this.pos),t+=this.jsx_readEntity(),i=this.pos):f(s)?(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="",n=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&&n++<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),s.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(p.jsxName,this.input.slice(t,this.pos))}jsx_parseIdentifier(){let e=this.startNode();return this.type===p.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,s=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(c.colon))return s;var r=this.startNodeAt(t,i);return r.namespace=s,r.name=this.jsx_parseIdentifier(),this.finishNode(r,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===p.jsxTagEnd)return"";let t=this.start,i=this.startLoc,s=this.jsx_parseNamespacedName();for(this.type!==c.dot||"JSXNamespacedName"!==s.type||e.allowNamespacedObjects||this.unexpected();this.eat(c.dot);){let e=this.startNodeAt(t,i);e.object=s,e.property=this.jsx_parseIdentifier(),s=this.finishNode(e,"JSXMemberExpression")}return s}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 p.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 s=this.jsx_parseElementName();for(s&&(i.name=s);this.type!==c.slash&&this.type!==p.jsxTagEnd;)i.attributes.push(this.jsx_parseAttribute());return i.selfClosing=this.eat(c.slash),this.expect(p.jsxTagEnd),this.finishNode(i,s?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(e,t){let i=this.startNodeAt(e,t),s=this.jsx_parseElementName();return s&&(i.name=s),this.expect(p.jsxTagEnd),this.finishNode(i,s?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(e,t){let i=this.startNodeAt(e,t),s=[],r=this.jsx_parseOpeningElementAt(e,t),n=null;if(!r.selfClosing){e:for(;;)switch(this.type){case p.jsxTagStart:if(e=this.start,t=this.startLoc,this.next(),this.eat(c.slash)){n=this.jsx_parseClosingElementAt(e,t);break e}s.push(this.jsx_parseElementAt(e,t));break;case p.jsxText:s.push(this.parseExprAtom());break;case c.braceL:s.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}a(n.name)!==a(r.name)&&this.raise(n.start,"Expected corresponding JSX closing tag for <"+a(r.name)+">")}let o=r.name?"Element":"Fragment";return i["opening"+o]=r,i["closing"+o]=n,i.children=s,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===p.jsxText?this.jsx_parseText():this.type===p.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let t=this.curContext();if(t===m)return this.jsx_readToken();if(t===u||t===d){if(g(e))return this.jsx_readWord();if(62==e)return++this.pos,this.finishToken(p.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(p.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==c.braceL){var t=this.curContext();t==u?this.context.push(h.b_expr):t==m?this.context.push(h.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else{if(this.type!==c.slash||e!==p.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 n(di()).tokTypes},configurable:!0,enumerable:!0})}(ci)),ci.exports),fi=Q(mi);const{stringify:gi}=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 xi={"||":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},yi=17,vi={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:yi,ClassExpression:yi,FunctionExpression:yi,ObjectExpression:yi,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function bi(e,t){const{generator:i}=e;if(e.write("("),null!=t&&t.length>0){i[t[0].type](t[0],e);const{length:s}=t;for(let r=1;r<s;r++){const s=t[r];e.write(", "),i[s.type](s,e)}}e.write(")")}function wi(e,t,i,s){const r=e.expressionsPrecedence[t.type];if(r===yi)return!0;const n=e.expressionsPrecedence[i.type];return r!==n?!s&&15===r&&14===n&&"**"===i.operator||r<n:(13===r||14===r)&&("**"===t.operator&&"**"===i.operator?!s:13===r&&13===n&&("??"===t.operator||"??"===i.operator)||(s?xi[t.operator]<=xi[i.operator]:xi[t.operator]<xi[i.operator]))}function ki(e,t,i,s){const{generator:r}=e;wi(e,t,i,s)?(e.write("("),r[t.type](t,e),e.write(")")):r[t.type](t,e)}function Ei(e,t,i,s){const r=t.split("\n"),n=r.length-1;if(e.write(r[0].trim()),n>0){e.write(s);for(let t=1;t<n;t++)e.write(i+r[t].trim()+s);e.write(i+r[n].trim())}}function Si(e,t,i,s){const{length:r}=t;for(let n=0;n<r;n++){const r=t[n];e.write(i),"L"===r.type[0]?e.write("// "+r.value.trim()+"\n",r):(e.write("/*"),Ei(e,r.value,i,s),e.write("*/"+s))}}function Ci(e,t){const{generator:i}=e,{declarations:s}=t;e.write(t.kind+" ");const{length:r}=s;if(r>0){i.VariableDeclarator(s[0],e);for(let t=1;t<r;t++)e.write(", "),i.VariableDeclarator(s[t],e)}}let _i,Ni,Ii,Ai,Ti,Pi;const Li={Program(e,t){const i=t.indent.repeat(t.indentLevel),{lineEnd:s,writeComments:r}=t;r&&null!=e.comments&&Si(t,e.comments,i,s);const n=e.body,{length:a}=n;for(let e=0;e<a;e++){const a=n[e];r&&null!=a.comments&&Si(t,a.comments,i,s),t.write(i),this[a.type](a,t),t.write(s)}r&&null!=e.trailingComments&&Si(t,e.trailingComments,i,s)},BlockStatement:Pi=function(e,t){const i=t.indent.repeat(t.indentLevel++),{lineEnd:s,writeComments:r}=t,n=i+t.indent;t.write("{");const a=e.body;if(null!=a&&a.length>0){t.write(s),r&&null!=e.comments&&Si(t,e.comments,n,s);const{length:o}=a;for(let e=0;e<o;e++){const i=a[e];r&&null!=i.comments&&Si(t,i.comments,n,s),t.write(n),this[i.type](i,t),t.write(s)}t.write(i)}else r&&null!=e.comments&&(t.write(s),Si(t,e.comments,n,s),t.write(i));r&&null!=e.trailingComments&&Si(t,e.trailingComments,n,s),t.write("}"),t.indentLevel--},ClassBody:Pi,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===yi||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:s,writeComments:r}=t;t.indentLevel++;const n=i+t.indent,a=n+t.indent;t.write("switch ("),this[e.discriminant.type](e.discriminant,t),t.write(") {"+s);const{cases:o}=e,{length:l}=o;for(let e=0;e<l;e++){const i=o[e];r&&null!=i.comments&&Si(t,i.comments,n,s),i.test?(t.write(n+"case "),this[i.test.type](i.test,t),t.write(":"+s)):t.write(n+"default:"+s);const{consequent:l}=i,{length:c}=l;for(let e=0;e<c;e++){const i=l[e];r&&null!=i.comments&&Si(t,i.comments,a,s),t.write(a),this[i.type](i,t),t.write(s)}}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]?Ci(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:_i=function(e,t){t.write(`for ${e.await?"await ":""}(`);const{left:i}=e;"V"===i.type[0]?Ci(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:_i,DebuggerStatement(e,t){t.write("debugger;",e)},FunctionDeclaration:Ni=function(e,t){t.write((e.async?"async ":"")+(e.generator?"function* ":"function ")+(e.id?e.id.name:""),e),bi(t,e.params),t.write(" "),this[e.body.type](e.body,t)},FunctionExpression:Ni,VariableDeclaration(e,t){Ci(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:s}=i,r=t.expressionsPrecedence[s];"C"===s[0]&&"l"===s[1]&&"E"===s[5]||!(r===yi||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:s}=e,{length:r}=i;let n=0;if(r>0){for(;n<r;){n>0&&t.write(", ");const e=i[n],s=e.type[6];if("D"===s)t.write(e.local.name,e),n++;else{if("N"!==s)break;t.write("* as "+e.local.name,e),n++}}if(n<r){for(t.write("{");;){const e=i[n],{name:s}=e.imported;if(t.write(s,e),s!==e.local.name&&t.write(" as "+e.local.name),!(++n<r))break;t.write(", ")}t.write("}")}t.write(" from ")}if(this.Literal(e.source,t),s&&s.length>0){t.write(" with { ");for(let e=0;e<s.length;e++)this.ImportAttribute(s[e],t),e<s.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:s}=i;if(s>0)for(let e=0;;){const r=i[e],{name:n}=r.local;if(t.write(n,r),n!==r.exported.name&&t.write(" as "+r.exported.name),!(++e<s))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),bi(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]):bi(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:Ii=function(e,t){t.write("..."),this[e.argument.type](e.argument,t)},SpreadElement:Ii,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),ki(t,e.argument,e)},TemplateLiteral(e,t){const{quasis:i,expressions:s}=e;t.write("`");const{length:r}=s;for(let e=0;e<r;e++){const r=s[e],n=i[e];t.write(n.value.raw,n),t.write("${"),this[r.type](r,t),t.write("}")}const n=i[i.length-1];t.write(n.value.raw,n),t.write("`")},TemplateElement(e,t){t.write(e.value.raw,e)},TaggedTemplateExpression(e,t){ki(t,e.tag,e),this[e.quasi.type](e.quasi,t)},ArrayExpression:Ti=function(e,t){if(t.write("["),e.elements.length>0){const{elements:i}=e,{length:s}=i;for(let e=0;;){const r=i[e];if(null!=r&&this[r.type](r,t),!(++e<s)){null==r&&t.write(", ");break}t.write(", ")}}t.write("]")},ArrayPattern:Ti,ObjectExpression(e,t){const i=t.indent.repeat(t.indentLevel++),{lineEnd:s,writeComments:r}=t,n=i+t.indent;if(t.write("{"),e.properties.length>0){t.write(s),r&&null!=e.comments&&Si(t,e.comments,n,s);const a=","+s,{properties:o}=e,{length:l}=o;for(let e=0;;){const i=o[e];if(r&&null!=i.comments&&Si(t,i.comments,n,s),t.write(n),this[i.type](i,t),!(++e<l))break;t.write(a)}t.write(s),r&&null!=e.trailingComments&&Si(t,e.trailingComments,n,s),t.write(i+"}")}else r?null!=e.comments?(t.write(s),Si(t,e.comments,n,s),null!=e.trailingComments&&Si(t,e.trailingComments,n,s),t.write(i+"}")):null!=e.trailingComments?(t.write(s),Si(t,e.trailingComments,n,s),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:s}=i;for(let e=0;this[i[e].type](i[e],t),++e<s;)t.write(", ")}t.write("}")},SequenceExpression(e,t){bi(t,e.expressions)},UnaryExpression(e,t){if(e.prefix){const{operator:i,argument:s,argument:{type:r}}=e;t.write(i);const n=wi(t,s,e);n||!(i.length>1)&&("U"!==r[0]||"n"!==r[1]&&"p"!==r[1]||!s.prefix||s.operator[0]!==i||"+"!==i&&"-"!==i)||t.write(" "),n?(t.write(i.length>1?" (":"("),this[r](s,t),t.write(")")):this[r](s,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:Ai=function(e,t){const i="in"===e.operator;i&&t.write("("),ki(t,e.left,e,!1),t.write(" "+e.operator+" "),ki(t,e.right,e,!0),i&&t.write(")")},LogicalExpression:Ai,ConditionalExpression(e,t){const{test:i}=e,s=t.expressionsPrecedence[i.type];s===yi||s<=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===yi||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),bi(t,e.arguments)},CallExpression(e,t){const i=t.expressionsPrecedence[e.callee.type];i===yi||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("?."),bi(t,e.arguments)},ChainExpression(e,t){this[e.expression.type](e.expression,t)},MemberExpression(e,t){const i=t.expressionsPrecedence[e.object.type];i===yi||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(gi(e.value),e)},RegExpLiteral(e,t){const{regex:i}=e;t.write(`/${i.pattern}/${i.flags}`,e)}},Vi={};class Ri{constructor(e){const t=null==e?Vi:e;this.output="",null!=t.output?(this.output=t.output,this.write=this.writeToStream):this.output="",this.generator=null!=t.generator?t.generator:Li,this.expressionsPrecedence=null!=t.expressionsPrecedence?t.expressionsPrecedence:vi,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:s}=this;for(let r=0;r<t;r++)"\n"===e[r]?(i=0,s++):i++;return this.column=i,void(this.line=s)}}const{length:i}=e,{lineEnd:s}=this;i>0&&(this.lineEndSize>0&&(1===s.length?e[i-1]===s:e.endsWith(s))?(this.line+=this.lineEndSize,this.column=0):this.column+=i)}toString(){return this.output}}const Oi={};function ji(e,t){const{SourceMapGenerator:i,filePath:s,handlers:r}=t||Oi,n=i?new i({file:s||"<unknown>.js"}):void 0,a=function(e,t){const i=new Ri(t);return i.generator[e.type](e,i),i.output}(e,{comments:!0,generator:{...Li,...r},sourceMap:n||void 0});return{value:a,map:n?n.toJSON():void 0}}const Di={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('"'+Mi(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 s=e.children[i];if("JSXSpreadChild"===s.type)throw new Error("JSX spread children are not supported");this[s.type](s,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 s=e.children[i];if("JSXSpreadChild"===s.type)throw new Error("JSX spread children are not supported");this[s.type](s,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(Mi(e.value).replace(/[<>{}]/g,Fi),e)}};function Mi(e){return e.replace(/&(?=[#a-z])/gi,"&amp;")}function Fi(e){return"<"===e?"&lt;":">"===e?"&gt;":"{"===e?"&#123;":"&#125;"}function Bi(){const e=this.data(),t=e.settings||(e.settings={}),i=t.handlers||(t.handlers={});(t.plugins||(t.plugins=[])).push(fi()),Object.assign(i,Di)}function Ui(e){const t=this;this.compiler=function(i,s){const r={...t.data("settings"),...e},n=ji(i,{SourceMapGenerator:r.SourceMapGenerator,filePath:s.path||"unknown.js",handlers:r.handlers});return s.map=n.map,n.value}}const Ji={}.hasOwnProperty,zi=/[A-Z]/g,qi=new Set(["td","th"]);function Xi(e,t){try{return _t(e,{reactCompat:!0})}catch(e){throw new Error("Could not parse `style` attribute on `"+t+"`",{cause:e})}}function Gi(e){const t={};let i;for(i in e)Ji.call(e,i)&&(t[Hi(i)]=e[i]);return t}function Hi(e){let t=e.replace(zi,Wi);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function Wi(e){return"-"+e.toLowerCase()}const $i={}.hasOwnProperty,Ki=[];function Qi(e,t){const i=t?[...t].sort(es):Ki;i.length>0&&Yi(e,{comments:i,index:0})}function Yi(e,t){if(t.index===t.comments.length)return;const i=[],s=[];let r;for(r in e)if($i.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(es),s.push(...Zi(t,e,!1,{leading:!0,trailing:!1}));let n=-1;for(;++n<i.length;)Yi(i[n],t);s.push(...Zi(t,e,!0,{leading:!1,trailing:i.length>0})),s.length>0&&(e.comments=s)}function Zi(e,t,i,s){const r=[];for(;e.comments[e.index]&&es(e.comments[e.index],t,i)<1;)r.push(Object.assign({},e.comments[e.index++],s));return r}function es(e,t,i){const s=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[s]?e.loc.start.line-t.loc[s].line||e.loc.start.column-t.loc[s].column:"start"in e&&s in t?e.start-t[s]:Number.NaN}function ts(e,t){const i=e.data&&e.data.estree,s=i&&i.comments||[];let r;i&&(t.comments.push(...s),Qi(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 n={type:"JSXExpressionContainer",expression:r};return t.inherit(e,n),n}function is(e,t){const i=t.schema;let s=i;const r=e.attributes||[];let n=-1;e.name&&"html"===i.space&&"svg"===e.name.toLowerCase()&&(s=Nt,t.schema=s);const a=t.all(e),o=[];for(;++n<r.length;){const e=r[n],i=e.value;let s;if("mdxJsxAttribute"===e.type){if(null==i)s=null;else if("object"==typeof i){const e=i.data&&i.data.estree,r=e&&e.comments||[];let n;e&&(t.comments.push(...r),Qi(e,e.comments),n=e.body[0]&&"ExpressionStatement"===e.body[0].type&&e.body[0].expression||void 0),s={type:"JSXExpressionContainer",expression:n||{type:"JSXEmptyExpression"}},t.inherit(i,s)}else s={type:"Literal",value:String(i)};const r={type:"JSXAttribute",name:t.createJsxAttributeName(e.name),value:s};t.inherit(e,r),o.push(r)}else{const i=e.data&&e.data.estree,s=i&&i.comments||[];let r;i&&(t.comments.push(...s),Qi(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 n={type:"JSXSpreadAttribute",argument:r||{type:"ObjectExpression",properties:[]}};t.inherit(e,n),o.push(n)}}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 ss={comment:function(e,t){const i={type:"Block",value:e.value};t.inherit(e,i),t.comments.push(i);const s={type:"JSXEmptyExpression",comments:[Object.assign({},i,{leading:!1,trailing:!0})]};t.patch(e,s);const r={type:"JSXExpressionContainer",expression:s};return t.patch(e,r),r},doctype:function(){},element:function(e,t){const i=t.schema;let s=i;const r=e.properties||{};"html"===i.space&&"svg"===e.tagName.toLowerCase()&&(s=Nt,t.schema=s);const n=t.all(e),a=[];let o,l,c;for(o in r)if(Ji.call(r,o)){let i=r[o];const n=kt(s,o);let p;if(null==i||!1===i||"number"==typeof i&&Number.isNaN(i)||!i&&n.boolean)continue;if(o="react"===t.elementAttributeNameCase&&n.space?Et[n.property]||n.property:n.attribute,Array.isArray(i)&&(i=n.commaSeparated?St(i):Ct(i)),"style"===o){let s="object"==typeof i?i:Xi(String(i),e.tagName);"css"===t.stylePropertyNameCase&&(s=Gi(s));const r=[];let n;for(n in s)Ji.call(s,n)&&r.push({type:"Property",method:!1,shorthand:!1,computed:!1,key:wt(n)?{type:"Identifier",name:n}:{type:"Literal",value:n},value:{type:"Literal",value:String(s[n])},kind:"init"});c=r,p={type:"JSXExpressionContainer",expression:{type:"ObjectExpression",properties:r}}}else if(!0===i)p=null;else{if(t.tableCellAlignToStyle&&qi.has(e.tagName)&&"align"===o){l=String(i);continue}p={type:"Literal",value:String(i)}}wt(o,{jsx:!0})?a.push({type:"JSXAttribute",name:{type:"JSXIdentifier",name:o},value:p}):a.push({type:"JSXSpreadAttribute",argument:{type:"ObjectExpression",properties:[{type:"Property",method:!1,shorthand:!1,computed:!1,key:{type:"Literal",value:String(o)},value:p||{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?Hi("textAlign"):"textAlign";c.push({type:"Property",method:!1,shorthand:!1,computed:!1,key:wt(e)?{type:"Identifier",name:e}:{type:"Literal",value:e},value:{type:"Literal",value:l},kind:"init"})}t.schema=i;const p={type:"JSXElement",openingElement:{type:"JSXOpeningElement",attributes:a,name:t.createJsxElementName(e.tagName),selfClosing:0===n.length},closingElement:n.length>0?{type:"JSXClosingElement",name:t.createJsxElementName(e.tagName)}:null,children:n};return t.inherit(e,p),p},mdxFlowExpression:ts,mdxJsxFlowElement:is,mdxJsxTextElement:is,mdxTextExpression:ts,mdxjsEsm:function(e,t){const i=e.data&&e.data.estree,s=i&&i.comments||[];i&&(t.comments.push(...s),Qi(i,s),t.esm.push(...i.body))},root:function(e,t){const i=t.all(e),s=[];let r,n=-1;for(;++n<i.length;){const e=i[n];"JSXExpressionContainer"===e.type&&"Literal"===e.expression.type&&It(String(e.expression.value))?r&&r.push(e):(r&&s.push(...r),s.push(e),r=[])}const a={type:"JSXFragment",openingFragment:{type:"JSXOpeningFragment"},closingFragment:{type:"JSXClosingFragment"},children:s};return t.inherit(e,a),a},text:function(e,t){const i=String(e.value||"");if(i){const s={type:"Literal",value:i};t.inherit(e,s);const r={type:"JSXExpressionContainer",expression:s};return t.patch(e,r),r}}};const rs={}.hasOwnProperty,ns=new Set(["table","tbody","thead","tfoot","tr"]);function as(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function os(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function ls(e){const t=e.children||[];let i=-1;const s=[],r="html"===this.schema.space&&"element"===e.type&&ns.has(e.tagName.toLowerCase());for(;++i<t.length;){const e=t[i];if(r&&"text"===e.type&&"\n"===e.value)continue;const n=this.handle(e);Array.isArray(n)?s.push(...n):n&&s.push(n)}return s}function cs(e,t){const i=e.data;let s,r;if(ps(e,t),i){for(r in i)rs.call(i,r)&&"estree"!==r&&(s||(s={}),s[r]=i[r]);s&&(t.data=s)}}function ps(e,t){const i=Tt(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 hs(e){const t=ds(e);if("JSXMemberExpression"===t.type)throw new Error("Member expressions in attribute names are not supported");return t}function us(e){return ds(e)}function ds(e){if(e.includes(".")){const t=e.split(".");let i=t.shift(),s={type:"JSXIdentifier",name:i};for(;i=t.shift();)s={type:"JSXMemberExpression",object:s,property:{type:"JSXIdentifier",name:i}};return s}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 ms(e,t){const i=function(e){const t=st("type",{invalid:as,unknown:os,handlers:{...ss,...e.handlers}});return{elementAttributeNameCase:e.elementAttributeNameCase||"react",schema:"svg"===e.space?Nt:At,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==e.tableCellAlignToStyle,comments:[],esm:[],all:ls,createJsxAttributeName:hs,createJsxElementName:us,handle:function(e){return t(e,this)},inherit:cs,patch:ps}}(t||{});let s=i.handle(e);const r=i.esm;if(s){"JSXFragment"!==s.type&&"JSXElement"!==s.type&&(s={type:"JSXFragment",openingFragment:{type:"JSXOpeningFragment"},closingFragment:{type:"JSXClosingFragment"},children:[s]},i.patch(e,s));const t={type:"ExpressionStatement",expression:s};i.patch(e,t),r.push(t)}const n={type:"Program",body:r,sourceType:"module",comments:i.comments};return i.patch(e,n),n}function fs(e){return function(t){return ms(t,e)}}function gs(e){this.enter({type:"mdxFlowExpression",value:""},e),this.buffer()}function xs(e){this.enter({type:"mdxTextExpression",value:""},e),this.buffer()}function ys(e){const t=this.resume(),i=e.estree,s=this.stack[this.stack.length-1];it("mdxFlowExpression"===s.type||"mdxTextExpression"===s.type),this.exit(e),s.value=t,i&&(s.data={estree:i})}function vs(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function bs(e,t,i){const s=e.value||"";return"{"+i.indentLines(s,function(e,t,i){return(0===t||i?"":" ")+e})+"}"}const ws=["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"],ks={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 Es(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function Ss(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Cs(e){return function(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||Es(e)}const _s=["","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 Ns(e){return e>=55296&&e<=57343||e>1114111}function Is(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 As=/["&'<>`]/g,Ts=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ps=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Ls=/[|\\{}()[\]^$+*?.]/g,Vs=new WeakMap;function Rs(e,t){return e=e.replace(t.subset?function(e){let t=Vs.get(e);t||(t=function(e){const t=[];let i=-1;for(;++i<e.length;)t.push(e[i].replace(Ls,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(e),Vs.set(e,t));return t}(t.subset):As,i),t.subset||t.escapeOnly?e:e.replace(Ts,function(e,i,s){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,s.charCodeAt(i+2),t)}).replace(Ps,i);function i(e,i,s){return t.format(e.charCodeAt(0),s.charCodeAt(i+1),t)}}function Os(e){return"&#x"+e.toString(16).toUpperCase()+";"}function js(e,t){return Rs(e,Object.assign({format:Os},t))}function Ds(){return{canContainEols:["mdxJsxTextElement"],enter:{mdxJsxFlowTag:s,mdxJsxFlowTagClosingMarker:r,mdxJsxFlowTagAttribute:h,mdxJsxFlowTagExpressionAttribute:u,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:a,mdxJsxTextTag:s,mdxJsxTextTagClosingMarker:r,mdxJsxTextTagAttribute:h,mdxJsxTextTagExpressionAttribute:u,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:a},exit:{mdxJsxFlowTagClosingMarker:o,mdxJsxFlowTagNamePrimary:l,mdxJsxFlowTagNameMember:c,mdxJsxFlowTagNameLocal:p,mdxJsxFlowTagExpressionAttribute:d,mdxJsxFlowTagExpressionAttributeValue:i,mdxJsxFlowTagAttributeNamePrimary:m,mdxJsxFlowTagAttributeNameLocal:f,mdxJsxFlowTagAttributeValueLiteral:g,mdxJsxFlowTagAttributeValueLiteralValue:i,mdxJsxFlowTagAttributeValueExpression:x,mdxJsxFlowTagAttributeValueExpressionValue:i,mdxJsxFlowTagSelfClosingMarker:y,mdxJsxFlowTag:v,mdxJsxTextTagClosingMarker:o,mdxJsxTextTagNamePrimary:l,mdxJsxTextTagNameMember:c,mdxJsxTextTagNameLocal:p,mdxJsxTextTagExpressionAttribute:d,mdxJsxTextTagExpressionAttributeValue:i,mdxJsxTextTagAttributeNamePrimary:m,mdxJsxTextTagAttributeNameLocal:f,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 s(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 nt("Unexpected closing slash `/` in tag, expected an open tag first",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function n(e){if(this.data.mdxJsxTag.close)throw new nt("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 nt("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 p(e){this.data.mdxJsxTag.name+=":"+this.sliceSerialize(e)}function h(e){const i=this.data.mdxJsxTag;n.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;n.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,s=i.attributes[i.attributes.length-1];it("mdxJsxExpressionAttribute"===s.type);const r=e.estree;s.value=this.resume(),it(void 0!==s.position),s.position.end=t(e.end),r&&(s.data={estree:r})}function m(e){const i=this.data.mdxJsxTag,s=i.attributes[i.attributes.length-1];it("mdxJsxAttribute"===s.type),s.name=this.sliceSerialize(e),it(void 0!==s.position),s.position.end=t(e.end)}function f(e){const i=this.data.mdxJsxTag,s=i.attributes[i.attributes.length-1];it("mdxJsxAttribute"===s.type),s.name+=":"+this.sliceSerialize(e),it(void 0!==s.position),s.position.end=t(e.end)}function g(e){const i=this.data.mdxJsxTag,s=i.attributes[i.attributes.length-1];s.value=function(e,t){const i=t||{},s="string"==typeof i.additional?i.additional.charCodeAt(0):i.additional,r=[];let n,a,o=0,l=-1,c="";i.position&&("start"in i.position||"indent"in i.position?(a=i.position.indent,n=i.position.start):n=i.position);let p,h=(n?n.line:0)||1,u=(n?n.column:0)||1,d=m();for(o--;++o<=e.length;)if(10===p&&(u=(a?a[l]:0)||1),p=e.charCodeAt(o),38===p){const t=e.charCodeAt(o+1);if(9===t||10===t||12===t||32===t||38===t||60===t||Number.isNaN(t)||s&&t===s){c+=String.fromCharCode(p),u++;continue}const n=o+1;let a,l=n,h=n;if(35===t){h=++l;const t=e.charCodeAt(h);88===t||120===t?(a="hexadecimal",h=++l):a="decimal"}else a="named";let x="",y="",v="";const b="named"===a?Cs:"decimal"===a?Es:Ss;for(h--;++h<=e.length;){const t=e.charCodeAt(h);if(!b(t))break;v+=String.fromCharCode(t),"named"===a&&ws.includes(v)&&(x=v,y=rt(v))}let w=59===e.charCodeAt(h);if(w){h++;const e="named"===a&&rt(v);e&&(x=v,y=e)}let k=1+h-n,E="";if(w||!1!==i.nonTerminated)if(v)if("named"===a){if(w&&!y)f(5,1);else if(x!==v&&(h=l+x.length,k=1+h-l,w=!1),!w){const t=x?1:3;if(i.attribute){const i=e.charCodeAt(h);61===i?(f(t,k),y=""):Cs(i)?y="":f(t,k)}else f(t,k)}E=y}else{w||f(2,k);let e=Number.parseInt(v,"hexadecimal"===a?16:10);if(Ns(e))f(7,k),E=String.fromCharCode(65533);else if(e in ks)f(6,k),E=ks[e];else{let t="";Is(e)&&f(6,k),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|1023&e),E=t+String.fromCharCode(e)}}else"named"!==a&&f(4,k);if(E){g(),d=m(),o=h-1,u+=h-n+1,r.push(E);const t=m();t.offset++,i.reference&&i.reference.call(i.referenceContext||void 0,E,{start:d,end:t},e.slice(n-1,h)),d=t}else v=e.slice(n-1,h),c+=v,u+=v.length,o=h-1}else 10===p&&(h++,l++,u=0),Number.isNaN(p)?g():(c+=String.fromCharCode(p),u++);return r.join("");function m(){return{line:h,column:u,offset:o+((n?n.offset:0)||0)}}function f(e,t){let s;i.warning&&(s=m(),s.column+=t,s.offset+=t,i.warning.call(i.warningContext||void 0,_s[e],s,e))}function g(){c&&(r.push(c),i.text&&i.text.call(i.textContext||void 0,c,{start:d,end:m()}),c="")}}(this.resume(),{nonTerminated:!1}),it(void 0!==s.position),s.position.end=t(e.end)}function x(e){const i=this.data.mdxJsxTag,s=i.attributes[i.attributes.length-1];it("mdxJsxAttribute"===s.type);const r={type:"mdxJsxAttributeValueExpression",value:this.resume()},n=e.estree;n&&(r.data={estree:n}),s.value=r,it(void 0!==s.position),s.position.end=t(e.end)}function y(){this.data.mdxJsxTag.selfClosing=!0}function v(e){const t=this.data.mdxJsxTag,i=this.data.mdxJsxTagStack,s=i[i.length-1];if(t.close&&s.name!==t.name)throw new nt("Unexpected closing tag `"+k(t)+"`, expected corresponding closing tag for `"+k(s)+"` ("+at(s)+")",{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,s=i[i.length-1],r=e?" before the end of `"+e.type+"`":"",n=e?{start:e.start,end:e.end}:void 0;throw new nt("Expected a closing tag for `"+k(s)+"` ("+at({start:t.start,end:t.end})+")"+r,n,"mdast-util-mdx-jsx:end-tag-mismatch")}function w(e,t){const i=this.data.mdxJsxTag;throw new nt("Expected the closing tag `"+k(i)+"` either after the end of `"+t.type+"` ("+at(t.end)+") or another opening tag after the start of `"+t.type+"` ("+at(t.start)+")",{start:e.start,end:e.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function k(e){return"<"+(e.close?"/":"")+(e.name||"")+">"}}function Ms(e){const t=e||{},i=t.quote||'"',s=t.quoteSmart||!1,r=t.tightSelfClosing||!1,n=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=Us,{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,p=!!e.name&&(!e.children||0===e.children.length),h=Bs(Fs(o)),u=o.createTracker(l),d=o.createTracker(l),m=[],f=(c?h:"")+"<"+(e.name||""),g=o.enter(e.type);if(u.move(f),d.move(f),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 n;if("mdxJsxExpressionAttribute"===r.type)n="{"+(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=s&&ot(e,i)>ot(e,a)?a:i;o=t+js(e,{subset:[t]})+t}n=t+(o?"=":"")+o}m.push(n)}}let x=!1;const y=m.join(" ");c&&(/\r?\n|\r/.test(y)||u.current().now.column+y.length+(p?r?2:3:1)>n)&&(x=!0);let v=u,b=f;if(x){v=d;let e=-1;for(;++e<m.length;)m[e]=h+" "+m[e];b+=v.move("\n"+m.join("\n")+"\n"+h)}else y&&(b+=v.move(" "+y));return p&&(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 s=t.indexStack,r=e.children,n=t.createTracker(i),a=Bs(Fs(t)),o=[];let l=-1;s.push(-1);for(;++l<r.length;){const i=r[l];s[s.length-1]=l;const c={before:"\n",after:"\n",...n.current()},p=t.handle(i,e,t,c),h="mdxJsxFlowElement"===i.type?p:t.indentLines(p,function(e,t,i){return(i?"":a)+e});o.push(n.move(h)),"list"!==i.type&&(t.bulletLastUsed=void 0),l<r.length-1&&o.push(n.move("\n\n"))}return s.pop(),o.join("")}(e,o,v.current())),b+=v.move("\n"))),p||(b+=v.move((c?h:"")+"</"+(e.name||"")+">")),g(),b}}function Fs(e){let t=0,i=e.stack.length;for(;--i>-1;){const s=e.stack[i];if("blockquote"===s||"listItem"===s)break;"mdxJsxFlowElement"===s&&t++}return t}function Bs(e){return" ".repeat(e)}function Us(){return"<"}function Js(e){this.enter({type:"mdxjsEsm",value:""},e),this.buffer()}function zs(e){const t=this.resume(),i=this.stack[this.stack.length-1];it("mdxjsEsm"===i.type),this.exit(e);const s=e.estree;i.value=t,s&&(i.data={estree:s})}function qs(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Xs(e){return e.value||""}var Gs=[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],Hs=[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],Ws="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨ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"},Ks="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",Qs={5:Ks,"5module":Ks+" export import",6:Ks+" const class extends export import super"},Ys=/^in(stanceof)?$/,Zs=new RegExp("["+Ws+"]"),er=new RegExp("["+Ws+"‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function tr(e,t){for(var i=65536,s=0;s<t.length;s+=2){if((i+=t[s])>e)return!1;if((i+=t[s+1])>=e)return!0}return!1}function ir(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&Zs.test(String.fromCharCode(e)):!1!==t&&tr(e,Hs)))}function sr(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&er.test(String.fromCharCode(e)):!1!==t&&(tr(e,Hs)||tr(e,Gs)))))}var rr=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 nr(e,t){return new rr(e,{beforeExpr:!0,binop:t})}var ar={beforeExpr:!0},or={startsExpr:!0},lr={};function cr(e,t){return void 0===t&&(t={}),t.keyword=e,lr[e]=new rr(e,t)}var pr={num:new rr("num",or),regexp:new rr("regexp",or),string:new rr("string",or),name:new rr("name",or),privateId:new rr("privateId",or),eof:new rr("eof"),bracketL:new rr("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new rr("]"),braceL:new rr("{",{beforeExpr:!0,startsExpr:!0}),braceR:new rr("}"),parenL:new rr("(",{beforeExpr:!0,startsExpr:!0}),parenR:new rr(")"),comma:new rr(",",ar),semi:new rr(";",ar),colon:new rr(":",ar),dot:new rr("."),question:new rr("?",ar),questionDot:new rr("?."),arrow:new rr("=>",ar),template:new rr("template"),invalidTemplate:new rr("invalidTemplate"),ellipsis:new rr("...",ar),backQuote:new rr("`",or),dollarBraceL:new rr("${",{beforeExpr:!0,startsExpr:!0}),eq:new rr("=",{beforeExpr:!0,isAssign:!0}),assign:new rr("_=",{beforeExpr:!0,isAssign:!0}),incDec:new rr("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new rr("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:nr("||",1),logicalAND:nr("&&",2),bitwiseOR:nr("|",3),bitwiseXOR:nr("^",4),bitwiseAND:nr("&",5),equality:nr("==/!=/===/!==",6),relational:nr("</>/<=/>=",7),bitShift:nr("<</>>/>>>",8),plusMin:new rr("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:nr("%",10),star:nr("*",10),slash:nr("/",10),starstar:new rr("**",{beforeExpr:!0}),coalesce:nr("??",1),_break:cr("break"),_case:cr("case",ar),_catch:cr("catch"),_continue:cr("continue"),_debugger:cr("debugger"),_default:cr("default",ar),_do:cr("do",{isLoop:!0,beforeExpr:!0}),_else:cr("else",ar),_finally:cr("finally"),_for:cr("for",{isLoop:!0}),_function:cr("function",or),_if:cr("if"),_return:cr("return",ar),_switch:cr("switch"),_throw:cr("throw",ar),_try:cr("try"),_var:cr("var"),_const:cr("const"),_while:cr("while",{isLoop:!0}),_with:cr("with"),_new:cr("new",{beforeExpr:!0,startsExpr:!0}),_this:cr("this",or),_super:cr("super",or),_class:cr("class",or),_extends:cr("extends",ar),_export:cr("export"),_import:cr("import",or),_null:cr("null",or),_true:cr("true",or),_false:cr("false",or),_in:cr("in",{beforeExpr:!0,binop:7}),_instanceof:cr("instanceof",{beforeExpr:!0,binop:7}),_typeof:cr("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:cr("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:cr("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},hr=/\r\n?|\n|\u2028|\u2029/,ur=new RegExp(hr.source,"g");function dr(e){return 10===e||13===e||8232===e||8233===e}function mr(e,t,i){void 0===i&&(i=e.length);for(var s=t;s<i;s++){var r=e.charCodeAt(s);if(dr(r))return s<i-1&&13===r&&10===e.charCodeAt(s+1)?s+2:s+1}return-1}var fr=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,gr=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,xr=Object.prototype,yr=xr.hasOwnProperty,vr=xr.toString,br=Object.hasOwn||function(e,t){return yr.call(e,t)},wr=Array.isArray||function(e){return"[object Array]"===vr.call(e)},kr=Object.create(null);function Er(e){return kr[e]||(kr[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function Sr(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}var Cr=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,_r=function(e,t){this.line=e,this.column=t};_r.prototype.offset=function(e){return new _r(this.line,this.column+e)};var Nr=function(e,t,i){this.start=t,this.end=i,null!==e.sourceFile&&(this.source=e.sourceFile)};function Ir(e,t){for(var i=1,s=0;;){var r=mr(e,s,t);if(r<0)return new _r(i,t-s);++i,s=r}}var Ar={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},Tr=!1;function Pr(e){var t={};for(var i in Ar)t[i]=e&&br(e,i)?e[i]:Ar[i];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!Tr&&"object"==typeof console&&console.warn&&(Tr=!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),wr(t.onToken)){var s=t.onToken;t.onToken=function(e){return s.push(e)}}if(wr(t.onComment)&&(t.onComment=function(e,t){return function(i,s,r,n,a,o){var l={type:i?"Block":"Line",value:s,start:r,end:n};e.locations&&(l.loc=new Nr(this,a,o)),e.ranges&&(l.range=[r,n]),t.push(l)}}(t,t.onComment)),"commonjs"===t.sourceType&&t.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return t}var Lr=256,Vr=259;function Rr(e,t){return 2|(e?4:0)|(t?8:0)}var Or=function(e,t,i){this.options=e=Pr(e),this.sourceFile=e.sourceFile,this.keywords=Er(Qs[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var s="";!0!==e.allowReserved&&(s=$s[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(s+=" await")),this.reservedWords=Er(s);var r=(s?s+" ":"")+$s.strict;this.reservedWordsStrict=Er(r),this.reservedWordsStrictBind=Er(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(hr).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=pr.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=[]},jr={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}};Or.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},jr.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},jr.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},jr.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},jr.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},jr.allowReturn.get=function(){return!!this.inFunction||!!(this.options.allowReturnOutsideFunction&&1&this.currentVarScope().flags)},jr.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0||this.options.allowSuperOutsideMethod},jr.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},jr.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},jr.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},jr.allowUsing.get=function(){var e=this.currentScope().flags;return!(1024&e)&&!(!this.inModule&&1&e)},jr.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Lr)>0},Or.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var i=this,s=0;s<e.length;s++)i=e[s](i);return i},Or.parse=function(e,t){return new this(t,e).parse()},Or.parseExpressionAt=function(e,t,i){var s=new this(i,e,t);return s.nextToken(),s.parseExpression()},Or.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(Or.prototype,jr);var Dr=Or.prototype,Mr=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Dr.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){gr.lastIndex=e,e+=gr.exec(this.input)[0].length;var t=Mr.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){gr.lastIndex=e+t[0].length;var i=gr.exec(this.input),s=i.index+i[0].length,r=this.input.charAt(s);return";"===r||"}"===r||hr.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||"!"===r&&"="===this.input.charAt(s+1))}e+=t[0].length,gr.lastIndex=e,e+=gr.exec(this.input)[0].length,";"===this.input[e]&&e++}},Dr.eat=function(e){return this.type===e&&(this.next(),!0)},Dr.isContextual=function(e){return this.type===pr.name&&this.value===e&&!this.containsEsc},Dr.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},Dr.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},Dr.canInsertSemicolon=function(){return this.type===pr.eof||this.type===pr.braceR||hr.test(this.input.slice(this.lastTokEnd,this.start))},Dr.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Dr.semicolon=function(){this.eat(pr.semi)||this.insertSemicolon()||this.unexpected()},Dr.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},Dr.expect=function(e){this.eat(e)||this.unexpected()},Dr.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var Fr=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Dr.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")}},Dr.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,s=e.doubleProto;if(!t)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")},Dr.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")},Dr.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var Br=Or.prototype;Br.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==pr.eof;){var i=this.parseStatement(null,!0,t);e.body.push(i)}if(this.inModule)for(var s=0,r=Object.keys(this.undefinedExports);s<r.length;s+=1){var n=r[s];this.raiseRecoverable(this.undefinedExports[n].start,"Export '"+n+"' 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 Ur={kind:"loop"},Jr={kind:"switch"};Br.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;gr.lastIndex=this.pos;var t=gr.exec(this.input),i=this.pos+t[0].length,s=this.fullCharCodeAt(i);if(91===s||92===s)return!0;if(e)return!1;if(123===s)return!0;if(ir(s)){var r=i;do{i+=s<=65535?1:2}while(sr(s=this.fullCharCodeAt(i)));if(92===s)return!0;var n=this.input.slice(r,i);if(!Ys.test(n))return!0}return!1},Br.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;gr.lastIndex=this.pos;var e,t=gr.exec(this.input),i=this.pos+t[0].length;return!(hr.test(this.input.slice(this.pos,i))||"function"!==this.input.slice(i,i+8)||i+8!==this.input.length&&(sr(e=this.fullCharCodeAt(i+8))||92===e))},Br.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;gr.lastIndex=this.pos;var i=gr.exec(this.input),s=this.pos+i[0].length;if(hr.test(this.input.slice(this.pos,s)))return!1;if(e){var r,n=s+5;if("using"!==this.input.slice(s,n)||n===this.input.length||sr(r=this.fullCharCodeAt(n))||92===r)return!1;gr.lastIndex=n;var a=gr.exec(this.input);if(s=n+a[0].length,a&&hr.test(this.input.slice(n,s)))return!1}var o=this.fullCharCodeAt(s);if(!ir(o)&&92!==o)return!1;var l=s;do{s+=o<=65535?1:2}while(sr(o=this.fullCharCodeAt(s)));if(92===o)return!0;var c=this.input.slice(l,s);return!(Ys.test(c)||t&&"of"===c)},Br.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)},Br.isUsing=function(e){return this.isUsingKeyword(!1,e)},Br.parseStatement=function(e,t,i){var s,r=this.type,n=this.startNode();switch(this.isLet(e)&&(r=pr._var,s="let"),r){case pr._break:case pr._continue:return this.parseBreakContinueStatement(n,r.keyword);case pr._debugger:return this.parseDebuggerStatement(n);case pr._do:return this.parseDoStatement(n);case pr._for:return this.parseForStatement(n);case pr._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(n,!1,!e);case pr._class:return e&&this.unexpected(),this.parseClass(n,!0);case pr._if:return this.parseIfStatement(n);case pr._return:return this.parseReturnStatement(n);case pr._switch:return this.parseSwitchStatement(n);case pr._throw:return this.parseThrowStatement(n);case pr._try:return this.parseTryStatement(n);case pr._const:case pr._var:return s=s||this.value,e&&"var"!==s&&this.unexpected(),this.parseVarStatement(n,s);case pr._while:return this.parseWhileStatement(n);case pr._with:return this.parseWithStatement(n);case pr.braceL:return this.parseBlock(!0,n);case pr.semi:return this.parseEmptyStatement(n);case pr._export:case pr._import:if(this.options.ecmaVersion>10&&r===pr._import){gr.lastIndex=this.pos;var a=gr.exec(this.input),o=this.pos+a[0].length,l=this.input.charCodeAt(o);if(40===l||46===l)return this.parseExpressionStatement(n,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===pr._import?this.parseImport(n):this.parseExport(n,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(n,!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(n,!1,c),this.semicolon(),this.finishNode(n,"VariableDeclaration");var p=this.value,h=this.parseExpression();return r===pr.name&&"Identifier"===h.type&&this.eat(pr.colon)?this.parseLabeledStatement(n,p,h,e):this.parseExpressionStatement(n,h)}},Br.parseBreakContinueStatement=function(e,t){var i="break"===t;this.next(),this.eat(pr.semi)||this.insertSemicolon()?e.label=null:this.type!==pr.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var s=0;s<this.labels.length;++s){var r=this.labels[s];if(null==e.label||r.name===e.label.name){if(null!=r.kind&&(i||"loop"===r.kind))break;if(e.label&&i)break}}return s===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,i?"BreakStatement":"ContinueStatement")},Br.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},Br.parseDoStatement=function(e){return this.next(),this.labels.push(Ur),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(pr._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(pr.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},Br.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ur),this.enterScope(0),this.expect(pr.parenL),this.type===pr.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===pr._var||this.type===pr._const||i){var s=this.startNode(),r=i?"let":this.value;return this.next(),this.parseVar(s,!0,r),this.finishNode(s,"VariableDeclaration"),this.parseForAfterInit(e,s,t)}var n=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,p=new Fr,h=this.start,u=t>-1?this.parseExprSubscripts(p,"await"):this.parseExpression(!0,p);return this.type===pr._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===pr._in&&this.unexpected(t),e.await=!0):a&&this.options.ecmaVersion>=8&&(u.start!==h||c||"Identifier"!==u.type||"async"!==u.name?this.options.ecmaVersion>=9&&(e.await=!1):this.unexpected()),n&&a&&this.raise(u.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(u,!1,p),this.checkLValPattern(u),this.parseForIn(e,u)):(this.checkExpressionErrors(p,!0),t>-1&&this.unexpected(t),this.parseFor(e,u))},Br.parseForAfterInit=function(e,t,i){return(this.type===pr._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===t.declarations.length?(this.options.ecmaVersion>=9&&(this.type===pr._in?i>-1&&this.unexpected(i):e.await=i>-1),this.parseForIn(e,t)):(i>-1&&this.unexpected(i),this.parseFor(e,t))},Br.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,qr|(i?0:Xr),!1,t)},Br.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(pr._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},Br.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(pr.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},Br.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(pr.braceL),this.labels.push(Jr),this.enterScope(1024);for(var i=!1;this.type!==pr.braceR;)if(this.type===pr._case||this.type===pr._default){var s=this.type===pr._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),s?t.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,t.test=null),this.expect(pr.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")},Br.parseThrowStatement=function(e){return this.next(),hr.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 zr=[];Br.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?32:0),this.checkLValPattern(e,t?4:2),this.expect(pr.parenR),e},Br.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===pr._catch){var t=this.startNode();this.next(),this.eat(pr.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(pr._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},Br.parseVarStatement=function(e,t,i){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")},Br.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Ur),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},Br.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")},Br.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},Br.parseLabeledStatement=function(e,t,i,s){for(var r=0,n=this.labels;r<n.length;r+=1){n[r].name===t&&this.raise(i.start,"Label '"+t+"' is already declared")}for(var a=this.type.isLoop?"loop":this.type===pr._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(s?-1===s.indexOf("label")?s+"label":s:"label"),this.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")},Br.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},Br.parseBlock=function(e,t,i){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(pr.braceL),e&&this.enterScope(0);this.type!==pr.braceR;){var s=this.parseStatement(null);t.body.push(s)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},Br.parseFor=function(e,t){return e.init=t,this.expect(pr.semi),e.test=this.type===pr.semi?null:this.parseExpression(),this.expect(pr.semi),e.update=this.type===pr.parenR?null:this.parseExpression(),this.expect(pr.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},Br.parseForIn=function(e,t){var i=this.type===pr._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(pr.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")},Br.parseVar=function(e,t,i,s){for(e.declarations=[],e.kind=i;;){var r=this.startNode();if(this.parseVarId(r,i),this.eat(pr.eq)?r.init=this.parseMaybeAssign(t):s||"const"!==i||this.type===pr._in||this.options.ecmaVersion>=6&&this.isContextual("of")?s||"using"!==i&&"await using"!==i||!(this.options.ecmaVersion>=17)||this.type===pr._in||this.isContextual("of")?s||"Identifier"===r.id.type||t&&(this.type===pr._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(pr.comma))break}return e},Br.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 qr=1,Xr=2;function Gr(e,t){var i=t.key.name,s=e[i],r="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(r=(t.static?"s":"i")+t.kind),"iget"===s&&"iset"===r||"iset"===s&&"iget"===r||"sget"===s&&"sset"===r||"sset"===s&&"sget"===r?(e[i]="true",!1):!!s||(e[i]=r,!1)}function Hr(e,t){var i=e.computed,s=e.key;return!i&&("Identifier"===s.type&&s.name===t||"Literal"===s.type&&s.value===t)}Br.parseFunction=function(e,t,i,s,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===pr.star&&t&Xr&&this.unexpected(),e.generator=this.eat(pr.star)),this.options.ecmaVersion>=8&&(e.async=!!s),t&qr&&(e.id=4&t&&this.type!==pr.name?null:this.parseIdent(),!e.id||t&Xr||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var n=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Rr(e.async,e.generator)),t&qr||(e.id=this.type===pr.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,r),this.yieldPos=n,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&qr?"FunctionDeclaration":"FunctionExpression")},Br.parseFunctionParams=function(e){this.expect(pr.parenL),e.params=this.parseBindingList(pr.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Br.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var s=this.enterClassBody(),r=this.startNode(),n=!1;for(r.body=[],this.expect(pr.braceL);this.type!==pr.braceR;){var a=this.parseClassElement(null!==e.superClass);a&&(r.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(n&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),n=!0):a.key&&"PrivateIdentifier"===a.key.type&&Gr(s,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")},Br.parseClassElement=function(e){if(this.eat(pr.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),s="",r=!1,n=!1,a="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(pr.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===pr.star?o=!0:s="static"}if(i.static=o,!s&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==pr.star||this.canInsertSemicolon()?s="async":n=!0),!s&&(t>=9||!n)&&this.eat(pr.star)&&(r=!0),!s&&!n&&!r){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=l:s=l)}if(s?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=s,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===pr.parenL||"method"!==a||r||n){var c=!i.static&&Hr(i,"constructor"),p=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,n,p)}else this.parseClassField(i);return i},Br.isClassElementNameStart=function(){return this.type===pr.name||this.type===pr.privateId||this.type===pr.num||this.type===pr.string||this.type===pr.bracketL||this.type.keyword},Br.parseClassElementName=function(e){this.type===pr.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)},Br.parseClassMethod=function(e,t,i,s){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&&Hr(e,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var n=e.value=this.parseMethod(t,i,s);return"get"===e.kind&&0!==n.params.length&&this.raiseRecoverable(n.start,"getter should have no params"),"set"===e.kind&&1!==n.params.length&&this.raiseRecoverable(n.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===n.params[0].type&&this.raiseRecoverable(n.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},Br.parseClassField=function(e){return Hr(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Hr(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(pr.eq)?(this.enterScope(576),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")},Br.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==pr.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},Br.parseClassId=function(e,t){this.type===pr.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},Br.parseClassSuper=function(e){e.superClass=this.eat(pr._extends)?this.parseExprSubscripts(null,!1):null},Br.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},Br.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,i=e.used;if(this.options.checkPrivateFields)for(var s=this.privateNameStack.length,r=0===s?null:this.privateNameStack[s-1],n=0;n<i.length;++n){var a=i[n];br(t,a.name)||(r?r.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}},Br.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!==pr.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},Br.parseExport=function(e,t){if(this.next(),this.eat(pr.star))return this.parseExportAllDeclaration(e,t);if(this.eat(pr._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!==pr.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var i=0,s=e.specifiers;i<s.length;i+=1){var r=s[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")},Br.parseExportDeclaration=function(e){return this.parseStatement(null)},Br.parseExportDefaultDeclaration=function(){var e;if(this.type===pr._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,4|qr,!1,e)}if(this.type===pr._class){var i=this.startNode();return this.parseClass(i,"nullableID")}var s=this.parseMaybeAssign();return this.semicolon(),s},Br.checkExport=function(e,t,i){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),br(e,t)&&this.raiseRecoverable(i,"Duplicate export '"+t+"'"),e[t]=!0)},Br.checkPatternExport=function(e,t){var i=t.type;if("Identifier"===i)this.checkExport(e,t,t.start);else if("ObjectPattern"===i)for(var s=0,r=t.properties;s<r.length;s+=1){var n=r[s];this.checkPatternExport(e,n)}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)},Br.checkVariableExport=function(e,t){if(e)for(var i=0,s=t;i<s.length;i+=1){var r=s[i];this.checkPatternExport(e,r.id)}},Br.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},Br.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")},Br.parseExportSpecifiers=function(e){var t=[],i=!0;for(this.expect(pr.braceL);!this.eat(pr.braceR);){if(i)i=!1;else if(this.expect(pr.comma),this.afterTrailingComma(pr.braceR))break;t.push(this.parseExportSpecifier(e))}return t},Br.parseImport=function(e){return this.next(),this.type===pr.string?(e.specifiers=zr,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===pr.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},Br.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")},Br.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportDefaultSpecifier")},Br.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")},Br.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===pr.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(pr.comma)))return e;if(this.type===pr.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(pr.braceL);!this.eat(pr.braceR);){if(t)t=!1;else if(this.expect(pr.comma),this.afterTrailingComma(pr.braceR))break;e.push(this.parseImportSpecifier())}return e},Br.parseWithClause=function(){var e=[];if(!this.eat(pr._with))return e;this.expect(pr.braceL);for(var t={},i=!0;!this.eat(pr.braceR);){if(i)i=!1;else if(this.expect(pr.comma),this.afterTrailingComma(pr.braceR))break;var s=this.parseImportAttribute(),r="Identifier"===s.key.type?s.key.name:s.key.value;br(t,r)&&this.raiseRecoverable(s.key.start,"Duplicate attribute key '"+r+"'"),t[r]=!0,e.push(s)}return e},Br.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===pr.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(pr.colon),this.type!==pr.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")},Br.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===pr.string){var e=this.parseLiteral(this.value);return Cr.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},Br.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)},Br.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 Wr=Or.prototype;Wr.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 s=0,r=e.properties;s<r.length;s+=1){var n=r[s];this.toAssignable(n,t),"RestElement"!==n.type||"ArrayPattern"!==n.argument.type&&"ObjectPattern"!==n.argument.type||this.raise(n.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},Wr.toAssignableList=function(e,t){for(var i=e.length,s=0;s<i;s++){var r=e[s];r&&this.toAssignable(r,t)}if(i){var n=e[i-1];6===this.options.ecmaVersion&&t&&n&&"RestElement"===n.type&&"Identifier"!==n.argument.type&&this.unexpected(n.argument.start)}return e},Wr.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},Wr.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==pr.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},Wr.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case pr.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(pr.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case pr.braceL:return this.parseObj(!0)}return this.parseIdent()},Wr.parseBindingList=function(e,t,i,s){for(var r=[],n=!0;!this.eat(e);)if(n?n=!1:this.expect(pr.comma),t&&this.type===pr.comma)r.push(null);else{if(i&&this.afterTrailingComma(e))break;if(this.type===pr.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),r.push(a),this.type===pr.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}r.push(this.parseAssignableListItem(s))}return r},Wr.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},Wr.parseBindingListItem=function(e){return e},Wr.parseMaybeDefault=function(e,t,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(pr.eq))return i;var s=this.startNodeAt(e,t);return s.left=i,s.right=this.parseMaybeAssign(),this.finishNode(s,"AssignmentPattern")},Wr.checkLValSimple=function(e,t,i){void 0===t&&(t=0);var s=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(s?"Binding ":"Assigning to ")+e.name+" in strict mode"),s&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),i&&(br(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":s&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return s&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,i);default:this.raise(e.start,(s?"Binding":"Assigning to")+" rvalue")}},Wr.checkLValPattern=function(e,t,i){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var s=0,r=e.properties;s<r.length;s+=1){var n=r[s];this.checkLValInnerPattern(n,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)}},Wr.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 $r=function(e,t,i,s,r){this.token=e,this.isExpr=!!t,this.preserveSpace=!!i,this.override=s,this.generator=!!r},Kr={b_stat:new $r("{",!1),b_expr:new $r("{",!0),b_tmpl:new $r("${",!1),p_stat:new $r("(",!1),p_expr:new $r("(",!0),q_tmpl:new $r("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new $r("function",!1),f_expr:new $r("function",!0),f_expr_gen:new $r("function",!0,!1,null,!0),f_gen:new $r("function",!1,!1,null,!0)},Qr=Or.prototype;Qr.initialContext=function(){return[Kr.b_stat]},Qr.curContext=function(){return this.context[this.context.length-1]},Qr.braceIsBlock=function(e){var t=this.curContext();return t===Kr.f_expr||t===Kr.f_stat||(e!==pr.colon||t!==Kr.b_stat&&t!==Kr.b_expr?e===pr._return||e===pr.name&&this.exprAllowed?hr.test(this.input.slice(this.lastTokEnd,this.start)):e===pr._else||e===pr.semi||e===pr.eof||e===pr.parenR||e===pr.arrow||(e===pr.braceL?t===Kr.b_stat:e!==pr._var&&e!==pr._const&&e!==pr.name&&!this.exprAllowed):!t.isExpr)},Qr.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},Qr.updateContext=function(e){var t,i=this.type;i.keyword&&e===pr.dot?this.exprAllowed=!1:(t=i.updateContext)?t.call(this,e):this.exprAllowed=i.beforeExpr},Qr.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},pr.parenR.updateContext=pr.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===Kr.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},pr.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?Kr.b_stat:Kr.b_expr),this.exprAllowed=!0},pr.dollarBraceL.updateContext=function(){this.context.push(Kr.b_tmpl),this.exprAllowed=!0},pr.parenL.updateContext=function(e){var t=e===pr._if||e===pr._for||e===pr._with||e===pr._while;this.context.push(t?Kr.p_stat:Kr.p_expr),this.exprAllowed=!0},pr.incDec.updateContext=function(){},pr._function.updateContext=pr._class.updateContext=function(e){!e.beforeExpr||e===pr._else||e===pr.semi&&this.curContext()!==Kr.p_stat||e===pr._return&&hr.test(this.input.slice(this.lastTokEnd,this.start))||(e===pr.colon||e===pr.braceL)&&this.curContext()===Kr.b_stat?this.context.push(Kr.f_stat):this.context.push(Kr.f_expr),this.exprAllowed=!1},pr.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},pr.backQuote.updateContext=function(){this.curContext()===Kr.q_tmpl?this.context.pop():this.context.push(Kr.q_tmpl),this.exprAllowed=!1},pr.star.updateContext=function(e){if(e===pr._function){var t=this.context.length-1;this.context[t]===Kr.f_expr?this.context[t]=Kr.f_expr_gen:this.context[t]=Kr.f_gen}this.exprAllowed=!0},pr.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==pr.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var Yr=Or.prototype;function Zr(e){return"Identifier"===e.type||"ParenthesizedExpression"===e.type&&Zr(e.expression)}function en(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&en(e.expression)||"ParenthesizedExpression"===e.type&&en(e.expression)}Yr.checkPropClash=function(e,t,i){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var s,r=e.key;switch(r.type){case"Identifier":s=r.name;break;case"Literal":s=String(r.value);break;default:return}var n=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===s&&"init"===n&&(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[s="$"+s];if(a)("init"===n?this.strict&&a.init||a.get||a.set:a.init||a[n])&&this.raiseRecoverable(r.start,"Redefinition of property");else a=t[s]={init:!1,get:!1,set:!1};a[n]=!0}}},Yr.parseExpression=function(e,t){var i=this.start,s=this.startLoc,r=this.parseMaybeAssign(e,t);if(this.type===pr.comma){var n=this.startNodeAt(i,s);for(n.expressions=[r];this.eat(pr.comma);)n.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(n,"SequenceExpression")}return r},Yr.parseMaybeAssign=function(e,t,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var s=!1,r=-1,n=-1,a=-1;t?(r=t.parenthesizedAssign,n=t.trailingComma,a=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Fr,s=!0);var o=this.start,l=this.startLoc;this.type!==pr.parenL&&this.type!==pr.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 p=this.startNodeAt(o,l);return p.operator=this.value,this.type===pr.eq&&(c=this.toAssignable(c,!1,t)),s||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===pr.eq?this.checkLValPattern(c):this.checkLValSimple(c),p.left=c,this.next(),p.right=this.parseMaybeAssign(e),a>-1&&(t.doubleProto=a),this.finishNode(p,"AssignmentExpression")}return s&&this.checkExpressionErrors(t,!0),r>-1&&(t.parenthesizedAssign=r),n>-1&&(t.trailingComma=n),c},Yr.parseMaybeConditional=function(e,t){var i=this.start,s=this.startLoc,r=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return r;if(this.eat(pr.question)){var n=this.startNodeAt(i,s);return n.test=r,n.consequent=this.parseMaybeAssign(),this.expect(pr.colon),n.alternate=this.parseMaybeAssign(e),this.finishNode(n,"ConditionalExpression")}return r},Yr.parseExprOps=function(e,t){var i=this.start,s=this.startLoc,r=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||r.start===i&&"ArrowFunctionExpression"===r.type?r:this.parseExprOp(r,i,s,-1,e)},Yr.parseExprOp=function(e,t,i,s,r){var n=this.type.binop;if(null!=n&&(!r||this.type!==pr._in)&&n>s){var a=this.type===pr.logicalOR||this.type===pr.logicalAND,o=this.type===pr.coalesce;o&&(n=pr.logicalAND.binop);var l=this.value;this.next();var c=this.start,p=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,r),c,p,n,r),u=this.buildBinary(t,i,e,h,l,a||o);return(a&&this.type===pr.coalesce||o&&(this.type===pr.logicalOR||this.type===pr.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(u,t,i,s,r)}return e},Yr.buildBinary=function(e,t,i,s,r,n){"PrivateIdentifier"===s.type&&this.raise(s.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=s,this.finishNode(a,n?"LogicalExpression":"BinaryExpression")},Yr.parseMaybeUnary=function(e,t,i,s){var r,n=this.start,a=this.startLoc;if(this.isContextual("await")&&this.canAwait)r=this.parseAwait(s),t=!0;else if(this.type.prefix){var o=this.startNode(),l=this.type===pr.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,l,s),this.checkExpressionErrors(e,!0),l?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&Zr(o.argument)?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&en(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!==pr.privateId){if(r=this.parseExprSubscripts(e,s),this.checkExpressionErrors(e))return r;for(;this.type.postfix&&!this.canInsertSemicolon();){var c=this.startNodeAt(n,a);c.operator=this.value,c.prefix=!1,c.argument=r,this.checkLValSimple(r),this.next(),r=this.finishNode(c,"UpdateExpression")}}else(s||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),r=this.parsePrivateIdent(),this.type!==pr._in&&this.unexpected();return i||!this.eat(pr.starstar)?r:t?void this.unexpected(this.lastTokStart):this.buildBinary(n,a,r,this.parseMaybeUnary(null,!1,!1,s),"**",!1)},Yr.parseExprSubscripts=function(e,t){var i=this.start,s=this.startLoc,r=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return r;var n=this.parseSubscripts(r,i,s,!1,t);return e&&"MemberExpression"===n.type&&(e.parenthesizedAssign>=n.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=n.start&&(e.parenthesizedBind=-1),e.trailingComma>=n.start&&(e.trailingComma=-1)),n},Yr.parseSubscripts=function(e,t,i,s,r){for(var n=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,s,n,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}},Yr.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(pr.arrow)},Yr.parseSubscriptAsyncArrow=function(e,t,i,s){return this.parseArrowExpression(this.startNodeAt(e,t),i,!0,s)},Yr.parseSubscript=function(e,t,i,s,r,n,a){var o=this.options.ecmaVersion>=11,l=o&&this.eat(pr.questionDot);s&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(pr.bracketL);if(c||l&&this.type!==pr.parenL&&this.type!==pr.backQuote||this.eat(pr.dot)){var p=this.startNodeAt(t,i);p.object=e,c?(p.property=this.parseExpression(),this.expect(pr.bracketR)):this.type===pr.privateId&&"Super"!==e.type?p.property=this.parsePrivateIdent():p.property=this.parseIdent("never"!==this.options.allowReserved),p.computed=!!c,o&&(p.optional=l),e=this.finishNode(p,"MemberExpression")}else if(!s&&this.eat(pr.parenL)){var h=new Fr,u=this.yieldPos,d=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var f=this.parseExprList(pr.parenR,this.options.ecmaVersion>=8,!1,h);if(r&&!l&&this.shouldParseAsyncArrow())return this.checkPatternErrors(h,!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=m,this.parseSubscriptAsyncArrow(t,i,f,a);this.checkExpressionErrors(h,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=d||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var g=this.startNodeAt(t,i);g.callee=e,g.arguments=f,o&&(g.optional=l),e=this.finishNode(g,"CallExpression")}else if(this.type===pr.backQuote){(l||n)&&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},Yr.parseExprAtom=function(e,t,i){this.type===pr.slash&&this.readRegexp();var s,r=this.potentialArrowAt===this.start;switch(this.type){case pr._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),s=this.startNode(),this.next(),this.type!==pr.parenL||this.allowDirectSuper||this.raise(s.start,"super() call outside constructor of a subclass"),this.type!==pr.dot&&this.type!==pr.bracketL&&this.type!==pr.parenL&&this.unexpected(),this.finishNode(s,"Super");case pr._this:return s=this.startNode(),this.next(),this.finishNode(s,"ThisExpression");case pr.name:var n=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(pr._function))return this.overrideContext(Kr.f_expr),this.parseFunction(this.startNodeAt(n,a),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(pr.arrow))return this.parseArrowExpression(this.startNodeAt(n,a),[l],!1,t);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===pr.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(pr.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,a),[l],!0,t)}return l;case pr.regexp:var c=this.value;return(s=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},s;case pr.num:case pr.string:return this.parseLiteral(this.value);case pr._null:case pr._true:case pr._false:return(s=this.startNode()).value=this.type===pr._null?null:this.type===pr._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case pr.parenL:var p=this.start,h=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(h)&&(e.parenthesizedAssign=p),e.parenthesizedBind<0&&(e.parenthesizedBind=p)),h;case pr.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(pr.bracketR,!0,!0,e),this.finishNode(s,"ArrayExpression");case pr.braceL:return this.overrideContext(Kr.b_expr),this.parseObj(!1,e);case pr._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case pr._class:return this.parseClass(this.startNode(),!1);case pr._new:return this.parseNew();case pr.backQuote:return this.parseTemplate();case pr._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}},Yr.parseExprAtomDefault=function(){this.unexpected()},Yr.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===pr.parenL&&!e)return this.parseDynamicImport(t);if(this.type===pr.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()},Yr.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(pr.parenR)?e.options=null:(this.expect(pr.comma),this.afterTrailingComma(pr.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(pr.parenR)||(this.expect(pr.comma),this.afterTrailingComma(pr.parenR)||this.unexpected())));else if(!this.eat(pr.parenR)){var t=this.start;this.eat(pr.comma)&&this.eat(pr.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},Yr.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")},Yr.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")},Yr.parseParenExpression=function(){this.expect(pr.parenL);var e=this.parseExpression();return this.expect(pr.parenR),e},Yr.shouldParseArrow=function(e){return!this.canInsertSemicolon()},Yr.parseParenAndDistinguishExpression=function(e,t){var i,s=this.start,r=this.startLoc,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,l=this.startLoc,c=[],p=!0,h=!1,u=new Fr,d=this.yieldPos,m=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==pr.parenR;){if(p?p=!1:this.expect(pr.comma),n&&this.afterTrailingComma(pr.parenR,!0)){h=!0;break}if(this.type===pr.ellipsis){a=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===pr.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}c.push(this.parseMaybeAssign(!1,u,this.parseParenItem))}var f=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(pr.parenR),e&&this.shouldParseArrow(c)&&this.eat(pr.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=m,this.parseParenArrowList(s,r,c,t);c.length&&!h||this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(u,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=m||this.awaitPos,c.length>1?((i=this.startNodeAt(o,l)).expressions=c,this.finishNodeAt(i,"SequenceExpression",f,g)):i=c[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var x=this.startNodeAt(s,r);return x.expression=i,this.finishNode(x,"ParenthesizedExpression")}return i},Yr.parseParenItem=function(e){return e},Yr.parseParenArrowList=function(e,t,i,s){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,s)};var tn=[];Yr.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===pr.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 s=this.start,r=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),s,r,!0,!1),this.eat(pr.parenL)?e.arguments=this.parseExprList(pr.parenR,this.options.ecmaVersion>=8,!1):e.arguments=tn,this.finishNode(e,"NewExpression")},Yr.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===pr.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===pr.backQuote,this.finishNode(i,"TemplateElement")},Yr.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 s=this.parseTemplateElement({isTagged:t});for(i.quasis=[s];!s.tail;)this.type===pr.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(pr.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(pr.braceR),i.quasis.push(s=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")},Yr.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===pr.name||this.type===pr.num||this.type===pr.string||this.type===pr.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===pr.star)&&!hr.test(this.input.slice(this.lastTokEnd,this.start))},Yr.parseObj=function(e,t){var i=this.startNode(),s=!0,r={};for(i.properties=[],this.next();!this.eat(pr.braceR);){if(s)s=!1;else if(this.expect(pr.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(pr.braceR))break;var n=this.parseProperty(e,t);e||this.checkPropClash(n,r,t),i.properties.push(n)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")},Yr.parseProperty=function(e,t){var i,s,r,n,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(pr.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===pr.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===pr.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,n=this.startLoc),e||(i=this.eat(pr.star)));var o=this.containsEsc;return this.parsePropertyName(a),!e&&!o&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(a)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(pr.star),this.parsePropertyName(a)):s=!1,this.parsePropertyValue(a,e,i,s,r,n,t,o),this.finishNode(a,"Property")},Yr.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 s=e.value.start;"get"===e.kind?this.raiseRecoverable(s,"getter should have no params"):this.raiseRecoverable(s,"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")},Yr.parsePropertyValue=function(e,t,i,s,r,n,a,o){(i||s)&&this.type===pr.colon&&this.unexpected(),this.eat(pr.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init"):this.options.ecmaVersion>=6&&this.type===pr.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(i,s),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===pr.comma||this.type===pr.braceR||this.type===pr.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((i||s)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=r),t?e.value=this.parseMaybeDefault(r,n,this.copyNode(e.key)):this.type===pr.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(r,n,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected():((i||s)&&this.unexpected(),this.parseGetterSetter(e))},Yr.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(pr.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(pr.bracketR),e.key;e.computed=!1}return e.key=this.type===pr.num||this.type===pr.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},Yr.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},Yr.parseMethod=function(e,t,i){var s=this.startNode(),r=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=e),this.options.ecmaVersion>=8&&(s.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|Rr(t,s.generator)|(i?128:0)),this.expect(pr.parenL),s.params=this.parseBindingList(pr.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(s,"FunctionExpression")},Yr.parseArrowExpression=function(e,t,i,s){var r=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|Rr(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,s),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")},Yr.parseFunctionBody=function(e,t,i,s){var r=t&&this.type!==pr.braceL,n=this.strict,a=!1;if(r)e.body=this.parseMaybeAssign(s),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);n&&!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,!n&&!a&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,a&&!n),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()},Yr.isSimpleParamList=function(e){for(var t=0,i=e;t<i.length;t+=1){if("Identifier"!==i[t].type)return!1}return!0},Yr.checkParams=function(e,t){for(var i=Object.create(null),s=0,r=e.params;s<r.length;s+=1){var n=r[s];this.checkLValInnerPattern(n,1,t?null:i)}},Yr.parseExprList=function(e,t,i,s){for(var r=[],n=!0;!this.eat(e);){if(n)n=!1;else if(this.expect(pr.comma),t&&this.afterTrailingComma(e))break;var a=void 0;i&&this.type===pr.comma?a=null:this.type===pr.ellipsis?(a=this.parseSpread(s),s&&this.type===pr.comma&&s.trailingComma<0&&(s.trailingComma=this.start)):a=this.parseMaybeAssign(!1,s),r.push(a)}return r},Yr.checkUnreserved=function(e){var t=e.start,i=e.end,s=e.name;(this.inGenerator&&"yield"===s&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===s&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().flags&Vr||"arguments"!==s||this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==s&&"await"!==s||this.raise(t,"Cannot use "+s+" in class static initialization block"),this.keywords.test(s)&&this.raise(t,"Unexpected keyword '"+s+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,i).indexOf("\\"))||(this.strict?this.reservedWordsStrict:this.reservedWords).test(s)&&(this.inAsync||"await"!==s||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+s+"' is reserved"))},Yr.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},Yr.parseIdentNode=function(){var e=this.startNode();return this.type===pr.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=pr.name):this.unexpected(),e},Yr.parsePrivateIdent=function(){var e=this.startNode();return this.type===pr.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},Yr.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===pr.semi||this.canInsertSemicolon()||this.type!==pr.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(pr.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},Yr.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 sn=Or.prototype;sn.raise=function(e,t){var i=Ir(this.input,e);t+=" ("+i.line+":"+i.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var s=new SyntaxError(t);throw s.pos=e,s.loc=i,s.raisedAt=this.pos,s},sn.raiseRecoverable=sn.raise,sn.curPosition=function(){if(this.options.locations)return new _r(this.curLine,this.pos-this.lineStart)};var rn=Or.prototype,nn=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};rn.enterScope=function(e){this.scopeStack.push(new nn(e))},rn.exitScope=function(){this.scopeStack.pop()},rn.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},rn.declareName=function(e,t,i){var s=!1;if(2===t){var r=this.currentScope();s=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 n=this.currentScope();s=this.treatFunctionsAsVar?n.lexical.indexOf(e)>-1:n.lexical.indexOf(e)>-1||n.var.indexOf(e)>-1,n.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){s=!0;break}if(o.var.push(e),this.inModule&&1&o.flags&&delete this.undefinedExports[e],o.flags&Vr)break}s&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")},rn.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},rn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},rn.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(771&t.flags)return t}},rn.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 an=function(e,t,i){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new Nr(e,i)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},on=Or.prototype;function ln(e,t,i,s){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=s),this.options.ranges&&(e.range[1]=i),e}on.startNode=function(){return new an(this,this.start,this.startLoc)},on.startNodeAt=function(e,t){return new an(this,e,t)},on.finishNode=function(e,t){return ln.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},on.finishNodeAt=function(e,t,i,s){return ln.call(this,e,t,i,s)},on.copyNode=function(e){var t=new an(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var cn="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",pn=cn+" Extended_Pictographic",hn=pn+" EBase EComp EMod EPres ExtPict",un={9:cn,10:pn,11:pn,12:hn,13:hn,14:hn},dn={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"},mn="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",fn="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",gn=fn+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",xn=gn+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",yn=xn+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",vn=yn+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",bn={9:fn,10:gn,11:xn,12:yn,13:vn,14:vn+" 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"},wn={};function kn(e){var t=wn[e]={binary:Er(un[e]+" "+mn),binaryOfStrings:Er(dn[e]),nonBinary:{General_Category:Er(mn),Script:Er(bn[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 En=0,Sn=[9,10,11,12,13,14];En<Sn.length;En+=1){kn(Sn[En])}var Cn=Or.prototype,_n=function(e,t){this.parent=e,this.base=t||this};_n.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},_n.prototype.sibling=function(){return new _n(this.parent,this.base)};var Nn=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=wn[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 In(e){return 105===e||109===e||115===e}function An(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function Tn(e){return e>=65&&e<=90||e>=97&&e<=122}Nn.prototype.reset=function(e,t,i){var s=-1!==i.indexOf("v"),r=-1!==i.indexOf("u");this.start=0|e,this.source=t+"",this.flags=i,s&&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)},Nn.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},Nn.prototype.at=function(e,t){void 0===t&&(t=!1);var i=this.source,s=i.length;if(e>=s)return-1;var r=i.charCodeAt(e);if(!t&&!this.switchU||r<=55295||r>=57344||e+1>=s)return r;var n=i.charCodeAt(e+1);return n>=56320&&n<=57343?(r<<10)+n-56613888:r},Nn.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var i=this.source,s=i.length;if(e>=s)return s;var r,n=i.charCodeAt(e);return!t&&!this.switchU||n<=55295||n>=57344||e+1>=s||(r=i.charCodeAt(e+1))<56320||r>57343?e+1:e+2},Nn.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},Nn.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Nn.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Nn.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},Nn.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var i=this.pos,s=0,r=e;s<r.length;s+=1){var n=r[s],a=this.at(i,t);if(-1===a||a!==n)return!1;i=this.nextIndex(i,t)}return this.pos=i,!0},Cn.validateRegExpFlags=function(e){for(var t=e.validFlags,i=e.flags,s=!1,r=!1,n=0;n<i.length;n++){var a=i.charAt(n);-1===t.indexOf(a)&&this.raise(e.start,"Invalid regular expression flag"),i.indexOf(a,n+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===a&&(s=!0),"v"===a&&(r=!0)}this.options.ecmaVersion>=15&&s&&r&&this.raise(e.start,"Invalid regular expression flag")},Cn.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))},Cn.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 s=i[t];e.groupNames[s]||e.raise("Invalid named capture referenced")}},Cn.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new _n(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")},Cn.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},Cn.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)},Cn.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},Cn.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},Cn.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Cn.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var s=0,r=-1;if(this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue),e.eat(125)))return-1!==r&&r<s&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=i}return!1},Cn.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)},Cn.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},Cn.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),s=e.eat(45);if(i||s){for(var r=0;r<i.length;r++){var n=i.charAt(r);i.indexOf(n,r+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(s){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},Cn.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},Cn.regexp_eatModifiers=function(e){for(var t="",i=0;-1!==(i=e.current())&&In(i);)t+=Sr(i),e.advance();return t},Cn.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)},Cn.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},Cn.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!An(t)&&(e.lastIntValue=t,e.advance(),!0)},Cn.regexp_eatPatternCharacters=function(e){for(var t=e.pos,i=0;-1!==(i=e.current())&&!An(i);)e.advance();return e.pos!==t},Cn.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)},Cn.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 s=0,r=i;s<r.length;s+=1){r[s].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}},Cn.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},Cn.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Sr(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Sr(e.lastIntValue);return!0}return!1},Cn.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,s=e.current(i);return e.advance(i),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),function(e){return ir(e,!0)||36===e||95===e}(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)},Cn.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,s=e.current(i);return e.advance(i),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),function(e){return sr(e,!0)||36===e||95===e||8204===e||8205===e}(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)},Cn.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)},Cn.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},Cn.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},Cn.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)},Cn.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Cn.regexp_eatZero=function(e){return 48===e.current()&&!Vn(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Cn.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)},Cn.regexp_eatControlLetter=function(e){var t=e.current();return!!Tn(t)&&(e.lastIntValue=t%32,e.advance(),!0)},Cn.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var i,s=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var n=e.lastIntValue;if(r&&n>=55296&&n<=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*(n-55296)+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=n}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=s}return!1},Cn.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)},Cn.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 Pn(e){return Tn(e)||95===e}function Ln(e){return Pn(e)||Vn(e)}function Vn(e){return e>=48&&e<=57}function Rn(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function On(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function jn(e){return e>=48&&e<=55}Cn.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 s;if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(s=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&2===s&&e.raise("Invalid property name"),s;e.raise("Invalid property name")}return 0},Cn.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 s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,s),1}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,r)}return 0},Cn.regexp_validateUnicodePropertyNameAndValue=function(e,t,i){br(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")},Cn.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")},Cn.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Pn(t=e.current());)e.lastStringValue+=Sr(t),e.advance();return""!==e.lastStringValue},Cn.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Ln(t=e.current());)e.lastStringValue+=Sr(t),e.advance();return""!==e.lastStringValue},Cn.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Cn.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},Cn.regexp_classContents=function(e){return 93===e.current()?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},Cn.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")}}},Cn.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||jn(i))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var s=e.current();return 93!==s&&(e.lastIntValue=s,e.advance(),!0)},Cn.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)},Cn.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 s=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(s!==e.pos)return i;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(s!==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)}},Cn.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 s=e.lastIntValue;return-1!==i&&-1!==s&&i>s&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},Cn.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},Cn.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var i=e.eat(94),s=this.regexp_classContents(e);if(e.eat(93))return i&&2===s&&e.raise("Negated character class may contain strings"),s;e.pos=t}if(e.eat(92)){var r=this.regexp_eatCharacterClassEscape(e);if(r)return r;e.pos=t}return null},Cn.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},Cn.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)2===this.regexp_classString(e)&&(t=2);return t},Cn.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?1:2},Cn.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))},Cn.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)},Cn.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!Vn(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},Cn.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},Cn.regexp_eatDecimalDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Vn(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t},Cn.regexp_eatHexDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Rn(i=e.current());)e.lastIntValue=16*e.lastIntValue+On(i),e.advance();return e.pos!==t},Cn.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},Cn.regexp_eatOctalDigit=function(e){var t=e.current();return jn(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},Cn.regexp_eatFixedHexDigits=function(e,t){var i=e.pos;e.lastIntValue=0;for(var s=0;s<t;++s){var r=e.current();if(!Rn(r))return e.pos=i,!1;e.lastIntValue=16*e.lastIntValue+On(r),e.advance()}return!0};var Dn=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new Nr(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},Mn=Or.prototype;function Fn(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}Mn.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 Dn(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Mn.getToken=function(){return this.next(),new Dn(this)},"undefined"!=typeof Symbol&&(Mn[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===pr.eof,value:t}}}}),Mn.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(pr.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},Mn.readToken=function(e){return ir(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},Mn.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},Mn.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},Mn.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 s=void 0,r=t;(s=mr(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())},Mn.skipLineComment=function(e){for(var t=this.pos,i=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!dr(s);)s=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())},Mn.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&&fr.test(String.fromCharCode(e))))break e;++this.pos}}},Mn.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)},Mn.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(pr.ellipsis)):(++this.pos,this.finishToken(pr.dot))},Mn.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(pr.assign,2):this.finishOp(pr.slash,1)},Mn.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,s=42===e?pr.star:pr.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++i,s=pr.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(pr.assign,i+1):this.finishOp(s,i)},Mn.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(pr.assign,3);return this.finishOp(124===e?pr.logicalOR:pr.logicalAND,2)}return 61===t?this.finishOp(pr.assign,2):this.finishOp(124===e?pr.bitwiseOR:pr.bitwiseAND,1)},Mn.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(pr.assign,2):this.finishOp(pr.bitwiseXOR,1)},Mn.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&&!hr.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(pr.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(pr.assign,2):this.finishOp(pr.plusMin,1)},Mn.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(pr.assign,i+1):this.finishOp(pr.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(pr.relational,i)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Mn.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(pr.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(pr.arrow)):this.finishOp(61===e?pr.eq:pr.prefix,1)},Mn.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(pr.questionDot,2)}if(63===t){if(e>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(pr.assign,3);return this.finishOp(pr.coalesce,2)}}return this.finishOp(pr.question,1)},Mn.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,ir(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(pr.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Sr(e)+"'")},Mn.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(pr.parenL);case 41:return++this.pos,this.finishToken(pr.parenR);case 59:return++this.pos,this.finishToken(pr.semi);case 44:return++this.pos,this.finishToken(pr.comma);case 91:return++this.pos,this.finishToken(pr.bracketL);case 93:return++this.pos,this.finishToken(pr.bracketR);case 123:return++this.pos,this.finishToken(pr.braceL);case 125:return++this.pos,this.finishToken(pr.braceR);case 58:return++this.pos,this.finishToken(pr.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(pr.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(pr.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Sr(e)+"'")},Mn.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)},Mn.readRegexp=function(){for(var e,t,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(hr.test(s)&&this.raise(i,"Unterminated regular expression"),e)e=!1;else{if("["===s)t=!0;else if("]"===s&&t)t=!1;else if("/"===s&&!t)break;e="\\"===s}++this.pos}var r=this.input.slice(i,this.pos);++this.pos;var n=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(n);var o=this.regexpState||(this.regexpState=new Nn(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(pr.regexp,{pattern:r,flags:a,value:l})},Mn.readInt=function(e,t,i){for(var s=this.options.ecmaVersion>=12&&void 0===t,r=i&&48===this.input.charCodeAt(this.pos),n=this.pos,a=0,o=0,l=0,c=null==t?1/0:t;l<c;++l,++this.pos){var p=this.input.charCodeAt(this.pos),h=void 0;if(s&&95===p)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=p;else{if((h=p>=97?p-97+10:p>=65?p-65+10:p>=48&&p<=57?p-48:1/0)>=e)break;o=p,a=a*e+h}}return s&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===n||null!=t&&this.pos-n!==t?null:a},Mn.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=Fn(this.input.slice(t,this.pos)),++this.pos):ir(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(pr.num,i)},Mn.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 s=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&110===s){var r=Fn(this.input.slice(t,this.pos));return++this.pos,ir(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(pr.num,r)}i&&/[89]/.test(this.input.slice(t,this.pos))&&(i=!1),46!==s||i||(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),69!==s&&101!==s||i||(43!==(s=this.input.charCodeAt(++this.pos))&&45!==s||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),ir(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var n,a=(n=this.input.slice(t,this.pos),i?parseInt(n,8):parseFloat(n.replace(/_/g,"")));return this.finishToken(pr.num,a)},Mn.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},Mn.readString=function(e){for(var t="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===e)break;92===s?(t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!1),i=this.pos):8232===s||8233===s?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(dr(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(pr.string,t)};var Bn={};Mn.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==Bn)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Mn.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Bn;this.raise(e,t)},Mn.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!==pr.template&&this.type!==pr.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(pr.template,e)):36===i?(this.pos+=2,this.finishToken(pr.dollarBraceL)):(++this.pos,this.finishToken(pr.backQuote));if(92===i)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(dr(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}},Mn.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(pr.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")},Mn.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 Sr(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 s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(s,8);return r>255&&(s=s.slice(0,-1),r=parseInt(s,8)),this.pos+=s.length-1,t=this.input.charCodeAt(this.pos),"0"===s&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-s.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return dr(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}},Mn.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return null===i&&this.invalidStringToken(t,"Bad character escape sequence"),i},Mn.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(sr(r,s))this.pos+=r<=65535?1:2;else{if(92!==r)break;this.containsEsc=!0,e+=this.input.slice(i,this.pos);var n=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(t?ir:sr)(a,s)||this.invalidStringToken(n,"Invalid Unicode escape"),e+=Sr(a),i=this.pos}t=!1}return e+this.input.slice(i,this.pos)},Mn.readWord=function(){var e=this.readWord1(),t=pr.name;return this.keywords.test(e)&&(t=lr[e]),this.finishToken(t,e)};Or.acorn={Parser:Or,version:"8.16.0",defaultOptions:Ar,Position:_r,SourceLocation:Nr,getLineInfo:Ir,Node:an,TokenType:rr,tokTypes:pr,keywordTypes:lr,TokContext:$r,tokContexts:Kr,isIdentifierChar:sr,isIdentifierStart:ir,Token:Dn,isNewLine:dr,lineBreak:hr,lineBreakG:ur,nonASCIIwhitespace:fr};const Un={}.hasOwnProperty,Jn=Symbol("continue"),zn=Symbol("exit"),qn=Symbol("skip");function Xn(e){return Array.isArray(e)?e:"number"==typeof e?[Jn,e]:[e]}function Gn(e){return Boolean(e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type&&e.type.length>0)}function Hn(e,t){const i=t.prefix||"",s=t.suffix||"",r=Object.assign({},t.acornOptions),n=[],a=[],o=r.onComment,l=r.onToken;let c,p,h=!1;const u=Object.assign({},r,{onComment:n,preserveParens:!0});l&&(u.onToken=a);const d=function(e,t){const i={value:"",stops:[]};let s=-1;for(;++s<e.length;){const r=e[s];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=$n(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),m=d.value,f=i+m+s,g=t.expression&&Wn(m);if(g&&!t.allowEmpty)throw new nt("Unexpected empty expression",{place:y(0),ruleId:"unexpected-empty-expression",source:"micromark-extension-mdx-expression"});try{c=t.expression&&!g?t.acorn.parseExpressionAt(f,0,u):t.acorn.parse(f,u)}catch(e){const t=e,s=y(t.pos);t.message=String(t.message).replace(/ \(\d+:\d+\)$/,""),t.pos=s.offset,t.loc={line:s.line,column:s.column-1},p=t,h=t.raisedAt>=i.length+m.length||"Unterminated comment"===t.message}if(c&&t.expression&&!g)if(Wn(f.slice(c.end,f.length-s.length)))c={type:"Program",start:0,end:i.length+m.length,body:[{type:"ExpressionStatement",expression:c,start:0,end:i.length+m.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},p=t,c=void 0}if(c){if(c.comments=n,function(e,t){let i,s;"function"==typeof t?i=t:t&&"object"==typeof t&&(t.enter&&(i=t.enter),t.leave&&(s=t.leave)),function e(t,r,n,a){return Gn(t)&&(o.displayName="node ("+t.type+")"),o;function o(){const o=i?Xn(i(t,r,n,a)):[];if(o[0]===zn)return o;if(o[0]!==qn){let i;for(i in t)if(Un.call(t,i)&&t[i]&&"object"==typeof t[i]&&"data"!==i&&"position"!==i){const s=a.concat(t),r=t[i];if(Array.isArray(r)){const t=r;let n=0;for(;n>-1&&n<t.length;){const r=t[n];if(Gn(r)){const t=e(r,i,n,s)();if(t[0]===zn)return t;n="number"==typeof t[1]?t[1]:n+1}else n++}}else if(Gn(r)){const t=e(r,i,void 0,s)();if(t[0]===zn)return t}}}return s?Xn(s(t,r,n,a)):o}}(e,void 0,void 0,[])()}(c,function(e,t,i,s){let r=s[s.length-1],n=t;"ParenthesizedExpression"===e.type&&r&&n&&("number"==typeof i&&(r=r[n],n=i),r[n]=e.expression),x(e)}),Array.isArray(o))o.push(...n);else if("function"==typeof o)for(const e of n)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>=m.length||(x(e),Array.isArray(l)?l.push(e):l(e))}return{estree:c,error:p,swallow:h};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 s=e-i.length;s<0?s=0:s>m.length&&(s=m.length);let r=function(e,t){let i=0;for(;i<e.length&&e[i][0]<=t;)i+=1;if(0===i)return;const[s,r]=e[i-1],n=t-s;return{line:r.line,column:r.column+n,offset:r.offset+n}}(d.stops,s);return r||(r={line:t.start.line,column:t.start.column,offset:t.start.offset}),r}}function Wn(e){return/^\s*$/.test(e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,""))}function $n(e){let t=-1;const i=[];let s;for(;++t<e.length;){const r=e[t];let n;if("string"==typeof r)n=r;else switch(r){case-5:n="\r";break;case-4:n="\n";break;case-3:n="\r\n";break;case-2:n="\t";break;case-1:if(s)continue;n=" ";break;default:n=String.fromCharCode(r)}s=-2===r,i.push(n)}return i.join("")}function Kn(e){const t=e||{},i=t.loc||{},s=t.range||[void 0,void 0],r=Qn(i.start,s[0]||t.start),n=Qn(i.end,s[1]||t.end);if(r&&n)return{start:r,end:n}}function Qn(e,t){if(e&&"object"==typeof e){const i="line"in e?Yn(e.line):void 0,s="column"in e?Yn(e.column):void 0;if(i&&void 0!==s)return{line:i,column:s+1,offset:Yn(t)}}}function Yn(e){return"number"==typeof e&&e>-1?e:void 0}const Zn="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",ea="#unexpected-type-in-code-expected-an-object-spread-spread";function ta(e,t,i,s,r,n,a,o,l,c,p){const h=this,u=this.events.length+3;let d,m,f=0;return function(t){return e.enter(i),e.enter(s),e.consume(t),e.exit(s),d=h.now(),g};function g(p){if(null===p){if(m)throw m;const e=new nt("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:h.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw e.url=Zn+"#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",e}if(lt(p))return e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),y;if(125===p&&0===f){const f=n?ia.call(h,n,a,r,u,d,c||!1,l||!1):{type:"ok",estree:void 0};if("ok"===f.type){e.enter(s),e.consume(p),e.exit(s);const r=e.exit(i);return o&&f.estree&&Object.assign(r,{estree:f.estree}),t}return m=f.message,e.enter(r),e.consume(p),x}return e.enter(r),x(p)}function x(t){return 125===t&&0===f||null===t||lt(t)?(e.exit(r),g(t)):(123!==t||n?125===t&&(f-=1):f+=1,e.consume(t),x)}function y(t){const i=h.now();if(i.line!==d.line&&!p&&h.parser.lazy[i.line]){const e=new nt("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:h.now(),ruleId:"unexpected-lazy",source:"micromark-extension-mdx-expression"});throw e.url=Zn+"#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",e}return ct(t)?pt(e,g,"linePrefix",3)(t):g(t)}}function ia(e,t,i,s,r,n,a){const o=Hn(this.events.slice(s),{acorn:e,tokenTypes:[i],acornOptions:t,start:r,expression:!0,allowEmpty:n,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=Kn(e),i=new nt("Unexpected `"+e.type+"` in code: expected an object spread (`{...spread}`)",{place:t.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw i.url=Zn+ea,i}if(e.expression.properties[1]){const t=Kn(e.expression.properties[1]),i=new nt("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=Zn+"#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=Kn(e.expression.properties[0]),i=new nt("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=Zn+ea,i}}if(o.error){const e=new nt("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=Zn+"#could-not-parse-expression-with-acorn",{type:"nok",message:e}}return{type:"ok",estree:l}}function sa(e){const t=e||{},i=t.addResult,s=t.acorn,r=t.spread;let n,a=t.allowEmpty;if(null==a&&(a=!0),s){if(!s.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");n=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 ta.call(l,e,c,"mdxFlowExpression","mdxFlowExpressionMarker","mdxFlowExpressionChunk",s,n,i,r,a)(t)}(t)};function c(t){return ct(t)?pt(e,p,"whitespace")(t):p(t)}function p(i){const s=l.parser.constructs.flow[60],r=(Array.isArray(s)?s:s?[s]:[]).find(function(e){return"mdxJsxFlowTag"===e.name});return 60===i&&r?e.attempt(r,p,o)(i):null===i||lt(i)?t(i):o(i)}},concrete:!0}},text:{123:{name:"mdxTextExpression",tokenize:function(e,t){const o=this;return function(l){return ta.call(o,e,t,"mdxTextExpression","mdxTextExpressionMarker","mdxTextExpressionChunk",s,n,i,r,a,!0)(l)}}}}}}const ra="https://github.com/micromark/micromark-extension-mdx-jsx";function na(e,t,i,s,r,n,a,o,l,c,p,h,u,d,m,f,g,x,y,v,b,w,k,E,S,C,_,N,I,A,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 ht(e)?i(e):(V=j,ne(e))}function j(t){return 47===t?(e.enter(c),e.consume(t),e.exit(c),V=D,ne):62===t?re(t):null!==t&&t>=0&&Pt(t)?(e.enter(h),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&&Pt(t)?(e.enter(h),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&&Lt(t,{jsx:!0})?(e.consume(t),M):46===t||47===t||58===t||62===t||123===t||ht(t)||ut(t)?(e.exit(u),V=F,ne(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,ne):58===t?(e.enter(f),e.consume(t),e.exit(f),V=z,ne):47===t||62===t||123===t||null!==t&&t>=0&&Pt(t)?(e.exit(h),G(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&&Pt(t))return e.enter(m),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&&Lt(t,{jsx:!0})?(e.consume(t),U):46===t||47===t||62===t||123===t||ht(t)||ut(t)?(e.exit(m),V=J,ne(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 J(t){return 46===t?(e.enter(d),e.consume(t),e.exit(d),V=B,ne):47===t||62===t||123===t||null!==t&&t>=0&&Pt(t)?(e.exit(h),G(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 z(t){if(null!==t&&t>=0&&Pt(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&&Lt(t,{jsx:!0})?(e.consume(t),q):47===t||62===t||123===t||ht(t)||ut(t)?(e.exit(g),V=X,ne(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 X(t){if(47===t||62===t||123===t||null!==t&&t>=0&&Pt(t))return e.exit(h),G(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 G(t){return 47===t?(e.enter(p),e.consume(t),e.exit(p),V=se,ne):62===t?re(t):123===t?ta.call(L,e,H,x,y,v,s,r,n,!0,!1,a)(t):null!==t&&t>=0&&Pt(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=G,ne(e)}function W(t){return null!==t&&t>=0&&Lt(t,{jsx:!0})?(e.consume(t),W):47===t||58===t||61===t||62===t||123===t||ht(t)||ut(t)?(e.exit(k),V=$,ne(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,ne):61===t?(e.exit(w),e.enter(C),e.consume(t),e.exit(C),V=Z,ne):47===t||62===t||123===t||ht(t)||ut(t)||null!==t&&t>=0&&Pt(t)?(e.exit(w),e.exit(b),V=G,ne(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&&Pt(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&&Lt(t,{jsx:!0})?(e.consume(t),Q):47===t||61===t||62===t||123===t||ht(t)||ut(t)?(e.exit(S),e.exit(w),V=Y,ne(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,ne):47===t||62===t||123===t||null!==t&&t>=0&&Pt(t)?(e.exit(b),G(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(_),e.enter(N),e.consume(t),e.exit(N),R=t,te):123===t?ta.call(L,e,ee,A,T,P,s,r,n,!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=G,ne(t)}function te(t){return null===t&&le(t,"in attribute value","a corresponding closing quote `"+String.fromCodePoint(R)+"`"),t===R?(e.enter(N),e.consume(t),e.exit(N),e.exit(_),e.exit(b),R=void 0,V=G,ne):lt(t)?(V=te,ne(t)):(e.enter(I),ie(t))}function ie(t){return null===t||t===R||lt(t)?(e.exit(I),te(t)):(e.consume(t),ie)}function se(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 ne(t){return lt(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),oe):ct(t)||ut(t)?(e.enter("esWhitespace"),ae(t)):V(t)}function ae(t){return lt(t)?(e.exit("esWhitespace"),ne(t)):ct(t)||ut(t)?(e.consume(t),ae):(e.exit("esWhitespace"),V(t))}function oe(e){if(!a&&L.parser.lazy[L.now().line]){const e=new nt("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=ra+"#unexpected-lazy-line-in-container-expected-line-to-be",e}return ne(e)}function le(e,t,i){const s=new nt("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 s.url=ra+(null===e?"#unexpected-end-of-file-at-expected-expect":"#unexpected-character-at-expected-expect"),s}}function aa(e,t){return{name:"mdxJsxTextTag",tokenize:function(i,s,r){return na.call(this,i,s,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 oa(e,t){return{concrete:!0,name:"mdxJsxFlowTag",tokenize:function(i,s,r){const n=this;return a;function a(s){return function(s){return na.call(n,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")(s)}(s)}function o(e){return ct(e)?pt(i,l,"whitespace")(e):l(e)}function l(e){const t=n.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||lt(e)?s(e):r(e)}}}}function la(e){const t=e||{},i=t.acorn;let s;if(i){if(!i.parse||!i.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");s=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:oa(i||void 0,{acornOptions:s,addResult:t.addResult||void 0})},text:{60:aa(i||void 0,{acornOptions:s,addResult:t.addResult||void 0})}}}const ca={tokenize:function(e,t,i){return function(s){return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),e.attempt(mt,t,i)}},partial:!0},pa="https://github.com/micromark/micromark-extension-mdxjs-esm",ha=new Set(["ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ImportDeclaration"]);function ua(e){const t={tokenize:function(t,r,n){const a=this,o=a.parser.definedModuleSpecifiers||(a.parser.definedModuleSpecifiers=[]),l=this.events.length+1;let c="";return a.interrupt?n:function(e){return a.now().column>1?n(e):(t.enter("mdxjsEsm"),t.enter("mdxjsEsmData"),t.consume(e),c+=String.fromCharCode(e),p)};function p(e){return dt(e)?(t.consume(e),c+=String.fromCharCode(e),p):"import"!==c&&"export"!==c||32!==e?n(e):(t.consume(e),h)}function h(e){return null===e||lt(e)?(t.exit("mdxjsEsmData"),u(e)):(t.consume(e),h)}function u(e){return null===e?m(e):lt(e)?t.check(ca,m,d)(e):(t.enter("mdxjsEsmData"),h(e))}function d(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),u}function m(n){const c=Hn(a.events.slice(l),{acorn:i,acornOptions:s,tokenTypes:["mdxjsEsmData"],prefix:o.length>0?"var "+o.join(",")+"\n":""});if(c.error){if(null!==n&&c.swallow)return d(n);const e=new nt("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=pa+"#could-not-parse-importexports-with-acorn",e}o.length>0&&c.estree.body.shift();let p=-1;for(;++p<c.estree.body.length;){const e=c.estree.body[p];if(!ha.has(e.type)){const t=new nt("Unexpected `"+e.type+"` in code: only import/exports are supported",{place:Kn(e),ruleId:"non-esm",source:"micromark-extension-mdxjs-esm"});throw t.url=pa+"#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(n)}},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,s=Object.assign({ecmaVersion:2024,sourceType:"module"},e.acornOptions,{locations:!0});return{flow:{101:t,105:t}}}const da={};function ma(e){const t=e||da,i=this.data(),s=i.micromarkExtensions||(i.micromarkExtensions=[]),r=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),n=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);s.push(function(e){const t=Object.assign({acorn:Or.extend(fi()),acornOptions:{ecmaVersion:2024,sourceType:"module"},addResult:!0},e);return ft([ua(t),sa(t),la(t),{disable:{null:["autolink","codeIndented","htmlFlow","htmlText"]}}])}(t)),r.push([{enter:{mdxFlowExpression:gs,mdxTextExpression:xs},exit:{mdxFlowExpression:ys,mdxFlowExpressionChunk:vs,mdxTextExpression:ys,mdxTextExpressionChunk:vs}},Ds(),{enter:{mdxjsEsm:Js},exit:{mdxjsEsm:zs,mdxjsEsmData:qs}}]),n.push(function(e){return{extensions:[{handlers:{mdxFlowExpression:bs,mdxTextExpression:bs},unsafe:[{character:"{",inConstruct:["phrasing"]},{atBreak:!0,character:"{"}]},Ms(e),{handlers:{mdxjsEsm:Xs}}]}}(t))}function fa(e,t){const i=["start","end","loc","range"];let s=-1;for(;++s<i.length;){const r=i[s];r in e&&(t[r]=e[r])}}function ga(e,t){let i=-1;const s=[],r=[];let n;for(;++i<e.length;){const t=e[i];"ImportNamespaceSpecifier"===t.type?n=t:r.push(t)}if(n){const e={type:"VariableDeclarator",id:n.local,init:t};fa(n,e),s.push(e)}return s.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),it("Identifier"===i.type);const s={type:"Property",kind:"init",shorthand:"Identifier"===t.type&&"Identifier"===i.type&&t.name===i.name,method:!1,computed:!1,key:t,value:i};return fa(e,s),s})},init:n?{type:"Identifier",name:n.local.name}:t}),s}function xa(e){let t,i=-1;for(;++i<e.length;){const s=e[i],r="string"==typeof s&&wt(s)?{type:"Identifier",name:s}:{type:"Literal",value:s};t=t?{type:"MemberExpression",object:t,property:r,computed:"Literal"===r.type,optional:!1}:r}return it("Literal"!==t.type),t}function ya(e){let t,i=-1;for(;++i<e.length;){const s=e[i];it("string"==typeof s&&wt(s,{jsx:!0}));const r={type:"JSXIdentifier",name:s};t=t?{type:"JSXMemberExpression",object:t,property:r}:r}return t}function va(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:ga(i.specifiers,xa(["arguments",0]))})}}}function ba(){const e=[{block:!1,defined:[]}];return{enter:function(s){if("ArrowFunctionExpression"===s.type){e.push({block:!1,defined:[]});for(const e of s.params)i(e,!1)}else if("BlockStatement"===s.type||"DoWhileStatement"===s.type||"ForInStatement"===s.type||"ForOfStatement"===s.type||"ForStatement"===s.type||"WhileStatement"===s.type)e.push({block:!0,defined:[]});else if("CatchClause"===s.type)e.push({block:!0,defined:[]}),s.param&&i(s.param,!0);else if("ClassDeclaration"===s.type)t(s.id.name,!1);else if("FunctionDeclaration"===s.type){t(s.id.name,!1),e.push({block:!1,defined:[]});for(const e of s.params)i(e,!1)}else if("FunctionExpression"===s.type){s.id&&t(s.id.name,!1),e.push({block:!1,defined:[]});for(const e of s.params)i(e,!1)}else if("ImportDeclaration"===s.type)for(const e of s.specifiers)t(e.local.name,!1);else if("VariableDeclaration"===s.type)for(const e of s.declarations)i(e.id,"var"!==s.kind)},exit:function(t){if("ArrowFunctionExpression"===t.type||"FunctionDeclaration"===t.type||"FunctionExpression"===t.type){const t=e.pop();it(!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();it(t.block)}},scopes:e};function t(t,i){let s,r=e.length;for(;r--&&(s=e[r],!i&&s.block););s.defined.push(t)}function i(e,s){if("ArrayPattern"===e.type)for(const t of e.elements)t&&i(t,s);else if("AssignmentPattern"===e.type)i(e.left,s);else if("Identifier"===e.type)t(e.name,s);else if("ObjectPattern"===e.type)for(const t of e.properties)"Property"===t.type?i(t.value,s):(it("RestElement"===t.type),i(t,s));else it("RestElement"===e.type),i(e.argument,s)}}function wa(e){return"FunctionDeclaration"===e.type?{...e,type:"FunctionExpression"}:(it("ClassDeclaration"===e.type),{...e,type:"ClassExpression"})}function ka(e){return Boolean("FunctionDeclaration"===e.type||"ClassDeclaration"===e.type||"VariableDeclaration"===e.type)}function Ea(e){const t=e.baseUrl||void 0,i="object"==typeof t?t.href:t,s=e.outputFormat||"program",r=void 0===e.pragma?"React.createElement":e.pragma,n=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 p=[],h=[];let u,d,m,f=0;if("classic"===l&&n&&Sa(e,"@jsxFrag",n),"classic"===l&&r&&Sa(e,"@jsx",r),"automatic"===l&&o&&Sa(e,"@jsxImportSource",o),Sa(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(m of e.body)if("ExportDefaultDeclaration"===m.type)u&&t.fail("Unexpected duplicate layout, expected a single layout (previous: "+at(Kn(u))+")",{ancestors:[e,m],place:Kn(m),ruleId:"duplicate-layout",source:"recma-document"}),u=m,h.push({type:"VariableDeclaration",kind:"const",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"MDXLayout"},init:ka(m.declaration)?wa(m.declaration):m.declaration}]});else if("ExportNamedDeclaration"===m.type&&m.source){const i=m.source;m.specifiers=m.specifiers.filter(function(s){if("Identifier"===s.exported.type&&"default"===s.exported.name){u&&t.fail("Unexpected duplicate layout, expected a single layout (previous: "+at(Kn(u))+")",{ancestors:[e,m,s],place:Kn(m),ruleId:"duplicate-layout",source:"recma-document"}),u=s;const r=[];if("Identifier"===s.local.type&&"default"===s.local.name)r.push({type:"ImportDefaultSpecifier",local:{type:"Identifier",name:"MDXLayout"}});else{const e={type:"ImportSpecifier",imported:s.local,local:{type:"Identifier",name:"MDXLayout"}};fa(s.local,e),r.push(e)}const n={type:"Literal",value:i.value};fa(i,n);const a={type:"ImportDeclaration",specifiers:r,attributes:[],source:n};return fa(s,a),b(a),!1}return!0}),m.specifiers.length>0&&v(m)}else"ExportNamedDeclaration"===m.type||"ExportAllDeclaration"===m.type?v(m):"ImportDeclaration"===m.type?b(m):"ExpressionStatement"!==m.type||"JSXElement"!==m.expression.type&&"JSXFragment"!==m.expression.type?h.push(m):(d=!0,h.push(...c(m.expression,s,Boolean(u))));d||h.push(...c(void 0,s,Boolean(u))),p.push(["MDXContent","default"]),"function-body"===s&&h.push({type:"ReturnStatement",argument:{type:"ObjectExpression",properties:[...Array.from({length:f}).map(function(e,t){return{type:"SpreadElement",argument:{type:"Identifier",name:"_exportAll"+(t+1)}}}),...p.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=h;let g=!1,x=!1;var y;function v(e){if("ExportNamedDeclaration"===e.type){if(e.declaration){const t=ba();ei(e,{enter(e){t.enter(e),"ArrowFunctionExpression"!==e.type&&"FunctionDeclaration"!==e.type&&"FunctionExpression"!==e.type||(this.skip(),t.exit(e))},leave:t.exit}),p.push(...t.scopes[0].defined)}for(m of e.specifiers)"Identifier"===m.exported.type?p.push(m.exported.name):(it("string"==typeof m.exported.value),p.push(m.exported.value))}b(e)}function b(e){let t,i;if("function-body"===s)if("ImportDeclaration"===e.type||"ExportAllDeclaration"===e.type||"ExportNamedDeclaration"===e.type&&e.source){it(e.source);const s={type:"ImportExpression",source:e.source};fa(e,s),i={type:"AwaitExpression",argument:s},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"+ ++f},init:i}]:ga(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&&h.push(t)}(i||"function-body"===s)&&ei(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 s={type:"Literal",value:t};return fa(e.source,s),void(e.source=s)}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"};fa(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:xa(["d","startsWith"]),arguments:[{type:"Literal",value:"/"}],optional:!1},operator:"||",right:{type:"CallExpression",callee:xa(["d","startsWith"]),arguments:[{type:"Literal",value:"./"}],optional:!1}},operator:"||",right:{type:"CallExpression",callee:xa(["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:xa(["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 s={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||(s={type:"ConditionalExpression",test:{type:"Identifier",name:"MDXLayout"},consequent:s,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 n=!1;ei(r,{enter(e){if("ArrowFunctionExpression"===e.type||"FunctionDeclaration"===e.type||"FunctionExpression"===e.type)return this.skip();("AwaitExpression"===e.type||"ForOfStatement"===e.type&&e.await)&&(n=!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:s}]}};return[{type:"FunctionDeclaration",async:n,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 Sa(e,t,i){e.comments?.unshift({type:"Block",value:t+" "+i,data:{_mdxIsPragmaComment:!0}})}function Ca(e){let t,i=-1;for(;++i<e.length;){const s=e[i];t=t?{type:"BinaryExpression",left:t,operator:"+",right:s}:s}return t}function _a(e){const{development:t,outputFormat:i,providerImportSource:s}=e;return function(e,r){const n=ba(),a=[];let o=!1,l=!1;if(ei(e,{enter(e){n.enter(e),"FunctionDeclaration"!==e.type&&"FunctionExpression"!==e.type&&"ArrowFunctionExpression"!==e.type||(a.push({components:[],idToInvalidComponentName:new Map,node:e,objects:[],references:{},tags:[]}),Na(e,"MDXContent")&&!Ia(n.scopes,"MDXLayout")&&a[0].components.push("MDXLayout"));const t=a[0];if(t&&(Na(t.node,"_createMdxContent")||s)&&"JSXElement"===e.type){let i=e.openingElement.name;if("JSXMemberExpression"===i.type){const s=[];for(;"JSXMemberExpression"===i.type;)s.unshift(i.property.name),i=i.object;s.unshift(i.name);const r=s.join("."),o=i.name,l=Ia(n.scopes,o);Object.hasOwn(t.references,r)||l&&(1!==a.length||"FunctionDeclaration"!==a[0].node.type||!Na(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(wt(i.name)&&!/^[a-z]/.test(i.name)){const s=i.name;Ia(n.scopes,s)||("MDXLayout"===s||Object.hasOwn(t.references,s)||(t.references[s]={component:!0,node:e}),t.components.includes(s)||t.components.push(s))}else if(e.data&&e.data._mdxExplicitJsx);else{const s=i.name;t.tags.includes(s)||t.tags.push(s);let r=["_components",s];if(!1===wt(s)){let e=t.idToInvalidComponentName.get(s);void 0===e&&(e=`_component${t.idToInvalidComponentName.size}`,t.idToInvalidComponentName.set(s,e)),r=[e]}e.openingElement.name=ya(r),e.closingElement&&(e.closingElement.name=ya(r))}}},leave(e){n.exit(e);const i=[],r=[],c=[],p=[];if("FunctionDeclaration"===e.type||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type){const n=a[a.length-1];let h;for(h of n.tags.sort())i.push({type:"Property",kind:"init",key:wt(h)?{type:"Identifier",name:h}:{type:"Literal",value:h},value:{type:"Literal",value:h},method:!1,shorthand:!1,computed:!1});for(h of(r.push(...n.components),n.objects))r.includes(h)||r.push(h);r.sort();const u=[];if(i.length>0||r.length>0||n.idToInvalidComponentName.size>0){if(s&&(o=!0,c.push({type:"CallExpression",callee:{type:"Identifier",name:"_provideComponents"},arguments:[],optional:!1})),(Na(n.node,"MDXContent")||Na(n.node,"_createMdxContent"))&&c.push(xa(["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}})}),n.tags.length>0&&(p.push({type:"VariableDeclarator",id:{type:"Identifier",name:"_components"},init:t}),t={type:"Identifier",name:"_components"}),Na(n.node,"_createMdxContent"))for(const[e,t]of[...n.idToInvalidComponentName].sort(function([e],[t]){return e.localeCompare(t)}))p.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&&p.push({type:"VariableDeclarator",id:e,init:t}),p.length>0&&u.push({type:"VariableDeclaration",kind:"const",declarations:p})}let d;for(d in n.references)if(Object.hasOwn(n.references,d)){const e=d.split(".");let t=0;for(;++t<e.length;){const i=e.slice(0,t).join(".");Object.hasOwn(n.references,i)||(n.references[i]={component:!1,node:n.references[d].node})}}const m=Object.keys(n.references).sort();let f=-1;for(;++f<m.length;){const e=m[f],i=n.references[e],s=at(Kn(i.node)),r=[{type:"Literal",value:e},{type:"Literal",value:i.component}];l=!0,t&&s&&r.push({type:"Literal",value:s}),u.push({type:"IfStatement",test:{type:"UnaryExpression",operator:"!",prefix:!0,argument:xa(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&&s&&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:ga(i,xa(["arguments",0]))}:{type:"ImportDeclaration",specifiers:i,attributes:[],source:{type:"Literal",value:e}}}(s,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."}],s=[{type:"Identifier",name:"id"},{type:"Identifier",name:"component"}];t&&(i.push({type:"ConditionalExpression",test:{type:"Identifier",name:"place"},consequent:Ca([{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:""}}),s.push({type:"Identifier",name:"place"})),e.body.push({type:"FunctionDeclaration",id:{type:"Identifier",name:"_missingMdxReference"},generator:!1,async:!1,params:s,body:{type:"BlockStatement",body:[{type:"ThrowStatement",argument:{type:"NewExpression",callee:{type:"Identifier",name:"Error"},arguments:[Ca(i)]}}]}})}"function-body"===i&&e.body.unshift({type:"ExpressionStatement",expression:{type:"Literal",value:"use strict"},directive:"use strict"})}}function Na(e,t){return Boolean(e&&"id"in e&&e.id&&e.id.name===t)}function Ia(e,t){let i=e.length;for(;i--;){if(e[i].defined.includes(t))return!0}return!1}function Aa(){return function(e){gt(e,"raw",function(e,t,i){if(i&&"number"==typeof t)return i.children.splice(t,1),t})}}const Ta=/\s+/g,Pa=/[\t\n\v\f\r ]+/g;function La(e,t){t?"string"==typeof t&&(t={style:t}):t={};const i=t.preserveLineEndings?Va:Ra;return String(e).replace("html"===t.style?Pa:Ta,t.trim?function(e){return t;function t(t,i,s){return 0===i||i+t.length===s.length?"":e(t)}}(i):i)}function Va(e){const t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function Ra(){return" "}function Oa(){return function(e){gt(e,function(e,t,i){let s=-1,r=!0,n=!1;if(i&&"number"==typeof t&&"paragraph"===e.type){const a=e.children;for(;++s<a.length;){const e=a[s];if("mdxJsxTextElement"===e.type||"mdxTextExpression"===e.type)n=!0;else if("text"!==e.type||""!==La(e.value,{style:"html",trim:!0})){r=!1;break}}if(r&&n){s=-1;const e=[];for(;++s<a.length;){const t=a[s];"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&&ei(e.data.estree,{enter(e){if("JSXElement"===e.type){(e.data||(e.data={}))._mdxExplicitJsx=!0}}})})}}const ja=["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"];let Da=!1;function Ma(e,t){const{file:i,options:s}=Kt(e,t);return function(e){const t=e||{};t.format,("classic"===t.jsxRuntime||t.pragma||t.pragmaFrag||t.pragmaImportSource)&&!Da&&(Da=!0,console.warn("Unexpected deprecated option `jsxRuntime: 'classic'`, `pragma`, `pragmaFrag`, or `pragmaImportSource`; see <https://mdxjs.com/migrating/v3/> on how to migrate"));const i=xt().use(yt);"md"!==t.format&&i.use(ma);const s=t.remarkRehypeOptions||{};return i.use(Oa).use(t.remarkPlugins||[]).use(Vt,{...s,allowDangerousHtml:!0,passThrough:[...s.passThrough||[],...ja]}).use(t.rehypePlugins||[]),"md"===t.format&&i.use(Aa),i.use(fs,t).use(Ea,t).use(_a,t),t.jsx||i.use(ai,t).use(va,t),i.use(Bi).use(Ui,t).use(t.recmaPlugins||[]),i}(s).process(i)}const Fa=Object.getPrototypeOf(Ba).constructor;async function Ba(e,t){return new Fa(String(e))(t)}async function Ua(e,t){const{compiletime:i,runtime:s}=function(e){const{Fragment:t,baseUrl:i,development:s,jsx:r,jsxDEV:n,jsxs:a,useMDXComponents:o,...l}=e||{};if(!t)throw new Error("Expected `Fragment` given to `evaluate`");if(s){if(!n)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:s,outputFormat:"function-body",providerImportSource:o?"#":void 0},runtime:{Fragment:t,baseUrl:i,jsx:r,jsxDEV:n,jsxs:a,useMDXComponents:o}}}(t);return Ba(await Ma(e,i),s)}const Ja=(e=new Map,t=null,i)=>({nextPart:e,validators:t,classGroupId:i}),za="-",qa=[],Xa=e=>{const t=Wa(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return Ha(e);const i=e.split(za),s=""===i[0]&&i.length>1?1:0;return Ga(i,s,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=s[e],r=i[e];return t?r?((e,t)=>{const i=new Array(e.length+t.length);for(let t=0;t<e.length;t++)i[t]=e[t];for(let s=0;s<t.length;s++)i[e.length+s]=t[s];return i})(r,t):t:r||qa}return i[e]||qa}}},Ga=(e,t,i)=>{if(0===e.length-t)return i.classGroupId;const s=e[t],r=i.nextPart.get(s);if(r){const i=Ga(e,t+1,r);if(i)return i}const n=i.validators;if(null===n)return;const a=0===t?e.join(za):e.slice(t).join(za),o=n.length;for(let e=0;e<o;e++){const t=n[e];if(t.validator(a))return t.classGroupId}},Ha=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),i=t.indexOf(":"),s=t.slice(0,i);return s?"arbitrary.."+s:void 0})(),Wa=e=>{const{theme:t,classGroups:i}=e;return $a(i,t)},$a=(e,t)=>{const i=Ja();for(const s in e){const r=e[s];Ka(r,i,s,t)}return i},Ka=(e,t,i,s)=>{const r=e.length;for(let n=0;n<r;n++){const r=e[n];Qa(r,t,i,s)}},Qa=(e,t,i,s)=>{"string"!=typeof e?"function"!=typeof e?eo(e,t,i,s):Za(e,t,i,s):Ya(e,t,i)},Ya=(e,t,i)=>{(""===e?t:to(t,e)).classGroupId=i},Za=(e,t,i,s)=>{io(e)?Ka(e(s),t,i,s):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(i,e)))},eo=(e,t,i,s)=>{const r=Object.entries(e),n=r.length;for(let e=0;e<n;e++){const[n,a]=r[e];Ka(a,to(t,n),i,s)}},to=(e,t)=>{let i=e;const s=t.split(za),r=s.length;for(let e=0;e<r;e++){const t=s[e];let r=i.nextPart.get(t);r||(r=Ja(),i.nextPart.set(t,r)),i=r}return i},io=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,so=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,i=Object.create(null),s=Object.create(null);const r=(r,n)=>{i[r]=n,t++,t>e&&(t=0,s=i,i=Object.create(null))};return{get(e){let t=i[e];return void 0!==t?t:void 0!==(t=s[e])?(r(e,t),t):void 0},set(e,t){e in i?i[e]=t:r(e,t)}}},ro=[],no=(e,t,i,s,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:i,maybePostfixModifierPosition:s,isExternal:r}),ao=e=>{const{prefix:t,experimentalParseClassName:i}=e;let s=e=>{const t=[];let i,s=0,r=0,n=0;const a=e.length;for(let o=0;o<a;o++){const a=e[o];if(0===s&&0===r){if(":"===a){t.push(e.slice(n,o)),n=o+1;continue}if("/"===a){i=o;continue}}"["===a?s++:"]"===a?s--:"("===a?r++:")"===a&&r--}const o=0===t.length?e:e.slice(n);let l=o,c=!1;o.endsWith("!")?(l=o.slice(0,-1),c=!0):o.startsWith("!")&&(l=o.slice(1),c=!0);return no(t,c,l,i&&i>n?i-n:void 0)};if(t){const e=t+":",i=s;s=t=>t.startsWith(e)?i(t.slice(e.length)):no(ro,!1,t,void 0,!0)}if(i){const e=s;s=t=>i({className:t,parseClassName:e})}return s},oo=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,i)=>{t.set(e,1e6+i)}),e=>{const i=[];let s=[];for(let r=0;r<e.length;r++){const n=e[r],a="["===n[0],o=t.has(n);a||o?(s.length>0&&(s.sort(),i.push(...s),s=[]),i.push(n)):s.push(n)}return s.length>0&&(s.sort(),i.push(...s)),i}},lo=/\s+/,co=e=>{if("string"==typeof e)return e;let t,i="";for(let s=0;s<e.length;s++)e[s]&&(t=co(e[s]))&&(i&&(i+=" "),i+=t);return i},po=(e,...t)=>{let i,s,r,n;const a=e=>{const t=s(e);if(t)return t;const n=((e,t)=>{const{parseClassName:i,getClassGroupId:s,getConflictingClassGroupIds:r,sortModifiers:n}=t,a=[],o=e.trim().split(lo);let l="";for(let e=o.length-1;e>=0;e-=1){const t=o[e],{isExternal:c,modifiers:p,hasImportantModifier:h,baseClassName:u,maybePostfixModifierPosition:d}=i(t);if(c){l=t+(l.length>0?" "+l:l);continue}let m=!!d,f=s(m?u.substring(0,d):u);if(!f){if(!m){l=t+(l.length>0?" "+l:l);continue}if(f=s(u),!f){l=t+(l.length>0?" "+l:l);continue}m=!1}const g=0===p.length?"":1===p.length?p[0]:n(p).join(":"),x=h?g+"!":g,y=x+f;if(a.indexOf(y)>-1)continue;a.push(y);const v=r(f,m);for(let e=0;e<v.length;++e){const t=v[e];a.push(x+t)}l=t+(l.length>0?" "+l:l)}return l})(e,i);return r(e,n),n};return n=o=>{const l=t.reduce((e,t)=>t(e),e());return i=(e=>({cache:so(e.cacheSize),parseClassName:ao(e),sortModifiers:oo(e),...Xa(e)}))(l),s=i.cache.get,r=i.cache.set,n=a,a(o)},(...e)=>n(((...e)=>{let t,i,s=0,r="";for(;s<e.length;)(t=e[s++])&&(i=co(t))&&(r&&(r+=" "),r+=i);return r})(...e))},ho=[],uo=e=>{const t=t=>t[e]||ho;return t.isThemeGetter=!0,t},mo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,fo=/^\((?:(\w[\w-]*):)?(.+)\)$/i,go=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,xo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yo=/\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$/,vo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,bo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,wo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ko=e=>go.test(e),Eo=e=>!!e&&!Number.isNaN(Number(e)),So=e=>!!e&&Number.isInteger(Number(e)),Co=e=>e.endsWith("%")&&Eo(e.slice(0,-1)),_o=e=>xo.test(e),No=()=>!0,Io=e=>yo.test(e)&&!vo.test(e),Ao=()=>!1,To=e=>bo.test(e),Po=e=>wo.test(e),Lo=e=>!Ro(e)&&!Jo(e),Vo=e=>Ko(e,el,Ao),Ro=e=>mo.test(e),Oo=e=>Ko(e,tl,Io),jo=e=>Ko(e,il,Eo),Do=e=>Ko(e,rl,No),Mo=e=>Ko(e,sl,Ao),Fo=e=>Ko(e,Yo,Ao),Bo=e=>Ko(e,Zo,Po),Uo=e=>Ko(e,nl,To),Jo=e=>fo.test(e),zo=e=>Qo(e,tl),qo=e=>Qo(e,sl),Xo=e=>Qo(e,Yo),Go=e=>Qo(e,el),Ho=e=>Qo(e,Zo),Wo=e=>Qo(e,nl,!0),$o=e=>Qo(e,rl,!0),Ko=(e,t,i)=>{const s=mo.exec(e);return!!s&&(s[1]?t(s[1]):i(s[2]))},Qo=(e,t,i=!1)=>{const s=fo.exec(e);return!!s&&(s[1]?t(s[1]):i)},Yo=e=>"position"===e||"percentage"===e,Zo=e=>"image"===e||"url"===e,el=e=>"length"===e||"size"===e||"bg-size"===e,tl=e=>"length"===e,il=e=>"number"===e,sl=e=>"family-name"===e,rl=e=>"number"===e||"weight"===e,nl=e=>"shadow"===e,al=po(()=>{const e=uo("color"),t=uo("font"),i=uo("text"),s=uo("font-weight"),r=uo("tracking"),n=uo("leading"),a=uo("breakpoint"),o=uo("container"),l=uo("spacing"),c=uo("radius"),p=uo("shadow"),h=uo("inset-shadow"),u=uo("text-shadow"),d=uo("drop-shadow"),m=uo("blur"),f=uo("perspective"),g=uo("aspect"),x=uo("ease"),y=uo("animate"),v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Jo,Ro],b=()=>[Jo,Ro,l],w=()=>[ko,"full","auto",...b()],k=()=>[So,"none","subgrid",Jo,Ro],E=()=>["auto",{span:["full",So,Jo,Ro]},So,Jo,Ro],S=()=>[So,"auto",Jo,Ro],C=()=>["auto","min","max","fr",Jo,Ro],_=()=>["auto",...b()],N=()=>[ko,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...b()],I=()=>[ko,"screen","full","dvw","lvw","svw","min","max","fit",...b()],A=()=>[ko,"screen","full","lh","dvh","lvh","svh","min","max","fit",...b()],T=()=>[e,Jo,Ro],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Xo,Fo,{position:[Jo,Ro]}],L=()=>["auto","cover","contain",Go,Vo,{size:[Jo,Ro]}],V=()=>[Co,zo,Oo],R=()=>["","none","full",c,Jo,Ro],O=()=>["",Eo,zo,Oo],j=()=>[Eo,Co,Xo,Fo],D=()=>["","none",m,Jo,Ro],M=()=>["none",Eo,Jo,Ro],F=()=>["none",Eo,Jo,Ro],B=()=>[Eo,Jo,Ro],U=()=>[ko,"full",...b()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_o],breakpoint:[_o],color:[No],container:[_o],"drop-shadow":[_o],ease:["in","out","in-out"],font:[Lo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_o],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_o],shadow:[_o],spacing:["px",Eo],text:[_o],"text-shadow":[_o],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ko,Ro,Jo,g]}],container:["container"],columns:[{columns:[Eo,Ro,Jo,o]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{"inset-s":w(),start:w()}],end:[{"inset-e":w(),end:w()}],"inset-bs":[{"inset-bs":w()}],"inset-be":[{"inset-be":w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[So,"auto",Jo,Ro]}],basis:[{basis:[ko,"full","auto",o,...b()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Eo,ko,"auto","initial","none",Ro]}],grow:[{grow:["",Eo,Jo,Ro]}],shrink:[{shrink:["",Eo,Jo,Ro]}],order:[{order:[So,"first","last","none",Jo,Ro]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":S()}],"col-end":[{"col-end":S()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:E()}],"row-start":[{"row-start":S()}],"row-end":[{"row-end":S()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":C()}],"auto-rows":[{"auto-rows":C()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pbs:[{pbs:b()}],pbe:[{pbe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mbs:[{mbs:_()}],mbe:[{mbe:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":b()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":b()}],"space-y-reverse":["space-y-reverse"],size:[{size:N()}],"inline-size":[{inline:["auto",...I()]}],"min-inline-size":[{"min-inline":["auto",...I()]}],"max-inline-size":[{"max-inline":["none",...I()]}],"block-size":[{block:["auto",...A()]}],"min-block-size":[{"min-block":["auto",...A()]}],"max-block-size":[{"max-block":["none",...A()]}],w:[{w:[o,"screen",...N()]}],"min-w":[{"min-w":[o,"screen","none",...N()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[a]},...N()]}],h:[{h:["screen","lh",...N()]}],"min-h":[{"min-h":["screen","lh","none",...N()]}],"max-h":[{"max-h":["screen","lh",...N()]}],"font-size":[{text:["base",i,zo,Oo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,$o,Do]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Co,Ro]}],"font-family":[{font:[qo,Mo,t]}],"font-features":[{"font-features":[Ro]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,Jo,Ro]}],"line-clamp":[{"line-clamp":[Eo,"none",Jo,jo]}],leading:[{leading:[n,...b()]}],"list-image":[{"list-image":["none",Jo,Ro]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Jo,Ro]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Eo,"from-font","auto",Jo,Oo]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[Eo,"auto",Jo,Ro]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Jo,Ro]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Jo,Ro]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},So,Jo,Ro],radial:["",Jo,Ro],conic:[So,Jo,Ro]},Ho,Bo]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:V()}],"gradient-via-pos":[{via:V()}],"gradient-to-pos":[{to:V()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:R()}],"rounded-s":[{"rounded-s":R()}],"rounded-e":[{"rounded-e":R()}],"rounded-t":[{"rounded-t":R()}],"rounded-r":[{"rounded-r":R()}],"rounded-b":[{"rounded-b":R()}],"rounded-l":[{"rounded-l":R()}],"rounded-ss":[{"rounded-ss":R()}],"rounded-se":[{"rounded-se":R()}],"rounded-ee":[{"rounded-ee":R()}],"rounded-es":[{"rounded-es":R()}],"rounded-tl":[{"rounded-tl":R()}],"rounded-tr":[{"rounded-tr":R()}],"rounded-br":[{"rounded-br":R()}],"rounded-bl":[{"rounded-bl":R()}],"border-w":[{border:O()}],"border-w-x":[{"border-x":O()}],"border-w-y":[{"border-y":O()}],"border-w-s":[{"border-s":O()}],"border-w-e":[{"border-e":O()}],"border-w-bs":[{"border-bs":O()}],"border-w-be":[{"border-be":O()}],"border-w-t":[{"border-t":O()}],"border-w-r":[{"border-r":O()}],"border-w-b":[{"border-b":O()}],"border-w-l":[{"border-l":O()}],"divide-x":[{"divide-x":O()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":O()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Eo,Jo,Ro]}],"outline-w":[{outline:["",Eo,zo,Oo]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",p,Wo,Uo]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",h,Wo,Uo]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[Eo,Oo]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":O()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",u,Wo,Uo]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[Eo,Jo,Ro]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Eo]}],"mask-image-linear-from-pos":[{"mask-linear-from":j()}],"mask-image-linear-to-pos":[{"mask-linear-to":j()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":j()}],"mask-image-t-to-pos":[{"mask-t-to":j()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":j()}],"mask-image-r-to-pos":[{"mask-r-to":j()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":j()}],"mask-image-b-to-pos":[{"mask-b-to":j()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":j()}],"mask-image-l-to-pos":[{"mask-l-to":j()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":j()}],"mask-image-x-to-pos":[{"mask-x-to":j()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":j()}],"mask-image-y-to-pos":[{"mask-y-to":j()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[Jo,Ro]}],"mask-image-radial-from-pos":[{"mask-radial-from":j()}],"mask-image-radial-to-pos":[{"mask-radial-to":j()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[Eo]}],"mask-image-conic-from-pos":[{"mask-conic-from":j()}],"mask-image-conic-to-pos":[{"mask-conic-to":j()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Jo,Ro]}],filter:[{filter:["","none",Jo,Ro]}],blur:[{blur:D()}],brightness:[{brightness:[Eo,Jo,Ro]}],contrast:[{contrast:[Eo,Jo,Ro]}],"drop-shadow":[{"drop-shadow":["","none",d,Wo,Uo]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",Eo,Jo,Ro]}],"hue-rotate":[{"hue-rotate":[Eo,Jo,Ro]}],invert:[{invert:["",Eo,Jo,Ro]}],saturate:[{saturate:[Eo,Jo,Ro]}],sepia:[{sepia:["",Eo,Jo,Ro]}],"backdrop-filter":[{"backdrop-filter":["","none",Jo,Ro]}],"backdrop-blur":[{"backdrop-blur":D()}],"backdrop-brightness":[{"backdrop-brightness":[Eo,Jo,Ro]}],"backdrop-contrast":[{"backdrop-contrast":[Eo,Jo,Ro]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Eo,Jo,Ro]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Eo,Jo,Ro]}],"backdrop-invert":[{"backdrop-invert":["",Eo,Jo,Ro]}],"backdrop-opacity":[{"backdrop-opacity":[Eo,Jo,Ro]}],"backdrop-saturate":[{"backdrop-saturate":[Eo,Jo,Ro]}],"backdrop-sepia":[{"backdrop-sepia":["",Eo,Jo,Ro]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Jo,Ro]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Eo,"initial",Jo,Ro]}],ease:[{ease:["linear","initial",x,Jo,Ro]}],delay:[{delay:[Eo,Jo,Ro]}],animate:[{animate:["none",y,Jo,Ro]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,Jo,Ro]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:M()}],"rotate-x":[{"rotate-x":M()}],"rotate-y":[{"rotate-y":M()}],"rotate-z":[{"rotate-z":M()}],scale:[{scale:F()}],"scale-x":[{"scale-x":F()}],"scale-y":[{"scale-y":F()}],"scale-z":[{"scale-z":F()}],"scale-3d":["scale-3d"],skew:[{skew:B()}],"skew-x":[{"skew-x":B()}],"skew-y":[{"skew-y":B()}],transform:[{transform:[Jo,Ro,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:U()}],"translate-x":[{"translate-x":U()}],"translate-y":[{"translate-y":U()}],"translate-z":[{"translate-z":U()}],"translate-none":["translate-none"],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Jo,Ro]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mbs":[{"scroll-mbs":b()}],"scroll-mbe":[{"scroll-mbe":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pbs":[{"scroll-pbs":b()}],"scroll-pbe":[{"scroll-pbe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Jo,Ro]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[Eo,zo,Oo,jo]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),ol=()=>{throw new Error("You need to wrap your application inside `FrameworkProvider`.")},ll=V({useParams:ol,useRouter:ol,usePathname:ol});function cl(e){const{Image:t}=L(ll);if(!t){const{src:t,alt:i,priority:r,...n}=e;return s("img",{alt:i,src:t,fetchPriority:r?"high":"auto",...n})}return s(t,{...e})}function pl(e){const{Link:t}=L(ll);if(!t){const{href:t,prefetch:i,...r}=e;return s("a",{href:t,...r})}return s(t,{...e})}const hl=R(({href:e="#",external:t=e.match(/^\w+:/)||e.startsWith("//"),prefetch:i,children:r,...n},a)=>t?s("a",{ref:a,href:e,rel:"noreferrer noopener",target:"_blank",...n,children:r}):s(pl,{ref:a,href:e,prefetch:i,...n,children:r}));hl.displayName="Link";
3
3
  /**
4
4
  * @license lucide-react v1.8.0 - ISC
@@ -25,4 +25,4 @@ var ml={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24
25
25
  *
26
26
  * This source code is licensed under the ISC license.
27
27
  * See the LICENSE file in the root directory of this source tree.
28
- */const fl=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1},gl=V({}),xl=R(({color:e,size:t,strokeWidth:i,absoluteStrokeWidth:s,className:r="",children:n,iconNode:a,...o},l)=>{const{size:c=24,strokeWidth:p=2,absoluteStrokeWidth:h=!1,color:u="currentColor",className:d=""}=O(gl)??{},m=s??h?24*Number(i??p)/Number(t??c):i??p;return j("svg",{ref:l,...ml,width:t??c??ml.width,height:t??c??ml.height,stroke:e??u,strokeWidth:m,className:ul("lucide",d,r),...!n&&!fl(o)&&{"aria-hidden":"true"},...o},[...a.map(([e,t])=>j(e,t)),...Array.isArray(n)?n:[n]])}),yl=(e,t)=>{const i=R(({className:i,...s},r)=>{return j(xl,{ref:r,iconNode:t,className:ul(`lucide-${n=dl(e),n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...s});var n});return i.displayName=dl(e),i},vl=yl("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),bl=yl("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),wl=yl("circle-x",[["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"}]]),kl=yl("clipboard",[["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"}]]),El=yl("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),Sl=yl("lightbulb",[["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"}]]),Cl=yl("link",[["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"}]]),_l=yl("triangle-alert",[["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"}]]),Nl="size-5 -me-0.5 fill-(--callout-color) text-fd-card";function Il({type:e="info",icon:i,children:r,className:n,style:a,...o}){const l=function(e){return"warn"===e?"warning":"tip"===e?"info":e}(e);return t("div",{className:al("flex gap-2 my-4 rounded-xl border bg-fd-card p-3 ps-1 text-sm text-fd-card-foreground shadow-md",n),style:{"--callout-color":`var(--color-fd-${l}, var(--color-fd-muted))`,...a},...o,children:[s("div",{role:"none",className:"w-0.5 bg-(--callout-color)/50 rounded-sm"}),i??{info:s(El,{className:Nl}),warning:s(_l,{className:Nl}),error:s(wl,{className:Nl}),success:s(bl,{className:Nl}),idea:s(Sl,{className:"size-5 -me-0.5 fill-(--callout-color) text-(--callout-color)"})}[l],s("div",{className:"flex flex-col gap-2 min-w-0 flex-1",children:r})]})}function Al({children:e,className:t,...i}){return s("p",{className:al("font-medium my-0!",t),...i,children:e})}function Tl({children:e,className:t,...i}){return s("div",{className:al("text-fd-muted-foreground prose-no-margin empty:hidden",t),...i,children:e})}function Pl({as:e,className:i,...r}){const n=e??"h1";return r.id?t(n,{className:al("flex scroll-m-28 flex-row items-center gap-2",i),...r,children:[s("a",{"data-card":"",href:`#${r.id}`,className:"peer",children:r.children}),s(Cl,{"aria-hidden":!0,className:"size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100"})]}):s(n,{className:i,...r})}const Ll=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,Vl=et,Rl={primary:"bg-fd-primary text-fd-primary-foreground hover:bg-fd-primary/80 disabled:bg-fd-secondary disabled:text-fd-secondary-foreground",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"},Ol=(jl="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",Dl={variants:{variant:Rl,color:Rl,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==Dl?void 0:Dl.variants))return Vl(jl,null==e?void 0:e.class,null==e?void 0:e.className);const{variants:i,defaultVariants:s}=Dl,r=Object.keys(i).map(t=>{const r=null==e?void 0:e[t],n=null==s?void 0:s[t];if(null===r)return null;const a=Ll(r)||Ll(n);return i[t][a]}),n=e&&Object.entries(e).reduce((e,t)=>{let[i,s]=t;return void 0===s||(e[i]=s),e},{}),a=null==Dl||null===(t=Dl.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({...s,...n}[t]):{...s,...n}[t]===i})?[...e,i,r]:e},[]);return Vl(jl,r,a,null==e?void 0:e.class,null==e?void 0:e.className)});var jl,Dl;function Ml(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})}}function Fl(e,t,{checkForDefaultPrevented:i=!0}={}){return function(s){if(e?.(s),!1===i||!s.defaultPrevented)return t?.(s)}}function Bl(e,t=[]){let i=[];const r=()=>{const t=i.map(e=>C.createContext(e));return function(i){const s=i?.[e]||t;return C.useMemo(()=>({[`__scope${e}`]:{...i,[e]:s}}),[i,s])}};return r.scopeName=e,[function(t,r){const n=C.createContext(r),a=i.length;i=[...i,r];const o=t=>{const{scope:i,children:r,...o}=t,l=i?.[e]?.[a]||n,c=C.useMemo(()=>o,Object.values(o));return s(l.Provider,{value:c,children:r})};return o.displayName=t+"Provider",[o,function(i,s){const o=s?.[e]?.[a]||n,l=C.useContext(o);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${i}\` must be used within \`${t}\``)}]},Ul(r,...t)]}function Ul(...e){const t=e[0];if(1===e.length)return t;const i=()=>{const i=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const s=i.reduce((t,{useScope:i,scopeName:s})=>({...t,...i(e)[`__scope${s}`]}),{});return C.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return i.scopeName=t.scopeName,i}function Jl(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function zl(...e){return t=>{let i=!1;const s=e.map(e=>{const s=Jl(e,t);return i||"function"!=typeof s||(i=!0),s});if(i)return()=>{for(let t=0;t<s.length;t++){const i=s[t];"function"==typeof i?i():Jl(e[t],null)}}}}function ql(...e){return C.useCallback(zl(...e),e)}function Xl(e){const t=Gl(e),i=C.forwardRef((e,i)=>{const{children:r,...n}=e,a=C.Children.toArray(r),o=a.find(Wl);if(o){const e=o.props.children,r=a.map(t=>t===o?C.Children.count(e)>1?C.Children.only(null):C.isValidElement(e)?e.props.children:null:t);return s(t,{...n,ref:i,children:C.isValidElement(e)?C.cloneElement(e,void 0,r):null})}return s(t,{...n,ref:i,children:r})});return i.displayName=`${e}.Slot`,i}function Gl(e){const t=C.forwardRef((e,t)=>{const{children:i,...s}=e;if(C.isValidElement(i)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,i=t&&"isReactWarning"in t&&t.isReactWarning;if(i)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,i=t&&"isReactWarning"in t&&t.isReactWarning,i)return e.props.ref;return e.props.ref||e.ref}(i),r=function(e,t){const i={...t};for(const s in t){const r=e[s],n=t[s];/^on[A-Z]/.test(s)?r&&n?i[s]=(...e)=>{const t=n(...e);return r(...e),t}:r&&(i[s]=r):"style"===s?i[s]={...r,...n}:"className"===s&&(i[s]=[r,n].filter(Boolean).join(" "))}return{...e,...i}}(s,i.props);return i.type!==C.Fragment&&(r.ref=t?zl(t,e):e),C.cloneElement(i,r)}return C.Children.count(i)>1?C.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Hl=Symbol("radix.slottable");function Wl(e){return C.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Hl}var $l=globalThis?.document?C.useLayoutEffect:()=>{},Kl=C[" useId ".trim().toString()]||(()=>{}),Ql=0;function Yl(e){const[t,i]=C.useState(Kl());return $l(()=>{i(e=>e??String(Ql++))},[e]),t?`radix-${t}`:""}var Zl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const i=Xl(`Primitive.${t}`),r=C.forwardRef((e,r)=>{const{asChild:n,...a}=e,o=n?i:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),s(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});var ec=C[" useInsertionEffect ".trim().toString()]||$l;function tc({prop:e,defaultProp:t,onChange:i=()=>{},caller:s}){const[r,n,a]=function({defaultProp:e,onChange:t}){const[i,s]=C.useState(e),r=C.useRef(i),n=C.useRef(t);return ec(()=>{n.current=t},[t]),C.useEffect(()=>{r.current!==i&&(n.current?.(i),r.current=i)},[i,r]),[i,s,n]}({defaultProp:t,onChange:i}),o=void 0!==e,l=o?e:r;{const t=C.useRef(void 0!==e);C.useEffect(()=>{const e=t.current;if(e!==o){const t=e?"controlled":"uncontrolled",i=o?"controlled":"uncontrolled";console.warn(`${s} is changing from ${t} to ${i}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=o},[o,s])}const c=C.useCallback(t=>{if(o){const i=function(e){return"function"==typeof e}(t)?t(e):t;i!==e&&a.current?.(i)}else n(t)},[o,e,n,a]);return[l,c]}var ic=C.createContext(void 0);function sc(e){const t=C.useContext(ic);return e||t||"ltr"}var rc="rovingFocusGroup.onEntryFocus",nc={bubbles:!1,cancelable:!0},ac="RovingFocusGroup",[oc,lc,cc]=function(e){const t=e+"CollectionProvider",[i,r]=Bl(t),[n,a]=i(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{const{scope:t,children:i}=e,r=_.useRef(null),a=_.useRef(new Map).current;return s(n,{scope:t,itemMap:a,collectionRef:r,children:i})};o.displayName=t;const l=e+"CollectionSlot",c=Xl(l),p=_.forwardRef((e,t)=>{const{scope:i,children:r}=e,n=ql(t,a(l,i).collectionRef);return s(c,{ref:n,children:r})});p.displayName=l;const h=e+"CollectionItemSlot",u="data-radix-collection-item",d=Xl(h),m=_.forwardRef((e,t)=>{const{scope:i,children:r,...n}=e,o=_.useRef(null),l=ql(t,o),c=a(h,i);return _.useEffect(()=>(c.itemMap.set(o,{ref:o,...n}),()=>{c.itemMap.delete(o)})),s(d,{[u]:"",ref:l,children:r})});return m.displayName=h,[{Provider:o,Slot:p,ItemSlot:m},function(t){const i=a(e+"CollectionConsumer",t);return _.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])},r]}(ac),[pc,hc]=Bl(ac,[cc]),[uc,dc]=pc(ac),mc=C.forwardRef((e,t)=>s(oc.Provider,{scope:e.__scopeRovingFocusGroup,children:s(oc.Slot,{scope:e.__scopeRovingFocusGroup,children:s(fc,{...e,ref:t})})}));mc.displayName=ac;var fc=C.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:i,orientation:r,loop:n=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:p,preventScrollOnEntryFocus:h=!1,...u}=e,d=C.useRef(null),m=ql(t,d),f=sc(a),[g,x]=tc({prop:o,defaultProp:l??null,onChange:c,caller:ac}),[y,v]=C.useState(!1),b=function(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>(...e)=>t.current?.(...e),[])}(p),w=lc(i),k=C.useRef(!1),[E,S]=C.useState(0);return C.useEffect(()=>{const e=d.current;if(e)return e.addEventListener(rc,b),()=>e.removeEventListener(rc,b)},[b]),s(uc,{scope:i,orientation:r,dir:f,loop:n,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:s(Zl.div,{tabIndex:y||0===E?-1:0,"data-orientation":r,...u,ref:m,style:{outline:"none",...e.style},onMouseDown:Fl(e.onMouseDown,()=>{k.current=!0}),onFocus:Fl(e.onFocus,e=>{const t=!k.current;if(e.target===e.currentTarget&&t&&!y){const t=new CustomEvent(rc,nc);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=w().filter(e=>e.focusable);vc([e.find(e=>e.active),e.find(e=>e.id===g),...e].filter(Boolean).map(e=>e.ref.current),h)}}k.current=!1}),onBlur:Fl(e.onBlur,()=>v(!1))})})}),gc="RovingFocusGroupItem",xc=C.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:i,focusable:r=!0,active:n=!1,tabStopId:a,children:o,...l}=e,c=Yl(),p=a||c,h=dc(gc,i),u=h.currentTabStopId===p,d=lc(i),{onFocusableItemAdd:m,onFocusableItemRemove:f,currentTabStopId:g}=h;return C.useEffect(()=>{if(r)return m(),()=>f()},[r,m,f]),s(oc.ItemSlot,{scope:i,id:p,focusable:r,active:n,children:s(Zl.span,{tabIndex:u?0:-1,"data-orientation":h.orientation,...l,ref:t,onMouseDown:Fl(e.onMouseDown,e=>{r?h.onItemFocus(p):e.preventDefault()}),onFocus:Fl(e.onFocus,()=>h.onItemFocus(p)),onKeyDown:Fl(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void h.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,i){const s=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,i);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(s)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(s)?void 0:yc[s]}(e,h.orientation,h.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=d().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();const n=r.indexOf(e.currentTarget);r=h.loop?(s=n+1,(i=r).map((e,t)=>i[(s+t)%i.length])):r.slice(n+1)}setTimeout(()=>vc(r))}var i,s}),children:"function"==typeof o?o({isCurrentTabStop:u,hasTabStop:null!=g}):o})})});xc.displayName=gc;var yc={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function vc(e,t=!1){const i=document.activeElement;for(const s of e){if(s===i)return;if(s.focus({preventScroll:t}),document.activeElement!==i)return}}var bc=mc,wc=xc;var kc=e=>{const{present:t,children:i}=e,s=function(e){const[t,i]=C.useState(),s=C.useRef(null),r=C.useRef(e),n=C.useRef("none"),a=e?"mounted":"unmounted",[o,l]=function(e,t){return C.useReducer((e,i)=>t[e][i]??e,e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{const e=Ec(s.current);n.current="mounted"===o?e:"none"},[o]),$l(()=>{const t=s.current,i=r.current;if(i!==e){const s=n.current,a=Ec(t);if(e)l("MOUNT");else if("none"===a||"none"===t?.display)l("UNMOUNT");else{l(i&&s!==a?"ANIMATION_OUT":"UNMOUNT")}r.current=e}},[e,l]),$l(()=>{if(t){let e;const i=t.ownerDocument.defaultView??window,a=n=>{const a=Ec(s.current).includes(CSS.escape(n.animationName));if(n.target===t&&a&&(l("ANIMATION_END"),!r.current)){const s=t.style.animationFillMode;t.style.animationFillMode="forwards",e=i.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=s)})}},o=e=>{e.target===t&&(n.current=Ec(s.current))};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)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:C.useCallback(e=>{s.current=e?getComputedStyle(e):null,i(e)},[])}}(t),r="function"==typeof i?i({present:s.isPresent}):C.Children.only(i),n=ql(s.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,i=t&&"isReactWarning"in t&&t.isReactWarning;if(i)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,i=t&&"isReactWarning"in t&&t.isReactWarning,i)return e.props.ref;return e.props.ref||e.ref}(r));return"function"==typeof i||s.isPresent?C.cloneElement(r,{ref:n}):null};function Ec(e){return e?.animationName||"none"}kc.displayName="Presence";var Sc="Tabs",[Cc]=Bl(Sc,[hc]),_c=hc(),[Nc,Ic]=Cc(Sc),Ac=C.forwardRef((e,t)=>{const{__scopeTabs:i,value:r,onValueChange:n,defaultValue:a,orientation:o="horizontal",dir:l,activationMode:c="automatic",...p}=e,h=sc(l),[u,d]=tc({prop:r,onChange:n,defaultProp:a??"",caller:Sc});return s(Nc,{scope:i,baseId:Yl(),value:u,onValueChange:d,orientation:o,dir:h,activationMode:c,children:s(Zl.div,{dir:h,"data-orientation":o,...p,ref:t})})});Ac.displayName=Sc;var Tc="TabsList",Pc=C.forwardRef((e,t)=>{const{__scopeTabs:i,loop:r=!0,...n}=e,a=Ic(Tc,i),o=_c(i);return s(bc,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:s(Zl.div,{role:"tablist","aria-orientation":a.orientation,...n,ref:t})})});Pc.displayName=Tc;var Lc="TabsTrigger",Vc=C.forwardRef((e,t)=>{const{__scopeTabs:i,value:r,disabled:n=!1,...a}=e,o=Ic(Lc,i),l=_c(i),c=jc(o.baseId,r),p=Dc(o.baseId,r),h=r===o.value;return s(wc,{asChild:!0,...l,focusable:!n,active:h,children:s(Zl.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":p,"data-state":h?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:c,...a,ref:t,onMouseDown:Fl(e.onMouseDown,e=>{n||0!==e.button||!1!==e.ctrlKey?e.preventDefault():o.onValueChange(r)}),onKeyDown:Fl(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&o.onValueChange(r)}),onFocus:Fl(e.onFocus,()=>{const e="manual"!==o.activationMode;h||n||!e||o.onValueChange(r)})})})});Vc.displayName=Lc;var Rc="TabsContent",Oc=C.forwardRef((e,t)=>{const{__scopeTabs:i,value:r,forceMount:n,children:a,...o}=e,l=Ic(Rc,i),c=jc(l.baseId,r),p=Dc(l.baseId,r),h=r===l.value,u=C.useRef(h);return C.useEffect(()=>{const e=requestAnimationFrame(()=>u.current=!1);return()=>cancelAnimationFrame(e)},[]),s(kc,{present:n||h,children:({present:i})=>s(Zl.div,{"data-state":h?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!i,id:p,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:u.current?"0s":void 0},children:i&&a})})});function jc(e,t){return`${e}-trigger-${t}`}function Dc(e,t){return`${e}-content-${t}`}Oc.displayName=Rc;const Mc=new Map,Fc=V(null);const Bc=Pc,Uc=Vc;function Jc({ref:e,groupId:t,persist:i=!1,updateAnchor:r=!1,defaultValue:n,value:a,onValueChange:o,...l}){const c=I(null),p=P(()=>new Map,[]),[h,u]=void 0===a?N(n):[a,D(e=>o?.(e))];return M(()=>{if(!t)return;let e=sessionStorage.getItem(t);i&&(e??=localStorage.getItem(t)),e&&u(e);const s=Mc.get(t)??new Set;return s.add(u),Mc.set(t,s),()=>{s.delete(u)}},[t,i,u]),M(()=>{const e=window.location.hash.slice(1);if(e)for(const[t,i]of p.entries())if(i===e){u(t),c.current?.scrollIntoView();break}},[u,p]),s(Ac,{ref:Ml(e,c),value:h,onValueChange:e=>{if(r){const t=p.get(e);t&&window.history.replaceState(null,"",`#${t}`)}if(t){const s=Mc.get(t);if(s)for(const t of s)t(e);sessionStorage.setItem(t,e),i&&localStorage.setItem(t,e)}else u(e)},...l,children:s(Fc,{value:P(()=>({valueToIdMap:p}),[p]),children:l.children})})}function zc({value:e,...t}){const{valueToIdMap:i}=function(){const e=L(Fc);if(!e)throw new Error("You must wrap your component in <Tabs>");return e}();return t.id&&i.set(e,t.id),s(Oc,{value:e,...t,children:t.children})}const qc=V(null);function Xc(e){return s("pre",{...e,className:al("min-w-full w-max *:flex *:flex-col",e.className),children:e.children})}function Gc({ref:e,title:i,allowCopy:r=!0,keepBackground:n=!1,icon:a,viewportProps:o={},children:l,Actions:c=e=>s("div",{...e,className:al("empty:hidden",e.className)}),...p}){const h=null!==L(qc),u=I(null);return t("figure",{ref:e,dir:"ltr",...p,tabIndex:-1,className:al(h?"bg-fd-secondary -mx-px -mb-px last:rounded-b-xl":"my-4 bg-fd-card rounded-xl",n&&"bg-(--shiki-light-bg) dark:bg-(--shiki-dark-bg)","shiki relative border shadow-sm not-prose overflow-hidden text-sm",p.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?s("div",{className:"[&_svg]:size-3.5",dangerouslySetInnerHTML:{__html:a}}):a,s("figcaption",{className:"flex-1 truncate",children:i}),c({className:"-me-2",children:r&&s(Hc,{containerRef:u})})]}):c({className:"absolute top-3 right-2 z-2 backdrop-blur-lg rounded-lg text-fd-muted-foreground",children:r&&s(Hc,{containerRef:u})}),s("div",{ref:u,...o,role:"region",tabIndex:0,className:al("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:p["data-line-numbers"]?"line "+(Number(p["data-line-numbers-start"]??1)-1):void 0,...o.style},children:l})]})}function Hc({className:e,containerRef:t,...i}){const[r,n]=function(e){const[t,i]=N(!1),s=I(e),r=I(null);s.current=e;const n=A(()=>{r.current&&window.clearTimeout(r.current),Promise.resolve(s.current()).then(()=>{i(!0),r.current=window.setTimeout(()=>{i(!1)},1500)})},[]);return T(()=>()=>{r.current&&window.clearTimeout(r.current)},[]),[t,n]}(()=>{const e=t.current?.getElementsByTagName("pre").item(0);if(!e)return;const i=e.cloneNode(!0);i.querySelectorAll(".nd-copy-ignore").forEach(e=>{e.replaceWith("\n")}),navigator.clipboard.writeText(i.textContent??"")});return s("button",{type:"button","data-checked":r||void 0,className:al(Ol({className:"hover:text-fd-accent-foreground data-checked:text-fd-accent-foreground",size:"icon-xs"}),e),"aria-label":r?"Copied Text":"Copy Text",onClick:n,...i,children:s(r?vl:kl,{})})}const Wc={CodeBlockTab:function(e){return s(zc,{...e})},CodeBlockTabs:function({ref:e,...t}){const i=I(null),r=null!==L(qc);return s(Jc,{ref:Ml(i,e),...t,className:al("bg-fd-card rounded-xl border",!r&&"my-4",t.className),children:s(qc,{value:P(()=>({containerRef:i,nested:r}),[r]),children:t.children})})},CodeBlockTabsList:function(e){return s(Bc,{...e,className:al("flex flex-row px-2 overflow-x-auto text-fd-muted-foreground",e.className),children:e.children})},CodeBlockTabsTrigger:function({children:e,...i}){return t(Uc,{...i,className:al("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:[s("div",{className:"absolute inset-x-2 bottom-0 h-px group-data-[state=active]:bg-fd-primary"}),e]})},pre:e=>s(Gc,{...e,children:s(Xc,{children:e.children})}),Card:function({icon:e,title:i,description:r,...n}){return t(n.href?hl:"div",{...n,"data-card":!0,className:al("block rounded-xl border bg-fd-card p-4 text-fd-card-foreground transition-colors @max-lg:col-span-full",n.href&&"hover:bg-fd-accent/80",n.className),children:[e?s("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,s("h3",{className:"not-prose mb-1 text-sm font-medium",children:i}),r?s("p",{className:"my-0! text-sm text-fd-muted-foreground",children:r}):null,s("div",{className:"text-sm text-fd-muted-foreground prose-no-margin empty:hidden",children:n.children})]})},Cards:function(e){return s("div",{...e,className:al("grid grid-cols-2 gap-3 @container",e.className),children:e.children})},a:hl,img:function(e){return s(cl,{sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 70vw, 900px",...e,className:al("rounded-lg",e.className)})},h1:e=>s(Pl,{as:"h1",...e}),h2:e=>s(Pl,{as:"h2",...e}),h3:e=>s(Pl,{as:"h3",...e}),h4:e=>s(Pl,{as:"h4",...e}),h5:e=>s(Pl,{as:"h5",...e}),h6:e=>s(Pl,{as:"h6",...e}),table:function(e){return s("div",{className:"relative overflow-auto prose-no-margin my-6",children:s("table",{...e})})},Callout:function({children:e,title:i,...r}){return t(Il,{...r,children:[i&&s(Al,{children:i}),s(Tl,{children:e})]})},CalloutContainer:Il,CalloutTitle:Al,CalloutDescription:Tl};function $c({source:i,components:r}){const[n,a]=N(null),[o,l]=N(null);if(T(()=>{let t=!1;return async function(){try{const{default:s}=await Ua(i,{...e,baseUrl:import.meta.url,remarkPlugins:[vt,bt],rehypePlugins:[Rt]});t||(a(()=>s),l(null))}catch(e){t||(l(e.message),a(null))}}(),()=>{t=!0}},[i]),o)return s("pre",{style:{color:"red",whiteSpace:"pre-wrap"},children:o});if(!n)return null;const c={...Wc,...r},p=[...i.matchAll(/<([A-Z][a-zA-Z0-9]*)\b/g)].map(e=>e[1]);for(const e of p)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 s(n,{components:c})}function Kc(e){const{zoom:r,isRendering:n,isFullscreen:a,onZoom:o,onReset:l,onToggleFullscreen:c,zoomShortcutButtons:p}=e;return t("div",{className:"jk-row gap jk-pg-xsm",children:[s(K,{onClick:()=>o(-.1),icon:s(Ye,{size:"small"}),size:"tiny",type:"secondary"}),t("span",{style:{minWidth:"42px",textAlign:"center",fontSize:"0.8rem",userSelect:"none"},children:[Math.round(100*r),"%"]}),s(K,{onClick:()=>o(.1),icon:s(Me,{size:"small"}),size:"tiny",type:"secondary"}),p&&t(i,{children:[s("div",{style:{width:"1px",height:"16px",background:"var(--t-color-gray-4)",margin:"0 4px"}}),s(K,{onClick:()=>o(1-r),size:"tiny",type:"secondary",children:"100%"}),s(K,{onClick:()=>o(2-r),size:"tiny",type:"secondary",children:"200%"}),s(K,{onClick:l,icon:s(Fe,{size:"small"}),size:"tiny",type:"secondary",children:s(G,{className:"tt-se",children:"reset"})})]}),s("div",{style:{flex:1}}),n&&s(Be,{size:"small"}),s(K,{onClick:c,icon:s(a?je:De,{size:"small"}),size:"tiny",type:"secondary"})]})}const Qc='{\n "logLevel": "error",\n "securityLevel": "loose",\n "startOnLoad": false\n}';function Yc({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:[s(Ue,{size:"small",style:{flexShrink:0,marginTop:"2px"}}),s("pre",{style:{fontSize:"0.75rem",margin:0,whiteSpace:"pre-wrap",wordBreak:"break-word",fontFamily:"monospace"},children:e})]})}const Zc=e=>{const{source:r,mermaidTheme:n="default",configJson:a=Qc,fileName:o="diagram",copyButtons:l=!0,downloadButtons:c=!0,zoomShortcutButtons:p=!0}=e,[h,u]=N(1),[d,m]=N({x:0,y:0}),[f,g]=N(!1),[x,y]=N(!1),v=I({x:0,y:0}),b=I(null),w=I(null);T(()=>{const e=()=>y(!!document.fullscreenElement);return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[]);const k=A(e=>{u(t=>Math.max(.1,Math.min(8,parseFloat((t+e).toFixed(2)))))},[]),E=A(()=>{u(1),m({x:0,y:0})},[]),S=A(e=>{0===e.button&&(g(!0),v.current={x:e.clientX-d.x,y:e.clientY-d.y})},[d]),C=A(e=>{f&&m({x:e.clientX-v.current.x,y:e.clientY-v.current.y})},[f]),_=A(()=>g(!1),[]);T(()=>{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[P,L]=N(""),[V,R]=N(""),[O,j]=N(!1),D=I(null),M=I(0);T(()=>{const e=++M.current;j(!0);const t=setTimeout(async()=>{try{const{default:t}=await import("./mermaid.core-Ch6a1N6x.js").then(function(e){return e.av});let i={};try{i=JSON.parse(a)}catch(e){console.warn("Error on parsing configJson",e)}t.initialize({startOnLoad:!1,theme:n,securityLevel:"loose",...i});const{svg:s}=await t.render(`mermaid-render-${e}`,r);if(s.includes('aria-roledescription="error"')){const e=s.match(/<text class="error-text"[^>]*>([^<]*)<\/text>/);throw new Error(e?.[1]??"Syntax error")}e===M.current&&(L(s),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,n,a]);const F=A(()=>{const e=D.current;return e?qt.toBlob(e,{bgcolor:"dark"===n?"#1e1e2e":"#ffffff"}):Promise.reject(new Error("No SVG"))},[n]),B=A(()=>{if(!P)return;const e=new Blob([P],{type:"image/svg+xml"});ke(e,`${o}.svg`)},[P,o]),U=A(async()=>{try{const e=await F();ke(e,`${o}.png`)}catch(e){console.error("PNG export failed",e)}},[F,o]),J=A(async()=>{try{const e=await F();await navigator.clipboard.write([new ClipboardItem({"image/png":e})])}catch(e){console.error("PNG copy failed",e)}},[F]),z=A(async()=>{b.current&&(document.fullscreenElement?await document.exitFullscreen():await b.current.requestFullscreen())},[]);return s("div",{className:"ht-100 jk-col ow-hn flex-1 wh-100",ref:b,children:V?s(Yc,{error:V}):t(i,{children:[s(Kc,{zoom:h,isRendering:O,isFullscreen:x,onZoom:k,onReset:E,onToggleFullscreen:z,renderedSvg:P,mermaidTheme:n,zoomShortcutButtons:p}),(l||c)&&t("div",{className:"jk-row gap",children:[l&&t(i,{children:[s(oe,{disabled:!P,iconSize:"tiny",text:P,children:"SVG"},"copy-svg"),s(K,{onClick:J,disabled:!P,icon:s(Re,{size:"small"}),size:"tiny",children:"PNG"})]}),c&&t(i,{children:[s(K,{onClick:B,disabled:!P,icon:s(Oe,{size:"small"}),size:"tiny",children:"SVG"}),s(K,{onClick:U,disabled:!P,icon:s(Oe,{size:"small"}),size:"tiny",children:"PNG"})]})]}),t("div",{ref:w,className:"wh-100",style:{flex:1,overflow:"hidden",cursor:f?"grabbing":"grab",position:"relative",userSelect:"none",background:"dark"===n?"#1e1e2e":"var(--t-color-bg-1, #f8fafc)"},onMouseDown:S,onMouseMove:C,onMouseUp:_,onMouseLeave:_,children:[s("div",{style:{position:"absolute",top:"50%",left:"50%",transform:`translate(calc(-50% + ${d.x}px), calc(-50% + ${d.y}px)) scale(${h})`,transformOrigin:"center center"},children:P?s("div",{ref:D,dangerouslySetInnerHTML:{__html:P},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:[s(Qe,{size:"huge"}),s(G,{className:"tt-se",children:"start typing to see your diagram"})]})}),O&&!P&&s("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(0,0,0,0.05)"},children:s(Be,{size:"large"})}),s("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"})]})]})})},ep=[a.COMPILING,a.COMPILED,a.COMPILATION_ERROR],tp=({testCase:e,timeLimit:i,memoryLimit:r})=>{const{timeUsed:n,timeLimitExceeded:o,memoryUsed:l,memoryLimitExceeded:c,exitCode:p,runtimeError:h}=d(e,ep.includes(e.status)?10*m:i,ep.includes(e.status)?1048576:r);if(e.status===a.COMPILATION_ERROR)return s("div",{className:"jk-pg-xsm jk-row gap left tx-t",style:{lineHeight:1},children:s("span",{className:"tt-se cr-er",children:s(G,{children:"compilation error"})})});const u=h&&!o&&!c;return t("div",{className:"jk-col gap left stretch tx-s",style:{lineHeight:1},children:[t("div",{className:we("jk-row left",{"cr-er":o}),children:[s(G,{className:"tt-se",children:"time used"}),": ",n," ",s(G,{children:"ms"})," / ",i," ",s(G,{children:"ms"})]}),o&&s(G,{className:"tt-se cr-er jk-pg-l",children:"time limit exceeded"}),t("div",{className:we("jk-row left",{"cr-er":c}),children:[s(G,{className:"tt-se",children:"memory used"}),": ",l," ",s(G,{children:"KB"})," / ",r," ",s(G,{children:"KB"})]}),c&&s(G,{className:"tt-se cr-er jk-pg-l",children:"memory limit exceeded"}),t("div",{className:we("jk-row left",{"cr-er":u}),children:[s(G,{className:"tt-se",children:"exit code"}),": ",p]}),u&&s(G,{className:"tt-se cr-er jk-pg-l",children:"runtime error"})]})},ip=({onChange:e,testCasesValues:t,sample:i=!1})=>{const{addNotification:r}=Y();return s("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:s(Ge,{size:"small",onClick:()=>{const n=t.filter(e=>!e.sample),o=t.filter(e=>e.sample),l=i?o:n;if(l.length<(i?30:16)){const t=globalThis.crypto.randomUUID(),s=y(l.map(e=>e.index));e?.({onTestCasesChange:e=>({...e,[t]:{key:t,index:s,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:s(G,{children:"maximum test cases achieved"})})}})})},sp=e=>{const{testCases:r={},onChangeRef:n,timeLimit:o,memoryLimit:l,direction:c,enableAddSampleCases:p,enableAddCustomSampleCases:h}=e,u=Object.values(r).sort((e,t)=>"*"===e.key?-1:"*"===t.key?1:e.sample!==t.sample?+t.sample-+e.sample:e.index-t.index),[m,y]=N(u[0]?.key||"*");T(()=>{const e=Object.values(r);e.length&&e[0]&&(e.some(e=>e.key===m)||y(e[0].key))},[m,r]);const[v,b]=N("output"),[w,k]=N("input"),E=r[m],S=!!E&&(d(E,o,l).failed||!!E?.err||[a.FAILED,a.COMPILATION_ERROR,a.FAILED_TEST_CASE].includes(E.status));T(()=>{b(S?"error":"output")},[S]);const C=E?.status===a.RECEIVED||E?.status===a.COMPILING||E?.status===a.RUNNING_TEST_CASES||E?.status===a.RUNNING_TEST_CASE,_=C&&s("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:[s(G,{className:"tt-se",children:f[E?.status].label})," ",s("div",{className:"dot-flashing"})]})}),I={};E?.testOut&&(I["test-output"]={key:"test-output",header:t("div",{className:"jk-row gap left nowrap",children:[s(G,{className:"tt-se",children:"expected output"}),E?.withPE&&s(le,{text:E?.testOut||""})]}),body:s("div",{className:"ht-100 jk-col stretch nowrap",children:s("div",{className:"jk-pg-xsm ow-ao flex-1",children:s("span",{className:"jk-text-stdout",children:E?.testOut})})})}),I.output={key:"output",header:s(G,{className:we("tt-se"),children:"your output"}),body:t("div",{className:"ht-100 jk-col stretch nowrap pn-re",children:[_,s("div",{className:"jk-pg-xsm ow-ao flex-1",children:s("span",{className:"jk-text-stdout",children:E?.out})})]})},S&&(I.error={key:"error",header:s(G,{className:we("tt-se"),children:"error"}),body:t("div",{className:"ht-100 jk-col stretch nowrap pn-re",children:[_,s("div",E&&!E?.err?{className:"jk-row",children:s(tp,{testCase:E,timeLimit:o,memoryLimit:l})}:{className:"jk-pg-xsm ow-ao flex-1",children:s("span",{className:"jk-text-stderr tx-t bc-er cr-we jk-pg-xsm",children:E?.err})})]})});const A={input:{key:"input",header:s(G,{className:"tt-se",children:"input"}),body:(E?.sample?p:h)&&n?.current?s(ce,{style:{height:"calc(100% - 4px)",overflow:"auto",width:"calc(100% - 4px)",margin:2,position:"absolute"},wrap:"off",className:"tx-s flex-1",value:E?.in,disabled:!E,onChange:E?e=>n?.current?.({onTestCasesChange:t=>({...t,[E?.key]:{...E,in:e}})}):void 0}):s("div",{className:"flex-1 ow-ao jk-pg-xsm",children:s("span",{className:"jk-text-stdout",children:E?.in})})}};return E?.sample&&p&&(A.output={key:"output",header:s(G,{className:"tt-se",children:"expected output"}),body:n?.current?s(ce,{style:{height:"calc(100% - 4px)",overflow:"auto",width:"calc(100% - 4px)",margin:2,position:"absolute"},wrap:"off",className:"tx-s flex-1",value:E?.testOut,onChange:e=>n?.current?.({onTestCasesChange:t=>({...t,[E?.key]:{...E,testOut:e}})})}):s("div",{className:"flex-1 ow-ao jk-pg-xsm",children:s("span",{className:"jk-text-stdout",children:E?.testOut})})},A.settings={key:"settings",header:s(G,{className:"tt-se",children:"settings"}),body:t("div",{className:"jk-col gap jk-pg-sm",children:[s(pe,{size:"small",checked:E?.hidden,leftLabel:s(G,{className:"tt-se tx-s",children:"no hidden"}),rightLabel:s(G,{className:"tt-se tx-s",children:"hidden"}),onChange:n?.current?e=>n?.current?.({onTestCasesChange:t=>({...t,[E?.key]:{...E,hidden:e}})}):void 0}),s(pe,{size:"small",checked:E?.withPE,leftLabel:s(G,{className:"tt-se tx-s",children:"without PE"}),rightLabel:s(G,{className:"tt-se tx-s",children:"with PE"}),onChange:n?.current?e=>n?.current?.({onTestCasesChange:t=>({...t,[E?.key]:{...E,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:[s("div",{className:"jk-row ta-cr fw-bd jk-pg-xsm-tb border-bottom-highlight-light",children:s(G,{className:"tt-se",style:{width:48,lineHeight:1},children:"test cases"})}),u.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:()=>y(e.key),className:we("jk-row hoverable jk-pg-xsm space-between",{"bc-ht-lt":e.key===m}),style:{minWidth:80},children:[t("div",{className:"jk-row left",children:["*"===e.key?s(We,{size:"small"}):s(We,{letter:(e.index+1)%10+"",letterSize:12,size:"small",className:we({"cr-io-lt":e.sample})}),(e.sample?p:h)&&"*"!==e.key&&t(i,{children:[" ",s(Pe,{size:"tiny",className:"clickable br-50-pc","data-tooltip-id":"jk-tooltip","data-tooltip-content":"delete case","data-tooltip-place":"right",onClick:()=>{n?.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:[" ",s(he,{verdict:r,small:!0})]}):s("div",{"data-tooltip-id":"jk-tooltip","data-tooltip-content":"success executed",className:"cr-io-lt",style:{lineHeight:1,padding:"2px 4px"},children:s(ze,{size:"tiny",filledCircle:!0})}):t(i,{children:[" ",s(Je,{size:"tiny"})]}))]},e.key)}),p&&n?.current&&s("div",{className:"jk-row jk-pg-xsm-tb border-top-highlight-light",children:s(ip,{onChange:n?.current,testCasesValues:u,testCases:r,sample:!0})}),h&&n?.current&&s("div",{className:"jk-row jk-pg-xsm-tb border-top-highlight-light",children:s(ip,{onChange:n?.current,testCasesValues:u,testCases:r})})]}),!p&&E?.hidden?s("div",{className:"jk-row center ht-100 flex-1",children:s(G,{className:"tt-se jk-tag bc-io-lt",children:"test input hidden"})}):t(ue,{direction:"row"===c?"column":"row",className:"flex-1 ow-hn",children:[t("div",{className:"jk-col extend stretch nowrap",children:[s(de,{tabs:A,selectedTabKey:w,onChange:k,tabButtonsClassName:"tx-t"}),s("div",{className:"flex-1 wh-100 pn-re ow-hn",children:s(me,{tabs:A,selectedTabKey:w})})]}),t("div",{className:"jk-col stretch test-cases-output-stderr",children:[s(de,{tabs:I,selectedTabKey:v,onChange:b,tabButtonsClassName:"tx-t",extraNodesPlacement:"left",extraNodes:[s("div",{children:s(fe,{popoverClassName:"bc-sf-hi jk-br-ie elevation-1 jk-pg-xsm",content:t("div",{className:"pn-re",children:[C&&t("div",{className:"jk-row",style:{alignItems:"baseline"},children:[s(G,{className:"tt-se",children:f[E?.status].label})," ",s("div",{className:"dot-flashing"})]}),E&&!C&&E.status!==a.NONE?s(tp,{testCase:E,timeLimit:o,memoryLimit:l}):!!E&&!C&&s(G,{className:"tt-se",children:E.sample?"unexecuted sample case":"unexecuted test case"})]}),children:s("div",{className:we("jk-row jk-pg-xsm-l",{"cr-er-lt":S,"cr-io-lt":!S}),children:s(qe,{filledCircle:!0,size:"tiny"})})})},"info")]}),s("div",{className:"flex-1 wh-100 pn-re ow-hn",children:s(me,{tabs:I,selectedTabKey:v})})]})]})]})};function rp(e){const{readOnly:i,languages:r=z.map(e=>({value:e,label:b[e]?.label||e})),onChange:n,leftButtons:a,centerButtons:o,rightButtons:c,testCases:p,tabSize:h=4,fontSize:d=14,timeLimit:f=m,memoryLimit:g=1048576,expandPosition:x,className:y,enableAddCustomSampleCases:v,enableAddSampleCases:k,onlyCodeEditor:E,files:S,currentFileName:C,triggerFocus:_,mdEditorRef:I,withoutRunCodeButton:A,mermaidTheme:T,mermaidConfigJson:L,mermaidFileName:V}=e,{source:R="",language:O=l.TEXT}=S?.[C]??{},j=ee(i?void 0:n),D=ge(e=>e.user.settings[w.THEME]),[M,F]=N("row"),[B,U]=N(!1),J=xe(e=>e.viewPort.isSmallScreen),q=P(()=>u.includes(O)?s(sp,{testCases:p,timeLimit:f,memoryLimit:g,onChangeRef:j,direction:M,enableAddSampleCases:!i&&!!k,enableAddCustomSampleCases:!i&&!!v}):O===l.MERMAID?s(Zc,{source:R,mermaidTheme:T,configJson:L,fileName:V}):O===l.MDX?s("div",{className:"ht-100 wh-100 ow-ao jk-pg-xsm",children:s($c,{source:R})}):O===l.MARKDOWN?s(Xe,{ref:I,className:"ow-ao ht-100",value:R,onChange:e=>j?.current?.({source:e})}):null,[R,O,p,f,g,j,M,i,k,v,I,T,L,V]),X=null!=q,H=E||!X,W=P(()=>({testCases:p||{},timeLimit:f,memoryLimit:g,enableAddSampleCases:!!k,enableAddCustomSampleCases:!!v}),[v,k,g,p,f]),$=P(()=>s(Wt,{preferredTheme:D,language:O,readOnly:i,source:R,tabSize:h,fontSize:d,languages:r,onlyFirstPane:H,triggerFocus:_,setExpanded:U,files:S,currentFileName:C,leftButtons:a,centerButtons:o,rightButtons:c,onChangeRef:j,runner:W,expandPosition:x,expanded:B,withoutRunCodeButton:A}),[D,O,i,R,h,d,r,H,_,S,C,a,o,c,j,W,x,B,A]),Q=P(()=>X?{align:"right",expandLabel:s(G,{className:"label tx-t",children:"test cases"})}:void 0,[X]),Y=P(()=>X&&J?{align:"right",expandLabel:s(G,{className:"label tx-t",children:"code editor"})}:void 0,[X,J]),{ref:Z,width:te=0}=se(),ie=s("div",{className:we("jk-code-mirror-editor-layout jk-br-ie jk-col nowrap stretch bc-sf-md ht-100 wh-100 pn-re",{"elevation-1":B},y),style:{overflow:B?"hidden":void 0},children:t("div",{className:"flex-1 ow-hn jk-row nowrap stretch",children:[s(Ft,{fileTreePanelRef:Z,files:S,currentFileName:C,onChangeRef:j,readOnly:i}),s("div",{className:"jk-row transition-width flex-1",style:{width:`calc(100% - ${te}px)`},children:0===Object.keys(S).length?t("div",{className:"jk-col gap jk-pg",children:[s(G,{className:"tt-se",children:"there are no files in the editor, create a new file to start using the editor"}),s(K,{type:"secondary",onClick:()=>j.current?.({newFileName:""}),children:s(G,{className:"tt-se",children:"create a new file"})})]}):H?$:t(ue,{direction:M,minSize:80,onlyFirstPane:!X,closableSecondPane:Q,closableFirstPane:Y,toggleable:!0,onChangeDirection:F,onePanelAtATime:J,className:"ht-100",children:[$,q]})})]})});return B?s(ye,{children:s("div",{className:"jk-overlay jk-overlay-backdrop",children:s("div",{style:{position:"absolute",...x},children:ie})})}):ie}function np(e){let t={};if("undefined"!=typeof localStorage){const i=e&&localStorage.getItem(e)||"{}";S(i)&&(t=JSON.parse(i))}return t}function ap(e,t,i,s){const r=ee(i),n=ee(s),a=A(()=>{const i={},s=Object.entries(n.current(np(e)));for(const[e,n]of Object.entries(t))i[e]=r.current(n,s.find(([t])=>t===e)?.[1]);for(const[e,t]of s)i[e]||(i[e]=t);return i},[e,n,r,t]),[o,l]=N(a());return T(()=>{l(a())},[a]),T(()=>{const t=setTimeout(()=>{const t=JSON.stringify(o);localStorage.getItem(e)!==t&&localStorage.setItem(e,t)},300);return()=>clearTimeout(t)},[e,o]),[o,l]}const op=e=>b[e]?.fileExtension[0]??"source",lp=(e,t)=>e?`${e}/${t}`:t,cp=(e,t)=>{const i={};for(const[s,r]of Object.entries(e))i[s]={...r,out:t?.[s]?.out??r?.out??"",err:t?.[s]?.err??r?.err??"",log:t?.[s]?.log??r?.log??"",status:t?.[s]?.status??r?.status??a.NONE,messageTimestamp:t?.[s]?.messageTimestamp??r?.messageTimestamp??0},"*"===s&&(i[s].in=t?.[s]?.in??r?.in??"");for(const[e,s]of Object.entries(t??{}))i[e]||(i[e]=s);return i},pp=(e,t)=>({...t,...e}),hp=(e,t,i)=>{let s=`${e}${t}`,r=1;for(;i(s);)s=`${e}(${r})${t}`,r++;return s},up=e=>{const t={};for(const[i,s]of Object.entries(e||{}))t[i]={lastFileName:"string"==typeof s?.lastFileName?s.lastFileName:""};return t},dp=e=>{const t={};for(const[i,s]of Object.entries(e||{})){t[i]={};for(const[e,r]of Object.entries(s))!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 mp=R(function(e,t){const{className:i,expandPosition:r,initialTestCases:n={},initialFileName:o,storeKey:c,languages:p,leftButtons:h,centerButtons:u,rightButtons:d,onFilesChange:m,onCurrentFileNameChange:f,onTestCasesChange:g,initialFiles:x,enableAddSampleCases:y,enableAddCustomSampleCases:v,onIsRunningChange:w,readOnly:S,onCodeRunStatusChange:C,onlyCodeEditor:_,withoutRunCodeButton:A,mermaidTheme:P,mermaidConfigJson:L,mermaidFileName:V}=e,R=ge(e=>e.user.nickname),{addErrorNotification:O}=Y(),j=Se(R),[D,M]=function(e,t){const i=np(e),[s,r]=N({...t,...i}),n=I(t);n.current=t;const a=I(i);return a.current=i,T(()=>{r({...n.current,...a.current})},[e]),T(()=>{const t=setTimeout(()=>{if(e){const t=JSON.stringify(s);localStorage.getItem(e)!==t&&localStorage.setItem(e,t)}},300);return()=>clearTimeout(t)},[e,s]),[s,r]}(j,{theme:k.LIGHT,lastLanguageUsed:l.CPP,tabSize:2,fontSize:14});let B=D.lastLanguageUsed;p?.length&&!p.some(e=>e.value===B)&&p[0]&&(B=p[0].value);const U=(e=>t=>{const i={};for(const[s,r]of Object.entries(t||{})){i[s]={};let t=1;for(const[n,a]of Object.entries(r||{}))if("string"==typeof a){const r=`source-${t}.${op(n)}`;i[s][r]={source:a,language:e?.some(({value:e})=>e===n)?n: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=be("folderPath"in a&&"string"==typeof a?.folderPath?a.folderPath:""),r=be("name"in a&&"string"==typeof a?.name?a.name:""),n=i[s]?.[lp(t,r)]?hp(r,`.${op("language"in a&&"string"==typeof a?.language?a.language:"")}`,e=>!!i[s]?.[lp(t,e)]):r,o=lp(t,n);i[s][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:n,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:!1}}}for(const[e,t]of Object.entries(i)){i[e]={};for(const[,s]of Object.entries(t||{}))s.name||(s.name=hp("recovered",`.${op(s.language)}`,t=>!!i[e]?.[lp(s.folderPath,t)])),i[e][lp(s.folderPath,s.name)]=s}return i})(p),[J]=ve(U({[c]:{...x}})),[z,X]=ap(Ce(R),J,pp,U),H=ee(m),W=z[c]||q;T(()=>H.current?.(W),[W,H]);const $=o??Object.keys(W)[0]??(K=B,b[K]?.mainFilename??"main.source");var K;const[Q]=ve({[c]:{lastFileName:$}}),[Z,te]=ap(_e(R),Q,(e,t)=>({...e,...t}),up),ie=ee(f),se=Z[c]?.lastFileName??$;T(()=>ie.current?.(se),[se,ie]);const re=e=>{te(t=>({...t,[c]:{...t[c],lastFileName:e}})),X(t=>{if(t[c]&&t[c][se]){const i=Object.fromEntries(Object.entries(t[c]).map(([t,i])=>[t,"object"==typeof i&&null!==i?{...i,active:t===e}:i]));return{...t,[c]:i}}return t})},ne=c,[ae]=ve(((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})(ne,n)),[oe,le]=ap(Ne(R),ae,cp,dp),ce=ee(g),pe=oe[ne];T(()=>{ce.current?.(pe)},[ce,pe]);const[he,ue]=N(0),de=()=>setTimeout(()=>ue(e=>e+1),200),me=I(null);F(t,()=>({setFile:e=>{X(t=>{if(t[c]){const i=be(e.folderPath),s=lp(i,e.name);return{...t,[c]:{...t[c],[s]:{...e,folderPath:i}}}}return t})},markdownGetSelection:()=>me.current?.getSelectionMarkdown()??"",markdownReplaceSelectionWithMarkdown:e=>me.current?.replaceSelectionWithMarkdown(e),markdownHighlightSelectionNodes:e=>me.current?.highlightSelectionNodes(e),markdownClearHighlight:()=>me.current?.clearHighlight()}),[X,c]);const fe=(e,t,i,s,r)=>{const n=e[c]||{};if(n[t]){const a=(void 0!==s?s:n[t]?.folderPath)||"",o=lp(a,i),l={...n[t],name:i,folderPath:a,...void 0!==r&&{description:r}},{[t]:p,...h}={...n};return h[o]=l,{...e,[c]:h}}return e};return s(rp,{triggerFocus:he,files:W,currentFileName:se,className:i,theme:D.theme,tabSize:D.tabSize,fontSize:D.fontSize,languages:p,readOnly:S,onChange:({source:e,language:t,onTestCasesChange:i,theme:r,tabSize:n,fontSize:a,isRunning:o,codeRunStatus:l,newFileName:p,fileName:h,fileNameEdited:u,fileNameDeleted:d})=>{if(l&&C?.(l,{files:W,currentFileName:se,testCases:pe}),"boolean"==typeof o&&w?.(o),"string"==typeof e&&X(t=>t[c]&&t[c][se]?{...t,[c]:{...t[c],[se]:{...t[c][se],source:e}}}:t),t&&(M(e=>({...e,lastLanguageUsed:t})),X(e=>{const i={...e[c]||{}},s=e[c]?.[se],r=s?.folderPath??"",n=hp(E(s?.name??""),`.${op(t)}`,e=>!!i[lp(r,e)]),a=lp(r,n);if(e[c]&&e[c][se]){const i={...e,[c]:{...e[c],[se]:{...e[c]?.[se],language:t}}};return setTimeout(()=>{re(a)},100),fe(i,se,n,r)}return e}),de()),i&&le(e=>({...e,[ne]:i(e[ne]||{})})),r&&(M(e=>({...e,theme:r})),de()),n&&(M(e=>({...e,tabSize:n})),de()),a&&(M(e=>({...e,fontSize:a})),de()),void 0!==p&&(X(e=>{const t={...e[c]||{}},i=p,s=hp("new",`.${op(B)}`,e=>!!t[lp(i,e)]),r=lp(i,s);re(r);const n=Object.values(t).reduce((e,{index:t})=>Math.max(e,t||0),0);return t[r]={source:b[B]?.templateSourceCode||"",language:B,index:n+1,name:s,hidden:!1,protected:!1,readonly:!1,folderPath:i,description:"",active:!0},{...e,[c]:t}}),de()),h&&(re(h),de()),"string"==typeof u?.[0]&&"string"==typeof u?.[1]){const e=u[0],t=u[1],i=W,r=void 0!==u[2]?u[2]:i[e]?.folderPath??"",n=lp(r,t);i[n]&&n!==e?O(s(G,{className:"tt-se",children:"file name already exists"})):(X(i=>fe(i,e,t,r,u[3])),re(n),de())}d&&(X(e=>{const t=e[c]||{},{[d]:i,...s}={...t};return re(Object.keys(t)[0]??""),{...e,[c]:s}}),de())},leftButtons:h,centerButtons:u,rightButtons:d,testCases:pe,expandPosition:r,enableAddSampleCases:y,enableAddCustomSampleCases:v,onlyCodeEditor:_,mdEditorRef:me,withoutRunCodeButton:A,mermaidTheme:P,mermaidConfigJson:L,mermaidFileName:V})});export{mp as default};
28
+ */const fl=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1},gl=V({}),xl=R(({color:e,size:t,strokeWidth:i,absoluteStrokeWidth:s,className:r="",children:n,iconNode:a,...o},l)=>{const{size:c=24,strokeWidth:p=2,absoluteStrokeWidth:h=!1,color:u="currentColor",className:d=""}=O(gl)??{},m=s??h?24*Number(i??p)/Number(t??c):i??p;return j("svg",{ref:l,...ml,width:t??c??ml.width,height:t??c??ml.height,stroke:e??u,strokeWidth:m,className:ul("lucide",d,r),...!n&&!fl(o)&&{"aria-hidden":"true"},...o},[...a.map(([e,t])=>j(e,t)),...Array.isArray(n)?n:[n]])}),yl=(e,t)=>{const i=R(({className:i,...s},r)=>{return j(xl,{ref:r,iconNode:t,className:ul(`lucide-${n=dl(e),n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...s});var n});return i.displayName=dl(e),i},vl=yl("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),bl=yl("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),wl=yl("circle-x",[["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"}]]),kl=yl("clipboard",[["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"}]]),El=yl("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),Sl=yl("lightbulb",[["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"}]]),Cl=yl("link",[["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"}]]),_l=yl("triangle-alert",[["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"}]]),Nl="size-5 -me-0.5 fill-(--callout-color) text-fd-card";function Il({type:e="info",icon:i,children:r,className:n,style:a,...o}){const l=function(e){return"warn"===e?"warning":"tip"===e?"info":e}(e);return t("div",{className:al("flex gap-2 my-4 rounded-xl border bg-fd-card p-3 ps-1 text-sm text-fd-card-foreground shadow-md",n),style:{"--callout-color":`var(--color-fd-${l}, var(--color-fd-muted))`,...a},...o,children:[s("div",{role:"none",className:"w-0.5 bg-(--callout-color)/50 rounded-sm"}),i??{info:s(El,{className:Nl}),warning:s(_l,{className:Nl}),error:s(wl,{className:Nl}),success:s(bl,{className:Nl}),idea:s(Sl,{className:"size-5 -me-0.5 fill-(--callout-color) text-(--callout-color)"})}[l],s("div",{className:"flex flex-col gap-2 min-w-0 flex-1",children:r})]})}function Al({children:e,className:t,...i}){return s("p",{className:al("font-medium my-0!",t),...i,children:e})}function Tl({children:e,className:t,...i}){return s("div",{className:al("text-fd-muted-foreground prose-no-margin empty:hidden",t),...i,children:e})}function Pl({as:e,className:i,...r}){const n=e??"h1";return r.id?t(n,{className:al("flex scroll-m-28 flex-row items-center gap-2",i),...r,children:[s("a",{"data-card":"",href:`#${r.id}`,className:"peer",children:r.children}),s(Cl,{"aria-hidden":!0,className:"size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100"})]}):s(n,{className:i,...r})}const Ll=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,Vl=et,Rl={primary:"bg-fd-primary text-fd-primary-foreground hover:bg-fd-primary/80 disabled:bg-fd-secondary disabled:text-fd-secondary-foreground",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"},Ol=(jl="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",Dl={variants:{variant:Rl,color:Rl,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==Dl?void 0:Dl.variants))return Vl(jl,null==e?void 0:e.class,null==e?void 0:e.className);const{variants:i,defaultVariants:s}=Dl,r=Object.keys(i).map(t=>{const r=null==e?void 0:e[t],n=null==s?void 0:s[t];if(null===r)return null;const a=Ll(r)||Ll(n);return i[t][a]}),n=e&&Object.entries(e).reduce((e,t)=>{let[i,s]=t;return void 0===s||(e[i]=s),e},{}),a=null==Dl||null===(t=Dl.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({...s,...n}[t]):{...s,...n}[t]===i})?[...e,i,r]:e},[]);return Vl(jl,r,a,null==e?void 0:e.class,null==e?void 0:e.className)});var jl,Dl;function Ml(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})}}function Fl(e,t,{checkForDefaultPrevented:i=!0}={}){return function(s){if(e?.(s),!1===i||!s.defaultPrevented)return t?.(s)}}function Bl(e,t=[]){let i=[];const r=()=>{const t=i.map(e=>C.createContext(e));return function(i){const s=i?.[e]||t;return C.useMemo(()=>({[`__scope${e}`]:{...i,[e]:s}}),[i,s])}};return r.scopeName=e,[function(t,r){const n=C.createContext(r),a=i.length;i=[...i,r];const o=t=>{const{scope:i,children:r,...o}=t,l=i?.[e]?.[a]||n,c=C.useMemo(()=>o,Object.values(o));return s(l.Provider,{value:c,children:r})};return o.displayName=t+"Provider",[o,function(i,s){const o=s?.[e]?.[a]||n,l=C.useContext(o);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${i}\` must be used within \`${t}\``)}]},Ul(r,...t)]}function Ul(...e){const t=e[0];if(1===e.length)return t;const i=()=>{const i=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const s=i.reduce((t,{useScope:i,scopeName:s})=>({...t,...i(e)[`__scope${s}`]}),{});return C.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return i.scopeName=t.scopeName,i}function Jl(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function zl(...e){return t=>{let i=!1;const s=e.map(e=>{const s=Jl(e,t);return i||"function"!=typeof s||(i=!0),s});if(i)return()=>{for(let t=0;t<s.length;t++){const i=s[t];"function"==typeof i?i():Jl(e[t],null)}}}}function ql(...e){return C.useCallback(zl(...e),e)}function Xl(e){const t=Gl(e),i=C.forwardRef((e,i)=>{const{children:r,...n}=e,a=C.Children.toArray(r),o=a.find(Wl);if(o){const e=o.props.children,r=a.map(t=>t===o?C.Children.count(e)>1?C.Children.only(null):C.isValidElement(e)?e.props.children:null:t);return s(t,{...n,ref:i,children:C.isValidElement(e)?C.cloneElement(e,void 0,r):null})}return s(t,{...n,ref:i,children:r})});return i.displayName=`${e}.Slot`,i}function Gl(e){const t=C.forwardRef((e,t)=>{const{children:i,...s}=e;if(C.isValidElement(i)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,i=t&&"isReactWarning"in t&&t.isReactWarning;if(i)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,i=t&&"isReactWarning"in t&&t.isReactWarning,i)return e.props.ref;return e.props.ref||e.ref}(i),r=function(e,t){const i={...t};for(const s in t){const r=e[s],n=t[s];/^on[A-Z]/.test(s)?r&&n?i[s]=(...e)=>{const t=n(...e);return r(...e),t}:r&&(i[s]=r):"style"===s?i[s]={...r,...n}:"className"===s&&(i[s]=[r,n].filter(Boolean).join(" "))}return{...e,...i}}(s,i.props);return i.type!==C.Fragment&&(r.ref=t?zl(t,e):e),C.cloneElement(i,r)}return C.Children.count(i)>1?C.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Hl=Symbol("radix.slottable");function Wl(e){return C.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Hl}var $l=globalThis?.document?C.useLayoutEffect:()=>{},Kl=C[" useId ".trim().toString()]||(()=>{}),Ql=0;function Yl(e){const[t,i]=C.useState(Kl());return $l(()=>{i(e=>e??String(Ql++))},[e]),t?`radix-${t}`:""}var Zl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const i=Xl(`Primitive.${t}`),r=C.forwardRef((e,r)=>{const{asChild:n,...a}=e,o=n?i:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),s(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});var ec=C[" useInsertionEffect ".trim().toString()]||$l;function tc({prop:e,defaultProp:t,onChange:i=()=>{},caller:s}){const[r,n,a]=function({defaultProp:e,onChange:t}){const[i,s]=C.useState(e),r=C.useRef(i),n=C.useRef(t);return ec(()=>{n.current=t},[t]),C.useEffect(()=>{r.current!==i&&(n.current?.(i),r.current=i)},[i,r]),[i,s,n]}({defaultProp:t,onChange:i}),o=void 0!==e,l=o?e:r;{const t=C.useRef(void 0!==e);C.useEffect(()=>{const e=t.current;if(e!==o){const t=e?"controlled":"uncontrolled",i=o?"controlled":"uncontrolled";console.warn(`${s} is changing from ${t} to ${i}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=o},[o,s])}const c=C.useCallback(t=>{if(o){const i=function(e){return"function"==typeof e}(t)?t(e):t;i!==e&&a.current?.(i)}else n(t)},[o,e,n,a]);return[l,c]}var ic=C.createContext(void 0);function sc(e){const t=C.useContext(ic);return e||t||"ltr"}var rc="rovingFocusGroup.onEntryFocus",nc={bubbles:!1,cancelable:!0},ac="RovingFocusGroup",[oc,lc,cc]=function(e){const t=e+"CollectionProvider",[i,r]=Bl(t),[n,a]=i(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{const{scope:t,children:i}=e,r=_.useRef(null),a=_.useRef(new Map).current;return s(n,{scope:t,itemMap:a,collectionRef:r,children:i})};o.displayName=t;const l=e+"CollectionSlot",c=Xl(l),p=_.forwardRef((e,t)=>{const{scope:i,children:r}=e,n=ql(t,a(l,i).collectionRef);return s(c,{ref:n,children:r})});p.displayName=l;const h=e+"CollectionItemSlot",u="data-radix-collection-item",d=Xl(h),m=_.forwardRef((e,t)=>{const{scope:i,children:r,...n}=e,o=_.useRef(null),l=ql(t,o),c=a(h,i);return _.useEffect(()=>(c.itemMap.set(o,{ref:o,...n}),()=>{c.itemMap.delete(o)})),s(d,{[u]:"",ref:l,children:r})});return m.displayName=h,[{Provider:o,Slot:p,ItemSlot:m},function(t){const i=a(e+"CollectionConsumer",t);return _.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])},r]}(ac),[pc,hc]=Bl(ac,[cc]),[uc,dc]=pc(ac),mc=C.forwardRef((e,t)=>s(oc.Provider,{scope:e.__scopeRovingFocusGroup,children:s(oc.Slot,{scope:e.__scopeRovingFocusGroup,children:s(fc,{...e,ref:t})})}));mc.displayName=ac;var fc=C.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:i,orientation:r,loop:n=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:p,preventScrollOnEntryFocus:h=!1,...u}=e,d=C.useRef(null),m=ql(t,d),f=sc(a),[g,x]=tc({prop:o,defaultProp:l??null,onChange:c,caller:ac}),[y,v]=C.useState(!1),b=function(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>(...e)=>t.current?.(...e),[])}(p),w=lc(i),k=C.useRef(!1),[E,S]=C.useState(0);return C.useEffect(()=>{const e=d.current;if(e)return e.addEventListener(rc,b),()=>e.removeEventListener(rc,b)},[b]),s(uc,{scope:i,orientation:r,dir:f,loop:n,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:s(Zl.div,{tabIndex:y||0===E?-1:0,"data-orientation":r,...u,ref:m,style:{outline:"none",...e.style},onMouseDown:Fl(e.onMouseDown,()=>{k.current=!0}),onFocus:Fl(e.onFocus,e=>{const t=!k.current;if(e.target===e.currentTarget&&t&&!y){const t=new CustomEvent(rc,nc);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=w().filter(e=>e.focusable);vc([e.find(e=>e.active),e.find(e=>e.id===g),...e].filter(Boolean).map(e=>e.ref.current),h)}}k.current=!1}),onBlur:Fl(e.onBlur,()=>v(!1))})})}),gc="RovingFocusGroupItem",xc=C.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:i,focusable:r=!0,active:n=!1,tabStopId:a,children:o,...l}=e,c=Yl(),p=a||c,h=dc(gc,i),u=h.currentTabStopId===p,d=lc(i),{onFocusableItemAdd:m,onFocusableItemRemove:f,currentTabStopId:g}=h;return C.useEffect(()=>{if(r)return m(),()=>f()},[r,m,f]),s(oc.ItemSlot,{scope:i,id:p,focusable:r,active:n,children:s(Zl.span,{tabIndex:u?0:-1,"data-orientation":h.orientation,...l,ref:t,onMouseDown:Fl(e.onMouseDown,e=>{r?h.onItemFocus(p):e.preventDefault()}),onFocus:Fl(e.onFocus,()=>h.onItemFocus(p)),onKeyDown:Fl(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void h.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,i){const s=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,i);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(s)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(s)?void 0:yc[s]}(e,h.orientation,h.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=d().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();const n=r.indexOf(e.currentTarget);r=h.loop?(s=n+1,(i=r).map((e,t)=>i[(s+t)%i.length])):r.slice(n+1)}setTimeout(()=>vc(r))}var i,s}),children:"function"==typeof o?o({isCurrentTabStop:u,hasTabStop:null!=g}):o})})});xc.displayName=gc;var yc={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function vc(e,t=!1){const i=document.activeElement;for(const s of e){if(s===i)return;if(s.focus({preventScroll:t}),document.activeElement!==i)return}}var bc=mc,wc=xc;var kc=e=>{const{present:t,children:i}=e,s=function(e){const[t,i]=C.useState(),s=C.useRef(null),r=C.useRef(e),n=C.useRef("none"),a=e?"mounted":"unmounted",[o,l]=function(e,t){return C.useReducer((e,i)=>t[e][i]??e,e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{const e=Ec(s.current);n.current="mounted"===o?e:"none"},[o]),$l(()=>{const t=s.current,i=r.current;if(i!==e){const s=n.current,a=Ec(t);if(e)l("MOUNT");else if("none"===a||"none"===t?.display)l("UNMOUNT");else{l(i&&s!==a?"ANIMATION_OUT":"UNMOUNT")}r.current=e}},[e,l]),$l(()=>{if(t){let e;const i=t.ownerDocument.defaultView??window,a=n=>{const a=Ec(s.current).includes(CSS.escape(n.animationName));if(n.target===t&&a&&(l("ANIMATION_END"),!r.current)){const s=t.style.animationFillMode;t.style.animationFillMode="forwards",e=i.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=s)})}},o=e=>{e.target===t&&(n.current=Ec(s.current))};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)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:C.useCallback(e=>{s.current=e?getComputedStyle(e):null,i(e)},[])}}(t),r="function"==typeof i?i({present:s.isPresent}):C.Children.only(i),n=ql(s.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,i=t&&"isReactWarning"in t&&t.isReactWarning;if(i)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,i=t&&"isReactWarning"in t&&t.isReactWarning,i)return e.props.ref;return e.props.ref||e.ref}(r));return"function"==typeof i||s.isPresent?C.cloneElement(r,{ref:n}):null};function Ec(e){return e?.animationName||"none"}kc.displayName="Presence";var Sc="Tabs",[Cc]=Bl(Sc,[hc]),_c=hc(),[Nc,Ic]=Cc(Sc),Ac=C.forwardRef((e,t)=>{const{__scopeTabs:i,value:r,onValueChange:n,defaultValue:a,orientation:o="horizontal",dir:l,activationMode:c="automatic",...p}=e,h=sc(l),[u,d]=tc({prop:r,onChange:n,defaultProp:a??"",caller:Sc});return s(Nc,{scope:i,baseId:Yl(),value:u,onValueChange:d,orientation:o,dir:h,activationMode:c,children:s(Zl.div,{dir:h,"data-orientation":o,...p,ref:t})})});Ac.displayName=Sc;var Tc="TabsList",Pc=C.forwardRef((e,t)=>{const{__scopeTabs:i,loop:r=!0,...n}=e,a=Ic(Tc,i),o=_c(i);return s(bc,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:s(Zl.div,{role:"tablist","aria-orientation":a.orientation,...n,ref:t})})});Pc.displayName=Tc;var Lc="TabsTrigger",Vc=C.forwardRef((e,t)=>{const{__scopeTabs:i,value:r,disabled:n=!1,...a}=e,o=Ic(Lc,i),l=_c(i),c=jc(o.baseId,r),p=Dc(o.baseId,r),h=r===o.value;return s(wc,{asChild:!0,...l,focusable:!n,active:h,children:s(Zl.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":p,"data-state":h?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:c,...a,ref:t,onMouseDown:Fl(e.onMouseDown,e=>{n||0!==e.button||!1!==e.ctrlKey?e.preventDefault():o.onValueChange(r)}),onKeyDown:Fl(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&o.onValueChange(r)}),onFocus:Fl(e.onFocus,()=>{const e="manual"!==o.activationMode;h||n||!e||o.onValueChange(r)})})})});Vc.displayName=Lc;var Rc="TabsContent",Oc=C.forwardRef((e,t)=>{const{__scopeTabs:i,value:r,forceMount:n,children:a,...o}=e,l=Ic(Rc,i),c=jc(l.baseId,r),p=Dc(l.baseId,r),h=r===l.value,u=C.useRef(h);return C.useEffect(()=>{const e=requestAnimationFrame(()=>u.current=!1);return()=>cancelAnimationFrame(e)},[]),s(kc,{present:n||h,children:({present:i})=>s(Zl.div,{"data-state":h?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!i,id:p,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:u.current?"0s":void 0},children:i&&a})})});function jc(e,t){return`${e}-trigger-${t}`}function Dc(e,t){return`${e}-content-${t}`}Oc.displayName=Rc;const Mc=new Map,Fc=V(null);const Bc=Pc,Uc=Vc;function Jc({ref:e,groupId:t,persist:i=!1,updateAnchor:r=!1,defaultValue:n,value:a,onValueChange:o,...l}){const c=I(null),p=P(()=>new Map,[]),[h,u]=void 0===a?N(n):[a,D(e=>o?.(e))];return M(()=>{if(!t)return;let e=sessionStorage.getItem(t);i&&(e??=localStorage.getItem(t)),e&&u(e);const s=Mc.get(t)??new Set;return s.add(u),Mc.set(t,s),()=>{s.delete(u)}},[t,i,u]),M(()=>{const e=window.location.hash.slice(1);if(e)for(const[t,i]of p.entries())if(i===e){u(t),c.current?.scrollIntoView();break}},[u,p]),s(Ac,{ref:Ml(e,c),value:h,onValueChange:e=>{if(r){const t=p.get(e);t&&window.history.replaceState(null,"",`#${t}`)}if(t){const s=Mc.get(t);if(s)for(const t of s)t(e);sessionStorage.setItem(t,e),i&&localStorage.setItem(t,e)}else u(e)},...l,children:s(Fc,{value:P(()=>({valueToIdMap:p}),[p]),children:l.children})})}function zc({value:e,...t}){const{valueToIdMap:i}=function(){const e=L(Fc);if(!e)throw new Error("You must wrap your component in <Tabs>");return e}();return t.id&&i.set(e,t.id),s(Oc,{value:e,...t,children:t.children})}const qc=V(null);function Xc(e){return s("pre",{...e,className:al("min-w-full w-max *:flex *:flex-col",e.className),children:e.children})}function Gc({ref:e,title:i,allowCopy:r=!0,keepBackground:n=!1,icon:a,viewportProps:o={},children:l,Actions:c=e=>s("div",{...e,className:al("empty:hidden",e.className)}),...p}){const h=null!==L(qc),u=I(null);return t("figure",{ref:e,dir:"ltr",...p,tabIndex:-1,className:al(h?"bg-fd-secondary -mx-px -mb-px last:rounded-b-xl":"my-4 bg-fd-card rounded-xl",n&&"bg-(--shiki-light-bg) dark:bg-(--shiki-dark-bg)","shiki relative border shadow-sm not-prose overflow-hidden text-sm",p.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?s("div",{className:"[&_svg]:size-3.5",dangerouslySetInnerHTML:{__html:a}}):a,s("figcaption",{className:"flex-1 truncate",children:i}),c({className:"-me-2",children:r&&s(Hc,{containerRef:u})})]}):c({className:"absolute top-3 right-2 z-2 backdrop-blur-lg rounded-lg text-fd-muted-foreground",children:r&&s(Hc,{containerRef:u})}),s("div",{ref:u,...o,role:"region",tabIndex:0,className:al("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:p["data-line-numbers"]?"line "+(Number(p["data-line-numbers-start"]??1)-1):void 0,...o.style},children:l})]})}function Hc({className:e,containerRef:t,...i}){const[r,n]=function(e){const[t,i]=N(!1),s=I(e),r=I(null);s.current=e;const n=A(()=>{r.current&&window.clearTimeout(r.current),Promise.resolve(s.current()).then(()=>{i(!0),r.current=window.setTimeout(()=>{i(!1)},1500)})},[]);return T(()=>()=>{r.current&&window.clearTimeout(r.current)},[]),[t,n]}(()=>{const e=t.current?.getElementsByTagName("pre").item(0);if(!e)return;const i=e.cloneNode(!0);i.querySelectorAll(".nd-copy-ignore").forEach(e=>{e.replaceWith("\n")}),navigator.clipboard.writeText(i.textContent??"")});return s("button",{type:"button","data-checked":r||void 0,className:al(Ol({className:"hover:text-fd-accent-foreground data-checked:text-fd-accent-foreground",size:"icon-xs"}),e),"aria-label":r?"Copied Text":"Copy Text",onClick:n,...i,children:s(r?vl:kl,{})})}const Wc={CodeBlockTab:function(e){return s(zc,{...e})},CodeBlockTabs:function({ref:e,...t}){const i=I(null),r=null!==L(qc);return s(Jc,{ref:Ml(i,e),...t,className:al("bg-fd-card rounded-xl border",!r&&"my-4",t.className),children:s(qc,{value:P(()=>({containerRef:i,nested:r}),[r]),children:t.children})})},CodeBlockTabsList:function(e){return s(Bc,{...e,className:al("flex flex-row px-2 overflow-x-auto text-fd-muted-foreground",e.className),children:e.children})},CodeBlockTabsTrigger:function({children:e,...i}){return t(Uc,{...i,className:al("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:[s("div",{className:"absolute inset-x-2 bottom-0 h-px group-data-[state=active]:bg-fd-primary"}),e]})},pre:e=>s(Gc,{...e,children:s(Xc,{children:e.children})}),Card:function({icon:e,title:i,description:r,...n}){return t(n.href?hl:"div",{...n,"data-card":!0,className:al("block rounded-xl border bg-fd-card p-4 text-fd-card-foreground transition-colors @max-lg:col-span-full",n.href&&"hover:bg-fd-accent/80",n.className),children:[e?s("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,s("h3",{className:"not-prose mb-1 text-sm font-medium",children:i}),r?s("p",{className:"my-0! text-sm text-fd-muted-foreground",children:r}):null,s("div",{className:"text-sm text-fd-muted-foreground prose-no-margin empty:hidden",children:n.children})]})},Cards:function(e){return s("div",{...e,className:al("grid grid-cols-2 gap-3 @container",e.className),children:e.children})},a:hl,img:function(e){return s(cl,{sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 70vw, 900px",...e,className:al("rounded-lg",e.className)})},h1:e=>s(Pl,{as:"h1",...e}),h2:e=>s(Pl,{as:"h2",...e}),h3:e=>s(Pl,{as:"h3",...e}),h4:e=>s(Pl,{as:"h4",...e}),h5:e=>s(Pl,{as:"h5",...e}),h6:e=>s(Pl,{as:"h6",...e}),table:function(e){return s("div",{className:"relative overflow-auto prose-no-margin my-6",children:s("table",{...e})})},Callout:function({children:e,title:i,...r}){return t(Il,{...r,children:[i&&s(Al,{children:i}),s(Tl,{children:e})]})},CalloutContainer:Il,CalloutTitle:Al,CalloutDescription:Tl};function $c({source:i,components:r}){const[n,a]=N(null),[o,l]=N(null);if(T(()=>{let t=!1;return async function(){try{const{default:s}=await Ua(i,{...e,baseUrl:import.meta.url,remarkPlugins:[vt,bt],rehypePlugins:[Rt]});t||(a(()=>s),l(null))}catch(e){t||(l(e.message),a(null))}}(),()=>{t=!0}},[i]),o)return s("pre",{style:{color:"red",whiteSpace:"pre-wrap"},children:o});if(!n)return null;const c={...Wc,...r},p=[...i.matchAll(/<([A-Z][a-zA-Z0-9]*)\b/g)].map(e=>e[1]);for(const e of p)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 s(n,{components:c})}function Kc(e){const{zoom:r,isRendering:n,isFullscreen:a,onZoom:o,onReset:l,onToggleFullscreen:c,zoomShortcutButtons:p}=e;return t("div",{className:"jk-row gap jk-pg-xsm",children:[s(K,{onClick:()=>o(-.1),icon:s(Ye,{size:"small"}),size:"tiny",type:"secondary"}),t("span",{style:{minWidth:"42px",textAlign:"center",fontSize:"0.8rem",userSelect:"none"},children:[Math.round(100*r),"%"]}),s(K,{onClick:()=>o(.1),icon:s(Me,{size:"small"}),size:"tiny",type:"secondary"}),p&&t(i,{children:[s("div",{style:{width:"1px",height:"16px",background:"var(--t-color-gray-4)",margin:"0 4px"}}),s(K,{onClick:()=>o(1-r),size:"tiny",type:"secondary",children:"100%"}),s(K,{onClick:()=>o(2-r),size:"tiny",type:"secondary",children:"200%"}),s(K,{onClick:l,icon:s(Fe,{size:"small"}),size:"tiny",type:"secondary",children:s(G,{className:"tt-se",children:"reset"})})]}),s("div",{style:{flex:1}}),n&&s(Be,{size:"small"}),s(K,{onClick:c,icon:s(a?je:De,{size:"small"}),size:"tiny",type:"secondary"})]})}const Qc='{\n "logLevel": "error",\n "securityLevel": "loose",\n "startOnLoad": false\n}';function Yc({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:[s(Ue,{size:"small",style:{flexShrink:0,marginTop:"2px"}}),s("pre",{style:{fontSize:"0.75rem",margin:0,whiteSpace:"pre-wrap",wordBreak:"break-word",fontFamily:"monospace"},children:e})]})}const Zc=e=>{const{source:r,mermaidTheme:n="default",configJson:a=Qc,fileName:o="diagram",copyButtons:l=!0,downloadButtons:c=!0,zoomShortcutButtons:p=!0}=e,[h,u]=N(1),[d,m]=N({x:0,y:0}),[f,g]=N(!1),[x,y]=N(!1),v=I({x:0,y:0}),b=I(null),w=I(null);T(()=>{const e=()=>y(!!document.fullscreenElement);return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[]);const k=A(e=>{u(t=>Math.max(.1,Math.min(8,parseFloat((t+e).toFixed(2)))))},[]),E=A(()=>{u(1),m({x:0,y:0})},[]),S=A(e=>{0===e.button&&(g(!0),v.current={x:e.clientX-d.x,y:e.clientY-d.y})},[d]),C=A(e=>{f&&m({x:e.clientX-v.current.x,y:e.clientY-v.current.y})},[f]),_=A(()=>g(!1),[]);T(()=>{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[P,L]=N(""),[V,R]=N(""),[O,j]=N(!1),D=I(null),M=I(0);T(()=>{const e=++M.current;j(!0);const t=setTimeout(async()=>{try{const{default:t}=await import("./mermaid.core-C89m9NSM.js").then(function(e){return e.av});let i={};try{i=JSON.parse(a)}catch(e){console.warn("Error on parsing configJson",e)}t.initialize({startOnLoad:!1,theme:n,securityLevel:"loose",...i});const{svg:s}=await t.render(`mermaid-render-${e}`,r);if(s.includes('aria-roledescription="error"')){const e=s.match(/<text class="error-text"[^>]*>([^<]*)<\/text>/);throw new Error(e?.[1]??"Syntax error")}e===M.current&&(L(s),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,n,a]);const F=A(()=>{const e=D.current;return e?qt.toBlob(e,{bgcolor:"dark"===n?"#1e1e2e":"#ffffff"}):Promise.reject(new Error("No SVG"))},[n]),B=A(()=>{if(!P)return;const e=new Blob([P],{type:"image/svg+xml"});ke(e,`${o}.svg`)},[P,o]),U=A(async()=>{try{const e=await F();ke(e,`${o}.png`)}catch(e){console.error("PNG export failed",e)}},[F,o]),J=A(async()=>{try{const e=await F();await navigator.clipboard.write([new ClipboardItem({"image/png":e})])}catch(e){console.error("PNG copy failed",e)}},[F]),z=A(async()=>{b.current&&(document.fullscreenElement?await document.exitFullscreen():await b.current.requestFullscreen())},[]);return s("div",{className:"ht-100 jk-col ow-hn flex-1 wh-100",ref:b,children:V?s(Yc,{error:V}):t(i,{children:[s(Kc,{zoom:h,isRendering:O,isFullscreen:x,onZoom:k,onReset:E,onToggleFullscreen:z,renderedSvg:P,mermaidTheme:n,zoomShortcutButtons:p}),(l||c)&&t("div",{className:"jk-row gap",children:[l&&t(i,{children:[s(oe,{disabled:!P,iconSize:"tiny",text:P,children:"SVG"},"copy-svg"),s(K,{onClick:J,disabled:!P,icon:s(Re,{size:"small"}),size:"tiny",children:"PNG"})]}),c&&t(i,{children:[s(K,{onClick:B,disabled:!P,icon:s(Oe,{size:"small"}),size:"tiny",children:"SVG"}),s(K,{onClick:U,disabled:!P,icon:s(Oe,{size:"small"}),size:"tiny",children:"PNG"})]})]}),t("div",{ref:w,className:"wh-100",style:{flex:1,overflow:"hidden",cursor:f?"grabbing":"grab",position:"relative",userSelect:"none",background:"dark"===n?"#1e1e2e":"var(--t-color-bg-1, #f8fafc)"},onMouseDown:S,onMouseMove:C,onMouseUp:_,onMouseLeave:_,children:[s("div",{style:{position:"absolute",top:"50%",left:"50%",transform:`translate(calc(-50% + ${d.x}px), calc(-50% + ${d.y}px)) scale(${h})`,transformOrigin:"center center"},children:P?s("div",{ref:D,dangerouslySetInnerHTML:{__html:P},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:[s(Qe,{size:"huge"}),s(G,{className:"tt-se",children:"start typing to see your diagram"})]})}),O&&!P&&s("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(0,0,0,0.05)"},children:s(Be,{size:"large"})}),s("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"})]})]})})},ep=[a.COMPILING,a.COMPILED,a.COMPILATION_ERROR],tp=({testCase:e,timeLimit:i,memoryLimit:r})=>{const{timeUsed:n,timeLimitExceeded:o,memoryUsed:l,memoryLimitExceeded:c,exitCode:p,runtimeError:h}=d(e,ep.includes(e.status)?10*m:i,ep.includes(e.status)?1048576:r);if(e.status===a.COMPILATION_ERROR)return s("div",{className:"jk-pg-xsm jk-row gap left tx-t",style:{lineHeight:1},children:s("span",{className:"tt-se cr-er",children:s(G,{children:"compilation error"})})});const u=h&&!o&&!c;return t("div",{className:"jk-col gap left stretch tx-s",style:{lineHeight:1},children:[t("div",{className:we("jk-row left",{"cr-er":o}),children:[s(G,{className:"tt-se",children:"time used"}),": ",n," ",s(G,{children:"ms"})," / ",i," ",s(G,{children:"ms"})]}),o&&s(G,{className:"tt-se cr-er jk-pg-l",children:"time limit exceeded"}),t("div",{className:we("jk-row left",{"cr-er":c}),children:[s(G,{className:"tt-se",children:"memory used"}),": ",l," ",s(G,{children:"KB"})," / ",r," ",s(G,{children:"KB"})]}),c&&s(G,{className:"tt-se cr-er jk-pg-l",children:"memory limit exceeded"}),t("div",{className:we("jk-row left",{"cr-er":u}),children:[s(G,{className:"tt-se",children:"exit code"}),": ",p]}),u&&s(G,{className:"tt-se cr-er jk-pg-l",children:"runtime error"})]})},ip=({onChange:e,testCasesValues:t,sample:i=!1})=>{const{addNotification:r}=Y();return s("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:s(Ge,{size:"small",onClick:()=>{const n=t.filter(e=>!e.sample),o=t.filter(e=>e.sample),l=i?o:n;if(l.length<(i?30:16)){const t=globalThis.crypto.randomUUID(),s=y(l.map(e=>e.index));e?.({onTestCasesChange:e=>({...e,[t]:{key:t,index:s,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:s(G,{children:"maximum test cases achieved"})})}})})},sp=e=>{const{testCases:r={},onChangeRef:n,timeLimit:o,memoryLimit:l,direction:c,enableAddSampleCases:p,enableAddCustomSampleCases:h}=e,u=Object.values(r).sort((e,t)=>"*"===e.key?-1:"*"===t.key?1:e.sample!==t.sample?+t.sample-+e.sample:e.index-t.index),[m,y]=N(u[0]?.key||"*");T(()=>{const e=Object.values(r);e.length&&e[0]&&(e.some(e=>e.key===m)||y(e[0].key))},[m,r]);const[v,b]=N("output"),[w,k]=N("input"),E=r[m],S=!!E&&(d(E,o,l).failed||!!E?.err||[a.FAILED,a.COMPILATION_ERROR,a.FAILED_TEST_CASE].includes(E.status));T(()=>{b(S?"error":"output")},[S]);const C=E?.status===a.RECEIVED||E?.status===a.COMPILING||E?.status===a.RUNNING_TEST_CASES||E?.status===a.RUNNING_TEST_CASE,_=C&&s("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:[s(G,{className:"tt-se",children:f[E?.status].label})," ",s("div",{className:"dot-flashing"})]})}),I={};E?.testOut&&(I["test-output"]={key:"test-output",header:t("div",{className:"jk-row gap left nowrap",children:[s(G,{className:"tt-se",children:"expected output"}),E?.withPE&&s(le,{text:E?.testOut||""})]}),body:s("div",{className:"ht-100 jk-col stretch nowrap",children:s("div",{className:"jk-pg-xsm ow-ao flex-1",children:s("span",{className:"jk-text-stdout",children:E?.testOut})})})}),I.output={key:"output",header:s(G,{className:we("tt-se"),children:"your output"}),body:t("div",{className:"ht-100 jk-col stretch nowrap pn-re",children:[_,s("div",{className:"jk-pg-xsm ow-ao flex-1",children:s("span",{className:"jk-text-stdout",children:E?.out})})]})},S&&(I.error={key:"error",header:s(G,{className:we("tt-se"),children:"error"}),body:t("div",{className:"ht-100 jk-col stretch nowrap pn-re",children:[_,s("div",E&&!E?.err?{className:"jk-row",children:s(tp,{testCase:E,timeLimit:o,memoryLimit:l})}:{className:"jk-pg-xsm ow-ao flex-1",children:s("span",{className:"jk-text-stderr tx-t bc-er cr-we jk-pg-xsm",children:E?.err})})]})});const A={input:{key:"input",header:s(G,{className:"tt-se",children:"input"}),body:(E?.sample?p:h)&&n?.current?s(ce,{style:{height:"calc(100% - 4px)",overflow:"auto",width:"calc(100% - 4px)",margin:2,position:"absolute"},wrap:"off",className:"tx-s flex-1",value:E?.in,disabled:!E,onChange:E?e=>n?.current?.({onTestCasesChange:t=>({...t,[E?.key]:{...E,in:e}})}):void 0}):s("div",{className:"flex-1 ow-ao jk-pg-xsm",children:s("span",{className:"jk-text-stdout",children:E?.in})})}};return E?.sample&&p&&(A.output={key:"output",header:s(G,{className:"tt-se",children:"expected output"}),body:n?.current?s(ce,{style:{height:"calc(100% - 4px)",overflow:"auto",width:"calc(100% - 4px)",margin:2,position:"absolute"},wrap:"off",className:"tx-s flex-1",value:E?.testOut,onChange:e=>n?.current?.({onTestCasesChange:t=>({...t,[E?.key]:{...E,testOut:e}})})}):s("div",{className:"flex-1 ow-ao jk-pg-xsm",children:s("span",{className:"jk-text-stdout",children:E?.testOut})})},A.settings={key:"settings",header:s(G,{className:"tt-se",children:"settings"}),body:t("div",{className:"jk-col gap jk-pg-sm",children:[s(pe,{size:"small",checked:E?.hidden,leftLabel:s(G,{className:"tt-se tx-s",children:"no hidden"}),rightLabel:s(G,{className:"tt-se tx-s",children:"hidden"}),onChange:n?.current?e=>n?.current?.({onTestCasesChange:t=>({...t,[E?.key]:{...E,hidden:e}})}):void 0}),s(pe,{size:"small",checked:E?.withPE,leftLabel:s(G,{className:"tt-se tx-s",children:"without PE"}),rightLabel:s(G,{className:"tt-se tx-s",children:"with PE"}),onChange:n?.current?e=>n?.current?.({onTestCasesChange:t=>({...t,[E?.key]:{...E,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:[s("div",{className:"jk-row ta-cr fw-bd jk-pg-xsm-tb border-bottom-highlight-light",children:s(G,{className:"tt-se",style:{width:48,lineHeight:1},children:"test cases"})}),u.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:()=>y(e.key),className:we("jk-row hoverable jk-pg-xsm space-between",{"bc-ht-lt":e.key===m}),style:{minWidth:80},children:[t("div",{className:"jk-row left",children:["*"===e.key?s(We,{size:"small"}):s(We,{letter:(e.index+1)%10+"",letterSize:12,size:"small",className:we({"cr-io-lt":e.sample})}),(e.sample?p:h)&&"*"!==e.key&&t(i,{children:[" ",s(Pe,{size:"tiny",className:"clickable br-50-pc","data-tooltip-id":"jk-tooltip","data-tooltip-content":"delete case","data-tooltip-place":"right",onClick:()=>{n?.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:[" ",s(he,{verdict:r,small:!0})]}):s("div",{"data-tooltip-id":"jk-tooltip","data-tooltip-content":"success executed",className:"cr-io-lt",style:{lineHeight:1,padding:"2px 4px"},children:s(ze,{size:"tiny",filledCircle:!0})}):t(i,{children:[" ",s(Je,{size:"tiny"})]}))]},e.key)}),p&&n?.current&&s("div",{className:"jk-row jk-pg-xsm-tb border-top-highlight-light",children:s(ip,{onChange:n?.current,testCasesValues:u,testCases:r,sample:!0})}),h&&n?.current&&s("div",{className:"jk-row jk-pg-xsm-tb border-top-highlight-light",children:s(ip,{onChange:n?.current,testCasesValues:u,testCases:r})})]}),!p&&E?.hidden?s("div",{className:"jk-row center ht-100 flex-1",children:s(G,{className:"tt-se jk-tag bc-io-lt",children:"test input hidden"})}):t(ue,{direction:"row"===c?"column":"row",className:"flex-1 ow-hn",children:[t("div",{className:"jk-col extend stretch nowrap",children:[s(de,{tabs:A,selectedTabKey:w,onChange:k,tabButtonsClassName:"tx-t"}),s("div",{className:"flex-1 wh-100 pn-re ow-hn",children:s(me,{tabs:A,selectedTabKey:w})})]}),t("div",{className:"jk-col stretch test-cases-output-stderr",children:[s(de,{tabs:I,selectedTabKey:v,onChange:b,tabButtonsClassName:"tx-t",extraNodesPlacement:"left",extraNodes:[s("div",{children:s(fe,{popoverClassName:"bc-sf-hi jk-br-ie elevation-1 jk-pg-xsm",content:t("div",{className:"pn-re",children:[C&&t("div",{className:"jk-row",style:{alignItems:"baseline"},children:[s(G,{className:"tt-se",children:f[E?.status].label})," ",s("div",{className:"dot-flashing"})]}),E&&!C&&E.status!==a.NONE?s(tp,{testCase:E,timeLimit:o,memoryLimit:l}):!!E&&!C&&s(G,{className:"tt-se",children:E.sample?"unexecuted sample case":"unexecuted test case"})]}),children:s("div",{className:we("jk-row jk-pg-xsm-l",{"cr-er-lt":S,"cr-io-lt":!S}),children:s(qe,{filledCircle:!0,size:"tiny"})})})},"info")]}),s("div",{className:"flex-1 wh-100 pn-re ow-hn",children:s(me,{tabs:I,selectedTabKey:v})})]})]})]})};function rp(e){const{readOnly:i,languages:r=z.map(e=>({value:e,label:b[e]?.label||e})),onChange:n,leftButtons:a,centerButtons:o,rightButtons:c,testCases:p,tabSize:h=4,fontSize:d=14,timeLimit:f=m,memoryLimit:g=1048576,expandPosition:x,className:y,enableAddCustomSampleCases:v,enableAddSampleCases:k,onlyCodeEditor:E,files:S,currentFileName:C,triggerFocus:_,mdEditorRef:I,withoutRunCodeButton:A,mermaidTheme:T,mermaidConfigJson:L,mermaidFileName:V}=e,{source:R="",language:O=l.TEXT}=S?.[C]??{},j=ee(i?void 0:n),D=ge(e=>e.user.settings[w.THEME]),[M,F]=N("row"),[B,U]=N(!1),J=xe(e=>e.viewPort.isSmallScreen),q=P(()=>u.includes(O)?s(sp,{testCases:p,timeLimit:f,memoryLimit:g,onChangeRef:j,direction:M,enableAddSampleCases:!i&&!!k,enableAddCustomSampleCases:!i&&!!v}):O===l.MERMAID?s(Zc,{source:R,mermaidTheme:T,configJson:L,fileName:V}):O===l.MDX?s("div",{className:"ht-100 wh-100 ow-ao jk-pg-xsm",children:s($c,{source:R})}):O===l.MARKDOWN?s(Xe,{ref:I,className:"ow-ao ht-100",value:R,onChange:e=>j?.current?.({source:e})}):null,[R,O,p,f,g,j,M,i,k,v,I,T,L,V]),X=null!=q,H=E||!X,W=P(()=>({testCases:p||{},timeLimit:f,memoryLimit:g,enableAddSampleCases:!!k,enableAddCustomSampleCases:!!v}),[v,k,g,p,f]),$=P(()=>s(Wt,{preferredTheme:D,language:O,readOnly:i,source:R,tabSize:h,fontSize:d,languages:r,onlyFirstPane:H,triggerFocus:_,setExpanded:U,files:S,currentFileName:C,leftButtons:a,centerButtons:o,rightButtons:c,onChangeRef:j,runner:W,expandPosition:x,expanded:B,withoutRunCodeButton:A}),[D,O,i,R,h,d,r,H,_,S,C,a,o,c,j,W,x,B,A]),Q=P(()=>X?{align:"right",expandLabel:s(G,{className:"label tx-t",children:"test cases"})}:void 0,[X]),Y=P(()=>X&&J?{align:"right",expandLabel:s(G,{className:"label tx-t",children:"code editor"})}:void 0,[X,J]),{ref:Z,width:te=0}=se(),ie=s("div",{className:we("jk-code-mirror-editor-layout jk-br-ie jk-col nowrap stretch bc-sf-md ht-100 wh-100 pn-re",{"elevation-1":B},y),style:{overflow:B?"hidden":void 0},children:t("div",{className:"flex-1 ow-hn jk-row nowrap stretch",children:[s(Ft,{fileTreePanelRef:Z,files:S,currentFileName:C,onChangeRef:j,readOnly:i}),s("div",{className:"jk-row transition-width flex-1",style:{width:`calc(100% - ${te}px)`},children:0===Object.keys(S).length?t("div",{className:"jk-col gap jk-pg",children:[s(G,{className:"tt-se",children:"there are no files in the editor, create a new file to start using the editor"}),s(K,{type:"secondary",onClick:()=>j.current?.({newFileName:""}),children:s(G,{className:"tt-se",children:"create a new file"})})]}):H?$:t(ue,{direction:M,minSize:80,onlyFirstPane:!X,closableSecondPane:Q,closableFirstPane:Y,toggleable:!0,onChangeDirection:F,onePanelAtATime:J,className:"ht-100",children:[$,q]})})]})});return B?s(ye,{children:s("div",{className:"jk-overlay jk-overlay-backdrop",children:s("div",{style:{position:"absolute",...x},children:ie})})}):ie}function np(e){let t={};if("undefined"!=typeof localStorage){const i=e&&localStorage.getItem(e)||"{}";S(i)&&(t=JSON.parse(i))}return t}function ap(e,t,i,s){const r=ee(i),n=ee(s),a=A(()=>{const i={},s=Object.entries(n.current(np(e)));for(const[e,n]of Object.entries(t))i[e]=r.current(n,s.find(([t])=>t===e)?.[1]);for(const[e,t]of s)i[e]||(i[e]=t);return i},[e,n,r,t]),[o,l]=N(a());return T(()=>{l(a())},[a]),T(()=>{const t=setTimeout(()=>{const t=JSON.stringify(o);localStorage.getItem(e)!==t&&localStorage.setItem(e,t)},300);return()=>clearTimeout(t)},[e,o]),[o,l]}const op=e=>b[e]?.fileExtension[0]??"source",lp=(e,t)=>e?`${e}/${t}`:t,cp=(e,t)=>{const i={};for(const[s,r]of Object.entries(e))i[s]={...r,out:t?.[s]?.out??r?.out??"",err:t?.[s]?.err??r?.err??"",log:t?.[s]?.log??r?.log??"",status:t?.[s]?.status??r?.status??a.NONE,messageTimestamp:t?.[s]?.messageTimestamp??r?.messageTimestamp??0},"*"===s&&(i[s].in=t?.[s]?.in??r?.in??"");for(const[e,s]of Object.entries(t??{}))i[e]||(i[e]=s);return i},pp=(e,t)=>({...t,...e}),hp=(e,t,i)=>{let s=`${e}${t}`,r=1;for(;i(s);)s=`${e}(${r})${t}`,r++;return s},up=e=>{const t={};for(const[i,s]of Object.entries(e||{}))t[i]={lastFileName:"string"==typeof s?.lastFileName?s.lastFileName:""};return t},dp=e=>{const t={};for(const[i,s]of Object.entries(e||{})){t[i]={};for(const[e,r]of Object.entries(s))!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 mp=R(function(e,t){const{className:i,expandPosition:r,initialTestCases:n={},initialFileName:o,storeKey:c,languages:p,leftButtons:h,centerButtons:u,rightButtons:d,onFilesChange:m,onCurrentFileNameChange:f,onTestCasesChange:g,initialFiles:x,enableAddSampleCases:y,enableAddCustomSampleCases:v,onIsRunningChange:w,readOnly:S,onCodeRunStatusChange:C,onlyCodeEditor:_,withoutRunCodeButton:A,mermaidTheme:P,mermaidConfigJson:L,mermaidFileName:V}=e,R=ge(e=>e.user.nickname),{addErrorNotification:O}=Y(),j=Se(R),[D,M]=function(e,t){const i=np(e),[s,r]=N({...t,...i}),n=I(t);n.current=t;const a=I(i);return a.current=i,T(()=>{r({...n.current,...a.current})},[e]),T(()=>{const t=setTimeout(()=>{if(e){const t=JSON.stringify(s);localStorage.getItem(e)!==t&&localStorage.setItem(e,t)}},300);return()=>clearTimeout(t)},[e,s]),[s,r]}(j,{theme:k.LIGHT,lastLanguageUsed:l.CPP,tabSize:2,fontSize:14});let B=D.lastLanguageUsed;p?.length&&!p.some(e=>e.value===B)&&p[0]&&(B=p[0].value);const U=(e=>t=>{const i={};for(const[s,r]of Object.entries(t||{})){i[s]={};let t=1;for(const[n,a]of Object.entries(r||{}))if("string"==typeof a){const r=`source-${t}.${op(n)}`;i[s][r]={source:a,language:e?.some(({value:e})=>e===n)?n: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=be("folderPath"in a&&"string"==typeof a?.folderPath?a.folderPath:""),r=be("name"in a&&"string"==typeof a?.name?a.name:""),n=i[s]?.[lp(t,r)]?hp(r,`.${op("language"in a&&"string"==typeof a?.language?a.language:"")}`,e=>!!i[s]?.[lp(t,e)]):r,o=lp(t,n);i[s][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:n,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:!1}}}for(const[e,t]of Object.entries(i)){i[e]={};for(const[,s]of Object.entries(t||{}))s.name||(s.name=hp("recovered",`.${op(s.language)}`,t=>!!i[e]?.[lp(s.folderPath,t)])),i[e][lp(s.folderPath,s.name)]=s}return i})(p),[J]=ve(U({[c]:{...x}})),[z,X]=ap(Ce(R),J,pp,U),H=ee(m),W=z[c]||q;T(()=>H.current?.(W),[W,H]);const $=o??Object.keys(W)[0]??(K=B,b[K]?.mainFilename??"main.source");var K;const[Q]=ve({[c]:{lastFileName:$}}),[Z,te]=ap(_e(R),Q,(e,t)=>({...e,...t}),up),ie=ee(f),se=Z[c]?.lastFileName??$;T(()=>ie.current?.(se),[se,ie]);const re=e=>{te(t=>({...t,[c]:{...t[c],lastFileName:e}})),X(t=>{if(t[c]&&t[c][se]){const i=Object.fromEntries(Object.entries(t[c]).map(([t,i])=>[t,"object"==typeof i&&null!==i?{...i,active:t===e}:i]));return{...t,[c]:i}}return t})},ne=c,[ae]=ve(((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})(ne,n)),[oe,le]=ap(Ne(R),ae,cp,dp),ce=ee(g),pe=oe[ne];T(()=>{ce.current?.(pe)},[ce,pe]);const[he,ue]=N(0),de=()=>setTimeout(()=>ue(e=>e+1),200),me=I(null);F(t,()=>({setFile:e=>{X(t=>{if(t[c]){const i=be(e.folderPath),s=lp(i,e.name);return{...t,[c]:{...t[c],[s]:{...e,folderPath:i}}}}return t})},markdownGetSelection:()=>me.current?.getSelectionMarkdown()??"",markdownReplaceSelectionWithMarkdown:e=>me.current?.replaceSelectionWithMarkdown(e),markdownHighlightSelectionNodes:e=>me.current?.highlightSelectionNodes(e),markdownClearHighlight:()=>me.current?.clearHighlight()}),[X,c]);const fe=(e,t,i,s,r)=>{const n=e[c]||{};if(n[t]){const a=(void 0!==s?s:n[t]?.folderPath)||"",o=lp(a,i),l={...n[t],name:i,folderPath:a,...void 0!==r&&{description:r}},{[t]:p,...h}={...n};return h[o]=l,{...e,[c]:h}}return e};return s(rp,{triggerFocus:he,files:W,currentFileName:se,className:i,theme:D.theme,tabSize:D.tabSize,fontSize:D.fontSize,languages:p,readOnly:S,onChange:({source:e,language:t,onTestCasesChange:i,theme:r,tabSize:n,fontSize:a,isRunning:o,codeRunStatus:l,newFileName:p,fileName:h,fileNameEdited:u,fileNameDeleted:d})=>{if(l&&C?.(l,{files:W,currentFileName:se,testCases:pe}),"boolean"==typeof o&&w?.(o),"string"==typeof e&&X(t=>t[c]&&t[c][se]?{...t,[c]:{...t[c],[se]:{...t[c][se],source:e}}}:t),t&&(M(e=>({...e,lastLanguageUsed:t})),X(e=>{const i={...e[c]||{}},s=e[c]?.[se],r=s?.folderPath??"",n=hp(E(s?.name??""),`.${op(t)}`,e=>!!i[lp(r,e)]),a=lp(r,n);if(e[c]&&e[c][se]){const i={...e,[c]:{...e[c],[se]:{...e[c]?.[se],language:t}}};return setTimeout(()=>{re(a)},100),fe(i,se,n,r)}return e}),de()),i&&le(e=>({...e,[ne]:i(e[ne]||{})})),r&&(M(e=>({...e,theme:r})),de()),n&&(M(e=>({...e,tabSize:n})),de()),a&&(M(e=>({...e,fontSize:a})),de()),void 0!==p&&(X(e=>{const t={...e[c]||{}},i=p,s=hp("new",`.${op(B)}`,e=>!!t[lp(i,e)]),r=lp(i,s);re(r);const n=Object.values(t).reduce((e,{index:t})=>Math.max(e,t||0),0);return t[r]={source:b[B]?.templateSourceCode||"",language:B,index:n+1,name:s,hidden:!1,protected:!1,readonly:!1,folderPath:i,description:"",active:!0},{...e,[c]:t}}),de()),h&&(re(h),de()),"string"==typeof u?.[0]&&"string"==typeof u?.[1]){const e=u[0],t=u[1],i=W,r=void 0!==u[2]?u[2]:i[e]?.folderPath??"",n=lp(r,t);i[n]&&n!==e?O(s(G,{className:"tt-se",children:"file name already exists"})):(X(i=>fe(i,e,t,r,u[3])),re(n),de())}d&&(X(e=>{const t=e[c]||{},{[d]:i,...s}={...t};return re(Object.keys(t)[0]??""),{...e,[c]:s}}),de())},leftButtons:h,centerButtons:u,rightButtons:d,testCases:pe,expandPosition:r,enableAddSampleCases:y,enableAddCustomSampleCases:v,onlyCodeEditor:_,mdEditorRef:me,withoutRunCodeButton:A,mermaidTheme:P,mermaidConfigJson:L,mermaidFileName:V})});export{mp as default};