@cccsaurora/howler-ui 2.14.0-dev.255 → 2.14.0-dev.257

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 (355) hide show
  1. package/assets/{abap-kqcCuNo3.js → abap-mo7PPmCt.js} +1 -1
  2. package/assets/{abnf-0i0y1qLw.js → abnf-D5WZvYF_.js} +1 -1
  3. package/assets/{actionscript-CBg9ALMd.js → actionscript-o1NqrfHn.js} +1 -1
  4. package/assets/{ada-C0C0wsJY.js → ada-BAcJesVD.js} +1 -1
  5. package/assets/{agda-CxRhcDuf.js → agda-D-QD0Sfn.js} +1 -1
  6. package/assets/{al-Dlm67z74.js → al-Dzs83GY0.js} +1 -1
  7. package/assets/{antlr4-BmA8T_Pf.js → antlr4-BjEStX_I.js} +1 -1
  8. package/assets/{apacheconf-Cy80ybHj.js → apacheconf-Bh7PaD8s.js} +1 -1
  9. package/assets/{apex-Sg90mm4u.js → apex-Dg8nVlbW.js} +1 -1
  10. package/assets/{apl-EWXH65GD.js → apl-Bpu7iDoL.js} +1 -1
  11. package/assets/{applescript-PjHK8QN3.js → applescript-hMMldMmZ.js} +1 -1
  12. package/assets/{aql-B5IC4Rcf.js → aql-CrUo-IGN.js} +1 -1
  13. package/assets/{arc-BlYL6j5T.js → arc-O4DCfFxW.js} +1 -1
  14. package/assets/architecture-O4VJ6CD3-BtxcGCTr.js +1 -0
  15. package/assets/{architectureDiagram-KFL7JDKH-DJeBx9P6.js → architectureDiagram-KFL7JDKH-ChuPt1SI.js} +1 -1
  16. package/assets/{arduino-C51Narsi.js → arduino-DmF6sKDB.js} +1 -1
  17. package/assets/{arff-8aJF8MCW.js → arff-BBGQBSJT.js} +1 -1
  18. package/assets/{asciidoc-YvasCiDo.js → asciidoc-Bj5gp9h7.js} +1 -1
  19. package/assets/{asm6502-DNM_ACU3.js → asm6502-FSfxG8DZ.js} +1 -1
  20. package/assets/{asmatmel-B7SjKbvc.js → asmatmel-e1oEOVx2.js} +1 -1
  21. package/assets/{aspnet-BDjjZcvg.js → aspnet-BSz1N4dH.js} +1 -1
  22. package/assets/{autohotkey-hUSymZ_m.js → autohotkey-E5ufzqN-.js} +1 -1
  23. package/assets/{autoit-z_CsSJmr.js → autoit-C_kN8xn5.js} +1 -1
  24. package/assets/{avisynth-lWBoLdVJ.js → avisynth-DbmndZmQ.js} +1 -1
  25. package/assets/{avro-idl-D8-0MeNx.js → avro-idl-DGQ_T6zF.js} +1 -1
  26. package/assets/{bash-WWuseIss.js → bash-CviVjnOh.js} +1 -1
  27. package/assets/{basic-5JZah1MP.js → basic-Bx3Rn9rA.js} +1 -1
  28. package/assets/{batch-CNuZE34T.js → batch-DTnb-DYx.js} +1 -1
  29. package/assets/{bbcode-DUCaeSOc.js → bbcode-D1mhg2V8.js} +1 -1
  30. package/assets/{bicep-C9cUGcZW.js → bicep-0IioNd8i.js} +1 -1
  31. package/assets/{birb-BZmpNpMm.js → birb-DU56kIa1.js} +1 -1
  32. package/assets/{bison-CywkiQg4.js → bison-BN1e05g4.js} +1 -1
  33. package/assets/{blockDiagram-ZYB65J3Q-D0Ol2jlv.js → blockDiagram-ZYB65J3Q-C50Mlz51.js} +1 -1
  34. package/assets/{bnf-DNey8JGD.js → bnf-D2g0vgik.js} +1 -1
  35. package/assets/{brainfuck-uwCSHc7F.js → brainfuck-jbiw2pGD.js} +1 -1
  36. package/assets/{brightscript-DT7d5-qJ.js → brightscript-BBDeWuro.js} +1 -1
  37. package/assets/{bro-CFVRfUbc.js → bro-CGTpxN4p.js} +1 -1
  38. package/assets/{bsl-9S4UgA2J.js → bsl-CqTC8aLw.js} +1 -1
  39. package/assets/{c-BgfjASKF.js → c-Ds_ySDj7.js} +1 -1
  40. package/assets/{c4Diagram-AAMF2YG6-v1fpnkx2.js → c4Diagram-AAMF2YG6-B3WV-JGO.js} +1 -1
  41. package/assets/{cfscript-49U2aWCh.js → cfscript-Bj6Jdimw.js} +1 -1
  42. package/assets/{chaiscript-4VtsYVpl.js → chaiscript-RYJpKV37.js} +1 -1
  43. package/assets/channel-C5BRq60g.js +1 -0
  44. package/assets/{chunk-ANTBXLJU-BBGjDBcL.js → chunk-ANTBXLJU-C1HjgHjc.js} +1 -1
  45. package/assets/{chunk-FHKO5MBM-CtXgGiWs.js → chunk-FHKO5MBM-BrpQoidZ.js} +1 -1
  46. package/assets/{chunk-GLLZNHP4-CjNMxI4x.js → chunk-GLLZNHP4-DN9o3NmB.js} +1 -1
  47. package/assets/{chunk-JBRWN2VN-BIsIHCzN.js → chunk-JBRWN2VN-DHDH1I9F.js} +1 -1
  48. package/assets/{chunk-LXBSTHXV-DIuZccqv.js → chunk-LXBSTHXV-DsMapXSy.js} +1 -1
  49. package/assets/{chunk-NRVI72HA-aKshiznA.js → chunk-NRVI72HA-zCLbemRf.js} +1 -1
  50. package/assets/{chunk-OMD6QJNC-DD9Oy5sh.js → chunk-OMD6QJNC-CcTW7n4d.js} +1 -1
  51. package/assets/{chunk-WVR4S24B-B9zmB2Tt.js → chunk-WVR4S24B-O5VGDTLK.js} +1 -1
  52. package/assets/{cil-CIk1nZUD.js → cil-D4aeGR4P.js} +1 -1
  53. package/assets/{classDiagram-3BZAVTQC-CqX7Tp25.js → classDiagram-3BZAVTQC-DC2D1o61.js} +1 -1
  54. package/assets/{classDiagram-v2-QTMF73CY-CqX7Tp25.js → classDiagram-v2-QTMF73CY-DC2D1o61.js} +1 -1
  55. package/assets/{clike-CxAeib4_.js → clike-CqNn0AJS.js} +1 -1
  56. package/assets/{clojure-Ck0RXpbo.js → clojure-CvHCjxEW.js} +1 -1
  57. package/assets/clone-CQzAVi1_.js +1 -0
  58. package/assets/{cmake-C-DeGqDW.js → cmake-Y9YYOI1o.js} +1 -1
  59. package/assets/{cobol-DB25XrSi.js → cobol-Cn7N4Z9s.js} +1 -1
  60. package/assets/{coffeescript-B4nqUg94.js → coffeescript-BNf6wfQ6.js} +1 -1
  61. package/assets/{concurnas-Dn9XkZGY.js → concurnas-F8NRlUrA.js} +1 -1
  62. package/assets/{coq-Cvr3Gn8T.js → coq-CXxL_LlW.js} +1 -1
  63. package/assets/{core-UDSDYEIa.js → core-DkoeCqqg.js} +1 -1
  64. package/assets/{cpp-CKhD-3M2.js → cpp-DWon0ppI.js} +1 -1
  65. package/assets/{crystal-CjID7KIv.js → crystal-B2v6_JlQ.js} +1 -1
  66. package/assets/{csharp-2ALpLYur.js → csharp-BLSK0Zzi.js} +1 -1
  67. package/assets/{cshtml-BlacgVaO.js → cshtml-BLIhUWji.js} +1 -1
  68. package/assets/{csp-HMwJhbi-.js → csp-CeuPpz9b.js} +1 -1
  69. package/assets/{css-B2tK9wdh.js → css-D8yvO7dz.js} +1 -1
  70. package/assets/{css-extras-DeVSfTP6.js → css-extras-DRnBitp6.js} +1 -1
  71. package/assets/{cssMode-BtnBbnNh.js → cssMode-DrkEOKra.js} +1 -1
  72. package/assets/{csv-BD6q7LX1.js → csv-Be-N3gG6.js} +1 -1
  73. package/assets/{cypher-BgMoLKlv.js → cypher-BQok03ZI.js} +1 -1
  74. package/assets/{d-DbEmK-0B.js → d-Df_6sXOB.js} +1 -1
  75. package/assets/{dagre-2BBEFEWP-D2XFAJFU.js → dagre-2BBEFEWP-BdLL3xYf.js} +1 -1
  76. package/assets/{dart-DkfsI3yC.js → dart-AOzSx5I4.js} +1 -1
  77. package/assets/{dataweave-aZYF5PNL.js → dataweave--R-21DfR.js} +1 -1
  78. package/assets/{dax-V2ts0ypQ.js → dax-CsnNiQxC.js} +1 -1
  79. package/assets/{dhall-D3SUU5AE.js → dhall-BidGwr1u.js} +1 -1
  80. package/assets/{diagram-4IRLE6MV-3Ii0VW6l.js → diagram-4IRLE6MV-Du7ZA7eP.js} +1 -1
  81. package/assets/{diagram-GUPCWM2R-C_bP7Q1P.js → diagram-GUPCWM2R-ByacznHI.js} +1 -1
  82. package/assets/{diagram-RP2FKANI-BSi4bGof.js → diagram-RP2FKANI-uZXzQ0HO.js} +1 -1
  83. package/assets/{diff-CMSY-_TM.js → diff-By-TneY5.js} +1 -1
  84. package/assets/{django-DnIhfivE.js → django-CqZkrb5c.js} +1 -1
  85. package/assets/{dns-zone-file-cve-GUtw.js → dns-zone-file-CIIN0Zwd.js} +1 -1
  86. package/assets/{docker-BNsgT4ys.js → docker-DrVrzUu_.js} +1 -1
  87. package/assets/{dot-YI_YYuHG.js → dot-D6JxP7pN.js} +1 -1
  88. package/assets/{ebnf-D_RcZu_y.js → ebnf-boHv7kBZ.js} +1 -1
  89. package/assets/{editorconfig-DUfFHFN4.js → editorconfig-BZK9BWTq.js} +1 -1
  90. package/assets/{eiffel-D62YrVdr.js → eiffel-BspS-zg2.js} +1 -1
  91. package/assets/{ejs-B3E9714P.js → ejs-BO4bBszI.js} +1 -1
  92. package/assets/{elixir-wU9BuARX.js → elixir-DCnntdKi.js} +1 -1
  93. package/assets/{elm-GdyPUCRk.js → elm-wkvDZVBc.js} +1 -1
  94. package/assets/{erDiagram-HZWUO2LU-DIXDxlDs.js → erDiagram-HZWUO2LU-CLYl94DE.js} +1 -1
  95. package/assets/{erb-BLfRgaP8.js → erb-D0dPextc.js} +1 -1
  96. package/assets/{erlang-oEvb0Slh.js → erlang-GkjxK_5M.js} +1 -1
  97. package/assets/{etlua-B52BFn4o.js → etlua-DISv4zYg.js} +1 -1
  98. package/assets/{excel-formula-DNqVjpMr.js → excel-formula-HLTv-nrr.js} +1 -1
  99. package/assets/{factor-D1OvJ8Qo.js → factor-BkpcfzTR.js} +1 -1
  100. package/assets/{false-Z6QQv6ID.js → false-41V82d_P.js} +1 -1
  101. package/assets/{firestore-security-rules-DTUdd8_9.js → firestore-security-rules-RBhhbSld.js} +1 -1
  102. package/assets/{flow-1B4ewKvb.js → flow-Ht8yfkR5.js} +1 -1
  103. package/assets/{flowDiagram-THRYKUMA-D3gqWW_d.js → flowDiagram-THRYKUMA-BfELR1TN.js} +1 -1
  104. package/assets/{fortran-DiWKkvzE.js → fortran-Dzm_isHe.js} +1 -1
  105. package/assets/{freemarker2-CwD6ixn2.js → freemarker2-BRaa7f1Q.js} +1 -1
  106. package/assets/{fsharp-Dv3_RQKY.js → fsharp-C9WT9v9x.js} +1 -1
  107. package/assets/{ftl-CaaEO_Z2.js → ftl-B17SbwAW.js} +1 -1
  108. package/assets/{ganttDiagram-WV7ZQ7D5-C-2v9gZQ.js → ganttDiagram-WV7ZQ7D5-Bw19caXp.js} +1 -1
  109. package/assets/{gap-CTp3QxAZ.js → gap-SzXKPgeq.js} +1 -1
  110. package/assets/{gcode-CYwYWCAy.js → gcode-CuQuTKdO.js} +1 -1
  111. package/assets/{gdscript-YqSYr01q.js → gdscript-bTCD4XIA.js} +1 -1
  112. package/assets/{gedcom-DTNpnfmu.js → gedcom-Dw1a27VL.js} +1 -1
  113. package/assets/{gherkin-RLKHjAi5.js → gherkin-B8yC8kPH.js} +1 -1
  114. package/assets/{git-0fy9QQAU.js → git-CuTlBGs3.js} +1 -1
  115. package/assets/gitGraph-ZV4HHKMB-NswVDVTC.js +1 -0
  116. package/assets/{gitGraphDiagram-OJR772UL-DRxxeQJN.js → gitGraphDiagram-OJR772UL-B2Wp36xV.js} +1 -1
  117. package/assets/{glsl-Df0XRhtW.js → glsl-VfJQISaC.js} +1 -1
  118. package/assets/{gml-rYpCBP8S.js → gml-Cg063sEn.js} +1 -1
  119. package/assets/{gn-jKfYA_GR.js → gn-CfhRs8hN.js} +1 -1
  120. package/assets/{go-B-SSxtH2.js → go-VWO1sCsw.js} +1 -1
  121. package/assets/{go-module-DXvSTe3J.js → go-module-Ca9MQv90.js} +1 -1
  122. package/assets/{graph-lkROJrYf.js → graph-BcxGmKUY.js} +1 -1
  123. package/assets/{graphql-Btz_aicw.js → graphql-DQddNIUX.js} +1 -1
  124. package/assets/{groovy-DTiJadjC.js → groovy-Dcjs8fee.js} +1 -1
  125. package/assets/{haml-CcDSAGW3.js → haml-B5-Vcx98.js} +1 -1
  126. package/assets/{handlebars-B7UUNDAM.js → handlebars-CYVGF2_K.js} +1 -1
  127. package/assets/{handlebars-CTc1FoVV.js → handlebars-D9Ysibnv.js} +1 -1
  128. package/assets/{haskell-Ba7Fn64p.js → haskell-D1TAusTt.js} +1 -1
  129. package/assets/{haxe-BOP5EevR.js → haxe-BwfSBwx-.js} +1 -1
  130. package/assets/{hcl-D1BwnWLD.js → hcl-B7RhI5Aa.js} +1 -1
  131. package/assets/{hlsl-CUum5slg.js → hlsl-ePiBBFSV.js} +1 -1
  132. package/assets/{hoon-QMQpvF33.js → hoon-CoBO7KEA.js} +1 -1
  133. package/assets/{hpkp-D6eY57p3.js → hpkp-D81lsBFo.js} +1 -1
  134. package/assets/{hsts-C1AgjS7S.js → hsts-D1exIVwR.js} +1 -1
  135. package/assets/{html-D5WIHiP4.js → html-sSVLAgmR.js} +1 -1
  136. package/assets/{htmlMode-DEpdNVPw.js → htmlMode-1dVkh-tv.js} +1 -1
  137. package/assets/{http-id2mbfvH.js → http-Dqk_-m1h.js} +1 -1
  138. package/assets/{ichigojam-DykLBLF7.js → ichigojam-Ew3H_Wnw.js} +1 -1
  139. package/assets/{icon-5DLjeVkO.js → icon-7__9w3uI.js} +1 -1
  140. package/assets/{icu-message-format-BLJSLf7X.js → icu-message-format-Dq2hIL7F.js} +1 -1
  141. package/assets/{idris-D8W8F3Du.js → idris-Cyzo9vXh.js} +1 -1
  142. package/assets/{iecst-DFLR7w9A.js → iecst-DXWmu6AB.js} +1 -1
  143. package/assets/{ignore-DApMeS1M.js → ignore-BOIdB3R9.js} +1 -1
  144. package/assets/{index-Brc7moWM.js → index-CtirNuor.js} +9 -9
  145. package/assets/info-63CPKGFF-Eft_YXi-.js +1 -0
  146. package/assets/{infoDiagram-6WOFNB3A-DVTxejFg.js → infoDiagram-6WOFNB3A-D1P6rKbs.js} +1 -1
  147. package/assets/{inform7-BbmmPtTe.js → inform7-Bc1mK28U.js} +1 -1
  148. package/assets/{ini-D-w_ESm3.js → ini-DdalcVCy.js} +1 -1
  149. package/assets/{io-CL7TQcwi.js → io-Dt_mcl8h.js} +1 -1
  150. package/assets/{j-uqAhSNfO.js → j-C-lF-CU_.js} +1 -1
  151. package/assets/{java--eXhSgxg.js → java-45YI1AnS.js} +1 -1
  152. package/assets/{javadoc-DLDzhXUx.js → javadoc-Bpiw_kgn.js} +1 -1
  153. package/assets/{javadoclike-CcxdcZFw.js → javadoclike-yg2D82m1.js} +1 -1
  154. package/assets/{javascript-B2YTQvHv.js → javascript-BFZWKPPJ.js} +1 -1
  155. package/assets/{javascript-DHOrgKX5.js → javascript-Br0LiqtA.js} +1 -1
  156. package/assets/{javastacktrace-C2aQ6cZI.js → javastacktrace-BpG-AgnP.js} +1 -1
  157. package/assets/{jexl-SUbBpRa5.js → jexl-D2VVX-f4.js} +1 -1
  158. package/assets/{jolie-DTTRmX_c.js → jolie-B1EwmubH.js} +1 -1
  159. package/assets/{journeyDiagram-FFXJYRFH-D4P4oZdc.js → journeyDiagram-FFXJYRFH-Bz2eGQD1.js} +1 -1
  160. package/assets/{jq-CNGqc8Wl.js → jq-B1-LZ9LN.js} +1 -1
  161. package/assets/{js-extras-BomY8GiL.js → js-extras-CAdKnlUK.js} +1 -1
  162. package/assets/{js-templates-lvNz8Eo-.js → js-templates-BJ0RNBBn.js} +1 -1
  163. package/assets/{jsdoc-CizF9nqb.js → jsdoc-CgalBxHx.js} +1 -1
  164. package/assets/{json-vpv-MZJY.js → json-CQzD9Vuv.js} +1 -1
  165. package/assets/{json5-Bszym-iC.js → json5-DMROsLE9.js} +1 -1
  166. package/assets/{jsonMode-BdHvYBEq.js → jsonMode-B7JNisD6.js} +1 -1
  167. package/assets/{jsonp-K9VXfRN3.js → jsonp-CtbFEoSO.js} +1 -1
  168. package/assets/{jsstacktrace-5a-l-0QO.js → jsstacktrace-CWlR2r3M.js} +1 -1
  169. package/assets/{jsx-NzQF_8Jf.js → jsx-Bcm3mCMX.js} +1 -1
  170. package/assets/{julia-KpvUUzJF.js → julia-DawUNhKV.js} +1 -1
  171. package/assets/{kanban-definition-KOZQBZVT-D7tMBarf.js → kanban-definition-KOZQBZVT-BSCp431P.js} +1 -1
  172. package/assets/{keepalived-CKdrdtrU.js → keepalived-DTrfwL7-.js} +1 -1
  173. package/assets/{keyman-CFPdCbAD.js → keyman-Dt-YdFQG.js} +1 -1
  174. package/assets/{kotlin-tQZl0Xk0.js → kotlin-DDKW_KJ3.js} +1 -1
  175. package/assets/{kumir-DbBBFKAZ.js → kumir-CL2qFoX9.js} +1 -1
  176. package/assets/{kusto-Bkg1G97b.js → kusto-CgVKIahq.js} +1 -1
  177. package/assets/{latex-BrfLAxV6.js → latex-CTdn8dw3.js} +1 -1
  178. package/assets/{latte-DsrdWVh6.js → latte-Dph7wDda.js} +1 -1
  179. package/assets/{layout-C4SVJcQz.js → layout-BGYG4PDW.js} +1 -1
  180. package/assets/{less-Dq-Do1xB.js → less-BW9Z7xNV.js} +1 -1
  181. package/assets/{lilypond-BASpUvho.js → lilypond--bIKevXM.js} +1 -1
  182. package/assets/{linear-D84iuv7z.js → linear-7u2-1SjO.js} +1 -1
  183. package/assets/{liquid-D4hD-XBz.js → liquid-BdCB7FYI.js} +1 -1
  184. package/assets/{liquid-Co1yhavg.js → liquid-C6_JMpJr.js} +1 -1
  185. package/assets/{lisp-ybAJB-FH.js → lisp-BbfmjfSW.js} +1 -1
  186. package/assets/{livescript-DLvgD8H_.js → livescript-Cnhwlvbs.js} +1 -1
  187. package/assets/{llvm-C0anU-7N.js → llvm-C5uGkJFM.js} +1 -1
  188. package/assets/{log-D-8B5UAA.js → log-ClfVLSxk.js} +1 -1
  189. package/assets/{lolcode-OUGz_qsa.js → lolcode-D1tQ-v_i.js} +1 -1
  190. package/assets/{lua-Cc6kp-D4.js → lua-BsJoX6Ep.js} +1 -1
  191. package/assets/{magma-IaFf4RIf.js → magma-fNoNeIcf.js} +1 -1
  192. package/assets/{makefile-ChKu1MJ1.js → makefile-B_SRsjlq.js} +1 -1
  193. package/assets/{markdown-DiMlCk4R.js → markdown-mUAGnld7.js} +1 -1
  194. package/assets/{markup-CEx1cEoC.js → markup-BuqVoeXR.js} +1 -1
  195. package/assets/{markup-templating-BPwIASy-.js → markup-templating-DU1K9_L8.js} +1 -1
  196. package/assets/{matlab-C6qGYTR2.js → matlab-D-TP_4M6.js} +1 -1
  197. package/assets/{maxscript-CAN0xBDN.js → maxscript-BufcWGly.js} +1 -1
  198. package/assets/{mdx-D6NVpinB.js → mdx-D5QtPHo7.js} +1 -1
  199. package/assets/{mel-CRG0vaFw.js → mel-BiL0mMX7.js} +1 -1
  200. package/assets/{mermaid-DTCIS1Vc.js → mermaid-C6ZJwRbK.js} +1 -1
  201. package/assets/{mermaid-parser.core-9OWX7w7H.js → mermaid-parser.core-B8tr8YAl.js} +3 -3
  202. package/assets/{min-pXLq1urb.js → min-DlmeNnOM.js} +1 -1
  203. package/assets/{mindmap-definition-LNHGMQRG-DpNkhLNM.js → mindmap-definition-LNHGMQRG-BzbXC-47.js} +1 -1
  204. package/assets/{mizar-CTjbYK1-.js → mizar-CTg9VBxB.js} +1 -1
  205. package/assets/{mongodb-Dwy0e7tV.js → mongodb-DZIW47b_.js} +1 -1
  206. package/assets/{monkey-5vs-VaHV.js → monkey-OTcCeVas.js} +1 -1
  207. package/assets/{moonscript-fT7DerrW.js → moonscript-B9q5jFPJ.js} +1 -1
  208. package/assets/{n1ql-CyDT-nbG.js → n1ql-zxH7u8ek.js} +1 -1
  209. package/assets/{n4js-Dmgj3bgd.js → n4js-DxH8puYd.js} +1 -1
  210. package/assets/{nand2tetris-hdl-BPfjS0pS.js → nand2tetris-hdl-Y9CaATwQ.js} +1 -1
  211. package/assets/{naniscript-AIaG6VzF.js → naniscript-fj11wz4c.js} +1 -1
  212. package/assets/{nasm-CtaUAK1B.js → nasm-CmwjTodA.js} +1 -1
  213. package/assets/{neon-BGH8Px8Z.js → neon-DM1vXAju.js} +1 -1
  214. package/assets/{nevod-DKwg2dRw.js → nevod-awEjSQiN.js} +1 -1
  215. package/assets/{nginx-CUZ2OZRs.js → nginx-CtMkRQkZ.js} +1 -1
  216. package/assets/{nim-DYHpidb8.js → nim-BpvUfA3V.js} +1 -1
  217. package/assets/{nix-DJt2Qxmn.js → nix-L30ZSyVO.js} +1 -1
  218. package/assets/{nsis-Bp97AH1A.js → nsis-B-wYmCZG.js} +1 -1
  219. package/assets/{objectivec-DXwXxEEr.js → objectivec-DqmvSFQo.js} +1 -1
  220. package/assets/{ocaml-alwbEKNU.js → ocaml-DxsXmoff.js} +1 -1
  221. package/assets/{opencl-2tlv9GXY.js → opencl-DE2DwDDh.js} +1 -1
  222. package/assets/{openqasm-DQQ8Eb1t.js → openqasm-B_Z2Pbfo.js} +1 -1
  223. package/assets/{oz-CmR9PjHE.js → oz-BsEvVihN.js} +1 -1
  224. package/assets/packet-HUATNLJX-DZEv4qIp.js +1 -0
  225. package/assets/{parigp-n8ycxTI2.js → parigp-Cb59kgzM.js} +1 -1
  226. package/assets/{parser-Bcvfazvc.js → parser-BPfu9fvJ.js} +1 -1
  227. package/assets/{pascal-CFHsej71.js → pascal-B60lAKfe.js} +1 -1
  228. package/assets/{pascaligo-C8kSNPDA.js → pascaligo-jljTdZcp.js} +1 -1
  229. package/assets/{pcaxis-L1qB_TA8.js → pcaxis-D5-ZKbf-.js} +1 -1
  230. package/assets/{peoplecode-B3ZIbHRe.js → peoplecode-CHa_iagU.js} +1 -1
  231. package/assets/{perl-B4wSx8tF.js → perl-k-uTMlyD.js} +1 -1
  232. package/assets/{php-Cp0BohX-.js → php-DkI131Jd.js} +1 -1
  233. package/assets/{php-extras-D_l2V9st.js → php-extras-DwKASBiR.js} +1 -1
  234. package/assets/{phpdoc-CK9N3DqC.js → phpdoc-U7fWPc6E.js} +1 -1
  235. package/assets/pie-WTHONI2E-7OIW4qVI.js +1 -0
  236. package/assets/{pieDiagram-DBDJKBY4-CtSiPn-U.js → pieDiagram-DBDJKBY4-C_nsodWG.js} +1 -1
  237. package/assets/{plsql-C1Z_R7C0.js → plsql-vgmv1Vi6.js} +1 -1
  238. package/assets/{powerquery-Cj9zzkL_.js → powerquery-DmK9Euuu.js} +1 -1
  239. package/assets/{powershell-BMCDkE8B.js → powershell-CKXrQp96.js} +1 -1
  240. package/assets/{processing-DOu9EyQL.js → processing-B5NyV_CO.js} +1 -1
  241. package/assets/{prolog-BDx-mKYw.js → prolog-BWIt2B_6.js} +1 -1
  242. package/assets/{promql-CyuJUGgC.js → promql-B_QoDoXl.js} +1 -1
  243. package/assets/{properties-Cz9SwuSc.js → properties-DaR4F6tG.js} +1 -1
  244. package/assets/{protobuf-BCLdPaZg.js → protobuf-D5QPKMFw.js} +1 -1
  245. package/assets/{psl-BVzbXOmp.js → psl-D6wB8sa6.js} +1 -1
  246. package/assets/{pug-PBVvhxsU.js → pug-Df1YS9qd.js} +1 -1
  247. package/assets/{puppet-Bp5J_Xf6.js → puppet-BO-UEy3J.js} +1 -1
  248. package/assets/{pure-BEODe8Ty.js → pure-_uKvBHAQ.js} +1 -1
  249. package/assets/{purebasic-g8QwRKk9.js → purebasic-B4ULSQZE.js} +1 -1
  250. package/assets/{purescript-UFsBai8q.js → purescript-BZ-uz2lE.js} +1 -1
  251. package/assets/{python-cW1cr4Xe.js → python-B85Wtz1L.js} +1 -1
  252. package/assets/{python-BEpwHjuW.js → python-D7SSynp9.js} +1 -1
  253. package/assets/{q-CuXsyoDM.js → q-vO-s84n9.js} +1 -1
  254. package/assets/{qml-NgPknFa-.js → qml-kaZ2gDT3.js} +1 -1
  255. package/assets/{qore-C0g-7ava.js → qore-DVq2LQeL.js} +1 -1
  256. package/assets/{qsharp-BrQJYopz.js → qsharp-Bf2rFqlm.js} +1 -1
  257. package/assets/{quadrantDiagram-YPSRARAO-fpN7laT8.js → quadrantDiagram-YPSRARAO-DApXzXyD.js} +1 -1
  258. package/assets/{r-ivB35FJi.js → r-DeLDWJTd.js} +1 -1
  259. package/assets/{racket-D6952iA-.js → racket-BcNKcbHA.js} +1 -1
  260. package/assets/radar-NJJJXTRR-DTGUp5A0.js +1 -0
  261. package/assets/{razor-COaKzAih.js → razor-BGJSc0Tr.js} +1 -1
  262. package/assets/{reason-BxyJj1Wv.js → reason-DgdS1e1I.js} +1 -1
  263. package/assets/{reduce-CEguFi6x.js → reduce-BgTPaPsL.js} +1 -1
  264. package/assets/{regex-UCZUa98R.js → regex-CIYZLC96.js} +1 -1
  265. package/assets/{rego-D5bYSBEk.js → rego-DCo8FQR5.js} +1 -1
  266. package/assets/{renpy-DTdz45My.js → renpy-BUspwmyO.js} +1 -1
  267. package/assets/{requirementDiagram-EGVEC5DT-C2aVrzw7.js → requirementDiagram-EGVEC5DT-u3Jr1c40.js} +1 -1
  268. package/assets/{rest-BxrDSOtP.js → rest-CdGjvoQ8.js} +1 -1
  269. package/assets/{rip-CvJDF04l.js → rip-C0zBlfI9.js} +1 -1
  270. package/assets/{roboconf-DpPdQtT6.js → roboconf-CtH-vuuD.js} +1 -1
  271. package/assets/{robotframework-CvzHhnGx.js → robotframework-B2sSQjjW.js} +1 -1
  272. package/assets/{ruby-BYts9dao.js → ruby-B2ODcCrN.js} +1 -1
  273. package/assets/{rust-DhU6TFsm.js → rust-BVonVJBT.js} +1 -1
  274. package/assets/{sankeyDiagram-HRAUVNP4-4oZDeCaD.js → sankeyDiagram-HRAUVNP4-CFVhGSiA.js} +1 -1
  275. package/assets/{sas-ChhKHWGM.js → sas-C51qgIML.js} +1 -1
  276. package/assets/{sass-C57bJt_A.js → sass-aSk38cgu.js} +1 -1
  277. package/assets/{scala-Cg28kNry.js → scala-CHGF8rj2.js} +1 -1
  278. package/assets/{scheme-Bpk-KLc_.js → scheme-DtBnt09V.js} +1 -1
  279. package/assets/{scss-BeU7qozo.js → scss-CwFwUKHz.js} +1 -1
  280. package/assets/{sequenceDiagram-WFGC7UMF-BS5S-iIx.js → sequenceDiagram-WFGC7UMF-2hkaJ4an.js} +1 -1
  281. package/assets/{shell-session-N4BUyO5b.js → shell-session-B1lsY4lP.js} +1 -1
  282. package/assets/{smali-OZwkp_pU.js → smali-DoC35MXt.js} +1 -1
  283. package/assets/{smalltalk-Bgd8uXdt.js → smalltalk-DC7K9Zjc.js} +1 -1
  284. package/assets/{smarty-BbqdJT5w.js → smarty-Dya8aFU7.js} +1 -1
  285. package/assets/{sml-DbDOAWsQ.js → sml-BAkRAbsh.js} +1 -1
  286. package/assets/{solidity-DkQCaL_X.js → solidity-DzvaOMP9.js} +1 -1
  287. package/assets/{solution-file-DFlRPhIk.js → solution-file-Bmez1lHa.js} +1 -1
  288. package/assets/{soy-CqM5aRME.js → soy-YLTPfz3s.js} +1 -1
  289. package/assets/{sparql-B1GALy7V.js → sparql-Dune-Ey0.js} +1 -1
  290. package/assets/{splunk-spl-DrNqni3-.js → splunk-spl-BBCP9G49.js} +1 -1
  291. package/assets/{sqf-BeBvdmXG.js → sqf-CXQAyqIQ.js} +1 -1
  292. package/assets/{sql-CtDLgxfq.js → sql-02c4jPTl.js} +1 -1
  293. package/assets/{squirrel-COkcd8Tr.js → squirrel-C0xvhdrs.js} +1 -1
  294. package/assets/{stan-C1_hogQu.js → stan-B1JCuN-c.js} +1 -1
  295. package/assets/{stateDiagram-UUKSUZ4H-Cb3qH3Cy.js → stateDiagram-UUKSUZ4H-wJehzXeN.js} +1 -1
  296. package/assets/{stateDiagram-v2-EYPG3UTE-BzEwA6K7.js → stateDiagram-v2-EYPG3UTE-BSNhmMZe.js} +1 -1
  297. package/assets/{stylus-Dw8891LS.js → stylus-r331_ig_.js} +1 -1
  298. package/assets/{swift-B97O9HHR.js → swift-B9J5Xueq.js} +1 -1
  299. package/assets/{systemd-CUtXAwEb.js → systemd-XWCGy8Ob.js} +1 -1
  300. package/assets/{t4-cs-CyYMVAUn.js → t4-cs-Dc98chgs.js} +1 -1
  301. package/assets/{t4-templating-Du1KIrkv.js → t4-templating-BvTJ1ev3.js} +1 -1
  302. package/assets/{t4-vb-Pwd8zhQY.js → t4-vb-BZfdBq4p.js} +1 -1
  303. package/assets/{tap-C5-eahra.js → tap-DhlZD9D0.js} +1 -1
  304. package/assets/{tcl-CQrWCRuJ.js → tcl-CuPFotZK.js} +1 -1
  305. package/assets/{textile-CyJk6SWo.js → textile-BXq80H_I.js} +1 -1
  306. package/assets/{timeline-definition-3HZDQTIS-DaBjiVZ7.js → timeline-definition-3HZDQTIS-DGZYlLIL.js} +1 -1
  307. package/assets/{toml-Cact8Vna.js → toml-B5y3O0-s.js} +1 -1
  308. package/assets/treemap-75Q7IDZK-BBJN3GI7.js +1 -0
  309. package/assets/{tremor-BBmidx_C.js → tremor-C9Ysgl4-.js} +1 -1
  310. package/assets/{tsMode-DjkyL1AP.js → tsMode-BVMxS71B.js} +1 -1
  311. package/assets/{tsx-BFgSfn5D.js → tsx-CLBH7tR4.js} +1 -1
  312. package/assets/{tt2-CG-UIBmK.js → tt2-FoOwDDSs.js} +1 -1
  313. package/assets/{turtle-DigfRE97.js → turtle-BK5vaG_v.js} +1 -1
  314. package/assets/{twig-PmY_cDoq.js → twig-Csv3LkDK.js} +1 -1
  315. package/assets/{typescript-DgKm9t07.js → typescript-0ftPtREK.js} +1 -1
  316. package/assets/{typescript-Da47IE7f.js → typescript-DVbMPcDB.js} +1 -1
  317. package/assets/{typoscript-CgZr5jEZ.js → typoscript-0nvYot7S.js} +1 -1
  318. package/assets/{unrealscript-BI_pn0rK.js → unrealscript-LwNoQ3hK.js} +1 -1
  319. package/assets/{uorazor-C7IhUkD6.js → uorazor-Cwh8UkUY.js} +1 -1
  320. package/assets/{uri-BP2d8Ze2.js → uri-DshCX7s1.js} +1 -1
  321. package/assets/{v-B9O-tbsS.js → v-COh0hg4M.js} +1 -1
  322. package/assets/{vala-CS5ZRPeA.js → vala-DgFyuUwt.js} +1 -1
  323. package/assets/{vbnet-B0hx3qRp.js → vbnet-Wk_aEgDi.js} +1 -1
  324. package/assets/{velocity-QemisC16.js → velocity-DFFugm2u.js} +1 -1
  325. package/assets/{verilog-jjjMAm_Y.js → verilog-BKx734nL.js} +1 -1
  326. package/assets/{vhdl-B9EszVuj.js → vhdl-Cp7FcdJo.js} +1 -1
  327. package/assets/{vim-CxDlf-dr.js → vim-CnU0V9TN.js} +1 -1
  328. package/assets/{visual-basic-CfhBm1gF.js → visual-basic-hpwCRIX4.js} +1 -1
  329. package/assets/{warpscript-DL5ToBao.js → warpscript-BGP6IruP.js} +1 -1
  330. package/assets/{wasm-C5WawCVZ.js → wasm-CZNW1nwO.js} +1 -1
  331. package/assets/{web-idl-DWKDo7hm.js → web-idl-BPOBeez0.js} +1 -1
  332. package/assets/{wiki-BHpSxg4K.js → wiki-CJ3thIMw.js} +1 -1
  333. package/assets/{wolfram-C_oBzCJW.js → wolfram-DKnA8Se6.js} +1 -1
  334. package/assets/{wren-CA1nFGqi.js → wren-CqsJ3mfc.js} +1 -1
  335. package/assets/{xeora-BtUuVarv.js → xeora-DMp8mBB8.js} +1 -1
  336. package/assets/{xml-BBqGkZMk.js → xml-Bac-zZiz.js} +1 -1
  337. package/assets/{xml-doc-DhUg29aH.js → xml-doc-Vd4sAKdf.js} +1 -1
  338. package/assets/{xojo-BmgifBv1.js → xojo-UInKc1K-.js} +1 -1
  339. package/assets/{xquery-7FfNXUZg.js → xquery-rmywbRjN.js} +1 -1
  340. package/assets/{xychartDiagram-FDP5SA34-DlWJl-YC.js → xychartDiagram-FDP5SA34-BvJlNneq.js} +1 -1
  341. package/assets/{yaml-C8j_iwGJ.js → yaml-BxI0F9PE.js} +1 -1
  342. package/assets/{yaml-BOp0Lh0S.js → yaml-D9S3dJfe.js} +1 -1
  343. package/assets/{yang-CLUWUZcf.js → yang-C4BJM-5B.js} +1 -1
  344. package/assets/{zig-DdXASuyK.js → zig-BT9rKyM0.js} +1 -1
  345. package/index.html +1 -1
  346. package/package.json +1 -1
  347. package/assets/architecture-O4VJ6CD3-jaQW6ijo.js +0 -1
  348. package/assets/channel-DabOFIhE.js +0 -1
  349. package/assets/clone-BDNFedfK.js +0 -1
  350. package/assets/gitGraph-ZV4HHKMB-CjT8UBWJ.js +0 -1
  351. package/assets/info-63CPKGFF-CMaftaLX.js +0 -1
  352. package/assets/packet-HUATNLJX-Df0K9_iv.js +0 -1
  353. package/assets/pie-WTHONI2E-D2V4EPkW.js +0 -1
  354. package/assets/radar-NJJJXTRR-Bh0TcAtk.js +0 -1
  355. package/assets/treemap-75Q7IDZK-BZoUJEBa.js +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-2BBEFEWP-D2XFAJFU.js","assets/graph-lkROJrYf.js","assets/reduce-CEguFi6x.js","assets/layout-C4SVJcQz.js","assets/min-pXLq1urb.js","assets/clone-BDNFedfK.js","assets/c4Diagram-AAMF2YG6-v1fpnkx2.js","assets/chunk-OMD6QJNC-DD9Oy5sh.js","assets/flowDiagram-THRYKUMA-D3gqWW_d.js","assets/chunk-GLLZNHP4-CjNMxI4x.js","assets/chunk-WVR4S24B-B9zmB2Tt.js","assets/chunk-NRVI72HA-aKshiznA.js","assets/channel-DabOFIhE.js","assets/erDiagram-HZWUO2LU-DIXDxlDs.js","assets/gitGraphDiagram-OJR772UL-DRxxeQJN.js","assets/chunk-ANTBXLJU-BBGjDBcL.js","assets/chunk-FHKO5MBM-CtXgGiWs.js","assets/mermaid-parser.core-9OWX7w7H.js","assets/ganttDiagram-WV7ZQ7D5-C-2v9gZQ.js","assets/linear-D84iuv7z.js","assets/init-Gi6I4Gst.js","assets/defaultLocale-C4B-KCzX.js","assets/infoDiagram-6WOFNB3A-DVTxejFg.js","assets/pieDiagram-DBDJKBY4-CtSiPn-U.js","assets/arc-BlYL6j5T.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-YPSRARAO-fpN7laT8.js","assets/xychartDiagram-FDP5SA34-DlWJl-YC.js","assets/requirementDiagram-EGVEC5DT-C2aVrzw7.js","assets/sequenceDiagram-WFGC7UMF-BS5S-iIx.js","assets/classDiagram-3BZAVTQC-CqX7Tp25.js","assets/chunk-JBRWN2VN-BIsIHCzN.js","assets/classDiagram-v2-QTMF73CY-CqX7Tp25.js","assets/stateDiagram-UUKSUZ4H-Cb3qH3Cy.js","assets/chunk-LXBSTHXV-DIuZccqv.js","assets/stateDiagram-v2-EYPG3UTE-BzEwA6K7.js","assets/journeyDiagram-FFXJYRFH-D4P4oZdc.js","assets/timeline-definition-3HZDQTIS-DaBjiVZ7.js","assets/mindmap-definition-LNHGMQRG-DpNkhLNM.js","assets/cytoscape.esm-BQaXIfA_.js","assets/kanban-definition-KOZQBZVT-D7tMBarf.js","assets/sankeyDiagram-HRAUVNP4-4oZDeCaD.js","assets/diagram-GUPCWM2R-C_bP7Q1P.js","assets/diagram-RP2FKANI-BSi4bGof.js","assets/blockDiagram-ZYB65J3Q-D0Ol2jlv.js","assets/architectureDiagram-KFL7JDKH-DJeBx9P6.js","assets/diagram-4IRLE6MV-3Ii0VW6l.js","assets/apex-Sg90mm4u.js","assets/sql-CJATM1Qp.js","assets/arduino-C51Narsi.js","assets/cpp-BdJVwJpi.js","assets/c-kgVuzdLE.js","assets/aspnet-BDjjZcvg.js","assets/csharp-Cd5Udg29.js","assets/bash-WWuseIss.js","assets/bash-CefCgV5_.js","assets/basic-5JZah1MP.js","assets/basic-DBS9NaGG.js","assets/bison-CywkiQg4.js","assets/c-BgfjASKF.js","assets/chaiscript-4VtsYVpl.js","assets/clike-CxAeib4_.js","assets/clike-B5tY_8Hg.js","assets/cpp-CKhD-3M2.js","assets/crystal-CjID7KIv.js","assets/ruby-DYsn9XfW.js","assets/csharp-2ALpLYur.js","assets/cshtml-BlacgVaO.js","assets/css-B2tK9wdh.js","assets/css-CF9HHZb0.js","assets/django-DnIhfivE.js","assets/markup-templating-BxAVv-bL.js","assets/ejs-B3E9714P.js","assets/erb-BLfRgaP8.js","assets/etlua-B52BFn4o.js","assets/lua-DER4jxlW.js","assets/ftl-CaaEO_Z2.js","assets/glsl-Df0XRhtW.js","assets/haml-CcDSAGW3.js","assets/handlebars-CTc1FoVV.js","assets/haskell-Ba7Fn64p.js","assets/haskell-Ds42Eazu.js","assets/hlsl-CUum5slg.js","assets/idris-D8W8F3Du.js","assets/java--eXhSgxg.js","assets/java-BxMbkJZ_.js","assets/javadoc-DLDzhXUx.js","assets/javadoclike-myFApC35.js","assets/javadoclike-CcxdcZFw.js","assets/javascript-B2YTQvHv.js","assets/javascript-D8vYUPHd.js","assets/jsdoc-CizF9nqb.js","assets/typescript-CVO-8GEc.js","assets/json-vpv-MZJY.js","assets/json-BESjz4hO.js","assets/json5-Bszym-iC.js","assets/jsonp-K9VXfRN3.js","assets/jsx-NzQF_8Jf.js","assets/jsx-CWP8P1mH.js","assets/latte-DsrdWVh6.js","assets/php-iTdQntIy.js","assets/lilypond-BASpUvho.js","assets/scheme-Cscf027c.js","assets/liquid-Co1yhavg.js","assets/lua-Cc6kp-D4.js","assets/markup-templating-BPwIASy-.js","assets/markup-CEx1cEoC.js","assets/markup-BONeskWm.js","assets/objectivec-DXwXxEEr.js","assets/opencl-2tlv9GXY.js","assets/php-extras-D_l2V9st.js","assets/php-Cp0BohX-.js","assets/phpdoc-CK9N3DqC.js","assets/plsql-C1Z_R7C0.js","assets/purescript-UFsBai8q.js","assets/racket-D6952iA-.js","assets/ruby-BYts9dao.js","assets/scala-Cg28kNry.js","assets/scheme-Bpk-KLc_.js","assets/shell-session-N4BUyO5b.js","assets/smarty-BbqdJT5w.js","assets/soy-CqM5aRME.js","assets/sparql-B1GALy7V.js","assets/turtle-Ro1R6Je7.js","assets/sql-CtDLgxfq.js","assets/t4-cs-CyYMVAUn.js","assets/t4-templating-B5EzSFYT.js","assets/t4-templating-Du1KIrkv.js","assets/t4-vb-Pwd8zhQY.js","assets/vbnet-BhrUc4aD.js","assets/tap-C5-eahra.js","assets/yaml-pHjxJgpq.js","assets/tsx-BFgSfn5D.js","assets/tt2-CG-UIBmK.js","assets/turtle-DigfRE97.js","assets/twig-PmY_cDoq.js","assets/typescript-Da47IE7f.js","assets/vbnet-B0hx3qRp.js","assets/yaml-BOp0Lh0S.js","assets/core-UDSDYEIa.js","assets/javascript-DHOrgKX5.js","assets/typescript-DgKm9t07.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-2BBEFEWP-BdLL3xYf.js","assets/graph-BcxGmKUY.js","assets/reduce-BgTPaPsL.js","assets/layout-BGYG4PDW.js","assets/min-DlmeNnOM.js","assets/clone-CQzAVi1_.js","assets/c4Diagram-AAMF2YG6-B3WV-JGO.js","assets/chunk-OMD6QJNC-CcTW7n4d.js","assets/flowDiagram-THRYKUMA-BfELR1TN.js","assets/chunk-GLLZNHP4-DN9o3NmB.js","assets/chunk-WVR4S24B-O5VGDTLK.js","assets/chunk-NRVI72HA-zCLbemRf.js","assets/channel-C5BRq60g.js","assets/erDiagram-HZWUO2LU-CLYl94DE.js","assets/gitGraphDiagram-OJR772UL-B2Wp36xV.js","assets/chunk-ANTBXLJU-C1HjgHjc.js","assets/chunk-FHKO5MBM-BrpQoidZ.js","assets/mermaid-parser.core-B8tr8YAl.js","assets/ganttDiagram-WV7ZQ7D5-Bw19caXp.js","assets/linear-7u2-1SjO.js","assets/init-Gi6I4Gst.js","assets/defaultLocale-C4B-KCzX.js","assets/infoDiagram-6WOFNB3A-D1P6rKbs.js","assets/pieDiagram-DBDJKBY4-C_nsodWG.js","assets/arc-O4DCfFxW.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-YPSRARAO-DApXzXyD.js","assets/xychartDiagram-FDP5SA34-BvJlNneq.js","assets/requirementDiagram-EGVEC5DT-u3Jr1c40.js","assets/sequenceDiagram-WFGC7UMF-2hkaJ4an.js","assets/classDiagram-3BZAVTQC-DC2D1o61.js","assets/chunk-JBRWN2VN-DHDH1I9F.js","assets/classDiagram-v2-QTMF73CY-DC2D1o61.js","assets/stateDiagram-UUKSUZ4H-wJehzXeN.js","assets/chunk-LXBSTHXV-DsMapXSy.js","assets/stateDiagram-v2-EYPG3UTE-BSNhmMZe.js","assets/journeyDiagram-FFXJYRFH-Bz2eGQD1.js","assets/timeline-definition-3HZDQTIS-DGZYlLIL.js","assets/mindmap-definition-LNHGMQRG-BzbXC-47.js","assets/cytoscape.esm-BQaXIfA_.js","assets/kanban-definition-KOZQBZVT-BSCp431P.js","assets/sankeyDiagram-HRAUVNP4-CFVhGSiA.js","assets/diagram-GUPCWM2R-ByacznHI.js","assets/diagram-RP2FKANI-uZXzQ0HO.js","assets/blockDiagram-ZYB65J3Q-C50Mlz51.js","assets/architectureDiagram-KFL7JDKH-ChuPt1SI.js","assets/diagram-4IRLE6MV-Du7ZA7eP.js","assets/apex-Dg8nVlbW.js","assets/sql-CJATM1Qp.js","assets/arduino-DmF6sKDB.js","assets/cpp-BdJVwJpi.js","assets/c-kgVuzdLE.js","assets/aspnet-BSz1N4dH.js","assets/csharp-Cd5Udg29.js","assets/bash-CviVjnOh.js","assets/bash-CefCgV5_.js","assets/basic-Bx3Rn9rA.js","assets/basic-DBS9NaGG.js","assets/bison-BN1e05g4.js","assets/c-Ds_ySDj7.js","assets/chaiscript-RYJpKV37.js","assets/clike-CqNn0AJS.js","assets/clike-B5tY_8Hg.js","assets/cpp-DWon0ppI.js","assets/crystal-B2v6_JlQ.js","assets/ruby-DYsn9XfW.js","assets/csharp-BLSK0Zzi.js","assets/cshtml-BLIhUWji.js","assets/css-D8yvO7dz.js","assets/css-CF9HHZb0.js","assets/django-CqZkrb5c.js","assets/markup-templating-BxAVv-bL.js","assets/ejs-BO4bBszI.js","assets/erb-D0dPextc.js","assets/etlua-DISv4zYg.js","assets/lua-DER4jxlW.js","assets/ftl-B17SbwAW.js","assets/glsl-VfJQISaC.js","assets/haml-B5-Vcx98.js","assets/handlebars-D9Ysibnv.js","assets/haskell-D1TAusTt.js","assets/haskell-Ds42Eazu.js","assets/hlsl-ePiBBFSV.js","assets/idris-Cyzo9vXh.js","assets/java-45YI1AnS.js","assets/java-BxMbkJZ_.js","assets/javadoc-Bpiw_kgn.js","assets/javadoclike-myFApC35.js","assets/javadoclike-yg2D82m1.js","assets/javascript-BFZWKPPJ.js","assets/javascript-D8vYUPHd.js","assets/jsdoc-CgalBxHx.js","assets/typescript-CVO-8GEc.js","assets/json-CQzD9Vuv.js","assets/json-BESjz4hO.js","assets/json5-DMROsLE9.js","assets/jsonp-CtbFEoSO.js","assets/jsx-Bcm3mCMX.js","assets/jsx-CWP8P1mH.js","assets/latte-Dph7wDda.js","assets/php-iTdQntIy.js","assets/lilypond--bIKevXM.js","assets/scheme-Cscf027c.js","assets/liquid-C6_JMpJr.js","assets/lua-BsJoX6Ep.js","assets/markup-templating-DU1K9_L8.js","assets/markup-BuqVoeXR.js","assets/markup-BONeskWm.js","assets/objectivec-DqmvSFQo.js","assets/opencl-DE2DwDDh.js","assets/php-extras-DwKASBiR.js","assets/php-DkI131Jd.js","assets/phpdoc-U7fWPc6E.js","assets/plsql-vgmv1Vi6.js","assets/purescript-BZ-uz2lE.js","assets/racket-BcNKcbHA.js","assets/ruby-B2ODcCrN.js","assets/scala-CHGF8rj2.js","assets/scheme-DtBnt09V.js","assets/shell-session-B1lsY4lP.js","assets/smarty-Dya8aFU7.js","assets/soy-YLTPfz3s.js","assets/sparql-Dune-Ey0.js","assets/turtle-Ro1R6Je7.js","assets/sql-02c4jPTl.js","assets/t4-cs-Dc98chgs.js","assets/t4-templating-B5EzSFYT.js","assets/t4-templating-BvTJ1ev3.js","assets/t4-vb-BZfdBq4p.js","assets/vbnet-BhrUc4aD.js","assets/tap-DhlZD9D0.js","assets/yaml-pHjxJgpq.js","assets/tsx-CLBH7tR4.js","assets/tt2-FoOwDDSs.js","assets/turtle-BK5vaG_v.js","assets/twig-Csv3LkDK.js","assets/typescript-DVbMPcDB.js","assets/vbnet-Wk_aEgDi.js","assets/yaml-D9S3dJfe.js","assets/core-DkoeCqqg.js","assets/javascript-Br0LiqtA.js","assets/typescript-0ftPtREK.js"])))=>i.map(i=>d[i]);
2
2
  var xUe=Object.defineProperty;var SUe=(n,e,t)=>e in n?xUe(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Hn=(n,e,t)=>SUe(n,typeof e!="symbol"?e+"":e,t);import{Star as loe,NewReleases as LUe,Timeline as EUe,MoodBad as kUe,LocalPolice as AUe,PsychologyAlt as IUe,ChevronRight as coe,ExpandLess as DUe,ExpandMore as NE,Menu as MUe,ChevronLeft as Mve,MoreHoriz as uoe,Clear as fp,Search as N1,Info as RE,Apps as Ove,CloseOutlined as OUe,ErrorOutline as doe,FeedbackOutlined as NUe,NotificationsActiveOutlined as RUe,NotificationsNoneOutlined as PUe,Circle as QL,Tune as HUe,Help as N9,Settings as Nve,ExitToApp as FUe,SupervisorAccount as BUe,Dashboard as eX,SavedSearch as z3,QueryStats as QT,Code as NV,ManageSearch as Rve,FormatListBulleted as xL,Article as bm,Topic as hoe,Terminal as u7,Api as VUe,Edit as Hh,HelpCenter as Pve,Shield as Hve,Key as Fve,SettingsSuggest as foe,Description as Bve,Storage as Vve,Book as jve,PersonSearch as jUe,Person as yC,Work as zUe,CreateNewFolder as WUe,EditNote as UUe,Error as zve,LinkOff as $Ue,CloudSync as qUe,Height as ZUe,History as poe,Close as K7,InfoOutlined as goe,TaskAltOutlined as GUe,Delete as Gh,Save as moe,Add as U2,PlayCircleOutline as Wve,Engineering as KUe,Check as tf,PlayArrowOutlined as f2e,OpenInNew as pp,SsidChart as xT,FireTruck as YUe,RocketLaunch as XUe,Favorite as JUe,Celebration as e$e,Mood as t$e,ThumbDown as n$e,ThumbUp as i$e,FormatQuote as r$e,Send as Uve,Plagiarism as s$e,Label as o$e,LinkRounded as a$e,Language as iI,Lock as Toe,StarBorder as $ve,Remove as qve,CenterFocusWeak as Zve,Refresh as l$e,Analytics as c$e,AccountTree as Gve,PersonOff as u$e,KeyboardArrowDown as d$e,ArrowDropDown as h$e,InsertLink as f$e,KeyboardArrowUp as tX,Comment as Kve,DataObject as Yve,LinkSharp as Xve,KeyboardArrowRight as p2e,HowToVote as p$e,Assignment as g$e,Cancel as Jve,ArrowUpward as eye,ArrowDownward as tye,List as boe,TableChart as _oe,WarningAmberOutlined as m$e,DragIndicator as T$e,FormatIndentIncrease as b$e,FormatIndentDecrease as _$e,ViewAgenda as v$e,WbSunny as y$e,DarkMode as w$e,ViewCompact as C$e,ViewModule as Q$e,ViewComfy as x$e,DragHandle as S$e,HelpOutline as L$e}from"@mui/icons-material";import*as g2e from"@mui/material/colors";import{grey as nX,teal as E$e,pink as nye,indigo as k$e,yellow as iX,red as rX,orange as A$e,blue as I$e,green as m2e,blueGrey as iye}from"@mui/material/colors";import{ListItem as sX,Tooltip as Jn,ListItemButton as Mf,useTheme as nr,Box as ai,ListItemIcon as O0,ListItemText as Ol,Collapse as ST,List as Xf,Popover as RV,styled as ea,useMediaQuery as uo,IconButton as Ei,Drawer as rI,Toolbar as PE,Divider as is,ClickAwayListener as yb,Typography as mt,Link as wb,Breadcrumbs as D$e,Stack as rt,InputBase as M$e,InputAdornment as Jf,Button as so,CircularProgress as _a,emphasize as Xd,MenuList as oH,MenuItem as Zs,Slide as O$e,Popper as wC,Dialog as N$e,DialogTitle as R$e,DialogContent as P$e,Fade as c4,Paper as Lu,Avatar as Yy,Icon as H$e,Skeleton as Br,Chip as xs,Grid as Nr,Badge as Cb,Switch as s9,ListSubheader as oX,ListItemSecondaryAction as px,AppBar as F$e,CssBaseline as B$e,createTheme as V$e,StyledEngineProvider as j$e,ThemeProvider as rye,Modal as sye,Card as Wi,TextField as Ar,Container as oye,Accordion as Xy,AccordionSummary as Jy,AccordionDetails as ew,alpha as tw,lighten as LT,darken as sI,Tabs as O4,Tab as Vs,TableCell as Xi,TableRow as Co,TableHead as u4,TableContainer as nw,Table as V0,Alert as Ed,AlertTitle as gp,Autocomplete as Ya,LinearProgress as jh,CardContent as iu,Select as R1,FormGroup as voe,FormControlLabel as qf,Checkbox as M2,Pagination as z$e,Fab as oI,CardHeader as W6,FormControl as su,FormLabel as tT,Slider as yoe,TableBody as ep,InputLabel as _m,Menu as PV,CardActions as aye,Backdrop as lye,AvatarGroup as woe,ToggleButtonGroup as d4,ToggleButton as Dc,avatarClasses as cye,iconButtonClasses as W$e,FormHelperText as U$e,RadioGroup as uye,Radio as ER,formControlClasses as $$e}from"@mui/material";import{LocalizationProvider as dye,StaticDateTimePicker as q$e}from"@mui/x-date-pickers";import{AdapterDayjs as hye}from"@mui/x-date-pickers/AdapterDayjs";import Z$e from"@mui/material/Popper";import G$e from"@mui/material/Avatar";import{DateTimePicker as T2e}from"@mui/x-date-pickers/DateTimePicker";function fye(n,e){for(var t=0;t<e.length;t++){const i=e[t];if(typeof i!="string"&&!Array.isArray(i)){for(const r in i)if(r!=="default"&&!(r in n)){const s=Object.getOwnPropertyDescriptor(i,r);s&&Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:()=>i[r]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&i(a)}).observe(document,{childList:!0,subtree:!0});function t(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(r){if(r.ep)return;r.ep=!0;const s=t(r);fetch(r.href,s)}})();var Zf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $l(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function K$e(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var t=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(i){var r=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return n[i]}})}),t}var x$={exports:{}},gx={},S$={exports:{}},go={};/**
3
3
  * @license React
4
4
  * react.production.min.js
@@ -432,8 +432,8 @@ res:`,wr.polygon(e,u,f)),wr.polygon(e,u,f)},r}de(eIe,"question");async function
432
432
  node : x:${n.x} y:${n.y} w:${n.width} h:${n.height}`);const i=n.x,r=n.y,s=Math.abs(i-t.x),a=n.width/2;let o=t.x<e.x?a-s:a+s;const l=n.height/2,c=Math.abs(e.y-t.y),u=Math.abs(e.x-t.x);if(Math.abs(r-e.y)*a>Math.abs(i-e.x)*l){let h=t.y<e.y?e.y-l-r:r-l-e.y;o=u*h/c;const d={x:t.x<e.x?t.x+o:t.x-u+o,y:t.y<e.y?t.y+c-h:t.y-c+h};return o===0&&(d.x=e.x,d.y=e.y),u===0&&(d.x=e.x),c===0&&(d.y=e.y),Un.debug(`abc89 top/bottom calc, Q ${c}, q ${h}, R ${u}, r ${o}`,d),d}else{t.x<e.x?o=e.x-a-i:o=i-a-e.x;let h=c*o/u,d=t.x<e.x?t.x+u-o:t.x-u+o,f=t.y<e.y?t.y+h:t.y-h;return Un.debug(`sides calc abc89, Q ${c}, q ${h}, R ${u}, r ${o}`,{_x:d,_y:f}),o===0&&(d=e.x,f=e.y),u===0&&(d=e.x),c===0&&(f=e.y),{x:d,y:f}}},"intersection"),U4e=de((n,e)=>{Un.warn("abc88 cutPathAtIntersect",n,e);let t=[],i=n[0],r=!1;return n.forEach(s=>{if(Un.info("abc88 checking point",s,e),!yTt(e,s)&&!r){const a=wTt(e,i,s);Un.debug("abc88 inside",s,i,a),Un.debug("abc88 intersection",a,e);let o=!1;t.forEach(l=>{o=o||l.x===a.x&&l.y===a.y}),t.some(l=>l.x===a.x&&l.y===a.y)?Un.warn("abc88 no intersect",a,t):t.push(a),r=!0}else Un.warn("abc88 outside",s,i),i=s,r||t.push(s)}),Un.debug("returning points",t),t},"cutPathAtIntersect");function EIe(n){const e=[],t=[];for(let i=1;i<n.length-1;i++){const r=n[i-1],s=n[i],a=n[i+1];(r.x===s.x&&s.y===a.y&&Math.abs(s.x-a.x)>5&&Math.abs(s.y-r.y)>5||r.y===s.y&&s.x===a.x&&Math.abs(s.x-r.x)>5&&Math.abs(s.y-a.y)>5)&&(e.push(s),t.push(i))}return{cornerPoints:e,cornerPointPositions:t}}de(EIe,"extractCornerPoints");var $4e=de(function(n,e,t){const i=e.x-n.x,r=e.y-n.y,s=Math.sqrt(i*i+r*r),a=t/s;return{x:e.x-a*i,y:e.y-a*r}},"findAdjacentPoint"),CTt=de(function(n){const{cornerPointPositions:e}=EIe(n),t=[];for(let i=0;i<n.length;i++)if(e.includes(i)){const r=n[i-1],s=n[i+1],a=n[i],o=$4e(r,a,5),l=$4e(s,a,5),c=l.x-o.x,u=l.y-o.y;t.push(o);const h=Math.sqrt(2)*2;let d={x:a.x,y:a.y};if(Math.abs(s.x-r.x)>10&&Math.abs(s.y-r.y)>=10){Un.debug("Corner point fixing",Math.abs(s.x-r.x),Math.abs(s.y-r.y));const f=5;a.x===o.x?d={x:c<0?o.x-f+h:o.x+f-h,y:u<0?o.y-h:o.y+h}:d={x:c<0?o.x-h:o.x+h,y:u<0?o.y-f+h:o.y+f-h}}else Un.debug("Corner point skipping fixing",Math.abs(s.x-r.x),Math.abs(s.y-r.y));t.push(d,l)}else t.push(n[i]);return t},"fixCorners"),QTt=de(function(n,e,t,i,r,s,a){var E;const{handDrawnSeed:o}=Ea();let l=e.points,c=!1;const u=r;var h=s;const d=[];for(const I in e.cssCompiledStyles)LEe(I)||d.push(e.cssCompiledStyles[I]);h.intersect&&u.intersect&&(l=l.slice(1,e.points.length-1),l.unshift(u.intersect(l[0])),Un.debug("Last point APA12",e.start,"-->",e.end,l[l.length-1],h,h.intersect(l[l.length-1])),l.push(h.intersect(l[l.length-1]))),e.toCluster&&(Un.info("to cluster abc88",t.get(e.toCluster)),l=U4e(e.points,t.get(e.toCluster).node),c=!0),e.fromCluster&&(Un.debug("from cluster abc88",t.get(e.fromCluster),JSON.stringify(l,null,2)),l=U4e(l.reverse(),t.get(e.fromCluster).node).reverse(),c=!0);let f=l.filter(I=>!Number.isNaN(I.y));f=CTt(f);let p=$R;switch(p=qH,e.curve){case"linear":p=qH;break;case"basis":p=$R;break;case"cardinal":p=lke;break;case"bumpX":p=ike;break;case"bumpY":p=rke;break;case"catmullRom":p=uke;break;case"monotoneX":p=mke;break;case"monotoneY":p=Tke;break;case"natural":p=_ke;break;case"step":p=vke;break;case"stepAfter":p=wke;break;case"stepBefore":p=yke;break;default:p=$R}const{x:g,y:m}=ymt(e),T=G7t().x(g).y(m).curve(p);let b;switch(e.thickness){case"normal":b="edge-thickness-normal";break;case"thick":b="edge-thickness-thick";break;case"invisible":b="edge-thickness-invisible";break;default:b="edge-thickness-normal"}switch(e.pattern){case"solid":b+=" edge-pattern-solid";break;case"dotted":b+=" edge-pattern-dotted";break;case"dashed":b+=" edge-pattern-dashed";break;default:b+=" edge-pattern-solid"}let v,_=T(f);const w=Array.isArray(e.style)?e.style:e.style?[e.style]:[];let y=w.find(I=>I==null?void 0:I.startsWith("stroke:"));if(e.look==="handDrawn"){const I=Er.svg(n);Object.assign([],f);const O=I.path(_,{roughness:.3,seed:o});b+=" transition",v=Zo(O).select("path").attr("id",e.id).attr("class"," "+b+(e.classes?" "+e.classes:"")).attr("style",w?w.reduce((N,R)=>N+";"+R,""):"");let k=v.attr("d");v.attr("d",k),n.node().appendChild(v.node())}else{const I=d.join(";"),O=w?w.reduce((R,H)=>R+H+";",""):"";let k="";e.animate&&(k=" edge-animation-fast"),e.animation&&(k=" edge-animation-"+e.animation);const N=I?I+";"+O+";":O;v=n.append("path").attr("d",_).attr("id",e.id).attr("class"," "+b+(e.classes?" "+e.classes:"")+(k??"")).attr("style",N),y=(E=N.match(/stroke:([^;]+)/))==null?void 0:E[1]}let C="";(Ea().flowchart.arrowMarkerAbsolute||Ea().state.arrowMarkerAbsolute)&&(C=zSe(!0)),Un.info("arrowTypeStart",e.arrowTypeStart),Un.info("arrowTypeEnd",e.arrowTypeEnd),TTt(v,e,C,a,i,y);const x=Math.floor(l.length/2),S=l[x];zf.isLabelCoordinateInPath(S,v.attr("d"))||(c=!0);let L={};return c&&(L.updatedPath=l),L.originalPath=e.points,L},"insertEdge"),xTt=de((n,e,t,i)=>{e.forEach(r=>{VTt[r](n,t,i)})},"insertMarkers"),STt=de((n,e,t)=>{Un.trace("Making markers for ",t),n.append("defs").append("marker").attr("id",t+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),n.append("defs").append("marker").attr("id",t+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),LTt=de((n,e,t)=>{n.append("defs").append("marker").attr("id",t+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),n.append("defs").append("marker").attr("id",t+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),ETt=de((n,e,t)=>{n.append("defs").append("marker").attr("id",t+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),n.append("defs").append("marker").attr("id",t+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),kTt=de((n,e,t)=>{n.append("defs").append("marker").attr("id",t+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),n.append("defs").append("marker").attr("id",t+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),ATt=de((n,e,t)=>{n.append("defs").append("marker").attr("id",t+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),n.append("defs").append("marker").attr("id",t+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),ITt=de((n,e,t)=>{n.append("marker").attr("id",t+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),n.append("marker").attr("id",t+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),DTt=de((n,e,t)=>{n.append("marker").attr("id",t+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),n.append("marker").attr("id",t+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),MTt=de((n,e,t)=>{n.append("marker").attr("id",t+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),n.append("marker").attr("id",t+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),OTt=de((n,e,t)=>{n.append("defs").append("marker").attr("id",t+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),NTt=de((n,e,t)=>{n.append("defs").append("marker").attr("id",t+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),n.append("defs").append("marker").attr("id",t+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),RTt=de((n,e,t)=>{const i=n.append("defs").append("marker").attr("id",t+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");const r=n.append("defs").append("marker").attr("id",t+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");r.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),r.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),PTt=de((n,e,t)=>{n.append("defs").append("marker").attr("id",t+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),n.append("defs").append("marker").attr("id",t+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),HTt=de((n,e,t)=>{const i=n.append("defs").append("marker").attr("id",t+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const r=n.append("defs").append("marker").attr("id",t+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");r.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),r.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),FTt=de((n,e,t)=>{n.append("defs").append("marker").attr("id",t+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
433
433
  L20,10
434
434
  M20,10
435
- L0,20`)},"requirement_arrow"),BTt=de((n,e,t)=>{const i=n.append("defs").append("marker").attr("id",t+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),VTt={extension:STt,composition:LTt,aggregation:ETt,dependency:kTt,lollipop:ATt,point:ITt,circle:DTt,cross:MTt,barb:OTt,only_one:NTt,zero_or_one:RTt,one_or_more:PTt,zero_or_more:HTt,requirement_arrow:FTt,requirement_contains:BTt},jTt=xTt,zTt={common:WC,getConfig:ah,insertCluster:X9t,insertEdge:QTt,insertEdgeLabel:_Tt,insertMarkers:jTt,insertNode:LIe,interpolateToCurve:Qle,labelHelper:ks,log:Un,positionEdgeLabel:vTt},sk={},kIe=de(n=>{for(const e of n)sk[e.name]=e},"registerLayoutLoaders"),WTt=de(()=>{kIe([{name:"dagre",loader:de(async()=>await Ae(()=>import("./dagre-2BBEFEWP-D2XFAJFU.js"),__vite__mapDeps([0,1,2,3,4,5])),"loader")}])},"registerDefaultLayoutLoaders");WTt();var kmn=de(async(n,e)=>{if(!(n.layoutAlgorithm in sk))throw new Error(`Unknown layout algorithm: ${n.layoutAlgorithm}`);const t=sk[n.layoutAlgorithm];return(await t.loader()).render(n,e,zTt,{algorithm:t.algorithm})},"render"),Amn=de((n="",{fallback:e="dagre"}={})=>{if(n in sk)return n;if(e in sk)return Un.warn(`Layout algorithm ${n} is not registered. Using ${e} as fallback.`),e;throw new Error(`Both layout algorithms ${n} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm"),q4e={name:"mermaid",version:"11.10.0",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.0.4","@iconify/utils":"^2.1.33","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.11",dayjs:"^1.11.13",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^16.0.0",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.2","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.0",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.0.2",jison:"^0.4.18","js-base64":"^3.7.7",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.2",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.10","type-fest":"^4.35.0",typedoc:"^0.27.8","typedoc-plugin-markdown":"^4.4.2",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.0.2","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}},UTt=de(n=>{var r;const{securityLevel:e}=Ea();let t=Zo("body");if(e==="sandbox"){const a=((r=Zo(`#i${n}`).node())==null?void 0:r.contentDocument)??document;t=Zo(a.body)}return t.select(`#${n}`)},"selectSvgElement"),AIe="comm",IIe="rule",DIe="decl",$Tt="@import",qTt="@namespace",ZTt="@keyframes",GTt="@layer",MIe=Math.abs,zle=String.fromCharCode;function OIe(n){return n.trim()}function KR(n,e,t){return n.replace(e,t)}function KTt(n,e,t){return n.indexOf(e,t)}function dy(n,e){return n.charCodeAt(e)|0}function yw(n,e,t){return n.slice(e,t)}function x3(n){return n.length}function YTt(n){return n.length}function lO(n,e){return e.push(n),n}var Wj=1,ww=1,NIe=0,K0=0,eu=0,qC="";function Wle(n,e,t,i,r,s,a,o){return{value:n,root:e,parent:t,type:i,props:r,children:s,line:Wj,column:ww,length:a,return:"",siblings:o}}function XTt(){return eu}function JTt(){return eu=K0>0?dy(qC,--K0):0,ww--,eu===10&&(ww=1,Wj--),eu}function sp(){return eu=K0<NIe?dy(qC,K0++):0,ww++,eu===10&&(ww=1,Wj++),eu}function _6(){return dy(qC,K0)}function YR(){return K0}function Uj(n,e){return yw(qC,n,e)}function ok(n){switch(n){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ebt(n){return Wj=ww=1,NIe=x3(qC=n),K0=0,[]}function tbt(n){return qC="",n}function EZ(n){return OIe(Uj(K0-1,jJ(n===91?n+2:n===40?n+1:n)))}function nbt(n){for(;(eu=_6())&&eu<33;)sp();return ok(n)>2||ok(eu)>3?"":" "}function ibt(n,e){for(;--e&&sp()&&!(eu<48||eu>102||eu>57&&eu<65||eu>70&&eu<97););return Uj(n,YR()+(e<6&&_6()==32&&sp()==32))}function jJ(n){for(;sp();)switch(eu){case n:return K0;case 34:case 39:n!==34&&n!==39&&jJ(eu);break;case 40:n===41&&jJ(n);break;case 92:sp();break}return K0}function rbt(n,e){for(;sp()&&n+eu!==57;)if(n+eu===84&&_6()===47)break;return"/*"+Uj(e,K0-1)+"*"+zle(n===47?n:sp())}function sbt(n){for(;!ok(_6());)sp();return Uj(n,K0)}function obt(n){return tbt(XR("",null,null,null,[""],n=ebt(n),0,[0],n))}function XR(n,e,t,i,r,s,a,o,l){for(var c=0,u=0,h=a,d=0,f=0,p=0,g=1,m=1,T=1,b=0,v="",_=r,w=s,y=i,C=v;m;)switch(p=b,b=sp()){case 40:if(p!=108&&dy(C,h-1)==58){KTt(C+=KR(EZ(b),"&","&\f"),"&\f",MIe(c?o[c-1]:0))!=-1&&(T=-1);break}case 34:case 39:case 91:C+=EZ(b);break;case 9:case 10:case 13:case 32:C+=nbt(p);break;case 92:C+=ibt(YR()-1,7);continue;case 47:switch(_6()){case 42:case 47:lO(abt(rbt(sp(),YR()),e,t,l),l),(ok(p||1)==5||ok(_6()||1)==5)&&x3(C)&&yw(C,-1,void 0)!==" "&&(C+=" ");break;default:C+="/"}break;case 123*g:o[c++]=x3(C)*T;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:T==-1&&(C=KR(C,/\f/g,"")),f>0&&(x3(C)-h||g===0&&p===47)&&lO(f>32?G4e(C+";",i,t,h-1,l):G4e(KR(C," ","")+";",i,t,h-2,l),l);break;case 59:C+=";";default:if(lO(y=Z4e(C,e,t,c,u,r,o,v,_=[],w=[],h,s),s),b===123)if(u===0)XR(C,e,y,y,_,s,h,o,w);else{switch(d){case 99:if(dy(C,3)===110)break;case 108:if(dy(C,2)===97)break;default:u=0;case 100:case 109:case 115:}u?XR(n,y,y,i&&lO(Z4e(n,y,y,0,0,r,o,v,r,_=[],h,w),w),r,w,h,o,i?_:w):XR(C,y,y,y,[""],w,0,o,w)}}c=u=f=0,g=T=1,v=C="",h=a;break;case 58:h=1+x3(C),f=p;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&JTt()==125)continue}switch(C+=zle(b),b*g){case 38:T=u>0?1:(C+="\f",-1);break;case 44:o[c++]=(x3(C)-1)*T,T=1;break;case 64:_6()===45&&(C+=EZ(sp())),d=_6(),u=h=x3(v=C+=sbt(YR())),b++;break;case 45:p===45&&x3(C)==2&&(g=0)}}return s}function Z4e(n,e,t,i,r,s,a,o,l,c,u,h){for(var d=r-1,f=r===0?s:[""],p=YTt(f),g=0,m=0,T=0;g<i;++g)for(var b=0,v=yw(n,d+1,d=MIe(m=a[g])),_=n;b<p;++b)(_=OIe(m>0?f[b]+" "+v:KR(v,/&\f/g,f[b])))&&(l[T++]=_);return Wle(n,e,t,r===0?IIe:o,l,c,u,h)}function abt(n,e,t,i){return Wle(n,e,t,AIe,zle(XTt()),yw(n,2,-2),0,i)}function G4e(n,e,t,i,r){return Wle(n,e,t,DIe,yw(n,0,i),yw(n,i+1,-1),i,r)}function zJ(n,e){for(var t="",i=0;i<n.length;i++)t+=e(n[i],i,n,e)||"";return t}function lbt(n,e,t,i){switch(n.type){case GTt:if(n.children.length)break;case $Tt:case qTt:case DIe:return n.return=n.return||n.value;case AIe:return"";case ZTt:return n.return=n.value+"{"+zJ(n.children,i)+"}";case IIe:if(!x3(n.value=n.props.join(",")))return""}return x3(t=zJ(n.children,i))?n.return=n.value+"{"+t+"}":""}var RIe="c4",cbt=de(n=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(n),"detector"),ubt=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./c4Diagram-AAMF2YG6-v1fpnkx2.js");return{diagram:e}},__vite__mapDeps([6,7]));return{id:RIe,diagram:n}},"loader"),dbt={id:RIe,detector:cbt,loader:ubt},hbt=dbt,PIe="flowchart",fbt=de((n,e)=>{var t,i;return((t=e==null?void 0:e.flowchart)==null?void 0:t.defaultRenderer)==="dagre-wrapper"||((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(n)},"detector"),pbt=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./flowDiagram-THRYKUMA-D3gqWW_d.js");return{diagram:e}},__vite__mapDeps([8,9,10,11,12]));return{id:PIe,diagram:n}},"loader"),gbt={id:PIe,detector:fbt,loader:pbt},mbt=gbt,HIe="flowchart-v2",Tbt=de((n,e)=>{var t,i,r;return((t=e==null?void 0:e.flowchart)==null?void 0:t.defaultRenderer)==="dagre-d3"?!1:(((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk"&&(e.layout="elk"),/^\s*graph/.test(n)&&((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(n))},"detector"),bbt=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./flowDiagram-THRYKUMA-D3gqWW_d.js");return{diagram:e}},__vite__mapDeps([8,9,10,11,12]));return{id:HIe,diagram:n}},"loader"),_bt={id:HIe,detector:Tbt,loader:bbt},vbt=_bt,FIe="er",ybt=de(n=>/^\s*erDiagram/.test(n),"detector"),wbt=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./erDiagram-HZWUO2LU-DIXDxlDs.js");return{diagram:e}},__vite__mapDeps([13,10,11,12]));return{id:FIe,diagram:n}},"loader"),Cbt={id:FIe,detector:ybt,loader:wbt},Qbt=Cbt,BIe="gitGraph",xbt=de(n=>/^\s*gitGraph/.test(n),"detector"),Sbt=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./gitGraphDiagram-OJR772UL-DRxxeQJN.js");return{diagram:e}},__vite__mapDeps([14,15,16,17,2,4,5]));return{id:BIe,diagram:n}},"loader"),Lbt={id:BIe,detector:xbt,loader:Sbt},Ebt=Lbt,VIe="gantt",kbt=de(n=>/^\s*gantt/.test(n),"detector"),Abt=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./ganttDiagram-WV7ZQ7D5-C-2v9gZQ.js");return{diagram:e}},__vite__mapDeps([18,19,20,21]));return{id:VIe,diagram:n}},"loader"),Ibt={id:VIe,detector:kbt,loader:Abt},Dbt=Ibt,jIe="info",Mbt=de(n=>/^\s*info/.test(n),"detector"),Obt=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./infoDiagram-6WOFNB3A-DVTxejFg.js");return{diagram:e}},__vite__mapDeps([22,17,2,4,5]));return{id:jIe,diagram:n}},"loader"),Nbt={id:jIe,detector:Mbt,loader:Obt},zIe="pie",Rbt=de(n=>/^\s*pie/.test(n),"detector"),Pbt=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./pieDiagram-DBDJKBY4-CtSiPn-U.js");return{diagram:e}},__vite__mapDeps([23,15,17,2,4,5,24,25,20]));return{id:zIe,diagram:n}},"loader"),Hbt={id:zIe,detector:Rbt,loader:Pbt},WIe="quadrantChart",Fbt=de(n=>/^\s*quadrantChart/.test(n),"detector"),Bbt=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./quadrantDiagram-YPSRARAO-fpN7laT8.js");return{diagram:e}},__vite__mapDeps([26,19,20,21]));return{id:WIe,diagram:n}},"loader"),Vbt={id:WIe,detector:Fbt,loader:Bbt},jbt=Vbt,UIe="xychart",zbt=de(n=>/^\s*xychart(-beta)?/.test(n),"detector"),Wbt=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./xychartDiagram-FDP5SA34-DlWJl-YC.js");return{diagram:e}},__vite__mapDeps([27,20,25,19,21]));return{id:UIe,diagram:n}},"loader"),Ubt={id:UIe,detector:zbt,loader:Wbt},$bt=Ubt,$Ie="requirement",qbt=de(n=>/^\s*requirement(Diagram)?/.test(n),"detector"),Zbt=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./requirementDiagram-EGVEC5DT-C2aVrzw7.js");return{diagram:e}},__vite__mapDeps([28,10,11]));return{id:$Ie,diagram:n}},"loader"),Gbt={id:$Ie,detector:qbt,loader:Zbt},Kbt=Gbt,qIe="sequence",Ybt=de(n=>/^\s*sequenceDiagram/.test(n),"detector"),Xbt=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./sequenceDiagram-WFGC7UMF-BS5S-iIx.js");return{diagram:e}},__vite__mapDeps([29,7,16]));return{id:qIe,diagram:n}},"loader"),Jbt={id:qIe,detector:Ybt,loader:Xbt},e_t=Jbt,ZIe="class",t_t=de((n,e)=>{var t;return((t=e==null?void 0:e.class)==null?void 0:t.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(n)},"detector"),n_t=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./classDiagram-3BZAVTQC-CqX7Tp25.js");return{diagram:e}},__vite__mapDeps([30,31,9,10,11]));return{id:ZIe,diagram:n}},"loader"),i_t={id:ZIe,detector:t_t,loader:n_t},r_t=i_t,GIe="classDiagram",s_t=de((n,e)=>{var t;return/^\s*classDiagram/.test(n)&&((t=e==null?void 0:e.class)==null?void 0:t.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(n)},"detector"),o_t=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./classDiagram-v2-QTMF73CY-CqX7Tp25.js");return{diagram:e}},__vite__mapDeps([32,31,9,10,11]));return{id:GIe,diagram:n}},"loader"),a_t={id:GIe,detector:s_t,loader:o_t},l_t=a_t,KIe="state",c_t=de((n,e)=>{var t;return((t=e==null?void 0:e.state)==null?void 0:t.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(n)},"detector"),u_t=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./stateDiagram-UUKSUZ4H-Cb3qH3Cy.js");return{diagram:e}},__vite__mapDeps([33,34,10,11,1,2,3,4]));return{id:KIe,diagram:n}},"loader"),d_t={id:KIe,detector:c_t,loader:u_t},h_t=d_t,YIe="stateDiagram",f_t=de((n,e)=>{var t;return!!(/^\s*stateDiagram-v2/.test(n)||/^\s*stateDiagram/.test(n)&&((t=e==null?void 0:e.state)==null?void 0:t.defaultRenderer)==="dagre-wrapper")},"detector"),p_t=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./stateDiagram-v2-EYPG3UTE-BzEwA6K7.js");return{diagram:e}},__vite__mapDeps([35,34,10,11]));return{id:YIe,diagram:n}},"loader"),g_t={id:YIe,detector:f_t,loader:p_t},m_t=g_t,XIe="journey",T_t=de(n=>/^\s*journey/.test(n),"detector"),b_t=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./journeyDiagram-FFXJYRFH-D4P4oZdc.js");return{diagram:e}},__vite__mapDeps([36,7,9,24]));return{id:XIe,diagram:n}},"loader"),__t={id:XIe,detector:T_t,loader:b_t},v_t=__t,y_t=de((n,e,t)=>{Un.debug(`rendering svg for syntax error
436
- `);const i=UTt(e),r=i.append("g");i.attr("viewBox","0 0 2412 512"),WSe(i,100,512,!0),r.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),r.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),r.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),r.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),r.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),r.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),r.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),r.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${t}`)},"draw"),JIe={draw:y_t},w_t=JIe,C_t={db:{},renderer:JIe,parser:{parse:de(()=>{},"parse")}},Q_t=C_t,eDe="flowchart-elk",x_t=de((n,e={})=>{var t;return/^\s*flowchart-elk/.test(n)||/^\s*(flowchart|graph)/.test(n)&&((t=e==null?void 0:e.flowchart)==null?void 0:t.defaultRenderer)==="elk"?(e.layout="elk",!0):!1},"detector"),S_t=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./flowDiagram-THRYKUMA-D3gqWW_d.js");return{diagram:e}},__vite__mapDeps([8,9,10,11,12]));return{id:eDe,diagram:n}},"loader"),L_t={id:eDe,detector:x_t,loader:S_t},E_t=L_t,tDe="timeline",k_t=de(n=>/^\s*timeline/.test(n),"detector"),A_t=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./timeline-definition-3HZDQTIS-DaBjiVZ7.js");return{diagram:e}},__vite__mapDeps([37,24]));return{id:tDe,diagram:n}},"loader"),I_t={id:tDe,detector:k_t,loader:A_t},D_t=I_t,nDe="mindmap",M_t=de(n=>/^\s*mindmap/.test(n),"detector"),O_t=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./mindmap-definition-LNHGMQRG-DpNkhLNM.js");return{diagram:e}},__vite__mapDeps([38,39]));return{id:nDe,diagram:n}},"loader"),N_t={id:nDe,detector:M_t,loader:O_t},R_t=N_t,iDe="kanban",P_t=de(n=>/^\s*kanban/.test(n),"detector"),H_t=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./kanban-definition-KOZQBZVT-D7tMBarf.js");return{diagram:e}},__vite__mapDeps([40,9]));return{id:iDe,diagram:n}},"loader"),F_t={id:iDe,detector:P_t,loader:H_t},B_t=F_t,rDe="sankey",V_t=de(n=>/^\s*sankey(-beta)?/.test(n),"detector"),j_t=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./sankeyDiagram-HRAUVNP4-4oZDeCaD.js");return{diagram:e}},__vite__mapDeps([41,25,20]));return{id:rDe,diagram:n}},"loader"),z_t={id:rDe,detector:V_t,loader:j_t},W_t=z_t,sDe="packet",U_t=de(n=>/^\s*packet(-beta)?/.test(n),"detector"),$_t=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./diagram-GUPCWM2R-C_bP7Q1P.js");return{diagram:e}},__vite__mapDeps([42,15,17,2,4,5]));return{id:sDe,diagram:n}},"loader"),q_t={id:sDe,detector:U_t,loader:$_t},oDe="radar",Z_t=de(n=>/^\s*radar-beta/.test(n),"detector"),G_t=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./diagram-RP2FKANI-BSi4bGof.js");return{diagram:e}},__vite__mapDeps([43,15,17,2,4,5]));return{id:oDe,diagram:n}},"loader"),K_t={id:oDe,detector:Z_t,loader:G_t},aDe="block",Y_t=de(n=>/^\s*block(-beta)?/.test(n),"detector"),X_t=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./blockDiagram-ZYB65J3Q-D0Ol2jlv.js");return{diagram:e}},__vite__mapDeps([44,9,5,1,2,12]));return{id:aDe,diagram:n}},"loader"),J_t={id:aDe,detector:Y_t,loader:X_t},evt=J_t,lDe="architecture",tvt=de(n=>/^\s*architecture/.test(n),"detector"),nvt=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./architectureDiagram-KFL7JDKH-DJeBx9P6.js");return{diagram:e}},__vite__mapDeps([45,15,17,2,4,5,39]));return{id:lDe,diagram:n}},"loader"),ivt={id:lDe,detector:tvt,loader:nvt},rvt=ivt,cDe="treemap",svt=de(n=>/^\s*treemap/.test(n),"detector"),ovt=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./diagram-4IRLE6MV-3Ii0VW6l.js");return{diagram:e}},__vite__mapDeps([46,11,15,17,2,4,5,21,25,20]));return{id:cDe,diagram:n}},"loader"),avt={id:cDe,detector:svt,loader:ovt},K4e=!1,$j=de(()=>{K4e||(K4e=!0,OH("error",Q_t,n=>n.toLowerCase().trim()==="error"),OH("---",{db:{clear:de(()=>{},"clear")},styles:{},renderer:{draw:de(()=>{},"draw")},parser:{parse:de(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:de(()=>null,"init")},n=>n.toLowerCase().trimStart().startsWith("---")),iJ(E_t,R_t,rvt),iJ(hbt,B_t,l_t,r_t,Qbt,Dbt,Nbt,Hbt,Kbt,e_t,vbt,mbt,D_t,Ebt,m_t,h_t,v_t,jbt,W_t,q_t,$bt,evt,K_t,avt))},"addDiagrams"),lvt=de(async()=>{Un.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(OT).map(async([t,{detector:i,loader:r}])=>{if(r)try{aJ(t)}catch{try{const{diagram:s,id:a}=await r();OH(a,s,i)}catch(s){throw Un.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete OT[t],s}}}))).filter(t=>t.status==="rejected");if(e.length>0){Un.error(`Failed to load ${e.length} external diagrams`);for(const t of e)Un.error(t);throw new Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams"),cvt="graphics-document document";function uDe(n,e){n.attr("role",cvt),e!==""&&n.attr("aria-roledescription",e)}de(uDe,"setA11yDiagramInfo");function dDe(n,e,t,i){if(n.insert!==void 0){if(t){const r=`chart-desc-${i}`;n.attr("aria-describedby",r),n.insert("desc",":first-child").attr("id",r).text(t)}if(e){const r=`chart-title-${i}`;n.attr("aria-labelledby",r),n.insert("title",":first-child").attr("id",r).text(e)}}}de(dDe,"addSVGa11yTitleDescription");var CT,WJ=(CT=class{constructor(e,t,i,r,s){this.type=e,this.text=t,this.db=i,this.parser=r,this.renderer=s}static async fromText(e,t={}){var c,u;const i=ah(),r=Yae(e,i);e=y8t(e)+`
435
+ L0,20`)},"requirement_arrow"),BTt=de((n,e,t)=>{const i=n.append("defs").append("marker").attr("id",t+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),VTt={extension:STt,composition:LTt,aggregation:ETt,dependency:kTt,lollipop:ATt,point:ITt,circle:DTt,cross:MTt,barb:OTt,only_one:NTt,zero_or_one:RTt,one_or_more:PTt,zero_or_more:HTt,requirement_arrow:FTt,requirement_contains:BTt},jTt=xTt,zTt={common:WC,getConfig:ah,insertCluster:X9t,insertEdge:QTt,insertEdgeLabel:_Tt,insertMarkers:jTt,insertNode:LIe,interpolateToCurve:Qle,labelHelper:ks,log:Un,positionEdgeLabel:vTt},sk={},kIe=de(n=>{for(const e of n)sk[e.name]=e},"registerLayoutLoaders"),WTt=de(()=>{kIe([{name:"dagre",loader:de(async()=>await Ae(()=>import("./dagre-2BBEFEWP-BdLL3xYf.js"),__vite__mapDeps([0,1,2,3,4,5])),"loader")}])},"registerDefaultLayoutLoaders");WTt();var kmn=de(async(n,e)=>{if(!(n.layoutAlgorithm in sk))throw new Error(`Unknown layout algorithm: ${n.layoutAlgorithm}`);const t=sk[n.layoutAlgorithm];return(await t.loader()).render(n,e,zTt,{algorithm:t.algorithm})},"render"),Amn=de((n="",{fallback:e="dagre"}={})=>{if(n in sk)return n;if(e in sk)return Un.warn(`Layout algorithm ${n} is not registered. Using ${e} as fallback.`),e;throw new Error(`Both layout algorithms ${n} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm"),q4e={name:"mermaid",version:"11.10.0",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.0.4","@iconify/utils":"^2.1.33","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.11",dayjs:"^1.11.13",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^16.0.0",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.2","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.0",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.0.2",jison:"^0.4.18","js-base64":"^3.7.7",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.2",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.10","type-fest":"^4.35.0",typedoc:"^0.27.8","typedoc-plugin-markdown":"^4.4.2",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.0.2","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}},UTt=de(n=>{var r;const{securityLevel:e}=Ea();let t=Zo("body");if(e==="sandbox"){const a=((r=Zo(`#i${n}`).node())==null?void 0:r.contentDocument)??document;t=Zo(a.body)}return t.select(`#${n}`)},"selectSvgElement"),AIe="comm",IIe="rule",DIe="decl",$Tt="@import",qTt="@namespace",ZTt="@keyframes",GTt="@layer",MIe=Math.abs,zle=String.fromCharCode;function OIe(n){return n.trim()}function KR(n,e,t){return n.replace(e,t)}function KTt(n,e,t){return n.indexOf(e,t)}function dy(n,e){return n.charCodeAt(e)|0}function yw(n,e,t){return n.slice(e,t)}function x3(n){return n.length}function YTt(n){return n.length}function lO(n,e){return e.push(n),n}var Wj=1,ww=1,NIe=0,K0=0,eu=0,qC="";function Wle(n,e,t,i,r,s,a,o){return{value:n,root:e,parent:t,type:i,props:r,children:s,line:Wj,column:ww,length:a,return:"",siblings:o}}function XTt(){return eu}function JTt(){return eu=K0>0?dy(qC,--K0):0,ww--,eu===10&&(ww=1,Wj--),eu}function sp(){return eu=K0<NIe?dy(qC,K0++):0,ww++,eu===10&&(ww=1,Wj++),eu}function _6(){return dy(qC,K0)}function YR(){return K0}function Uj(n,e){return yw(qC,n,e)}function ok(n){switch(n){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ebt(n){return Wj=ww=1,NIe=x3(qC=n),K0=0,[]}function tbt(n){return qC="",n}function EZ(n){return OIe(Uj(K0-1,jJ(n===91?n+2:n===40?n+1:n)))}function nbt(n){for(;(eu=_6())&&eu<33;)sp();return ok(n)>2||ok(eu)>3?"":" "}function ibt(n,e){for(;--e&&sp()&&!(eu<48||eu>102||eu>57&&eu<65||eu>70&&eu<97););return Uj(n,YR()+(e<6&&_6()==32&&sp()==32))}function jJ(n){for(;sp();)switch(eu){case n:return K0;case 34:case 39:n!==34&&n!==39&&jJ(eu);break;case 40:n===41&&jJ(n);break;case 92:sp();break}return K0}function rbt(n,e){for(;sp()&&n+eu!==57;)if(n+eu===84&&_6()===47)break;return"/*"+Uj(e,K0-1)+"*"+zle(n===47?n:sp())}function sbt(n){for(;!ok(_6());)sp();return Uj(n,K0)}function obt(n){return tbt(XR("",null,null,null,[""],n=ebt(n),0,[0],n))}function XR(n,e,t,i,r,s,a,o,l){for(var c=0,u=0,h=a,d=0,f=0,p=0,g=1,m=1,T=1,b=0,v="",_=r,w=s,y=i,C=v;m;)switch(p=b,b=sp()){case 40:if(p!=108&&dy(C,h-1)==58){KTt(C+=KR(EZ(b),"&","&\f"),"&\f",MIe(c?o[c-1]:0))!=-1&&(T=-1);break}case 34:case 39:case 91:C+=EZ(b);break;case 9:case 10:case 13:case 32:C+=nbt(p);break;case 92:C+=ibt(YR()-1,7);continue;case 47:switch(_6()){case 42:case 47:lO(abt(rbt(sp(),YR()),e,t,l),l),(ok(p||1)==5||ok(_6()||1)==5)&&x3(C)&&yw(C,-1,void 0)!==" "&&(C+=" ");break;default:C+="/"}break;case 123*g:o[c++]=x3(C)*T;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:T==-1&&(C=KR(C,/\f/g,"")),f>0&&(x3(C)-h||g===0&&p===47)&&lO(f>32?G4e(C+";",i,t,h-1,l):G4e(KR(C," ","")+";",i,t,h-2,l),l);break;case 59:C+=";";default:if(lO(y=Z4e(C,e,t,c,u,r,o,v,_=[],w=[],h,s),s),b===123)if(u===0)XR(C,e,y,y,_,s,h,o,w);else{switch(d){case 99:if(dy(C,3)===110)break;case 108:if(dy(C,2)===97)break;default:u=0;case 100:case 109:case 115:}u?XR(n,y,y,i&&lO(Z4e(n,y,y,0,0,r,o,v,r,_=[],h,w),w),r,w,h,o,i?_:w):XR(C,y,y,y,[""],w,0,o,w)}}c=u=f=0,g=T=1,v=C="",h=a;break;case 58:h=1+x3(C),f=p;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&JTt()==125)continue}switch(C+=zle(b),b*g){case 38:T=u>0?1:(C+="\f",-1);break;case 44:o[c++]=(x3(C)-1)*T,T=1;break;case 64:_6()===45&&(C+=EZ(sp())),d=_6(),u=h=x3(v=C+=sbt(YR())),b++;break;case 45:p===45&&x3(C)==2&&(g=0)}}return s}function Z4e(n,e,t,i,r,s,a,o,l,c,u,h){for(var d=r-1,f=r===0?s:[""],p=YTt(f),g=0,m=0,T=0;g<i;++g)for(var b=0,v=yw(n,d+1,d=MIe(m=a[g])),_=n;b<p;++b)(_=OIe(m>0?f[b]+" "+v:KR(v,/&\f/g,f[b])))&&(l[T++]=_);return Wle(n,e,t,r===0?IIe:o,l,c,u,h)}function abt(n,e,t,i){return Wle(n,e,t,AIe,zle(XTt()),yw(n,2,-2),0,i)}function G4e(n,e,t,i,r){return Wle(n,e,t,DIe,yw(n,0,i),yw(n,i+1,-1),i,r)}function zJ(n,e){for(var t="",i=0;i<n.length;i++)t+=e(n[i],i,n,e)||"";return t}function lbt(n,e,t,i){switch(n.type){case GTt:if(n.children.length)break;case $Tt:case qTt:case DIe:return n.return=n.return||n.value;case AIe:return"";case ZTt:return n.return=n.value+"{"+zJ(n.children,i)+"}";case IIe:if(!x3(n.value=n.props.join(",")))return""}return x3(t=zJ(n.children,i))?n.return=n.value+"{"+t+"}":""}var RIe="c4",cbt=de(n=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(n),"detector"),ubt=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./c4Diagram-AAMF2YG6-B3WV-JGO.js");return{diagram:e}},__vite__mapDeps([6,7]));return{id:RIe,diagram:n}},"loader"),dbt={id:RIe,detector:cbt,loader:ubt},hbt=dbt,PIe="flowchart",fbt=de((n,e)=>{var t,i;return((t=e==null?void 0:e.flowchart)==null?void 0:t.defaultRenderer)==="dagre-wrapper"||((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(n)},"detector"),pbt=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./flowDiagram-THRYKUMA-BfELR1TN.js");return{diagram:e}},__vite__mapDeps([8,9,10,11,12]));return{id:PIe,diagram:n}},"loader"),gbt={id:PIe,detector:fbt,loader:pbt},mbt=gbt,HIe="flowchart-v2",Tbt=de((n,e)=>{var t,i,r;return((t=e==null?void 0:e.flowchart)==null?void 0:t.defaultRenderer)==="dagre-d3"?!1:(((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk"&&(e.layout="elk"),/^\s*graph/.test(n)&&((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(n))},"detector"),bbt=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./flowDiagram-THRYKUMA-BfELR1TN.js");return{diagram:e}},__vite__mapDeps([8,9,10,11,12]));return{id:HIe,diagram:n}},"loader"),_bt={id:HIe,detector:Tbt,loader:bbt},vbt=_bt,FIe="er",ybt=de(n=>/^\s*erDiagram/.test(n),"detector"),wbt=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./erDiagram-HZWUO2LU-CLYl94DE.js");return{diagram:e}},__vite__mapDeps([13,10,11,12]));return{id:FIe,diagram:n}},"loader"),Cbt={id:FIe,detector:ybt,loader:wbt},Qbt=Cbt,BIe="gitGraph",xbt=de(n=>/^\s*gitGraph/.test(n),"detector"),Sbt=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./gitGraphDiagram-OJR772UL-B2Wp36xV.js");return{diagram:e}},__vite__mapDeps([14,15,16,17,2,4,5]));return{id:BIe,diagram:n}},"loader"),Lbt={id:BIe,detector:xbt,loader:Sbt},Ebt=Lbt,VIe="gantt",kbt=de(n=>/^\s*gantt/.test(n),"detector"),Abt=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./ganttDiagram-WV7ZQ7D5-Bw19caXp.js");return{diagram:e}},__vite__mapDeps([18,19,20,21]));return{id:VIe,diagram:n}},"loader"),Ibt={id:VIe,detector:kbt,loader:Abt},Dbt=Ibt,jIe="info",Mbt=de(n=>/^\s*info/.test(n),"detector"),Obt=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./infoDiagram-6WOFNB3A-D1P6rKbs.js");return{diagram:e}},__vite__mapDeps([22,17,2,4,5]));return{id:jIe,diagram:n}},"loader"),Nbt={id:jIe,detector:Mbt,loader:Obt},zIe="pie",Rbt=de(n=>/^\s*pie/.test(n),"detector"),Pbt=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./pieDiagram-DBDJKBY4-C_nsodWG.js");return{diagram:e}},__vite__mapDeps([23,15,17,2,4,5,24,25,20]));return{id:zIe,diagram:n}},"loader"),Hbt={id:zIe,detector:Rbt,loader:Pbt},WIe="quadrantChart",Fbt=de(n=>/^\s*quadrantChart/.test(n),"detector"),Bbt=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./quadrantDiagram-YPSRARAO-DApXzXyD.js");return{diagram:e}},__vite__mapDeps([26,19,20,21]));return{id:WIe,diagram:n}},"loader"),Vbt={id:WIe,detector:Fbt,loader:Bbt},jbt=Vbt,UIe="xychart",zbt=de(n=>/^\s*xychart(-beta)?/.test(n),"detector"),Wbt=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./xychartDiagram-FDP5SA34-BvJlNneq.js");return{diagram:e}},__vite__mapDeps([27,20,25,19,21]));return{id:UIe,diagram:n}},"loader"),Ubt={id:UIe,detector:zbt,loader:Wbt},$bt=Ubt,$Ie="requirement",qbt=de(n=>/^\s*requirement(Diagram)?/.test(n),"detector"),Zbt=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./requirementDiagram-EGVEC5DT-u3Jr1c40.js");return{diagram:e}},__vite__mapDeps([28,10,11]));return{id:$Ie,diagram:n}},"loader"),Gbt={id:$Ie,detector:qbt,loader:Zbt},Kbt=Gbt,qIe="sequence",Ybt=de(n=>/^\s*sequenceDiagram/.test(n),"detector"),Xbt=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./sequenceDiagram-WFGC7UMF-2hkaJ4an.js");return{diagram:e}},__vite__mapDeps([29,7,16]));return{id:qIe,diagram:n}},"loader"),Jbt={id:qIe,detector:Ybt,loader:Xbt},e_t=Jbt,ZIe="class",t_t=de((n,e)=>{var t;return((t=e==null?void 0:e.class)==null?void 0:t.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(n)},"detector"),n_t=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./classDiagram-3BZAVTQC-DC2D1o61.js");return{diagram:e}},__vite__mapDeps([30,31,9,10,11]));return{id:ZIe,diagram:n}},"loader"),i_t={id:ZIe,detector:t_t,loader:n_t},r_t=i_t,GIe="classDiagram",s_t=de((n,e)=>{var t;return/^\s*classDiagram/.test(n)&&((t=e==null?void 0:e.class)==null?void 0:t.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(n)},"detector"),o_t=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./classDiagram-v2-QTMF73CY-DC2D1o61.js");return{diagram:e}},__vite__mapDeps([32,31,9,10,11]));return{id:GIe,diagram:n}},"loader"),a_t={id:GIe,detector:s_t,loader:o_t},l_t=a_t,KIe="state",c_t=de((n,e)=>{var t;return((t=e==null?void 0:e.state)==null?void 0:t.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(n)},"detector"),u_t=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./stateDiagram-UUKSUZ4H-wJehzXeN.js");return{diagram:e}},__vite__mapDeps([33,34,10,11,1,2,3,4]));return{id:KIe,diagram:n}},"loader"),d_t={id:KIe,detector:c_t,loader:u_t},h_t=d_t,YIe="stateDiagram",f_t=de((n,e)=>{var t;return!!(/^\s*stateDiagram-v2/.test(n)||/^\s*stateDiagram/.test(n)&&((t=e==null?void 0:e.state)==null?void 0:t.defaultRenderer)==="dagre-wrapper")},"detector"),p_t=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./stateDiagram-v2-EYPG3UTE-BSNhmMZe.js");return{diagram:e}},__vite__mapDeps([35,34,10,11]));return{id:YIe,diagram:n}},"loader"),g_t={id:YIe,detector:f_t,loader:p_t},m_t=g_t,XIe="journey",T_t=de(n=>/^\s*journey/.test(n),"detector"),b_t=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./journeyDiagram-FFXJYRFH-Bz2eGQD1.js");return{diagram:e}},__vite__mapDeps([36,7,9,24]));return{id:XIe,diagram:n}},"loader"),__t={id:XIe,detector:T_t,loader:b_t},v_t=__t,y_t=de((n,e,t)=>{Un.debug(`rendering svg for syntax error
436
+ `);const i=UTt(e),r=i.append("g");i.attr("viewBox","0 0 2412 512"),WSe(i,100,512,!0),r.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),r.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),r.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),r.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),r.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),r.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),r.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),r.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${t}`)},"draw"),JIe={draw:y_t},w_t=JIe,C_t={db:{},renderer:JIe,parser:{parse:de(()=>{},"parse")}},Q_t=C_t,eDe="flowchart-elk",x_t=de((n,e={})=>{var t;return/^\s*flowchart-elk/.test(n)||/^\s*(flowchart|graph)/.test(n)&&((t=e==null?void 0:e.flowchart)==null?void 0:t.defaultRenderer)==="elk"?(e.layout="elk",!0):!1},"detector"),S_t=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./flowDiagram-THRYKUMA-BfELR1TN.js");return{diagram:e}},__vite__mapDeps([8,9,10,11,12]));return{id:eDe,diagram:n}},"loader"),L_t={id:eDe,detector:x_t,loader:S_t},E_t=L_t,tDe="timeline",k_t=de(n=>/^\s*timeline/.test(n),"detector"),A_t=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./timeline-definition-3HZDQTIS-DGZYlLIL.js");return{diagram:e}},__vite__mapDeps([37,24]));return{id:tDe,diagram:n}},"loader"),I_t={id:tDe,detector:k_t,loader:A_t},D_t=I_t,nDe="mindmap",M_t=de(n=>/^\s*mindmap/.test(n),"detector"),O_t=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./mindmap-definition-LNHGMQRG-BzbXC-47.js");return{diagram:e}},__vite__mapDeps([38,39]));return{id:nDe,diagram:n}},"loader"),N_t={id:nDe,detector:M_t,loader:O_t},R_t=N_t,iDe="kanban",P_t=de(n=>/^\s*kanban/.test(n),"detector"),H_t=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./kanban-definition-KOZQBZVT-BSCp431P.js");return{diagram:e}},__vite__mapDeps([40,9]));return{id:iDe,diagram:n}},"loader"),F_t={id:iDe,detector:P_t,loader:H_t},B_t=F_t,rDe="sankey",V_t=de(n=>/^\s*sankey(-beta)?/.test(n),"detector"),j_t=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./sankeyDiagram-HRAUVNP4-CFVhGSiA.js");return{diagram:e}},__vite__mapDeps([41,25,20]));return{id:rDe,diagram:n}},"loader"),z_t={id:rDe,detector:V_t,loader:j_t},W_t=z_t,sDe="packet",U_t=de(n=>/^\s*packet(-beta)?/.test(n),"detector"),$_t=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./diagram-GUPCWM2R-ByacznHI.js");return{diagram:e}},__vite__mapDeps([42,15,17,2,4,5]));return{id:sDe,diagram:n}},"loader"),q_t={id:sDe,detector:U_t,loader:$_t},oDe="radar",Z_t=de(n=>/^\s*radar-beta/.test(n),"detector"),G_t=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./diagram-RP2FKANI-uZXzQ0HO.js");return{diagram:e}},__vite__mapDeps([43,15,17,2,4,5]));return{id:oDe,diagram:n}},"loader"),K_t={id:oDe,detector:Z_t,loader:G_t},aDe="block",Y_t=de(n=>/^\s*block(-beta)?/.test(n),"detector"),X_t=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./blockDiagram-ZYB65J3Q-C50Mlz51.js");return{diagram:e}},__vite__mapDeps([44,9,5,1,2,12]));return{id:aDe,diagram:n}},"loader"),J_t={id:aDe,detector:Y_t,loader:X_t},evt=J_t,lDe="architecture",tvt=de(n=>/^\s*architecture/.test(n),"detector"),nvt=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./architectureDiagram-KFL7JDKH-ChuPt1SI.js");return{diagram:e}},__vite__mapDeps([45,15,17,2,4,5,39]));return{id:lDe,diagram:n}},"loader"),ivt={id:lDe,detector:tvt,loader:nvt},rvt=ivt,cDe="treemap",svt=de(n=>/^\s*treemap/.test(n),"detector"),ovt=de(async()=>{const{diagram:n}=await Ae(async()=>{const{diagram:e}=await import("./diagram-4IRLE6MV-Du7ZA7eP.js");return{diagram:e}},__vite__mapDeps([46,11,15,17,2,4,5,21,25,20]));return{id:cDe,diagram:n}},"loader"),avt={id:cDe,detector:svt,loader:ovt},K4e=!1,$j=de(()=>{K4e||(K4e=!0,OH("error",Q_t,n=>n.toLowerCase().trim()==="error"),OH("---",{db:{clear:de(()=>{},"clear")},styles:{},renderer:{draw:de(()=>{},"draw")},parser:{parse:de(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:de(()=>null,"init")},n=>n.toLowerCase().trimStart().startsWith("---")),iJ(E_t,R_t,rvt),iJ(hbt,B_t,l_t,r_t,Qbt,Dbt,Nbt,Hbt,Kbt,e_t,vbt,mbt,D_t,Ebt,m_t,h_t,v_t,jbt,W_t,q_t,$bt,evt,K_t,avt))},"addDiagrams"),lvt=de(async()=>{Un.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(OT).map(async([t,{detector:i,loader:r}])=>{if(r)try{aJ(t)}catch{try{const{diagram:s,id:a}=await r();OH(a,s,i)}catch(s){throw Un.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete OT[t],s}}}))).filter(t=>t.status==="rejected");if(e.length>0){Un.error(`Failed to load ${e.length} external diagrams`);for(const t of e)Un.error(t);throw new Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams"),cvt="graphics-document document";function uDe(n,e){n.attr("role",cvt),e!==""&&n.attr("aria-roledescription",e)}de(uDe,"setA11yDiagramInfo");function dDe(n,e,t,i){if(n.insert!==void 0){if(t){const r=`chart-desc-${i}`;n.attr("aria-describedby",r),n.insert("desc",":first-child").attr("id",r).text(t)}if(e){const r=`chart-title-${i}`;n.attr("aria-labelledby",r),n.insert("title",":first-child").attr("id",r).text(e)}}}de(dDe,"addSVGa11yTitleDescription");var CT,WJ=(CT=class{constructor(e,t,i,r,s){this.type=e,this.text=t,this.db=i,this.parser=r,this.renderer=s}static async fromText(e,t={}){var c,u;const i=ah(),r=Yae(e,i);e=y8t(e)+`
437
437
  `;try{aJ(r)}catch{const h=y4t(r);if(!h)throw new ASe(`Diagram ${r} not found.`);const{id:d,diagram:f}=await h();OH(d,f)}const{db:s,parser:a,renderer:o,init:l}=aJ(r);return a.parser&&(a.parser.yy=s),(c=s.clear)==null||c.call(s),l==null||l(i),t.title&&((u=s.setDiagramTitle)==null||u.call(s,t.title)),await a.parse(e),new CT(r,e,s,a,o)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},de(CT,"Diagram"),CT),Y4e=[],uvt=de(()=>{Y4e.forEach(n=>{n()}),Y4e=[]},"attachFunctions"),dvt=de(n=>n.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function hDe(n){const e=n.match(kSe);if(!e)return{text:n,metadata:{}};let t=vmt(e[1],{schema:_mt})??{};t=typeof t=="object"&&!Array.isArray(t)?t:{};const i={};return t.displayMode&&(i.displayMode=t.displayMode.toString()),t.title&&(i.title=t.title.toString()),t.config&&(i.config=t.config),{text:n.slice(e[0].length),metadata:i}}de(hDe,"extractFrontMatter");var hvt=de(n=>n.replace(/\r\n?/g,`
438
438
  `).replace(/<(\w+)([^>]*)>/g,(e,t,i)=>"<"+t+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),fvt=de(n=>{const{text:e,metadata:t}=hDe(n),{displayMode:i,title:r,config:s={}}=t;return i&&(s.gantt||(s.gantt={}),s.gantt.displayMode=i),{title:r,config:s,text:e}},"processFrontmatter"),pvt=de(n=>{const e=zf.detectInit(n)??{},t=zf.detectDirective(n,"wrap");return Array.isArray(t)?e.wrap=t.some(({type:i})=>i==="wrap"):(t==null?void 0:t.type)==="wrap"&&(e.wrap=!0),{text:l8t(n),directive:e}},"processDirectives");function Ule(n){const e=hvt(n),t=fvt(e),i=pvt(t.text),r=kle(t.config,i.directive);return n=dvt(i.text),{code:n,title:t.title,config:r}}de(Ule,"preprocessDiagram");function fDe(n){const e=new TextEncoder().encode(n),t=Array.from(e,i=>String.fromCodePoint(i)).join("");return btoa(t)}de(fDe,"toBase64");var gvt=5e4,mvt="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Tvt="sandbox",bvt="loose",_vt="http://www.w3.org/2000/svg",vvt="http://www.w3.org/1999/xlink",yvt="http://www.w3.org/1999/xhtml",wvt="100%",Cvt="100%",Qvt="border:0;margin:0;",xvt="margin:0",Svt="allow-top-navigation-by-user-activation allow-popups",Lvt='The "iframe" tag is not supported by your browser.',Evt=["foreignobject"],kvt=["dominant-baseline"];function $le(n){const e=Ule(n);return DH(),P4t(e.config??{}),e}de($le,"processAndSetConfigs");async function pDe(n,e){$j();try{const{code:t,config:i}=$le(n);return{diagramType:(await mDe(t)).type,config:i}}catch(t){if(e!=null&&e.suppressErrors)return!1;throw t}}de(pDe,"parse");var X4e=de((n,e,t=[])=>`
439
439
  .${n} ${e} { ${t.join(" !important; ")} !important; }`,"cssImportantStyles"),Avt=de((n,e=new Map)=>{var i;let t="";if(n.themeCSS!==void 0&&(t+=`
@@ -449,7 +449,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
449
449
  `),style:a,startingLineNumber:o}))}function lyt(n){return"".concat(n.toString().length,".25em")}function xDe(n,e){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(n),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:e},children:[{type:"text",value:n}]}}function SDe(n,e,t){var i={display:"inline-block",minWidth:lyt(t),paddingRight:"1em",textAlign:"right",userSelect:"none"},r=typeof n=="function"?n(e):n,s=v6(v6({},i),r);return s}function JR(n){var e=n.children,t=n.lineNumber,i=n.lineNumberStyle,r=n.largestLineNumber,s=n.showInlineLineNumbers,a=n.lineProps,o=a===void 0?{}:a,l=n.className,c=l===void 0?[]:l,u=n.showLineNumbers,h=n.wrapLongLines,d=n.wrapLines,f=d===void 0?!1:d,p=f?v6({},typeof o=="function"?o(t):o):{};if(p.className=p.className?[].concat(ZJ(p.className.trim().split(/\s+/)),ZJ(c)):c,t&&s){var g=SDe(i,t,r);e.unshift(xDe(t,g))}return h&u&&(p.style=v6({display:"flex"},p.style)),{type:"element",tagName:"span",properties:p,children:e}}function LDe(n){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],i=0;i<n.length;i++){var r=n[i];if(r.type==="text")t.push(JR({children:[r],className:ZJ(new Set(e))}));else if(r.children){var s=e.concat(r.properties.className);LDe(r.children,s).forEach(function(a){return t.push(a)})}}return t}function cyt(n,e,t,i,r,s,a,o,l){var c,u=LDe(n.value),h=[],d=-1,f=0;function p(w,y){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return JR({children:w,lineNumber:y,lineNumberStyle:o,largestLineNumber:a,showInlineLineNumbers:r,lineProps:t,className:C,showLineNumbers:i,wrapLongLines:l,wrapLines:e})}function g(w,y){if(i&&y&&r){var C=SDe(o,y,a);w.unshift(xDe(y,C))}return w}function m(w,y){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return e||C.length>0?p(w,y,C):g(w,y)}for(var T=function(){var y=u[f],C=y.children[0].value,x=syt(C);if(x){var S=C.split(`
450
450
  `);S.forEach(function(L,E){var I=i&&h.length+s,O={type:"text",value:"".concat(L,`
451
451
  `)};if(E===0){var k=u.slice(d+1,f).concat(JR({children:[O],className:y.properties.className})),N=m(k,I);h.push(N)}else if(E===S.length-1){var R=u[f+1]&&u[f+1].children&&u[f+1].children[0],H={type:"text",value:"".concat(L)};if(R){var j=JR({children:[H],className:y.properties.className});u.splice(f+1,0,j)}else{var U=[H],W=m(U,I,y.properties.className);h.push(W)}}else{var Z=[O],te=m(Z,I,y.properties.className);h.push(te)}}),d=f}f++};f<u.length;)T();if(d!==u.length-1){var b=u.slice(d+1,u.length);if(b&&b.length){var v=i&&h.length+s,_=m(b,v);h.push(_)}}return e?h:(c=[]).concat.apply(c,h)}function uyt(n){var e=n.rows,t=n.stylesheet,i=n.useInlineStyles;return e.map(function(r,s){return QDe({node:r,stylesheet:t,useInlineStyles:i,key:"code-segement".concat(s)})})}function EDe(n){return n&&typeof n.highlightAuto<"u"}function dyt(n){var e=n.astGenerator,t=n.language,i=n.code,r=n.defaultCodeValue;if(EDe(e)){var s=nyt(e,t);return t==="text"?{value:r,language:"text"}:s?e.highlight(t,i):e.highlightAuto(i)}try{return t&&t!=="text"?{value:e.highlight(i,t)}:{value:r}}catch{return{value:r}}}function hyt(n,e){return function(i){var r=i.language,s=i.children,a=i.style,o=a===void 0?e:a,l=i.customStyle,c=l===void 0?{}:l,u=i.codeTagProps,h=u===void 0?{className:r?"language-".concat(r):void 0,style:v6(v6({},o['code[class*="language-"]']),o['code[class*="language-'.concat(r,'"]')])}:u,d=i.useInlineStyles,f=d===void 0?!0:d,p=i.showLineNumbers,g=p===void 0?!1:p,m=i.showInlineLineNumbers,T=m===void 0?!0:m,b=i.startingLineNumber,v=b===void 0?1:b,_=i.lineNumberContainerStyle,w=i.lineNumberStyle,y=w===void 0?{}:w,C=i.wrapLines,x=i.wrapLongLines,S=x===void 0?!1:x,L=i.lineProps,E=L===void 0?{}:L,I=i.renderer,O=i.PreTag,k=O===void 0?"pre":O,N=i.CodeTag,R=N===void 0?"code":N,H=i.code,j=H===void 0?(Array.isArray(s)?s[0]:s)||"":H,U=i.astGenerator,W=qvt(i,iyt);U=U||n;var Z=g?br.createElement(ayt,{containerStyle:_,codeStyle:h.style||{},numberStyle:y,startingLineNumber:v,codeString:j}):null,te=o.hljs||o['pre[class*="language-"]']||{backgroundColor:"#fff"},X=EDe(U)?"hljs":"prismjs",oe=f?Object.assign({},W,{style:Object.assign({},te,c)}):Object.assign({},W,{className:W.className?"".concat(X," ").concat(W.className):X,style:Object.assign({},c)});if(S?h.style=v6({whiteSpace:"pre-wrap"},h.style):h.style=v6({whiteSpace:"pre"},h.style),!U)return br.createElement(k,oe,Z,br.createElement(R,h,j));(C===void 0&&I||S)&&(C=!0),I=I||uyt;var fe=[{type:"text",value:j}],Le=dyt({astGenerator:U,language:r,code:j,defaultCodeValue:fe});Le.language===null&&(Le.value=fe);var Pe=Le.value.length;Pe===1&&Le.value[0].type==="text"&&(Pe=Le.value[0].value.split(`
452
- `).length);var Qe=Pe+v,_e=cyt(Le,C,E,g,T,v,Qe,y,S);return br.createElement(k,oe,br.createElement(R,h,!T&&Z,I({rows:_e,stylesheet:o,useInlineStyles:f})))}}function GJ(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */GJ=function(){return e};var n,e={},t=Object.prototype,i=t.hasOwnProperty,r=Object.defineProperty||function(R,H,j){R[H]=j.value},s=typeof Symbol=="function"?Symbol:{},a=s.iterator||"@@iterator",o=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function c(R,H,j){return Object.defineProperty(R,H,{value:j,enumerable:!0,configurable:!0,writable:!0}),R[H]}try{c({},"")}catch{c=function(j,U,W){return j[U]=W}}function u(R,H,j,U){var W=H&&H.prototype instanceof T?H:T,Z=Object.create(W.prototype),te=new k(U||[]);return r(Z,"_invoke",{value:L(R,j,te)}),Z}function h(R,H,j){try{return{type:"normal",arg:R.call(H,j)}}catch(U){return{type:"throw",arg:U}}}e.wrap=u;var d="suspendedStart",f="suspendedYield",p="executing",g="completed",m={};function T(){}function b(){}function v(){}var _={};c(_,a,function(){return this});var w=Object.getPrototypeOf,y=w&&w(w(N([])));y&&y!==t&&i.call(y,a)&&(_=y);var C=v.prototype=T.prototype=Object.create(_);function x(R){["next","throw","return"].forEach(function(H){c(R,H,function(j){return this._invoke(H,j)})})}function S(R,H){function j(W,Z,te,X){var oe=h(R[W],R,Z);if(oe.type!=="throw"){var fe=oe.arg,Le=fe.value;return Le&&f4(Le)=="object"&&i.call(Le,"__await")?H.resolve(Le.__await).then(function(Pe){j("next",Pe,te,X)},function(Pe){j("throw",Pe,te,X)}):H.resolve(Le).then(function(Pe){fe.value=Pe,te(fe)},function(Pe){return j("throw",Pe,te,X)})}X(oe.arg)}var U;r(this,"_invoke",{value:function(Z,te){function X(){return new H(function(oe,fe){j(Z,te,oe,fe)})}return U=U?U.then(X,X):X()}})}function L(R,H,j){var U=d;return function(W,Z){if(U===p)throw Error("Generator is already running");if(U===g){if(W==="throw")throw Z;return{value:n,done:!0}}for(j.method=W,j.arg=Z;;){var te=j.delegate;if(te){var X=E(te,j);if(X){if(X===m)continue;return X}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(U===d)throw U=g,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);U=p;var oe=h(R,H,j);if(oe.type==="normal"){if(U=j.done?g:f,oe.arg===m)continue;return{value:oe.arg,done:j.done}}oe.type==="throw"&&(U=g,j.method="throw",j.arg=oe.arg)}}}function E(R,H){var j=H.method,U=R.iterator[j];if(U===n)return H.delegate=null,j==="throw"&&R.iterator.return&&(H.method="return",H.arg=n,E(R,H),H.method==="throw")||j!=="return"&&(H.method="throw",H.arg=new TypeError("The iterator does not provide a '"+j+"' method")),m;var W=h(U,R.iterator,H.arg);if(W.type==="throw")return H.method="throw",H.arg=W.arg,H.delegate=null,m;var Z=W.arg;return Z?Z.done?(H[R.resultName]=Z.value,H.next=R.nextLoc,H.method!=="return"&&(H.method="next",H.arg=n),H.delegate=null,m):Z:(H.method="throw",H.arg=new TypeError("iterator result is not an object"),H.delegate=null,m)}function I(R){var H={tryLoc:R[0]};1 in R&&(H.catchLoc=R[1]),2 in R&&(H.finallyLoc=R[2],H.afterLoc=R[3]),this.tryEntries.push(H)}function O(R){var H=R.completion||{};H.type="normal",delete H.arg,R.completion=H}function k(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(I,this),this.reset(!0)}function N(R){if(R||R===""){var H=R[a];if(H)return H.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var j=-1,U=function W(){for(;++j<R.length;)if(i.call(R,j))return W.value=R[j],W.done=!1,W;return W.value=n,W.done=!0,W};return U.next=U}}throw new TypeError(f4(R)+" is not iterable")}return b.prototype=v,r(C,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:b,configurable:!0}),b.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(R){var H=typeof R=="function"&&R.constructor;return!!H&&(H===b||(H.displayName||H.name)==="GeneratorFunction")},e.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,v):(R.__proto__=v,c(R,l,"GeneratorFunction")),R.prototype=Object.create(C),R},e.awrap=function(R){return{__await:R}},x(S.prototype),c(S.prototype,o,function(){return this}),e.AsyncIterator=S,e.async=function(R,H,j,U,W){W===void 0&&(W=Promise);var Z=new S(u(R,H,j,U),W);return e.isGeneratorFunction(H)?Z:Z.next().then(function(te){return te.done?te.value:Z.next()})},x(C),c(C,l,"Generator"),c(C,a,function(){return this}),c(C,"toString",function(){return"[object Generator]"}),e.keys=function(R){var H=Object(R),j=[];for(var U in H)j.push(U);return j.reverse(),function W(){for(;j.length;){var Z=j.pop();if(Z in H)return W.value=Z,W.done=!1,W}return W.done=!0,W}},e.values=N,k.prototype={constructor:k,reset:function(H){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(O),!H)for(var j in this)j.charAt(0)==="t"&&i.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=n)},stop:function(){this.done=!0;var H=this.tryEntries[0].completion;if(H.type==="throw")throw H.arg;return this.rval},dispatchException:function(H){if(this.done)throw H;var j=this;function U(fe,Le){return te.type="throw",te.arg=H,j.next=fe,Le&&(j.method="next",j.arg=n),!!Le}for(var W=this.tryEntries.length-1;W>=0;--W){var Z=this.tryEntries[W],te=Z.completion;if(Z.tryLoc==="root")return U("end");if(Z.tryLoc<=this.prev){var X=i.call(Z,"catchLoc"),oe=i.call(Z,"finallyLoc");if(X&&oe){if(this.prev<Z.catchLoc)return U(Z.catchLoc,!0);if(this.prev<Z.finallyLoc)return U(Z.finallyLoc)}else if(X){if(this.prev<Z.catchLoc)return U(Z.catchLoc,!0)}else{if(!oe)throw Error("try statement without catch or finally");if(this.prev<Z.finallyLoc)return U(Z.finallyLoc)}}}},abrupt:function(H,j){for(var U=this.tryEntries.length-1;U>=0;--U){var W=this.tryEntries[U];if(W.tryLoc<=this.prev&&i.call(W,"finallyLoc")&&this.prev<W.finallyLoc){var Z=W;break}}Z&&(H==="break"||H==="continue")&&Z.tryLoc<=j&&j<=Z.finallyLoc&&(Z=null);var te=Z?Z.completion:{};return te.type=H,te.arg=j,Z?(this.method="next",this.next=Z.finallyLoc,m):this.complete(te)},complete:function(H,j){if(H.type==="throw")throw H.arg;return H.type==="break"||H.type==="continue"?this.next=H.arg:H.type==="return"?(this.rval=this.arg=H.arg,this.method="return",this.next="end"):H.type==="normal"&&j&&(this.next=j),m},finish:function(H){for(var j=this.tryEntries.length-1;j>=0;--j){var U=this.tryEntries[j];if(U.finallyLoc===H)return this.complete(U.completion,U.afterLoc),O(U),m}},catch:function(H){for(var j=this.tryEntries.length-1;j>=0;--j){var U=this.tryEntries[j];if(U.tryLoc===H){var W=U.completion;if(W.type==="throw"){var Z=W.arg;O(U)}return Z}}throw Error("illegal catch attempt")},delegateYield:function(H,j,U){return this.delegate={iterator:N(H),resultName:j,nextLoc:U},this.method==="next"&&(this.arg=n),m}},e}function fyt(n,e,t){return e=cF(e),Wvt(n,kDe()?Reflect.construct(e,t||[],cF(n).constructor):e.apply(n,t))}function kDe(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kDe=function(){return!!n})()}const pyt=(function(n){var e,t=n.loader,i=n.isLanguageRegistered,r=n.registerLanguage,s=n.languageLoaders,a=n.noAsyncLoadingLanguages,o=(function(l){function c(){return Jwe(this,c),fyt(this,c,arguments)}return Uvt(c,l),tCe(c,[{key:"componentDidUpdate",value:function(){!c.isRegistered(this.props.language)&&s&&this.loadLanguage()}},{key:"componentDidMount",value:function(){var h=this;c.astGeneratorPromise||c.loadAstGenerator(),c.astGenerator||c.astGeneratorPromise.then(function(){h.forceUpdate()}),!c.isRegistered(this.props.language)&&s&&this.loadLanguage()}},{key:"loadLanguage",value:function(){var h=this,d=this.props.language;d!=="text"&&c.loadLanguage(d).then(function(){return h.forceUpdate()}).catch(function(){})}},{key:"normalizeLanguage",value:function(h){return c.isSupportedLanguage(h)?h:"text"}},{key:"render",value:function(){return br.createElement(c.highlightInstance,lF({},this.props,{language:this.normalizeLanguage(this.props.language),astGenerator:c.astGenerator}))}}],[{key:"preload",value:function(){return c.loadAstGenerator()}},{key:"loadLanguage",value:(function(){var u=CDe(GJ().mark(function d(f){var p;return GJ().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(p=s[f],typeof p!="function"){m.next=5;break}return m.abrupt("return",p(c.registerLanguage));case 5:throw new Error("Language ".concat(f," not supported"));case 6:case"end":return m.stop()}},d)}));function h(d){return u.apply(this,arguments)}return h})()},{key:"isSupportedLanguage",value:function(h){return c.isRegistered(h)||typeof s[h]=="function"}},{key:"loadAstGenerator",value:function(){return c.astGeneratorPromise=t().then(function(h){c.astGenerator=h,r&&c.languages.forEach(function(d,f){return r(h,f,d)})}),c.astGeneratorPromise}}])})(br.PureComponent);return e=o,Dg(o,"astGenerator",null),Dg(o,"highlightInstance",hyt(null,{})),Dg(o,"astGeneratorPromise",null),Dg(o,"languages",new Map),Dg(o,"supportedLanguages",n.supportedLanguages||Object.keys(s||{})),Dg(o,"isRegistered",function(l){if(a)return!0;if(!r)throw new Error("Current syntax highlighter doesn't support registration of languages");return e.astGenerator?i(e.astGenerator,l):e.languages.has(l)}),Dg(o,"registerLanguage",function(l,c){if(!r)throw new Error("Current syntax highlighter doesn't support registration of languages");if(e.astGenerator)return r(e.astGenerator,l,c);e.languages.set(l,c)}),o});function KJ(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */KJ=function(){return e};var n,e={},t=Object.prototype,i=t.hasOwnProperty,r=Object.defineProperty||function(R,H,j){R[H]=j.value},s=typeof Symbol=="function"?Symbol:{},a=s.iterator||"@@iterator",o=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function c(R,H,j){return Object.defineProperty(R,H,{value:j,enumerable:!0,configurable:!0,writable:!0}),R[H]}try{c({},"")}catch{c=function(j,U,W){return j[U]=W}}function u(R,H,j,U){var W=H&&H.prototype instanceof T?H:T,Z=Object.create(W.prototype),te=new k(U||[]);return r(Z,"_invoke",{value:L(R,j,te)}),Z}function h(R,H,j){try{return{type:"normal",arg:R.call(H,j)}}catch(U){return{type:"throw",arg:U}}}e.wrap=u;var d="suspendedStart",f="suspendedYield",p="executing",g="completed",m={};function T(){}function b(){}function v(){}var _={};c(_,a,function(){return this});var w=Object.getPrototypeOf,y=w&&w(w(N([])));y&&y!==t&&i.call(y,a)&&(_=y);var C=v.prototype=T.prototype=Object.create(_);function x(R){["next","throw","return"].forEach(function(H){c(R,H,function(j){return this._invoke(H,j)})})}function S(R,H){function j(W,Z,te,X){var oe=h(R[W],R,Z);if(oe.type!=="throw"){var fe=oe.arg,Le=fe.value;return Le&&f4(Le)=="object"&&i.call(Le,"__await")?H.resolve(Le.__await).then(function(Pe){j("next",Pe,te,X)},function(Pe){j("throw",Pe,te,X)}):H.resolve(Le).then(function(Pe){fe.value=Pe,te(fe)},function(Pe){return j("throw",Pe,te,X)})}X(oe.arg)}var U;r(this,"_invoke",{value:function(Z,te){function X(){return new H(function(oe,fe){j(Z,te,oe,fe)})}return U=U?U.then(X,X):X()}})}function L(R,H,j){var U=d;return function(W,Z){if(U===p)throw Error("Generator is already running");if(U===g){if(W==="throw")throw Z;return{value:n,done:!0}}for(j.method=W,j.arg=Z;;){var te=j.delegate;if(te){var X=E(te,j);if(X){if(X===m)continue;return X}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(U===d)throw U=g,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);U=p;var oe=h(R,H,j);if(oe.type==="normal"){if(U=j.done?g:f,oe.arg===m)continue;return{value:oe.arg,done:j.done}}oe.type==="throw"&&(U=g,j.method="throw",j.arg=oe.arg)}}}function E(R,H){var j=H.method,U=R.iterator[j];if(U===n)return H.delegate=null,j==="throw"&&R.iterator.return&&(H.method="return",H.arg=n,E(R,H),H.method==="throw")||j!=="return"&&(H.method="throw",H.arg=new TypeError("The iterator does not provide a '"+j+"' method")),m;var W=h(U,R.iterator,H.arg);if(W.type==="throw")return H.method="throw",H.arg=W.arg,H.delegate=null,m;var Z=W.arg;return Z?Z.done?(H[R.resultName]=Z.value,H.next=R.nextLoc,H.method!=="return"&&(H.method="next",H.arg=n),H.delegate=null,m):Z:(H.method="throw",H.arg=new TypeError("iterator result is not an object"),H.delegate=null,m)}function I(R){var H={tryLoc:R[0]};1 in R&&(H.catchLoc=R[1]),2 in R&&(H.finallyLoc=R[2],H.afterLoc=R[3]),this.tryEntries.push(H)}function O(R){var H=R.completion||{};H.type="normal",delete H.arg,R.completion=H}function k(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(I,this),this.reset(!0)}function N(R){if(R||R===""){var H=R[a];if(H)return H.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var j=-1,U=function W(){for(;++j<R.length;)if(i.call(R,j))return W.value=R[j],W.done=!1,W;return W.value=n,W.done=!0,W};return U.next=U}}throw new TypeError(f4(R)+" is not iterable")}return b.prototype=v,r(C,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:b,configurable:!0}),b.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(R){var H=typeof R=="function"&&R.constructor;return!!H&&(H===b||(H.displayName||H.name)==="GeneratorFunction")},e.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,v):(R.__proto__=v,c(R,l,"GeneratorFunction")),R.prototype=Object.create(C),R},e.awrap=function(R){return{__await:R}},x(S.prototype),c(S.prototype,o,function(){return this}),e.AsyncIterator=S,e.async=function(R,H,j,U,W){W===void 0&&(W=Promise);var Z=new S(u(R,H,j,U),W);return e.isGeneratorFunction(H)?Z:Z.next().then(function(te){return te.done?te.value:Z.next()})},x(C),c(C,l,"Generator"),c(C,a,function(){return this}),c(C,"toString",function(){return"[object Generator]"}),e.keys=function(R){var H=Object(R),j=[];for(var U in H)j.push(U);return j.reverse(),function W(){for(;j.length;){var Z=j.pop();if(Z in H)return W.value=Z,W.done=!1,W}return W.done=!0,W}},e.values=N,k.prototype={constructor:k,reset:function(H){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(O),!H)for(var j in this)j.charAt(0)==="t"&&i.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=n)},stop:function(){this.done=!0;var H=this.tryEntries[0].completion;if(H.type==="throw")throw H.arg;return this.rval},dispatchException:function(H){if(this.done)throw H;var j=this;function U(fe,Le){return te.type="throw",te.arg=H,j.next=fe,Le&&(j.method="next",j.arg=n),!!Le}for(var W=this.tryEntries.length-1;W>=0;--W){var Z=this.tryEntries[W],te=Z.completion;if(Z.tryLoc==="root")return U("end");if(Z.tryLoc<=this.prev){var X=i.call(Z,"catchLoc"),oe=i.call(Z,"finallyLoc");if(X&&oe){if(this.prev<Z.catchLoc)return U(Z.catchLoc,!0);if(this.prev<Z.finallyLoc)return U(Z.finallyLoc)}else if(X){if(this.prev<Z.catchLoc)return U(Z.catchLoc,!0)}else{if(!oe)throw Error("try statement without catch or finally");if(this.prev<Z.finallyLoc)return U(Z.finallyLoc)}}}},abrupt:function(H,j){for(var U=this.tryEntries.length-1;U>=0;--U){var W=this.tryEntries[U];if(W.tryLoc<=this.prev&&i.call(W,"finallyLoc")&&this.prev<W.finallyLoc){var Z=W;break}}Z&&(H==="break"||H==="continue")&&Z.tryLoc<=j&&j<=Z.finallyLoc&&(Z=null);var te=Z?Z.completion:{};return te.type=H,te.arg=j,Z?(this.method="next",this.next=Z.finallyLoc,m):this.complete(te)},complete:function(H,j){if(H.type==="throw")throw H.arg;return H.type==="break"||H.type==="continue"?this.next=H.arg:H.type==="return"?(this.rval=this.arg=H.arg,this.method="return",this.next="end"):H.type==="normal"&&j&&(this.next=j),m},finish:function(H){for(var j=this.tryEntries.length-1;j>=0;--j){var U=this.tryEntries[j];if(U.finallyLoc===H)return this.complete(U.completion,U.afterLoc),O(U),m}},catch:function(H){for(var j=this.tryEntries.length-1;j>=0;--j){var U=this.tryEntries[j];if(U.tryLoc===H){var W=U.completion;if(W.type==="throw"){var Z=W.arg;O(U)}return Z}}throw Error("illegal catch attempt")},delegateYield:function(H,j,U){return this.delegate={iterator:N(H),resultName:j,nextLoc:U},this.method==="next"&&(this.arg=n),m}},e}const Xe=(function(n,e){return(function(){var t=CDe(KJ().mark(function i(r){var s;return KJ().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,e();case 2:s=o.sent,r(n,s.default||s);case 4:case"end":return o.stop()}},i)}));return function(i){return t.apply(this,arguments)}})()}),gyt={abap:Xe("abap",function(){return Ae(()=>import("./abap-kqcCuNo3.js").then(n=>n.a),[])}),abnf:Xe("abnf",function(){return Ae(()=>import("./abnf-0i0y1qLw.js").then(n=>n.a),[])}),actionscript:Xe("actionscript",function(){return Ae(()=>import("./actionscript-CBg9ALMd.js").then(n=>n.a),[])}),ada:Xe("ada",function(){return Ae(()=>import("./ada-C0C0wsJY.js").then(n=>n.a),[])}),agda:Xe("agda",function(){return Ae(()=>import("./agda-CxRhcDuf.js").then(n=>n.a),[])}),al:Xe("al",function(){return Ae(()=>import("./al-Dlm67z74.js").then(n=>n.a),[])}),antlr4:Xe("antlr4",function(){return Ae(()=>import("./antlr4-BmA8T_Pf.js").then(n=>n.a),[])}),apacheconf:Xe("apacheconf",function(){return Ae(()=>import("./apacheconf-Cy80ybHj.js").then(n=>n.a),[])}),apex:Xe("apex",function(){return Ae(()=>import("./apex-Sg90mm4u.js").then(n=>n.a),__vite__mapDeps([47,48]))}),apl:Xe("apl",function(){return Ae(()=>import("./apl-EWXH65GD.js").then(n=>n.a),[])}),applescript:Xe("applescript",function(){return Ae(()=>import("./applescript-PjHK8QN3.js").then(n=>n.a),[])}),aql:Xe("aql",function(){return Ae(()=>import("./aql-B5IC4Rcf.js").then(n=>n.a),[])}),arduino:Xe("arduino",function(){return Ae(()=>import("./arduino-C51Narsi.js").then(n=>n.a),__vite__mapDeps([49,50,51]))}),arff:Xe("arff",function(){return Ae(()=>import("./arff-8aJF8MCW.js").then(n=>n.a),[])}),asciidoc:Xe("asciidoc",function(){return Ae(()=>import("./asciidoc-YvasCiDo.js").then(n=>n.a),[])}),asm6502:Xe("asm6502",function(){return Ae(()=>import("./asm6502-DNM_ACU3.js").then(n=>n.a),[])}),asmatmel:Xe("asmatmel",function(){return Ae(()=>import("./asmatmel-B7SjKbvc.js").then(n=>n.a),[])}),aspnet:Xe("aspnet",function(){return Ae(()=>import("./aspnet-BDjjZcvg.js").then(n=>n.a),__vite__mapDeps([52,53]))}),autohotkey:Xe("autohotkey",function(){return Ae(()=>import("./autohotkey-hUSymZ_m.js").then(n=>n.a),[])}),autoit:Xe("autoit",function(){return Ae(()=>import("./autoit-z_CsSJmr.js").then(n=>n.a),[])}),avisynth:Xe("avisynth",function(){return Ae(()=>import("./avisynth-lWBoLdVJ.js").then(n=>n.a),[])}),avroIdl:Xe("avroIdl",function(){return Ae(()=>import("./avro-idl-D8-0MeNx.js").then(n=>n.a),[])}),bash:Xe("bash",function(){return Ae(()=>import("./bash-WWuseIss.js").then(n=>n.b),__vite__mapDeps([54,55]))}),basic:Xe("basic",function(){return Ae(()=>import("./basic-5JZah1MP.js").then(n=>n.b),__vite__mapDeps([56,57]))}),batch:Xe("batch",function(){return Ae(()=>import("./batch-CNuZE34T.js").then(n=>n.b),[])}),bbcode:Xe("bbcode",function(){return Ae(()=>import("./bbcode-DUCaeSOc.js").then(n=>n.b),[])}),bicep:Xe("bicep",function(){return Ae(()=>import("./bicep-C9cUGcZW.js").then(n=>n.b),[])}),birb:Xe("birb",function(){return Ae(()=>import("./birb-BZmpNpMm.js").then(n=>n.b),[])}),bison:Xe("bison",function(){return Ae(()=>import("./bison-CywkiQg4.js").then(n=>n.b),__vite__mapDeps([58,51]))}),bnf:Xe("bnf",function(){return Ae(()=>import("./bnf-DNey8JGD.js").then(n=>n.b),[])}),brainfuck:Xe("brainfuck",function(){return Ae(()=>import("./brainfuck-uwCSHc7F.js").then(n=>n.b),[])}),brightscript:Xe("brightscript",function(){return Ae(()=>import("./brightscript-DT7d5-qJ.js").then(n=>n.b),[])}),bro:Xe("bro",function(){return Ae(()=>import("./bro-CFVRfUbc.js").then(n=>n.b),[])}),bsl:Xe("bsl",function(){return Ae(()=>import("./bsl-9S4UgA2J.js").then(n=>n.b),[])}),c:Xe("c",function(){return Ae(()=>import("./c-BgfjASKF.js").then(n=>n.c),__vite__mapDeps([59,51]))}),cfscript:Xe("cfscript",function(){return Ae(()=>import("./cfscript-49U2aWCh.js").then(n=>n.c),[])}),chaiscript:Xe("chaiscript",function(){return Ae(()=>import("./chaiscript-4VtsYVpl.js").then(n=>n.c),__vite__mapDeps([60,50,51]))}),cil:Xe("cil",function(){return Ae(()=>import("./cil-CIk1nZUD.js").then(n=>n.c),[])}),clike:Xe("clike",function(){return Ae(()=>import("./clike-CxAeib4_.js").then(n=>n.c),__vite__mapDeps([61,62]))}),clojure:Xe("clojure",function(){return Ae(()=>import("./clojure-Ck0RXpbo.js").then(n=>n.c),[])}),cmake:Xe("cmake",function(){return Ae(()=>import("./cmake-C-DeGqDW.js").then(n=>n.c),[])}),cobol:Xe("cobol",function(){return Ae(()=>import("./cobol-DB25XrSi.js").then(n=>n.c),[])}),coffeescript:Xe("coffeescript",function(){return Ae(()=>import("./coffeescript-B4nqUg94.js").then(n=>n.c),[])}),concurnas:Xe("concurnas",function(){return Ae(()=>import("./concurnas-Dn9XkZGY.js").then(n=>n.c),[])}),coq:Xe("coq",function(){return Ae(()=>import("./coq-Cvr3Gn8T.js").then(n=>n.c),[])}),cpp:Xe("cpp",function(){return Ae(()=>import("./cpp-CKhD-3M2.js").then(n=>n.c),__vite__mapDeps([63,50,51]))}),crystal:Xe("crystal",function(){return Ae(()=>import("./crystal-CjID7KIv.js").then(n=>n.c),__vite__mapDeps([64,65]))}),csharp:Xe("csharp",function(){return Ae(()=>import("./csharp-2ALpLYur.js").then(n=>n.c),__vite__mapDeps([66,53]))}),cshtml:Xe("cshtml",function(){return Ae(()=>import("./cshtml-BlacgVaO.js").then(n=>n.c),__vite__mapDeps([67,53]))}),csp:Xe("csp",function(){return Ae(()=>import("./csp-HMwJhbi-.js").then(n=>n.c),[])}),cssExtras:Xe("cssExtras",function(){return Ae(()=>import("./css-extras-DeVSfTP6.js").then(n=>n.c),[])}),css:Xe("css",function(){return Ae(()=>import("./css-B2tK9wdh.js").then(n=>n.c),__vite__mapDeps([68,69]))}),csv:Xe("csv",function(){return Ae(()=>import("./csv-BD6q7LX1.js").then(n=>n.c),[])}),cypher:Xe("cypher",function(){return Ae(()=>import("./cypher-BgMoLKlv.js").then(n=>n.c),[])}),d:Xe("d",function(){return Ae(()=>import("./d-DbEmK-0B.js").then(n=>n.d),[])}),dart:Xe("dart",function(){return Ae(()=>import("./dart-DkfsI3yC.js").then(n=>n.d),[])}),dataweave:Xe("dataweave",function(){return Ae(()=>import("./dataweave-aZYF5PNL.js").then(n=>n.d),[])}),dax:Xe("dax",function(){return Ae(()=>import("./dax-V2ts0ypQ.js").then(n=>n.d),[])}),dhall:Xe("dhall",function(){return Ae(()=>import("./dhall-D3SUU5AE.js").then(n=>n.d),[])}),diff:Xe("diff",function(){return Ae(()=>import("./diff-CMSY-_TM.js").then(n=>n.d),[])}),django:Xe("django",function(){return Ae(()=>import("./django-DnIhfivE.js").then(n=>n.d),__vite__mapDeps([70,71]))}),dnsZoneFile:Xe("dnsZoneFile",function(){return Ae(()=>import("./dns-zone-file-cve-GUtw.js").then(n=>n.d),[])}),docker:Xe("docker",function(){return Ae(()=>import("./docker-BNsgT4ys.js").then(n=>n.d),[])}),dot:Xe("dot",function(){return Ae(()=>import("./dot-YI_YYuHG.js").then(n=>n.d),[])}),ebnf:Xe("ebnf",function(){return Ae(()=>import("./ebnf-D_RcZu_y.js").then(n=>n.e),[])}),editorconfig:Xe("editorconfig",function(){return Ae(()=>import("./editorconfig-DUfFHFN4.js").then(n=>n.e),[])}),eiffel:Xe("eiffel",function(){return Ae(()=>import("./eiffel-D62YrVdr.js").then(n=>n.e),[])}),ejs:Xe("ejs",function(){return Ae(()=>import("./ejs-B3E9714P.js").then(n=>n.e),__vite__mapDeps([72,71]))}),elixir:Xe("elixir",function(){return Ae(()=>import("./elixir-wU9BuARX.js").then(n=>n.e),[])}),elm:Xe("elm",function(){return Ae(()=>import("./elm-GdyPUCRk.js").then(n=>n.e),[])}),erb:Xe("erb",function(){return Ae(()=>import("./erb-BLfRgaP8.js").then(n=>n.e),__vite__mapDeps([73,65,71]))}),erlang:Xe("erlang",function(){return Ae(()=>import("./erlang-oEvb0Slh.js").then(n=>n.e),[])}),etlua:Xe("etlua",function(){return Ae(()=>import("./etlua-B52BFn4o.js").then(n=>n.e),__vite__mapDeps([74,75,71]))}),excelFormula:Xe("excelFormula",function(){return Ae(()=>import("./excel-formula-DNqVjpMr.js").then(n=>n.e),[])}),factor:Xe("factor",function(){return Ae(()=>import("./factor-D1OvJ8Qo.js").then(n=>n.f),[])}),falselang:Xe("falselang",function(){return Ae(()=>import("./false-Z6QQv6ID.js").then(n=>n._),[])}),firestoreSecurityRules:Xe("firestoreSecurityRules",function(){return Ae(()=>import("./firestore-security-rules-DTUdd8_9.js").then(n=>n.f),[])}),flow:Xe("flow",function(){return Ae(()=>import("./flow-1B4ewKvb.js").then(n=>n.f),[])}),fortran:Xe("fortran",function(){return Ae(()=>import("./fortran-DiWKkvzE.js").then(n=>n.f),[])}),fsharp:Xe("fsharp",function(){return Ae(()=>import("./fsharp-Dv3_RQKY.js").then(n=>n.f),[])}),ftl:Xe("ftl",function(){return Ae(()=>import("./ftl-CaaEO_Z2.js").then(n=>n.f),__vite__mapDeps([76,71]))}),gap:Xe("gap",function(){return Ae(()=>import("./gap-CTp3QxAZ.js").then(n=>n.g),[])}),gcode:Xe("gcode",function(){return Ae(()=>import("./gcode-CYwYWCAy.js").then(n=>n.g),[])}),gdscript:Xe("gdscript",function(){return Ae(()=>import("./gdscript-YqSYr01q.js").then(n=>n.g),[])}),gedcom:Xe("gedcom",function(){return Ae(()=>import("./gedcom-DTNpnfmu.js").then(n=>n.g),[])}),gherkin:Xe("gherkin",function(){return Ae(()=>import("./gherkin-RLKHjAi5.js").then(n=>n.g),[])}),git:Xe("git",function(){return Ae(()=>import("./git-0fy9QQAU.js").then(n=>n.g),[])}),glsl:Xe("glsl",function(){return Ae(()=>import("./glsl-Df0XRhtW.js").then(n=>n.g),__vite__mapDeps([77,51]))}),gml:Xe("gml",function(){return Ae(()=>import("./gml-rYpCBP8S.js").then(n=>n.g),[])}),gn:Xe("gn",function(){return Ae(()=>import("./gn-jKfYA_GR.js").then(n=>n.g),[])}),goModule:Xe("goModule",function(){return Ae(()=>import("./go-module-DXvSTe3J.js").then(n=>n.g),[])}),go:Xe("go",function(){return Ae(()=>import("./go-B-SSxtH2.js").then(n=>n.g),[])}),graphql:Xe("graphql",function(){return Ae(()=>import("./graphql-Btz_aicw.js").then(n=>n.g),[])}),groovy:Xe("groovy",function(){return Ae(()=>import("./groovy-DTiJadjC.js").then(n=>n.g),[])}),haml:Xe("haml",function(){return Ae(()=>import("./haml-CcDSAGW3.js").then(n=>n.h),__vite__mapDeps([78,65]))}),handlebars:Xe("handlebars",function(){return Ae(()=>import("./handlebars-CTc1FoVV.js").then(n=>n.h),__vite__mapDeps([79,71]))}),haskell:Xe("haskell",function(){return Ae(()=>import("./haskell-Ba7Fn64p.js").then(n=>n.h),__vite__mapDeps([80,81]))}),haxe:Xe("haxe",function(){return Ae(()=>import("./haxe-BOP5EevR.js").then(n=>n.h),[])}),hcl:Xe("hcl",function(){return Ae(()=>import("./hcl-D1BwnWLD.js").then(n=>n.h),[])}),hlsl:Xe("hlsl",function(){return Ae(()=>import("./hlsl-CUum5slg.js").then(n=>n.h),__vite__mapDeps([82,51]))}),hoon:Xe("hoon",function(){return Ae(()=>import("./hoon-QMQpvF33.js").then(n=>n.h),[])}),hpkp:Xe("hpkp",function(){return Ae(()=>import("./hpkp-D6eY57p3.js").then(n=>n.h),[])}),hsts:Xe("hsts",function(){return Ae(()=>import("./hsts-C1AgjS7S.js").then(n=>n.h),[])}),http:Xe("http",function(){return Ae(()=>import("./http-id2mbfvH.js").then(n=>n.h),[])}),ichigojam:Xe("ichigojam",function(){return Ae(()=>import("./ichigojam-DykLBLF7.js").then(n=>n.i),[])}),icon:Xe("icon",function(){return Ae(()=>import("./icon-5DLjeVkO.js").then(n=>n.i),[])}),icuMessageFormat:Xe("icuMessageFormat",function(){return Ae(()=>import("./icu-message-format-BLJSLf7X.js").then(n=>n.i),[])}),idris:Xe("idris",function(){return Ae(()=>import("./idris-D8W8F3Du.js").then(n=>n.i),__vite__mapDeps([83,81]))}),iecst:Xe("iecst",function(){return Ae(()=>import("./iecst-DFLR7w9A.js").then(n=>n.i),[])}),ignore:Xe("ignore",function(){return Ae(()=>import("./ignore-DApMeS1M.js").then(n=>n.i),[])}),inform7:Xe("inform7",function(){return Ae(()=>import("./inform7-BbmmPtTe.js").then(n=>n.i),[])}),ini:Xe("ini",function(){return Ae(()=>import("./ini-D-w_ESm3.js").then(n=>n.i),[])}),io:Xe("io",function(){return Ae(()=>import("./io-CL7TQcwi.js").then(n=>n.i),[])}),j:Xe("j",function(){return Ae(()=>import("./j-uqAhSNfO.js").then(n=>n.j),[])}),java:Xe("java",function(){return Ae(()=>import("./java--eXhSgxg.js").then(n=>n.j),__vite__mapDeps([84,85]))}),javadoc:Xe("javadoc",function(){return Ae(()=>import("./javadoc-DLDzhXUx.js").then(n=>n.j),__vite__mapDeps([86,85,87]))}),javadoclike:Xe("javadoclike",function(){return Ae(()=>import("./javadoclike-CcxdcZFw.js").then(n=>n.j),__vite__mapDeps([88,87]))}),javascript:Xe("javascript",function(){return Ae(()=>import("./javascript-B2YTQvHv.js").then(n=>n.j),__vite__mapDeps([89,90]))}),javastacktrace:Xe("javastacktrace",function(){return Ae(()=>import("./javastacktrace-C2aQ6cZI.js").then(n=>n.j),[])}),jexl:Xe("jexl",function(){return Ae(()=>import("./jexl-SUbBpRa5.js").then(n=>n.j),[])}),jolie:Xe("jolie",function(){return Ae(()=>import("./jolie-DTTRmX_c.js").then(n=>n.j),[])}),jq:Xe("jq",function(){return Ae(()=>import("./jq-CNGqc8Wl.js").then(n=>n.j),[])}),jsExtras:Xe("jsExtras",function(){return Ae(()=>import("./js-extras-BomY8GiL.js").then(n=>n.j),[])}),jsTemplates:Xe("jsTemplates",function(){return Ae(()=>import("./js-templates-lvNz8Eo-.js").then(n=>n.j),[])}),jsdoc:Xe("jsdoc",function(){return Ae(()=>import("./jsdoc-CizF9nqb.js").then(n=>n.j),__vite__mapDeps([91,87,92]))}),json:Xe("json",function(){return Ae(()=>import("./json-vpv-MZJY.js").then(n=>n.j),__vite__mapDeps([93,94]))}),json5:Xe("json5",function(){return Ae(()=>import("./json5-Bszym-iC.js").then(n=>n.j),__vite__mapDeps([95,94]))}),jsonp:Xe("jsonp",function(){return Ae(()=>import("./jsonp-K9VXfRN3.js").then(n=>n.j),__vite__mapDeps([96,94]))}),jsstacktrace:Xe("jsstacktrace",function(){return Ae(()=>import("./jsstacktrace-5a-l-0QO.js").then(n=>n.j),[])}),jsx:Xe("jsx",function(){return Ae(()=>import("./jsx-NzQF_8Jf.js").then(n=>n.j),__vite__mapDeps([97,98]))}),julia:Xe("julia",function(){return Ae(()=>import("./julia-KpvUUzJF.js").then(n=>n.j),[])}),keepalived:Xe("keepalived",function(){return Ae(()=>import("./keepalived-CKdrdtrU.js").then(n=>n.k),[])}),keyman:Xe("keyman",function(){return Ae(()=>import("./keyman-CFPdCbAD.js").then(n=>n.k),[])}),kotlin:Xe("kotlin",function(){return Ae(()=>import("./kotlin-tQZl0Xk0.js").then(n=>n.k),[])}),kumir:Xe("kumir",function(){return Ae(()=>import("./kumir-DbBBFKAZ.js").then(n=>n.k),[])}),kusto:Xe("kusto",function(){return Ae(()=>import("./kusto-Bkg1G97b.js").then(n=>n.k),[])}),latex:Xe("latex",function(){return Ae(()=>import("./latex-BrfLAxV6.js").then(n=>n.l),[])}),latte:Xe("latte",function(){return Ae(()=>import("./latte-DsrdWVh6.js").then(n=>n.l),__vite__mapDeps([99,71,100]))}),less:Xe("less",function(){return Ae(()=>import("./less-Dq-Do1xB.js").then(n=>n.l),[])}),lilypond:Xe("lilypond",function(){return Ae(()=>import("./lilypond-BASpUvho.js").then(n=>n.l),__vite__mapDeps([101,102]))}),liquid:Xe("liquid",function(){return Ae(()=>import("./liquid-Co1yhavg.js").then(n=>n.l),__vite__mapDeps([103,71]))}),lisp:Xe("lisp",function(){return Ae(()=>import("./lisp-ybAJB-FH.js").then(n=>n.l),[])}),livescript:Xe("livescript",function(){return Ae(()=>import("./livescript-DLvgD8H_.js").then(n=>n.l),[])}),llvm:Xe("llvm",function(){return Ae(()=>import("./llvm-C0anU-7N.js").then(n=>n.l),[])}),log:Xe("log",function(){return Ae(()=>import("./log-D-8B5UAA.js").then(n=>n.l),[])}),lolcode:Xe("lolcode",function(){return Ae(()=>import("./lolcode-OUGz_qsa.js").then(n=>n.l),[])}),lua:Xe("lua",function(){return Ae(()=>import("./lua-Cc6kp-D4.js").then(n=>n.l),__vite__mapDeps([104,75]))}),magma:Xe("magma",function(){return Ae(()=>import("./magma-IaFf4RIf.js").then(n=>n.m),[])}),makefile:Xe("makefile",function(){return Ae(()=>import("./makefile-ChKu1MJ1.js").then(n=>n.m),[])}),markdown:Xe("markdown",function(){return Ae(()=>import("./markdown-DiMlCk4R.js").then(n=>n.m),[])}),markupTemplating:Xe("markupTemplating",function(){return Ae(()=>import("./markup-templating-BPwIASy-.js").then(n=>n.m),__vite__mapDeps([105,71]))}),markup:Xe("markup",function(){return Ae(()=>import("./markup-CEx1cEoC.js").then(n=>n.m),__vite__mapDeps([106,107]))}),matlab:Xe("matlab",function(){return Ae(()=>import("./matlab-C6qGYTR2.js").then(n=>n.m),[])}),maxscript:Xe("maxscript",function(){return Ae(()=>import("./maxscript-CAN0xBDN.js").then(n=>n.m),[])}),mel:Xe("mel",function(){return Ae(()=>import("./mel-CRG0vaFw.js").then(n=>n.m),[])}),mermaid:Xe("mermaid",function(){return Ae(()=>import("./mermaid-DTCIS1Vc.js").then(n=>n.m),[])}),mizar:Xe("mizar",function(){return Ae(()=>import("./mizar-CTjbYK1-.js").then(n=>n.m),[])}),mongodb:Xe("mongodb",function(){return Ae(()=>import("./mongodb-Dwy0e7tV.js").then(n=>n.m),[])}),monkey:Xe("monkey",function(){return Ae(()=>import("./monkey-5vs-VaHV.js").then(n=>n.m),[])}),moonscript:Xe("moonscript",function(){return Ae(()=>import("./moonscript-fT7DerrW.js").then(n=>n.m),[])}),n1ql:Xe("n1ql",function(){return Ae(()=>import("./n1ql-CyDT-nbG.js").then(n=>n.n),[])}),n4js:Xe("n4js",function(){return Ae(()=>import("./n4js-Dmgj3bgd.js").then(n=>n.n),[])}),nand2tetrisHdl:Xe("nand2tetrisHdl",function(){return Ae(()=>import("./nand2tetris-hdl-BPfjS0pS.js").then(n=>n.n),[])}),naniscript:Xe("naniscript",function(){return Ae(()=>import("./naniscript-AIaG6VzF.js").then(n=>n.n),[])}),nasm:Xe("nasm",function(){return Ae(()=>import("./nasm-CtaUAK1B.js").then(n=>n.n),[])}),neon:Xe("neon",function(){return Ae(()=>import("./neon-BGH8Px8Z.js").then(n=>n.n),[])}),nevod:Xe("nevod",function(){return Ae(()=>import("./nevod-DKwg2dRw.js").then(n=>n.n),[])}),nginx:Xe("nginx",function(){return Ae(()=>import("./nginx-CUZ2OZRs.js").then(n=>n.n),[])}),nim:Xe("nim",function(){return Ae(()=>import("./nim-DYHpidb8.js").then(n=>n.n),[])}),nix:Xe("nix",function(){return Ae(()=>import("./nix-DJt2Qxmn.js").then(n=>n.n),[])}),nsis:Xe("nsis",function(){return Ae(()=>import("./nsis-Bp97AH1A.js").then(n=>n.n),[])}),objectivec:Xe("objectivec",function(){return Ae(()=>import("./objectivec-DXwXxEEr.js").then(n=>n.o),__vite__mapDeps([108,51]))}),ocaml:Xe("ocaml",function(){return Ae(()=>import("./ocaml-alwbEKNU.js").then(n=>n.o),[])}),opencl:Xe("opencl",function(){return Ae(()=>import("./opencl-2tlv9GXY.js").then(n=>n.o),__vite__mapDeps([109,51]))}),openqasm:Xe("openqasm",function(){return Ae(()=>import("./openqasm-DQQ8Eb1t.js").then(n=>n.o),[])}),oz:Xe("oz",function(){return Ae(()=>import("./oz-CmR9PjHE.js").then(n=>n.o),[])}),parigp:Xe("parigp",function(){return Ae(()=>import("./parigp-n8ycxTI2.js").then(n=>n.p),[])}),parser:Xe("parser",function(){return Ae(()=>import("./parser-Bcvfazvc.js").then(n=>n.p),[])}),pascal:Xe("pascal",function(){return Ae(()=>import("./pascal-CFHsej71.js").then(n=>n.p),[])}),pascaligo:Xe("pascaligo",function(){return Ae(()=>import("./pascaligo-C8kSNPDA.js").then(n=>n.p),[])}),pcaxis:Xe("pcaxis",function(){return Ae(()=>import("./pcaxis-L1qB_TA8.js").then(n=>n.p),[])}),peoplecode:Xe("peoplecode",function(){return Ae(()=>import("./peoplecode-B3ZIbHRe.js").then(n=>n.p),[])}),perl:Xe("perl",function(){return Ae(()=>import("./perl-B4wSx8tF.js").then(n=>n.p),[])}),phpExtras:Xe("phpExtras",function(){return Ae(()=>import("./php-extras-D_l2V9st.js").then(n=>n.p),__vite__mapDeps([110,100,71]))}),php:Xe("php",function(){return Ae(()=>import("./php-Cp0BohX-.js").then(n=>n.p),__vite__mapDeps([111,100,71]))}),phpdoc:Xe("phpdoc",function(){return Ae(()=>import("./phpdoc-CK9N3DqC.js").then(n=>n.p),__vite__mapDeps([112,100,71,87]))}),plsql:Xe("plsql",function(){return Ae(()=>import("./plsql-C1Z_R7C0.js").then(n=>n.p),__vite__mapDeps([113,48]))}),powerquery:Xe("powerquery",function(){return Ae(()=>import("./powerquery-Cj9zzkL_.js").then(n=>n.p),[])}),powershell:Xe("powershell",function(){return Ae(()=>import("./powershell-BMCDkE8B.js").then(n=>n.p),[])}),processing:Xe("processing",function(){return Ae(()=>import("./processing-DOu9EyQL.js").then(n=>n.p),[])}),prolog:Xe("prolog",function(){return Ae(()=>import("./prolog-BDx-mKYw.js").then(n=>n.p),[])}),promql:Xe("promql",function(){return Ae(()=>import("./promql-CyuJUGgC.js").then(n=>n.p),[])}),properties:Xe("properties",function(){return Ae(()=>import("./properties-Cz9SwuSc.js").then(n=>n.p),[])}),protobuf:Xe("protobuf",function(){return Ae(()=>import("./protobuf-BCLdPaZg.js").then(n=>n.p),[])}),psl:Xe("psl",function(){return Ae(()=>import("./psl-BVzbXOmp.js").then(n=>n.p),[])}),pug:Xe("pug",function(){return Ae(()=>import("./pug-PBVvhxsU.js").then(n=>n.p),[])}),puppet:Xe("puppet",function(){return Ae(()=>import("./puppet-Bp5J_Xf6.js").then(n=>n.p),[])}),pure:Xe("pure",function(){return Ae(()=>import("./pure-BEODe8Ty.js").then(n=>n.p),[])}),purebasic:Xe("purebasic",function(){return Ae(()=>import("./purebasic-g8QwRKk9.js").then(n=>n.p),[])}),purescript:Xe("purescript",function(){return Ae(()=>import("./purescript-UFsBai8q.js").then(n=>n.p),__vite__mapDeps([114,81]))}),python:Xe("python",function(){return Ae(()=>import("./python-cW1cr4Xe.js").then(n=>n.p),[])}),q:Xe("q",function(){return Ae(()=>import("./q-CuXsyoDM.js").then(n=>n.q),[])}),qml:Xe("qml",function(){return Ae(()=>import("./qml-NgPknFa-.js").then(n=>n.q),[])}),qore:Xe("qore",function(){return Ae(()=>import("./qore-C0g-7ava.js").then(n=>n.q),[])}),qsharp:Xe("qsharp",function(){return Ae(()=>import("./qsharp-BrQJYopz.js").then(n=>n.q),[])}),r:Xe("r",function(){return Ae(()=>import("./r-ivB35FJi.js").then(n=>n.r),[])}),racket:Xe("racket",function(){return Ae(()=>import("./racket-D6952iA-.js").then(n=>n.r),__vite__mapDeps([115,102]))}),reason:Xe("reason",function(){return Ae(()=>import("./reason-BxyJj1Wv.js").then(n=>n.r),[])}),regex:Xe("regex",function(){return Ae(()=>import("./regex-UCZUa98R.js").then(n=>n.r),[])}),rego:Xe("rego",function(){return Ae(()=>import("./rego-D5bYSBEk.js").then(n=>n.r),[])}),renpy:Xe("renpy",function(){return Ae(()=>import("./renpy-DTdz45My.js").then(n=>n.r),[])}),rest:Xe("rest",function(){return Ae(()=>import("./rest-BxrDSOtP.js").then(n=>n.r),[])}),rip:Xe("rip",function(){return Ae(()=>import("./rip-CvJDF04l.js").then(n=>n.r),[])}),roboconf:Xe("roboconf",function(){return Ae(()=>import("./roboconf-DpPdQtT6.js").then(n=>n.r),[])}),robotframework:Xe("robotframework",function(){return Ae(()=>import("./robotframework-CvzHhnGx.js").then(n=>n.r),[])}),ruby:Xe("ruby",function(){return Ae(()=>import("./ruby-BYts9dao.js").then(n=>n.r),__vite__mapDeps([116,65]))}),rust:Xe("rust",function(){return Ae(()=>import("./rust-DhU6TFsm.js").then(n=>n.r),[])}),sas:Xe("sas",function(){return Ae(()=>import("./sas-ChhKHWGM.js").then(n=>n.s),[])}),sass:Xe("sass",function(){return Ae(()=>import("./sass-C57bJt_A.js").then(n=>n.s),[])}),scala:Xe("scala",function(){return Ae(()=>import("./scala-Cg28kNry.js").then(n=>n.s),__vite__mapDeps([117,85]))}),scheme:Xe("scheme",function(){return Ae(()=>import("./scheme-Bpk-KLc_.js").then(n=>n.s),__vite__mapDeps([118,102]))}),scss:Xe("scss",function(){return Ae(()=>import("./scss-BeU7qozo.js").then(n=>n.s),[])}),shellSession:Xe("shellSession",function(){return Ae(()=>import("./shell-session-N4BUyO5b.js").then(n=>n.s),__vite__mapDeps([119,55]))}),smali:Xe("smali",function(){return Ae(()=>import("./smali-OZwkp_pU.js").then(n=>n.s),[])}),smalltalk:Xe("smalltalk",function(){return Ae(()=>import("./smalltalk-Bgd8uXdt.js").then(n=>n.s),[])}),smarty:Xe("smarty",function(){return Ae(()=>import("./smarty-BbqdJT5w.js").then(n=>n.s),__vite__mapDeps([120,71]))}),sml:Xe("sml",function(){return Ae(()=>import("./sml-DbDOAWsQ.js").then(n=>n.s),[])}),solidity:Xe("solidity",function(){return Ae(()=>import("./solidity-DkQCaL_X.js").then(n=>n.s),[])}),solutionFile:Xe("solutionFile",function(){return Ae(()=>import("./solution-file-DFlRPhIk.js").then(n=>n.s),[])}),soy:Xe("soy",function(){return Ae(()=>import("./soy-CqM5aRME.js").then(n=>n.s),__vite__mapDeps([121,71]))}),sparql:Xe("sparql",function(){return Ae(()=>import("./sparql-B1GALy7V.js").then(n=>n.s),__vite__mapDeps([122,123]))}),splunkSpl:Xe("splunkSpl",function(){return Ae(()=>import("./splunk-spl-DrNqni3-.js").then(n=>n.s),[])}),sqf:Xe("sqf",function(){return Ae(()=>import("./sqf-BeBvdmXG.js").then(n=>n.s),[])}),sql:Xe("sql",function(){return Ae(()=>import("./sql-CtDLgxfq.js").then(n=>n.s),__vite__mapDeps([124,48]))}),squirrel:Xe("squirrel",function(){return Ae(()=>import("./squirrel-COkcd8Tr.js").then(n=>n.s),[])}),stan:Xe("stan",function(){return Ae(()=>import("./stan-C1_hogQu.js").then(n=>n.s),[])}),stylus:Xe("stylus",function(){return Ae(()=>import("./stylus-Dw8891LS.js").then(n=>n.s),[])}),swift:Xe("swift",function(){return Ae(()=>import("./swift-B97O9HHR.js").then(n=>n.s),[])}),systemd:Xe("systemd",function(){return Ae(()=>import("./systemd-CUtXAwEb.js").then(n=>n.s),[])}),t4Cs:Xe("t4Cs",function(){return Ae(()=>import("./t4-cs-CyYMVAUn.js").then(n=>n.t),__vite__mapDeps([125,126,53]))}),t4Templating:Xe("t4Templating",function(){return Ae(()=>import("./t4-templating-Du1KIrkv.js").then(n=>n.t),__vite__mapDeps([127,126]))}),t4Vb:Xe("t4Vb",function(){return Ae(()=>import("./t4-vb-Pwd8zhQY.js").then(n=>n.t),__vite__mapDeps([128,126,129,57]))}),tap:Xe("tap",function(){return Ae(()=>import("./tap-C5-eahra.js").then(n=>n.t),__vite__mapDeps([130,131]))}),tcl:Xe("tcl",function(){return Ae(()=>import("./tcl-CQrWCRuJ.js").then(n=>n.t),[])}),textile:Xe("textile",function(){return Ae(()=>import("./textile-CyJk6SWo.js").then(n=>n.t),[])}),toml:Xe("toml",function(){return Ae(()=>import("./toml-Cact8Vna.js").then(n=>n.t),[])}),tremor:Xe("tremor",function(){return Ae(()=>import("./tremor-BBmidx_C.js").then(n=>n.t),[])}),tsx:Xe("tsx",function(){return Ae(()=>import("./tsx-BFgSfn5D.js").then(n=>n.t),__vite__mapDeps([132,98,92]))}),tt2:Xe("tt2",function(){return Ae(()=>import("./tt2-CG-UIBmK.js").then(n=>n.t),__vite__mapDeps([133,71]))}),turtle:Xe("turtle",function(){return Ae(()=>import("./turtle-DigfRE97.js").then(n=>n.t),__vite__mapDeps([134,123]))}),twig:Xe("twig",function(){return Ae(()=>import("./twig-PmY_cDoq.js").then(n=>n.t),__vite__mapDeps([135,71]))}),typescript:Xe("typescript",function(){return Ae(()=>import("./typescript-Da47IE7f.js").then(n=>n.t),__vite__mapDeps([136,92]))}),typoscript:Xe("typoscript",function(){return Ae(()=>import("./typoscript-CgZr5jEZ.js").then(n=>n.t),[])}),unrealscript:Xe("unrealscript",function(){return Ae(()=>import("./unrealscript-BI_pn0rK.js").then(n=>n.u),[])}),uorazor:Xe("uorazor",function(){return Ae(()=>import("./uorazor-C7IhUkD6.js").then(n=>n.u),[])}),uri:Xe("uri",function(){return Ae(()=>import("./uri-BP2d8Ze2.js").then(n=>n.u),[])}),v:Xe("v",function(){return Ae(()=>import("./v-B9O-tbsS.js").then(n=>n.v),[])}),vala:Xe("vala",function(){return Ae(()=>import("./vala-CS5ZRPeA.js").then(n=>n.v),[])}),vbnet:Xe("vbnet",function(){return Ae(()=>import("./vbnet-B0hx3qRp.js").then(n=>n.v),__vite__mapDeps([137,129,57]))}),velocity:Xe("velocity",function(){return Ae(()=>import("./velocity-QemisC16.js").then(n=>n.v),[])}),verilog:Xe("verilog",function(){return Ae(()=>import("./verilog-jjjMAm_Y.js").then(n=>n.v),[])}),vhdl:Xe("vhdl",function(){return Ae(()=>import("./vhdl-B9EszVuj.js").then(n=>n.v),[])}),vim:Xe("vim",function(){return Ae(()=>import("./vim-CxDlf-dr.js").then(n=>n.v),[])}),visualBasic:Xe("visualBasic",function(){return Ae(()=>import("./visual-basic-CfhBm1gF.js").then(n=>n.v),[])}),warpscript:Xe("warpscript",function(){return Ae(()=>import("./warpscript-DL5ToBao.js").then(n=>n.w),[])}),wasm:Xe("wasm",function(){return Ae(()=>import("./wasm-C5WawCVZ.js").then(n=>n.w),[])}),webIdl:Xe("webIdl",function(){return Ae(()=>import("./web-idl-DWKDo7hm.js").then(n=>n.w),[])}),wiki:Xe("wiki",function(){return Ae(()=>import("./wiki-BHpSxg4K.js").then(n=>n.w),[])}),wolfram:Xe("wolfram",function(){return Ae(()=>import("./wolfram-C_oBzCJW.js").then(n=>n.w),[])}),wren:Xe("wren",function(){return Ae(()=>import("./wren-CA1nFGqi.js").then(n=>n.w),[])}),xeora:Xe("xeora",function(){return Ae(()=>import("./xeora-BtUuVarv.js").then(n=>n.x),[])}),xmlDoc:Xe("xmlDoc",function(){return Ae(()=>import("./xml-doc-DhUg29aH.js").then(n=>n.x),[])}),xojo:Xe("xojo",function(){return Ae(()=>import("./xojo-BmgifBv1.js").then(n=>n.x),[])}),xquery:Xe("xquery",function(){return Ae(()=>import("./xquery-7FfNXUZg.js").then(n=>n.x),[])}),yaml:Xe("yaml",function(){return Ae(()=>import("./yaml-BOp0Lh0S.js").then(n=>n.y),__vite__mapDeps([138,131]))}),yang:Xe("yang",function(){return Ae(()=>import("./yang-CLUWUZcf.js").then(n=>n.y),[])}),zig:Xe("zig",function(){return Ae(()=>import("./zig-DdXASuyK.js").then(n=>n.z),[])})},myt=pyt({loader:function(){return Ae(()=>import("./core-UDSDYEIa.js").then(e=>e.c),__vite__mapDeps([139,107,69,62,90])).then(function(e){return e.default||e})},isLanguageRegistered:function(e,t){return e.registered(t)},languageLoaders:gyt,registerLanguage:function(e,t,i){return e.register(i)}}),Tyt={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}},byt={'code[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"]::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},prolog:{color:"hsl(230, 4%, 64%)"},cdata:{color:"hsl(230, 4%, 64%)"},doctype:{color:"hsl(230, 8%, 24%)"},punctuation:{color:"hsl(230, 8%, 24%)"},entity:{color:"hsl(230, 8%, 24%)",cursor:"help"},"attr-name":{color:"hsl(35, 99%, 36%)"},"class-name":{color:"hsl(35, 99%, 36%)"},boolean:{color:"hsl(35, 99%, 36%)"},constant:{color:"hsl(35, 99%, 36%)"},number:{color:"hsl(35, 99%, 36%)"},atrule:{color:"hsl(35, 99%, 36%)"},keyword:{color:"hsl(301, 63%, 40%)"},property:{color:"hsl(5, 74%, 59%)"},tag:{color:"hsl(5, 74%, 59%)"},symbol:{color:"hsl(5, 74%, 59%)"},deleted:{color:"hsl(5, 74%, 59%)"},important:{color:"hsl(5, 74%, 59%)"},selector:{color:"hsl(119, 34%, 47%)"},string:{color:"hsl(119, 34%, 47%)"},char:{color:"hsl(119, 34%, 47%)"},builtin:{color:"hsl(119, 34%, 47%)"},inserted:{color:"hsl(119, 34%, 47%)"},regex:{color:"hsl(119, 34%, 47%)"},"attr-value":{color:"hsl(119, 34%, 47%)"},"attr-value > .token.punctuation":{color:"hsl(119, 34%, 47%)"},variable:{color:"hsl(221, 87%, 60%)"},operator:{color:"hsl(221, 87%, 60%)"},function:{color:"hsl(221, 87%, 60%)"},url:{color:"hsl(198, 99%, 37%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(230, 8%, 24%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(230, 8%, 24%)"},".language-css .token.selector":{color:"hsl(5, 74%, 59%)"},".language-css .token.property":{color:"hsl(230, 8%, 24%)"},".language-css .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.string.url":{color:"hsl(119, 34%, 47%)"},".language-css .token.important":{color:"hsl(301, 63%, 40%)"},".language-css .token.atrule .token.rule":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.operator":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(344, 84%, 43%)"},".language-json .token.operator":{color:"hsl(230, 8%, 24%)"},".language-json .token.null.keyword":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.url":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.operator":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.content":{color:"hsl(221, 87%, 60%)"},".language-markdown .token.url > .token.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.url-reference.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(119, 34%, 47%)"},".language-markdown .token.bold .token.content":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.italic .token.content":{color:"hsl(301, 63%, 40%)"},".language-markdown .token.strike .token.content":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.list.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(5, 74%, 59%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.cr:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.lf:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.space:before":{color:"hsla(230, 8%, 24%, 0.2)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},".line-highlight.line-highlight":{background:"hsla(230, 8%, 24%, 0.05)"},".line-highlight.line-highlight:before":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(230, 8%, 24%, 0.05)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".command-line .command-line-prompt":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(230, 1%, 62%)"},".command-line .command-line-prompt > span:before":{color:"hsl(230, 1%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(301, 63%, 40%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(0, 0, 95%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(0, 0, 95%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(0, 0, 95%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(0, 0, 95%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(0, 0%, 100%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(230, 8%, 24%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(230, 8%, 24%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(230, 8%, 24%)"}},sge=/[#.]/g;function _yt(n,e){const t=n||"",i={};let r=0,s,a;for(;r<t.length;){sge.lastIndex=r;const o=sge.exec(t),l=t.slice(r,o?o.index:t.length);l&&(s?s==="#"?i.id=l:Array.isArray(i.className)?i.className.push(l):i.className=[l]:a=l,r+=l.length),o&&(s=o[0],r++)}return{type:"element",tagName:a||e||"div",properties:i,children:[]}}function ADe(n,e,t){const i=t?Cyt(t):void 0;function r(s,a,...o){let l;if(s==null){l={type:"root",children:[]};const c=a;o.unshift(c)}else{l=_yt(s,e);const c=l.tagName.toLowerCase(),u=i?i.get(c):void 0;if(l.tagName=u||c,vyt(a))o.unshift(a);else for(const[h,d]of Object.entries(a))yyt(n,l.properties,h,d)}for(const c of o)YJ(l.children,c);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return r}function vyt(n){if(n===null||typeof n!="object"||Array.isArray(n))return!0;if(typeof n.type!="string")return!1;const e=n,t=Object.keys(n);for(const i of t){const r=e[i];if(r&&typeof r=="object"){if(!Array.isArray(r))return!0;const s=r;for(const a of s)if(typeof a!="number"&&typeof a!="string")return!0}}return!!("children"in n&&Array.isArray(n.children))}function yyt(n,e,t,i){const r=Joe(n,t);let s;if(i!=null){if(typeof i=="number"){if(Number.isNaN(i))return;s=i}else typeof i=="boolean"?s=i:typeof i=="string"?r.spaceSeparated?s=ufe(i):r.commaSeparated?s=sfe(i):r.commaOrSpaceSeparated?s=ufe(sfe(i).join(" ")):s=oge(r,r.property,i):Array.isArray(i)?s=[...i]:s=r.property==="style"?wyt(i):String(i);if(Array.isArray(s)){const a=[];for(const o of s)a.push(oge(r,r.property,o));s=a}r.property==="className"&&Array.isArray(e.className)&&(s=e.className.concat(s)),e[r.property]=s}}function YJ(n,e){if(e!=null)if(typeof e=="number"||typeof e=="string")n.push({type:"text",value:String(e)});else if(Array.isArray(e))for(const t of e)YJ(n,t);else if(typeof e=="object"&&"type"in e)e.type==="root"?YJ(n,e.children):n.push(e);else throw new Error("Expected node, nodes, or string, got `"+e+"`")}function oge(n,e,t){if(typeof t=="string"){if(n.number&&t&&!Number.isNaN(Number(t)))return Number(t);if((n.boolean||n.overloadedBoolean)&&(t===""||UE(t)===UE(e)))return!0}return t}function wyt(n){const e=[];for(const[t,i]of Object.entries(n))e.push([t,i].join(": "));return e.join("; ")}function Cyt(n){const e=new Map;for(const t of n)e.set(t.toLowerCase(),t);return e}const Qyt=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],xyt=ADe(YV,"div"),Syt=ADe(NC,"g",Qyt);function Lyt(n){const e=String(n),t=[];return{toOffset:r,toPoint:i};function i(s){if(typeof s=="number"&&s>-1&&s<=e.length){let a=0;for(;;){let o=t[a];if(o===void 0){const l=age(e,t[a-1]);o=l===-1?e.length+1:l+1,t[a]=o}if(o>s)return{line:a+1,column:s-(a>0?t[a-1]:0)+1,offset:s};a++}}}function r(s){if(s&&typeof s.line=="number"&&typeof s.column=="number"&&!Number.isNaN(s.line)&&!Number.isNaN(s.column)){for(;t.length<s.line;){const o=t[t.length-1],l=age(e,o),c=l===-1?e.length+1:l+1;if(o===c)break;t.push(c)}const a=(s.line>1?t[s.line-2]:0)+s.column-1;if(a<t[s.line-1])return a}}}function age(n,e){const t=n.indexOf("\r",e),i=n.indexOf(`
452
+ `).length);var Qe=Pe+v,_e=cyt(Le,C,E,g,T,v,Qe,y,S);return br.createElement(k,oe,br.createElement(R,h,!T&&Z,I({rows:_e,stylesheet:o,useInlineStyles:f})))}}function GJ(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */GJ=function(){return e};var n,e={},t=Object.prototype,i=t.hasOwnProperty,r=Object.defineProperty||function(R,H,j){R[H]=j.value},s=typeof Symbol=="function"?Symbol:{},a=s.iterator||"@@iterator",o=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function c(R,H,j){return Object.defineProperty(R,H,{value:j,enumerable:!0,configurable:!0,writable:!0}),R[H]}try{c({},"")}catch{c=function(j,U,W){return j[U]=W}}function u(R,H,j,U){var W=H&&H.prototype instanceof T?H:T,Z=Object.create(W.prototype),te=new k(U||[]);return r(Z,"_invoke",{value:L(R,j,te)}),Z}function h(R,H,j){try{return{type:"normal",arg:R.call(H,j)}}catch(U){return{type:"throw",arg:U}}}e.wrap=u;var d="suspendedStart",f="suspendedYield",p="executing",g="completed",m={};function T(){}function b(){}function v(){}var _={};c(_,a,function(){return this});var w=Object.getPrototypeOf,y=w&&w(w(N([])));y&&y!==t&&i.call(y,a)&&(_=y);var C=v.prototype=T.prototype=Object.create(_);function x(R){["next","throw","return"].forEach(function(H){c(R,H,function(j){return this._invoke(H,j)})})}function S(R,H){function j(W,Z,te,X){var oe=h(R[W],R,Z);if(oe.type!=="throw"){var fe=oe.arg,Le=fe.value;return Le&&f4(Le)=="object"&&i.call(Le,"__await")?H.resolve(Le.__await).then(function(Pe){j("next",Pe,te,X)},function(Pe){j("throw",Pe,te,X)}):H.resolve(Le).then(function(Pe){fe.value=Pe,te(fe)},function(Pe){return j("throw",Pe,te,X)})}X(oe.arg)}var U;r(this,"_invoke",{value:function(Z,te){function X(){return new H(function(oe,fe){j(Z,te,oe,fe)})}return U=U?U.then(X,X):X()}})}function L(R,H,j){var U=d;return function(W,Z){if(U===p)throw Error("Generator is already running");if(U===g){if(W==="throw")throw Z;return{value:n,done:!0}}for(j.method=W,j.arg=Z;;){var te=j.delegate;if(te){var X=E(te,j);if(X){if(X===m)continue;return X}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(U===d)throw U=g,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);U=p;var oe=h(R,H,j);if(oe.type==="normal"){if(U=j.done?g:f,oe.arg===m)continue;return{value:oe.arg,done:j.done}}oe.type==="throw"&&(U=g,j.method="throw",j.arg=oe.arg)}}}function E(R,H){var j=H.method,U=R.iterator[j];if(U===n)return H.delegate=null,j==="throw"&&R.iterator.return&&(H.method="return",H.arg=n,E(R,H),H.method==="throw")||j!=="return"&&(H.method="throw",H.arg=new TypeError("The iterator does not provide a '"+j+"' method")),m;var W=h(U,R.iterator,H.arg);if(W.type==="throw")return H.method="throw",H.arg=W.arg,H.delegate=null,m;var Z=W.arg;return Z?Z.done?(H[R.resultName]=Z.value,H.next=R.nextLoc,H.method!=="return"&&(H.method="next",H.arg=n),H.delegate=null,m):Z:(H.method="throw",H.arg=new TypeError("iterator result is not an object"),H.delegate=null,m)}function I(R){var H={tryLoc:R[0]};1 in R&&(H.catchLoc=R[1]),2 in R&&(H.finallyLoc=R[2],H.afterLoc=R[3]),this.tryEntries.push(H)}function O(R){var H=R.completion||{};H.type="normal",delete H.arg,R.completion=H}function k(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(I,this),this.reset(!0)}function N(R){if(R||R===""){var H=R[a];if(H)return H.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var j=-1,U=function W(){for(;++j<R.length;)if(i.call(R,j))return W.value=R[j],W.done=!1,W;return W.value=n,W.done=!0,W};return U.next=U}}throw new TypeError(f4(R)+" is not iterable")}return b.prototype=v,r(C,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:b,configurable:!0}),b.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(R){var H=typeof R=="function"&&R.constructor;return!!H&&(H===b||(H.displayName||H.name)==="GeneratorFunction")},e.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,v):(R.__proto__=v,c(R,l,"GeneratorFunction")),R.prototype=Object.create(C),R},e.awrap=function(R){return{__await:R}},x(S.prototype),c(S.prototype,o,function(){return this}),e.AsyncIterator=S,e.async=function(R,H,j,U,W){W===void 0&&(W=Promise);var Z=new S(u(R,H,j,U),W);return e.isGeneratorFunction(H)?Z:Z.next().then(function(te){return te.done?te.value:Z.next()})},x(C),c(C,l,"Generator"),c(C,a,function(){return this}),c(C,"toString",function(){return"[object Generator]"}),e.keys=function(R){var H=Object(R),j=[];for(var U in H)j.push(U);return j.reverse(),function W(){for(;j.length;){var Z=j.pop();if(Z in H)return W.value=Z,W.done=!1,W}return W.done=!0,W}},e.values=N,k.prototype={constructor:k,reset:function(H){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(O),!H)for(var j in this)j.charAt(0)==="t"&&i.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=n)},stop:function(){this.done=!0;var H=this.tryEntries[0].completion;if(H.type==="throw")throw H.arg;return this.rval},dispatchException:function(H){if(this.done)throw H;var j=this;function U(fe,Le){return te.type="throw",te.arg=H,j.next=fe,Le&&(j.method="next",j.arg=n),!!Le}for(var W=this.tryEntries.length-1;W>=0;--W){var Z=this.tryEntries[W],te=Z.completion;if(Z.tryLoc==="root")return U("end");if(Z.tryLoc<=this.prev){var X=i.call(Z,"catchLoc"),oe=i.call(Z,"finallyLoc");if(X&&oe){if(this.prev<Z.catchLoc)return U(Z.catchLoc,!0);if(this.prev<Z.finallyLoc)return U(Z.finallyLoc)}else if(X){if(this.prev<Z.catchLoc)return U(Z.catchLoc,!0)}else{if(!oe)throw Error("try statement without catch or finally");if(this.prev<Z.finallyLoc)return U(Z.finallyLoc)}}}},abrupt:function(H,j){for(var U=this.tryEntries.length-1;U>=0;--U){var W=this.tryEntries[U];if(W.tryLoc<=this.prev&&i.call(W,"finallyLoc")&&this.prev<W.finallyLoc){var Z=W;break}}Z&&(H==="break"||H==="continue")&&Z.tryLoc<=j&&j<=Z.finallyLoc&&(Z=null);var te=Z?Z.completion:{};return te.type=H,te.arg=j,Z?(this.method="next",this.next=Z.finallyLoc,m):this.complete(te)},complete:function(H,j){if(H.type==="throw")throw H.arg;return H.type==="break"||H.type==="continue"?this.next=H.arg:H.type==="return"?(this.rval=this.arg=H.arg,this.method="return",this.next="end"):H.type==="normal"&&j&&(this.next=j),m},finish:function(H){for(var j=this.tryEntries.length-1;j>=0;--j){var U=this.tryEntries[j];if(U.finallyLoc===H)return this.complete(U.completion,U.afterLoc),O(U),m}},catch:function(H){for(var j=this.tryEntries.length-1;j>=0;--j){var U=this.tryEntries[j];if(U.tryLoc===H){var W=U.completion;if(W.type==="throw"){var Z=W.arg;O(U)}return Z}}throw Error("illegal catch attempt")},delegateYield:function(H,j,U){return this.delegate={iterator:N(H),resultName:j,nextLoc:U},this.method==="next"&&(this.arg=n),m}},e}function fyt(n,e,t){return e=cF(e),Wvt(n,kDe()?Reflect.construct(e,t||[],cF(n).constructor):e.apply(n,t))}function kDe(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kDe=function(){return!!n})()}const pyt=(function(n){var e,t=n.loader,i=n.isLanguageRegistered,r=n.registerLanguage,s=n.languageLoaders,a=n.noAsyncLoadingLanguages,o=(function(l){function c(){return Jwe(this,c),fyt(this,c,arguments)}return Uvt(c,l),tCe(c,[{key:"componentDidUpdate",value:function(){!c.isRegistered(this.props.language)&&s&&this.loadLanguage()}},{key:"componentDidMount",value:function(){var h=this;c.astGeneratorPromise||c.loadAstGenerator(),c.astGenerator||c.astGeneratorPromise.then(function(){h.forceUpdate()}),!c.isRegistered(this.props.language)&&s&&this.loadLanguage()}},{key:"loadLanguage",value:function(){var h=this,d=this.props.language;d!=="text"&&c.loadLanguage(d).then(function(){return h.forceUpdate()}).catch(function(){})}},{key:"normalizeLanguage",value:function(h){return c.isSupportedLanguage(h)?h:"text"}},{key:"render",value:function(){return br.createElement(c.highlightInstance,lF({},this.props,{language:this.normalizeLanguage(this.props.language),astGenerator:c.astGenerator}))}}],[{key:"preload",value:function(){return c.loadAstGenerator()}},{key:"loadLanguage",value:(function(){var u=CDe(GJ().mark(function d(f){var p;return GJ().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(p=s[f],typeof p!="function"){m.next=5;break}return m.abrupt("return",p(c.registerLanguage));case 5:throw new Error("Language ".concat(f," not supported"));case 6:case"end":return m.stop()}},d)}));function h(d){return u.apply(this,arguments)}return h})()},{key:"isSupportedLanguage",value:function(h){return c.isRegistered(h)||typeof s[h]=="function"}},{key:"loadAstGenerator",value:function(){return c.astGeneratorPromise=t().then(function(h){c.astGenerator=h,r&&c.languages.forEach(function(d,f){return r(h,f,d)})}),c.astGeneratorPromise}}])})(br.PureComponent);return e=o,Dg(o,"astGenerator",null),Dg(o,"highlightInstance",hyt(null,{})),Dg(o,"astGeneratorPromise",null),Dg(o,"languages",new Map),Dg(o,"supportedLanguages",n.supportedLanguages||Object.keys(s||{})),Dg(o,"isRegistered",function(l){if(a)return!0;if(!r)throw new Error("Current syntax highlighter doesn't support registration of languages");return e.astGenerator?i(e.astGenerator,l):e.languages.has(l)}),Dg(o,"registerLanguage",function(l,c){if(!r)throw new Error("Current syntax highlighter doesn't support registration of languages");if(e.astGenerator)return r(e.astGenerator,l,c);e.languages.set(l,c)}),o});function KJ(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */KJ=function(){return e};var n,e={},t=Object.prototype,i=t.hasOwnProperty,r=Object.defineProperty||function(R,H,j){R[H]=j.value},s=typeof Symbol=="function"?Symbol:{},a=s.iterator||"@@iterator",o=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function c(R,H,j){return Object.defineProperty(R,H,{value:j,enumerable:!0,configurable:!0,writable:!0}),R[H]}try{c({},"")}catch{c=function(j,U,W){return j[U]=W}}function u(R,H,j,U){var W=H&&H.prototype instanceof T?H:T,Z=Object.create(W.prototype),te=new k(U||[]);return r(Z,"_invoke",{value:L(R,j,te)}),Z}function h(R,H,j){try{return{type:"normal",arg:R.call(H,j)}}catch(U){return{type:"throw",arg:U}}}e.wrap=u;var d="suspendedStart",f="suspendedYield",p="executing",g="completed",m={};function T(){}function b(){}function v(){}var _={};c(_,a,function(){return this});var w=Object.getPrototypeOf,y=w&&w(w(N([])));y&&y!==t&&i.call(y,a)&&(_=y);var C=v.prototype=T.prototype=Object.create(_);function x(R){["next","throw","return"].forEach(function(H){c(R,H,function(j){return this._invoke(H,j)})})}function S(R,H){function j(W,Z,te,X){var oe=h(R[W],R,Z);if(oe.type!=="throw"){var fe=oe.arg,Le=fe.value;return Le&&f4(Le)=="object"&&i.call(Le,"__await")?H.resolve(Le.__await).then(function(Pe){j("next",Pe,te,X)},function(Pe){j("throw",Pe,te,X)}):H.resolve(Le).then(function(Pe){fe.value=Pe,te(fe)},function(Pe){return j("throw",Pe,te,X)})}X(oe.arg)}var U;r(this,"_invoke",{value:function(Z,te){function X(){return new H(function(oe,fe){j(Z,te,oe,fe)})}return U=U?U.then(X,X):X()}})}function L(R,H,j){var U=d;return function(W,Z){if(U===p)throw Error("Generator is already running");if(U===g){if(W==="throw")throw Z;return{value:n,done:!0}}for(j.method=W,j.arg=Z;;){var te=j.delegate;if(te){var X=E(te,j);if(X){if(X===m)continue;return X}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(U===d)throw U=g,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);U=p;var oe=h(R,H,j);if(oe.type==="normal"){if(U=j.done?g:f,oe.arg===m)continue;return{value:oe.arg,done:j.done}}oe.type==="throw"&&(U=g,j.method="throw",j.arg=oe.arg)}}}function E(R,H){var j=H.method,U=R.iterator[j];if(U===n)return H.delegate=null,j==="throw"&&R.iterator.return&&(H.method="return",H.arg=n,E(R,H),H.method==="throw")||j!=="return"&&(H.method="throw",H.arg=new TypeError("The iterator does not provide a '"+j+"' method")),m;var W=h(U,R.iterator,H.arg);if(W.type==="throw")return H.method="throw",H.arg=W.arg,H.delegate=null,m;var Z=W.arg;return Z?Z.done?(H[R.resultName]=Z.value,H.next=R.nextLoc,H.method!=="return"&&(H.method="next",H.arg=n),H.delegate=null,m):Z:(H.method="throw",H.arg=new TypeError("iterator result is not an object"),H.delegate=null,m)}function I(R){var H={tryLoc:R[0]};1 in R&&(H.catchLoc=R[1]),2 in R&&(H.finallyLoc=R[2],H.afterLoc=R[3]),this.tryEntries.push(H)}function O(R){var H=R.completion||{};H.type="normal",delete H.arg,R.completion=H}function k(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(I,this),this.reset(!0)}function N(R){if(R||R===""){var H=R[a];if(H)return H.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var j=-1,U=function W(){for(;++j<R.length;)if(i.call(R,j))return W.value=R[j],W.done=!1,W;return W.value=n,W.done=!0,W};return U.next=U}}throw new TypeError(f4(R)+" is not iterable")}return b.prototype=v,r(C,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:b,configurable:!0}),b.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(R){var H=typeof R=="function"&&R.constructor;return!!H&&(H===b||(H.displayName||H.name)==="GeneratorFunction")},e.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,v):(R.__proto__=v,c(R,l,"GeneratorFunction")),R.prototype=Object.create(C),R},e.awrap=function(R){return{__await:R}},x(S.prototype),c(S.prototype,o,function(){return this}),e.AsyncIterator=S,e.async=function(R,H,j,U,W){W===void 0&&(W=Promise);var Z=new S(u(R,H,j,U),W);return e.isGeneratorFunction(H)?Z:Z.next().then(function(te){return te.done?te.value:Z.next()})},x(C),c(C,l,"Generator"),c(C,a,function(){return this}),c(C,"toString",function(){return"[object Generator]"}),e.keys=function(R){var H=Object(R),j=[];for(var U in H)j.push(U);return j.reverse(),function W(){for(;j.length;){var Z=j.pop();if(Z in H)return W.value=Z,W.done=!1,W}return W.done=!0,W}},e.values=N,k.prototype={constructor:k,reset:function(H){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(O),!H)for(var j in this)j.charAt(0)==="t"&&i.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=n)},stop:function(){this.done=!0;var H=this.tryEntries[0].completion;if(H.type==="throw")throw H.arg;return this.rval},dispatchException:function(H){if(this.done)throw H;var j=this;function U(fe,Le){return te.type="throw",te.arg=H,j.next=fe,Le&&(j.method="next",j.arg=n),!!Le}for(var W=this.tryEntries.length-1;W>=0;--W){var Z=this.tryEntries[W],te=Z.completion;if(Z.tryLoc==="root")return U("end");if(Z.tryLoc<=this.prev){var X=i.call(Z,"catchLoc"),oe=i.call(Z,"finallyLoc");if(X&&oe){if(this.prev<Z.catchLoc)return U(Z.catchLoc,!0);if(this.prev<Z.finallyLoc)return U(Z.finallyLoc)}else if(X){if(this.prev<Z.catchLoc)return U(Z.catchLoc,!0)}else{if(!oe)throw Error("try statement without catch or finally");if(this.prev<Z.finallyLoc)return U(Z.finallyLoc)}}}},abrupt:function(H,j){for(var U=this.tryEntries.length-1;U>=0;--U){var W=this.tryEntries[U];if(W.tryLoc<=this.prev&&i.call(W,"finallyLoc")&&this.prev<W.finallyLoc){var Z=W;break}}Z&&(H==="break"||H==="continue")&&Z.tryLoc<=j&&j<=Z.finallyLoc&&(Z=null);var te=Z?Z.completion:{};return te.type=H,te.arg=j,Z?(this.method="next",this.next=Z.finallyLoc,m):this.complete(te)},complete:function(H,j){if(H.type==="throw")throw H.arg;return H.type==="break"||H.type==="continue"?this.next=H.arg:H.type==="return"?(this.rval=this.arg=H.arg,this.method="return",this.next="end"):H.type==="normal"&&j&&(this.next=j),m},finish:function(H){for(var j=this.tryEntries.length-1;j>=0;--j){var U=this.tryEntries[j];if(U.finallyLoc===H)return this.complete(U.completion,U.afterLoc),O(U),m}},catch:function(H){for(var j=this.tryEntries.length-1;j>=0;--j){var U=this.tryEntries[j];if(U.tryLoc===H){var W=U.completion;if(W.type==="throw"){var Z=W.arg;O(U)}return Z}}throw Error("illegal catch attempt")},delegateYield:function(H,j,U){return this.delegate={iterator:N(H),resultName:j,nextLoc:U},this.method==="next"&&(this.arg=n),m}},e}const Xe=(function(n,e){return(function(){var t=CDe(KJ().mark(function i(r){var s;return KJ().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,e();case 2:s=o.sent,r(n,s.default||s);case 4:case"end":return o.stop()}},i)}));return function(i){return t.apply(this,arguments)}})()}),gyt={abap:Xe("abap",function(){return Ae(()=>import("./abap-mo7PPmCt.js").then(n=>n.a),[])}),abnf:Xe("abnf",function(){return Ae(()=>import("./abnf-D5WZvYF_.js").then(n=>n.a),[])}),actionscript:Xe("actionscript",function(){return Ae(()=>import("./actionscript-o1NqrfHn.js").then(n=>n.a),[])}),ada:Xe("ada",function(){return Ae(()=>import("./ada-BAcJesVD.js").then(n=>n.a),[])}),agda:Xe("agda",function(){return Ae(()=>import("./agda-D-QD0Sfn.js").then(n=>n.a),[])}),al:Xe("al",function(){return Ae(()=>import("./al-Dzs83GY0.js").then(n=>n.a),[])}),antlr4:Xe("antlr4",function(){return Ae(()=>import("./antlr4-BjEStX_I.js").then(n=>n.a),[])}),apacheconf:Xe("apacheconf",function(){return Ae(()=>import("./apacheconf-Bh7PaD8s.js").then(n=>n.a),[])}),apex:Xe("apex",function(){return Ae(()=>import("./apex-Dg8nVlbW.js").then(n=>n.a),__vite__mapDeps([47,48]))}),apl:Xe("apl",function(){return Ae(()=>import("./apl-Bpu7iDoL.js").then(n=>n.a),[])}),applescript:Xe("applescript",function(){return Ae(()=>import("./applescript-hMMldMmZ.js").then(n=>n.a),[])}),aql:Xe("aql",function(){return Ae(()=>import("./aql-CrUo-IGN.js").then(n=>n.a),[])}),arduino:Xe("arduino",function(){return Ae(()=>import("./arduino-DmF6sKDB.js").then(n=>n.a),__vite__mapDeps([49,50,51]))}),arff:Xe("arff",function(){return Ae(()=>import("./arff-BBGQBSJT.js").then(n=>n.a),[])}),asciidoc:Xe("asciidoc",function(){return Ae(()=>import("./asciidoc-Bj5gp9h7.js").then(n=>n.a),[])}),asm6502:Xe("asm6502",function(){return Ae(()=>import("./asm6502-FSfxG8DZ.js").then(n=>n.a),[])}),asmatmel:Xe("asmatmel",function(){return Ae(()=>import("./asmatmel-e1oEOVx2.js").then(n=>n.a),[])}),aspnet:Xe("aspnet",function(){return Ae(()=>import("./aspnet-BSz1N4dH.js").then(n=>n.a),__vite__mapDeps([52,53]))}),autohotkey:Xe("autohotkey",function(){return Ae(()=>import("./autohotkey-E5ufzqN-.js").then(n=>n.a),[])}),autoit:Xe("autoit",function(){return Ae(()=>import("./autoit-C_kN8xn5.js").then(n=>n.a),[])}),avisynth:Xe("avisynth",function(){return Ae(()=>import("./avisynth-DbmndZmQ.js").then(n=>n.a),[])}),avroIdl:Xe("avroIdl",function(){return Ae(()=>import("./avro-idl-DGQ_T6zF.js").then(n=>n.a),[])}),bash:Xe("bash",function(){return Ae(()=>import("./bash-CviVjnOh.js").then(n=>n.b),__vite__mapDeps([54,55]))}),basic:Xe("basic",function(){return Ae(()=>import("./basic-Bx3Rn9rA.js").then(n=>n.b),__vite__mapDeps([56,57]))}),batch:Xe("batch",function(){return Ae(()=>import("./batch-DTnb-DYx.js").then(n=>n.b),[])}),bbcode:Xe("bbcode",function(){return Ae(()=>import("./bbcode-D1mhg2V8.js").then(n=>n.b),[])}),bicep:Xe("bicep",function(){return Ae(()=>import("./bicep-0IioNd8i.js").then(n=>n.b),[])}),birb:Xe("birb",function(){return Ae(()=>import("./birb-DU56kIa1.js").then(n=>n.b),[])}),bison:Xe("bison",function(){return Ae(()=>import("./bison-BN1e05g4.js").then(n=>n.b),__vite__mapDeps([58,51]))}),bnf:Xe("bnf",function(){return Ae(()=>import("./bnf-D2g0vgik.js").then(n=>n.b),[])}),brainfuck:Xe("brainfuck",function(){return Ae(()=>import("./brainfuck-jbiw2pGD.js").then(n=>n.b),[])}),brightscript:Xe("brightscript",function(){return Ae(()=>import("./brightscript-BBDeWuro.js").then(n=>n.b),[])}),bro:Xe("bro",function(){return Ae(()=>import("./bro-CGTpxN4p.js").then(n=>n.b),[])}),bsl:Xe("bsl",function(){return Ae(()=>import("./bsl-CqTC8aLw.js").then(n=>n.b),[])}),c:Xe("c",function(){return Ae(()=>import("./c-Ds_ySDj7.js").then(n=>n.c),__vite__mapDeps([59,51]))}),cfscript:Xe("cfscript",function(){return Ae(()=>import("./cfscript-Bj6Jdimw.js").then(n=>n.c),[])}),chaiscript:Xe("chaiscript",function(){return Ae(()=>import("./chaiscript-RYJpKV37.js").then(n=>n.c),__vite__mapDeps([60,50,51]))}),cil:Xe("cil",function(){return Ae(()=>import("./cil-D4aeGR4P.js").then(n=>n.c),[])}),clike:Xe("clike",function(){return Ae(()=>import("./clike-CqNn0AJS.js").then(n=>n.c),__vite__mapDeps([61,62]))}),clojure:Xe("clojure",function(){return Ae(()=>import("./clojure-CvHCjxEW.js").then(n=>n.c),[])}),cmake:Xe("cmake",function(){return Ae(()=>import("./cmake-Y9YYOI1o.js").then(n=>n.c),[])}),cobol:Xe("cobol",function(){return Ae(()=>import("./cobol-Cn7N4Z9s.js").then(n=>n.c),[])}),coffeescript:Xe("coffeescript",function(){return Ae(()=>import("./coffeescript-BNf6wfQ6.js").then(n=>n.c),[])}),concurnas:Xe("concurnas",function(){return Ae(()=>import("./concurnas-F8NRlUrA.js").then(n=>n.c),[])}),coq:Xe("coq",function(){return Ae(()=>import("./coq-CXxL_LlW.js").then(n=>n.c),[])}),cpp:Xe("cpp",function(){return Ae(()=>import("./cpp-DWon0ppI.js").then(n=>n.c),__vite__mapDeps([63,50,51]))}),crystal:Xe("crystal",function(){return Ae(()=>import("./crystal-B2v6_JlQ.js").then(n=>n.c),__vite__mapDeps([64,65]))}),csharp:Xe("csharp",function(){return Ae(()=>import("./csharp-BLSK0Zzi.js").then(n=>n.c),__vite__mapDeps([66,53]))}),cshtml:Xe("cshtml",function(){return Ae(()=>import("./cshtml-BLIhUWji.js").then(n=>n.c),__vite__mapDeps([67,53]))}),csp:Xe("csp",function(){return Ae(()=>import("./csp-CeuPpz9b.js").then(n=>n.c),[])}),cssExtras:Xe("cssExtras",function(){return Ae(()=>import("./css-extras-DRnBitp6.js").then(n=>n.c),[])}),css:Xe("css",function(){return Ae(()=>import("./css-D8yvO7dz.js").then(n=>n.c),__vite__mapDeps([68,69]))}),csv:Xe("csv",function(){return Ae(()=>import("./csv-Be-N3gG6.js").then(n=>n.c),[])}),cypher:Xe("cypher",function(){return Ae(()=>import("./cypher-BQok03ZI.js").then(n=>n.c),[])}),d:Xe("d",function(){return Ae(()=>import("./d-Df_6sXOB.js").then(n=>n.d),[])}),dart:Xe("dart",function(){return Ae(()=>import("./dart-AOzSx5I4.js").then(n=>n.d),[])}),dataweave:Xe("dataweave",function(){return Ae(()=>import("./dataweave--R-21DfR.js").then(n=>n.d),[])}),dax:Xe("dax",function(){return Ae(()=>import("./dax-CsnNiQxC.js").then(n=>n.d),[])}),dhall:Xe("dhall",function(){return Ae(()=>import("./dhall-BidGwr1u.js").then(n=>n.d),[])}),diff:Xe("diff",function(){return Ae(()=>import("./diff-By-TneY5.js").then(n=>n.d),[])}),django:Xe("django",function(){return Ae(()=>import("./django-CqZkrb5c.js").then(n=>n.d),__vite__mapDeps([70,71]))}),dnsZoneFile:Xe("dnsZoneFile",function(){return Ae(()=>import("./dns-zone-file-CIIN0Zwd.js").then(n=>n.d),[])}),docker:Xe("docker",function(){return Ae(()=>import("./docker-DrVrzUu_.js").then(n=>n.d),[])}),dot:Xe("dot",function(){return Ae(()=>import("./dot-D6JxP7pN.js").then(n=>n.d),[])}),ebnf:Xe("ebnf",function(){return Ae(()=>import("./ebnf-boHv7kBZ.js").then(n=>n.e),[])}),editorconfig:Xe("editorconfig",function(){return Ae(()=>import("./editorconfig-BZK9BWTq.js").then(n=>n.e),[])}),eiffel:Xe("eiffel",function(){return Ae(()=>import("./eiffel-BspS-zg2.js").then(n=>n.e),[])}),ejs:Xe("ejs",function(){return Ae(()=>import("./ejs-BO4bBszI.js").then(n=>n.e),__vite__mapDeps([72,71]))}),elixir:Xe("elixir",function(){return Ae(()=>import("./elixir-DCnntdKi.js").then(n=>n.e),[])}),elm:Xe("elm",function(){return Ae(()=>import("./elm-wkvDZVBc.js").then(n=>n.e),[])}),erb:Xe("erb",function(){return Ae(()=>import("./erb-D0dPextc.js").then(n=>n.e),__vite__mapDeps([73,65,71]))}),erlang:Xe("erlang",function(){return Ae(()=>import("./erlang-GkjxK_5M.js").then(n=>n.e),[])}),etlua:Xe("etlua",function(){return Ae(()=>import("./etlua-DISv4zYg.js").then(n=>n.e),__vite__mapDeps([74,75,71]))}),excelFormula:Xe("excelFormula",function(){return Ae(()=>import("./excel-formula-HLTv-nrr.js").then(n=>n.e),[])}),factor:Xe("factor",function(){return Ae(()=>import("./factor-BkpcfzTR.js").then(n=>n.f),[])}),falselang:Xe("falselang",function(){return Ae(()=>import("./false-41V82d_P.js").then(n=>n._),[])}),firestoreSecurityRules:Xe("firestoreSecurityRules",function(){return Ae(()=>import("./firestore-security-rules-RBhhbSld.js").then(n=>n.f),[])}),flow:Xe("flow",function(){return Ae(()=>import("./flow-Ht8yfkR5.js").then(n=>n.f),[])}),fortran:Xe("fortran",function(){return Ae(()=>import("./fortran-Dzm_isHe.js").then(n=>n.f),[])}),fsharp:Xe("fsharp",function(){return Ae(()=>import("./fsharp-C9WT9v9x.js").then(n=>n.f),[])}),ftl:Xe("ftl",function(){return Ae(()=>import("./ftl-B17SbwAW.js").then(n=>n.f),__vite__mapDeps([76,71]))}),gap:Xe("gap",function(){return Ae(()=>import("./gap-SzXKPgeq.js").then(n=>n.g),[])}),gcode:Xe("gcode",function(){return Ae(()=>import("./gcode-CuQuTKdO.js").then(n=>n.g),[])}),gdscript:Xe("gdscript",function(){return Ae(()=>import("./gdscript-bTCD4XIA.js").then(n=>n.g),[])}),gedcom:Xe("gedcom",function(){return Ae(()=>import("./gedcom-Dw1a27VL.js").then(n=>n.g),[])}),gherkin:Xe("gherkin",function(){return Ae(()=>import("./gherkin-B8yC8kPH.js").then(n=>n.g),[])}),git:Xe("git",function(){return Ae(()=>import("./git-CuTlBGs3.js").then(n=>n.g),[])}),glsl:Xe("glsl",function(){return Ae(()=>import("./glsl-VfJQISaC.js").then(n=>n.g),__vite__mapDeps([77,51]))}),gml:Xe("gml",function(){return Ae(()=>import("./gml-Cg063sEn.js").then(n=>n.g),[])}),gn:Xe("gn",function(){return Ae(()=>import("./gn-CfhRs8hN.js").then(n=>n.g),[])}),goModule:Xe("goModule",function(){return Ae(()=>import("./go-module-Ca9MQv90.js").then(n=>n.g),[])}),go:Xe("go",function(){return Ae(()=>import("./go-VWO1sCsw.js").then(n=>n.g),[])}),graphql:Xe("graphql",function(){return Ae(()=>import("./graphql-DQddNIUX.js").then(n=>n.g),[])}),groovy:Xe("groovy",function(){return Ae(()=>import("./groovy-Dcjs8fee.js").then(n=>n.g),[])}),haml:Xe("haml",function(){return Ae(()=>import("./haml-B5-Vcx98.js").then(n=>n.h),__vite__mapDeps([78,65]))}),handlebars:Xe("handlebars",function(){return Ae(()=>import("./handlebars-D9Ysibnv.js").then(n=>n.h),__vite__mapDeps([79,71]))}),haskell:Xe("haskell",function(){return Ae(()=>import("./haskell-D1TAusTt.js").then(n=>n.h),__vite__mapDeps([80,81]))}),haxe:Xe("haxe",function(){return Ae(()=>import("./haxe-BwfSBwx-.js").then(n=>n.h),[])}),hcl:Xe("hcl",function(){return Ae(()=>import("./hcl-B7RhI5Aa.js").then(n=>n.h),[])}),hlsl:Xe("hlsl",function(){return Ae(()=>import("./hlsl-ePiBBFSV.js").then(n=>n.h),__vite__mapDeps([82,51]))}),hoon:Xe("hoon",function(){return Ae(()=>import("./hoon-CoBO7KEA.js").then(n=>n.h),[])}),hpkp:Xe("hpkp",function(){return Ae(()=>import("./hpkp-D81lsBFo.js").then(n=>n.h),[])}),hsts:Xe("hsts",function(){return Ae(()=>import("./hsts-D1exIVwR.js").then(n=>n.h),[])}),http:Xe("http",function(){return Ae(()=>import("./http-Dqk_-m1h.js").then(n=>n.h),[])}),ichigojam:Xe("ichigojam",function(){return Ae(()=>import("./ichigojam-Ew3H_Wnw.js").then(n=>n.i),[])}),icon:Xe("icon",function(){return Ae(()=>import("./icon-7__9w3uI.js").then(n=>n.i),[])}),icuMessageFormat:Xe("icuMessageFormat",function(){return Ae(()=>import("./icu-message-format-Dq2hIL7F.js").then(n=>n.i),[])}),idris:Xe("idris",function(){return Ae(()=>import("./idris-Cyzo9vXh.js").then(n=>n.i),__vite__mapDeps([83,81]))}),iecst:Xe("iecst",function(){return Ae(()=>import("./iecst-DXWmu6AB.js").then(n=>n.i),[])}),ignore:Xe("ignore",function(){return Ae(()=>import("./ignore-BOIdB3R9.js").then(n=>n.i),[])}),inform7:Xe("inform7",function(){return Ae(()=>import("./inform7-Bc1mK28U.js").then(n=>n.i),[])}),ini:Xe("ini",function(){return Ae(()=>import("./ini-DdalcVCy.js").then(n=>n.i),[])}),io:Xe("io",function(){return Ae(()=>import("./io-Dt_mcl8h.js").then(n=>n.i),[])}),j:Xe("j",function(){return Ae(()=>import("./j-C-lF-CU_.js").then(n=>n.j),[])}),java:Xe("java",function(){return Ae(()=>import("./java-45YI1AnS.js").then(n=>n.j),__vite__mapDeps([84,85]))}),javadoc:Xe("javadoc",function(){return Ae(()=>import("./javadoc-Bpiw_kgn.js").then(n=>n.j),__vite__mapDeps([86,85,87]))}),javadoclike:Xe("javadoclike",function(){return Ae(()=>import("./javadoclike-yg2D82m1.js").then(n=>n.j),__vite__mapDeps([88,87]))}),javascript:Xe("javascript",function(){return Ae(()=>import("./javascript-BFZWKPPJ.js").then(n=>n.j),__vite__mapDeps([89,90]))}),javastacktrace:Xe("javastacktrace",function(){return Ae(()=>import("./javastacktrace-BpG-AgnP.js").then(n=>n.j),[])}),jexl:Xe("jexl",function(){return Ae(()=>import("./jexl-D2VVX-f4.js").then(n=>n.j),[])}),jolie:Xe("jolie",function(){return Ae(()=>import("./jolie-B1EwmubH.js").then(n=>n.j),[])}),jq:Xe("jq",function(){return Ae(()=>import("./jq-B1-LZ9LN.js").then(n=>n.j),[])}),jsExtras:Xe("jsExtras",function(){return Ae(()=>import("./js-extras-CAdKnlUK.js").then(n=>n.j),[])}),jsTemplates:Xe("jsTemplates",function(){return Ae(()=>import("./js-templates-BJ0RNBBn.js").then(n=>n.j),[])}),jsdoc:Xe("jsdoc",function(){return Ae(()=>import("./jsdoc-CgalBxHx.js").then(n=>n.j),__vite__mapDeps([91,87,92]))}),json:Xe("json",function(){return Ae(()=>import("./json-CQzD9Vuv.js").then(n=>n.j),__vite__mapDeps([93,94]))}),json5:Xe("json5",function(){return Ae(()=>import("./json5-DMROsLE9.js").then(n=>n.j),__vite__mapDeps([95,94]))}),jsonp:Xe("jsonp",function(){return Ae(()=>import("./jsonp-CtbFEoSO.js").then(n=>n.j),__vite__mapDeps([96,94]))}),jsstacktrace:Xe("jsstacktrace",function(){return Ae(()=>import("./jsstacktrace-CWlR2r3M.js").then(n=>n.j),[])}),jsx:Xe("jsx",function(){return Ae(()=>import("./jsx-Bcm3mCMX.js").then(n=>n.j),__vite__mapDeps([97,98]))}),julia:Xe("julia",function(){return Ae(()=>import("./julia-DawUNhKV.js").then(n=>n.j),[])}),keepalived:Xe("keepalived",function(){return Ae(()=>import("./keepalived-DTrfwL7-.js").then(n=>n.k),[])}),keyman:Xe("keyman",function(){return Ae(()=>import("./keyman-Dt-YdFQG.js").then(n=>n.k),[])}),kotlin:Xe("kotlin",function(){return Ae(()=>import("./kotlin-DDKW_KJ3.js").then(n=>n.k),[])}),kumir:Xe("kumir",function(){return Ae(()=>import("./kumir-CL2qFoX9.js").then(n=>n.k),[])}),kusto:Xe("kusto",function(){return Ae(()=>import("./kusto-CgVKIahq.js").then(n=>n.k),[])}),latex:Xe("latex",function(){return Ae(()=>import("./latex-CTdn8dw3.js").then(n=>n.l),[])}),latte:Xe("latte",function(){return Ae(()=>import("./latte-Dph7wDda.js").then(n=>n.l),__vite__mapDeps([99,71,100]))}),less:Xe("less",function(){return Ae(()=>import("./less-BW9Z7xNV.js").then(n=>n.l),[])}),lilypond:Xe("lilypond",function(){return Ae(()=>import("./lilypond--bIKevXM.js").then(n=>n.l),__vite__mapDeps([101,102]))}),liquid:Xe("liquid",function(){return Ae(()=>import("./liquid-C6_JMpJr.js").then(n=>n.l),__vite__mapDeps([103,71]))}),lisp:Xe("lisp",function(){return Ae(()=>import("./lisp-BbfmjfSW.js").then(n=>n.l),[])}),livescript:Xe("livescript",function(){return Ae(()=>import("./livescript-Cnhwlvbs.js").then(n=>n.l),[])}),llvm:Xe("llvm",function(){return Ae(()=>import("./llvm-C5uGkJFM.js").then(n=>n.l),[])}),log:Xe("log",function(){return Ae(()=>import("./log-ClfVLSxk.js").then(n=>n.l),[])}),lolcode:Xe("lolcode",function(){return Ae(()=>import("./lolcode-D1tQ-v_i.js").then(n=>n.l),[])}),lua:Xe("lua",function(){return Ae(()=>import("./lua-BsJoX6Ep.js").then(n=>n.l),__vite__mapDeps([104,75]))}),magma:Xe("magma",function(){return Ae(()=>import("./magma-fNoNeIcf.js").then(n=>n.m),[])}),makefile:Xe("makefile",function(){return Ae(()=>import("./makefile-B_SRsjlq.js").then(n=>n.m),[])}),markdown:Xe("markdown",function(){return Ae(()=>import("./markdown-mUAGnld7.js").then(n=>n.m),[])}),markupTemplating:Xe("markupTemplating",function(){return Ae(()=>import("./markup-templating-DU1K9_L8.js").then(n=>n.m),__vite__mapDeps([105,71]))}),markup:Xe("markup",function(){return Ae(()=>import("./markup-BuqVoeXR.js").then(n=>n.m),__vite__mapDeps([106,107]))}),matlab:Xe("matlab",function(){return Ae(()=>import("./matlab-D-TP_4M6.js").then(n=>n.m),[])}),maxscript:Xe("maxscript",function(){return Ae(()=>import("./maxscript-BufcWGly.js").then(n=>n.m),[])}),mel:Xe("mel",function(){return Ae(()=>import("./mel-BiL0mMX7.js").then(n=>n.m),[])}),mermaid:Xe("mermaid",function(){return Ae(()=>import("./mermaid-C6ZJwRbK.js").then(n=>n.m),[])}),mizar:Xe("mizar",function(){return Ae(()=>import("./mizar-CTg9VBxB.js").then(n=>n.m),[])}),mongodb:Xe("mongodb",function(){return Ae(()=>import("./mongodb-DZIW47b_.js").then(n=>n.m),[])}),monkey:Xe("monkey",function(){return Ae(()=>import("./monkey-OTcCeVas.js").then(n=>n.m),[])}),moonscript:Xe("moonscript",function(){return Ae(()=>import("./moonscript-B9q5jFPJ.js").then(n=>n.m),[])}),n1ql:Xe("n1ql",function(){return Ae(()=>import("./n1ql-zxH7u8ek.js").then(n=>n.n),[])}),n4js:Xe("n4js",function(){return Ae(()=>import("./n4js-DxH8puYd.js").then(n=>n.n),[])}),nand2tetrisHdl:Xe("nand2tetrisHdl",function(){return Ae(()=>import("./nand2tetris-hdl-Y9CaATwQ.js").then(n=>n.n),[])}),naniscript:Xe("naniscript",function(){return Ae(()=>import("./naniscript-fj11wz4c.js").then(n=>n.n),[])}),nasm:Xe("nasm",function(){return Ae(()=>import("./nasm-CmwjTodA.js").then(n=>n.n),[])}),neon:Xe("neon",function(){return Ae(()=>import("./neon-DM1vXAju.js").then(n=>n.n),[])}),nevod:Xe("nevod",function(){return Ae(()=>import("./nevod-awEjSQiN.js").then(n=>n.n),[])}),nginx:Xe("nginx",function(){return Ae(()=>import("./nginx-CtMkRQkZ.js").then(n=>n.n),[])}),nim:Xe("nim",function(){return Ae(()=>import("./nim-BpvUfA3V.js").then(n=>n.n),[])}),nix:Xe("nix",function(){return Ae(()=>import("./nix-L30ZSyVO.js").then(n=>n.n),[])}),nsis:Xe("nsis",function(){return Ae(()=>import("./nsis-B-wYmCZG.js").then(n=>n.n),[])}),objectivec:Xe("objectivec",function(){return Ae(()=>import("./objectivec-DqmvSFQo.js").then(n=>n.o),__vite__mapDeps([108,51]))}),ocaml:Xe("ocaml",function(){return Ae(()=>import("./ocaml-DxsXmoff.js").then(n=>n.o),[])}),opencl:Xe("opencl",function(){return Ae(()=>import("./opencl-DE2DwDDh.js").then(n=>n.o),__vite__mapDeps([109,51]))}),openqasm:Xe("openqasm",function(){return Ae(()=>import("./openqasm-B_Z2Pbfo.js").then(n=>n.o),[])}),oz:Xe("oz",function(){return Ae(()=>import("./oz-BsEvVihN.js").then(n=>n.o),[])}),parigp:Xe("parigp",function(){return Ae(()=>import("./parigp-Cb59kgzM.js").then(n=>n.p),[])}),parser:Xe("parser",function(){return Ae(()=>import("./parser-BPfu9fvJ.js").then(n=>n.p),[])}),pascal:Xe("pascal",function(){return Ae(()=>import("./pascal-B60lAKfe.js").then(n=>n.p),[])}),pascaligo:Xe("pascaligo",function(){return Ae(()=>import("./pascaligo-jljTdZcp.js").then(n=>n.p),[])}),pcaxis:Xe("pcaxis",function(){return Ae(()=>import("./pcaxis-D5-ZKbf-.js").then(n=>n.p),[])}),peoplecode:Xe("peoplecode",function(){return Ae(()=>import("./peoplecode-CHa_iagU.js").then(n=>n.p),[])}),perl:Xe("perl",function(){return Ae(()=>import("./perl-k-uTMlyD.js").then(n=>n.p),[])}),phpExtras:Xe("phpExtras",function(){return Ae(()=>import("./php-extras-DwKASBiR.js").then(n=>n.p),__vite__mapDeps([110,100,71]))}),php:Xe("php",function(){return Ae(()=>import("./php-DkI131Jd.js").then(n=>n.p),__vite__mapDeps([111,100,71]))}),phpdoc:Xe("phpdoc",function(){return Ae(()=>import("./phpdoc-U7fWPc6E.js").then(n=>n.p),__vite__mapDeps([112,100,71,87]))}),plsql:Xe("plsql",function(){return Ae(()=>import("./plsql-vgmv1Vi6.js").then(n=>n.p),__vite__mapDeps([113,48]))}),powerquery:Xe("powerquery",function(){return Ae(()=>import("./powerquery-DmK9Euuu.js").then(n=>n.p),[])}),powershell:Xe("powershell",function(){return Ae(()=>import("./powershell-CKXrQp96.js").then(n=>n.p),[])}),processing:Xe("processing",function(){return Ae(()=>import("./processing-B5NyV_CO.js").then(n=>n.p),[])}),prolog:Xe("prolog",function(){return Ae(()=>import("./prolog-BWIt2B_6.js").then(n=>n.p),[])}),promql:Xe("promql",function(){return Ae(()=>import("./promql-B_QoDoXl.js").then(n=>n.p),[])}),properties:Xe("properties",function(){return Ae(()=>import("./properties-DaR4F6tG.js").then(n=>n.p),[])}),protobuf:Xe("protobuf",function(){return Ae(()=>import("./protobuf-D5QPKMFw.js").then(n=>n.p),[])}),psl:Xe("psl",function(){return Ae(()=>import("./psl-D6wB8sa6.js").then(n=>n.p),[])}),pug:Xe("pug",function(){return Ae(()=>import("./pug-Df1YS9qd.js").then(n=>n.p),[])}),puppet:Xe("puppet",function(){return Ae(()=>import("./puppet-BO-UEy3J.js").then(n=>n.p),[])}),pure:Xe("pure",function(){return Ae(()=>import("./pure-_uKvBHAQ.js").then(n=>n.p),[])}),purebasic:Xe("purebasic",function(){return Ae(()=>import("./purebasic-B4ULSQZE.js").then(n=>n.p),[])}),purescript:Xe("purescript",function(){return Ae(()=>import("./purescript-BZ-uz2lE.js").then(n=>n.p),__vite__mapDeps([114,81]))}),python:Xe("python",function(){return Ae(()=>import("./python-B85Wtz1L.js").then(n=>n.p),[])}),q:Xe("q",function(){return Ae(()=>import("./q-vO-s84n9.js").then(n=>n.q),[])}),qml:Xe("qml",function(){return Ae(()=>import("./qml-kaZ2gDT3.js").then(n=>n.q),[])}),qore:Xe("qore",function(){return Ae(()=>import("./qore-DVq2LQeL.js").then(n=>n.q),[])}),qsharp:Xe("qsharp",function(){return Ae(()=>import("./qsharp-Bf2rFqlm.js").then(n=>n.q),[])}),r:Xe("r",function(){return Ae(()=>import("./r-DeLDWJTd.js").then(n=>n.r),[])}),racket:Xe("racket",function(){return Ae(()=>import("./racket-BcNKcbHA.js").then(n=>n.r),__vite__mapDeps([115,102]))}),reason:Xe("reason",function(){return Ae(()=>import("./reason-DgdS1e1I.js").then(n=>n.r),[])}),regex:Xe("regex",function(){return Ae(()=>import("./regex-CIYZLC96.js").then(n=>n.r),[])}),rego:Xe("rego",function(){return Ae(()=>import("./rego-DCo8FQR5.js").then(n=>n.r),[])}),renpy:Xe("renpy",function(){return Ae(()=>import("./renpy-BUspwmyO.js").then(n=>n.r),[])}),rest:Xe("rest",function(){return Ae(()=>import("./rest-CdGjvoQ8.js").then(n=>n.r),[])}),rip:Xe("rip",function(){return Ae(()=>import("./rip-C0zBlfI9.js").then(n=>n.r),[])}),roboconf:Xe("roboconf",function(){return Ae(()=>import("./roboconf-CtH-vuuD.js").then(n=>n.r),[])}),robotframework:Xe("robotframework",function(){return Ae(()=>import("./robotframework-B2sSQjjW.js").then(n=>n.r),[])}),ruby:Xe("ruby",function(){return Ae(()=>import("./ruby-B2ODcCrN.js").then(n=>n.r),__vite__mapDeps([116,65]))}),rust:Xe("rust",function(){return Ae(()=>import("./rust-BVonVJBT.js").then(n=>n.r),[])}),sas:Xe("sas",function(){return Ae(()=>import("./sas-C51qgIML.js").then(n=>n.s),[])}),sass:Xe("sass",function(){return Ae(()=>import("./sass-aSk38cgu.js").then(n=>n.s),[])}),scala:Xe("scala",function(){return Ae(()=>import("./scala-CHGF8rj2.js").then(n=>n.s),__vite__mapDeps([117,85]))}),scheme:Xe("scheme",function(){return Ae(()=>import("./scheme-DtBnt09V.js").then(n=>n.s),__vite__mapDeps([118,102]))}),scss:Xe("scss",function(){return Ae(()=>import("./scss-CwFwUKHz.js").then(n=>n.s),[])}),shellSession:Xe("shellSession",function(){return Ae(()=>import("./shell-session-B1lsY4lP.js").then(n=>n.s),__vite__mapDeps([119,55]))}),smali:Xe("smali",function(){return Ae(()=>import("./smali-DoC35MXt.js").then(n=>n.s),[])}),smalltalk:Xe("smalltalk",function(){return Ae(()=>import("./smalltalk-DC7K9Zjc.js").then(n=>n.s),[])}),smarty:Xe("smarty",function(){return Ae(()=>import("./smarty-Dya8aFU7.js").then(n=>n.s),__vite__mapDeps([120,71]))}),sml:Xe("sml",function(){return Ae(()=>import("./sml-BAkRAbsh.js").then(n=>n.s),[])}),solidity:Xe("solidity",function(){return Ae(()=>import("./solidity-DzvaOMP9.js").then(n=>n.s),[])}),solutionFile:Xe("solutionFile",function(){return Ae(()=>import("./solution-file-Bmez1lHa.js").then(n=>n.s),[])}),soy:Xe("soy",function(){return Ae(()=>import("./soy-YLTPfz3s.js").then(n=>n.s),__vite__mapDeps([121,71]))}),sparql:Xe("sparql",function(){return Ae(()=>import("./sparql-Dune-Ey0.js").then(n=>n.s),__vite__mapDeps([122,123]))}),splunkSpl:Xe("splunkSpl",function(){return Ae(()=>import("./splunk-spl-BBCP9G49.js").then(n=>n.s),[])}),sqf:Xe("sqf",function(){return Ae(()=>import("./sqf-CXQAyqIQ.js").then(n=>n.s),[])}),sql:Xe("sql",function(){return Ae(()=>import("./sql-02c4jPTl.js").then(n=>n.s),__vite__mapDeps([124,48]))}),squirrel:Xe("squirrel",function(){return Ae(()=>import("./squirrel-C0xvhdrs.js").then(n=>n.s),[])}),stan:Xe("stan",function(){return Ae(()=>import("./stan-B1JCuN-c.js").then(n=>n.s),[])}),stylus:Xe("stylus",function(){return Ae(()=>import("./stylus-r331_ig_.js").then(n=>n.s),[])}),swift:Xe("swift",function(){return Ae(()=>import("./swift-B9J5Xueq.js").then(n=>n.s),[])}),systemd:Xe("systemd",function(){return Ae(()=>import("./systemd-XWCGy8Ob.js").then(n=>n.s),[])}),t4Cs:Xe("t4Cs",function(){return Ae(()=>import("./t4-cs-Dc98chgs.js").then(n=>n.t),__vite__mapDeps([125,126,53]))}),t4Templating:Xe("t4Templating",function(){return Ae(()=>import("./t4-templating-BvTJ1ev3.js").then(n=>n.t),__vite__mapDeps([127,126]))}),t4Vb:Xe("t4Vb",function(){return Ae(()=>import("./t4-vb-BZfdBq4p.js").then(n=>n.t),__vite__mapDeps([128,126,129,57]))}),tap:Xe("tap",function(){return Ae(()=>import("./tap-DhlZD9D0.js").then(n=>n.t),__vite__mapDeps([130,131]))}),tcl:Xe("tcl",function(){return Ae(()=>import("./tcl-CuPFotZK.js").then(n=>n.t),[])}),textile:Xe("textile",function(){return Ae(()=>import("./textile-BXq80H_I.js").then(n=>n.t),[])}),toml:Xe("toml",function(){return Ae(()=>import("./toml-B5y3O0-s.js").then(n=>n.t),[])}),tremor:Xe("tremor",function(){return Ae(()=>import("./tremor-C9Ysgl4-.js").then(n=>n.t),[])}),tsx:Xe("tsx",function(){return Ae(()=>import("./tsx-CLBH7tR4.js").then(n=>n.t),__vite__mapDeps([132,98,92]))}),tt2:Xe("tt2",function(){return Ae(()=>import("./tt2-FoOwDDSs.js").then(n=>n.t),__vite__mapDeps([133,71]))}),turtle:Xe("turtle",function(){return Ae(()=>import("./turtle-BK5vaG_v.js").then(n=>n.t),__vite__mapDeps([134,123]))}),twig:Xe("twig",function(){return Ae(()=>import("./twig-Csv3LkDK.js").then(n=>n.t),__vite__mapDeps([135,71]))}),typescript:Xe("typescript",function(){return Ae(()=>import("./typescript-DVbMPcDB.js").then(n=>n.t),__vite__mapDeps([136,92]))}),typoscript:Xe("typoscript",function(){return Ae(()=>import("./typoscript-0nvYot7S.js").then(n=>n.t),[])}),unrealscript:Xe("unrealscript",function(){return Ae(()=>import("./unrealscript-LwNoQ3hK.js").then(n=>n.u),[])}),uorazor:Xe("uorazor",function(){return Ae(()=>import("./uorazor-Cwh8UkUY.js").then(n=>n.u),[])}),uri:Xe("uri",function(){return Ae(()=>import("./uri-DshCX7s1.js").then(n=>n.u),[])}),v:Xe("v",function(){return Ae(()=>import("./v-COh0hg4M.js").then(n=>n.v),[])}),vala:Xe("vala",function(){return Ae(()=>import("./vala-DgFyuUwt.js").then(n=>n.v),[])}),vbnet:Xe("vbnet",function(){return Ae(()=>import("./vbnet-Wk_aEgDi.js").then(n=>n.v),__vite__mapDeps([137,129,57]))}),velocity:Xe("velocity",function(){return Ae(()=>import("./velocity-DFFugm2u.js").then(n=>n.v),[])}),verilog:Xe("verilog",function(){return Ae(()=>import("./verilog-BKx734nL.js").then(n=>n.v),[])}),vhdl:Xe("vhdl",function(){return Ae(()=>import("./vhdl-Cp7FcdJo.js").then(n=>n.v),[])}),vim:Xe("vim",function(){return Ae(()=>import("./vim-CnU0V9TN.js").then(n=>n.v),[])}),visualBasic:Xe("visualBasic",function(){return Ae(()=>import("./visual-basic-hpwCRIX4.js").then(n=>n.v),[])}),warpscript:Xe("warpscript",function(){return Ae(()=>import("./warpscript-BGP6IruP.js").then(n=>n.w),[])}),wasm:Xe("wasm",function(){return Ae(()=>import("./wasm-CZNW1nwO.js").then(n=>n.w),[])}),webIdl:Xe("webIdl",function(){return Ae(()=>import("./web-idl-BPOBeez0.js").then(n=>n.w),[])}),wiki:Xe("wiki",function(){return Ae(()=>import("./wiki-CJ3thIMw.js").then(n=>n.w),[])}),wolfram:Xe("wolfram",function(){return Ae(()=>import("./wolfram-DKnA8Se6.js").then(n=>n.w),[])}),wren:Xe("wren",function(){return Ae(()=>import("./wren-CqsJ3mfc.js").then(n=>n.w),[])}),xeora:Xe("xeora",function(){return Ae(()=>import("./xeora-DMp8mBB8.js").then(n=>n.x),[])}),xmlDoc:Xe("xmlDoc",function(){return Ae(()=>import("./xml-doc-Vd4sAKdf.js").then(n=>n.x),[])}),xojo:Xe("xojo",function(){return Ae(()=>import("./xojo-UInKc1K-.js").then(n=>n.x),[])}),xquery:Xe("xquery",function(){return Ae(()=>import("./xquery-rmywbRjN.js").then(n=>n.x),[])}),yaml:Xe("yaml",function(){return Ae(()=>import("./yaml-D9S3dJfe.js").then(n=>n.y),__vite__mapDeps([138,131]))}),yang:Xe("yang",function(){return Ae(()=>import("./yang-C4BJM-5B.js").then(n=>n.y),[])}),zig:Xe("zig",function(){return Ae(()=>import("./zig-BT9rKyM0.js").then(n=>n.z),[])})},myt=pyt({loader:function(){return Ae(()=>import("./core-DkoeCqqg.js").then(e=>e.c),__vite__mapDeps([139,107,69,62,90])).then(function(e){return e.default||e})},isLanguageRegistered:function(e,t){return e.registered(t)},languageLoaders:gyt,registerLanguage:function(e,t,i){return e.register(i)}}),Tyt={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}},byt={'code[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"]::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},prolog:{color:"hsl(230, 4%, 64%)"},cdata:{color:"hsl(230, 4%, 64%)"},doctype:{color:"hsl(230, 8%, 24%)"},punctuation:{color:"hsl(230, 8%, 24%)"},entity:{color:"hsl(230, 8%, 24%)",cursor:"help"},"attr-name":{color:"hsl(35, 99%, 36%)"},"class-name":{color:"hsl(35, 99%, 36%)"},boolean:{color:"hsl(35, 99%, 36%)"},constant:{color:"hsl(35, 99%, 36%)"},number:{color:"hsl(35, 99%, 36%)"},atrule:{color:"hsl(35, 99%, 36%)"},keyword:{color:"hsl(301, 63%, 40%)"},property:{color:"hsl(5, 74%, 59%)"},tag:{color:"hsl(5, 74%, 59%)"},symbol:{color:"hsl(5, 74%, 59%)"},deleted:{color:"hsl(5, 74%, 59%)"},important:{color:"hsl(5, 74%, 59%)"},selector:{color:"hsl(119, 34%, 47%)"},string:{color:"hsl(119, 34%, 47%)"},char:{color:"hsl(119, 34%, 47%)"},builtin:{color:"hsl(119, 34%, 47%)"},inserted:{color:"hsl(119, 34%, 47%)"},regex:{color:"hsl(119, 34%, 47%)"},"attr-value":{color:"hsl(119, 34%, 47%)"},"attr-value > .token.punctuation":{color:"hsl(119, 34%, 47%)"},variable:{color:"hsl(221, 87%, 60%)"},operator:{color:"hsl(221, 87%, 60%)"},function:{color:"hsl(221, 87%, 60%)"},url:{color:"hsl(198, 99%, 37%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(230, 8%, 24%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(230, 8%, 24%)"},".language-css .token.selector":{color:"hsl(5, 74%, 59%)"},".language-css .token.property":{color:"hsl(230, 8%, 24%)"},".language-css .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.string.url":{color:"hsl(119, 34%, 47%)"},".language-css .token.important":{color:"hsl(301, 63%, 40%)"},".language-css .token.atrule .token.rule":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.operator":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(344, 84%, 43%)"},".language-json .token.operator":{color:"hsl(230, 8%, 24%)"},".language-json .token.null.keyword":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.url":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.operator":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.content":{color:"hsl(221, 87%, 60%)"},".language-markdown .token.url > .token.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.url-reference.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(119, 34%, 47%)"},".language-markdown .token.bold .token.content":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.italic .token.content":{color:"hsl(301, 63%, 40%)"},".language-markdown .token.strike .token.content":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.list.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(5, 74%, 59%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.cr:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.lf:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.space:before":{color:"hsla(230, 8%, 24%, 0.2)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},".line-highlight.line-highlight":{background:"hsla(230, 8%, 24%, 0.05)"},".line-highlight.line-highlight:before":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(230, 8%, 24%, 0.05)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".command-line .command-line-prompt":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(230, 1%, 62%)"},".command-line .command-line-prompt > span:before":{color:"hsl(230, 1%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(301, 63%, 40%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(0, 0, 95%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(0, 0, 95%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(0, 0, 95%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(0, 0, 95%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(0, 0%, 100%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(230, 8%, 24%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(230, 8%, 24%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(230, 8%, 24%)"}},sge=/[#.]/g;function _yt(n,e){const t=n||"",i={};let r=0,s,a;for(;r<t.length;){sge.lastIndex=r;const o=sge.exec(t),l=t.slice(r,o?o.index:t.length);l&&(s?s==="#"?i.id=l:Array.isArray(i.className)?i.className.push(l):i.className=[l]:a=l,r+=l.length),o&&(s=o[0],r++)}return{type:"element",tagName:a||e||"div",properties:i,children:[]}}function ADe(n,e,t){const i=t?Cyt(t):void 0;function r(s,a,...o){let l;if(s==null){l={type:"root",children:[]};const c=a;o.unshift(c)}else{l=_yt(s,e);const c=l.tagName.toLowerCase(),u=i?i.get(c):void 0;if(l.tagName=u||c,vyt(a))o.unshift(a);else for(const[h,d]of Object.entries(a))yyt(n,l.properties,h,d)}for(const c of o)YJ(l.children,c);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return r}function vyt(n){if(n===null||typeof n!="object"||Array.isArray(n))return!0;if(typeof n.type!="string")return!1;const e=n,t=Object.keys(n);for(const i of t){const r=e[i];if(r&&typeof r=="object"){if(!Array.isArray(r))return!0;const s=r;for(const a of s)if(typeof a!="number"&&typeof a!="string")return!0}}return!!("children"in n&&Array.isArray(n.children))}function yyt(n,e,t,i){const r=Joe(n,t);let s;if(i!=null){if(typeof i=="number"){if(Number.isNaN(i))return;s=i}else typeof i=="boolean"?s=i:typeof i=="string"?r.spaceSeparated?s=ufe(i):r.commaSeparated?s=sfe(i):r.commaOrSpaceSeparated?s=ufe(sfe(i).join(" ")):s=oge(r,r.property,i):Array.isArray(i)?s=[...i]:s=r.property==="style"?wyt(i):String(i);if(Array.isArray(s)){const a=[];for(const o of s)a.push(oge(r,r.property,o));s=a}r.property==="className"&&Array.isArray(e.className)&&(s=e.className.concat(s)),e[r.property]=s}}function YJ(n,e){if(e!=null)if(typeof e=="number"||typeof e=="string")n.push({type:"text",value:String(e)});else if(Array.isArray(e))for(const t of e)YJ(n,t);else if(typeof e=="object"&&"type"in e)e.type==="root"?YJ(n,e.children):n.push(e);else throw new Error("Expected node, nodes, or string, got `"+e+"`")}function oge(n,e,t){if(typeof t=="string"){if(n.number&&t&&!Number.isNaN(Number(t)))return Number(t);if((n.boolean||n.overloadedBoolean)&&(t===""||UE(t)===UE(e)))return!0}return t}function wyt(n){const e=[];for(const[t,i]of Object.entries(n))e.push([t,i].join(": "));return e.join("; ")}function Cyt(n){const e=new Map;for(const t of n)e.set(t.toLowerCase(),t);return e}const Qyt=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],xyt=ADe(YV,"div"),Syt=ADe(NC,"g",Qyt);function Lyt(n){const e=String(n),t=[];return{toOffset:r,toPoint:i};function i(s){if(typeof s=="number"&&s>-1&&s<=e.length){let a=0;for(;;){let o=t[a];if(o===void 0){const l=age(e,t[a-1]);o=l===-1?e.length+1:l+1,t[a]=o}if(o>s)return{line:a+1,column:s-(a>0?t[a-1]:0)+1,offset:s};a++}}}function r(s){if(s&&typeof s.line=="number"&&typeof s.column=="number"&&!Number.isNaN(s.line)&&!Number.isNaN(s.column)){for(;t.length<s.line;){const o=t[t.length-1],l=age(e,o),c=l===-1?e.length+1:l+1;if(o===c)break;t.push(c)}const a=(s.line>1?t[s.line-2]:0)+s.column-1;if(a<t[s.line-1])return a}}}function age(n,e){const t=n.indexOf("\r",e),i=n.indexOf(`
453
453
  `,e);return i===-1?t:t===-1||t+1===i?i:t<i?t:i}const z9={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},IDe={}.hasOwnProperty,Eyt=Object.prototype;function kyt(n,e){const t=e||{};return qle({file:t.file||void 0,location:!1,schema:t.space==="svg"?NC:YV,verbose:t.verbose||!1},n)}function qle(n,e){let t;switch(e.nodeName){case"#comment":{const i=e;return t={type:"comment",value:i.data},eP(n,i,t),t}case"#document":case"#document-fragment":{const i=e,r="mode"in i?i.mode==="quirks"||i.mode==="limited-quirks":!1;if(t={type:"root",children:DDe(n,e.childNodes),data:{quirksMode:r}},n.file&&n.location){const s=String(n.file),a=Lyt(s),o=a.toPoint(0),l=a.toPoint(s.length);t.position={start:o,end:l}}return t}case"#documentType":{const i=e;return t={type:"doctype"},eP(n,i,t),t}case"#text":{const i=e;return t={type:"text",value:i.value},eP(n,i,t),t}default:return t=Ayt(n,e),t}}function DDe(n,e){let t=-1;const i=[];for(;++t<e.length;){const r=qle(n,e[t]);i.push(r)}return i}function Ayt(n,e){const t=n.schema;n.schema=e.namespaceURI===z9.svg?NC:YV;let i=-1;const r={};for(;++i<e.attrs.length;){const o=e.attrs[i],l=(o.prefix?o.prefix+":":"")+o.name;IDe.call(Eyt,l)||(r[l]=o.value)}const a=(n.schema.space==="svg"?Syt:xyt)(e.tagName,r,DDe(n,e.childNodes));if(eP(n,e,a),a.tagName==="template"){const o=e,l=o.sourceCodeLocation,c=l&&l.startTag&&Mv(l.startTag),u=l&&l.endTag&&Mv(l.endTag),h=qle(n,o.content);c&&u&&n.file&&(h.position={start:c.end,end:u.start}),a.content=h}return n.schema=t,a}function eP(n,e,t){if("sourceCodeLocation"in e&&e.sourceCodeLocation&&n.file){const i=Iyt(n,t,e.sourceCodeLocation);i&&(n.location=!0,t.position=i)}}function Iyt(n,e,t){const i=Mv(t);if(e.type==="element"){const r=e.children[e.children.length-1];if(i&&!t.endTag&&r&&r.position&&r.position.end&&(i.end=Object.assign({},r.position.end)),n.verbose){const s={};let a;if(t.attrs)for(a in t.attrs)IDe.call(t.attrs,a)&&(s[Joe(n.schema,a).property]=Mv(t.attrs[a]));t.startTag;const o=Mv(t.startTag),l=t.endTag?Mv(t.endTag):void 0,c={opening:o};l&&(c.closing=l),c.properties=s,e.data={position:c}}}return i}function Mv(n){const e=lge({line:n.startLine,column:n.startCol,offset:n.startOffset}),t=lge({line:n.endLine,column:n.endCol,offset:n.endOffset});return e||t?{start:e,end:t}:void 0}function lge(n){return n.line&&n.column?n:void 0}class HI{constructor(e,t,i){this.property=e,this.normal=t,i&&(this.space=i)}}HI.prototype.property={};HI.prototype.normal={};HI.prototype.space=null;function MDe(n,e){const t={},i={};let r=-1;for(;++r<n.length;)Object.assign(t,n[r].property),Object.assign(i,n[r].normal);return new HI(t,i,e)}function XJ(n){return n.toLowerCase()}class nf{constructor(e,t){this.property=e,this.attribute=t}}nf.prototype.space=null;nf.prototype.boolean=!1;nf.prototype.booleanish=!1;nf.prototype.overloadedBoolean=!1;nf.prototype.number=!1;nf.prototype.commaSeparated=!1;nf.prototype.spaceSeparated=!1;nf.prototype.commaOrSpaceSeparated=!1;nf.prototype.mustUseProperty=!1;nf.prototype.defined=!1;let Dyt=0;const Ks=Nb(),Kc=Nb(),ODe=Nb(),_i=Nb(),_l=Nb(),hy=Nb(),v2=Nb();function Nb(){return 2**++Dyt}const JJ=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ks,booleanish:Kc,commaOrSpaceSeparated:v2,commaSeparated:hy,number:_i,overloadedBoolean:ODe,spaceSeparated:_l},Symbol.toStringTag,{value:"Module"})),IZ=Object.keys(JJ);class Zle extends nf{constructor(e,t,i,r){let s=-1;if(super(e,t),cge(this,"space",r),typeof i=="number")for(;++s<IZ.length;){const a=IZ[s];cge(this,IZ[s],(i&JJ[a])===JJ[a])}}}Zle.prototype.defined=!0;function cge(n,e,t){t&&(n[e]=t)}const Myt={}.hasOwnProperty;function ZC(n){const e={},t={};let i;for(i in n.properties)if(Myt.call(n.properties,i)){const r=n.properties[i],s=new Zle(i,n.transform(n.attributes||{},i),r,n.space);n.mustUseProperty&&n.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),e[i]=s,t[XJ(i)]=i,t[XJ(s.attribute)]=i}return new HI(e,t,n.space)}const NDe=ZC({space:"xlink",transform(n,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),RDe=ZC({space:"xml",transform(n,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function PDe(n,e){return e in n?n[e]:e}function HDe(n,e){return PDe(n,e.toLowerCase())}const FDe=ZC({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:HDe,properties:{xmlns:null,xmlnsXLink:null}}),BDe=ZC({transform(n,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Kc,ariaAutoComplete:null,ariaBusy:Kc,ariaChecked:Kc,ariaColCount:_i,ariaColIndex:_i,ariaColSpan:_i,ariaControls:_l,ariaCurrent:null,ariaDescribedBy:_l,ariaDetails:null,ariaDisabled:Kc,ariaDropEffect:_l,ariaErrorMessage:null,ariaExpanded:Kc,ariaFlowTo:_l,ariaGrabbed:Kc,ariaHasPopup:null,ariaHidden:Kc,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_l,ariaLevel:_i,ariaLive:null,ariaModal:Kc,ariaMultiLine:Kc,ariaMultiSelectable:Kc,ariaOrientation:null,ariaOwns:_l,ariaPlaceholder:null,ariaPosInSet:_i,ariaPressed:Kc,ariaReadOnly:Kc,ariaRelevant:null,ariaRequired:Kc,ariaRoleDescription:_l,ariaRowCount:_i,ariaRowIndex:_i,ariaRowSpan:_i,ariaSelected:Kc,ariaSetSize:_i,ariaSort:null,ariaValueMax:_i,ariaValueMin:_i,ariaValueNow:_i,ariaValueText:null,role:null}}),Oyt=ZC({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:HDe,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:hy,acceptCharset:_l,accessKey:_l,action:null,allow:null,allowFullScreen:Ks,allowPaymentRequest:Ks,allowUserMedia:Ks,alt:null,as:null,async:Ks,autoCapitalize:null,autoComplete:_l,autoFocus:Ks,autoPlay:Ks,blocking:_l,capture:null,charSet:null,checked:Ks,cite:null,className:_l,cols:_i,colSpan:null,content:null,contentEditable:Kc,controls:Ks,controlsList:_l,coords:_i|hy,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ks,defer:Ks,dir:null,dirName:null,disabled:Ks,download:ODe,draggable:Kc,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ks,formTarget:null,headers:_l,height:_i,hidden:Ks,high:_i,href:null,hrefLang:null,htmlFor:_l,httpEquiv:_l,id:null,imageSizes:null,imageSrcSet:null,inert:Ks,inputMode:null,integrity:null,is:null,isMap:Ks,itemId:null,itemProp:_l,itemRef:_l,itemScope:Ks,itemType:_l,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ks,low:_i,manifest:null,max:null,maxLength:_i,media:null,method:null,min:null,minLength:_i,multiple:Ks,muted:Ks,name:null,nonce:null,noModule:Ks,noValidate:Ks,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ks,optimum:_i,pattern:null,ping:_l,placeholder:null,playsInline:Ks,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ks,referrerPolicy:null,rel:_l,required:Ks,reversed:Ks,rows:_i,rowSpan:_i,sandbox:_l,scope:null,scoped:Ks,seamless:Ks,selected:Ks,shadowRootClonable:Ks,shadowRootDelegatesFocus:Ks,shadowRootMode:null,shape:null,size:_i,sizes:null,slot:null,span:_i,spellCheck:Kc,src:null,srcDoc:null,srcLang:null,srcSet:null,start:_i,step:null,style:null,tabIndex:_i,target:null,title:null,translate:null,type:null,typeMustMatch:Ks,useMap:null,value:Kc,width:_i,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:_l,axis:null,background:null,bgColor:null,border:_i,borderColor:null,bottomMargin:_i,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ks,declare:Ks,event:null,face:null,frame:null,frameBorder:null,hSpace:_i,leftMargin:_i,link:null,longDesc:null,lowSrc:null,marginHeight:_i,marginWidth:_i,noResize:Ks,noHref:Ks,noShade:Ks,noWrap:Ks,object:null,profile:null,prompt:null,rev:null,rightMargin:_i,rules:null,scheme:null,scrolling:Kc,standby:null,summary:null,text:null,topMargin:_i,valueType:null,version:null,vAlign:null,vLink:null,vSpace:_i,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ks,disableRemotePlayback:Ks,prefix:null,property:null,results:_i,security:null,unselectable:null}}),Nyt=ZC({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:PDe,properties:{about:v2,accentHeight:_i,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:_i,amplitude:_i,arabicForm:null,ascent:_i,attributeName:null,attributeType:null,azimuth:_i,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:_i,by:null,calcMode:null,capHeight:_i,className:_l,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:_i,diffuseConstant:_i,direction:null,display:null,dur:null,divisor:_i,dominantBaseline:null,download:Ks,dx:null,dy:null,edgeMode:null,editable:null,elevation:_i,enableBackground:null,end:null,event:null,exponent:_i,externalResourcesRequired:null,fill:null,fillOpacity:_i,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:hy,g2:hy,glyphName:hy,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:_i,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:_i,horizOriginX:_i,horizOriginY:_i,id:null,ideographic:_i,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:_i,k:_i,k1:_i,k2:_i,k3:_i,k4:_i,kernelMatrix:v2,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:_i,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:_i,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:_i,overlineThickness:_i,paintOrder:null,panose1:null,path:null,pathLength:_i,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:_l,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:_i,pointsAtY:_i,pointsAtZ:_i,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:v2,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:v2,rev:v2,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:v2,requiredFeatures:v2,requiredFonts:v2,requiredFormats:v2,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:_i,specularExponent:_i,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:_i,strikethroughThickness:_i,string:null,stroke:null,strokeDashArray:v2,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:_i,strokeOpacity:_i,strokeWidth:null,style:null,surfaceScale:_i,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:v2,tabIndex:_i,tableValues:null,target:null,targetX:_i,targetY:_i,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:v2,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:_i,underlineThickness:_i,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:_i,values:null,vAlphabetic:_i,vMathematical:_i,vectorEffect:null,vHanging:_i,vIdeographic:_i,version:null,vertAdvY:_i,vertOriginX:_i,vertOriginY:_i,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:_i,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Ryt=/^data[-\w.:]+$/i,uge=/-[a-z]/g,Pyt=/[A-Z]/g;function Hyt(n,e){const t=XJ(e);let i=e,r=nf;if(t in n.normal)return n.property[n.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Ryt.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(uge,Byt);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!uge.test(s)){let a=s.replace(Pyt,Fyt);a.charAt(0)!=="-"&&(a="-"+a),e="data"+a}}r=Zle}return new r(i,e)}function Fyt(n){return"-"+n.toLowerCase()}function Byt(n){return n.charAt(1).toUpperCase()}const Vyt=MDe([RDe,NDe,FDe,BDe,Oyt],"html"),VDe=MDe([RDe,NDe,FDe,BDe,Nyt],"svg"),dge={}.hasOwnProperty;function jDe(n,e){const t=e||{};function i(r,...s){let a=i.invalid;const o=i.handlers;if(r&&dge.call(r,n)){const l=String(r[n]);a=dge.call(o,l)?o[l]:i.unknown}if(a)return a.call(this,r,...s)}return i.handlers=t.handlers||{},i.invalid=t.invalid,i.unknown=t.unknown,i}const jyt={},zyt={}.hasOwnProperty,zDe=jDe("type",{handlers:{root:Uyt,element:Kyt,text:Zyt,comment:Gyt,doctype:qyt}});function Wyt(n,e){const i=(e||jyt).space;return zDe(n,i==="svg"?VDe:Vyt)}function Uyt(n,e){const t={nodeName:"#document",mode:(n.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return t.childNodes=Gle(n.children,t,e),GC(n,t),t}function $yt(n,e){const t={nodeName:"#document-fragment",childNodes:[]};return t.childNodes=Gle(n.children,t,e),GC(n,t),t}function qyt(n){const e={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return GC(n,e),e}function Zyt(n){const e={nodeName:"#text",value:n.value,parentNode:null};return GC(n,e),e}function Gyt(n){const e={nodeName:"#comment",data:n.value,parentNode:null};return GC(n,e),e}function Kyt(n,e){const t=e;let i=t;n.type==="element"&&n.tagName.toLowerCase()==="svg"&&t.space==="html"&&(i=VDe);const r=[];let s;if(n.properties){for(s in n.properties)if(s!=="children"&&zyt.call(n.properties,s)){const l=Yyt(i,s,n.properties[s]);l&&r.push(l)}}const a=i.space,o={nodeName:n.tagName,tagName:n.tagName,attrs:r,namespaceURI:z9[a],childNodes:[],parentNode:null};return o.childNodes=Gle(n.children,o,i),GC(n,o),n.tagName==="template"&&n.content&&(o.content=$yt(n.content,i)),o}function Yyt(n,e,t){const i=Hyt(n,e);if(t===!1||t===null||t===void 0||typeof t=="number"&&Number.isNaN(t)||!t&&i.boolean)return;Array.isArray(t)&&(t=i.commaSeparated?$Ce(t):eQe(t));const r={name:i.attribute,value:t===!0?"":String(t)};if(i.space&&i.space!=="html"&&i.space!=="svg"){const s=r.name.indexOf(":");s<0?r.prefix="":(r.name=r.name.slice(s+1),r.prefix=i.attribute.slice(0,s)),r.namespace=z9[i.space]}return r}function Gle(n,e,t){let i=-1;const r=[];if(n)for(;++i<n.length;){const s=zDe(n[i],t);s.parentNode=e,r.push(s)}return r}function GC(n,e){const t=n.position;t&&t.start&&t.end&&(t.start.offset,t.end.offset,e.sourceCodeLocation={startLine:t.start.line,startCol:t.start.column,startOffset:t.start.offset,endLine:t.end.line,endCol:t.end.column,endOffset:t.end.offset})}const Xyt=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Jyt=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Fl="�";var Ze;(function(n){n[n.EOF=-1]="EOF",n[n.NULL=0]="NULL",n[n.TABULATION=9]="TABULATION",n[n.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",n[n.LINE_FEED=10]="LINE_FEED",n[n.FORM_FEED=12]="FORM_FEED",n[n.SPACE=32]="SPACE",n[n.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",n[n.QUOTATION_MARK=34]="QUOTATION_MARK",n[n.AMPERSAND=38]="AMPERSAND",n[n.APOSTROPHE=39]="APOSTROPHE",n[n.HYPHEN_MINUS=45]="HYPHEN_MINUS",n[n.SOLIDUS=47]="SOLIDUS",n[n.DIGIT_0=48]="DIGIT_0",n[n.DIGIT_9=57]="DIGIT_9",n[n.SEMICOLON=59]="SEMICOLON",n[n.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",n[n.EQUALS_SIGN=61]="EQUALS_SIGN",n[n.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",n[n.QUESTION_MARK=63]="QUESTION_MARK",n[n.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",n[n.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",n[n.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",n[n.GRAVE_ACCENT=96]="GRAVE_ACCENT",n[n.LATIN_SMALL_A=97]="LATIN_SMALL_A",n[n.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(Ze||(Ze={}));const d1={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function WDe(n){return n>=55296&&n<=57343}function ewt(n){return n>=56320&&n<=57343}function twt(n,e){return(n-55296)*1024+9216+e}function UDe(n){return n!==32&&n!==10&&n!==13&&n!==9&&n!==12&&n>=1&&n<=31||n>=127&&n<=159}function $De(n){return n>=64976&&n<=65007||Jyt.has(n)}var xn;(function(n){n.controlCharacterInInputStream="control-character-in-input-stream",n.noncharacterInInputStream="noncharacter-in-input-stream",n.surrogateInInputStream="surrogate-in-input-stream",n.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",n.endTagWithAttributes="end-tag-with-attributes",n.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",n.unexpectedSolidusInTag="unexpected-solidus-in-tag",n.unexpectedNullCharacter="unexpected-null-character",n.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",n.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",n.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",n.missingEndTagName="missing-end-tag-name",n.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",n.unknownNamedCharacterReference="unknown-named-character-reference",n.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",n.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",n.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",n.eofBeforeTagName="eof-before-tag-name",n.eofInTag="eof-in-tag",n.missingAttributeValue="missing-attribute-value",n.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",n.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",n.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",n.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",n.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",n.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",n.missingDoctypePublicIdentifier="missing-doctype-public-identifier",n.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",n.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",n.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",n.cdataInHtmlContent="cdata-in-html-content",n.incorrectlyOpenedComment="incorrectly-opened-comment",n.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",n.eofInDoctype="eof-in-doctype",n.nestedComment="nested-comment",n.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",n.eofInComment="eof-in-comment",n.incorrectlyClosedComment="incorrectly-closed-comment",n.eofInCdata="eof-in-cdata",n.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",n.nullCharacterReference="null-character-reference",n.surrogateCharacterReference="surrogate-character-reference",n.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",n.controlCharacterReference="control-character-reference",n.noncharacterCharacterReference="noncharacter-character-reference",n.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",n.missingDoctypeName="missing-doctype-name",n.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",n.duplicateAttribute="duplicate-attribute",n.nonConformingDoctype="non-conforming-doctype",n.missingDoctype="missing-doctype",n.misplacedDoctype="misplaced-doctype",n.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",n.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",n.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",n.openElementsLeftAfterEof="open-elements-left-after-eof",n.abandonedHeadElementChild="abandoned-head-element-child",n.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",n.nestedNoscriptInHead="nested-noscript-in-head",n.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(xn||(xn={}));const nwt=65536;class iwt{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=nwt,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){const{line:i,col:r,offset:s}=this,a=r+t,o=s+t;return{code:e,startLine:i,endLine:i,startCol:a,endCol:a,startOffset:o,endOffset:o}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(ewt(t))return this.pos++,this._addGap(),twt(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Ze.EOF;return this._err(xn.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let i=0;i<e.length;i++)if((this.html.charCodeAt(this.pos+i)|32)!==e.charCodeAt(i))return!1;return!0}peek(e){const t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Ze.EOF;const i=this.html.charCodeAt(t);return i===Ze.CARRIAGE_RETURN?Ze.LINE_FEED:i}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Ze.EOF;let e=this.html.charCodeAt(this.pos);return e===Ze.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,Ze.LINE_FEED):e===Ze.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,WDe(e)&&(e=this._processSurrogate(e)),this.handler.onParseError===null||e>31&&e<127||e===Ze.LINE_FEED||e===Ze.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){UDe(e)?this._err(xn.controlCharacterInInputStream):$De(e)&&this._err(xn.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var mo;(function(n){n[n.CHARACTER=0]="CHARACTER",n[n.NULL_CHARACTER=1]="NULL_CHARACTER",n[n.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",n[n.START_TAG=3]="START_TAG",n[n.END_TAG=4]="END_TAG",n[n.COMMENT=5]="COMMENT",n[n.DOCTYPE=6]="DOCTYPE",n[n.EOF=7]="EOF",n[n.HIBERNATION=8]="HIBERNATION"})(mo||(mo={}));function qDe(n,e){for(let t=n.attrs.length-1;t>=0;t--)if(n.attrs[t].name===e)return n.attrs[t].value;return null}const rwt=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(n=>n.charCodeAt(0))),swt=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function owt(n){var e;return n>=55296&&n<=57343||n>1114111?65533:(e=swt.get(n))!==null&&e!==void 0?e:n}var Gu;(function(n){n[n.NUM=35]="NUM",n[n.SEMI=59]="SEMI",n[n.EQUALS=61]="EQUALS",n[n.ZERO=48]="ZERO",n[n.NINE=57]="NINE",n[n.LOWER_A=97]="LOWER_A",n[n.LOWER_F=102]="LOWER_F",n[n.LOWER_X=120]="LOWER_X",n[n.LOWER_Z=122]="LOWER_Z",n[n.UPPER_A=65]="UPPER_A",n[n.UPPER_F=70]="UPPER_F",n[n.UPPER_Z=90]="UPPER_Z"})(Gu||(Gu={}));const awt=32;var y6;(function(n){n[n.VALUE_LENGTH=49152]="VALUE_LENGTH",n[n.BRANCH_LENGTH=16256]="BRANCH_LENGTH",n[n.JUMP_TABLE=127]="JUMP_TABLE"})(y6||(y6={}));function eee(n){return n>=Gu.ZERO&&n<=Gu.NINE}function lwt(n){return n>=Gu.UPPER_A&&n<=Gu.UPPER_F||n>=Gu.LOWER_A&&n<=Gu.LOWER_F}function cwt(n){return n>=Gu.UPPER_A&&n<=Gu.UPPER_Z||n>=Gu.LOWER_A&&n<=Gu.LOWER_Z||eee(n)}function uwt(n){return n===Gu.EQUALS||cwt(n)}var Vu;(function(n){n[n.EntityStart=0]="EntityStart",n[n.NumericStart=1]="NumericStart",n[n.NumericDecimal=2]="NumericDecimal",n[n.NumericHex=3]="NumericHex",n[n.NamedEntity=4]="NamedEntity"})(Vu||(Vu={}));var zg;(function(n){n[n.Legacy=0]="Legacy",n[n.Strict=1]="Strict",n[n.Attribute=2]="Attribute"})(zg||(zg={}));class dwt{constructor(e,t,i){this.decodeTree=e,this.emitCodePoint=t,this.errors=i,this.state=Vu.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=zg.Strict}startEntity(e){this.decodeMode=e,this.state=Vu.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case Vu.EntityStart:return e.charCodeAt(t)===Gu.NUM?(this.state=Vu.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Vu.NamedEntity,this.stateNamedEntity(e,t));case Vu.NumericStart:return this.stateNumericStart(e,t);case Vu.NumericDecimal:return this.stateNumericDecimal(e,t);case Vu.NumericHex:return this.stateNumericHex(e,t);case Vu.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|awt)===Gu.LOWER_X?(this.state=Vu.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=Vu.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,i,r){if(t!==i){const s=i-t;this.result=this.result*Math.pow(r,s)+Number.parseInt(e.substr(t,s),r),this.consumed+=s}}stateNumericHex(e,t){const i=t;for(;t<e.length;){const r=e.charCodeAt(t);if(eee(r)||lwt(r))t+=1;else return this.addToNumericResult(e,i,t,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(e,i,t,16),-1}stateNumericDecimal(e,t){const i=t;for(;t<e.length;){const r=e.charCodeAt(t);if(eee(r))t+=1;else return this.addToNumericResult(e,i,t,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(e,i,t,10),-1}emitNumericEntity(e,t){var i;if(this.consumed<=t)return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Gu.SEMI)this.consumed+=1;else if(this.decodeMode===zg.Strict)return 0;return this.emitCodePoint(owt(this.result),this.consumed),this.errors&&(e!==Gu.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:i}=this;let r=i[this.treeIndex],s=(r&y6.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const a=e.charCodeAt(t);if(this.treeIndex=hwt(i,r,this.treeIndex+Math.max(1,s),a),this.treeIndex<0)return this.result===0||this.decodeMode===zg.Attribute&&(s===0||uwt(a))?0:this.emitNotTerminatedNamedEntity();if(r=i[this.treeIndex],s=(r&y6.VALUE_LENGTH)>>14,s!==0){if(a===Gu.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==zg.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:i}=this,r=(i[t]&y6.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,i){const{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&~y6.VALUE_LENGTH:r[e+1],i),t===3&&this.emitCodePoint(r[e+2],i),i}end(){var e;switch(this.state){case Vu.NamedEntity:return this.result!==0&&(this.decodeMode!==zg.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Vu.NumericDecimal:return this.emitNumericEntity(0,2);case Vu.NumericHex:return this.emitNumericEntity(0,3);case Vu.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Vu.EntityStart:return 0}}}function hwt(n,e,t,i){const r=(e&y6.BRANCH_LENGTH)>>7,s=e&y6.JUMP_TABLE;if(r===0)return s!==0&&i===s?t:-1;if(s){const l=i-s;return l<0||l>=r?-1:n[t+l]-1}let a=t,o=a+r-1;for(;a<=o;){const l=a+o>>>1,c=n[l];if(c<i)a=l+1;else if(c>i)o=l-1;else return n[l+r]}return-1}var Xn;(function(n){n.HTML="http://www.w3.org/1999/xhtml",n.MATHML="http://www.w3.org/1998/Math/MathML",n.SVG="http://www.w3.org/2000/svg",n.XLINK="http://www.w3.org/1999/xlink",n.XML="http://www.w3.org/XML/1998/namespace",n.XMLNS="http://www.w3.org/2000/xmlns/"})(Xn||(Xn={}));var oT;(function(n){n.TYPE="type",n.ACTION="action",n.ENCODING="encoding",n.PROMPT="prompt",n.NAME="name",n.COLOR="color",n.FACE="face",n.SIZE="size"})(oT||(oT={}));var A0;(function(n){n.NO_QUIRKS="no-quirks",n.QUIRKS="quirks",n.LIMITED_QUIRKS="limited-quirks"})(A0||(A0={}));var tn;(function(n){n.A="a",n.ADDRESS="address",n.ANNOTATION_XML="annotation-xml",n.APPLET="applet",n.AREA="area",n.ARTICLE="article",n.ASIDE="aside",n.B="b",n.BASE="base",n.BASEFONT="basefont",n.BGSOUND="bgsound",n.BIG="big",n.BLOCKQUOTE="blockquote",n.BODY="body",n.BR="br",n.BUTTON="button",n.CAPTION="caption",n.CENTER="center",n.CODE="code",n.COL="col",n.COLGROUP="colgroup",n.DD="dd",n.DESC="desc",n.DETAILS="details",n.DIALOG="dialog",n.DIR="dir",n.DIV="div",n.DL="dl",n.DT="dt",n.EM="em",n.EMBED="embed",n.FIELDSET="fieldset",n.FIGCAPTION="figcaption",n.FIGURE="figure",n.FONT="font",n.FOOTER="footer",n.FOREIGN_OBJECT="foreignObject",n.FORM="form",n.FRAME="frame",n.FRAMESET="frameset",n.H1="h1",n.H2="h2",n.H3="h3",n.H4="h4",n.H5="h5",n.H6="h6",n.HEAD="head",n.HEADER="header",n.HGROUP="hgroup",n.HR="hr",n.HTML="html",n.I="i",n.IMG="img",n.IMAGE="image",n.INPUT="input",n.IFRAME="iframe",n.KEYGEN="keygen",n.LABEL="label",n.LI="li",n.LINK="link",n.LISTING="listing",n.MAIN="main",n.MALIGNMARK="malignmark",n.MARQUEE="marquee",n.MATH="math",n.MENU="menu",n.META="meta",n.MGLYPH="mglyph",n.MI="mi",n.MO="mo",n.MN="mn",n.MS="ms",n.MTEXT="mtext",n.NAV="nav",n.NOBR="nobr",n.NOFRAMES="noframes",n.NOEMBED="noembed",n.NOSCRIPT="noscript",n.OBJECT="object",n.OL="ol",n.OPTGROUP="optgroup",n.OPTION="option",n.P="p",n.PARAM="param",n.PLAINTEXT="plaintext",n.PRE="pre",n.RB="rb",n.RP="rp",n.RT="rt",n.RTC="rtc",n.RUBY="ruby",n.S="s",n.SCRIPT="script",n.SEARCH="search",n.SECTION="section",n.SELECT="select",n.SOURCE="source",n.SMALL="small",n.SPAN="span",n.STRIKE="strike",n.STRONG="strong",n.STYLE="style",n.SUB="sub",n.SUMMARY="summary",n.SUP="sup",n.TABLE="table",n.TBODY="tbody",n.TEMPLATE="template",n.TEXTAREA="textarea",n.TFOOT="tfoot",n.TD="td",n.TH="th",n.THEAD="thead",n.TITLE="title",n.TR="tr",n.TRACK="track",n.TT="tt",n.U="u",n.UL="ul",n.SVG="svg",n.VAR="var",n.WBR="wbr",n.XMP="xmp"})(tn||(tn={}));var ne;(function(n){n[n.UNKNOWN=0]="UNKNOWN",n[n.A=1]="A",n[n.ADDRESS=2]="ADDRESS",n[n.ANNOTATION_XML=3]="ANNOTATION_XML",n[n.APPLET=4]="APPLET",n[n.AREA=5]="AREA",n[n.ARTICLE=6]="ARTICLE",n[n.ASIDE=7]="ASIDE",n[n.B=8]="B",n[n.BASE=9]="BASE",n[n.BASEFONT=10]="BASEFONT",n[n.BGSOUND=11]="BGSOUND",n[n.BIG=12]="BIG",n[n.BLOCKQUOTE=13]="BLOCKQUOTE",n[n.BODY=14]="BODY",n[n.BR=15]="BR",n[n.BUTTON=16]="BUTTON",n[n.CAPTION=17]="CAPTION",n[n.CENTER=18]="CENTER",n[n.CODE=19]="CODE",n[n.COL=20]="COL",n[n.COLGROUP=21]="COLGROUP",n[n.DD=22]="DD",n[n.DESC=23]="DESC",n[n.DETAILS=24]="DETAILS",n[n.DIALOG=25]="DIALOG",n[n.DIR=26]="DIR",n[n.DIV=27]="DIV",n[n.DL=28]="DL",n[n.DT=29]="DT",n[n.EM=30]="EM",n[n.EMBED=31]="EMBED",n[n.FIELDSET=32]="FIELDSET",n[n.FIGCAPTION=33]="FIGCAPTION",n[n.FIGURE=34]="FIGURE",n[n.FONT=35]="FONT",n[n.FOOTER=36]="FOOTER",n[n.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",n[n.FORM=38]="FORM",n[n.FRAME=39]="FRAME",n[n.FRAMESET=40]="FRAMESET",n[n.H1=41]="H1",n[n.H2=42]="H2",n[n.H3=43]="H3",n[n.H4=44]="H4",n[n.H5=45]="H5",n[n.H6=46]="H6",n[n.HEAD=47]="HEAD",n[n.HEADER=48]="HEADER",n[n.HGROUP=49]="HGROUP",n[n.HR=50]="HR",n[n.HTML=51]="HTML",n[n.I=52]="I",n[n.IMG=53]="IMG",n[n.IMAGE=54]="IMAGE",n[n.INPUT=55]="INPUT",n[n.IFRAME=56]="IFRAME",n[n.KEYGEN=57]="KEYGEN",n[n.LABEL=58]="LABEL",n[n.LI=59]="LI",n[n.LINK=60]="LINK",n[n.LISTING=61]="LISTING",n[n.MAIN=62]="MAIN",n[n.MALIGNMARK=63]="MALIGNMARK",n[n.MARQUEE=64]="MARQUEE",n[n.MATH=65]="MATH",n[n.MENU=66]="MENU",n[n.META=67]="META",n[n.MGLYPH=68]="MGLYPH",n[n.MI=69]="MI",n[n.MO=70]="MO",n[n.MN=71]="MN",n[n.MS=72]="MS",n[n.MTEXT=73]="MTEXT",n[n.NAV=74]="NAV",n[n.NOBR=75]="NOBR",n[n.NOFRAMES=76]="NOFRAMES",n[n.NOEMBED=77]="NOEMBED",n[n.NOSCRIPT=78]="NOSCRIPT",n[n.OBJECT=79]="OBJECT",n[n.OL=80]="OL",n[n.OPTGROUP=81]="OPTGROUP",n[n.OPTION=82]="OPTION",n[n.P=83]="P",n[n.PARAM=84]="PARAM",n[n.PLAINTEXT=85]="PLAINTEXT",n[n.PRE=86]="PRE",n[n.RB=87]="RB",n[n.RP=88]="RP",n[n.RT=89]="RT",n[n.RTC=90]="RTC",n[n.RUBY=91]="RUBY",n[n.S=92]="S",n[n.SCRIPT=93]="SCRIPT",n[n.SEARCH=94]="SEARCH",n[n.SECTION=95]="SECTION",n[n.SELECT=96]="SELECT",n[n.SOURCE=97]="SOURCE",n[n.SMALL=98]="SMALL",n[n.SPAN=99]="SPAN",n[n.STRIKE=100]="STRIKE",n[n.STRONG=101]="STRONG",n[n.STYLE=102]="STYLE",n[n.SUB=103]="SUB",n[n.SUMMARY=104]="SUMMARY",n[n.SUP=105]="SUP",n[n.TABLE=106]="TABLE",n[n.TBODY=107]="TBODY",n[n.TEMPLATE=108]="TEMPLATE",n[n.TEXTAREA=109]="TEXTAREA",n[n.TFOOT=110]="TFOOT",n[n.TD=111]="TD",n[n.TH=112]="TH",n[n.THEAD=113]="THEAD",n[n.TITLE=114]="TITLE",n[n.TR=115]="TR",n[n.TRACK=116]="TRACK",n[n.TT=117]="TT",n[n.U=118]="U",n[n.UL=119]="UL",n[n.SVG=120]="SVG",n[n.VAR=121]="VAR",n[n.WBR=122]="WBR",n[n.XMP=123]="XMP"})(ne||(ne={}));const fwt=new Map([[tn.A,ne.A],[tn.ADDRESS,ne.ADDRESS],[tn.ANNOTATION_XML,ne.ANNOTATION_XML],[tn.APPLET,ne.APPLET],[tn.AREA,ne.AREA],[tn.ARTICLE,ne.ARTICLE],[tn.ASIDE,ne.ASIDE],[tn.B,ne.B],[tn.BASE,ne.BASE],[tn.BASEFONT,ne.BASEFONT],[tn.BGSOUND,ne.BGSOUND],[tn.BIG,ne.BIG],[tn.BLOCKQUOTE,ne.BLOCKQUOTE],[tn.BODY,ne.BODY],[tn.BR,ne.BR],[tn.BUTTON,ne.BUTTON],[tn.CAPTION,ne.CAPTION],[tn.CENTER,ne.CENTER],[tn.CODE,ne.CODE],[tn.COL,ne.COL],[tn.COLGROUP,ne.COLGROUP],[tn.DD,ne.DD],[tn.DESC,ne.DESC],[tn.DETAILS,ne.DETAILS],[tn.DIALOG,ne.DIALOG],[tn.DIR,ne.DIR],[tn.DIV,ne.DIV],[tn.DL,ne.DL],[tn.DT,ne.DT],[tn.EM,ne.EM],[tn.EMBED,ne.EMBED],[tn.FIELDSET,ne.FIELDSET],[tn.FIGCAPTION,ne.FIGCAPTION],[tn.FIGURE,ne.FIGURE],[tn.FONT,ne.FONT],[tn.FOOTER,ne.FOOTER],[tn.FOREIGN_OBJECT,ne.FOREIGN_OBJECT],[tn.FORM,ne.FORM],[tn.FRAME,ne.FRAME],[tn.FRAMESET,ne.FRAMESET],[tn.H1,ne.H1],[tn.H2,ne.H2],[tn.H3,ne.H3],[tn.H4,ne.H4],[tn.H5,ne.H5],[tn.H6,ne.H6],[tn.HEAD,ne.HEAD],[tn.HEADER,ne.HEADER],[tn.HGROUP,ne.HGROUP],[tn.HR,ne.HR],[tn.HTML,ne.HTML],[tn.I,ne.I],[tn.IMG,ne.IMG],[tn.IMAGE,ne.IMAGE],[tn.INPUT,ne.INPUT],[tn.IFRAME,ne.IFRAME],[tn.KEYGEN,ne.KEYGEN],[tn.LABEL,ne.LABEL],[tn.LI,ne.LI],[tn.LINK,ne.LINK],[tn.LISTING,ne.LISTING],[tn.MAIN,ne.MAIN],[tn.MALIGNMARK,ne.MALIGNMARK],[tn.MARQUEE,ne.MARQUEE],[tn.MATH,ne.MATH],[tn.MENU,ne.MENU],[tn.META,ne.META],[tn.MGLYPH,ne.MGLYPH],[tn.MI,ne.MI],[tn.MO,ne.MO],[tn.MN,ne.MN],[tn.MS,ne.MS],[tn.MTEXT,ne.MTEXT],[tn.NAV,ne.NAV],[tn.NOBR,ne.NOBR],[tn.NOFRAMES,ne.NOFRAMES],[tn.NOEMBED,ne.NOEMBED],[tn.NOSCRIPT,ne.NOSCRIPT],[tn.OBJECT,ne.OBJECT],[tn.OL,ne.OL],[tn.OPTGROUP,ne.OPTGROUP],[tn.OPTION,ne.OPTION],[tn.P,ne.P],[tn.PARAM,ne.PARAM],[tn.PLAINTEXT,ne.PLAINTEXT],[tn.PRE,ne.PRE],[tn.RB,ne.RB],[tn.RP,ne.RP],[tn.RT,ne.RT],[tn.RTC,ne.RTC],[tn.RUBY,ne.RUBY],[tn.S,ne.S],[tn.SCRIPT,ne.SCRIPT],[tn.SEARCH,ne.SEARCH],[tn.SECTION,ne.SECTION],[tn.SELECT,ne.SELECT],[tn.SOURCE,ne.SOURCE],[tn.SMALL,ne.SMALL],[tn.SPAN,ne.SPAN],[tn.STRIKE,ne.STRIKE],[tn.STRONG,ne.STRONG],[tn.STYLE,ne.STYLE],[tn.SUB,ne.SUB],[tn.SUMMARY,ne.SUMMARY],[tn.SUP,ne.SUP],[tn.TABLE,ne.TABLE],[tn.TBODY,ne.TBODY],[tn.TEMPLATE,ne.TEMPLATE],[tn.TEXTAREA,ne.TEXTAREA],[tn.TFOOT,ne.TFOOT],[tn.TD,ne.TD],[tn.TH,ne.TH],[tn.THEAD,ne.THEAD],[tn.TITLE,ne.TITLE],[tn.TR,ne.TR],[tn.TRACK,ne.TRACK],[tn.TT,ne.TT],[tn.U,ne.U],[tn.UL,ne.UL],[tn.SVG,ne.SVG],[tn.VAR,ne.VAR],[tn.WBR,ne.WBR],[tn.XMP,ne.XMP]]);function KC(n){var e;return(e=fwt.get(n))!==null&&e!==void 0?e:ne.UNKNOWN}const di=ne,pwt={[Xn.HTML]:new Set([di.ADDRESS,di.APPLET,di.AREA,di.ARTICLE,di.ASIDE,di.BASE,di.BASEFONT,di.BGSOUND,di.BLOCKQUOTE,di.BODY,di.BR,di.BUTTON,di.CAPTION,di.CENTER,di.COL,di.COLGROUP,di.DD,di.DETAILS,di.DIR,di.DIV,di.DL,di.DT,di.EMBED,di.FIELDSET,di.FIGCAPTION,di.FIGURE,di.FOOTER,di.FORM,di.FRAME,di.FRAMESET,di.H1,di.H2,di.H3,di.H4,di.H5,di.H6,di.HEAD,di.HEADER,di.HGROUP,di.HR,di.HTML,di.IFRAME,di.IMG,di.INPUT,di.LI,di.LINK,di.LISTING,di.MAIN,di.MARQUEE,di.MENU,di.META,di.NAV,di.NOEMBED,di.NOFRAMES,di.NOSCRIPT,di.OBJECT,di.OL,di.P,di.PARAM,di.PLAINTEXT,di.PRE,di.SCRIPT,di.SECTION,di.SELECT,di.SOURCE,di.STYLE,di.SUMMARY,di.TABLE,di.TBODY,di.TD,di.TEMPLATE,di.TEXTAREA,di.TFOOT,di.TH,di.THEAD,di.TITLE,di.TR,di.TRACK,di.UL,di.WBR,di.XMP]),[Xn.MATHML]:new Set([di.MI,di.MO,di.MN,di.MS,di.MTEXT,di.ANNOTATION_XML]),[Xn.SVG]:new Set([di.TITLE,di.FOREIGN_OBJECT,di.DESC]),[Xn.XLINK]:new Set,[Xn.XML]:new Set,[Xn.XMLNS]:new Set},tee=new Set([di.H1,di.H2,di.H3,di.H4,di.H5,di.H6]);tn.STYLE,tn.SCRIPT,tn.XMP,tn.IFRAME,tn.NOEMBED,tn.NOFRAMES,tn.PLAINTEXT;var st;(function(n){n[n.DATA=0]="DATA",n[n.RCDATA=1]="RCDATA",n[n.RAWTEXT=2]="RAWTEXT",n[n.SCRIPT_DATA=3]="SCRIPT_DATA",n[n.PLAINTEXT=4]="PLAINTEXT",n[n.TAG_OPEN=5]="TAG_OPEN",n[n.END_TAG_OPEN=6]="END_TAG_OPEN",n[n.TAG_NAME=7]="TAG_NAME",n[n.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",n[n.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",n[n.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",n[n.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",n[n.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",n[n.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",n[n.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",n[n.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",n[n.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",n[n.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",n[n.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",n[n.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",n[n.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",n[n.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",n[n.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",n[n.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",n[n.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",n[n.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",n[n.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",n[n.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",n[n.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",n[n.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",n[n.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",n[n.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",n[n.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",n[n.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",n[n.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",n[n.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",n[n.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",n[n.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",n[n.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",n[n.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",n[n.BOGUS_COMMENT=40]="BOGUS_COMMENT",n[n.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",n[n.COMMENT_START=42]="COMMENT_START",n[n.COMMENT_START_DASH=43]="COMMENT_START_DASH",n[n.COMMENT=44]="COMMENT",n[n.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",n[n.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",n[n.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",n[n.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",n[n.COMMENT_END_DASH=49]="COMMENT_END_DASH",n[n.COMMENT_END=50]="COMMENT_END",n[n.COMMENT_END_BANG=51]="COMMENT_END_BANG",n[n.DOCTYPE=52]="DOCTYPE",n[n.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",n[n.DOCTYPE_NAME=54]="DOCTYPE_NAME",n[n.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",n[n.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",n[n.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",n[n.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",n[n.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",n[n.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",n[n.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",n[n.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",n[n.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",n[n.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",n[n.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",n[n.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",n[n.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",n[n.CDATA_SECTION=68]="CDATA_SECTION",n[n.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",n[n.CDATA_SECTION_END=70]="CDATA_SECTION_END",n[n.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",n[n.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(st||(st={}));const Oc={DATA:st.DATA,RCDATA:st.RCDATA,RAWTEXT:st.RAWTEXT,SCRIPT_DATA:st.SCRIPT_DATA,PLAINTEXT:st.PLAINTEXT,CDATA_SECTION:st.CDATA_SECTION};function gwt(n){return n>=Ze.DIGIT_0&&n<=Ze.DIGIT_9}function $S(n){return n>=Ze.LATIN_CAPITAL_A&&n<=Ze.LATIN_CAPITAL_Z}function mwt(n){return n>=Ze.LATIN_SMALL_A&&n<=Ze.LATIN_SMALL_Z}function G5(n){return mwt(n)||$S(n)}function hge(n){return G5(n)||gwt(n)}function cO(n){return n+32}function ZDe(n){return n===Ze.SPACE||n===Ze.LINE_FEED||n===Ze.TABULATION||n===Ze.FORM_FEED}function fge(n){return ZDe(n)||n===Ze.SOLIDUS||n===Ze.GREATER_THAN_SIGN}function Twt(n){return n===Ze.NULL?xn.nullCharacterReference:n>1114111?xn.characterReferenceOutsideUnicodeRange:WDe(n)?xn.surrogateCharacterReference:$De(n)?xn.noncharacterCharacterReference:UDe(n)||n===Ze.CARRIAGE_RETURN?xn.controlCharacterReference:null}class bwt{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=st.DATA,this.returnState=st.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new iwt(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new dwt(rwt,(i,r)=>{this.preprocessor.pos=this.entityStartPos+r-1,this._flushCodePointConsumedAsCharacterReference(i)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(xn.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:i=>{this._err(xn.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+i)},validateNumericCharacterReference:i=>{const r=Twt(i);r&&this._err(r,1)}}:void 0)}_err(e,t=0){var i,r;(r=(i=this.handler).onParseError)===null||r===void 0||r.call(i,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||e==null||e())}write(e,t,i){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||i==null||i()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return this.preprocessor.startsWith(e,t)?(this._advanceBy(e.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:mo.START_TAG,tagName:"",tagID:ne.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:mo.END_TAG,tagName:"",tagID:ne.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:mo.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:mo.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;const i=this.currentToken;if(qDe(i,this.currentAttr.name)===null){if(i.attrs.push(this.currentAttr),i.location&&this.currentLocation){const r=(e=(t=i.location).attrs)!==null&&e!==void 0?e:t.attrs=Object.create(null);r[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(xn.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=KC(e.tagName),e.type===mo.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(xn.endTagWithAttributes),e.selfClosing&&this._err(xn.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case mo.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case mo.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case mo.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:mo.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,t)}_emitCodePoint(e){const t=ZDe(e)?mo.WHITESPACE_CHARACTER:e===Ze.NULL?mo.NULL_CHARACTER:mo.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(mo.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=st.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?zg.Attribute:zg.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===st.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===st.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===st.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case st.DATA:{this._stateData(e);break}case st.RCDATA:{this._stateRcdata(e);break}case st.RAWTEXT:{this._stateRawtext(e);break}case st.SCRIPT_DATA:{this._stateScriptData(e);break}case st.PLAINTEXT:{this._statePlaintext(e);break}case st.TAG_OPEN:{this._stateTagOpen(e);break}case st.END_TAG_OPEN:{this._stateEndTagOpen(e);break}case st.TAG_NAME:{this._stateTagName(e);break}case st.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(e);break}case st.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(e);break}case st.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(e);break}case st.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(e);break}case st.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(e);break}case st.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(e);break}case st.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(e);break}case st.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(e);break}case st.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(e);break}case st.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(e);break}case st.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(e);break}case st.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(e);break}case st.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(e);break}case st.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(e);break}case st.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(e);break}case st.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(e);break}case st.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(e);break}case st.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(e);break}case st.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(e);break}case st.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(e);break}case st.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(e);break}case st.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(e);break}case st.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(e);break}case st.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(e);break}case st.ATTRIBUTE_NAME:{this._stateAttributeName(e);break}case st.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(e);break}case st.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(e);break}case st.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(e);break}case st.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(e);break}case st.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(e);break}case st.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(e);break}case st.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(e);break}case st.BOGUS_COMMENT:{this._stateBogusComment(e);break}case st.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(e);break}case st.COMMENT_START:{this._stateCommentStart(e);break}case st.COMMENT_START_DASH:{this._stateCommentStartDash(e);break}case st.COMMENT:{this._stateComment(e);break}case st.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(e);break}case st.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(e);break}case st.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(e);break}case st.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(e);break}case st.COMMENT_END_DASH:{this._stateCommentEndDash(e);break}case st.COMMENT_END:{this._stateCommentEnd(e);break}case st.COMMENT_END_BANG:{this._stateCommentEndBang(e);break}case st.DOCTYPE:{this._stateDoctype(e);break}case st.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(e);break}case st.DOCTYPE_NAME:{this._stateDoctypeName(e);break}case st.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(e);break}case st.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(e);break}case st.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(e);break}case st.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(e);break}case st.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(e);break}case st.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(e);break}case st.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break}case st.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(e);break}case st.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(e);break}case st.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(e);break}case st.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(e);break}case st.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(e);break}case st.BOGUS_DOCTYPE:{this._stateBogusDoctype(e);break}case st.CDATA_SECTION:{this._stateCdataSection(e);break}case st.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(e);break}case st.CDATA_SECTION_END:{this._stateCdataSectionEnd(e);break}case st.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case st.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(e);break}default:throw new Error("Unknown state")}}_stateData(e){switch(e){case Ze.LESS_THAN_SIGN:{this.state=st.TAG_OPEN;break}case Ze.AMPERSAND:{this._startCharacterReference();break}case Ze.NULL:{this._err(xn.unexpectedNullCharacter),this._emitCodePoint(e);break}case Ze.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case Ze.AMPERSAND:{this._startCharacterReference();break}case Ze.LESS_THAN_SIGN:{this.state=st.RCDATA_LESS_THAN_SIGN;break}case Ze.NULL:{this._err(xn.unexpectedNullCharacter),this._emitChars(Fl);break}case Ze.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case Ze.LESS_THAN_SIGN:{this.state=st.RAWTEXT_LESS_THAN_SIGN;break}case Ze.NULL:{this._err(xn.unexpectedNullCharacter),this._emitChars(Fl);break}case Ze.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case Ze.LESS_THAN_SIGN:{this.state=st.SCRIPT_DATA_LESS_THAN_SIGN;break}case Ze.NULL:{this._err(xn.unexpectedNullCharacter),this._emitChars(Fl);break}case Ze.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case Ze.NULL:{this._err(xn.unexpectedNullCharacter),this._emitChars(Fl);break}case Ze.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateTagOpen(e){if(G5(e))this._createStartTagToken(),this.state=st.TAG_NAME,this._stateTagName(e);else switch(e){case Ze.EXCLAMATION_MARK:{this.state=st.MARKUP_DECLARATION_OPEN;break}case Ze.SOLIDUS:{this.state=st.END_TAG_OPEN;break}case Ze.QUESTION_MARK:{this._err(xn.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=st.BOGUS_COMMENT,this._stateBogusComment(e);break}case Ze.EOF:{this._err(xn.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(xn.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=st.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(G5(e))this._createEndTagToken(),this.state=st.TAG_NAME,this._stateTagName(e);else switch(e){case Ze.GREATER_THAN_SIGN:{this._err(xn.missingEndTagName),this.state=st.DATA;break}case Ze.EOF:{this._err(xn.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(xn.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=st.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case Ze.SPACE:case Ze.LINE_FEED:case Ze.TABULATION:case Ze.FORM_FEED:{this.state=st.BEFORE_ATTRIBUTE_NAME;break}case Ze.SOLIDUS:{this.state=st.SELF_CLOSING_START_TAG;break}case Ze.GREATER_THAN_SIGN:{this.state=st.DATA,this.emitCurrentTagToken();break}case Ze.NULL:{this._err(xn.unexpectedNullCharacter),t.tagName+=Fl;break}case Ze.EOF:{this._err(xn.eofInTag),this._emitEOFToken();break}default:t.tagName+=String.fromCodePoint($S(e)?cO(e):e)}}_stateRcdataLessThanSign(e){e===Ze.SOLIDUS?this.state=st.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=st.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){G5(e)?(this.state=st.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=st.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const t=this.currentToken;switch(t.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case Ze.SPACE:case Ze.LINE_FEED:case Ze.TABULATION:case Ze.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=st.BEFORE_ATTRIBUTE_NAME,!1;case Ze.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=st.SELF_CLOSING_START_TAG,!1;case Ze.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=st.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=st.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===Ze.SOLIDUS?this.state=st.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=st.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){G5(e)?(this.state=st.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=st.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=st.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case Ze.SOLIDUS:{this.state=st.SCRIPT_DATA_END_TAG_OPEN;break}case Ze.EXCLAMATION_MARK:{this.state=st.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=st.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){G5(e)?(this.state=st.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=st.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=st.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===Ze.HYPHEN_MINUS?(this.state=st.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=st.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===Ze.HYPHEN_MINUS?(this.state=st.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=st.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case Ze.HYPHEN_MINUS:{this.state=st.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case Ze.LESS_THAN_SIGN:{this.state=st.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case Ze.NULL:{this._err(xn.unexpectedNullCharacter),this._emitChars(Fl);break}case Ze.EOF:{this._err(xn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case Ze.HYPHEN_MINUS:{this.state=st.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case Ze.LESS_THAN_SIGN:{this.state=st.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case Ze.NULL:{this._err(xn.unexpectedNullCharacter),this.state=st.SCRIPT_DATA_ESCAPED,this._emitChars(Fl);break}case Ze.EOF:{this._err(xn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=st.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case Ze.HYPHEN_MINUS:{this._emitChars("-");break}case Ze.LESS_THAN_SIGN:{this.state=st.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case Ze.GREATER_THAN_SIGN:{this.state=st.SCRIPT_DATA,this._emitChars(">");break}case Ze.NULL:{this._err(xn.unexpectedNullCharacter),this.state=st.SCRIPT_DATA_ESCAPED,this._emitChars(Fl);break}case Ze.EOF:{this._err(xn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=st.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===Ze.SOLIDUS?this.state=st.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:G5(e)?(this._emitChars("<"),this.state=st.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=st.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){G5(e)?(this.state=st.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=st.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=st.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(d1.SCRIPT,!1)&&fge(this.preprocessor.peek(d1.SCRIPT.length))){this._emitCodePoint(e);for(let t=0;t<d1.SCRIPT.length;t++)this._emitCodePoint(this._consume());this.state=st.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=st.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case Ze.HYPHEN_MINUS:{this.state=st.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case Ze.LESS_THAN_SIGN:{this.state=st.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case Ze.NULL:{this._err(xn.unexpectedNullCharacter),this._emitChars(Fl);break}case Ze.EOF:{this._err(xn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case Ze.HYPHEN_MINUS:{this.state=st.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case Ze.LESS_THAN_SIGN:{this.state=st.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case Ze.NULL:{this._err(xn.unexpectedNullCharacter),this.state=st.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Fl);break}case Ze.EOF:{this._err(xn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=st.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case Ze.HYPHEN_MINUS:{this._emitChars("-");break}case Ze.LESS_THAN_SIGN:{this.state=st.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case Ze.GREATER_THAN_SIGN:{this.state=st.SCRIPT_DATA,this._emitChars(">");break}case Ze.NULL:{this._err(xn.unexpectedNullCharacter),this.state=st.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Fl);break}case Ze.EOF:{this._err(xn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=st.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===Ze.SOLIDUS?(this.state=st.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=st.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(d1.SCRIPT,!1)&&fge(this.preprocessor.peek(d1.SCRIPT.length))){this._emitCodePoint(e);for(let t=0;t<d1.SCRIPT.length;t++)this._emitCodePoint(this._consume());this.state=st.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=st.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case Ze.SPACE:case Ze.LINE_FEED:case Ze.TABULATION:case Ze.FORM_FEED:break;case Ze.SOLIDUS:case Ze.GREATER_THAN_SIGN:case Ze.EOF:{this.state=st.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case Ze.EQUALS_SIGN:{this._err(xn.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=st.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=st.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case Ze.SPACE:case Ze.LINE_FEED:case Ze.TABULATION:case Ze.FORM_FEED:case Ze.SOLIDUS:case Ze.GREATER_THAN_SIGN:case Ze.EOF:{this._leaveAttrName(),this.state=st.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case Ze.EQUALS_SIGN:{this._leaveAttrName(),this.state=st.BEFORE_ATTRIBUTE_VALUE;break}case Ze.QUOTATION_MARK:case Ze.APOSTROPHE:case Ze.LESS_THAN_SIGN:{this._err(xn.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break}case Ze.NULL:{this._err(xn.unexpectedNullCharacter),this.currentAttr.name+=Fl;break}default:this.currentAttr.name+=String.fromCodePoint($S(e)?cO(e):e)}}_stateAfterAttributeName(e){switch(e){case Ze.SPACE:case Ze.LINE_FEED:case Ze.TABULATION:case Ze.FORM_FEED:break;case Ze.SOLIDUS:{this.state=st.SELF_CLOSING_START_TAG;break}case Ze.EQUALS_SIGN:{this.state=st.BEFORE_ATTRIBUTE_VALUE;break}case Ze.GREATER_THAN_SIGN:{this.state=st.DATA,this.emitCurrentTagToken();break}case Ze.EOF:{this._err(xn.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=st.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case Ze.SPACE:case Ze.LINE_FEED:case Ze.TABULATION:case Ze.FORM_FEED:break;case Ze.QUOTATION_MARK:{this.state=st.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case Ze.APOSTROPHE:{this.state=st.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case Ze.GREATER_THAN_SIGN:{this._err(xn.missingAttributeValue),this.state=st.DATA,this.emitCurrentTagToken();break}default:this.state=st.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case Ze.QUOTATION_MARK:{this.state=st.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case Ze.AMPERSAND:{this._startCharacterReference();break}case Ze.NULL:{this._err(xn.unexpectedNullCharacter),this.currentAttr.value+=Fl;break}case Ze.EOF:{this._err(xn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case Ze.APOSTROPHE:{this.state=st.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case Ze.AMPERSAND:{this._startCharacterReference();break}case Ze.NULL:{this._err(xn.unexpectedNullCharacter),this.currentAttr.value+=Fl;break}case Ze.EOF:{this._err(xn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case Ze.SPACE:case Ze.LINE_FEED:case Ze.TABULATION:case Ze.FORM_FEED:{this._leaveAttrValue(),this.state=st.BEFORE_ATTRIBUTE_NAME;break}case Ze.AMPERSAND:{this._startCharacterReference();break}case Ze.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=st.DATA,this.emitCurrentTagToken();break}case Ze.NULL:{this._err(xn.unexpectedNullCharacter),this.currentAttr.value+=Fl;break}case Ze.QUOTATION_MARK:case Ze.APOSTROPHE:case Ze.LESS_THAN_SIGN:case Ze.EQUALS_SIGN:case Ze.GRAVE_ACCENT:{this._err(xn.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break}case Ze.EOF:{this._err(xn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case Ze.SPACE:case Ze.LINE_FEED:case Ze.TABULATION:case Ze.FORM_FEED:{this._leaveAttrValue(),this.state=st.BEFORE_ATTRIBUTE_NAME;break}case Ze.SOLIDUS:{this._leaveAttrValue(),this.state=st.SELF_CLOSING_START_TAG;break}case Ze.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=st.DATA,this.emitCurrentTagToken();break}case Ze.EOF:{this._err(xn.eofInTag),this._emitEOFToken();break}default:this._err(xn.missingWhitespaceBetweenAttributes),this.state=st.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case Ze.GREATER_THAN_SIGN:{const t=this.currentToken;t.selfClosing=!0,this.state=st.DATA,this.emitCurrentTagToken();break}case Ze.EOF:{this._err(xn.eofInTag),this._emitEOFToken();break}default:this._err(xn.unexpectedSolidusInTag),this.state=st.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case Ze.GREATER_THAN_SIGN:{this.state=st.DATA,this.emitCurrentComment(t);break}case Ze.EOF:{this.emitCurrentComment(t),this._emitEOFToken();break}case Ze.NULL:{this._err(xn.unexpectedNullCharacter),t.data+=Fl;break}default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(d1.DASH_DASH,!0)?(this._createCommentToken(d1.DASH_DASH.length+1),this.state=st.COMMENT_START):this._consumeSequenceIfMatch(d1.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(d1.DOCTYPE.length+1),this.state=st.DOCTYPE):this._consumeSequenceIfMatch(d1.CDATA_START,!0)?this.inForeignNode?this.state=st.CDATA_SECTION:(this._err(xn.cdataInHtmlContent),this._createCommentToken(d1.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=st.BOGUS_COMMENT):this._ensureHibernation()||(this._err(xn.incorrectlyOpenedComment),this._createCommentToken(2),this.state=st.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case Ze.HYPHEN_MINUS:{this.state=st.COMMENT_START_DASH;break}case Ze.GREATER_THAN_SIGN:{this._err(xn.abruptClosingOfEmptyComment),this.state=st.DATA;const t=this.currentToken;this.emitCurrentComment(t);break}default:this.state=st.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case Ze.HYPHEN_MINUS:{this.state=st.COMMENT_END;break}case Ze.GREATER_THAN_SIGN:{this._err(xn.abruptClosingOfEmptyComment),this.state=st.DATA,this.emitCurrentComment(t);break}case Ze.EOF:{this._err(xn.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+="-",this.state=st.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case Ze.HYPHEN_MINUS:{this.state=st.COMMENT_END_DASH;break}case Ze.LESS_THAN_SIGN:{t.data+="<",this.state=st.COMMENT_LESS_THAN_SIGN;break}case Ze.NULL:{this._err(xn.unexpectedNullCharacter),t.data+=Fl;break}case Ze.EOF:{this._err(xn.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case Ze.EXCLAMATION_MARK:{t.data+="!",this.state=st.COMMENT_LESS_THAN_SIGN_BANG;break}case Ze.LESS_THAN_SIGN:{t.data+="<";break}default:this.state=st.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===Ze.HYPHEN_MINUS?this.state=st.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=st.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===Ze.HYPHEN_MINUS?this.state=st.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=st.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==Ze.GREATER_THAN_SIGN&&e!==Ze.EOF&&this._err(xn.nestedComment),this.state=st.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case Ze.HYPHEN_MINUS:{this.state=st.COMMENT_END;break}case Ze.EOF:{this._err(xn.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+="-",this.state=st.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case Ze.GREATER_THAN_SIGN:{this.state=st.DATA,this.emitCurrentComment(t);break}case Ze.EXCLAMATION_MARK:{this.state=st.COMMENT_END_BANG;break}case Ze.HYPHEN_MINUS:{t.data+="-";break}case Ze.EOF:{this._err(xn.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+="--",this.state=st.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case Ze.HYPHEN_MINUS:{t.data+="--!",this.state=st.COMMENT_END_DASH;break}case Ze.GREATER_THAN_SIGN:{this._err(xn.incorrectlyClosedComment),this.state=st.DATA,this.emitCurrentComment(t);break}case Ze.EOF:{this._err(xn.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+="--!",this.state=st.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case Ze.SPACE:case Ze.LINE_FEED:case Ze.TABULATION:case Ze.FORM_FEED:{this.state=st.BEFORE_DOCTYPE_NAME;break}case Ze.GREATER_THAN_SIGN:{this.state=st.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break}case Ze.EOF:{this._err(xn.eofInDoctype),this._createDoctypeToken(null);const t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(xn.missingWhitespaceBeforeDoctypeName),this.state=st.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if($S(e))this._createDoctypeToken(String.fromCharCode(cO(e))),this.state=st.DOCTYPE_NAME;else switch(e){case Ze.SPACE:case Ze.LINE_FEED:case Ze.TABULATION:case Ze.FORM_FEED:break;case Ze.NULL:{this._err(xn.unexpectedNullCharacter),this._createDoctypeToken(Fl),this.state=st.DOCTYPE_NAME;break}case Ze.GREATER_THAN_SIGN:{this._err(xn.missingDoctypeName),this._createDoctypeToken(null);const t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=st.DATA;break}case Ze.EOF:{this._err(xn.eofInDoctype),this._createDoctypeToken(null);const t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=st.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case Ze.SPACE:case Ze.LINE_FEED:case Ze.TABULATION:case Ze.FORM_FEED:{this.state=st.AFTER_DOCTYPE_NAME;break}case Ze.GREATER_THAN_SIGN:{this.state=st.DATA,this.emitCurrentDoctype(t);break}case Ze.NULL:{this._err(xn.unexpectedNullCharacter),t.name+=Fl;break}case Ze.EOF:{this._err(xn.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.name+=String.fromCodePoint($S(e)?cO(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case Ze.SPACE:case Ze.LINE_FEED:case Ze.TABULATION:case Ze.FORM_FEED:break;case Ze.GREATER_THAN_SIGN:{this.state=st.DATA,this.emitCurrentDoctype(t);break}case Ze.EOF:{this._err(xn.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(d1.PUBLIC,!1)?this.state=st.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(d1.SYSTEM,!1)?this.state=st.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(xn.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=st.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case Ze.SPACE:case Ze.LINE_FEED:case Ze.TABULATION:case Ze.FORM_FEED:{this.state=st.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case Ze.QUOTATION_MARK:{this._err(xn.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=st.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case Ze.APOSTROPHE:{this._err(xn.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=st.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case Ze.GREATER_THAN_SIGN:{this._err(xn.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=st.DATA,this.emitCurrentDoctype(t);break}case Ze.EOF:{this._err(xn.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(xn.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=st.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case Ze.SPACE:case Ze.LINE_FEED:case Ze.TABULATION:case Ze.FORM_FEED:break;case Ze.QUOTATION_MARK:{t.publicId="",this.state=st.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case Ze.APOSTROPHE:{t.publicId="",this.state=st.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case Ze.GREATER_THAN_SIGN:{this._err(xn.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=st.DATA,this.emitCurrentDoctype(t);break}case Ze.EOF:{this._err(xn.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(xn.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=st.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case Ze.QUOTATION_MARK:{this.state=st.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case Ze.NULL:{this._err(xn.unexpectedNullCharacter),t.publicId+=Fl;break}case Ze.GREATER_THAN_SIGN:{this._err(xn.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=st.DATA;break}case Ze.EOF:{this._err(xn.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case Ze.APOSTROPHE:{this.state=st.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case Ze.NULL:{this._err(xn.unexpectedNullCharacter),t.publicId+=Fl;break}case Ze.GREATER_THAN_SIGN:{this._err(xn.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=st.DATA;break}case Ze.EOF:{this._err(xn.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case Ze.SPACE:case Ze.LINE_FEED:case Ze.TABULATION:case Ze.FORM_FEED:{this.state=st.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case Ze.GREATER_THAN_SIGN:{this.state=st.DATA,this.emitCurrentDoctype(t);break}case Ze.QUOTATION_MARK:{this._err(xn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=st.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case Ze.APOSTROPHE:{this._err(xn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=st.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case Ze.EOF:{this._err(xn.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(xn.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=st.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case Ze.SPACE:case Ze.LINE_FEED:case Ze.TABULATION:case Ze.FORM_FEED:break;case Ze.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t),this.state=st.DATA;break}case Ze.QUOTATION_MARK:{t.systemId="",this.state=st.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case Ze.APOSTROPHE:{t.systemId="",this.state=st.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case Ze.EOF:{this._err(xn.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(xn.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=st.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case Ze.SPACE:case Ze.LINE_FEED:case Ze.TABULATION:case Ze.FORM_FEED:{this.state=st.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case Ze.QUOTATION_MARK:{this._err(xn.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=st.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case Ze.APOSTROPHE:{this._err(xn.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=st.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case Ze.GREATER_THAN_SIGN:{this._err(xn.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=st.DATA,this.emitCurrentDoctype(t);break}case Ze.EOF:{this._err(xn.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(xn.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=st.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case Ze.SPACE:case Ze.LINE_FEED:case Ze.TABULATION:case Ze.FORM_FEED:break;case Ze.QUOTATION_MARK:{t.systemId="",this.state=st.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case Ze.APOSTROPHE:{t.systemId="",this.state=st.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case Ze.GREATER_THAN_SIGN:{this._err(xn.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=st.DATA,this.emitCurrentDoctype(t);break}case Ze.EOF:{this._err(xn.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(xn.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=st.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case Ze.QUOTATION_MARK:{this.state=st.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case Ze.NULL:{this._err(xn.unexpectedNullCharacter),t.systemId+=Fl;break}case Ze.GREATER_THAN_SIGN:{this._err(xn.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=st.DATA;break}case Ze.EOF:{this._err(xn.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case Ze.APOSTROPHE:{this.state=st.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case Ze.NULL:{this._err(xn.unexpectedNullCharacter),t.systemId+=Fl;break}case Ze.GREATER_THAN_SIGN:{this._err(xn.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=st.DATA;break}case Ze.EOF:{this._err(xn.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case Ze.SPACE:case Ze.LINE_FEED:case Ze.TABULATION:case Ze.FORM_FEED:break;case Ze.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t),this.state=st.DATA;break}case Ze.EOF:{this._err(xn.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(xn.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=st.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case Ze.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t),this.state=st.DATA;break}case Ze.NULL:{this._err(xn.unexpectedNullCharacter);break}case Ze.EOF:{this.emitCurrentDoctype(t),this._emitEOFToken();break}}}_stateCdataSection(e){switch(e){case Ze.RIGHT_SQUARE_BRACKET:{this.state=st.CDATA_SECTION_BRACKET;break}case Ze.EOF:{this._err(xn.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===Ze.RIGHT_SQUARE_BRACKET?this.state=st.CDATA_SECTION_END:(this._emitChars("]"),this.state=st.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case Ze.GREATER_THAN_SIGN:{this.state=st.DATA;break}case Ze.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=st.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0)if(this.preprocessor.lastChunkWritten)e=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}e===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(Ze.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&hge(this.preprocessor.peek(1))?st.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){hge(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===Ze.SEMICOLON&&this._err(xn.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}const GDe=new Set([ne.DD,ne.DT,ne.LI,ne.OPTGROUP,ne.OPTION,ne.P,ne.RB,ne.RP,ne.RT,ne.RTC]),pge=new Set([...GDe,ne.CAPTION,ne.COLGROUP,ne.TBODY,ne.TD,ne.TFOOT,ne.TH,ne.THEAD,ne.TR]),uF=new Set([ne.APPLET,ne.CAPTION,ne.HTML,ne.MARQUEE,ne.OBJECT,ne.TABLE,ne.TD,ne.TEMPLATE,ne.TH]),_wt=new Set([...uF,ne.OL,ne.UL]),vwt=new Set([...uF,ne.BUTTON]),gge=new Set([ne.ANNOTATION_XML,ne.MI,ne.MN,ne.MO,ne.MS,ne.MTEXT]),mge=new Set([ne.DESC,ne.FOREIGN_OBJECT,ne.TITLE]),ywt=new Set([ne.TR,ne.TEMPLATE,ne.HTML]),wwt=new Set([ne.TBODY,ne.TFOOT,ne.THEAD,ne.TEMPLATE,ne.HTML]),Cwt=new Set([ne.TABLE,ne.TEMPLATE,ne.HTML]),Qwt=new Set([ne.TD,ne.TH]);class xwt{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,i){this.treeAdapter=t,this.handler=i,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=ne.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===ne.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Xn.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const i=this._indexOf(e);this.items[i]=t,i===this.stackTop&&(this.current=t)}insertAfter(e,t,i){const r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,i),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==Xn.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){const i=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(i,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(tee,Xn.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Qwt,Xn.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let i=this.stackTop;i>=0;i--)if(e.has(this.tagIDs[i])&&this.treeAdapter.getNamespaceURI(this.items[i])===t)return i;return-1}clearBackTo(e,t){const i=this._indexOfTagNames(e,t);this.shortenToLength(i+1)}clearBackToTableContext(){this.clearBackTo(Cwt,Xn.HTML)}clearBackToTableBodyContext(){this.clearBackTo(wwt,Xn.HTML)}clearBackToTableRowContext(){this.clearBackTo(ywt,Xn.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===ne.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===ne.HTML}hasInDynamicScope(e,t){for(let i=this.stackTop;i>=0;i--){const r=this.tagIDs[i];switch(this.treeAdapter.getNamespaceURI(this.items[i])){case Xn.HTML:{if(r===e)return!0;if(t.has(r))return!1;break}case Xn.SVG:{if(mge.has(r))return!1;break}case Xn.MATHML:{if(gge.has(r))return!1;break}}}return!0}hasInScope(e){return this.hasInDynamicScope(e,uF)}hasInListItemScope(e){return this.hasInDynamicScope(e,_wt)}hasInButtonScope(e){return this.hasInDynamicScope(e,vwt)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case Xn.HTML:{if(tee.has(t))return!0;if(uF.has(t))return!1;break}case Xn.SVG:{if(mge.has(t))return!1;break}case Xn.MATHML:{if(gge.has(t))return!1;break}}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Xn.HTML)switch(this.tagIDs[t]){case e:return!0;case ne.TABLE:case ne.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===Xn.HTML)switch(this.tagIDs[e]){case ne.TBODY:case ne.THEAD:case ne.TFOOT:return!0;case ne.TABLE:case ne.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Xn.HTML)switch(this.tagIDs[t]){case e:return!0;case ne.OPTION:case ne.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&GDe.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&pge.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==void 0&&this.currentTagId!==e&&pge.has(this.currentTagId);)this.pop()}}const DZ=3;var E3;(function(n){n[n.Marker=0]="Marker",n[n.Element=1]="Element"})(E3||(E3={}));const Tge={type:E3.Marker};class Swt{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const i=[],r=t.length,s=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let o=0;o<this.entries.length;o++){const l=this.entries[o];if(l.type===E3.Marker)break;const{element:c}=l;if(this.treeAdapter.getTagName(c)===s&&this.treeAdapter.getNamespaceURI(c)===a){const u=this.treeAdapter.getAttrList(c);u.length===r&&i.push({idx:o,attrs:u})}}return i}_ensureNoahArkCondition(e){if(this.entries.length<DZ)return;const t=this.treeAdapter.getAttrList(e),i=this._getNoahArkConditionCandidates(e,t);if(i.length<DZ)return;const r=new Map(t.map(a=>[a.name,a.value]));let s=0;for(let a=0;a<i.length;a++){const o=i[a];o.attrs.every(l=>r.get(l.name)===l.value)&&(s+=1,s>=DZ&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(Tge)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:E3.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const i=this.entries.indexOf(this.bookmark);this.entries.splice(i,0,{type:E3.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);t!==-1&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(Tge);e===-1?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){const t=this.entries.find(i=>i.type===E3.Marker||this.treeAdapter.getTagName(i.element)===e);return t&&t.type===E3.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===E3.Element&&t.element===e)}}const K5={createDocument(){return{nodeName:"#document",mode:A0.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(n,e,t){return{nodeName:n,tagName:n,attrs:t,namespaceURI:e,childNodes:[],parentNode:null}},createCommentNode(n){return{nodeName:"#comment",data:n,parentNode:null}},createTextNode(n){return{nodeName:"#text",value:n,parentNode:null}},appendChild(n,e){n.childNodes.push(e),e.parentNode=n},insertBefore(n,e,t){const i=n.childNodes.indexOf(t);n.childNodes.splice(i,0,e),e.parentNode=n},setTemplateContent(n,e){n.content=e},getTemplateContent(n){return n.content},setDocumentType(n,e,t,i){const r=n.childNodes.find(s=>s.nodeName==="#documentType");if(r)r.name=e,r.publicId=t,r.systemId=i;else{const s={nodeName:"#documentType",name:e,publicId:t,systemId:i,parentNode:null};K5.appendChild(n,s)}},setDocumentMode(n,e){n.mode=e},getDocumentMode(n){return n.mode},detachNode(n){if(n.parentNode){const e=n.parentNode.childNodes.indexOf(n);n.parentNode.childNodes.splice(e,1),n.parentNode=null}},insertText(n,e){if(n.childNodes.length>0){const t=n.childNodes[n.childNodes.length-1];if(K5.isTextNode(t)){t.value+=e;return}}K5.appendChild(n,K5.createTextNode(e))},insertTextBefore(n,e,t){const i=n.childNodes[n.childNodes.indexOf(t)-1];i&&K5.isTextNode(i)?i.value+=e:K5.insertBefore(n,K5.createTextNode(e),t)},adoptAttributes(n,e){const t=new Set(n.attrs.map(i=>i.name));for(let i=0;i<e.length;i++)t.has(e[i].name)||n.attrs.push(e[i])},getFirstChild(n){return n.childNodes[0]},getChildNodes(n){return n.childNodes},getParentNode(n){return n.parentNode},getAttrList(n){return n.attrs},getTagName(n){return n.tagName},getNamespaceURI(n){return n.namespaceURI},getTextNodeContent(n){return n.value},getCommentNodeContent(n){return n.data},getDocumentTypeNodeName(n){return n.name},getDocumentTypeNodePublicId(n){return n.publicId},getDocumentTypeNodeSystemId(n){return n.systemId},isTextNode(n){return n.nodeName==="#text"},isCommentNode(n){return n.nodeName==="#comment"},isDocumentTypeNode(n){return n.nodeName==="#documentType"},isElementNode(n){return Object.prototype.hasOwnProperty.call(n,"tagName")},setNodeSourceCodeLocation(n,e){n.sourceCodeLocation=e},getNodeSourceCodeLocation(n){return n.sourceCodeLocation},updateNodeSourceCodeLocation(n,e){n.sourceCodeLocation={...n.sourceCodeLocation,...e}}},KDe="html",Lwt="about:legacy-compat",Ewt="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",YDe=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],kwt=[...YDe,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Awt=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),XDe=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Iwt=[...XDe,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function bge(n,e){return e.some(t=>n.startsWith(t))}function Dwt(n){return n.name===KDe&&n.publicId===null&&(n.systemId===null||n.systemId===Lwt)}function Mwt(n){if(n.name!==KDe)return A0.QUIRKS;const{systemId:e}=n;if(e&&e.toLowerCase()===Ewt)return A0.QUIRKS;let{publicId:t}=n;if(t!==null){if(t=t.toLowerCase(),Awt.has(t))return A0.QUIRKS;let i=e===null?kwt:YDe;if(bge(t,i))return A0.QUIRKS;if(i=e===null?XDe:Iwt,bge(t,i))return A0.LIMITED_QUIRKS}return A0.NO_QUIRKS}const _ge={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Owt="definitionurl",Nwt="definitionURL",Rwt=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(n=>[n.toLowerCase(),n])),Pwt=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Xn.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Xn.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Xn.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Xn.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Xn.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Xn.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Xn.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Xn.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Xn.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Xn.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Xn.XMLNS}]]),Hwt=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(n=>[n.toLowerCase(),n])),Fwt=new Set([ne.B,ne.BIG,ne.BLOCKQUOTE,ne.BODY,ne.BR,ne.CENTER,ne.CODE,ne.DD,ne.DIV,ne.DL,ne.DT,ne.EM,ne.EMBED,ne.H1,ne.H2,ne.H3,ne.H4,ne.H5,ne.H6,ne.HEAD,ne.HR,ne.I,ne.IMG,ne.LI,ne.LISTING,ne.MENU,ne.META,ne.NOBR,ne.OL,ne.P,ne.PRE,ne.RUBY,ne.S,ne.SMALL,ne.SPAN,ne.STRONG,ne.STRIKE,ne.SUB,ne.SUP,ne.TABLE,ne.TT,ne.U,ne.UL,ne.VAR]);function Bwt(n){const e=n.tagID;return e===ne.FONT&&n.attrs.some(({name:i})=>i===oT.COLOR||i===oT.SIZE||i===oT.FACE)||Fwt.has(e)}function JDe(n){for(let e=0;e<n.attrs.length;e++)if(n.attrs[e].name===Owt){n.attrs[e].name=Nwt;break}}function eMe(n){for(let e=0;e<n.attrs.length;e++){const t=Rwt.get(n.attrs[e].name);t!=null&&(n.attrs[e].name=t)}}function Kle(n){for(let e=0;e<n.attrs.length;e++){const t=Pwt.get(n.attrs[e].name);t&&(n.attrs[e].prefix=t.prefix,n.attrs[e].name=t.name,n.attrs[e].namespace=t.namespace)}}function Vwt(n){const e=Hwt.get(n.tagName);e!=null&&(n.tagName=e,n.tagID=KC(n.tagName))}function jwt(n,e){return e===Xn.MATHML&&(n===ne.MI||n===ne.MO||n===ne.MN||n===ne.MS||n===ne.MTEXT)}function zwt(n,e,t){if(e===Xn.MATHML&&n===ne.ANNOTATION_XML){for(let i=0;i<t.length;i++)if(t[i].name===oT.ENCODING){const r=t[i].value.toLowerCase();return r===_ge.TEXT_HTML||r===_ge.APPLICATION_XML}}return e===Xn.SVG&&(n===ne.FOREIGN_OBJECT||n===ne.DESC||n===ne.TITLE)}function Wwt(n,e,t,i){return(!i||i===Xn.HTML)&&zwt(n,e,t)||(!i||i===Xn.MATHML)&&jwt(n,e)}const Uwt="hidden",$wt=8,qwt=3;var _t;(function(n){n[n.INITIAL=0]="INITIAL",n[n.BEFORE_HTML=1]="BEFORE_HTML",n[n.BEFORE_HEAD=2]="BEFORE_HEAD",n[n.IN_HEAD=3]="IN_HEAD",n[n.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",n[n.AFTER_HEAD=5]="AFTER_HEAD",n[n.IN_BODY=6]="IN_BODY",n[n.TEXT=7]="TEXT",n[n.IN_TABLE=8]="IN_TABLE",n[n.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",n[n.IN_CAPTION=10]="IN_CAPTION",n[n.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",n[n.IN_TABLE_BODY=12]="IN_TABLE_BODY",n[n.IN_ROW=13]="IN_ROW",n[n.IN_CELL=14]="IN_CELL",n[n.IN_SELECT=15]="IN_SELECT",n[n.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",n[n.IN_TEMPLATE=17]="IN_TEMPLATE",n[n.AFTER_BODY=18]="AFTER_BODY",n[n.IN_FRAMESET=19]="IN_FRAMESET",n[n.AFTER_FRAMESET=20]="AFTER_FRAMESET",n[n.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",n[n.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(_t||(_t={}));const Zwt={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},tMe=new Set([ne.TABLE,ne.TBODY,ne.TFOOT,ne.THEAD,ne.TR]),vge={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:K5,onParseError:null};let yge=class{constructor(e,t,i=null,r=null){this.fragmentContext=i,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=_t.INITIAL,this.originalInsertionMode=_t.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...vge,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=t??this.treeAdapter.createDocument(),this.tokenizer=new bwt(this.options,this),this.activeFormattingElements=new Swt(this.treeAdapter),this.fragmentContextID=i?KC(this.treeAdapter.getTagName(i)):ne.UNKNOWN,this._setContextModes(i??this.document,this.fragmentContextID),this.openElements=new xwt(this.document,this.treeAdapter,this)}static parse(e,t){const i=new this(t);return i.tokenizer.write(e,!0),i.document}static getFragmentParser(e,t){const i={...vge,...t};e??(e=i.treeAdapter.createElement(tn.TEMPLATE,Xn.HTML,[]));const r=i.treeAdapter.createElement("documentmock",Xn.HTML,[]),s=new this(i,r,e);return s.fragmentContextID===ne.TEMPLATE&&s.tmplInsertionModeStack.unshift(_t.IN_TEMPLATE),s._initTokenizerForFragmentParsing(),s._insertFakeRootElement(),s._resetInsertionMode(),s._findFormInFragmentContext(),s}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,i){var r;if(!this.onParseError)return;const s=(r=e.location)!==null&&r!==void 0?r:Zwt,a={code:t,startLine:s.startLine,startCol:s.startCol,startOffset:s.startOffset,endLine:i?s.startLine:s.endLine,endCol:i?s.startCol:s.endCol,endOffset:i?s.startOffset:s.endOffset};this.onParseError(a)}onItemPush(e,t,i){var r,s;(s=(r=this.treeAdapter).onItemPush)===null||s===void 0||s.call(r,e),i&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var i,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),(r=(i=this.treeAdapter).onItemPop)===null||r===void 0||r.call(i,e,this.openElements.current),t){let s,a;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,a=this.fragmentContextID):{current:s,currentTagId:a}=this.openElements,this._setContextModes(s,a)}}_setContextModes(e,t){const i=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===Xn.HTML;this.currentNotInHTML=!i,this.tokenizer.inForeignNode=!i&&e!==void 0&&t!==void 0&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,Xn.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=_t.TEXT}switchToPlaintextParsing(){this.insertionMode=_t.TEXT,this.originalInsertionMode=_t.IN_BODY,this.tokenizer.state=Oc.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===tn.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Xn.HTML))switch(this.fragmentContextID){case ne.TITLE:case ne.TEXTAREA:{this.tokenizer.state=Oc.RCDATA;break}case ne.STYLE:case ne.XMP:case ne.IFRAME:case ne.NOEMBED:case ne.NOFRAMES:case ne.NOSCRIPT:{this.tokenizer.state=Oc.RAWTEXT;break}case ne.SCRIPT:{this.tokenizer.state=Oc.SCRIPT_DATA;break}case ne.PLAINTEXT:{this.tokenizer.state=Oc.PLAINTEXT;break}}}_setDocumentType(e){const t=e.name||"",i=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,i,r),e.location){const a=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));a&&this.treeAdapter.setNodeSourceCodeLocation(a,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const i=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,i)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const i=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(i??this.document,e)}}_appendElement(e,t){const i=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(i,e.location)}_insertElement(e,t){const i=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(i,e.location),this.openElements.push(i,e.tagID)}_insertFakeElement(e,t){const i=this.treeAdapter.createElement(e,Xn.HTML,[]);this._attachElementToTree(i,null),this.openElements.push(i,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,Xn.HTML,e.attrs),i=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,i),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(tn.HTML,Xn.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,ne.HTML)}_appendCommentNode(e,t){const i=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,i),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,e.location)}_insertCharacters(e){let t,i;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:i}=this._findFosterParentingLocation(),i?this.treeAdapter.insertTextBefore(t,e.chars,i):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const r=this.treeAdapter.getChildNodes(t),s=i?r.lastIndexOf(i):r.length,a=r[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:l,endCol:c,endOffset:u}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:l,endCol:c,endOffset:u})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,e.location)}_adoptNodes(e,t){for(let i=this.treeAdapter.getFirstChild(e);i;i=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(i),this.treeAdapter.appendChild(t,i)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const i=t.location,r=this.treeAdapter.getTagName(e),s=t.type===mo.END_TAG&&r===t.tagName?{endTag:{...i},endLine:i.endLine,endCol:i.endCol,endOffset:i.endOffset}:{endLine:i.startLine,endCol:i.startCol,endOffset:i.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,s)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,i;return this.openElements.stackTop===0&&this.fragmentContext?(t=this.fragmentContext,i=this.fragmentContextID):{current:t,currentTagId:i}=this.openElements,e.tagID===ne.SVG&&this.treeAdapter.getTagName(t)===tn.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(t)===Xn.MATHML?!1:this.tokenizer.inForeignNode||(e.tagID===ne.MGLYPH||e.tagID===ne.MALIGNMARK)&&i!==void 0&&!this._isIntegrationPoint(i,t,Xn.HTML)}_processToken(e){switch(e.type){case mo.CHARACTER:{this.onCharacter(e);break}case mo.NULL_CHARACTER:{this.onNullCharacter(e);break}case mo.COMMENT:{this.onComment(e);break}case mo.DOCTYPE:{this.onDoctype(e);break}case mo.START_TAG:{this._processStartTag(e);break}case mo.END_TAG:{this.onEndTag(e);break}case mo.EOF:{this.onEof(e);break}case mo.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(e);break}}}_isIntegrationPoint(e,t,i){const r=this.treeAdapter.getNamespaceURI(t),s=this.treeAdapter.getAttrList(t);return Wwt(e,r,s,i)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex(r=>r.type===E3.Marker||this.openElements.contains(r.element)),i=t===-1?e-1:t-1;for(let r=i;r>=0;r--){const s=this.activeFormattingElements.entries[r];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=_t.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(ne.P),this.openElements.popUntilTagNamePopped(ne.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case ne.TR:{this.insertionMode=_t.IN_ROW;return}case ne.TBODY:case ne.THEAD:case ne.TFOOT:{this.insertionMode=_t.IN_TABLE_BODY;return}case ne.CAPTION:{this.insertionMode=_t.IN_CAPTION;return}case ne.COLGROUP:{this.insertionMode=_t.IN_COLUMN_GROUP;return}case ne.TABLE:{this.insertionMode=_t.IN_TABLE;return}case ne.BODY:{this.insertionMode=_t.IN_BODY;return}case ne.FRAMESET:{this.insertionMode=_t.IN_FRAMESET;return}case ne.SELECT:{this._resetInsertionModeForSelect(e);return}case ne.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case ne.HTML:{this.insertionMode=this.headElement?_t.AFTER_HEAD:_t.BEFORE_HEAD;return}case ne.TD:case ne.TH:{if(e>0){this.insertionMode=_t.IN_CELL;return}break}case ne.HEAD:{if(e>0){this.insertionMode=_t.IN_HEAD;return}break}}this.insertionMode=_t.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const i=this.openElements.tagIDs[t];if(i===ne.TEMPLATE)break;if(i===ne.TABLE){this.insertionMode=_t.IN_SELECT_IN_TABLE;return}}this.insertionMode=_t.IN_SELECT}_isElementCausesFosterParenting(e){return tMe.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case ne.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(t)===Xn.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break}case ne.TABLE:{const i=this.treeAdapter.getParentNode(t);return i?{parent:i,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const i=this.treeAdapter.getNamespaceURI(e);return pwt[i].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){QQt(this,e);return}switch(this.insertionMode){case _t.INITIAL:{Wx(this,e);break}case _t.BEFORE_HTML:{VL(this,e);break}case _t.BEFORE_HEAD:{jL(this,e);break}case _t.IN_HEAD:{zL(this,e);break}case _t.IN_HEAD_NO_SCRIPT:{WL(this,e);break}case _t.AFTER_HEAD:{UL(this,e);break}case _t.IN_BODY:case _t.IN_CAPTION:case _t.IN_CELL:case _t.IN_TEMPLATE:{iMe(this,e);break}case _t.TEXT:case _t.IN_SELECT:case _t.IN_SELECT_IN_TABLE:{this._insertCharacters(e);break}case _t.IN_TABLE:case _t.IN_TABLE_BODY:case _t.IN_ROW:{MZ(this,e);break}case _t.IN_TABLE_TEXT:{cMe(this,e);break}case _t.IN_COLUMN_GROUP:{dF(this,e);break}case _t.AFTER_BODY:{hF(this,e);break}case _t.AFTER_AFTER_BODY:{tP(this,e);break}}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){CQt(this,e);return}switch(this.insertionMode){case _t.INITIAL:{Wx(this,e);break}case _t.BEFORE_HTML:{VL(this,e);break}case _t.BEFORE_HEAD:{jL(this,e);break}case _t.IN_HEAD:{zL(this,e);break}case _t.IN_HEAD_NO_SCRIPT:{WL(this,e);break}case _t.AFTER_HEAD:{UL(this,e);break}case _t.TEXT:{this._insertCharacters(e);break}case _t.IN_TABLE:case _t.IN_TABLE_BODY:case _t.IN_ROW:{MZ(this,e);break}case _t.IN_COLUMN_GROUP:{dF(this,e);break}case _t.AFTER_BODY:{hF(this,e);break}case _t.AFTER_AFTER_BODY:{tP(this,e);break}}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){nee(this,e);return}switch(this.insertionMode){case _t.INITIAL:case _t.BEFORE_HTML:case _t.BEFORE_HEAD:case _t.IN_HEAD:case _t.IN_HEAD_NO_SCRIPT:case _t.AFTER_HEAD:case _t.IN_BODY:case _t.IN_TABLE:case _t.IN_CAPTION:case _t.IN_COLUMN_GROUP:case _t.IN_TABLE_BODY:case _t.IN_ROW:case _t.IN_CELL:case _t.IN_SELECT:case _t.IN_SELECT_IN_TABLE:case _t.IN_TEMPLATE:case _t.IN_FRAMESET:case _t.AFTER_FRAMESET:{nee(this,e);break}case _t.IN_TABLE_TEXT:{Ux(this,e);break}case _t.AFTER_BODY:{tCt(this,e);break}case _t.AFTER_AFTER_BODY:case _t.AFTER_AFTER_FRAMESET:{nCt(this,e);break}}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case _t.INITIAL:{iCt(this,e);break}case _t.BEFORE_HEAD:case _t.IN_HEAD:case _t.IN_HEAD_NO_SCRIPT:case _t.AFTER_HEAD:{this._err(e,xn.misplacedDoctype);break}case _t.IN_TABLE_TEXT:{Ux(this,e);break}}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,xn.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?xQt(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case _t.INITIAL:{Wx(this,e);break}case _t.BEFORE_HTML:{rCt(this,e);break}case _t.BEFORE_HEAD:{oCt(this,e);break}case _t.IN_HEAD:{Np(this,e);break}case _t.IN_HEAD_NO_SCRIPT:{cCt(this,e);break}case _t.AFTER_HEAD:{dCt(this,e);break}case _t.IN_BODY:{vh(this,e);break}case _t.IN_TABLE:{Cw(this,e);break}case _t.IN_TABLE_TEXT:{Ux(this,e);break}case _t.IN_CAPTION:{aQt(this,e);break}case _t.IN_COLUMN_GROUP:{Jle(this,e);break}case _t.IN_TABLE_BODY:{Gj(this,e);break}case _t.IN_ROW:{Kj(this,e);break}case _t.IN_CELL:{uQt(this,e);break}case _t.IN_SELECT:{hMe(this,e);break}case _t.IN_SELECT_IN_TABLE:{hQt(this,e);break}case _t.IN_TEMPLATE:{pQt(this,e);break}case _t.AFTER_BODY:{mQt(this,e);break}case _t.IN_FRAMESET:{TQt(this,e);break}case _t.AFTER_FRAMESET:{_Qt(this,e);break}case _t.AFTER_AFTER_BODY:{yQt(this,e);break}case _t.AFTER_AFTER_FRAMESET:{wQt(this,e);break}}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?SQt(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case _t.INITIAL:{Wx(this,e);break}case _t.BEFORE_HTML:{sCt(this,e);break}case _t.BEFORE_HEAD:{aCt(this,e);break}case _t.IN_HEAD:{lCt(this,e);break}case _t.IN_HEAD_NO_SCRIPT:{uCt(this,e);break}case _t.AFTER_HEAD:{hCt(this,e);break}case _t.IN_BODY:{Zj(this,e);break}case _t.TEXT:{YCt(this,e);break}case _t.IN_TABLE:{ak(this,e);break}case _t.IN_TABLE_TEXT:{Ux(this,e);break}case _t.IN_CAPTION:{lQt(this,e);break}case _t.IN_COLUMN_GROUP:{cQt(this,e);break}case _t.IN_TABLE_BODY:{iee(this,e);break}case _t.IN_ROW:{dMe(this,e);break}case _t.IN_CELL:{dQt(this,e);break}case _t.IN_SELECT:{fMe(this,e);break}case _t.IN_SELECT_IN_TABLE:{fQt(this,e);break}case _t.IN_TEMPLATE:{gQt(this,e);break}case _t.AFTER_BODY:{gMe(this,e);break}case _t.IN_FRAMESET:{bQt(this,e);break}case _t.AFTER_FRAMESET:{vQt(this,e);break}case _t.AFTER_AFTER_BODY:{tP(this,e);break}}}onEof(e){switch(this.insertionMode){case _t.INITIAL:{Wx(this,e);break}case _t.BEFORE_HTML:{VL(this,e);break}case _t.BEFORE_HEAD:{jL(this,e);break}case _t.IN_HEAD:{zL(this,e);break}case _t.IN_HEAD_NO_SCRIPT:{WL(this,e);break}case _t.AFTER_HEAD:{UL(this,e);break}case _t.IN_BODY:case _t.IN_TABLE:case _t.IN_CAPTION:case _t.IN_COLUMN_GROUP:case _t.IN_TABLE_BODY:case _t.IN_ROW:case _t.IN_CELL:case _t.IN_SELECT:case _t.IN_SELECT_IN_TABLE:{aMe(this,e);break}case _t.TEXT:{XCt(this,e);break}case _t.IN_TABLE_TEXT:{Ux(this,e);break}case _t.IN_TEMPLATE:{pMe(this,e);break}case _t.AFTER_BODY:case _t.IN_FRAMESET:case _t.AFTER_FRAMESET:case _t.AFTER_AFTER_BODY:case _t.AFTER_AFTER_FRAMESET:{Xle(this,e);break}}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===Ze.LINE_FEED)){if(e.chars.length===1)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case _t.IN_HEAD:case _t.IN_HEAD_NO_SCRIPT:case _t.AFTER_HEAD:case _t.TEXT:case _t.IN_COLUMN_GROUP:case _t.IN_SELECT:case _t.IN_SELECT_IN_TABLE:case _t.IN_FRAMESET:case _t.AFTER_FRAMESET:{this._insertCharacters(e);break}case _t.IN_BODY:case _t.IN_CAPTION:case _t.IN_CELL:case _t.IN_TEMPLATE:case _t.AFTER_BODY:case _t.AFTER_AFTER_BODY:case _t.AFTER_AFTER_FRAMESET:{nMe(this,e);break}case _t.IN_TABLE:case _t.IN_TABLE_BODY:case _t.IN_ROW:{MZ(this,e);break}case _t.IN_TABLE_TEXT:{lMe(this,e);break}}}};function Gwt(n,e){let t=n.activeFormattingElements.getElementEntryInScopeWithTagName(e.tagName);return t?n.openElements.contains(t.element)?n.openElements.hasInScope(e.tagID)||(t=null):(n.activeFormattingElements.removeEntry(t),t=null):oMe(n,e),t}function Kwt(n,e){let t=null,i=n.openElements.stackTop;for(;i>=0;i--){const r=n.openElements.items[i];if(r===e.element)break;n._isSpecialElement(r,n.openElements.tagIDs[i])&&(t=r)}return t||(n.openElements.shortenToLength(Math.max(i,0)),n.activeFormattingElements.removeEntry(e)),t}function Ywt(n,e,t){let i=e,r=n.openElements.getCommonAncestor(e);for(let s=0,a=r;a!==t;s++,a=r){r=n.openElements.getCommonAncestor(a);const o=n.activeFormattingElements.getElementEntry(a),l=o&&s>=qwt;!o||l?(l&&n.activeFormattingElements.removeEntry(o),n.openElements.remove(a)):(a=Xwt(n,o),i===e&&(n.activeFormattingElements.bookmark=o),n.treeAdapter.detachNode(i),n.treeAdapter.appendChild(a,i),i=a)}return i}function Xwt(n,e){const t=n.treeAdapter.getNamespaceURI(e.element),i=n.treeAdapter.createElement(e.token.tagName,t,e.token.attrs);return n.openElements.replace(e.element,i),e.element=i,i}function Jwt(n,e,t){const i=n.treeAdapter.getTagName(e),r=KC(i);if(n._isElementCausesFosterParenting(r))n._fosterParentElement(t);else{const s=n.treeAdapter.getNamespaceURI(e);r===ne.TEMPLATE&&s===Xn.HTML&&(e=n.treeAdapter.getTemplateContent(e)),n.treeAdapter.appendChild(e,t)}}function eCt(n,e,t){const i=n.treeAdapter.getNamespaceURI(t.element),{token:r}=t,s=n.treeAdapter.createElement(r.tagName,i,r.attrs);n._adoptNodes(e,s),n.treeAdapter.appendChild(e,s),n.activeFormattingElements.insertElementAfterBookmark(s,r),n.activeFormattingElements.removeEntry(t),n.openElements.remove(t.element),n.openElements.insertAfter(e,s,r.tagID)}function Yle(n,e){for(let t=0;t<$wt;t++){const i=Gwt(n,e);if(!i)break;const r=Kwt(n,i);if(!r)break;n.activeFormattingElements.bookmark=i;const s=Ywt(n,r,i.element),a=n.openElements.getCommonAncestor(i.element);n.treeAdapter.detachNode(s),a&&Jwt(n,a,s),eCt(n,r,i)}}function nee(n,e){n._appendCommentNode(e,n.openElements.currentTmplContentOrNode)}function tCt(n,e){n._appendCommentNode(e,n.openElements.items[0])}function nCt(n,e){n._appendCommentNode(e,n.document)}function Xle(n,e){if(n.stopped=!0,e.location){const t=n.fragmentContext?0:2;for(let i=n.openElements.stackTop;i>=t;i--)n._setEndLocation(n.openElements.items[i],e);if(!n.fragmentContext&&n.openElements.stackTop>=0){const i=n.openElements.items[0],r=n.treeAdapter.getNodeSourceCodeLocation(i);if(r&&!r.endTag&&(n._setEndLocation(i,e),n.openElements.stackTop>=1)){const s=n.openElements.items[1],a=n.treeAdapter.getNodeSourceCodeLocation(s);a&&!a.endTag&&n._setEndLocation(s,e)}}}}function iCt(n,e){n._setDocumentType(e);const t=e.forceQuirks?A0.QUIRKS:Mwt(e);Dwt(e)||n._err(e,xn.nonConformingDoctype),n.treeAdapter.setDocumentMode(n.document,t),n.insertionMode=_t.BEFORE_HTML}function Wx(n,e){n._err(e,xn.missingDoctype,!0),n.treeAdapter.setDocumentMode(n.document,A0.QUIRKS),n.insertionMode=_t.BEFORE_HTML,n._processToken(e)}function rCt(n,e){e.tagID===ne.HTML?(n._insertElement(e,Xn.HTML),n.insertionMode=_t.BEFORE_HEAD):VL(n,e)}function sCt(n,e){const t=e.tagID;(t===ne.HTML||t===ne.HEAD||t===ne.BODY||t===ne.BR)&&VL(n,e)}function VL(n,e){n._insertFakeRootElement(),n.insertionMode=_t.BEFORE_HEAD,n._processToken(e)}function oCt(n,e){switch(e.tagID){case ne.HTML:{vh(n,e);break}case ne.HEAD:{n._insertElement(e,Xn.HTML),n.headElement=n.openElements.current,n.insertionMode=_t.IN_HEAD;break}default:jL(n,e)}}function aCt(n,e){const t=e.tagID;t===ne.HEAD||t===ne.BODY||t===ne.HTML||t===ne.BR?jL(n,e):n._err(e,xn.endTagWithoutMatchingOpenElement)}function jL(n,e){n._insertFakeElement(tn.HEAD,ne.HEAD),n.headElement=n.openElements.current,n.insertionMode=_t.IN_HEAD,n._processToken(e)}function Np(n,e){switch(e.tagID){case ne.HTML:{vh(n,e);break}case ne.BASE:case ne.BASEFONT:case ne.BGSOUND:case ne.LINK:case ne.META:{n._appendElement(e,Xn.HTML),e.ackSelfClosing=!0;break}case ne.TITLE:{n._switchToTextParsing(e,Oc.RCDATA);break}case ne.NOSCRIPT:{n.options.scriptingEnabled?n._switchToTextParsing(e,Oc.RAWTEXT):(n._insertElement(e,Xn.HTML),n.insertionMode=_t.IN_HEAD_NO_SCRIPT);break}case ne.NOFRAMES:case ne.STYLE:{n._switchToTextParsing(e,Oc.RAWTEXT);break}case ne.SCRIPT:{n._switchToTextParsing(e,Oc.SCRIPT_DATA);break}case ne.TEMPLATE:{n._insertTemplate(e),n.activeFormattingElements.insertMarker(),n.framesetOk=!1,n.insertionMode=_t.IN_TEMPLATE,n.tmplInsertionModeStack.unshift(_t.IN_TEMPLATE);break}case ne.HEAD:{n._err(e,xn.misplacedStartTagForHeadElement);break}default:zL(n,e)}}function lCt(n,e){switch(e.tagID){case ne.HEAD:{n.openElements.pop(),n.insertionMode=_t.AFTER_HEAD;break}case ne.BODY:case ne.BR:case ne.HTML:{zL(n,e);break}case ne.TEMPLATE:{Rb(n,e);break}default:n._err(e,xn.endTagWithoutMatchingOpenElement)}}function Rb(n,e){n.openElements.tmplCount>0?(n.openElements.generateImpliedEndTagsThoroughly(),n.openElements.currentTagId!==ne.TEMPLATE&&n._err(e,xn.closingOfElementWithOpenChildElements),n.openElements.popUntilTagNamePopped(ne.TEMPLATE),n.activeFormattingElements.clearToLastMarker(),n.tmplInsertionModeStack.shift(),n._resetInsertionMode()):n._err(e,xn.endTagWithoutMatchingOpenElement)}function zL(n,e){n.openElements.pop(),n.insertionMode=_t.AFTER_HEAD,n._processToken(e)}function cCt(n,e){switch(e.tagID){case ne.HTML:{vh(n,e);break}case ne.BASEFONT:case ne.BGSOUND:case ne.HEAD:case ne.LINK:case ne.META:case ne.NOFRAMES:case ne.STYLE:{Np(n,e);break}case ne.NOSCRIPT:{n._err(e,xn.nestedNoscriptInHead);break}default:WL(n,e)}}function uCt(n,e){switch(e.tagID){case ne.NOSCRIPT:{n.openElements.pop(),n.insertionMode=_t.IN_HEAD;break}case ne.BR:{WL(n,e);break}default:n._err(e,xn.endTagWithoutMatchingOpenElement)}}function WL(n,e){const t=e.type===mo.EOF?xn.openElementsLeftAfterEof:xn.disallowedContentInNoscriptInHead;n._err(e,t),n.openElements.pop(),n.insertionMode=_t.IN_HEAD,n._processToken(e)}function dCt(n,e){switch(e.tagID){case ne.HTML:{vh(n,e);break}case ne.BODY:{n._insertElement(e,Xn.HTML),n.framesetOk=!1,n.insertionMode=_t.IN_BODY;break}case ne.FRAMESET:{n._insertElement(e,Xn.HTML),n.insertionMode=_t.IN_FRAMESET;break}case ne.BASE:case ne.BASEFONT:case ne.BGSOUND:case ne.LINK:case ne.META:case ne.NOFRAMES:case ne.SCRIPT:case ne.STYLE:case ne.TEMPLATE:case ne.TITLE:{n._err(e,xn.abandonedHeadElementChild),n.openElements.push(n.headElement,ne.HEAD),Np(n,e),n.openElements.remove(n.headElement);break}case ne.HEAD:{n._err(e,xn.misplacedStartTagForHeadElement);break}default:UL(n,e)}}function hCt(n,e){switch(e.tagID){case ne.BODY:case ne.HTML:case ne.BR:{UL(n,e);break}case ne.TEMPLATE:{Rb(n,e);break}default:n._err(e,xn.endTagWithoutMatchingOpenElement)}}function UL(n,e){n._insertFakeElement(tn.BODY,ne.BODY),n.insertionMode=_t.IN_BODY,qj(n,e)}function qj(n,e){switch(e.type){case mo.CHARACTER:{iMe(n,e);break}case mo.WHITESPACE_CHARACTER:{nMe(n,e);break}case mo.COMMENT:{nee(n,e);break}case mo.START_TAG:{vh(n,e);break}case mo.END_TAG:{Zj(n,e);break}case mo.EOF:{aMe(n,e);break}}}function nMe(n,e){n._reconstructActiveFormattingElements(),n._insertCharacters(e)}function iMe(n,e){n._reconstructActiveFormattingElements(),n._insertCharacters(e),n.framesetOk=!1}function fCt(n,e){n.openElements.tmplCount===0&&n.treeAdapter.adoptAttributes(n.openElements.items[0],e.attrs)}function pCt(n,e){const t=n.openElements.tryPeekProperlyNestedBodyElement();t&&n.openElements.tmplCount===0&&(n.framesetOk=!1,n.treeAdapter.adoptAttributes(t,e.attrs))}function gCt(n,e){const t=n.openElements.tryPeekProperlyNestedBodyElement();n.framesetOk&&t&&(n.treeAdapter.detachNode(t),n.openElements.popAllUpToHtmlElement(),n._insertElement(e,Xn.HTML),n.insertionMode=_t.IN_FRAMESET)}function mCt(n,e){n.openElements.hasInButtonScope(ne.P)&&n._closePElement(),n._insertElement(e,Xn.HTML)}function TCt(n,e){n.openElements.hasInButtonScope(ne.P)&&n._closePElement(),n.openElements.currentTagId!==void 0&&tee.has(n.openElements.currentTagId)&&n.openElements.pop(),n._insertElement(e,Xn.HTML)}function bCt(n,e){n.openElements.hasInButtonScope(ne.P)&&n._closePElement(),n._insertElement(e,Xn.HTML),n.skipNextNewLine=!0,n.framesetOk=!1}function _Ct(n,e){const t=n.openElements.tmplCount>0;(!n.formElement||t)&&(n.openElements.hasInButtonScope(ne.P)&&n._closePElement(),n._insertElement(e,Xn.HTML),t||(n.formElement=n.openElements.current))}function vCt(n,e){n.framesetOk=!1;const t=e.tagID;for(let i=n.openElements.stackTop;i>=0;i--){const r=n.openElements.tagIDs[i];if(t===ne.LI&&r===ne.LI||(t===ne.DD||t===ne.DT)&&(r===ne.DD||r===ne.DT)){n.openElements.generateImpliedEndTagsWithExclusion(r),n.openElements.popUntilTagNamePopped(r);break}if(r!==ne.ADDRESS&&r!==ne.DIV&&r!==ne.P&&n._isSpecialElement(n.openElements.items[i],r))break}n.openElements.hasInButtonScope(ne.P)&&n._closePElement(),n._insertElement(e,Xn.HTML)}function yCt(n,e){n.openElements.hasInButtonScope(ne.P)&&n._closePElement(),n._insertElement(e,Xn.HTML),n.tokenizer.state=Oc.PLAINTEXT}function wCt(n,e){n.openElements.hasInScope(ne.BUTTON)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(ne.BUTTON)),n._reconstructActiveFormattingElements(),n._insertElement(e,Xn.HTML),n.framesetOk=!1}function CCt(n,e){const t=n.activeFormattingElements.getElementEntryInScopeWithTagName(tn.A);t&&(Yle(n,e),n.openElements.remove(t.element),n.activeFormattingElements.removeEntry(t)),n._reconstructActiveFormattingElements(),n._insertElement(e,Xn.HTML),n.activeFormattingElements.pushElement(n.openElements.current,e)}function QCt(n,e){n._reconstructActiveFormattingElements(),n._insertElement(e,Xn.HTML),n.activeFormattingElements.pushElement(n.openElements.current,e)}function xCt(n,e){n._reconstructActiveFormattingElements(),n.openElements.hasInScope(ne.NOBR)&&(Yle(n,e),n._reconstructActiveFormattingElements()),n._insertElement(e,Xn.HTML),n.activeFormattingElements.pushElement(n.openElements.current,e)}function SCt(n,e){n._reconstructActiveFormattingElements(),n._insertElement(e,Xn.HTML),n.activeFormattingElements.insertMarker(),n.framesetOk=!1}function LCt(n,e){n.treeAdapter.getDocumentMode(n.document)!==A0.QUIRKS&&n.openElements.hasInButtonScope(ne.P)&&n._closePElement(),n._insertElement(e,Xn.HTML),n.framesetOk=!1,n.insertionMode=_t.IN_TABLE}function rMe(n,e){n._reconstructActiveFormattingElements(),n._appendElement(e,Xn.HTML),n.framesetOk=!1,e.ackSelfClosing=!0}function sMe(n){const e=qDe(n,oT.TYPE);return e!=null&&e.toLowerCase()===Uwt}function ECt(n,e){n._reconstructActiveFormattingElements(),n._appendElement(e,Xn.HTML),sMe(e)||(n.framesetOk=!1),e.ackSelfClosing=!0}function kCt(n,e){n._appendElement(e,Xn.HTML),e.ackSelfClosing=!0}function ACt(n,e){n.openElements.hasInButtonScope(ne.P)&&n._closePElement(),n._appendElement(e,Xn.HTML),n.framesetOk=!1,e.ackSelfClosing=!0}function ICt(n,e){e.tagName=tn.IMG,e.tagID=ne.IMG,rMe(n,e)}function DCt(n,e){n._insertElement(e,Xn.HTML),n.skipNextNewLine=!0,n.tokenizer.state=Oc.RCDATA,n.originalInsertionMode=n.insertionMode,n.framesetOk=!1,n.insertionMode=_t.TEXT}function MCt(n,e){n.openElements.hasInButtonScope(ne.P)&&n._closePElement(),n._reconstructActiveFormattingElements(),n.framesetOk=!1,n._switchToTextParsing(e,Oc.RAWTEXT)}function OCt(n,e){n.framesetOk=!1,n._switchToTextParsing(e,Oc.RAWTEXT)}function wge(n,e){n._switchToTextParsing(e,Oc.RAWTEXT)}function NCt(n,e){n._reconstructActiveFormattingElements(),n._insertElement(e,Xn.HTML),n.framesetOk=!1,n.insertionMode=n.insertionMode===_t.IN_TABLE||n.insertionMode===_t.IN_CAPTION||n.insertionMode===_t.IN_TABLE_BODY||n.insertionMode===_t.IN_ROW||n.insertionMode===_t.IN_CELL?_t.IN_SELECT_IN_TABLE:_t.IN_SELECT}function RCt(n,e){n.openElements.currentTagId===ne.OPTION&&n.openElements.pop(),n._reconstructActiveFormattingElements(),n._insertElement(e,Xn.HTML)}function PCt(n,e){n.openElements.hasInScope(ne.RUBY)&&n.openElements.generateImpliedEndTags(),n._insertElement(e,Xn.HTML)}function HCt(n,e){n.openElements.hasInScope(ne.RUBY)&&n.openElements.generateImpliedEndTagsWithExclusion(ne.RTC),n._insertElement(e,Xn.HTML)}function FCt(n,e){n._reconstructActiveFormattingElements(),JDe(e),Kle(e),e.selfClosing?n._appendElement(e,Xn.MATHML):n._insertElement(e,Xn.MATHML),e.ackSelfClosing=!0}function BCt(n,e){n._reconstructActiveFormattingElements(),eMe(e),Kle(e),e.selfClosing?n._appendElement(e,Xn.SVG):n._insertElement(e,Xn.SVG),e.ackSelfClosing=!0}function Cge(n,e){n._reconstructActiveFormattingElements(),n._insertElement(e,Xn.HTML)}function vh(n,e){switch(e.tagID){case ne.I:case ne.S:case ne.B:case ne.U:case ne.EM:case ne.TT:case ne.BIG:case ne.CODE:case ne.FONT:case ne.SMALL:case ne.STRIKE:case ne.STRONG:{QCt(n,e);break}case ne.A:{CCt(n,e);break}case ne.H1:case ne.H2:case ne.H3:case ne.H4:case ne.H5:case ne.H6:{TCt(n,e);break}case ne.P:case ne.DL:case ne.OL:case ne.UL:case ne.DIV:case ne.DIR:case ne.NAV:case ne.MAIN:case ne.MENU:case ne.ASIDE:case ne.CENTER:case ne.FIGURE:case ne.FOOTER:case ne.HEADER:case ne.HGROUP:case ne.DIALOG:case ne.DETAILS:case ne.ADDRESS:case ne.ARTICLE:case ne.SEARCH:case ne.SECTION:case ne.SUMMARY:case ne.FIELDSET:case ne.BLOCKQUOTE:case ne.FIGCAPTION:{mCt(n,e);break}case ne.LI:case ne.DD:case ne.DT:{vCt(n,e);break}case ne.BR:case ne.IMG:case ne.WBR:case ne.AREA:case ne.EMBED:case ne.KEYGEN:{rMe(n,e);break}case ne.HR:{ACt(n,e);break}case ne.RB:case ne.RTC:{PCt(n,e);break}case ne.RT:case ne.RP:{HCt(n,e);break}case ne.PRE:case ne.LISTING:{bCt(n,e);break}case ne.XMP:{MCt(n,e);break}case ne.SVG:{BCt(n,e);break}case ne.HTML:{fCt(n,e);break}case ne.BASE:case ne.LINK:case ne.META:case ne.STYLE:case ne.TITLE:case ne.SCRIPT:case ne.BGSOUND:case ne.BASEFONT:case ne.TEMPLATE:{Np(n,e);break}case ne.BODY:{pCt(n,e);break}case ne.FORM:{_Ct(n,e);break}case ne.NOBR:{xCt(n,e);break}case ne.MATH:{FCt(n,e);break}case ne.TABLE:{LCt(n,e);break}case ne.INPUT:{ECt(n,e);break}case ne.PARAM:case ne.TRACK:case ne.SOURCE:{kCt(n,e);break}case ne.IMAGE:{ICt(n,e);break}case ne.BUTTON:{wCt(n,e);break}case ne.APPLET:case ne.OBJECT:case ne.MARQUEE:{SCt(n,e);break}case ne.IFRAME:{OCt(n,e);break}case ne.SELECT:{NCt(n,e);break}case ne.OPTION:case ne.OPTGROUP:{RCt(n,e);break}case ne.NOEMBED:case ne.NOFRAMES:{wge(n,e);break}case ne.FRAMESET:{gCt(n,e);break}case ne.TEXTAREA:{DCt(n,e);break}case ne.NOSCRIPT:{n.options.scriptingEnabled?wge(n,e):Cge(n,e);break}case ne.PLAINTEXT:{yCt(n,e);break}case ne.COL:case ne.TH:case ne.TD:case ne.TR:case ne.HEAD:case ne.FRAME:case ne.TBODY:case ne.TFOOT:case ne.THEAD:case ne.CAPTION:case ne.COLGROUP:break;default:Cge(n,e)}}function VCt(n,e){if(n.openElements.hasInScope(ne.BODY)&&(n.insertionMode=_t.AFTER_BODY,n.options.sourceCodeLocationInfo)){const t=n.openElements.tryPeekProperlyNestedBodyElement();t&&n._setEndLocation(t,e)}}function jCt(n,e){n.openElements.hasInScope(ne.BODY)&&(n.insertionMode=_t.AFTER_BODY,gMe(n,e))}function zCt(n,e){const t=e.tagID;n.openElements.hasInScope(t)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(t))}function WCt(n){const e=n.openElements.tmplCount>0,{formElement:t}=n;e||(n.formElement=null),(t||e)&&n.openElements.hasInScope(ne.FORM)&&(n.openElements.generateImpliedEndTags(),e?n.openElements.popUntilTagNamePopped(ne.FORM):t&&n.openElements.remove(t))}function UCt(n){n.openElements.hasInButtonScope(ne.P)||n._insertFakeElement(tn.P,ne.P),n._closePElement()}function $Ct(n){n.openElements.hasInListItemScope(ne.LI)&&(n.openElements.generateImpliedEndTagsWithExclusion(ne.LI),n.openElements.popUntilTagNamePopped(ne.LI))}function qCt(n,e){const t=e.tagID;n.openElements.hasInScope(t)&&(n.openElements.generateImpliedEndTagsWithExclusion(t),n.openElements.popUntilTagNamePopped(t))}function ZCt(n){n.openElements.hasNumberedHeaderInScope()&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilNumberedHeaderPopped())}function GCt(n,e){const t=e.tagID;n.openElements.hasInScope(t)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(t),n.activeFormattingElements.clearToLastMarker())}function KCt(n){n._reconstructActiveFormattingElements(),n._insertFakeElement(tn.BR,ne.BR),n.openElements.pop(),n.framesetOk=!1}function oMe(n,e){const t=e.tagName,i=e.tagID;for(let r=n.openElements.stackTop;r>0;r--){const s=n.openElements.items[r],a=n.openElements.tagIDs[r];if(i===a&&(i!==ne.UNKNOWN||n.treeAdapter.getTagName(s)===t)){n.openElements.generateImpliedEndTagsWithExclusion(i),n.openElements.stackTop>=r&&n.openElements.shortenToLength(r);break}if(n._isSpecialElement(s,a))break}}function Zj(n,e){switch(e.tagID){case ne.A:case ne.B:case ne.I:case ne.S:case ne.U:case ne.EM:case ne.TT:case ne.BIG:case ne.CODE:case ne.FONT:case ne.NOBR:case ne.SMALL:case ne.STRIKE:case ne.STRONG:{Yle(n,e);break}case ne.P:{UCt(n);break}case ne.DL:case ne.UL:case ne.OL:case ne.DIR:case ne.DIV:case ne.NAV:case ne.PRE:case ne.MAIN:case ne.MENU:case ne.ASIDE:case ne.BUTTON:case ne.CENTER:case ne.FIGURE:case ne.FOOTER:case ne.HEADER:case ne.HGROUP:case ne.DIALOG:case ne.ADDRESS:case ne.ARTICLE:case ne.DETAILS:case ne.SEARCH:case ne.SECTION:case ne.SUMMARY:case ne.LISTING:case ne.FIELDSET:case ne.BLOCKQUOTE:case ne.FIGCAPTION:{zCt(n,e);break}case ne.LI:{$Ct(n);break}case ne.DD:case ne.DT:{qCt(n,e);break}case ne.H1:case ne.H2:case ne.H3:case ne.H4:case ne.H5:case ne.H6:{ZCt(n);break}case ne.BR:{KCt(n);break}case ne.BODY:{VCt(n,e);break}case ne.HTML:{jCt(n,e);break}case ne.FORM:{WCt(n);break}case ne.APPLET:case ne.OBJECT:case ne.MARQUEE:{GCt(n,e);break}case ne.TEMPLATE:{Rb(n,e);break}default:oMe(n,e)}}function aMe(n,e){n.tmplInsertionModeStack.length>0?pMe(n,e):Xle(n,e)}function YCt(n,e){var t;e.tagID===ne.SCRIPT&&((t=n.scriptHandler)===null||t===void 0||t.call(n,n.openElements.current)),n.openElements.pop(),n.insertionMode=n.originalInsertionMode}function XCt(n,e){n._err(e,xn.eofInElementThatCanContainOnlyText),n.openElements.pop(),n.insertionMode=n.originalInsertionMode,n.onEof(e)}function MZ(n,e){if(n.openElements.currentTagId!==void 0&&tMe.has(n.openElements.currentTagId))switch(n.pendingCharacterTokens.length=0,n.hasNonWhitespacePendingCharacterToken=!1,n.originalInsertionMode=n.insertionMode,n.insertionMode=_t.IN_TABLE_TEXT,e.type){case mo.CHARACTER:{cMe(n,e);break}case mo.WHITESPACE_CHARACTER:{lMe(n,e);break}}else FI(n,e)}function JCt(n,e){n.openElements.clearBackToTableContext(),n.activeFormattingElements.insertMarker(),n._insertElement(e,Xn.HTML),n.insertionMode=_t.IN_CAPTION}function eQt(n,e){n.openElements.clearBackToTableContext(),n._insertElement(e,Xn.HTML),n.insertionMode=_t.IN_COLUMN_GROUP}function tQt(n,e){n.openElements.clearBackToTableContext(),n._insertFakeElement(tn.COLGROUP,ne.COLGROUP),n.insertionMode=_t.IN_COLUMN_GROUP,Jle(n,e)}function nQt(n,e){n.openElements.clearBackToTableContext(),n._insertElement(e,Xn.HTML),n.insertionMode=_t.IN_TABLE_BODY}function iQt(n,e){n.openElements.clearBackToTableContext(),n._insertFakeElement(tn.TBODY,ne.TBODY),n.insertionMode=_t.IN_TABLE_BODY,Gj(n,e)}function rQt(n,e){n.openElements.hasInTableScope(ne.TABLE)&&(n.openElements.popUntilTagNamePopped(ne.TABLE),n._resetInsertionMode(),n._processStartTag(e))}function sQt(n,e){sMe(e)?n._appendElement(e,Xn.HTML):FI(n,e),e.ackSelfClosing=!0}function oQt(n,e){!n.formElement&&n.openElements.tmplCount===0&&(n._insertElement(e,Xn.HTML),n.formElement=n.openElements.current,n.openElements.pop())}function Cw(n,e){switch(e.tagID){case ne.TD:case ne.TH:case ne.TR:{iQt(n,e);break}case ne.STYLE:case ne.SCRIPT:case ne.TEMPLATE:{Np(n,e);break}case ne.COL:{tQt(n,e);break}case ne.FORM:{oQt(n,e);break}case ne.TABLE:{rQt(n,e);break}case ne.TBODY:case ne.TFOOT:case ne.THEAD:{nQt(n,e);break}case ne.INPUT:{sQt(n,e);break}case ne.CAPTION:{JCt(n,e);break}case ne.COLGROUP:{eQt(n,e);break}default:FI(n,e)}}function ak(n,e){switch(e.tagID){case ne.TABLE:{n.openElements.hasInTableScope(ne.TABLE)&&(n.openElements.popUntilTagNamePopped(ne.TABLE),n._resetInsertionMode());break}case ne.TEMPLATE:{Rb(n,e);break}case ne.BODY:case ne.CAPTION:case ne.COL:case ne.COLGROUP:case ne.HTML:case ne.TBODY:case ne.TD:case ne.TFOOT:case ne.TH:case ne.THEAD:case ne.TR:break;default:FI(n,e)}}function FI(n,e){const t=n.fosterParentingEnabled;n.fosterParentingEnabled=!0,qj(n,e),n.fosterParentingEnabled=t}function lMe(n,e){n.pendingCharacterTokens.push(e)}function cMe(n,e){n.pendingCharacterTokens.push(e),n.hasNonWhitespacePendingCharacterToken=!0}function Ux(n,e){let t=0;if(n.hasNonWhitespacePendingCharacterToken)for(;t<n.pendingCharacterTokens.length;t++)FI(n,n.pendingCharacterTokens[t]);else for(;t<n.pendingCharacterTokens.length;t++)n._insertCharacters(n.pendingCharacterTokens[t]);n.insertionMode=n.originalInsertionMode,n._processToken(e)}const uMe=new Set([ne.CAPTION,ne.COL,ne.COLGROUP,ne.TBODY,ne.TD,ne.TFOOT,ne.TH,ne.THEAD,ne.TR]);function aQt(n,e){const t=e.tagID;uMe.has(t)?n.openElements.hasInTableScope(ne.CAPTION)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(ne.CAPTION),n.activeFormattingElements.clearToLastMarker(),n.insertionMode=_t.IN_TABLE,Cw(n,e)):vh(n,e)}function lQt(n,e){const t=e.tagID;switch(t){case ne.CAPTION:case ne.TABLE:{n.openElements.hasInTableScope(ne.CAPTION)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(ne.CAPTION),n.activeFormattingElements.clearToLastMarker(),n.insertionMode=_t.IN_TABLE,t===ne.TABLE&&ak(n,e));break}case ne.BODY:case ne.COL:case ne.COLGROUP:case ne.HTML:case ne.TBODY:case ne.TD:case ne.TFOOT:case ne.TH:case ne.THEAD:case ne.TR:break;default:Zj(n,e)}}function Jle(n,e){switch(e.tagID){case ne.HTML:{vh(n,e);break}case ne.COL:{n._appendElement(e,Xn.HTML),e.ackSelfClosing=!0;break}case ne.TEMPLATE:{Np(n,e);break}default:dF(n,e)}}function cQt(n,e){switch(e.tagID){case ne.COLGROUP:{n.openElements.currentTagId===ne.COLGROUP&&(n.openElements.pop(),n.insertionMode=_t.IN_TABLE);break}case ne.TEMPLATE:{Rb(n,e);break}case ne.COL:break;default:dF(n,e)}}function dF(n,e){n.openElements.currentTagId===ne.COLGROUP&&(n.openElements.pop(),n.insertionMode=_t.IN_TABLE,n._processToken(e))}function Gj(n,e){switch(e.tagID){case ne.TR:{n.openElements.clearBackToTableBodyContext(),n._insertElement(e,Xn.HTML),n.insertionMode=_t.IN_ROW;break}case ne.TH:case ne.TD:{n.openElements.clearBackToTableBodyContext(),n._insertFakeElement(tn.TR,ne.TR),n.insertionMode=_t.IN_ROW,Kj(n,e);break}case ne.CAPTION:case ne.COL:case ne.COLGROUP:case ne.TBODY:case ne.TFOOT:case ne.THEAD:{n.openElements.hasTableBodyContextInTableScope()&&(n.openElements.clearBackToTableBodyContext(),n.openElements.pop(),n.insertionMode=_t.IN_TABLE,Cw(n,e));break}default:Cw(n,e)}}function iee(n,e){const t=e.tagID;switch(e.tagID){case ne.TBODY:case ne.TFOOT:case ne.THEAD:{n.openElements.hasInTableScope(t)&&(n.openElements.clearBackToTableBodyContext(),n.openElements.pop(),n.insertionMode=_t.IN_TABLE);break}case ne.TABLE:{n.openElements.hasTableBodyContextInTableScope()&&(n.openElements.clearBackToTableBodyContext(),n.openElements.pop(),n.insertionMode=_t.IN_TABLE,ak(n,e));break}case ne.BODY:case ne.CAPTION:case ne.COL:case ne.COLGROUP:case ne.HTML:case ne.TD:case ne.TH:case ne.TR:break;default:ak(n,e)}}function Kj(n,e){switch(e.tagID){case ne.TH:case ne.TD:{n.openElements.clearBackToTableRowContext(),n._insertElement(e,Xn.HTML),n.insertionMode=_t.IN_CELL,n.activeFormattingElements.insertMarker();break}case ne.CAPTION:case ne.COL:case ne.COLGROUP:case ne.TBODY:case ne.TFOOT:case ne.THEAD:case ne.TR:{n.openElements.hasInTableScope(ne.TR)&&(n.openElements.clearBackToTableRowContext(),n.openElements.pop(),n.insertionMode=_t.IN_TABLE_BODY,Gj(n,e));break}default:Cw(n,e)}}function dMe(n,e){switch(e.tagID){case ne.TR:{n.openElements.hasInTableScope(ne.TR)&&(n.openElements.clearBackToTableRowContext(),n.openElements.pop(),n.insertionMode=_t.IN_TABLE_BODY);break}case ne.TABLE:{n.openElements.hasInTableScope(ne.TR)&&(n.openElements.clearBackToTableRowContext(),n.openElements.pop(),n.insertionMode=_t.IN_TABLE_BODY,iee(n,e));break}case ne.TBODY:case ne.TFOOT:case ne.THEAD:{(n.openElements.hasInTableScope(e.tagID)||n.openElements.hasInTableScope(ne.TR))&&(n.openElements.clearBackToTableRowContext(),n.openElements.pop(),n.insertionMode=_t.IN_TABLE_BODY,iee(n,e));break}case ne.BODY:case ne.CAPTION:case ne.COL:case ne.COLGROUP:case ne.HTML:case ne.TD:case ne.TH:break;default:ak(n,e)}}function uQt(n,e){const t=e.tagID;uMe.has(t)?(n.openElements.hasInTableScope(ne.TD)||n.openElements.hasInTableScope(ne.TH))&&(n._closeTableCell(),Kj(n,e)):vh(n,e)}function dQt(n,e){const t=e.tagID;switch(t){case ne.TD:case ne.TH:{n.openElements.hasInTableScope(t)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(t),n.activeFormattingElements.clearToLastMarker(),n.insertionMode=_t.IN_ROW);break}case ne.TABLE:case ne.TBODY:case ne.TFOOT:case ne.THEAD:case ne.TR:{n.openElements.hasInTableScope(t)&&(n._closeTableCell(),dMe(n,e));break}case ne.BODY:case ne.CAPTION:case ne.COL:case ne.COLGROUP:case ne.HTML:break;default:Zj(n,e)}}function hMe(n,e){switch(e.tagID){case ne.HTML:{vh(n,e);break}case ne.OPTION:{n.openElements.currentTagId===ne.OPTION&&n.openElements.pop(),n._insertElement(e,Xn.HTML);break}case ne.OPTGROUP:{n.openElements.currentTagId===ne.OPTION&&n.openElements.pop(),n.openElements.currentTagId===ne.OPTGROUP&&n.openElements.pop(),n._insertElement(e,Xn.HTML);break}case ne.HR:{n.openElements.currentTagId===ne.OPTION&&n.openElements.pop(),n.openElements.currentTagId===ne.OPTGROUP&&n.openElements.pop(),n._appendElement(e,Xn.HTML),e.ackSelfClosing=!0;break}case ne.INPUT:case ne.KEYGEN:case ne.TEXTAREA:case ne.SELECT:{n.openElements.hasInSelectScope(ne.SELECT)&&(n.openElements.popUntilTagNamePopped(ne.SELECT),n._resetInsertionMode(),e.tagID!==ne.SELECT&&n._processStartTag(e));break}case ne.SCRIPT:case ne.TEMPLATE:{Np(n,e);break}}}function fMe(n,e){switch(e.tagID){case ne.OPTGROUP:{n.openElements.stackTop>0&&n.openElements.currentTagId===ne.OPTION&&n.openElements.tagIDs[n.openElements.stackTop-1]===ne.OPTGROUP&&n.openElements.pop(),n.openElements.currentTagId===ne.OPTGROUP&&n.openElements.pop();break}case ne.OPTION:{n.openElements.currentTagId===ne.OPTION&&n.openElements.pop();break}case ne.SELECT:{n.openElements.hasInSelectScope(ne.SELECT)&&(n.openElements.popUntilTagNamePopped(ne.SELECT),n._resetInsertionMode());break}case ne.TEMPLATE:{Rb(n,e);break}}}function hQt(n,e){const t=e.tagID;t===ne.CAPTION||t===ne.TABLE||t===ne.TBODY||t===ne.TFOOT||t===ne.THEAD||t===ne.TR||t===ne.TD||t===ne.TH?(n.openElements.popUntilTagNamePopped(ne.SELECT),n._resetInsertionMode(),n._processStartTag(e)):hMe(n,e)}function fQt(n,e){const t=e.tagID;t===ne.CAPTION||t===ne.TABLE||t===ne.TBODY||t===ne.TFOOT||t===ne.THEAD||t===ne.TR||t===ne.TD||t===ne.TH?n.openElements.hasInTableScope(t)&&(n.openElements.popUntilTagNamePopped(ne.SELECT),n._resetInsertionMode(),n.onEndTag(e)):fMe(n,e)}function pQt(n,e){switch(e.tagID){case ne.BASE:case ne.BASEFONT:case ne.BGSOUND:case ne.LINK:case ne.META:case ne.NOFRAMES:case ne.SCRIPT:case ne.STYLE:case ne.TEMPLATE:case ne.TITLE:{Np(n,e);break}case ne.CAPTION:case ne.COLGROUP:case ne.TBODY:case ne.TFOOT:case ne.THEAD:{n.tmplInsertionModeStack[0]=_t.IN_TABLE,n.insertionMode=_t.IN_TABLE,Cw(n,e);break}case ne.COL:{n.tmplInsertionModeStack[0]=_t.IN_COLUMN_GROUP,n.insertionMode=_t.IN_COLUMN_GROUP,Jle(n,e);break}case ne.TR:{n.tmplInsertionModeStack[0]=_t.IN_TABLE_BODY,n.insertionMode=_t.IN_TABLE_BODY,Gj(n,e);break}case ne.TD:case ne.TH:{n.tmplInsertionModeStack[0]=_t.IN_ROW,n.insertionMode=_t.IN_ROW,Kj(n,e);break}default:n.tmplInsertionModeStack[0]=_t.IN_BODY,n.insertionMode=_t.IN_BODY,vh(n,e)}}function gQt(n,e){e.tagID===ne.TEMPLATE&&Rb(n,e)}function pMe(n,e){n.openElements.tmplCount>0?(n.openElements.popUntilTagNamePopped(ne.TEMPLATE),n.activeFormattingElements.clearToLastMarker(),n.tmplInsertionModeStack.shift(),n._resetInsertionMode(),n.onEof(e)):Xle(n,e)}function mQt(n,e){e.tagID===ne.HTML?vh(n,e):hF(n,e)}function gMe(n,e){var t;if(e.tagID===ne.HTML){if(n.fragmentContext||(n.insertionMode=_t.AFTER_AFTER_BODY),n.options.sourceCodeLocationInfo&&n.openElements.tagIDs[0]===ne.HTML){n._setEndLocation(n.openElements.items[0],e);const i=n.openElements.items[1];i&&!(!((t=n.treeAdapter.getNodeSourceCodeLocation(i))===null||t===void 0)&&t.endTag)&&n._setEndLocation(i,e)}}else hF(n,e)}function hF(n,e){n.insertionMode=_t.IN_BODY,qj(n,e)}function TQt(n,e){switch(e.tagID){case ne.HTML:{vh(n,e);break}case ne.FRAMESET:{n._insertElement(e,Xn.HTML);break}case ne.FRAME:{n._appendElement(e,Xn.HTML),e.ackSelfClosing=!0;break}case ne.NOFRAMES:{Np(n,e);break}}}function bQt(n,e){e.tagID===ne.FRAMESET&&!n.openElements.isRootHtmlElementCurrent()&&(n.openElements.pop(),!n.fragmentContext&&n.openElements.currentTagId!==ne.FRAMESET&&(n.insertionMode=_t.AFTER_FRAMESET))}function _Qt(n,e){switch(e.tagID){case ne.HTML:{vh(n,e);break}case ne.NOFRAMES:{Np(n,e);break}}}function vQt(n,e){e.tagID===ne.HTML&&(n.insertionMode=_t.AFTER_AFTER_FRAMESET)}function yQt(n,e){e.tagID===ne.HTML?vh(n,e):tP(n,e)}function tP(n,e){n.insertionMode=_t.IN_BODY,qj(n,e)}function wQt(n,e){switch(e.tagID){case ne.HTML:{vh(n,e);break}case ne.NOFRAMES:{Np(n,e);break}}}function CQt(n,e){e.chars=Fl,n._insertCharacters(e)}function QQt(n,e){n._insertCharacters(e),n.framesetOk=!1}function mMe(n){for(;n.treeAdapter.getNamespaceURI(n.openElements.current)!==Xn.HTML&&n.openElements.currentTagId!==void 0&&!n._isIntegrationPoint(n.openElements.currentTagId,n.openElements.current);)n.openElements.pop()}function xQt(n,e){if(Bwt(e))mMe(n),n._startTagOutsideForeignContent(e);else{const t=n._getAdjustedCurrentElement(),i=n.treeAdapter.getNamespaceURI(t);i===Xn.MATHML?JDe(e):i===Xn.SVG&&(Vwt(e),eMe(e)),Kle(e),e.selfClosing?n._appendElement(e,i):n._insertElement(e,i),e.ackSelfClosing=!0}}function SQt(n,e){if(e.tagID===ne.P||e.tagID===ne.BR){mMe(n),n._endTagOutsideForeignContent(e);return}for(let t=n.openElements.stackTop;t>0;t--){const i=n.openElements.items[t];if(n.treeAdapter.getNamespaceURI(i)===Xn.HTML){n._endTagOutsideForeignContent(e);break}const r=n.treeAdapter.getTagName(i);if(r.toLowerCase()===e.tagName){e.tagName=r,n.openElements.shortenToLength(t);break}}}tn.AREA,tn.BASE,tn.BASEFONT,tn.BGSOUND,tn.BR,tn.COL,tn.EMBED,tn.FRAME,tn.HR,tn.IMG,tn.INPUT,tn.KEYGEN,tn.LINK,tn.META,tn.PARAM,tn.SOURCE,tn.TRACK,tn.WBR;const LQt=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,EQt=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Qge={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function TMe(n,e){const t=HQt(n),i=jDe("type",{handlers:{root:kQt,element:AQt,text:IQt,comment:_Me,doctype:DQt,raw:OQt},unknown:NQt}),r={parser:t?new yge(Qge):yge.getFragmentParser(void 0,Qge),handle(o){i(o,r)},stitches:!1,options:e||{}};i(n,r),YC(r,P4());const s=t?r.parser.document:r.parser.getFragment(),a=kyt(s,{file:r.options.file});return r.stitches&&_I(a,"comment",function(o,l,c){const u=o;if(u.value.stitch&&c&&l!==void 0){const h=c.children;return h[l]=u.value.stitch,l}}),a.type==="root"&&a.children.length===1&&a.children[0].type===n.type?a.children[0]:a}function bMe(n,e){let t=-1;if(n)for(;++t<n.length;)e.handle(n[t])}function kQt(n,e){bMe(n.children,e)}function AQt(n,e){RQt(n,e),bMe(n.children,e),PQt(n,e)}function IQt(n,e){e.parser.tokenizer.state>4&&(e.parser.tokenizer.state=0);const t={type:mo.CHARACTER,chars:n.value,location:BI(n)};YC(e,P4(n)),e.parser.currentToken=t,e.parser._processToken(e.parser.currentToken)}function DQt(n,e){const t={type:mo.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:BI(n)};YC(e,P4(n)),e.parser.currentToken=t,e.parser._processToken(e.parser.currentToken)}function MQt(n,e){e.stitches=!0;const t=FQt(n);if("children"in n&&"children"in t){const i=TMe({type:"root",children:n.children},e.options);t.children=i.children}_Me({type:"comment",value:{stitch:t}},e)}function _Me(n,e){const t=n.value,i={type:mo.COMMENT,data:t,location:BI(n)};YC(e,P4(n)),e.parser.currentToken=i,e.parser._processToken(e.parser.currentToken)}function OQt(n,e){if(e.parser.tokenizer.preprocessor.html="",e.parser.tokenizer.preprocessor.pos=-1,e.parser.tokenizer.preprocessor.lastGapPos=-2,e.parser.tokenizer.preprocessor.gapStack=[],e.parser.tokenizer.preprocessor.skipNextNewLine=!1,e.parser.tokenizer.preprocessor.lastChunkWritten=!1,e.parser.tokenizer.preprocessor.endOfChunkHit=!1,e.parser.tokenizer.preprocessor.isEol=!1,vMe(e,P4(n)),e.parser.tokenizer.write(e.options.tagfilter?n.value.replace(LQt,"&lt;$1$2"):n.value,!1),e.parser.tokenizer._runParsingLoop(),e.parser.tokenizer.state===72||e.parser.tokenizer.state===78){e.parser.tokenizer.preprocessor.lastChunkWritten=!0;const t=e.parser.tokenizer._consume();e.parser.tokenizer._callState(t)}}function NQt(n,e){const t=n;if(e.options.passThrough&&e.options.passThrough.includes(t.type))MQt(t,e);else{let i="";throw EQt.has(t.type)&&(i=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+t.type+"` node"+i)}}function YC(n,e){vMe(n,e);const t=n.parser.tokenizer.currentCharacterToken;t&&t.location&&(t.location.endLine=n.parser.tokenizer.preprocessor.line,t.location.endCol=n.parser.tokenizer.preprocessor.col+1,t.location.endOffset=n.parser.tokenizer.preprocessor.offset+1,n.parser.currentToken=t,n.parser._processToken(n.parser.currentToken)),n.parser.tokenizer.paused=!1,n.parser.tokenizer.inLoop=!1,n.parser.tokenizer.active=!1,n.parser.tokenizer.returnState=Oc.DATA,n.parser.tokenizer.charRefCode=-1,n.parser.tokenizer.consumedAfterSnapshot=-1,n.parser.tokenizer.currentLocation=null,n.parser.tokenizer.currentCharacterToken=null,n.parser.tokenizer.currentToken=null,n.parser.tokenizer.currentAttr={name:"",value:""}}function vMe(n,e){if(e&&e.offset!==void 0){const t={startLine:e.line,startCol:e.column,startOffset:e.offset,endLine:-1,endCol:-1,endOffset:-1};n.parser.tokenizer.preprocessor.lineStartPos=-e.column+1,n.parser.tokenizer.preprocessor.droppedBufferSize=e.offset,n.parser.tokenizer.preprocessor.line=e.line,n.parser.tokenizer.currentLocation=t}}function RQt(n,e){const t=n.tagName.toLowerCase();if(e.parser.tokenizer.state===Oc.PLAINTEXT)return;YC(e,P4(n));const i=e.parser.openElements.current;let r="namespaceURI"in i?i.namespaceURI:z9.html;r===z9.html&&t==="svg"&&(r=z9.svg);const s=Wyt({...n,children:[]},{space:r===z9.svg?"svg":"html"}),a={type:mo.START_TAG,tagName:t,tagID:KC(t),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in s?s.attrs:[],location:BI(n)};e.parser.currentToken=a,e.parser._processToken(e.parser.currentToken),e.parser.tokenizer.lastStartTagName=t}function PQt(n,e){const t=n.tagName.toLowerCase();if(!e.parser.tokenizer.inForeignNode&&Xyt.includes(t)||e.parser.tokenizer.state===Oc.PLAINTEXT)return;YC(e,XV(n));const i={type:mo.END_TAG,tagName:t,tagID:KC(t),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:BI(n)};e.parser.currentToken=i,e.parser._processToken(e.parser.currentToken),t===e.parser.tokenizer.lastStartTagName&&(e.parser.tokenizer.state===Oc.RCDATA||e.parser.tokenizer.state===Oc.RAWTEXT||e.parser.tokenizer.state===Oc.SCRIPT_DATA)&&(e.parser.tokenizer.state=Oc.DATA)}function HQt(n){const e=n.type==="root"?n.children[0]:n;return!!(e&&(e.type==="doctype"||e.type==="element"&&e.tagName.toLowerCase()==="html"))}function BI(n){const e=P4(n)||{line:void 0,column:void 0,offset:void 0},t=XV(n)||{line:void 0,column:void 0,offset:void 0};return{startLine:e.line,startCol:e.column,startOffset:e.offset,endLine:t.line,endCol:t.column,endOffset:t.offset}}function FQt(n){return"children"in n?ow({...n,children:[]}):ow(n)}function BQt(n){return function(e,t){return TMe(e,{...n,file:t})}}function xge(n,e){const t=String(n);if(typeof e!="string")throw new TypeError("Expected character");let i=0,r=t.indexOf(e);for(;r!==-1;)i++,r=t.indexOf(e,r+e.length);return i}function VQt(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function jQt(n,e,t){const r=nj((t||{}).ignore||[]),s=zQt(e);let a=-1;for(;++a<s.length;)SQe(n,"text",o);function o(c,u){let h=-1,d;for(;++h<u.length;){const f=u[h],p=d?d.children:void 0;if(r(f,p?p.indexOf(f):void 0,d))return;d=f}if(d)return l(c,u)}function l(c,u){const h=u[u.length-1],d=s[a][0],f=s[a][1];let p=0;const m=h.children.indexOf(c);let T=!1,b=[];d.lastIndex=0;let v=d.exec(c.value);for(;v;){const _=v.index,w={index:v.index,input:v.input,stack:[...u,c]};let y=f(...v,w);if(typeof y=="string"&&(y=y.length>0?{type:"text",value:y}:void 0),y===!1?d.lastIndex=_+1:(p!==_&&b.push({type:"text",value:c.value.slice(p,_)}),Array.isArray(y)?b.push(...y):y&&b.push(y),p=_+v[0].length,T=!0),!d.global)break;v=d.exec(c.value)}return T?(p<c.value.length&&b.push({type:"text",value:c.value.slice(p)}),h.children.splice(m,1,...b)):b=[c],m+b.length}}function zQt(n){const e=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!n[0]||Array.isArray(n[0])?n:[n];let i=-1;for(;++i<t.length;){const r=t[i];e.push([WQt(r[0]),UQt(r[1])])}return e}function WQt(n){return typeof n=="string"?new RegExp(VQt(n),"g"):n}function UQt(n){return typeof n=="function"?n:function(){return n}}const OZ="phrasing",NZ=["autolink","link","image","label"];function $Qt(){return{transforms:[JQt],enter:{literalAutolink:ZQt,literalAutolinkEmail:RZ,literalAutolinkHttp:RZ,literalAutolinkWww:RZ},exit:{literalAutolink:XQt,literalAutolinkEmail:YQt,literalAutolinkHttp:GQt,literalAutolinkWww:KQt}}}function qQt(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:OZ,notInConstruct:NZ},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:OZ,notInConstruct:NZ},{character:":",before:"[ps]",after:"\\/",inConstruct:OZ,notInConstruct:NZ}]}}function ZQt(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function RZ(n){this.config.enter.autolinkProtocol.call(this,n)}function GQt(n){this.config.exit.autolinkProtocol.call(this,n)}function KQt(n){this.config.exit.data.call(this,n);const e=this.stack[this.stack.length-1];e.type,e.url="http://"+this.sliceSerialize(n)}function YQt(n){this.config.exit.autolinkEmail.call(this,n)}function XQt(n){this.exit(n)}function JQt(n){jQt(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ext],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),txt]],{ignore:["link","linkReference"]})}function ext(n,e,t,i,r){let s="";if(!yMe(r)||(/^w/i.test(e)&&(t=e+t,e="",s="http://"),!nxt(t)))return!1;const a=ixt(t+i);if(!a[0])return!1;const o={type:"link",title:null,url:s+e+a[0],children:[{type:"text",value:e+a[0]}]};return a[1]?[o,{type:"text",value:a[1]}]:o}function txt(n,e,t,i){return!yMe(i,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+e+"@"+t,children:[{type:"text",value:e+"@"+t}]}}function nxt(n){const e=n.split(".");return!(e.length<2||e[e.length-1]&&(/_/.test(e[e.length-1])||!/[a-zA-Z\d]/.test(e[e.length-1]))||e[e.length-2]&&(/_/.test(e[e.length-2])||!/[a-zA-Z\d]/.test(e[e.length-2])))}function ixt(n){const e=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!e)return[n,void 0];n=n.slice(0,e.index);let t=e[0],i=t.indexOf(")");const r=xge(n,"(");let s=xge(n,")");for(;i!==-1&&r>s;)n+=t.slice(0,i+1),t=t.slice(i+1),i=t.indexOf(")"),s++;return[n,t]}function yMe(n,e){const t=n.input.charCodeAt(n.index-1);return(n.index===0||DT(t)||JV(t))&&(!e||t!==47)}wMe.peek=hxt;function rxt(){this.buffer()}function sxt(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function oxt(){this.buffer()}function axt(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function lxt(n){const e=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=tp(this.sliceSerialize(n)).toLowerCase(),t.label=e}function cxt(n){this.exit(n)}function uxt(n){const e=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=tp(this.sliceSerialize(n)).toLowerCase(),t.label=e}function dxt(n){this.exit(n)}function hxt(){return"["}function wMe(n,e,t,i){const r=t.createTracker(i);let s=r.move("[^");const a=t.enter("footnoteReference"),o=t.enter("reference");return s+=r.move(t.safe(t.associationId(n),{after:"]",before:s})),o(),a(),s+=r.move("]"),s}function fxt(){return{enter:{gfmFootnoteCallString:rxt,gfmFootnoteCall:sxt,gfmFootnoteDefinitionLabelString:oxt,gfmFootnoteDefinition:axt},exit:{gfmFootnoteCallString:lxt,gfmFootnoteCall:cxt,gfmFootnoteDefinitionLabelString:uxt,gfmFootnoteDefinition:dxt}}}function pxt(n){let e=!1;return n&&n.firstLineBlank&&(e=!0),{handlers:{footnoteDefinition:t,footnoteReference:wMe},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(i,r,s,a){const o=s.createTracker(a);let l=o.move("[^");const c=s.enter("footnoteDefinition"),u=s.enter("label");return l+=o.move(s.safe(s.associationId(i),{before:l,after:"]"})),u(),l+=o.move("]:"),i.children&&i.children.length>0&&(o.shift(4),l+=o.move((e?`
454
454
  `:" ")+s.indentLines(s.containerFlow(i,o.current()),e?CMe:gxt))),c(),l}}function gxt(n,e,t){return e===0?n:CMe(n,e,t)}function CMe(n,e,t){return(t?"":" ")+n}const mxt=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];QMe.peek=yxt;function Txt(){return{canContainEols:["delete"],enter:{strikethrough:_xt},exit:{strikethrough:vxt}}}function bxt(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:mxt}],handlers:{delete:QMe}}}function _xt(n){this.enter({type:"delete",children:[]},n)}function vxt(n){this.exit(n)}function QMe(n,e,t,i){const r=t.createTracker(i),s=t.enter("strikethrough");let a=r.move("~~");return a+=t.containerPhrasing(n,{...r.current(),before:a,after:"~"}),a+=r.move("~~"),s(),a}function yxt(){return"~"}function wxt(n){return n.length}function Cxt(n,e){const t=e||{},i=(t.align||[]).concat(),r=t.stringLength||wxt,s=[],a=[],o=[],l=[];let c=0,u=-1;for(;++u<n.length;){const g=[],m=[];let T=-1;for(n[u].length>c&&(c=n[u].length);++T<n[u].length;){const b=Qxt(n[u][T]);if(t.alignDelimiters!==!1){const v=r(b);m[T]=v,(l[T]===void 0||v>l[T])&&(l[T]=v)}g.push(b)}a[u]=g,o[u]=m}let h=-1;if(typeof i=="object"&&"length"in i)for(;++h<c;)s[h]=Sge(i[h]);else{const g=Sge(i);for(;++h<c;)s[h]=g}h=-1;const d=[],f=[];for(;++h<c;){const g=s[h];let m="",T="";g===99?(m=":",T=":"):g===108?m=":":g===114&&(T=":");let b=t.alignDelimiters===!1?1:Math.max(1,l[h]-m.length-T.length);const v=m+"-".repeat(b)+T;t.alignDelimiters!==!1&&(b=m.length+b+T.length,b>l[h]&&(l[h]=b),f[h]=b),d[h]=v}a.splice(1,0,d),o.splice(1,0,f),u=-1;const p=[];for(;++u<a.length;){const g=a[u],m=o[u];h=-1;const T=[];for(;++h<c;){const b=g[h]||"";let v="",_="";if(t.alignDelimiters!==!1){const w=l[h]-(m[h]||0),y=s[h];y===114?v=" ".repeat(w):y===99?w%2?(v=" ".repeat(w/2+.5),_=" ".repeat(w/2-.5)):(v=" ".repeat(w/2),_=v):_=" ".repeat(w)}t.delimiterStart!==!1&&!h&&T.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&b==="")&&(t.delimiterStart!==!1||h)&&T.push(" "),t.alignDelimiters!==!1&&T.push(v),T.push(b),t.alignDelimiters!==!1&&T.push(_),t.padding!==!1&&T.push(" "),(t.delimiterEnd!==!1||h!==c-1)&&T.push("|")}p.push(t.delimiterEnd===!1?T.join("").replace(/ +$/,""):T.join(""))}return p.join(`
455
455
  `)}function Qxt(n){return n==null?"":String(n)}function Sge(n){const e=typeof n=="string"?n.codePointAt(0):0;return e===67||e===99?99:e===76||e===108?108:e===82||e===114?114:0}function xxt(n,e,t,i){const r=t.enter("blockquote"),s=t.createTracker(i);s.move("> "),s.shift(2);const a=t.indentLines(t.containerFlow(n,s.current()),Sxt);return r(),a}function Sxt(n,e,t){return">"+(t?"":" ")+n}function Lxt(n,e){return Lge(n,e.inConstruct,!0)&&!Lge(n,e.notInConstruct,!1)}function Lge(n,e,t){if(typeof e=="string"&&(e=[e]),!e||e.length===0)return t;let i=-1;for(;++i<e.length;)if(n.includes(e[i]))return!0;return!1}function Ege(n,e,t,i){let r=-1;for(;++r<t.unsafe.length;)if(t.unsafe[r].character===`
@@ -587,7 +587,7 @@ ${S.split(`
587
587
  `).map(L=>"> "+L).join(`
588
588
  `)}
589
589
 
590
- `.trimStart(),setTimeout(()=>{g.current.focus(),g.current.selectionStart=g.current.selectionEnd=g.current.value.length},10))},[]),C=F.useCallback(async(S,L)=>{L?(await r(Sn.analytic.comments.react.put(n==null?void 0:n.analytic_id,S,L)),e({...n,comment:n.comment.map(E=>E.id!==S?E:{...E,reactions:{...(E==null?void 0:E.reactions)??{},[t.username]:L}})})):(await r(Sn.analytic.comments.react.del(n==null?void 0:n.analytic_id,S)),e({...n,comment:n.comment.map(E=>E.id!==S?E:{...E,reactions:{...(E==null?void 0:E.reactions)??{},[t.username]:void 0}})}))},[n,r,e,t.username]);F.useEffect(()=>{a(new Set(n==null?void 0:n.comment.map(S=>S.user)))},[n==null?void 0:n.analytic_id]);const x=F.useMemo(()=>n==null?void 0:n.comment.filter(S=>!l.get("filter")||S.detection===l.get("filter")).sort((S,L)=>f7(L.timestamp,S.timestamp)).map(S=>Q.jsx(pF,{comment:S,users:o,handleDelete:()=>_(S.id),handleEdit:L=>w(S.id,L),handleReact:L=>C(S.id,L),handleQuote:()=>y(S.value),extra:!l.get("filter")&&Q.jsx(xs,{size:"small",sx:L=>({marginLeft:"0 !important",mr:`${L.spacing(2)} !important`}),label:S.detection??"Analytic"})},S.id)),[n==null?void 0:n.comment,l,_,w,y,C,o]);return Q.jsxs(rt,{direction:"column",py:2,spacing:1,children:[Q.jsx(is,{orientation:"horizontal",flexItem:!0}),Q.jsxs(rt,{direction:"row",spacing:1,children:[Q.jsx(zc,{userId:t.username}),Q.jsx(Ar,{inputProps:{sx:S=>({fontSize:S.typography.body2.fontSize})},InputLabelProps:{shrink:!1},placeholder:i(l.get("filter")?"comments.add.detection":"comments.add.analytic"),onKeyDown:b,onChangeCapture:v,inputRef:g,error:c>B_,fullWidth:!0,multiline:!0})]}),Q.jsxs(rt,{direction:"row",alignItems:"center",children:[Q.jsx(ku,{}),c>.9*B_&&Q.jsxs(mt,{variant:"caption",sx:[{opacity:.7,mr:1},c>B_&&{color:"error.main"}],children:[c,"/",B_]}),f&&Q.jsx(Ei,{size:"small",onClick:T,disabled:h,children:Q.jsx(fp,{fontSize:"small"})}),Q.jsx(Ei,{size:"small",onClick:m,disabled:h||c>B_,children:Q.jsx(Uve,{fontSize:"small"})})]}),x]})},SEt=({analytic:n})=>{const[e]=yc(),t=tl(),i=oa(Ii.PAGE_COUNT,25)[0],[r,s]=F.useState([]),[a,o]=F.useState(!1),[l,c]=F.useState(new Set),u=zI(l);F.useEffect(()=>{c(new Set(r.map(d=>d.comment.user)))},[r]),F.useEffect(()=>{n&&(o(!0),Sn.search.hit.post({query:`howler.analytic:${n.name} AND _exists_:howler.comment`,rows:i}).then(d=>{s(d.items.flatMap(f=>f.howler.comment.map(p=>({hitId:f.howler.id,detection:f.howler.detection,comment:p}))))}).finally(()=>{o(!1)}))},[n,i]);const h=F.useMemo(()=>a?Q.jsx(jh,{}):r.filter(d=>!e.get("filter")||d.detection===e.get("filter")).sort((d,f)=>f7(f.comment.timestamp,d.comment.timestamp)).map(d=>Q.jsx(pF,{comment:d.comment,users:u,onClick:()=>t(`/hits/${d.hitId}`),extra:!e.get("filter")&&Q.jsx(xs,{size:"small",sx:f=>({marginLeft:"0 !important",mr:`${f.spacing(2)} !important`}),label:d.detection??"Analytic"})},d.comment.id)),[a,r,e,u,t]);return Q.jsxs(rt,{direction:"column",py:2,spacing:1,children:[Q.jsx(is,{orientation:"horizontal",flexItem:!0}),h]})},LEt=({onConfirm:n})=>{const{t:e}=ln(),{close:t}=F.useContext(Ip),i=F.useCallback(()=>{n(),t()},[t,n]);return Q.jsxs(rt,{spacing:2,p:2,alignItems:"start",sx:{minWidth:"500px"},children:[Q.jsx(mt,{variant:"h4",children:"Overwrite existing notebook?"}),Q.jsx(mt,{children:e("hit.notebook.confirm.dialog")}),Q.jsxs(rt,{direction:"row",spacing:1,alignSelf:"end",children:[Q.jsx(so,{variant:"outlined",onClick:t,children:e("cancel")}),Q.jsx(so,{variant:"outlined",onClick:i,children:e("confirm")})]})]})},ame={credentials:"include",headers:{Accept:"*/*","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"},mode:"cors"},EEt=({analytic:n,selectedNotebook:e,hit:t})=>{const{t:i}=ln(),{config:r}=F.useContext(wa),{showErrorMessage:s}=ed(),{dispatchApi:a}=zs(),[o,l]=F.useState(!1),[c,u]=F.useState([]),[h,d]=F.useState(!0),[f,p]=F.useState({nb_content:null,name:""}),[g,m]=F.useState(null),{showModal:T}=F.useContext(Ip),b=C=>{m(C.currentTarget),l(x=>!x)},v=F.useCallback(async(C,x)=>{try{await fetch(x,{...ame,method:"post",body:`{"type":"notebook","content":${JSON.stringify(f.nb_content)}}`}),window.open(`${c[0].url}lab/tree/${C}`,"_blank"),l(!1)}catch{s(i("hit.notebook.error.failToPost"))}},[c,f,s,i]),_=F.useCallback(async()=>{d(!0);const C=t?`${f.name} - ${t.howler.id}.ipynb`:`${f.name}.ipynb`;try{(await fetch(`${c[0].url}api/contents/${C}`,ame)).status<300?T(Q.jsx(LEt,{onConfirm:()=>{v(C,`${c[0].url}post/${C}`)}})):v(C,`${c[0].url}post/${C}`)}catch{v(C,`${c[0].url}post/${C}`)}d(!1)},[c,v,t,f,T]),w=F.useCallback(async()=>{d(!0);try{const C=await a(Sn.notebook.environments.get(),{showError:!0,throwError:!1});u(C.envs.map(x=>({...x,url:x.url.endsWith("/")?x.url:x.url+"/"})))}finally{d(!1)}},[a]),y=F.useCallback(async C=>{d(!0);try{const x=await a(Sn.notebook.post({link:C??(n==null?void 0:n.notebooks.find(S=>S.name===e).value),analytic:n,...t?{hit:t}:{}}),{showError:!0,throwError:!1});p(x)}finally{d(!1)}},[n,a,t,e]);return F.useEffect(()=>{o?(w(),e&&y()):p({nb_content:null,name:""})},[o]),r.configuration.features.notebook&&(n==null?void 0:n.notebooks)&&Q.jsx(yb,{onClickAway:()=>l(!1),mouseEvent:"onMouseUp",children:Q.jsxs("div",{children:[Q.jsx(wC,{open:o,anchorEl:g,placement:"bottom",transition:!0,sx:{zIndex:1499},children:({TransitionProps:C})=>Q.jsx(c4,{...C,timeout:350,children:Q.jsxs(Lu,{sx:{maxWidth:"90%",width:"400px",p:1,position:"relative"},children:[Q.jsx(lye,{open:h,sx:{position:"absolute",zIndex:x=>x.zIndex.drawer+1},children:Q.jsx(rt,{direction:"column",children:Q.jsx("div",{style:{textAlign:"center"},children:Q.jsx(_a,{color:"inherit"})})})}),Q.jsxs(rt,{direction:"column",spacing:2,sx:{p:1},children:[Q.jsxs(Ar,{disabled:!!e,label:"Notebook",select:!0,onChange:x=>{y(x.target.value)},SelectProps:{MenuProps:{style:{zIndex:35001}}},defaultValue:e?n==null?void 0:n.notebooks.find(x=>x.name===e).value:"",children:[Q.jsx(Zs,{disabled:!0,value:"",children:Q.jsx("em",{children:i("hit.notebook.select")})}),n==null?void 0:n.notebooks.sort(ySe("detection")).map(x=>Q.jsx(Zs,{value:x.value,children:Q.jsxs(rt,{direction:"row",sx:{width:"100%"},children:[x.name,x.detection&&Q.jsxs(Q.Fragment,{children:[Q.jsx(ai,{flex:1}),Q.jsx(xs,{label:x.detection,size:"small"})]})]})},x.value))]}),Q.jsx(so,{variant:"outlined",disabled:f.name===""||c.length===0,color:"success",onClick:()=>_(),children:i("hit.notebook.goTo")})]})]})})}),Q.jsx(b4,{variant:"elevation",onClick:b,sx:[C=>({cursor:"pointer",backgroundColor:"transparent",transition:C.transitions.create(["border-color"]),"&:hover":{borderColor:"primary.main"}}),{border:"thin solid",borderColor:"transparent"}],children:Q.jsxs(rt,{direction:"row",p:1,spacing:1,alignItems:"center",children:[Q.jsx(Yy,{variant:"rounded",src:"/images/jupyter_notebook_file_icon.png",sx:[C=>({width:C.spacing(3),height:C.spacing(3),"& img":{objectFit:"contain"}})],children:"jupyter_notebook_file_icon.png"}),i("hit.notebook.tooltip")]})})]})})},cce=F.memo(EEt),kEt=({analytic:n,setAnalytic:e})=>{var h,d;const{t}=ln(),{dispatchApi:i}=zs(),{user:r}=ya(),[s,a]=F.useState(!1),[o,l]=F.useState({name:"",link:"",detection:""}),c=F.useCallback(async()=>{a(!0);try{const f=await i(Sn.analytic.notebooks.post(n.analytic_id,{...o,value:o.link}),{showError:!0,throwError:!1,logError:!1});f&&(l({name:"",link:"",detection:""}),e(f))}finally{a(!1)}},[n,i,o,e]),u=F.useCallback(async f=>{await i(Sn.analytic.notebooks.del(n.analytic_id,[f])),e({...n,notebooks:n.notebooks.filter(p=>p.id!==f)})},[n,i,e]);return Q.jsxs(rt,{direction:"column",py:2,spacing:1,children:[Q.jsx(ai,{sx:{flexGrow:1},children:Q.jsxs(Nr,{container:!0,spacing:1,children:[Q.jsx(Nr,{item:!0,xs:6,md:2,children:Q.jsxs(su,{fullWidth:!0,children:[Q.jsx(_m,{id:"select-label",children:"Detection"}),Q.jsxs(R1,{labelId:"select-label",label:"Detection",value:o.detection,onChange:f=>{l({...o,detection:f.target.value})},startAdornment:Q.jsx(Jf,{position:"start",children:Q.jsx(s$e,{})}),children:[Q.jsx(Zs,{value:"",children:t("analytic.notebook.dropdown.none")}),(h=n==null?void 0:n.detections)==null?void 0:h.map(f=>Q.jsx(Zs,{value:f,children:f},f))]})]})}),Q.jsx(Nr,{item:!0,xs:6,md:2,children:Q.jsx(Ar,{fullWidth:!0,label:t("analytic.notebook.name"),value:o.name,onChange:f=>{l({...o,name:f.currentTarget.value})},InputProps:{startAdornment:Q.jsx(Jf,{position:"start",children:Q.jsx(o$e,{})})}})}),Q.jsx(Nr,{item:!0,xs:12,md:8,children:Q.jsxs(ai,{sx:{display:"flex",alignItems:"center"},children:[Q.jsx(Ar,{fullWidth:!0,label:t("analytic.notebook.link"),value:o.link,onChange:f=>{l({...o,link:f.currentTarget.value})},InputProps:{startAdornment:Q.jsx(Jf,{position:"start",children:Q.jsx(a$e,{})})}}),Q.jsx(Ei,{disabled:!o.link||!o.name,onClick:()=>!s&&c(),children:s?Q.jsx(_a,{}):Q.jsx(U2,{})})]})})]})}),Q.jsx(is,{orientation:"horizontal",flexItem:!0}),(d=n==null?void 0:n.notebooks)==null?void 0:d.sort(ySe("detection")).map(f=>{var p;return Q.jsx(Wi,{variant:"outlined",sx:{p:1,mb:1},children:Q.jsxs(rt,{direction:"row",alignItems:"center",spacing:1,children:[Q.jsx(zc,{sx:{width:24,height:24,marginRight:"8px !important",marginLeft:"8px !important"},userId:f.user}),Q.jsxs(rt,{children:[Q.jsx(rt,{direction:"row",alignItems:"center",spacing:1,children:Q.jsx(mt,{variant:"body1",children:f.name})}),Q.jsx(mt,{variant:"caption",children:Q.jsx("code",{children:f.value})})]}),Q.jsx(ku,{}),Q.jsx(mt,{variant:"caption",children:f.detection??""}),Q.jsx(cce,{analytic:n,selectedNotebook:f.name}),((f==null?void 0:f.user)===r.username||((p=r.roles)==null?void 0:p.includes("admin")))&&Q.jsx(Jn,{title:"Remove",children:Q.jsx(Ei,{onClick:()=>u(f.id),children:Q.jsx(Gh,{})})})]})},f.id)})]})};/*!
590
+ `.trimStart(),setTimeout(()=>{g.current.focus(),g.current.selectionStart=g.current.selectionEnd=g.current.value.length},10))},[]),C=F.useCallback(async(S,L)=>{L?(await r(Sn.analytic.comments.react.put(n==null?void 0:n.analytic_id,S,L)),e({...n,comment:n.comment.map(E=>E.id!==S?E:{...E,reactions:{...(E==null?void 0:E.reactions)??{},[t.username]:L}})})):(await r(Sn.analytic.comments.react.del(n==null?void 0:n.analytic_id,S)),e({...n,comment:n.comment.map(E=>E.id!==S?E:{...E,reactions:{...(E==null?void 0:E.reactions)??{},[t.username]:void 0}})}))},[n,r,e,t.username]);F.useEffect(()=>{a(new Set(n==null?void 0:n.comment.map(S=>S.user)))},[n==null?void 0:n.analytic_id]);const x=F.useMemo(()=>n==null?void 0:n.comment.filter(S=>!l.get("filter")||S.detection===l.get("filter")).sort((S,L)=>f7(L.timestamp,S.timestamp)).map(S=>Q.jsx(pF,{comment:S,users:o,handleDelete:()=>_(S.id),handleEdit:L=>w(S.id,L),handleReact:L=>C(S.id,L),handleQuote:()=>y(S.value),extra:!l.get("filter")&&Q.jsx(xs,{size:"small",sx:L=>({marginLeft:"0 !important",mr:`${L.spacing(2)} !important`}),label:S.detection??"Analytic"})},S.id)),[n==null?void 0:n.comment,l,_,w,y,C,o]);return Q.jsxs(rt,{direction:"column",py:2,spacing:1,children:[Q.jsx(is,{orientation:"horizontal",flexItem:!0}),Q.jsxs(rt,{direction:"row",spacing:1,children:[Q.jsx(zc,{userId:t.username}),Q.jsx(Ar,{inputProps:{sx:S=>({fontSize:S.typography.body2.fontSize})},InputLabelProps:{shrink:!1},placeholder:i(l.get("filter")?"comments.add.detection":"comments.add.analytic"),onKeyDown:b,onChangeCapture:v,inputRef:g,error:c>B_,fullWidth:!0,multiline:!0})]}),Q.jsxs(rt,{direction:"row",alignItems:"center",children:[Q.jsx(ku,{}),c>.9*B_&&Q.jsxs(mt,{variant:"caption",sx:[{opacity:.7,mr:1},c>B_&&{color:"error.main"}],children:[c,"/",B_]}),f&&Q.jsx(Ei,{size:"small",onClick:T,disabled:h,children:Q.jsx(fp,{fontSize:"small"})}),Q.jsx(Ei,{size:"small",onClick:m,disabled:h||c>B_,children:Q.jsx(Uve,{fontSize:"small"})})]}),x]})},SEt=({analytic:n})=>{const[e]=yc(),t=tl(),i=oa(Ii.PAGE_COUNT,25)[0],[r,s]=F.useState([]),[a,o]=F.useState(!1),[l,c]=F.useState(new Set),u=zI(l);F.useEffect(()=>{c(new Set(r.map(d=>d.comment.user)))},[r]),F.useEffect(()=>{n&&(o(!0),Sn.search.hit.post({query:`howler.analytic:${n.name} AND _exists_:howler.comment`,rows:i}).then(d=>{s(d.items.flatMap(f=>f.howler.comment.map(p=>({hitId:f.howler.id,detection:f.howler.detection,comment:p}))))}).finally(()=>{o(!1)}))},[n,i]);const h=F.useMemo(()=>a?Q.jsx(jh,{}):r.filter(d=>!e.has("filter")||d.detection===e.get("filter")).sort((d,f)=>f7(f.comment.timestamp,d.comment.timestamp)).map(d=>Q.jsx(pF,{comment:d.comment,users:u,onClick:()=>t(`/hits/${d.hitId}`),extra:!e.get("filter")&&Q.jsx(xs,{size:"small",sx:f=>({marginLeft:"0 !important",mr:`${f.spacing(2)} !important`}),label:d.detection??"Analytic"})},d.comment.id)),[a,r,e,u,t]);return Q.jsxs(rt,{direction:"column",py:2,spacing:1,children:[Q.jsx(is,{orientation:"horizontal",flexItem:!0}),h]})},LEt=({onConfirm:n})=>{const{t:e}=ln(),{close:t}=F.useContext(Ip),i=F.useCallback(()=>{n(),t()},[t,n]);return Q.jsxs(rt,{spacing:2,p:2,alignItems:"start",sx:{minWidth:"500px"},children:[Q.jsx(mt,{variant:"h4",children:"Overwrite existing notebook?"}),Q.jsx(mt,{children:e("hit.notebook.confirm.dialog")}),Q.jsxs(rt,{direction:"row",spacing:1,alignSelf:"end",children:[Q.jsx(so,{variant:"outlined",onClick:t,children:e("cancel")}),Q.jsx(so,{variant:"outlined",onClick:i,children:e("confirm")})]})]})},ame={credentials:"include",headers:{Accept:"*/*","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"},mode:"cors"},EEt=({analytic:n,selectedNotebook:e,hit:t})=>{const{t:i}=ln(),{config:r}=F.useContext(wa),{showErrorMessage:s}=ed(),{dispatchApi:a}=zs(),[o,l]=F.useState(!1),[c,u]=F.useState([]),[h,d]=F.useState(!0),[f,p]=F.useState({nb_content:null,name:""}),[g,m]=F.useState(null),{showModal:T}=F.useContext(Ip),b=C=>{m(C.currentTarget),l(x=>!x)},v=F.useCallback(async(C,x)=>{try{await fetch(x,{...ame,method:"post",body:`{"type":"notebook","content":${JSON.stringify(f.nb_content)}}`}),window.open(`${c[0].url}lab/tree/${C}`,"_blank"),l(!1)}catch{s(i("hit.notebook.error.failToPost"))}},[c,f,s,i]),_=F.useCallback(async()=>{d(!0);const C=t?`${f.name} - ${t.howler.id}.ipynb`:`${f.name}.ipynb`;try{(await fetch(`${c[0].url}api/contents/${C}`,ame)).status<300?T(Q.jsx(LEt,{onConfirm:()=>{v(C,`${c[0].url}post/${C}`)}})):v(C,`${c[0].url}post/${C}`)}catch{v(C,`${c[0].url}post/${C}`)}d(!1)},[c,v,t,f,T]),w=F.useCallback(async()=>{d(!0);try{const C=await a(Sn.notebook.environments.get(),{showError:!0,throwError:!1});u(C.envs.map(x=>({...x,url:x.url.endsWith("/")?x.url:x.url+"/"})))}finally{d(!1)}},[a]),y=F.useCallback(async C=>{d(!0);try{const x=await a(Sn.notebook.post({link:C??(n==null?void 0:n.notebooks.find(S=>S.name===e).value),analytic:n,...t?{hit:t}:{}}),{showError:!0,throwError:!1});p(x)}finally{d(!1)}},[n,a,t,e]);return F.useEffect(()=>{o?(w(),e&&y()):p({nb_content:null,name:""})},[o]),r.configuration.features.notebook&&(n==null?void 0:n.notebooks)&&Q.jsx(yb,{onClickAway:()=>l(!1),mouseEvent:"onMouseUp",children:Q.jsxs("div",{children:[Q.jsx(wC,{open:o,anchorEl:g,placement:"bottom",transition:!0,sx:{zIndex:1499},children:({TransitionProps:C})=>Q.jsx(c4,{...C,timeout:350,children:Q.jsxs(Lu,{sx:{maxWidth:"90%",width:"400px",p:1,position:"relative"},children:[Q.jsx(lye,{open:h,sx:{position:"absolute",zIndex:x=>x.zIndex.drawer+1},children:Q.jsx(rt,{direction:"column",children:Q.jsx("div",{style:{textAlign:"center"},children:Q.jsx(_a,{color:"inherit"})})})}),Q.jsxs(rt,{direction:"column",spacing:2,sx:{p:1},children:[Q.jsxs(Ar,{disabled:!!e,label:"Notebook",select:!0,onChange:x=>{y(x.target.value)},SelectProps:{MenuProps:{style:{zIndex:35001}}},defaultValue:e?n==null?void 0:n.notebooks.find(x=>x.name===e).value:"",children:[Q.jsx(Zs,{disabled:!0,value:"",children:Q.jsx("em",{children:i("hit.notebook.select")})}),n==null?void 0:n.notebooks.sort(ySe("detection")).map(x=>Q.jsx(Zs,{value:x.value,children:Q.jsxs(rt,{direction:"row",sx:{width:"100%"},children:[x.name,x.detection&&Q.jsxs(Q.Fragment,{children:[Q.jsx(ai,{flex:1}),Q.jsx(xs,{label:x.detection,size:"small"})]})]})},x.value))]}),Q.jsx(so,{variant:"outlined",disabled:f.name===""||c.length===0,color:"success",onClick:()=>_(),children:i("hit.notebook.goTo")})]})]})})}),Q.jsx(b4,{variant:"elevation",onClick:b,sx:[C=>({cursor:"pointer",backgroundColor:"transparent",transition:C.transitions.create(["border-color"]),"&:hover":{borderColor:"primary.main"}}),{border:"thin solid",borderColor:"transparent"}],children:Q.jsxs(rt,{direction:"row",p:1,spacing:1,alignItems:"center",children:[Q.jsx(Yy,{variant:"rounded",src:"/images/jupyter_notebook_file_icon.png",sx:[C=>({width:C.spacing(3),height:C.spacing(3),"& img":{objectFit:"contain"}})],children:"jupyter_notebook_file_icon.png"}),i("hit.notebook.tooltip")]})})]})})},cce=F.memo(EEt),kEt=({analytic:n,setAnalytic:e})=>{var h,d;const{t}=ln(),{dispatchApi:i}=zs(),{user:r}=ya(),[s,a]=F.useState(!1),[o,l]=F.useState({name:"",link:"",detection:""}),c=F.useCallback(async()=>{a(!0);try{const f=await i(Sn.analytic.notebooks.post(n.analytic_id,{...o,value:o.link}),{showError:!0,throwError:!1,logError:!1});f&&(l({name:"",link:"",detection:""}),e(f))}finally{a(!1)}},[n,i,o,e]),u=F.useCallback(async f=>{await i(Sn.analytic.notebooks.del(n.analytic_id,[f])),e({...n,notebooks:n.notebooks.filter(p=>p.id!==f)})},[n,i,e]);return Q.jsxs(rt,{direction:"column",py:2,spacing:1,children:[Q.jsx(ai,{sx:{flexGrow:1},children:Q.jsxs(Nr,{container:!0,spacing:1,children:[Q.jsx(Nr,{item:!0,xs:6,md:2,children:Q.jsxs(su,{fullWidth:!0,children:[Q.jsx(_m,{id:"select-label",children:"Detection"}),Q.jsxs(R1,{labelId:"select-label",label:"Detection",value:o.detection,onChange:f=>{l({...o,detection:f.target.value})},startAdornment:Q.jsx(Jf,{position:"start",children:Q.jsx(s$e,{})}),children:[Q.jsx(Zs,{value:"",children:t("analytic.notebook.dropdown.none")}),(h=n==null?void 0:n.detections)==null?void 0:h.map(f=>Q.jsx(Zs,{value:f,children:f},f))]})]})}),Q.jsx(Nr,{item:!0,xs:6,md:2,children:Q.jsx(Ar,{fullWidth:!0,label:t("analytic.notebook.name"),value:o.name,onChange:f=>{l({...o,name:f.currentTarget.value})},InputProps:{startAdornment:Q.jsx(Jf,{position:"start",children:Q.jsx(o$e,{})})}})}),Q.jsx(Nr,{item:!0,xs:12,md:8,children:Q.jsxs(ai,{sx:{display:"flex",alignItems:"center"},children:[Q.jsx(Ar,{fullWidth:!0,label:t("analytic.notebook.link"),value:o.link,onChange:f=>{l({...o,link:f.currentTarget.value})},InputProps:{startAdornment:Q.jsx(Jf,{position:"start",children:Q.jsx(a$e,{})})}}),Q.jsx(Ei,{disabled:!o.link||!o.name,onClick:()=>!s&&c(),children:s?Q.jsx(_a,{}):Q.jsx(U2,{})})]})})]})}),Q.jsx(is,{orientation:"horizontal",flexItem:!0}),(d=n==null?void 0:n.notebooks)==null?void 0:d.sort(ySe("detection")).map(f=>{var p;return Q.jsx(Wi,{variant:"outlined",sx:{p:1,mb:1},children:Q.jsxs(rt,{direction:"row",alignItems:"center",spacing:1,children:[Q.jsx(zc,{sx:{width:24,height:24,marginRight:"8px !important",marginLeft:"8px !important"},userId:f.user}),Q.jsxs(rt,{children:[Q.jsx(rt,{direction:"row",alignItems:"center",spacing:1,children:Q.jsx(mt,{variant:"body1",children:f.name})}),Q.jsx(mt,{variant:"caption",children:Q.jsx("code",{children:f.value})})]}),Q.jsx(ku,{}),Q.jsx(mt,{variant:"caption",children:f.detection??""}),Q.jsx(cce,{analytic:n,selectedNotebook:f.name}),((f==null?void 0:f.user)===r.username||((p=r.roles)==null?void 0:p.includes("admin")))&&Q.jsx(Jn,{title:"Remove",children:Q.jsx(Ei,{onClick:()=>u(f.id),children:Q.jsx(Gh,{})})})]})},f.id)})]})};/*!
591
591
  * @kurkle/color v0.3.4
592
592
  * https://github.com/kurkle/color#readme
593
593
  * (c) 2024 Jukka Kurkela
@@ -3341,22 +3341,22 @@ ${e.toString()}`}}class eV{constructor(e=new bD,t=!1,i,r=Ksn){var s;this._servic
3341
3341
  * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
3342
3342
  * Released under the MIT license
3343
3343
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
3344
- *-----------------------------------------------------------------------------*/var Yln=Object.defineProperty,Xln=Object.getOwnPropertyDescriptor,Jln=Object.getOwnPropertyNames,ecn=Object.prototype.hasOwnProperty,tcn=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Jln(e))!ecn.call(n,r)&&r!==t&&Yln(n,r,{get:()=>e[r],enumerable:!(i=Xln(e,r))||i.enumerable});return n},ncn=(n,e,t)=>(tcn(n,e,"default"),t),mL={};ncn(mL,jW);var XVe={},yY={},icn=class JVe{static getOrCreate(e){return yY[e]||(yY[e]=new JVe(e)),yY[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((t,i)=>{this._lazyLoadPromiseResolve=t,this._lazyLoadPromiseReject=i})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,XVe[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function Li(n){const e=n.id;XVe[e]=n,mL.languages.register(n);const t=icn.getOrCreate(e);mL.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),mL.languages.onLanguageEncountered(e,async()=>{const i=await t.load();mL.languages.setLanguageConfiguration(e,i.conf)})}Li({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>Ae(()=>import("./abap-DR3EPHcA.js"),[])});Li({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>Ae(()=>import("./apex-CW6wsJgM.js"),[])});Li({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>Ae(()=>import("./azcli-CIONJYq1.js"),[])});Li({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>Ae(()=>import("./bat-C9Lf3IiR.js"),[])});Li({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>Ae(()=>import("./bicep-D-A_iHuq.js"),[])});Li({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>Ae(()=>import("./cameligo-v1zEsXLu.js"),[])});Li({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>Ae(()=>import("./clojure-DgNu_ptH.js"),[])});Li({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>Ae(()=>import("./coffee-DNMvp8RP.js"),[])});Li({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>Ae(()=>import("./cpp-DEDKHd-B.js"),[])});Li({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>Ae(()=>import("./cpp-DEDKHd-B.js"),[])});Li({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>Ae(()=>import("./csharp-BoWmgZhk.js"),[])});Li({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>Ae(()=>import("./csp-BK5qlsQ9.js"),[])});Li({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>Ae(()=>import("./css-D1nB4Vcj.js"),[])});Li({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>Ae(()=>import("./cypher-Bl5_yQjz.js"),[])});Li({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>Ae(()=>import("./dart-BVA93hyX.js"),[])});Li({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>Ae(()=>import("./dockerfile-fYe1jRYc.js"),[])});Li({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>Ae(()=>import("./ecl-Bxo8QmCt.js"),[])});Li({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>Ae(()=>import("./elixir-BbUoe7nZ.js"),[])});Li({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>Ae(()=>import("./flow9-BKFjllYO.js"),[])});Li({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>Ae(()=>import("./fsharp-ETo-tsZt.js"),[])});Li({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>Ae(()=>import("./freemarker2-CwD6ixn2.js"),[]).then(n=>n.TagAutoInterpolationDollar)});Li({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>Ae(()=>import("./freemarker2-CwD6ixn2.js"),[]).then(n=>n.TagAngleInterpolationDollar)});Li({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>Ae(()=>import("./freemarker2-CwD6ixn2.js"),[]).then(n=>n.TagBracketInterpolationDollar)});Li({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>Ae(()=>import("./freemarker2-CwD6ixn2.js"),[]).then(n=>n.TagAngleInterpolationBracket)});Li({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>Ae(()=>import("./freemarker2-CwD6ixn2.js"),[]).then(n=>n.TagBracketInterpolationBracket)});Li({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>Ae(()=>import("./freemarker2-CwD6ixn2.js"),[]).then(n=>n.TagAutoInterpolationDollar)});Li({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>Ae(()=>import("./freemarker2-CwD6ixn2.js"),[]).then(n=>n.TagAutoInterpolationBracket)});Li({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>Ae(()=>import("./go-DzbHtIm4.js"),[])});Li({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>Ae(()=>import("./graphql-k0EsSqLB.js"),[])});Li({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>Ae(()=>import("./handlebars-B7UUNDAM.js"),[])});Li({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>Ae(()=>import("./hcl-Cq9v6if3.js"),[])});Li({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>Ae(()=>import("./html-D5WIHiP4.js"),[])});Li({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>Ae(()=>import("./ini-BscO_0vf.js"),[])});Li({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>Ae(()=>import("./java-CtY9ZHW8.js"),[])});Li({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>Ae(()=>import("./javascript-DHOrgKX5.js"),__vite__mapDeps([140,141]))});Li({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>Ae(()=>import("./julia-DOes61nN.js"),[])});Li({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>Ae(()=>import("./kotlin-DTDxWyre.js"),[])});Li({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>Ae(()=>import("./less-CqJAWV1X.js"),[])});Li({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>Ae(()=>import("./lexon-BXW1vGDt.js"),[])});Li({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>Ae(()=>import("./lua-DLZgaSX1.js"),[])});Li({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>Ae(()=>import("./liquid-D4hD-XBz.js"),[])});Li({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>Ae(()=>import("./m3-CLtYU2dl.js"),[])});Li({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>Ae(()=>import("./markdown-7fQo6M4U.js"),[])});Li({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>Ae(()=>import("./mdx-D6NVpinB.js"),[])});Li({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>Ae(()=>import("./mips-DcG9r2vI.js"),[])});Li({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>Ae(()=>import("./msdax-DN__iVzl.js"),[])});Li({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>Ae(()=>import("./mysql-05d2lfAy.js"),[])});Li({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>Ae(()=>import("./objective-c-B_h_kxCB.js"),[])});Li({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>Ae(()=>import("./pascal-Bc-8SB3K.js"),[])});Li({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>Ae(()=>import("./pascaligo-Dcwo06z5.js"),[])});Li({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>Ae(()=>import("./perl-BnGpdHsN.js"),[])});Li({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>Ae(()=>import("./pgsql-DfVleuq_.js"),[])});Li({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>Ae(()=>import("./php-CH5O-_gG.js"),[])});Li({id:"pla",extensions:[".pla"],loader:()=>Ae(()=>import("./pla-BUVXxyGx.js"),[])});Li({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>Ae(()=>import("./postiats-DSt55phJ.js"),[])});Li({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>Ae(()=>import("./powerquery-2KNS9mh4.js"),[])});Li({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>Ae(()=>import("./powershell-CCS0rx-A.js"),[])});Li({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>Ae(()=>import("./protobuf-5lyCd6Ku.js"),[])});Li({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>Ae(()=>import("./pug-Dg4O54Js.js"),[])});Li({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>Ae(()=>import("./python-BEpwHjuW.js"),[])});Li({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>Ae(()=>import("./qsharp-BHSA_OC9.js"),[])});Li({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>Ae(()=>import("./r-DBvxNhD8.js"),[])});Li({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>Ae(()=>import("./razor-COaKzAih.js"),[])});Li({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>Ae(()=>import("./redis-mBNZiS5I.js"),[])});Li({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>Ae(()=>import("./redshift-gtd9hS2x.js"),[])});Li({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>Ae(()=>import("./restructuredtext-45Xf76JB.js"),[])});Li({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>Ae(()=>import("./ruby-CEgcCkh9.js"),[])});Li({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>Ae(()=>import("./rust-BChN5uNh.js"),[])});Li({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>Ae(()=>import("./sb-5vPrUWN-.js"),[])});Li({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>Ae(()=>import("./scala-BQOorN7X.js"),[])});Li({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>Ae(()=>import("./scheme-DkJ87xtR.js"),[])});Li({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>Ae(()=>import("./scss-CpPOP9XS.js"),[])});Li({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>Ae(()=>import("./shell-BHhUv290.js"),[])});Li({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>Ae(()=>import("./solidity-BFcLIl1x.js"),[])});Li({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>Ae(()=>import("./sophia-z0tjJxhY.js"),[])});Li({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>Ae(()=>import("./sparql-BTJymgeb.js"),[])});Li({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>Ae(()=>import("./sql-BFyYaP5s.js"),[])});Li({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>Ae(()=>import("./st-DZS1F9ME.js"),[])});Li({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>Ae(()=>import("./swift-BwlyOzQq.js"),[])});Li({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>Ae(()=>import("./systemverilog-DJsb8r0W.js"),[])});Li({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>Ae(()=>import("./systemverilog-DJsb8r0W.js"),[])});Li({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>Ae(()=>import("./tcl-CjHYkh5E.js"),[])});Li({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>Ae(()=>import("./twig-CmYTg8Iu.js"),[])});Li({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>Ae(()=>import("./typescript-DgKm9t07.js"),[])});Li({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>Ae(()=>import("./typespec-Dwv00aWl.js"),[])});Li({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>Ae(()=>import("./vb-BjPEumh4.js"),[])});Li({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>Ae(()=>import("./wgsl-Bp8RP3jd.js"),[])});Li({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>Ae(()=>import("./xml-BBqGkZMk.js"),[])});Li({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>Ae(()=>import("./yaml-C8j_iwGJ.js"),[])});/*!-----------------------------------------------------------------------------
3344
+ *-----------------------------------------------------------------------------*/var Yln=Object.defineProperty,Xln=Object.getOwnPropertyDescriptor,Jln=Object.getOwnPropertyNames,ecn=Object.prototype.hasOwnProperty,tcn=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Jln(e))!ecn.call(n,r)&&r!==t&&Yln(n,r,{get:()=>e[r],enumerable:!(i=Xln(e,r))||i.enumerable});return n},ncn=(n,e,t)=>(tcn(n,e,"default"),t),mL={};ncn(mL,jW);var XVe={},yY={},icn=class JVe{static getOrCreate(e){return yY[e]||(yY[e]=new JVe(e)),yY[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((t,i)=>{this._lazyLoadPromiseResolve=t,this._lazyLoadPromiseReject=i})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,XVe[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function Li(n){const e=n.id;XVe[e]=n,mL.languages.register(n);const t=icn.getOrCreate(e);mL.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),mL.languages.onLanguageEncountered(e,async()=>{const i=await t.load();mL.languages.setLanguageConfiguration(e,i.conf)})}Li({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>Ae(()=>import("./abap-DR3EPHcA.js"),[])});Li({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>Ae(()=>import("./apex-CW6wsJgM.js"),[])});Li({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>Ae(()=>import("./azcli-CIONJYq1.js"),[])});Li({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>Ae(()=>import("./bat-C9Lf3IiR.js"),[])});Li({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>Ae(()=>import("./bicep-D-A_iHuq.js"),[])});Li({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>Ae(()=>import("./cameligo-v1zEsXLu.js"),[])});Li({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>Ae(()=>import("./clojure-DgNu_ptH.js"),[])});Li({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>Ae(()=>import("./coffee-DNMvp8RP.js"),[])});Li({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>Ae(()=>import("./cpp-DEDKHd-B.js"),[])});Li({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>Ae(()=>import("./cpp-DEDKHd-B.js"),[])});Li({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>Ae(()=>import("./csharp-BoWmgZhk.js"),[])});Li({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>Ae(()=>import("./csp-BK5qlsQ9.js"),[])});Li({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>Ae(()=>import("./css-D1nB4Vcj.js"),[])});Li({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>Ae(()=>import("./cypher-Bl5_yQjz.js"),[])});Li({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>Ae(()=>import("./dart-BVA93hyX.js"),[])});Li({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>Ae(()=>import("./dockerfile-fYe1jRYc.js"),[])});Li({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>Ae(()=>import("./ecl-Bxo8QmCt.js"),[])});Li({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>Ae(()=>import("./elixir-BbUoe7nZ.js"),[])});Li({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>Ae(()=>import("./flow9-BKFjllYO.js"),[])});Li({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>Ae(()=>import("./fsharp-ETo-tsZt.js"),[])});Li({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>Ae(()=>import("./freemarker2-BRaa7f1Q.js"),[]).then(n=>n.TagAutoInterpolationDollar)});Li({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>Ae(()=>import("./freemarker2-BRaa7f1Q.js"),[]).then(n=>n.TagAngleInterpolationDollar)});Li({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>Ae(()=>import("./freemarker2-BRaa7f1Q.js"),[]).then(n=>n.TagBracketInterpolationDollar)});Li({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>Ae(()=>import("./freemarker2-BRaa7f1Q.js"),[]).then(n=>n.TagAngleInterpolationBracket)});Li({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>Ae(()=>import("./freemarker2-BRaa7f1Q.js"),[]).then(n=>n.TagBracketInterpolationBracket)});Li({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>Ae(()=>import("./freemarker2-BRaa7f1Q.js"),[]).then(n=>n.TagAutoInterpolationDollar)});Li({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>Ae(()=>import("./freemarker2-BRaa7f1Q.js"),[]).then(n=>n.TagAutoInterpolationBracket)});Li({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>Ae(()=>import("./go-DzbHtIm4.js"),[])});Li({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>Ae(()=>import("./graphql-k0EsSqLB.js"),[])});Li({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>Ae(()=>import("./handlebars-CYVGF2_K.js"),[])});Li({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>Ae(()=>import("./hcl-Cq9v6if3.js"),[])});Li({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>Ae(()=>import("./html-sSVLAgmR.js"),[])});Li({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>Ae(()=>import("./ini-BscO_0vf.js"),[])});Li({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>Ae(()=>import("./java-CtY9ZHW8.js"),[])});Li({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>Ae(()=>import("./javascript-Br0LiqtA.js"),__vite__mapDeps([140,141]))});Li({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>Ae(()=>import("./julia-DOes61nN.js"),[])});Li({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>Ae(()=>import("./kotlin-DTDxWyre.js"),[])});Li({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>Ae(()=>import("./less-CqJAWV1X.js"),[])});Li({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>Ae(()=>import("./lexon-BXW1vGDt.js"),[])});Li({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>Ae(()=>import("./lua-DLZgaSX1.js"),[])});Li({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>Ae(()=>import("./liquid-BdCB7FYI.js"),[])});Li({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>Ae(()=>import("./m3-CLtYU2dl.js"),[])});Li({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>Ae(()=>import("./markdown-7fQo6M4U.js"),[])});Li({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>Ae(()=>import("./mdx-D5QtPHo7.js"),[])});Li({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>Ae(()=>import("./mips-DcG9r2vI.js"),[])});Li({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>Ae(()=>import("./msdax-DN__iVzl.js"),[])});Li({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>Ae(()=>import("./mysql-05d2lfAy.js"),[])});Li({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>Ae(()=>import("./objective-c-B_h_kxCB.js"),[])});Li({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>Ae(()=>import("./pascal-Bc-8SB3K.js"),[])});Li({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>Ae(()=>import("./pascaligo-Dcwo06z5.js"),[])});Li({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>Ae(()=>import("./perl-BnGpdHsN.js"),[])});Li({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>Ae(()=>import("./pgsql-DfVleuq_.js"),[])});Li({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>Ae(()=>import("./php-CH5O-_gG.js"),[])});Li({id:"pla",extensions:[".pla"],loader:()=>Ae(()=>import("./pla-BUVXxyGx.js"),[])});Li({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>Ae(()=>import("./postiats-DSt55phJ.js"),[])});Li({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>Ae(()=>import("./powerquery-2KNS9mh4.js"),[])});Li({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>Ae(()=>import("./powershell-CCS0rx-A.js"),[])});Li({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>Ae(()=>import("./protobuf-5lyCd6Ku.js"),[])});Li({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>Ae(()=>import("./pug-Dg4O54Js.js"),[])});Li({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>Ae(()=>import("./python-D7SSynp9.js"),[])});Li({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>Ae(()=>import("./qsharp-BHSA_OC9.js"),[])});Li({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>Ae(()=>import("./r-DBvxNhD8.js"),[])});Li({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>Ae(()=>import("./razor-BGJSc0Tr.js"),[])});Li({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>Ae(()=>import("./redis-mBNZiS5I.js"),[])});Li({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>Ae(()=>import("./redshift-gtd9hS2x.js"),[])});Li({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>Ae(()=>import("./restructuredtext-45Xf76JB.js"),[])});Li({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>Ae(()=>import("./ruby-CEgcCkh9.js"),[])});Li({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>Ae(()=>import("./rust-BChN5uNh.js"),[])});Li({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>Ae(()=>import("./sb-5vPrUWN-.js"),[])});Li({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>Ae(()=>import("./scala-BQOorN7X.js"),[])});Li({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>Ae(()=>import("./scheme-DkJ87xtR.js"),[])});Li({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>Ae(()=>import("./scss-CpPOP9XS.js"),[])});Li({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>Ae(()=>import("./shell-BHhUv290.js"),[])});Li({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>Ae(()=>import("./solidity-BFcLIl1x.js"),[])});Li({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>Ae(()=>import("./sophia-z0tjJxhY.js"),[])});Li({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>Ae(()=>import("./sparql-BTJymgeb.js"),[])});Li({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>Ae(()=>import("./sql-BFyYaP5s.js"),[])});Li({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>Ae(()=>import("./st-DZS1F9ME.js"),[])});Li({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>Ae(()=>import("./swift-BwlyOzQq.js"),[])});Li({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>Ae(()=>import("./systemverilog-DJsb8r0W.js"),[])});Li({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>Ae(()=>import("./systemverilog-DJsb8r0W.js"),[])});Li({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>Ae(()=>import("./tcl-CjHYkh5E.js"),[])});Li({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>Ae(()=>import("./twig-CmYTg8Iu.js"),[])});Li({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>Ae(()=>import("./typescript-0ftPtREK.js"),[])});Li({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>Ae(()=>import("./typespec-Dwv00aWl.js"),[])});Li({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>Ae(()=>import("./vb-BjPEumh4.js"),[])});Li({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>Ae(()=>import("./wgsl-Bp8RP3jd.js"),[])});Li({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>Ae(()=>import("./xml-Bac-zZiz.js"),[])});Li({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>Ae(()=>import("./yaml-BxI0F9PE.js"),[])});/*!-----------------------------------------------------------------------------
3345
3345
  * Copyright (c) Microsoft Corporation. All rights reserved.
3346
3346
  * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
3347
3347
  * Released under the MIT license
3348
3348
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
3349
- *-----------------------------------------------------------------------------*/var rcn=Object.defineProperty,scn=Object.getOwnPropertyDescriptor,ocn=Object.getOwnPropertyNames,acn=Object.prototype.hasOwnProperty,lcn=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of ocn(e))!acn.call(n,r)&&r!==t&&rcn(n,r,{get:()=>e[r],enumerable:!(i=scn(e,r))||i.enumerable});return n},ccn=(n,e,t)=>(lcn(n,e,"default"),t),vQ={};ccn(vQ,jW);var yhe=class{constructor(e,t,i){this._onDidChange=new vQ.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},whe={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},Che={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},eje=new yhe("css",whe,Che),tje=new yhe("scss",whe,Che),nje=new yhe("less",whe,Che);vQ.languages.css={cssDefaults:eje,lessDefaults:nje,scssDefaults:tje};function Qhe(){return Ae(()=>import("./cssMode-BtnBbnNh.js"),[])}vQ.languages.onLanguage("less",()=>{Qhe().then(n=>n.setupMode(nje))});vQ.languages.onLanguage("scss",()=>{Qhe().then(n=>n.setupMode(tje))});vQ.languages.onLanguage("css",()=>{Qhe().then(n=>n.setupMode(eje))});/*!-----------------------------------------------------------------------------
3349
+ *-----------------------------------------------------------------------------*/var rcn=Object.defineProperty,scn=Object.getOwnPropertyDescriptor,ocn=Object.getOwnPropertyNames,acn=Object.prototype.hasOwnProperty,lcn=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of ocn(e))!acn.call(n,r)&&r!==t&&rcn(n,r,{get:()=>e[r],enumerable:!(i=scn(e,r))||i.enumerable});return n},ccn=(n,e,t)=>(lcn(n,e,"default"),t),vQ={};ccn(vQ,jW);var yhe=class{constructor(e,t,i){this._onDidChange=new vQ.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},whe={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},Che={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},eje=new yhe("css",whe,Che),tje=new yhe("scss",whe,Che),nje=new yhe("less",whe,Che);vQ.languages.css={cssDefaults:eje,lessDefaults:nje,scssDefaults:tje};function Qhe(){return Ae(()=>import("./cssMode-DrkEOKra.js"),[])}vQ.languages.onLanguage("less",()=>{Qhe().then(n=>n.setupMode(nje))});vQ.languages.onLanguage("scss",()=>{Qhe().then(n=>n.setupMode(tje))});vQ.languages.onLanguage("css",()=>{Qhe().then(n=>n.setupMode(eje))});/*!-----------------------------------------------------------------------------
3350
3350
  * Copyright (c) Microsoft Corporation. All rights reserved.
3351
3351
  * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
3352
3352
  * Released under the MIT license
3353
3353
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
3354
- *-----------------------------------------------------------------------------*/var ucn=Object.defineProperty,dcn=Object.getOwnPropertyDescriptor,hcn=Object.getOwnPropertyNames,fcn=Object.prototype.hasOwnProperty,pcn=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of hcn(e))!fcn.call(n,r)&&r!==t&&ucn(n,r,{get:()=>e[r],enumerable:!(i=dcn(e,r))||i.enumerable});return n},gcn=(n,e,t)=>(pcn(n,e,"default"),t),zW={};gcn(zW,jW);var mcn=class{constructor(e,t,i){this._onDidChange=new zW.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},Tcn={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},WW={format:Tcn,suggest:{},data:{useDefaultDataProvider:!0}};function UW(n){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:n===QE,documentFormattingEdits:n===QE,documentRangeFormattingEdits:n===QE}}var QE="html",Gbe="handlebars",Kbe="razor",ije=$W(QE,WW,UW(QE)),bcn=ije.defaults,rje=$W(Gbe,WW,UW(Gbe)),_cn=rje.defaults,sje=$W(Kbe,WW,UW(Kbe)),vcn=sje.defaults;zW.languages.html={htmlDefaults:bcn,razorDefaults:vcn,handlebarDefaults:_cn,htmlLanguageService:ije,handlebarLanguageService:rje,razorLanguageService:sje,registerHTMLLanguageService:$W};function ycn(){return Ae(()=>import("./htmlMode-DEpdNVPw.js"),[])}function $W(n,e=WW,t=UW(n)){const i=new mcn(n,e,t);let r;const s=zW.languages.onLanguage(n,async()=>{r=(await ycn()).setupMode(i)});return{defaults:i,dispose(){s.dispose(),r==null||r.dispose(),r=void 0}}}var wcn=class{constructor(e,t,i){this._onDidChange=new vhe,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},Ccn={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},Qcn={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},oje=new wcn("json",Ccn,Qcn),xcn=()=>aje().then(n=>n.getWorker());DD.json={jsonDefaults:oje,getWorker:xcn};function aje(){return Ae(()=>import("./jsonMode-BdHvYBEq.js"),[])}DD.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});DD.onLanguage("json",()=>{aje().then(n=>n.setupMode(oje))});/*!-----------------------------------------------------------------------------
3354
+ *-----------------------------------------------------------------------------*/var ucn=Object.defineProperty,dcn=Object.getOwnPropertyDescriptor,hcn=Object.getOwnPropertyNames,fcn=Object.prototype.hasOwnProperty,pcn=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of hcn(e))!fcn.call(n,r)&&r!==t&&ucn(n,r,{get:()=>e[r],enumerable:!(i=dcn(e,r))||i.enumerable});return n},gcn=(n,e,t)=>(pcn(n,e,"default"),t),zW={};gcn(zW,jW);var mcn=class{constructor(e,t,i){this._onDidChange=new zW.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},Tcn={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},WW={format:Tcn,suggest:{},data:{useDefaultDataProvider:!0}};function UW(n){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:n===QE,documentFormattingEdits:n===QE,documentRangeFormattingEdits:n===QE}}var QE="html",Gbe="handlebars",Kbe="razor",ije=$W(QE,WW,UW(QE)),bcn=ije.defaults,rje=$W(Gbe,WW,UW(Gbe)),_cn=rje.defaults,sje=$W(Kbe,WW,UW(Kbe)),vcn=sje.defaults;zW.languages.html={htmlDefaults:bcn,razorDefaults:vcn,handlebarDefaults:_cn,htmlLanguageService:ije,handlebarLanguageService:rje,razorLanguageService:sje,registerHTMLLanguageService:$W};function ycn(){return Ae(()=>import("./htmlMode-1dVkh-tv.js"),[])}function $W(n,e=WW,t=UW(n)){const i=new mcn(n,e,t);let r;const s=zW.languages.onLanguage(n,async()=>{r=(await ycn()).setupMode(i)});return{defaults:i,dispose(){s.dispose(),r==null||r.dispose(),r=void 0}}}var wcn=class{constructor(e,t,i){this._onDidChange=new vhe,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},Ccn={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},Qcn={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},oje=new wcn("json",Ccn,Qcn),xcn=()=>aje().then(n=>n.getWorker());DD.json={jsonDefaults:oje,getWorker:xcn};function aje(){return Ae(()=>import("./jsonMode-B7JNisD6.js"),[])}DD.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});DD.onLanguage("json",()=>{aje().then(n=>n.setupMode(oje))});/*!-----------------------------------------------------------------------------
3355
3355
  * Copyright (c) Microsoft Corporation. All rights reserved.
3356
3356
  * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
3357
3357
  * Released under the MIT license
3358
3358
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
3359
- *-----------------------------------------------------------------------------*/var Scn=Object.defineProperty,Lcn=Object.getOwnPropertyDescriptor,Ecn=Object.getOwnPropertyNames,kcn=Object.prototype.hasOwnProperty,Acn=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Ecn(e))!kcn.call(n,r)&&r!==t&&Scn(n,r,{get:()=>e[r],enumerable:!(i=Lcn(e,r))||i.enumerable});return n},Icn=(n,e,t)=>(Acn(n,e,"default"),t),Dcn="5.0.2",cC={};Icn(cC,jW);var lje=(n=>(n[n.None=0]="None",n[n.CommonJS=1]="CommonJS",n[n.AMD=2]="AMD",n[n.UMD=3]="UMD",n[n.System=4]="System",n[n.ES2015=5]="ES2015",n[n.ESNext=99]="ESNext",n))(lje||{}),cje=(n=>(n[n.None=0]="None",n[n.Preserve=1]="Preserve",n[n.React=2]="React",n[n.ReactNative=3]="ReactNative",n[n.ReactJSX=4]="ReactJSX",n[n.ReactJSXDev=5]="ReactJSXDev",n))(cje||{}),uje=(n=>(n[n.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",n[n.LineFeed=1]="LineFeed",n))(uje||{}),dje=(n=>(n[n.ES3=0]="ES3",n[n.ES5=1]="ES5",n[n.ES2015=2]="ES2015",n[n.ES2016=3]="ES2016",n[n.ES2017=4]="ES2017",n[n.ES2018=5]="ES2018",n[n.ES2019=6]="ES2019",n[n.ES2020=7]="ES2020",n[n.ESNext=99]="ESNext",n[n.JSON=100]="JSON",n[n.Latest=99]="Latest",n))(dje||{}),hje=(n=>(n[n.Classic=1]="Classic",n[n.NodeJs=2]="NodeJs",n))(hje||{}),fje=class{constructor(n,e,t,i,r){this._onDidChange=new cC.Emitter,this._onDidExtraLibsChange=new cC.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(n),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this.setModeConfiguration(r),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(n,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===n)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:n,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let r=this._extraLibs[t];r&&r.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(n){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),n&&n.length>0)for(const e of n){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let r=1;this._removedExtraLibs[t]&&(r=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:r}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(n){this._compilerOptions=n||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(n){this._diagnosticsOptions=n||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(n){this._workerOptions=n||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(n){this._inlayHintsOptions=n||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(n){}setEagerModelSync(n){this._eagerModelSync=n}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(n){this._modeConfiguration=n||Object.create(null),this._onDidChange.fire(void 0)}},Mcn=Dcn,pje={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},gje=new fje({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},pje),mje=new fje({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},pje),Ocn=()=>qW().then(n=>n.getTypeScriptWorker()),Ncn=()=>qW().then(n=>n.getJavaScriptWorker());cC.languages.typescript={ModuleKind:lje,JsxEmit:cje,NewLineKind:uje,ScriptTarget:dje,ModuleResolutionKind:hje,typescriptVersion:Mcn,typescriptDefaults:gje,javascriptDefaults:mje,getTypeScriptWorker:Ocn,getJavaScriptWorker:Ncn};function qW(){return Ae(()=>import("./tsMode-DjkyL1AP.js"),[])}cC.languages.onLanguage("typescript",()=>qW().then(n=>n.setupTypeScript(gje)));cC.languages.onLanguage("javascript",()=>qW().then(n=>n.setupJavaScript(mje)));class Rcn extends Dd{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:Ji("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:pn.map,toggled:Bt.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:Bt.has("isInDiffEditor"),menu:{when:Bt.has("isInDiffEditor"),id:Te.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(Pr),r=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",r)}}class Tje extends Dd{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:Ji("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:Bt.has("isInDiffEditor")})}run(e,...t){const i=e.get(Pr),r=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",r)}}class bje extends Dd{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:Ji("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:Bt.has("isInDiffEditor")})}run(e,...t){const i=e.get(Pr),r=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",r)}}const MD=Ji("diffEditor","Diff Editor");class Pcn extends Vp{constructor(){super({id:"diffEditor.switchSide",title:Ji("switchSide","Switch Side"),icon:pn.arrowSwap,precondition:Bt.has("isInDiffEditor"),f1:!0,category:MD})}runEditorCommand(e,t,i){const r=wQ(e);if(r instanceof jm){if(i&&i.dryRun)return{destinationSelection:r.mapToOtherSide().destinationSelection};r.switchSide()}}}class Hcn extends Vp{constructor(){super({id:"diffEditor.exitCompareMove",title:Ji("exitCompareMove","Exit Compare Move"),icon:pn.close,precondition:ke.comparingMovedCode,f1:!1,category:MD,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const r=wQ(e);r instanceof jm&&r.exitCompareMove()}}class Fcn extends Vp{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:Ji("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:pn.fold,precondition:Bt.has("isInDiffEditor"),f1:!0,category:MD})}runEditorCommand(e,t,...i){const r=wQ(e);r instanceof jm&&r.collapseAllUnchangedRegions()}}class Bcn extends Vp{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:Ji("showAllUnchangedRegions","Show All Unchanged Regions"),icon:pn.unfold,precondition:Bt.has("isInDiffEditor"),f1:!0,category:MD})}runEditorCommand(e,t,...i){const r=wQ(e);r instanceof jm&&r.showAllUnchangedRegions()}}class Cre extends Dd{constructor(){super({id:"diffEditor.revert",title:Ji("revert","Revert"),f1:!1,category:MD})}run(e,t){var i;const r=Vcn(e,t.originalUri,t.modifiedUri);r instanceof jm&&r.revertRangeMappings((i=t.mapping.innerChanges)!==null&&i!==void 0?i:[])}}const _je=Ji("accessibleDiffViewer","Accessible Diff Viewer");class yQ extends Dd{constructor(){super({id:yQ.id,title:Ji("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:_je,precondition:Bt.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){const t=wQ(e);t==null||t.accessibleDiffViewerNext()}}yQ.id="editor.action.accessibleDiffViewer.next";class OD extends Dd{constructor(){super({id:OD.id,title:Ji("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:_je,precondition:Bt.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){const t=wQ(e);t==null||t.accessibleDiffViewerPrev()}}OD.id="editor.action.accessibleDiffViewer.prev";function Vcn(n,e,t){return n.get(vs).listDiffEditors().find(s=>{var a,o;const l=s.getModifiedEditor(),c=s.getOriginalEditor();return l&&((a=l.getModel())===null||a===void 0?void 0:a.uri.toString())===t.toString()&&c&&((o=c.getModel())===null||o===void 0?void 0:o.uri.toString())===e.toString()})||null}function wQ(n){const t=n.get(vs).listDiffEditors(),i=ou();if(i)for(const r of t){const s=r.getContainerDomNode();if(jcn(s,i))return r}return null}function jcn(n,e){let t=e;for(;t;){if(t===n)return!0;t=t.parentElement}return!1}ko(Rcn);ko(Tje);ko(bje);tc.appendMenuItem(Te.EditorTitle,{command:{id:new bje().desc.id,title:P("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:Bt.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:Bt.has("isInDiffEditor")},order:11,group:"1_diff",when:Bt.and(ke.diffEditorRenderSideBySideInlineBreakpointReached,Bt.has("isInDiffEditor"))});tc.appendMenuItem(Te.EditorTitle,{command:{id:new Tje().desc.id,title:P("showMoves","Show Moved Code Blocks"),icon:pn.move,toggled:cQ.create("config.diffEditor.experimental.showMoves",!0),precondition:Bt.has("isInDiffEditor")},order:10,group:"1_diff",when:Bt.has("isInDiffEditor")});ko(Cre);for(const n of[{icon:pn.arrowRight,key:ke.diffEditorInlineMode.toNegated()},{icon:pn.discard,key:ke.diffEditorInlineMode}])tc.appendMenuItem(Te.DiffEditorHunkToolbar,{command:{id:new Cre().desc.id,title:P("revertHunk","Revert Block"),icon:n.icon},when:Bt.and(ke.diffEditorModifiedWritable,n.key),order:5,group:"primary"}),tc.appendMenuItem(Te.DiffEditorSelectionToolbar,{command:{id:new Cre().desc.id,title:P("revertSelection","Revert Selection"),icon:n.icon},when:Bt.and(ke.diffEditorModifiedWritable,n.key),order:5,group:"primary"});ko(Pcn);ko(Hcn);ko(Fcn);ko(Bcn);tc.appendMenuItem(Te.EditorTitle,{command:{id:yQ.id,title:P("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:Bt.has("isInDiffEditor")},order:10,group:"2_diff",when:Bt.and(ke.accessibleDiffViewerVisible.negate(),Bt.has("isInDiffEditor"))});ss.registerCommandAlias("editor.action.diffReview.next",yQ.id);ko(yQ);ss.registerCommandAlias("editor.action.diffReview.prev",OD.id);ko(OD);var zcn=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},Wcn=function(n,e){return function(t,i){e(t,i,n)}},Qre;const ZW=new An("selectionAnchorSet",!1);let zm=Qre=class{static get(e){return e.getContribution(Qre.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=ZW.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(ei.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new wu().appendText(P("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),ph(P("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(ei.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};zm.ID="editor.contrib.selectionAnchorController";zm=Qre=zcn([Wcn(1,Bi)],zm);class Ucn extends Bn{constructor(){super({id:"editor.action.setSelectionAnchor",label:P("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:ke.editorTextFocus,primary:Rl(2089,2080),weight:100}})}async run(e,t){var i;(i=zm.get(t))===null||i===void 0||i.setSelectionAnchor()}}class $cn extends Bn{constructor(){super({id:"editor.action.goToSelectionAnchor",label:P("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:ZW})}async run(e,t){var i;(i=zm.get(t))===null||i===void 0||i.goToSelectionAnchor()}}class qcn extends Bn{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:P("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:ZW,kbOpts:{kbExpr:ke.editorTextFocus,primary:Rl(2089,2089),weight:100}})}async run(e,t){var i;(i=zm.get(t))===null||i===void 0||i.selectFromAnchorToCursor()}}class Zcn extends Bn{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:P("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:ZW,kbOpts:{kbExpr:ke.editorTextFocus,primary:9,weight:100}})}async run(e,t){var i;(i=zm.get(t))===null||i===void 0||i.cancelSelectionAnchor()}}Ls(zm.ID,zm,4);rn(Ucn);rn($cn);rn(qcn);rn(Zcn);const Gcn=Oe("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},P("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Kcn extends Bn{constructor(){super({id:"editor.action.jumpToBracket",label:P("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:ke.editorTextFocus,primary:3165,weight:100}})}run(e,t){var i;(i=$0.get(t))===null||i===void 0||i.jumpToBracket()}}class Ycn extends Bn{constructor(){super({id:"editor.action.selectToBracket",label:P("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:Ji("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var r;let s=!0;i&&i.selectBrackets===!1&&(s=!1),(r=$0.get(t))===null||r===void 0||r.selectToBracket(s)}}class Xcn extends Bn{constructor(){super({id:"editor.action.removeBrackets",label:P("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:ke.editorTextFocus,primary:2561,weight:100}})}run(e,t){var i;(i=$0.get(t))===null||i===void 0||i.removeBrackets(this.id)}}class Jcn{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class $0 extends ct{static get(e){return e.getContribution($0.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new oo(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const r=i.getStartPosition(),s=e.bracketPairs.matchBracket(r);let a=null;if(s)s[0].containsPosition(r)&&!s[1].containsPosition(r)?a=s[1].getStartPosition():s[1].containsPosition(r)&&(a=s[0].getStartPosition());else{const o=e.bracketPairs.findEnclosingBrackets(r);if(o)a=o[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(r);l&&l.range&&(a=l.range.getStartPosition())}}return a?new ei(a.lineNumber,a.column,a.lineNumber,a.column):new ei(r.lineNumber,r.column,r.lineNumber,r.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(r=>{const s=r.getStartPosition();let a=t.bracketPairs.matchBracket(s);if(!a&&(a=t.bracketPairs.findEnclosingBrackets(s),!a)){const c=t.bracketPairs.findNextBracket(s);c&&c.range&&(a=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let o=null,l=null;if(a){a.sort(pe.compareRangesUsingStarts);const[c,u]=a;if(o=e?c.getStartPosition():c.getEndPosition(),l=e?u.getEndPosition():u.getStartPosition(),u.containsPosition(s)){const h=o;o=l,l=h}}o&&l&&i.push(new ei(o.lineNumber,o.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach(i=>{const r=i.getPosition();let s=t.bracketPairs.matchBracket(r);s||(s=t.bracketPairs.findEnclosingBrackets(r)),s&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:s[0],text:""},{range:s[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const r=i.brackets;r&&(e[t++]={range:r[0],options:i.options},e[t++]={range:r[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let r=[];this._lastVersionId===i&&(r=this._lastBracketsData);const s=[];let a=0;for(let h=0,d=e.length;h<d;h++){const f=e[h];f.isEmpty()&&(s[a++]=f.getStartPosition())}s.length>1&&s.sort(it.compare);const o=[];let l=0,c=0;const u=r.length;for(let h=0,d=s.length;h<d;h++){const f=s[h];for(;c<u&&r[c].position.isBefore(f);)c++;if(c<u&&r[c].position.equals(f))o[l++]=r[c];else{let p=t.bracketPairs.matchBracket(f,20),g=$0._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!p&&this._matchBrackets==="always"&&(p=t.bracketPairs.findEnclosingBrackets(f,20),g=$0._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),o[l++]=new Jcn(f,p,g)}}this._lastBracketsData=o,this._lastVersionId=i}}$0.ID="editor.contrib.bracketMatchingController";$0._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=fr.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:Sa(Gcn),position:$1.Center}});$0._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=fr.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"});Ls($0.ID,$0,1);rn(Ycn);rn(Kcn);rn(Xcn);tc.appendMenuItem(Te.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:P({},"Go to &&Bracket")},order:2});class eun{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,r=this._selection.startColumn,s=this._selection.endColumn;if(!(this._isMovingLeft&&r===1)&&!(!this._isMovingLeft&&s===e.getLineMaxColumn(i)))if(this._isMovingLeft){const a=new pe(i,r-1,i,r),o=e.getValueInRange(a);t.addEditOperation(a,null),t.addEditOperation(new pe(i,s,i,s),o)}else{const a=new pe(i,s,i,s+1),o=e.getValueInRange(a);t.addEditOperation(a,null),t.addEditOperation(new pe(i,r,i,r),o)}}computeCursorState(e,t){return this._isMovingLeft?new ei(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new ei(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class vje extends Bn{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],r=t.getSelections();for(const s of r)i.push(new eun(s,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class tun extends vje{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:P("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:ke.writable})}}class nun extends vje{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:P("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:ke.writable})}}rn(tun);rn(nun);class iun extends Bn{constructor(){super({id:"editor.action.transposeLetters",label:P("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:ke.writable,kbOpts:{kbExpr:ke.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),r=[],s=t.getSelections();for(const a of s){if(!a.isEmpty())continue;const o=a.startLineNumber,l=a.startColumn,c=i.getLineMaxColumn(o);if(o===1&&(l===1||l===2&&c===2))continue;const u=l===c?a.getPosition():$s.rightPosition(i,a.getPosition().lineNumber,a.getPosition().column),h=$s.leftPosition(i,u),d=$s.leftPosition(i,h),f=i.getValueInRange(pe.fromPositions(d,h)),p=i.getValueInRange(pe.fromPositions(h,u)),g=pe.fromPositions(d,u);r.push(new Xc(g,p+f))}r.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop())}}rn(iun);const GW=(function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let n;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?n=crypto.getRandomValues.bind(crypto):n=function(i){for(let r=0;r<i.length;r++)i[r]=Math.floor(Math.random()*256);return i};const e=new Uint8Array(16),t=[];for(let i=0;i<256;i++)t.push(i.toString(16).padStart(2,"0"));return function(){n(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128;let r=0,s="";return s+=t[e[r++]],s+=t[e[r++]],s+=t[e[r++]],s+=t[e[r++]],s+="-",s+=t[e[r++]],s+=t[e[r++]],s+="-",s+=t[e[r++]],s+=t[e[r++]],s+="-",s+=t[e[r++]],s+=t[e[r++]],s+="-",s+=t[e[r++]],s+=t[e[r++]],s+=t[e[r++]],s+=t[e[r++]],s+=t[e[r++]],s+=t[e[r++]],s}})();function xhe(n){return{asString:async()=>n,asFile:()=>{},value:typeof n=="string"?n:void 0}}function run(n,e,t){const i={id:GW(),name:n,uri:e,data:t};return{asString:async()=>"",asFile:()=>i,value:void 0}}class yje{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return rs.some(this,([i,r])=>r.asFile())&&t.push("files"),Cje(uV(e),t)}get(e){var t;return(t=this._entries.get(this.toKey(e)))===null||t===void 0?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return uV(e)}}function uV(n){return n.toLowerCase()}function wje(n,e){return Cje(uV(n),e.map(uV))}function Cje(n,e){if(n==="*/*")return e.length>0;if(e.includes(n))return!0;const t=n.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;const[i,r,s]=t;return s==="*"?e.some(a=>a.startsWith(r+"/")):!1}const KW=Object.freeze({create:n=>Pm(n.map(e=>e.toString())).join(`\r
3359
+ *-----------------------------------------------------------------------------*/var Scn=Object.defineProperty,Lcn=Object.getOwnPropertyDescriptor,Ecn=Object.getOwnPropertyNames,kcn=Object.prototype.hasOwnProperty,Acn=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Ecn(e))!kcn.call(n,r)&&r!==t&&Scn(n,r,{get:()=>e[r],enumerable:!(i=Lcn(e,r))||i.enumerable});return n},Icn=(n,e,t)=>(Acn(n,e,"default"),t),Dcn="5.0.2",cC={};Icn(cC,jW);var lje=(n=>(n[n.None=0]="None",n[n.CommonJS=1]="CommonJS",n[n.AMD=2]="AMD",n[n.UMD=3]="UMD",n[n.System=4]="System",n[n.ES2015=5]="ES2015",n[n.ESNext=99]="ESNext",n))(lje||{}),cje=(n=>(n[n.None=0]="None",n[n.Preserve=1]="Preserve",n[n.React=2]="React",n[n.ReactNative=3]="ReactNative",n[n.ReactJSX=4]="ReactJSX",n[n.ReactJSXDev=5]="ReactJSXDev",n))(cje||{}),uje=(n=>(n[n.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",n[n.LineFeed=1]="LineFeed",n))(uje||{}),dje=(n=>(n[n.ES3=0]="ES3",n[n.ES5=1]="ES5",n[n.ES2015=2]="ES2015",n[n.ES2016=3]="ES2016",n[n.ES2017=4]="ES2017",n[n.ES2018=5]="ES2018",n[n.ES2019=6]="ES2019",n[n.ES2020=7]="ES2020",n[n.ESNext=99]="ESNext",n[n.JSON=100]="JSON",n[n.Latest=99]="Latest",n))(dje||{}),hje=(n=>(n[n.Classic=1]="Classic",n[n.NodeJs=2]="NodeJs",n))(hje||{}),fje=class{constructor(n,e,t,i,r){this._onDidChange=new cC.Emitter,this._onDidExtraLibsChange=new cC.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(n),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this.setModeConfiguration(r),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(n,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===n)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:n,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let r=this._extraLibs[t];r&&r.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(n){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),n&&n.length>0)for(const e of n){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let r=1;this._removedExtraLibs[t]&&(r=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:r}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(n){this._compilerOptions=n||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(n){this._diagnosticsOptions=n||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(n){this._workerOptions=n||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(n){this._inlayHintsOptions=n||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(n){}setEagerModelSync(n){this._eagerModelSync=n}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(n){this._modeConfiguration=n||Object.create(null),this._onDidChange.fire(void 0)}},Mcn=Dcn,pje={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},gje=new fje({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},pje),mje=new fje({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},pje),Ocn=()=>qW().then(n=>n.getTypeScriptWorker()),Ncn=()=>qW().then(n=>n.getJavaScriptWorker());cC.languages.typescript={ModuleKind:lje,JsxEmit:cje,NewLineKind:uje,ScriptTarget:dje,ModuleResolutionKind:hje,typescriptVersion:Mcn,typescriptDefaults:gje,javascriptDefaults:mje,getTypeScriptWorker:Ocn,getJavaScriptWorker:Ncn};function qW(){return Ae(()=>import("./tsMode-BVMxS71B.js"),[])}cC.languages.onLanguage("typescript",()=>qW().then(n=>n.setupTypeScript(gje)));cC.languages.onLanguage("javascript",()=>qW().then(n=>n.setupJavaScript(mje)));class Rcn extends Dd{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:Ji("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:pn.map,toggled:Bt.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:Bt.has("isInDiffEditor"),menu:{when:Bt.has("isInDiffEditor"),id:Te.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(Pr),r=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",r)}}class Tje extends Dd{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:Ji("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:Bt.has("isInDiffEditor")})}run(e,...t){const i=e.get(Pr),r=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",r)}}class bje extends Dd{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:Ji("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:Bt.has("isInDiffEditor")})}run(e,...t){const i=e.get(Pr),r=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",r)}}const MD=Ji("diffEditor","Diff Editor");class Pcn extends Vp{constructor(){super({id:"diffEditor.switchSide",title:Ji("switchSide","Switch Side"),icon:pn.arrowSwap,precondition:Bt.has("isInDiffEditor"),f1:!0,category:MD})}runEditorCommand(e,t,i){const r=wQ(e);if(r instanceof jm){if(i&&i.dryRun)return{destinationSelection:r.mapToOtherSide().destinationSelection};r.switchSide()}}}class Hcn extends Vp{constructor(){super({id:"diffEditor.exitCompareMove",title:Ji("exitCompareMove","Exit Compare Move"),icon:pn.close,precondition:ke.comparingMovedCode,f1:!1,category:MD,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const r=wQ(e);r instanceof jm&&r.exitCompareMove()}}class Fcn extends Vp{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:Ji("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:pn.fold,precondition:Bt.has("isInDiffEditor"),f1:!0,category:MD})}runEditorCommand(e,t,...i){const r=wQ(e);r instanceof jm&&r.collapseAllUnchangedRegions()}}class Bcn extends Vp{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:Ji("showAllUnchangedRegions","Show All Unchanged Regions"),icon:pn.unfold,precondition:Bt.has("isInDiffEditor"),f1:!0,category:MD})}runEditorCommand(e,t,...i){const r=wQ(e);r instanceof jm&&r.showAllUnchangedRegions()}}class Cre extends Dd{constructor(){super({id:"diffEditor.revert",title:Ji("revert","Revert"),f1:!1,category:MD})}run(e,t){var i;const r=Vcn(e,t.originalUri,t.modifiedUri);r instanceof jm&&r.revertRangeMappings((i=t.mapping.innerChanges)!==null&&i!==void 0?i:[])}}const _je=Ji("accessibleDiffViewer","Accessible Diff Viewer");class yQ extends Dd{constructor(){super({id:yQ.id,title:Ji("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:_je,precondition:Bt.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){const t=wQ(e);t==null||t.accessibleDiffViewerNext()}}yQ.id="editor.action.accessibleDiffViewer.next";class OD extends Dd{constructor(){super({id:OD.id,title:Ji("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:_je,precondition:Bt.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){const t=wQ(e);t==null||t.accessibleDiffViewerPrev()}}OD.id="editor.action.accessibleDiffViewer.prev";function Vcn(n,e,t){return n.get(vs).listDiffEditors().find(s=>{var a,o;const l=s.getModifiedEditor(),c=s.getOriginalEditor();return l&&((a=l.getModel())===null||a===void 0?void 0:a.uri.toString())===t.toString()&&c&&((o=c.getModel())===null||o===void 0?void 0:o.uri.toString())===e.toString()})||null}function wQ(n){const t=n.get(vs).listDiffEditors(),i=ou();if(i)for(const r of t){const s=r.getContainerDomNode();if(jcn(s,i))return r}return null}function jcn(n,e){let t=e;for(;t;){if(t===n)return!0;t=t.parentElement}return!1}ko(Rcn);ko(Tje);ko(bje);tc.appendMenuItem(Te.EditorTitle,{command:{id:new bje().desc.id,title:P("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:Bt.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:Bt.has("isInDiffEditor")},order:11,group:"1_diff",when:Bt.and(ke.diffEditorRenderSideBySideInlineBreakpointReached,Bt.has("isInDiffEditor"))});tc.appendMenuItem(Te.EditorTitle,{command:{id:new Tje().desc.id,title:P("showMoves","Show Moved Code Blocks"),icon:pn.move,toggled:cQ.create("config.diffEditor.experimental.showMoves",!0),precondition:Bt.has("isInDiffEditor")},order:10,group:"1_diff",when:Bt.has("isInDiffEditor")});ko(Cre);for(const n of[{icon:pn.arrowRight,key:ke.diffEditorInlineMode.toNegated()},{icon:pn.discard,key:ke.diffEditorInlineMode}])tc.appendMenuItem(Te.DiffEditorHunkToolbar,{command:{id:new Cre().desc.id,title:P("revertHunk","Revert Block"),icon:n.icon},when:Bt.and(ke.diffEditorModifiedWritable,n.key),order:5,group:"primary"}),tc.appendMenuItem(Te.DiffEditorSelectionToolbar,{command:{id:new Cre().desc.id,title:P("revertSelection","Revert Selection"),icon:n.icon},when:Bt.and(ke.diffEditorModifiedWritable,n.key),order:5,group:"primary"});ko(Pcn);ko(Hcn);ko(Fcn);ko(Bcn);tc.appendMenuItem(Te.EditorTitle,{command:{id:yQ.id,title:P("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:Bt.has("isInDiffEditor")},order:10,group:"2_diff",when:Bt.and(ke.accessibleDiffViewerVisible.negate(),Bt.has("isInDiffEditor"))});ss.registerCommandAlias("editor.action.diffReview.next",yQ.id);ko(yQ);ss.registerCommandAlias("editor.action.diffReview.prev",OD.id);ko(OD);var zcn=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},Wcn=function(n,e){return function(t,i){e(t,i,n)}},Qre;const ZW=new An("selectionAnchorSet",!1);let zm=Qre=class{static get(e){return e.getContribution(Qre.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=ZW.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(ei.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new wu().appendText(P("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),ph(P("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(ei.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};zm.ID="editor.contrib.selectionAnchorController";zm=Qre=zcn([Wcn(1,Bi)],zm);class Ucn extends Bn{constructor(){super({id:"editor.action.setSelectionAnchor",label:P("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:ke.editorTextFocus,primary:Rl(2089,2080),weight:100}})}async run(e,t){var i;(i=zm.get(t))===null||i===void 0||i.setSelectionAnchor()}}class $cn extends Bn{constructor(){super({id:"editor.action.goToSelectionAnchor",label:P("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:ZW})}async run(e,t){var i;(i=zm.get(t))===null||i===void 0||i.goToSelectionAnchor()}}class qcn extends Bn{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:P("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:ZW,kbOpts:{kbExpr:ke.editorTextFocus,primary:Rl(2089,2089),weight:100}})}async run(e,t){var i;(i=zm.get(t))===null||i===void 0||i.selectFromAnchorToCursor()}}class Zcn extends Bn{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:P("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:ZW,kbOpts:{kbExpr:ke.editorTextFocus,primary:9,weight:100}})}async run(e,t){var i;(i=zm.get(t))===null||i===void 0||i.cancelSelectionAnchor()}}Ls(zm.ID,zm,4);rn(Ucn);rn($cn);rn(qcn);rn(Zcn);const Gcn=Oe("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},P("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Kcn extends Bn{constructor(){super({id:"editor.action.jumpToBracket",label:P("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:ke.editorTextFocus,primary:3165,weight:100}})}run(e,t){var i;(i=$0.get(t))===null||i===void 0||i.jumpToBracket()}}class Ycn extends Bn{constructor(){super({id:"editor.action.selectToBracket",label:P("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:Ji("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var r;let s=!0;i&&i.selectBrackets===!1&&(s=!1),(r=$0.get(t))===null||r===void 0||r.selectToBracket(s)}}class Xcn extends Bn{constructor(){super({id:"editor.action.removeBrackets",label:P("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:ke.editorTextFocus,primary:2561,weight:100}})}run(e,t){var i;(i=$0.get(t))===null||i===void 0||i.removeBrackets(this.id)}}class Jcn{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class $0 extends ct{static get(e){return e.getContribution($0.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new oo(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const r=i.getStartPosition(),s=e.bracketPairs.matchBracket(r);let a=null;if(s)s[0].containsPosition(r)&&!s[1].containsPosition(r)?a=s[1].getStartPosition():s[1].containsPosition(r)&&(a=s[0].getStartPosition());else{const o=e.bracketPairs.findEnclosingBrackets(r);if(o)a=o[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(r);l&&l.range&&(a=l.range.getStartPosition())}}return a?new ei(a.lineNumber,a.column,a.lineNumber,a.column):new ei(r.lineNumber,r.column,r.lineNumber,r.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(r=>{const s=r.getStartPosition();let a=t.bracketPairs.matchBracket(s);if(!a&&(a=t.bracketPairs.findEnclosingBrackets(s),!a)){const c=t.bracketPairs.findNextBracket(s);c&&c.range&&(a=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let o=null,l=null;if(a){a.sort(pe.compareRangesUsingStarts);const[c,u]=a;if(o=e?c.getStartPosition():c.getEndPosition(),l=e?u.getEndPosition():u.getStartPosition(),u.containsPosition(s)){const h=o;o=l,l=h}}o&&l&&i.push(new ei(o.lineNumber,o.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach(i=>{const r=i.getPosition();let s=t.bracketPairs.matchBracket(r);s||(s=t.bracketPairs.findEnclosingBrackets(r)),s&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:s[0],text:""},{range:s[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const r=i.brackets;r&&(e[t++]={range:r[0],options:i.options},e[t++]={range:r[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let r=[];this._lastVersionId===i&&(r=this._lastBracketsData);const s=[];let a=0;for(let h=0,d=e.length;h<d;h++){const f=e[h];f.isEmpty()&&(s[a++]=f.getStartPosition())}s.length>1&&s.sort(it.compare);const o=[];let l=0,c=0;const u=r.length;for(let h=0,d=s.length;h<d;h++){const f=s[h];for(;c<u&&r[c].position.isBefore(f);)c++;if(c<u&&r[c].position.equals(f))o[l++]=r[c];else{let p=t.bracketPairs.matchBracket(f,20),g=$0._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!p&&this._matchBrackets==="always"&&(p=t.bracketPairs.findEnclosingBrackets(f,20),g=$0._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),o[l++]=new Jcn(f,p,g)}}this._lastBracketsData=o,this._lastVersionId=i}}$0.ID="editor.contrib.bracketMatchingController";$0._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=fr.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:Sa(Gcn),position:$1.Center}});$0._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=fr.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"});Ls($0.ID,$0,1);rn(Ycn);rn(Kcn);rn(Xcn);tc.appendMenuItem(Te.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:P({},"Go to &&Bracket")},order:2});class eun{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,r=this._selection.startColumn,s=this._selection.endColumn;if(!(this._isMovingLeft&&r===1)&&!(!this._isMovingLeft&&s===e.getLineMaxColumn(i)))if(this._isMovingLeft){const a=new pe(i,r-1,i,r),o=e.getValueInRange(a);t.addEditOperation(a,null),t.addEditOperation(new pe(i,s,i,s),o)}else{const a=new pe(i,s,i,s+1),o=e.getValueInRange(a);t.addEditOperation(a,null),t.addEditOperation(new pe(i,r,i,r),o)}}computeCursorState(e,t){return this._isMovingLeft?new ei(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new ei(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class vje extends Bn{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],r=t.getSelections();for(const s of r)i.push(new eun(s,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class tun extends vje{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:P("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:ke.writable})}}class nun extends vje{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:P("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:ke.writable})}}rn(tun);rn(nun);class iun extends Bn{constructor(){super({id:"editor.action.transposeLetters",label:P("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:ke.writable,kbOpts:{kbExpr:ke.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),r=[],s=t.getSelections();for(const a of s){if(!a.isEmpty())continue;const o=a.startLineNumber,l=a.startColumn,c=i.getLineMaxColumn(o);if(o===1&&(l===1||l===2&&c===2))continue;const u=l===c?a.getPosition():$s.rightPosition(i,a.getPosition().lineNumber,a.getPosition().column),h=$s.leftPosition(i,u),d=$s.leftPosition(i,h),f=i.getValueInRange(pe.fromPositions(d,h)),p=i.getValueInRange(pe.fromPositions(h,u)),g=pe.fromPositions(d,u);r.push(new Xc(g,p+f))}r.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop())}}rn(iun);const GW=(function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let n;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?n=crypto.getRandomValues.bind(crypto):n=function(i){for(let r=0;r<i.length;r++)i[r]=Math.floor(Math.random()*256);return i};const e=new Uint8Array(16),t=[];for(let i=0;i<256;i++)t.push(i.toString(16).padStart(2,"0"));return function(){n(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128;let r=0,s="";return s+=t[e[r++]],s+=t[e[r++]],s+=t[e[r++]],s+=t[e[r++]],s+="-",s+=t[e[r++]],s+=t[e[r++]],s+="-",s+=t[e[r++]],s+=t[e[r++]],s+="-",s+=t[e[r++]],s+=t[e[r++]],s+="-",s+=t[e[r++]],s+=t[e[r++]],s+=t[e[r++]],s+=t[e[r++]],s+=t[e[r++]],s+=t[e[r++]],s}})();function xhe(n){return{asString:async()=>n,asFile:()=>{},value:typeof n=="string"?n:void 0}}function run(n,e,t){const i={id:GW(),name:n,uri:e,data:t};return{asString:async()=>"",asFile:()=>i,value:void 0}}class yje{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return rs.some(this,([i,r])=>r.asFile())&&t.push("files"),Cje(uV(e),t)}get(e){var t;return(t=this._entries.get(this.toKey(e)))===null||t===void 0?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return uV(e)}}function uV(n){return n.toLowerCase()}function wje(n,e){return Cje(uV(n),e.map(uV))}function Cje(n,e){if(n==="*/*")return e.length>0;if(e.includes(n))return!0;const t=n.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;const[i,r,s]=t;return s==="*"?e.some(a=>a.startsWith(r+"/")):!1}const KW=Object.freeze({create:n=>Pm(n.map(e=>e.toString())).join(`\r
3360
3360
  `),split:n=>n.split(`\r
3361
3361
  `),parse:n=>KW.split(n).filter(e=>!e.startsWith("#"))});class ro{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+ro.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(...e){return new ro((this.value?[this.value,...e]:e).join(ro.sep))}}ro.sep=".";ro.None=new ro("@@none@@");ro.Empty=new ro("");const Ybe={EDITORS:"CodeEditors",FILES:"CodeFiles"};class sun{}const oun={DragAndDropContribution:"workbench.contributions.dragAndDrop"};Ca.add(oun.DragAndDropContribution,new sun);class LA{constructor(){}static getInstance(){return LA.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}}LA.INSTANCE=new LA;function Qje(n){const e=new yje;for(const t of n.items){const i=t.type;if(t.kind==="string"){const r=new Promise(s=>t.getAsString(s));e.append(i,xhe(r))}else if(t.kind==="file"){const r=t.getAsFile();r&&e.append(i,aun(r))}}return e}function aun(n){const e=n.path?Ai.parse(n.path):void 0;return run(n.name,e,async()=>new Uint8Array(await n.arrayBuffer()))}const lun=Object.freeze([Ybe.EDITORS,Ybe.FILES,lA.RESOURCES,lA.INTERNAL_URI_LIST]);function xje(n,e=!1){const t=Qje(n),i=t.get(lA.INTERNAL_URI_LIST);if(i)t.replace(Va.uriList,i);else if(e||!t.has(Va.uriList)){const r=[];for(const s of n.items){const a=s.getAsFile();if(a){const o=a.path;try{o?r.push(Ai.file(o).toString()):r.push(Ai.parse(a.name,!0).toString())}catch{}}}r.length&&t.replace(Va.uriList,xhe(KW.create(r)))}for(const r of lun)t.delete(r);return t}var She=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},EA=function(n,e){return function(t,i){e(t,i,n)}};class Lhe{async provideDocumentPasteEdits(e,t,i,r,s){const a=await this.getEdit(i,s);if(a)return{dispose(){},edits:[{insertText:a.insertText,title:a.title,kind:a.kind,handledMimeType:a.handledMimeType,yieldTo:a.yieldTo}]}}async provideDocumentDropEdits(e,t,i,r){const s=await this.getEdit(i,r);return s?[{insertText:s.insertText,title:s.title,kind:s.kind,handledMimeType:s.handledMimeType,yieldTo:s.yieldTo}]:void 0}}class Wm extends Lhe{constructor(){super(...arguments),this.kind=Wm.kind,this.dropMimeTypes=[Va.text],this.pasteMimeTypes=[Va.text]}async getEdit(e,t){const i=e.get(Va.text);if(!i||e.has(Va.uriList))return;const r=await i.asString();return{handledMimeType:Va.text,title:P("text.label","Insert Plain Text"),insertText:r,kind:this.kind}}}Wm.id="text";Wm.kind=new ro("text.plain");class Sje extends Lhe{constructor(){super(...arguments),this.kind=new ro("uri.absolute"),this.dropMimeTypes=[Va.uriList],this.pasteMimeTypes=[Va.uriList]}async getEdit(e,t){const i=await Lje(e);if(!i.length||t.isCancellationRequested)return;let r=0;const s=i.map(({uri:o,originalText:l})=>o.scheme===dr.file?o.fsPath:(r++,l)).join(" ");let a;return r>0?a=i.length>1?P("defaultDropProvider.uriList.uris","Insert Uris"):P("defaultDropProvider.uriList.uri","Insert Uri"):a=i.length>1?P("defaultDropProvider.uriList.paths","Insert Paths"):P("defaultDropProvider.uriList.path","Insert Path"),{handledMimeType:Va.uriList,insertText:s,title:a,kind:this.kind}}}let dV=class extends Lhe{constructor(e){super(),this._workspaceContextService=e,this.kind=new ro("uri.relative"),this.dropMimeTypes=[Va.uriList],this.pasteMimeTypes=[Va.uriList]}async getEdit(e,t){const i=await Lje(e);if(!i.length||t.isCancellationRequested)return;const r=yp(i.map(({uri:s})=>{const a=this._workspaceContextService.getWorkspaceFolder(s);return a?UYt(a.uri,s):void 0}));if(r.length)return{handledMimeType:Va.uriList,insertText:r.join(" "),title:i.length>1?P("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):P("defaultDropProvider.uriList.relativePath","Insert Relative Path"),kind:this.kind}}};dV=She([EA(0,eb)],dV);class cun{constructor(){this.kind=new ro("html"),this.pasteMimeTypes=["text/html"],this._yieldTo=[{mimeType:Va.text}]}async provideDocumentPasteEdits(e,t,i,r,s){var a;if(r.triggerKind!==Sk.PasteAs&&!(!((a=r.only)===null||a===void 0)&&a.contains(this.kind)))return;const o=i.get("text/html"),l=await(o==null?void 0:o.asString());if(!(!l||s.isCancellationRequested))return{dispose(){},edits:[{insertText:l,yieldTo:this._yieldTo,title:P("pasteHtmlLabel","Insert HTML"),kind:this.kind}]}}}async function Lje(n){const e=n.get(Va.uriList);if(!e)return[];const t=await e.asString(),i=[];for(const r of KW.parse(t))try{i.push({uri:Ai.parse(r),originalText:r})}catch{}return i}let xre=class extends ct{constructor(e,t){super(),this._register(e.documentDropEditProvider.register("*",new Wm)),this._register(e.documentDropEditProvider.register("*",new Sje)),this._register(e.documentDropEditProvider.register("*",new dV(t)))}};xre=She([EA(0,Zn),EA(1,eb)],xre);let Sre=class extends ct{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register("*",new Wm)),this._register(e.documentPasteEditProvider.register("*",new Sje)),this._register(e.documentPasteEditProvider.register("*",new dV(t))),this._register(e.documentPasteEditProvider.register("*",new cun))}};Sre=She([EA(0,Zn),EA(1,eb)],Sre);class x0{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t=0,i=this.value.charCodeAt(e),r;if(r=x0._table[i],typeof r=="number")return this.pos+=1,{type:r,pos:e,len:1};if(x0.isDigitCharacter(i)){r=8;do t+=1,i=this.value.charCodeAt(e+t);while(x0.isDigitCharacter(i));return this.pos+=t,{type:r,pos:e,len:t}}if(x0.isVariableCharacter(i)){r=9;do i=this.value.charCodeAt(e+ ++t);while(x0.isVariableCharacter(i)||x0.isDigitCharacter(i));return this.pos+=t,{type:r,pos:e,len:t}}r=10;do t+=1,i=this.value.charCodeAt(e+t);while(!isNaN(i)&&typeof x0._table[i]>"u"&&!x0.isDigitCharacter(i)&&!x0.isVariableCharacter(i));return this.pos+=t,{type:r,pos:e,len:t}}}x0._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};class CQ{constructor(){this._children=[]}appendChild(e){return e instanceof Td&&this._children[this._children.length-1]instanceof Td?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,r=i.children.indexOf(e),s=i.children.slice(0);s.splice(r,1,...t),i._children=s,(function a(o,l){for(const c of o)c.parent=l,a(c.children,c)})(t,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof ND)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class Td extends CQ{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new Td(this.value)}}class Eje extends CQ{}class E2 extends Eje{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.index<t.index?-1:e.index>t.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof QQ?this._children[0]:void 0}clone(){const e=new E2(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}class QQ extends CQ{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof Td&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new QQ;return this.options.forEach(e.appendChild,e),e}}class Ehe extends CQ{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,r=e.replace(this.regexp,function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!i&&this._children.some(s=>s instanceof Rf&&!!s.elseValue)&&(r=this._replace([])),r}_replace(e){let t="";for(const i of this._children)if(i instanceof Rf){let r=e[i.index]||"";r=i.resolve(r),t+=r}else t+=i.toString();return t}toString(){return""}clone(){const e=new Ehe;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}}class Rf extends CQ{constructor(e,t,i,r){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=r}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":this.shorthandName==="camelcase"?e?this._toCamelCase(e):"":e&&typeof this.ifValue=="string"?this.ifValue:!e&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(i=>i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((i,r)=>r===0?i.charAt(0).toLowerCase()+i.substr(1):i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}clone(){return new Rf(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class kA extends Eje{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0?(this._children=[new Td(t)],!0):!1}clone(){const e=new kA(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}function Xbe(n,e){const t=[...n];for(;t.length>0;){const i=t.shift();if(!e(i))break;t.unshift(...i.children)}}class ND extends CQ{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk(function(i){return i instanceof E2&&(e.push(i),t=!t||t.index<i.index?i:t),!0}),this._placeholders={all:e,last:t}}return this._placeholders}get placeholders(){const{all:e}=this.placeholderInfo;return e}offset(e){let t=0,i=!1;return this.walk(r=>r===e?(i=!0,!1):(t+=r.len(),!0)),i?t:-1}fullLen(e){let t=0;return Xbe([e],i=>(t+=i.len(),!0)),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof E2&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof kA&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new ND;return this._children=this.children.map(t=>t.clone()),e}walk(e){Xbe(this.children,e)}}class sb{constructor(){this._scanner=new x0,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const r=new ND;return this.parseFragment(e,r),this.ensureFinalTabstop(r,i??!1,t??!1),r}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const r=new Map,s=[];t.walk(l=>(l instanceof E2&&(l.isFinalTabstop?r.set(0,void 0):!r.has(l.index)&&l.children.length>0?r.set(l.index,l.children):s.push(l)),!0));const a=(l,c)=>{const u=r.get(l.index);if(!u)return;const h=new E2(l.index);h.transform=l.transform;for(const d of u){const f=d.clone();h.appendChild(f),f instanceof E2&&r.has(f.index)&&!c.has(f.index)&&(c.add(f.index),a(f,c),c.delete(f.index))}t.replace(l,[h])},o=new Set;for(const l of s)a(l,o);return t.children.slice(i)}ensureFinalTabstop(e,t,i){(t||i&&e.placeholders.length>0)&&(e.placeholders.find(s=>s.index===0)||e.appendChild(new E2(0)))}_accept(e,t){if(e===void 0||this._token.type===e){const i=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){const r=this._scanner.next();if(r.type!==0&&r.type!==4&&r.type!==5)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return(t=this._accept(5,!0))?(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new Td(t)),!0):!1}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new E2(Number(t)):new kA(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const s=new E2(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Td("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else if(s.index>0&&this._accept(7)){const a=new QQ;for(;;){if(this._parseChoiceElement(a)){if(this._accept(2))continue;if(this._accept(7)&&(s.appendChild(a),this._accept(4)))return e.appendChild(s),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseChoiceElement(e){const t=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let r;if((r=this._accept(5,!0))?r=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||r:r=this._accept(void 0,!0),!r)return this._backTo(t),!1;i.push(r)}return i.length===0?(this._backTo(t),!1):(e.appendChild(new Td(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const s=new kA(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Td("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseTransform(e){const t=new Ehe;let i="",r="";for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(6,!0)||s,i+=s;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(5,!0)||this._accept(6,!0)||s,t.appendChild(new Td(s));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){r+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(i,r)}catch{return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const r=this._accept(8,!0);if(r)if(i){if(this._accept(4))return e.appendChild(new Rf(Number(r))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new Rf(Number(r))),!0;else return this._backTo(t),!1;if(this._accept(6)){const s=this._accept(9,!0);return!s||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new Rf(Number(r),s)),!0)}else if(this._accept(11)){const s=this._until(4);if(s)return e.appendChild(new Rf(Number(r),void 0,s,void 0)),!0}else if(this._accept(12)){const s=this._until(4);if(s)return e.appendChild(new Rf(Number(r),void 0,void 0,s)),!0}else if(this._accept(13)){const s=this._until(1);if(s){const a=this._until(4);if(a)return e.appendChild(new Rf(Number(r),void 0,s,a)),!0}}else{const s=this._until(4);if(s)return e.appendChild(new Rf(Number(r),void 0,void 0,s)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new Td(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}function kje(n,e,t){var i,r,s,a;return(typeof t.insertText=="string"?t.insertText==="":t.insertText.snippet==="")?{edits:(r=(i=t.additionalEdit)===null||i===void 0?void 0:i.edits)!==null&&r!==void 0?r:[]}:{edits:[...e.map(o=>new n7(n,{range:o,text:typeof t.insertText=="string"?sb.escape(t.insertText)+"$0":t.insertText.snippet,insertAsSnippet:!0})),...(a=(s=t.additionalEdit)===null||s===void 0?void 0:s.edits)!==null&&a!==void 0?a:[]]}}function Aje(n){var e;function t(o,l){return"mimeType"in o?o.mimeType===l.handledMimeType:!!l.kind&&o.kind.contains(l.kind)}const i=new Map;for(const o of n)for(const l of(e=o.yieldTo)!==null&&e!==void 0?e:[])for(const c of n)if(c!==o&&t(l,c)){let u=i.get(o);u||(u=[],i.set(o,u)),u.push(c)}if(!i.size)return Array.from(n);const r=new Set,s=[];function a(o){if(!o.length)return[];const l=o[0];if(s.includes(l))return console.warn("Yield to cycle detected",l),o;if(r.has(l))return a(o.slice(1));let c=[];const u=i.get(l);return u&&(s.push(l),c=a(u),s.pop()),r.add(l),[...c,l,...a(o.slice(1))]}return a(Array.from(n))}var uun=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},dun=function(n,e){return function(t,i){e(t,i,n)}};const hun=fr.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:hPe,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}});class YW extends ct{constructor(e,t,i,r,s){super(),this.typeId=e,this.editor=t,this.range=i,this.delegate=s,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(r),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=hn(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;const t=hn("span.icon");this.domNode.append(t),t.classList.add(...Ni.asClassNameArray(pn.loading),"codicon-modifier-spin");const i=()=>{const r=this.editor.getOption(67);this.domNode.style.height=`${r}px`,this.domNode.style.width=`${Math.ceil(.8*r)}px`};i(),this._register(this.editor.onDidChangeConfiguration(r=>{(r.hasChanged(52)||r.hasChanged(67))&&i()})),this._register(Et(this.domNode,dn.CLICK,r=>{this.delegate.cancel()}))}getId(){return YW.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}}YW.baseId="editor.widget.inlineProgressWidget";let hV=class extends ct{constructor(e,t,i){super(),this.id=e,this._editor=t,this._instantiationService=i,this._showDelay=500,this._showPromise=this._register(new sc),this._currentWidget=new sc,this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}async showWhile(e,t,i){const r=this._operationIdPool++;this._currentOperation=r,this.clear(),this._showPromise.value=S7(()=>{const s=pe.fromPositions(e);this._currentDecorations.set([{range:s,options:hun}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(YW,this.id,this._editor,s,t,i))},this._showDelay);try{return await i}finally{this._currentOperation===r&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};hV=uun([dun(2,Si)],hV);var fun=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},Jbe=function(n,e){return function(t,i){e(t,i,n)}},$P;let Ld=$P=class{static get(e){return e.getContribution($P.ID)}constructor(e,t,i){this._openerService=i,this._messageWidget=new sc,this._messageListeners=new jt,this._mouseOverMessage=!1,this._editor=e,this._visible=$P.MESSAGE_VISIBLE.bindTo(t)}dispose(){var e;(e=this._message)===null||e===void 0||e.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){ph(hp(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=hp(e)?pW(e,{actionHandler:{callback:r=>{this.closeMessage(),Nde(this._openerService,r,hp(e)?e.isTrusted:void 0)},disposables:this._messageListeners}}):void 0,this._messageWidget.value=new e_e(this._editor,t,typeof e=="string"?e:this._message.element),this._messageListeners.add(mn.debounce(this._editor.onDidBlurEditorText,(r,s)=>s,0)(()=>{this._mouseOverMessage||this._messageWidget.value&&Tc(ou(),this._messageWidget.value.getDomNode())||this.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(Et(this._messageWidget.value.getDomNode(),dn.MOUSE_ENTER,()=>this._mouseOverMessage=!0,!0)),this._messageListeners.add(Et(this._messageWidget.value.getDomNode(),dn.MOUSE_LEAVE,()=>this._mouseOverMessage=!1,!0));let i;this._messageListeners.add(this._editor.onMouseMove(r=>{r.target.position&&(i?i.containsPosition(r.target.position)||this.closeMessage():i=new pe(t.lineNumber-3,1,r.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(e_e.fadeOut(this._messageWidget.value))}};Ld.ID="editor.contrib.messageController";Ld.MESSAGE_VISIBLE=new An("messageVisible",!1,P("messageVisible","Whether the editor is currently showing an inline message"));Ld=$P=fun([Jbe(1,Bi),Jbe(2,t1)],Ld);const pun=Ul.bindToContribution(Ld.get);Cn(new pun({id:"leaveEditorMessage",precondition:Ld.MESSAGE_VISIBLE,handler:n=>n.closeMessage(),kbOpts:{weight:130,primary:9}}));let e_e=class{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:i},r){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const s=document.createElement("div");s.classList.add("anchor","top"),this._domNode.appendChild(s);const a=document.createElement("div");typeof r=="string"?(a.classList.add("message"),a.textContent=r):(r.classList.add("message"),a.appendChild(r)),this._domNode.appendChild(a);const o=document.createElement("div");o.classList.add("anchor","below"),this._domNode.appendChild(o),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}};Ls(Ld.ID,Ld,4);var Ije=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},xE=function(n,e){return function(t,i){e(t,i,n)}},Lre;let fV=Lre=class extends ct{constructor(e,t,i,r,s,a,o,l,c,u){super(),this.typeId=e,this.editor=t,this.showCommand=r,this.range=s,this.edits=a,this.onSelectNewEdit=o,this._contextMenuService=l,this._keybindingService=u,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=i.bindTo(c),this.visibleContext.set(!0),this._register(Qi(()=>this.visibleContext.reset())),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register(Qi((()=>this.editor.removeContentWidget(this)))),this._register(this.editor.onDidChangeCursorPosition(h=>{s.containsPosition(h.position)||this.dispose()})),this._register(mn.runAndSubscribe(u.onDidUpdateKeybindings,()=>{this._updateButtonTitle()}))}_updateButtonTitle(){var e;const t=(e=this._keybindingService.lookupKeybinding(this.showCommand.id))===null||e===void 0?void 0:e.getLabel();this.button.element.title=this.showCommand.label+(t?` (${t})`:"")}create(){this.domNode=hn(".post-edit-widget"),this.button=this._register(new KB(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(Et(this.domNode,dn.CLICK,()=>this.showSelector()))}getId(){return Lre.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{const e=ul(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map((e,t)=>dT({id:"",label:e.title,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}}))})}};fV.baseId="editor.widget.postEditWidget";fV=Lre=Ije([xE(7,e1),xE(8,Bi),xE(9,Ps)],fV);let pV=class extends ct{constructor(e,t,i,r,s,a){super(),this._id=e,this._editor=t,this._visibleContext=i,this._showCommand=r,this._instantiationService=s,this._bulkEditService=a,this._currentWidget=this._register(new sc),this._register(mn.any(t.onDidChangeModel,t.onDidChangeModelContent)(()=>this.clear()))}async applyEditAndShowIfNeeded(e,t,i,r,s){const a=this._editor.getModel();if(!a||!e.length)return;const o=t.allEdits.at(t.activeEditIndex);if(!o)return;const l=await r(o,s);if(s.isCancellationRequested)return;const c=kje(a.uri,e,l),u=e[0],h=a.deltaDecorations([],[{range:u,options:{description:"paste-line-suffix",stickiness:0}}]);this._editor.focus();let d,f;try{d=await this._bulkEditService.apply(c,{editor:this._editor,token:s}),f=a.getDecorationRange(h[0])}finally{a.deltaDecorations(h,[])}s.isCancellationRequested||i&&d.isApplied&&t.allEdits.length>1&&this.show(f??u,t,async p=>{const g=this._editor.getModel();g&&(await g.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:p,allEdits:t.allEdits},i,r,s))})}show(e,t,i){this.clear(),this._editor.hasModel()&&(this._currentWidget.value=this._instantiationService.createInstance(fV,this._id,this._editor,this._visibleContext,this._showCommand,e,t,i))}clear(){this._currentWidget.clear()}tryShowSelector(){var e;(e=this._currentWidget.value)===null||e===void 0||e.showSelector()}};pV=Ije([xE(4,Si),xE(5,yD)],pV);var gun=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},sv=function(n,e){return function(t,i){e(t,i,n)}},b9;const Dje="editor.changePasteType",khe=new An("pasteWidgetVisible",!1,P("pasteWidgetVisible","Whether the paste widget is showing")),wY="application/vnd.code.copyMetadata";let D4=b9=class extends ct{static get(e){return e.getContribution(b9.ID)}constructor(e,t,i,r,s,a,o){super(),this._bulkEditService=i,this._clipboardService=r,this._languageFeaturesService=s,this._quickInputService=a,this._progressService=o,this._editor=e;const l=e.getContainerDomNode();this._register(Et(l,"copy",c=>this.handleCopy(c))),this._register(Et(l,"cut",c=>this.handleCopy(c))),this._register(Et(l,"paste",c=>this.handlePaste(c),!0)),this._pasteProgressManager=this._register(new hV("pasteIntoEditor",e,t)),this._postPasteWidgetManager=this._register(t.createInstance(pV,"pasteIntoEditor",e,khe,{id:Dje,label:P("postPasteWidgetTitle","Show paste options...")}))}changePasteType(){this._postPasteWidgetManager.tryShowSelector()}pasteAs(e){this._editor.focus();try{this._pasteAsActionContext={preferred:e},lQ().execCommand("paste")}finally{this._pasteAsActionContext=void 0}}clearWidgets(){this._postPasteWidgetManager.clear()}isPasteAsEnabled(){return this._editor.getOption(85).enabled&&!this._editor.getOption(91)}async finishedPaste(){await this._currentPasteOperation}handleCopy(e){var t,i;if(!this._editor.hasTextFocus()||(l8&&this._clipboardService.writeResources([]),!e.clipboardData||!this.isPasteAsEnabled()))return;const r=this._editor.getModel(),s=this._editor.getSelections();if(!r||!(s!=null&&s.length))return;const a=this._editor.getOption(37);let o=s;const l=s.length===1&&s[0].isEmpty();if(l){if(!a)return;o=[new pe(o[0].startLineNumber,1,o[0].startLineNumber,1+r.getLineLength(o[0].startLineNumber))]}const c=(t=this._editor._getViewModel())===null||t===void 0?void 0:t.getPlainTextToCopy(s,a,lu),h={multicursorText:Array.isArray(c)?c:null,pasteOnNewLine:l,mode:null},d=this._languageFeaturesService.documentPasteEditProvider.ordered(r).filter(T=>!!T.prepareDocumentPaste);if(!d.length){this.setCopyMetadata(e.clipboardData,{defaultPastePayload:h});return}const f=Qje(e.clipboardData),p=d.flatMap(T=>{var b;return(b=T.copyMimeTypes)!==null&&b!==void 0?b:[]}),g=GW();this.setCopyMetadata(e.clipboardData,{id:g,providerCopyMimeTypes:p,defaultPastePayload:h});const m=rc(async T=>{const b=yp(await Promise.all(d.map(async v=>{try{return await v.prepareDocumentPaste(r,o,f,T)}catch(_){console.error(_);return}})));b.reverse();for(const v of b)for(const[_,w]of v)f.replace(_,w);return f});(i=b9._currentCopyOperation)===null||i===void 0||i.dataTransferPromise.cancel(),b9._currentCopyOperation={handle:g,dataTransferPromise:m}}async handlePaste(e){var t,i,r,s;if(!e.clipboardData||!this._editor.hasTextFocus())return;(t=Ld.get(this._editor))===null||t===void 0||t.closeMessage(),(i=this._currentPasteOperation)===null||i===void 0||i.cancel(),this._currentPasteOperation=void 0;const a=this._editor.getModel(),o=this._editor.getSelections();if(!(o!=null&&o.length)||!a||!this.isPasteAsEnabled()&&!this._pasteAsActionContext)return;const l=this.fetchCopyMetadata(e),c=xje(e.clipboardData);c.delete(wY);const u=[...e.clipboardData.types,...(r=l==null?void 0:l.providerCopyMimeTypes)!==null&&r!==void 0?r:[],Va.uriList],h=this._languageFeaturesService.documentPasteEditProvider.ordered(a).filter(d=>{var f,p;const g=(f=this._pasteAsActionContext)===null||f===void 0?void 0:f.preferred;return g&&d.providedPasteEditKinds&&!this.providerMatchesPreference(d,g)?!1:(p=d.pasteMimeTypes)===null||p===void 0?void 0:p.some(m=>wje(m,u))});if(!h.length){!((s=this._pasteAsActionContext)===null||s===void 0)&&s.preferred&&this.showPasteAsNoEditMessage(o,this._pasteAsActionContext.preferred);return}e.preventDefault(),e.stopImmediatePropagation(),this._pasteAsActionContext?this.showPasteAsPick(this._pasteAsActionContext.preferred,h,o,c,l):this.doPasteInline(h,o,c,l,e)}showPasteAsNoEditMessage(e,t){var i;(i=Ld.get(this._editor))===null||i===void 0||i.showMessage(P("pasteAsError","No paste edits for '{0}' found",t instanceof ro?t.value:t.providerId),e[0].getStartPosition())}doPasteInline(e,t,i,r,s){const a=rc(async o=>{const l=this._editor;if(!l.hasModel())return;const c=l.getModel(),u=new P7(l,3,void 0,o);try{if(await this.mergeInDataFromCopy(i,r,u.token),u.token.isCancellationRequested)return;const h=e.filter(p=>this.isSupportedPasteProvider(p,i));if(!h.length||h.length===1&&h[0]instanceof Wm)return this.applyDefaultPasteHandler(i,r,u.token,s);const d={triggerKind:Sk.Automatic},f=await this.getPasteEdits(h,i,c,t,d,u.token);if(u.token.isCancellationRequested)return;if(f.length===1&&f[0].provider instanceof Wm)return this.applyDefaultPasteHandler(i,r,u.token,s);if(f.length){const p=l.getOption(85).showPasteSelector==="afterPaste";return this._postPasteWidgetManager.applyEditAndShowIfNeeded(t,{activeEditIndex:0,allEdits:f},p,async(g,m)=>{var T,b;const v=await((b=(T=g.provider).resolveDocumentPasteEdit)===null||b===void 0?void 0:b.call(T,g,m));return v&&(g.additionalEdit=v.additionalEdit),g},u.token)}await this.applyDefaultPasteHandler(i,r,u.token,s)}finally{u.dispose(),this._currentPasteOperation===a&&(this._currentPasteOperation=void 0)}});this._pasteProgressManager.showWhile(t[0].getEndPosition(),P("pasteIntoEditorProgress","Running paste handlers. Click to cancel"),a),this._currentPasteOperation=a}showPasteAsPick(e,t,i,r,s){const a=rc(async o=>{const l=this._editor;if(!l.hasModel())return;const c=l.getModel(),u=new P7(l,3,void 0,o);try{if(await this.mergeInDataFromCopy(r,s,u.token),u.token.isCancellationRequested)return;let h=t.filter(m=>this.isSupportedPasteProvider(m,r,e));e&&(h=h.filter(m=>this.providerMatchesPreference(m,e)));const d={triggerKind:Sk.PasteAs,only:e&&e instanceof ro?e:void 0};let f=await this.getPasteEdits(h,r,c,i,d,u.token);if(u.token.isCancellationRequested)return;if(e&&(f=f.filter(m=>e instanceof ro?e.contains(m.kind):e.providerId===m.provider.id)),!f.length){d.only&&this.showPasteAsNoEditMessage(i,d.only);return}let p;if(e)p=f.at(0);else{const m=await this._quickInputService.pick(f.map(T=>{var b;return{label:T.title,description:(b=T.kind)===null||b===void 0?void 0:b.value,edit:T}}),{placeHolder:P("pasteAsPickerPlaceholder","Select Paste Action")});p=m==null?void 0:m.edit}if(!p)return;const g=kje(c.uri,i,p);await this._bulkEditService.apply(g,{editor:this._editor})}finally{u.dispose(),this._currentPasteOperation===a&&(this._currentPasteOperation=void 0)}});this._progressService.withProgress({location:10,title:P("pasteAsProgress","Running paste handlers")},()=>a)}setCopyMetadata(e,t){e.setData(wY,JSON.stringify(t))}fetchCopyMetadata(e){var t;if(!e.clipboardData)return;const i=e.clipboardData.getData(wY);if(i)try{return JSON.parse(i)}catch{return}const[r,s]=yne.getTextData(e.clipboardData);if(s)return{defaultPastePayload:{mode:s.mode,multicursorText:(t=s.multicursorText)!==null&&t!==void 0?t:null,pasteOnNewLine:!!s.isFromEmptySelection}}}async mergeInDataFromCopy(e,t,i){var r;if(t!=null&&t.id&&((r=b9._currentCopyOperation)===null||r===void 0?void 0:r.handle)===t.id){const s=await b9._currentCopyOperation.dataTransferPromise;if(i.isCancellationRequested)return;for(const[a,o]of s)e.replace(a,o)}if(!e.has(Va.uriList)){const s=await this._clipboardService.readResources();if(i.isCancellationRequested)return;s.length&&e.append(Va.uriList,xhe(KW.create(s)))}}async getPasteEdits(e,t,i,r,s,a){const o=await rD(Promise.all(e.map(async c=>{var u,h;try{const d=await((u=c.provideDocumentPasteEdits)===null||u===void 0?void 0:u.call(c,i,r,t,s,a));return(h=d==null?void 0:d.edits)===null||h===void 0?void 0:h.map(f=>({...f,provider:c}))}catch(d){console.error(d)}})),a),l=yp(o??[]).flat().filter(c=>!s.only||s.only.contains(c.kind));return Aje(l)}async applyDefaultPasteHandler(e,t,i,r){var s,a,o,l;const c=(s=e.get(Va.text))!==null&&s!==void 0?s:e.get("text"),u=(a=await(c==null?void 0:c.asString()))!==null&&a!==void 0?a:"";if(i.isCancellationRequested)return;const h={clipboardEvent:r,text:u,pasteOnNewLine:(o=t==null?void 0:t.defaultPastePayload.pasteOnNewLine)!==null&&o!==void 0?o:!1,multicursorText:(l=t==null?void 0:t.defaultPastePayload.multicursorText)!==null&&l!==void 0?l:null,mode:null};this._editor.trigger("keyboard","paste",h)}isSupportedPasteProvider(e,t,i){var r;return!((r=e.pasteMimeTypes)===null||r===void 0)&&r.some(s=>t.matches(s))?!i||this.providerMatchesPreference(e,i):!1}providerMatchesPreference(e,t){return t instanceof ro?e.providedPasteEditKinds?e.providedPasteEditKinds.some(i=>t.contains(i)):!0:e.id===t.providerId}};D4.ID="editor.contrib.copyPasteActionController";D4=b9=gun([sv(1,Si),sv(2,yD),sv(3,o5),sv(4,Zn),sv(5,Up),sv(6,dBe)],D4);const ob="9_cutcopypaste",mun=v4||document.queryCommandSupported("cut"),Mje=v4||document.queryCommandSupported("copy"),Tun=typeof navigator.clipboard>"u"||q2?document.queryCommandSupported("paste"):!0;function Ahe(n){return n.register(),n}const bun=mun?Ahe(new uQ({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:v4?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:Te.MenubarEditMenu,group:"2_ccp",title:P({},"Cu&&t"),order:1},{menuId:Te.EditorContext,group:ob,title:P("actions.clipboard.cutLabel","Cut"),when:ke.writable,order:1},{menuId:Te.CommandPalette,group:"",title:P("actions.clipboard.cutLabel","Cut"),order:1},{menuId:Te.SimpleEditorContext,group:ob,title:P("actions.clipboard.cutLabel","Cut"),when:ke.writable,order:1}]})):void 0,_un=Mje?Ahe(new uQ({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:v4?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:Te.MenubarEditMenu,group:"2_ccp",title:P({},"&&Copy"),order:2},{menuId:Te.EditorContext,group:ob,title:P("actions.clipboard.copyLabel","Copy"),order:2},{menuId:Te.CommandPalette,group:"",title:P("actions.clipboard.copyLabel","Copy"),order:1},{menuId:Te.SimpleEditorContext,group:ob,title:P("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;tc.appendMenuItem(Te.MenubarEditMenu,{submenu:Te.MenubarCopy,title:Ji("copy as","Copy As"),group:"2_ccp",order:3});tc.appendMenuItem(Te.EditorContext,{submenu:Te.EditorContextCopy,title:Ji("copy as","Copy As"),group:ob,order:3});tc.appendMenuItem(Te.EditorContext,{submenu:Te.EditorContextShare,title:Ji("share","Share"),group:"11_share",order:-1,when:Bt.and(Bt.notEquals("resourceScheme","output"),ke.editorTextFocus)});tc.appendMenuItem(Te.EditorTitleContext,{submenu:Te.EditorTitleContextShare,title:Ji("share","Share"),group:"11_share",order:-1});tc.appendMenuItem(Te.ExplorerContext,{submenu:Te.ExplorerContextShare,title:Ji("share","Share"),group:"11_share",order:-1});const CY=Tun?Ahe(new uQ({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:v4?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:Te.MenubarEditMenu,group:"2_ccp",title:P({},"&&Paste"),order:4},{menuId:Te.EditorContext,group:ob,title:P("actions.clipboard.pasteLabel","Paste"),when:ke.writable,order:4},{menuId:Te.CommandPalette,group:"",title:P("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:Te.SimpleEditorContext,group:ob,title:P("actions.clipboard.pasteLabel","Paste"),when:ke.writable,order:4}]})):void 0;class vun extends Bn{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:P("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:ke.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(37)&&t.getSelection().isEmpty()||(_ne.forceCopyWithSyntaxHighlighting=!0,t.focus(),t.getContainerDomNode().ownerDocument.execCommand("copy"),_ne.forceCopyWithSyntaxHighlighting=!1)}}function Oje(n,e){n&&(n.addImplementation(1e4,"code-editor",(t,i)=>{const r=t.get(vs).getFocusedCodeEditor();if(r&&r.hasTextFocus()){const s=r.getOption(37),a=r.getSelection();return a&&a.isEmpty()&&!s||r.getContainerDomNode().ownerDocument.execCommand(e),!0}return!1}),n.addImplementation(0,"generic-dom",(t,i)=>(lQ().execCommand(e),!0)))}Oje(bun,"cut");Oje(_un,"copy");CY&&(CY.addImplementation(1e4,"code-editor",(n,e)=>{var t,i;const r=n.get(vs),s=n.get(o5),a=r.getFocusedCodeEditor();return a&&a.hasTextFocus()?a.getContainerDomNode().ownerDocument.execCommand("paste")?(i=(t=D4.get(a))===null||t===void 0?void 0:t.finishedPaste())!==null&&i!==void 0?i:Promise.resolve():l8?(async()=>{const l=await s.readText();if(l!==""){const c=Zk.INSTANCE.get(l);let u=!1,h=null,d=null;c&&(u=a.getOption(37)&&!!c.isFromEmptySelection,h=typeof c.multicursorText<"u"?c.multicursorText:null,d=c.mode),a.trigger("keyboard","paste",{text:l,pasteOnNewLine:u,multicursorText:h,mode:d})}})():!0:!1}),CY.addImplementation(0,"generic-dom",(n,e)=>(lQ().execCommand("paste"),!0)));Mje&&rn(vun);const Go=new class{constructor(){this.QuickFix=new ro("quickfix"),this.Refactor=new ro("refactor"),this.RefactorExtract=this.Refactor.append("extract"),this.RefactorInline=this.Refactor.append("inline"),this.RefactorMove=this.Refactor.append("move"),this.RefactorRewrite=this.Refactor.append("rewrite"),this.Notebook=new ro("notebook"),this.Source=new ro("source"),this.SourceOrganizeImports=this.Source.append("organizeImports"),this.SourceFixAll=this.Source.append("fixAll"),this.SurroundWith=this.Refactor.append("surround")}};var Zh;(function(n){n.Refactor="refactor",n.RefactorPreview="refactor preview",n.Lightbulb="lightbulb",n.Default="other (default)",n.SourceAction="source action",n.QuickFix="quick fix action",n.FixAll="fix all",n.OrganizeImports="organize imports",n.AutoFix="auto fix",n.QuickFixHover="quick fix hover window",n.OnSave="save participants",n.ProblemsView="problems view"})(Zh||(Zh={}));function yun(n,e){return!(n.include&&!n.include.intersects(e)||n.excludes&&n.excludes.some(t=>Nje(e,t,n.include))||!n.includeSourceActions&&Go.Source.contains(e))}function wun(n,e){const t=e.kind?new ro(e.kind):void 0;return!(n.include&&(!t||!n.include.contains(t))||n.excludes&&t&&n.excludes.some(i=>Nje(t,i,n.include))||!n.includeSourceActions&&t&&Go.Source.contains(t)||n.onlyIncludePreferredActions&&!e.isPreferred)}function Nje(n,e,t){return!(!e.contains(n)||t&&e.contains(t))}class j3{static fromUser(e,t){return!e||typeof e!="object"?new j3(t.kind,t.apply,!1):new j3(j3.getKindFromUser(e,t.kind),j3.getApplyFromUser(e,t.apply),j3.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new ro(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}}class Cun{constructor(e,t,i){this.action=e,this.provider=t,this.highlightRange=i}async resolve(e){var t;if(!((t=this.provider)===null||t===void 0)&&t.resolveCodeAction&&!this.action.edit){let i;try{i=await this.provider.resolveCodeAction(this.action,e)}catch(r){za(r)}i&&(this.action.edit=i.edit)}return this}}const Rje="editor.action.codeAction",Ihe="editor.action.quickFix",Pje="editor.action.autoFix",Hje="editor.action.refactor",Fje="editor.action.sourceAction",Dhe="editor.action.organizeImports",Mhe="editor.action.fixAll";class SE extends ct{static codeActionsPreferredComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:0}static codeActionsComparator({action:e},{action:t}){return e.isAI&&!t.isAI?1:!e.isAI&&t.isAI?-1:Su(e.diagnostics)?Su(t.diagnostics)?SE.codeActionsPreferredComparator(e,t):-1:Su(t.diagnostics)?1:SE.codeActionsPreferredComparator(e,t)}constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(SE.codeActionsComparator),this.validActions=this.allActions.filter(({action:r})=>!r.disabled)}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&Go.QuickFix.contains(new ro(e.kind))&&!!e.isPreferred)}get hasAIFix(){return this.validActions.some(({action:e})=>!!e.isAI)}get allAIFixes(){return this.validActions.every(({action:e})=>!!e.isAI)}}const t_e={actions:[],documentation:void 0};async function LE(n,e,t,i,r,s){var a;const o=i.filter||{},l={...o,excludes:[...o.excludes||[],Go.Notebook]},c={only:(a=o.include)===null||a===void 0?void 0:a.value,trigger:i.type},u=new bhe(e,s),h=i.type===2,d=Qun(n,e,h?l:o),f=new jt,p=d.map(async m=>{try{r.report(m);const T=await m.provideCodeActions(e,t,c,u.token);if(T&&f.add(T),u.token.isCancellationRequested)return t_e;const b=((T==null?void 0:T.actions)||[]).filter(_=>_&&wun(o,_)),v=Sun(m,b,o.include);return{actions:b.map(_=>new Cun(_,m)),documentation:v}}catch(T){if(Fp(T))throw T;return za(T),t_e}}),g=n.onDidChange(()=>{const m=n.all(e);ba(m,d)||u.cancel()});try{const m=await Promise.all(p),T=m.map(v=>v.actions).flat(),b=[...yp(m.map(v=>v.documentation)),...xun(n,e,i,T)];return new SE(T,b,f)}finally{g.dispose(),u.dispose()}}function Qun(n,e,t){return n.all(e).filter(i=>i.providedCodeActionKinds?i.providedCodeActionKinds.some(r=>yun(t,new ro(r))):!0)}function*xun(n,e,t,i){var r,s,a;if(e&&i.length)for(const o of n.all(e))o._getAdditionalMenuItems&&(yield*(r=o._getAdditionalMenuItems)===null||r===void 0?void 0:r.call(o,{trigger:t.type,only:(a=(s=t.filter)===null||s===void 0?void 0:s.include)===null||a===void 0?void 0:a.value},i.map(l=>l.action)))}function Sun(n,e,t){if(!n.documentation)return;const i=n.documentation.map(r=>({kind:new ro(r.kind),command:r.command}));if(t){let r;for(const s of i)s.kind.contains(t)&&(r?r.kind.contains(s.kind)&&(r=s):r=s);if(r)return r==null?void 0:r.command}for(const r of e)if(r.kind){for(const s of i)if(s.kind.contains(new ro(r.kind)))return s.command}}var J9;(function(n){n.OnSave="onSave",n.FromProblemsView="fromProblemsView",n.FromCodeActions="fromCodeActions",n.FromAILightbulb="fromAILightbulb"})(J9||(J9={}));async function Lun(n,e,t,i,r=qr.None){var s;const a=n.get(yD),o=n.get(Uo),l=n.get(Iu),c=n.get(hl);if(l.publicLog2("codeAction.applyCodeAction",{codeActionTitle:e.action.title,codeActionKind:e.action.kind,codeActionIsPreferred:!!e.action.isPreferred,reason:t}),await e.resolve(r),!r.isCancellationRequested&&!(!((s=e.action.edit)===null||s===void 0)&&s.edits.length&&!(await a.apply(e.action.edit,{editor:i==null?void 0:i.editor,label:e.action.title,quotableLabel:e.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:t!==J9.OnSave,showPreview:i==null?void 0:i.preview})).isApplied)&&e.action.command)try{await o.executeCommand(e.action.command.id,...e.action.command.arguments||[])}catch(u){const h=Eun(u);c.error(typeof h=="string"?h:P("applyCodeActionFailed","An unknown error occurred while applying the code action"))}}function Eun(n){return typeof n=="string"?n:n instanceof Error&&typeof n.message=="string"?n.message:void 0}ss.registerCommand("_executeCodeActionProvider",async function(n,e,t,i,r){if(!(e instanceof Ai))throw j2();const{codeActionProvider:s}=n.get(Zn),a=n.get(fa).getModel(e);if(!a)throw j2();const o=ei.isISelection(t)?ei.liftSelection(t):pe.isIRange(t)?a.validateRange(t):void 0;if(!o)throw j2();const l=typeof i=="string"?new ro(i):void 0,c=await LE(s,a,o,{type:1,triggerAction:Zh.Default,filter:{includeSourceActions:!0,include:l}},km.None,qr.None),u=[],h=Math.min(c.validActions.length,typeof r=="number"?r:0);for(let d=0;d<h;d++)u.push(c.validActions[d].resolve(qr.None));try{return await Promise.all(u),c.validActions.map(d=>d.action)}finally{setTimeout(()=>c.dispose(),100)}});var kun=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},Aun=function(n,e){return function(t,i){e(t,i,n)}},Ere;let gV=Ere=class{constructor(e){this.keybindingService=e}getResolver(){const e=new Bp(()=>this.keybindingService.getKeybindings().filter(t=>Ere.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===Dhe?i={kind:Go.SourceOrganizeImports.value}:t.command===Mhe&&(i={kind:Go.SourceFixAll.value}),{resolvedKeybinding:t.resolvedKeybinding,...j3.fromUser(i,{kind:ro.None,apply:"never"})}}));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.value);return i==null?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new ro(e.kind);return t.filter(r=>r.kind.contains(i)).filter(r=>r.preferred?e.isPreferred:!0).reduceRight((r,s)=>r?r.kind.contains(s.kind)?s:r:s,void 0)}};gV.codeActionCommands=[Hje,Rje,Fje,Dhe,Mhe];gV=Ere=kun([Aun(0,Ps)],gV);Oe("symbolIcon.arrayForeground",{dark:Tn,light:Tn,hcDark:Tn,hcLight:Tn},P("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.booleanForeground",{dark:Tn,light:Tn,hcDark:Tn,hcLight:Tn},P("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},P("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.colorForeground",{dark:Tn,light:Tn,hcDark:Tn,hcLight:Tn},P("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.constantForeground",{dark:Tn,light:Tn,hcDark:Tn,hcLight:Tn},P("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},P("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},P("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},P("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},P("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},P("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.fileForeground",{dark:Tn,light:Tn,hcDark:Tn,hcLight:Tn},P("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.folderForeground",{dark:Tn,light:Tn,hcDark:Tn,hcLight:Tn},P("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},P("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},P("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.keyForeground",{dark:Tn,light:Tn,hcDark:Tn,hcLight:Tn},P("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.keywordForeground",{dark:Tn,light:Tn,hcDark:Tn,hcLight:Tn},P("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},P("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.moduleForeground",{dark:Tn,light:Tn,hcDark:Tn,hcLight:Tn},P("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.namespaceForeground",{dark:Tn,light:Tn,hcDark:Tn,hcLight:Tn},P("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.nullForeground",{dark:Tn,light:Tn,hcDark:Tn,hcLight:Tn},P("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.numberForeground",{dark:Tn,light:Tn,hcDark:Tn,hcLight:Tn},P("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.objectForeground",{dark:Tn,light:Tn,hcDark:Tn,hcLight:Tn},P("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.operatorForeground",{dark:Tn,light:Tn,hcDark:Tn,hcLight:Tn},P("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.packageForeground",{dark:Tn,light:Tn,hcDark:Tn,hcLight:Tn},P("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.propertyForeground",{dark:Tn,light:Tn,hcDark:Tn,hcLight:Tn},P("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.referenceForeground",{dark:Tn,light:Tn,hcDark:Tn,hcLight:Tn},P("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.snippetForeground",{dark:Tn,light:Tn,hcDark:Tn,hcLight:Tn},P("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.stringForeground",{dark:Tn,light:Tn,hcDark:Tn,hcLight:Tn},P("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.structForeground",{dark:Tn,light:Tn,hcDark:Tn,hcLight:Tn},P("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.textForeground",{dark:Tn,light:Tn,hcDark:Tn,hcLight:Tn},P("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.typeParameterForeground",{dark:Tn,light:Tn,hcDark:Tn,hcLight:Tn},P("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.unitForeground",{dark:Tn,light:Tn,hcDark:Tn,hcLight:Tn},P("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Oe("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},P("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));const Bje=Object.freeze({kind:ro.Empty,title:P("codeAction.widget.id.more","More Actions...")}),Iun=Object.freeze([{kind:Go.QuickFix,title:P("codeAction.widget.id.quickfix","Quick Fix")},{kind:Go.RefactorExtract,title:P("codeAction.widget.id.extract","Extract"),icon:pn.wrench},{kind:Go.RefactorInline,title:P("codeAction.widget.id.inline","Inline"),icon:pn.wrench},{kind:Go.RefactorRewrite,title:P("codeAction.widget.id.convert","Rewrite"),icon:pn.wrench},{kind:Go.RefactorMove,title:P("codeAction.widget.id.move","Move"),icon:pn.wrench},{kind:Go.SurroundWith,title:P("codeAction.widget.id.surround","Surround With"),icon:pn.surroundWith},{kind:Go.Source,title:P("codeAction.widget.id.source","Source Action"),icon:pn.symbolFile},Bje]);function Dun(n,e,t){if(!e)return n.map(s=>{var a;return{kind:"action",item:s,group:Bje,disabled:!!s.action.disabled,label:s.action.disabled||s.action.title,canPreview:!!(!((a=s.action.edit)===null||a===void 0)&&a.edits.length)}});const i=Iun.map(s=>({group:s,actions:[]}));for(const s of n){const a=s.action.kind?new ro(s.action.kind):ro.None;for(const o of i)if(o.group.kind.contains(a)){o.actions.push(s);break}}const r=[];for(const s of i)if(s.actions.length){r.push({kind:"header",group:s.group});for(const a of s.actions){const o=s.group;r.push({kind:"action",item:a,group:a.action.isAI?{title:o.title,kind:o.kind,icon:pn.sparkle}:o,label:a.action.title,disabled:!!a.action.disabled,keybinding:t(a.action)})}}return r}var Mun=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},n_e=function(n,e){return function(t,i){e(t,i,n)}},kre,ty;(function(n){n.Hidden={type:0};class e{constructor(i,r,s,a){this.actions=i,this.trigger=r,this.editorPosition=s,this.widgetPosition=a,this.type=1}}n.Showing=e})(ty||(ty={}));let ab=kre=class extends ct{constructor(e,t,i){super(),this._editor=e,this._keybindingService=t,this._onClick=this._register(new Je),this.onClick=this._onClick.event,this._state=ty.Hidden,this._iconClasses=[],this._domNode=hn("div.lightBulbWidget"),this._domNode.role="listbox",this._register(Ao.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(r=>{const s=this._editor.getModel();(this.state.type!==1||!s||this.state.editorPosition.lineNumber>=s.getLineCount())&&this.hide()})),this._register(rzt(this._domNode,r=>{if(this.state.type!==1)return;this._editor.focus(),r.preventDefault();const{top:s,height:a}=ul(this._domNode),o=this._editor.getOption(67);let l=Math.floor(o/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber<this.state.editorPosition.lineNumber&&(l+=o),this._onClick.fire({x:r.posx,y:s+a+l,actions:this.state.actions,trigger:this.state.trigger})})),this._register(Et(this._domNode,"mouseenter",r=>{(r.buttons&1)===1&&this.hide()})),this._register(mn.runAndSubscribe(this._keybindingService.onDidUpdateKeybindings,()=>{var r,s,a,o;this._preferredKbLabel=(s=(r=this._keybindingService.lookupKeybinding(Pje))===null||r===void 0?void 0:r.getLabel())!==null&&s!==void 0?s:void 0,this._quickFixKbLabel=(o=(a=this._keybindingService.lookupKeybinding(Ihe))===null||a===void 0?void 0:a.getLabel())!==null&&o!==void 0?o:void 0,this._updateLightBulbTitleAndIcon()}))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();if(!this._editor.getOptions().get(65).enabled)return this.hide();const s=this._editor.getModel();if(!s)return this.hide();const{lineNumber:a,column:o}=s.validatePosition(i),l=s.getOptions().tabSize,c=this._editor.getOptions().get(50),u=s.getLineContent(a),h=sW(u,l),d=c.spaceWidth*h>22,f=m=>m>2&&this._editor.getTopForLineNumber(m)===this._editor.getTopForLineNumber(m-1);let p=a,g=1;if(!d){if(a>1&&!f(a-1))p-=1;else if(a<s.getLineCount()&&!f(a+1))p+=1;else if(o*c.spaceWidth<22)return this.hide();g=/^\S\s*$/.test(s.getLineContent(p))?2:1}this.state=new ty.Showing(e,t,i,{position:{lineNumber:p,column:g},preference:kre._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state!==ty.Hidden&&(this.state=ty.Hidden,this._editor.layoutContentWidget(this))}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this._domNode.classList.remove(...this._iconClasses),this._iconClasses=[],this.state.type!==1)return;let e,t=!1;this.state.actions.allAIFixes?(e=pn.sparkleFilled,this.state.actions.validActions.length===1&&(t=!0)):this.state.actions.hasAutoFix?this.state.actions.hasAIFix?e=pn.lightbulbSparkleAutofix:e=pn.lightbulbAutofix:this.state.actions.hasAIFix?e=pn.lightbulbSparkle:e=pn.lightBulb,this._updateLightbulbTitle(this.state.actions.hasAutoFix,t),this._iconClasses=Ni.asClassNameArray(e),this._domNode.classList.add(...this._iconClasses)}_updateLightbulbTitle(e,t){this.state.type===1&&(t?this.title=P("codeActionAutoRun","Run: {0}",this.state.actions.validActions[0].action.title):e&&this._preferredKbLabel?this.title=P("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",this._preferredKbLabel):!e&&this._quickFixKbLabel?this.title=P("codeActionWithKb","Show Code Actions ({0})",this._quickFixKbLabel):e||(this.title=P("codeAction","Show Code Actions")))}set title(e){this._domNode.title=e}};ab.ID="editor.contrib.lightbulbWidget";ab._posPref=[0];ab=kre=Mun([n_e(1,Ps),n_e(2,Uo)],ab);var Vje=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},Are=function(n,e){return function(t,i){e(t,i,n)}};const jje="acceptSelectedCodeAction",zje="previewSelectedCodeAction";class Oun{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");const t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,i){var r,s;i.text.textContent=(s=(r=e.group)===null||r===void 0?void 0:r.title)!==null&&s!==void 0?s:""}disposeTemplate(e){}}let Ire=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);const t=document.createElement("div");t.className="icon",e.append(t);const i=document.createElement("span");i.className="title",e.append(i);const r=new _Q(e,Rh);return{container:e,icon:t,text:i,keybinding:r}}renderElement(e,t,i){var r,s,a;if(!((r=e.group)===null||r===void 0)&&r.icon?(i.icon.className=Ni.asClassName(e.group.icon),e.group.icon.color&&(i.icon.style.color=Vn(e.group.icon.color.id))):(i.icon.className=Ni.asClassName(pn.lightBulb),i.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;i.text.textContent=Wje(e.label),i.keybinding.set(e.keybinding),_zt(!!e.keybinding,i.keybinding.element);const o=(s=this._keybindingService.lookupKeybinding(jje))===null||s===void 0?void 0:s.getLabel(),l=(a=this._keybindingService.lookupKeybinding(zje))===null||a===void 0?void 0:a.getLabel();i.container.classList.toggle("option-disabled",e.disabled),e.disabled?i.container.title=e.label:o&&l?this._supportsPreview&&e.canPreview?i.container.title=P({},"{0} to Apply, {1} to Preview",o,l):i.container.title=P({},"{0} to Apply",o):i.container.title=""}disposeTemplate(e){e.keybinding.dispose()}};Ire=Vje([Are(1,Ps)],Ire);class Nun extends UIEvent{constructor(){super("acceptSelectedAction")}}class i_e extends UIEvent{constructor(){super("previewSelectedAction")}}function Run(n){if(n.kind==="action")return n.label}let Dre=class extends ct{constructor(e,t,i,r,s,a){super(),this._delegate=r,this._contextViewService=s,this._keybindingService=a,this._actionLineHeight=24,this._headerLineHeight=26,this.cts=this._register(new Ma),this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");const o={getHeight:l=>l.kind==="header"?this._headerLineHeight:this._actionLineHeight,getTemplateId:l=>l.kind};this._list=this._register(new r2(e,this.domNode,o,[new Ire(t,this._keybindingService),new Oun],{keyboardSupport:!1,typeNavigationEnabled:!0,keyboardNavigationLabelProvider:{getKeyboardNavigationLabel:Run},accessibilityProvider:{getAriaLabel:l=>{if(l.kind==="action"){let c=l.label?Wje(l==null?void 0:l.label):"";return l.disabled&&(c=P({},"{0}, Disabled Reason: {1}",c,l.disabled)),c}return null},getWidgetAriaLabel:()=>P({},"Action Widget"),getRole:l=>l.kind==="action"?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(qb),this._register(this._list.onMouseClick(l=>this.onListClick(l))),this._register(this._list.onMouseOver(l=>this.onListHover(l))),this._register(this._list.onDidChangeFocus(()=>this.onFocus())),this._register(this._list.onDidChangeSelection(l=>this.onListSelection(l))),this._allMenuItems=i,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(e){return!e.disabled&&e.kind==="action"}hide(e){this._delegate.onHide(e),this.cts.cancel(),this._contextViewService.hideContextView()}layout(e){const t=this._allMenuItems.filter(l=>l.kind==="header").length,r=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(r);let s=e;if(this._allMenuItems.length>=50)s=380;else{const l=this._allMenuItems.map((c,u)=>{const h=this.domNode.ownerDocument.getElementById(this._list.getElementID(u));if(h){h.style.width="auto";const d=h.getBoundingClientRect().width;return h.style.width="",d}return 0});s=Math.max(...l,e)}const o=Math.min(r,this.domNode.ownerDocument.body.clientHeight*.7);return this._list.layout(o,s),this.domNode.style.height=`${o}px`,this._list.domFocus(),s}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(e){const t=this._list.getFocus();if(t.length===0)return;const i=t[0],r=this._list.element(i);if(!this.focusCondition(r))return;const s=e?new i_e:new Nun;this._list.setSelection([i],s)}onListSelection(e){if(!e.elements.length)return;const t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof i_e):this._list.setSelection([])}onFocus(){var e,t;const i=this._list.getFocus();if(i.length===0)return;const r=i[0],s=this._list.element(r);(t=(e=this._delegate).onFocus)===null||t===void 0||t.call(e,s.item)}async onListHover(e){const t=e.element;if(t&&t.item&&this.focusCondition(t)){if(this._delegate.onHover&&!t.disabled&&t.kind==="action"){const i=await this._delegate.onHover(t.item,this.cts.token);t.canPreview=i?i.canPreview:void 0}e.index&&this._list.splice(e.index,1,[t])}this._list.setFocus(typeof e.index=="number"?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};Dre=Vje([Are(4,i5),Are(5,Ps)],Dre);function Wje(n){return n.replace(/\r\n|\r|\n/g," ")}var Pun=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},QY=function(n,e){return function(t,i){e(t,i,n)}};Oe("actionBar.toggledBackground",{dark:$9,light:$9,hcDark:$9,hcLight:$9},P("actionBar.toggledBackground","Background color for toggled action items in action bar."));const lb={Visible:new An("codeActionMenuVisible",!1,P("codeActionMenuVisible","Whether the action widget list is visible"))},Xb=Yr("actionWidgetService");let cb=class extends ct{get isVisible(){return lb.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,i){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=i,this._list=this._register(new sc)}show(e,t,i,r,s,a,o){const l=lb.Visible.bindTo(this._contextKeyService),c=this._instantiationService.createInstance(Dre,e,t,i,r);this._contextViewService.showContextView({getAnchor:()=>s,render:u=>(l.set(!0),this._renderWidget(u,c,o??[])),onHide:u=>{l.reset(),this._onWidgetClosed(u)}},a,!1)}acceptSelected(e){var t;(t=this._list.value)===null||t===void 0||t.acceptSelected(e)}focusPrevious(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusPrevious()}focusNext(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusNext()}hide(e){var t;(t=this._list.value)===null||t===void 0||t.hide(e),this._list.clear()}_renderWidget(e,t,i){var r;const s=document.createElement("div");if(s.classList.add("action-widget"),e.appendChild(s),this._list.value=t,this._list.value)s.appendChild(this._list.value.domNode);else throw new Error("List has no value");const a=new jt,o=document.createElement("div"),l=e.appendChild(o);l.classList.add("context-view-block"),a.add(Et(l,dn.MOUSE_DOWN,p=>p.stopPropagation()));const c=document.createElement("div"),u=e.appendChild(c);u.classList.add("context-view-pointerBlock"),a.add(Et(u,dn.POINTER_MOVE,()=>u.remove())),a.add(Et(u,dn.MOUSE_DOWN,()=>u.remove()));let h=0;if(i.length){const p=this._createActionBar(".action-widget-action-bar",i);p&&(s.appendChild(p.getContainer().parentElement),a.add(p),h=p.getContainer().offsetWidth)}const d=(r=this._list.value)===null||r===void 0?void 0:r.layout(h);s.style.width=`${d}px`;const f=a.add(ef(e));return a.add(f.onDidBlur(()=>this.hide(!0))),a}_createActionBar(e,t){if(!t.length)return;const i=hn(e),r=new Y2(i);return r.push(t,{icon:!1,label:!0}),r}_onWidgetClosed(e){var t;(t=this._list.value)===null||t===void 0||t.hide(e)}};cb=Pun([QY(0,i5),QY(1,Bi),QY(2,Si)],cb);os(Xb,cb,1);const RD=1100;ko(class extends Dd{constructor(){super({id:"hideCodeActionWidget",title:Ji("hideCodeActionWidget.title","Hide action widget"),precondition:lb.Visible,keybinding:{weight:RD,primary:9,secondary:[1033]}})}run(n){n.get(Xb).hide(!0)}});ko(class extends Dd{constructor(){super({id:"selectPrevCodeAction",title:Ji("selectPrevCodeAction.title","Select previous action"),precondition:lb.Visible,keybinding:{weight:RD,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(n){const e=n.get(Xb);e instanceof cb&&e.focusPrevious()}});ko(class extends Dd{constructor(){super({id:"selectNextCodeAction",title:Ji("selectNextCodeAction.title","Select next action"),precondition:lb.Visible,keybinding:{weight:RD,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(n){const e=n.get(Xb);e instanceof cb&&e.focusNext()}});ko(class extends Dd{constructor(){super({id:jje,title:Ji("acceptSelected.title","Accept selected action"),precondition:lb.Visible,keybinding:{weight:RD,primary:3,secondary:[2137]}})}run(n){const e=n.get(Xb);e instanceof cb&&e.acceptSelected()}});ko(class extends Dd{constructor(){super({id:zje,title:Ji("previewSelected.title","Preview selected action"),precondition:lb.Visible,keybinding:{weight:RD,primary:2051}})}run(n){const e=n.get(Xb);e instanceof cb&&e.acceptSelected(!0)}});const Uje=new An("supportedCodeAction",""),r_e="_typescript.applyFixAllCodeAction";class Hun extends ct{constructor(e,t,i,r=250){super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=r,this._autoTriggerTimer=this._register(new rf),this._register(this._markerService.onMarkerChanged(s=>this._onMarkerChanges(s))),this._register(this._editor.onDidChangeCursorPosition(()=>this._tryAutoTrigger()))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);this._signalChange(t?{trigger:e,selection:t}:void 0)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some(i=>ade(i,t.uri))&&this._tryAutoTrigger()}_tryAutoTrigger(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:Zh.Default})},this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getSelection();if(e.type===1)return t;const i=this._editor.getOption(65).enabled;if(i!==E0.Off){{if(i===E0.On)return t;if(i===E0.OnCode){if(!t.isEmpty())return t;const s=this._editor.getModel(),{lineNumber:a,column:o}=t.getPosition(),l=s.getLineContent(a);if(l.length===0)return;if(o===1){if(/\s/.test(l[0]))return}else if(o===s.getLineMaxColumn(a)){if(/\s/.test(l[l.length-1]))return}else if(/\s/.test(l[o-2])&&/\s/.test(l[o-1]))return}}return t}}}var O9;(function(n){n.Empty={type:0};class e{constructor(i,r,s){this.trigger=i,this.position=r,this._cancellablePromise=s,this.type=1,this.actions=s.catch(a=>{if(Fp(a))return $je;throw a})}cancel(){this._cancellablePromise.cancel()}}n.Triggered=e})(O9||(O9={}));const $je=Object.freeze({allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1,hasAIFix:!1,allAIFixes:!1});class Fun extends ct{constructor(e,t,i,r,s,a){super(),this._editor=e,this._registry=t,this._markerService=i,this._progressService=s,this._configurationService=a,this._codeActionOracle=this._register(new sc),this._state=O9.Empty,this._onDidChangeState=this._register(new Je),this.onDidChangeState=this._onDidChangeState.event,this._disposed=!1,this._supportedCodeActions=Uje.bindTo(r),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(this._registry.onDidChange(()=>this._update())),this._register(this._editor.onDidChangeConfiguration(o=>{o.hasChanged(65)&&this._update()})),this._update()}dispose(){this._disposed||(this._disposed=!0,super.dispose(),this.setState(O9.Empty,!0))}_settingEnabledNearbyQuickfixes(){var e;const t=(e=this._editor)===null||e===void 0?void 0:e.getModel();return this._configurationService?this._configurationService.getValue("editor.codeActionWidget.includeNearbyQuickFixes",{resource:t==null?void 0:t.uri}):!1}_update(){if(this._disposed)return;this._codeActionOracle.value=void 0,this.setState(O9.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(91)){const t=this._registry.all(e).flatMap(i=>{var r;return(r=i.providedCodeActionKinds)!==null&&r!==void 0?r:[]});this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new Hun(this._editor,this._markerService,i=>{var r;if(!i){this.setState(O9.Empty);return}const s=i.selection.getStartPosition(),a=rc(async c=>{var u,h,d,f,p,g,m,T,b,v;if(this._settingEnabledNearbyQuickfixes()&&i.trigger.type===1&&(i.trigger.triggerAction===Zh.QuickFix||!((h=(u=i.trigger.filter)===null||u===void 0?void 0:u.include)===null||h===void 0)&&h.contains(Go.QuickFix))){const _=await LE(this._registry,e,i.selection,i.trigger,km.None,c),w=[..._.allActions];if(c.isCancellationRequested)return $je;const y=(d=_.validActions)===null||d===void 0?void 0:d.some(x=>x.action.kind?Go.QuickFix.contains(new ro(x.action.kind)):!1),C=this._markerService.read({resource:e.uri});if(y){for(const x of _.validActions)!((p=(f=x.action.command)===null||f===void 0?void 0:f.arguments)===null||p===void 0)&&p.some(S=>typeof S=="string"&&S.includes(r_e))&&(x.action.diagnostics=[...C.filter(S=>S.relatedInformation)]);return{validActions:_.validActions,allActions:w,documentation:_.documentation,hasAutoFix:_.hasAutoFix,hasAIFix:_.hasAIFix,allAIFixes:_.allAIFixes,dispose:()=>{_.dispose()}}}else if(!y&&C.length>0){const x=i.selection.getPosition();let S=x,L=Number.MAX_VALUE;const E=[..._.validActions];for(const O of C){const k=O.endColumn,N=O.endLineNumber,R=O.startLineNumber;if(N===x.lineNumber||R===x.lineNumber){S=new it(N,k);const H={type:i.trigger.type,triggerAction:i.trigger.triggerAction,filter:{include:!((g=i.trigger.filter)===null||g===void 0)&&g.include?(m=i.trigger.filter)===null||m===void 0?void 0:m.include:Go.QuickFix},autoApply:i.trigger.autoApply,context:{notAvailableMessage:((T=i.trigger.context)===null||T===void 0?void 0:T.notAvailableMessage)||"",position:S}},j=new ei(S.lineNumber,S.column,S.lineNumber,S.column),U=await LE(this._registry,e,j,H,km.None,c);if(U.validActions.length!==0){for(const W of U.validActions)!((v=(b=W.action.command)===null||b===void 0?void 0:b.arguments)===null||v===void 0)&&v.some(Z=>typeof Z=="string"&&Z.includes(r_e))&&(W.action.diagnostics=[...C.filter(Z=>Z.relatedInformation)]);_.allActions.length===0&&w.push(...U.allActions),Math.abs(x.column-k)<L?E.unshift(...U.validActions):E.push(...U.validActions)}L=Math.abs(x.column-k)}}const I=E.filter((O,k,N)=>N.findIndex(R=>R.action.title===O.action.title)===k);return I.sort((O,k)=>O.action.isPreferred&&!k.action.isPreferred?-1:!O.action.isPreferred&&k.action.isPreferred||O.action.isAI&&!k.action.isAI?1:!O.action.isAI&&k.action.isAI?-1:0),{validActions:I,allActions:w,documentation:_.documentation,hasAutoFix:_.hasAutoFix,hasAIFix:_.hasAIFix,allAIFixes:_.allAIFixes,dispose:()=>{_.dispose()}}}}return LE(this._registry,e,i.selection,i.trigger,km.None,c)});i.trigger.type===1&&((r=this._progressService)===null||r===void 0||r.showWhile(a,250));const o=new O9.Triggered(i.trigger,s,a);let l=!1;this._state.type===1&&(l=this._state.trigger.type===1&&o.type===1&&o.trigger.type===2&&this._state.position!==o.position),l?setTimeout(()=>{this.setState(o)},500):this.setState(o)},void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:Zh.Default})}else this._supportedCodeActions.reset()}trigger(e){var t;(t=this._codeActionOracle.value)===null||t===void 0||t.trigger(e)}setState(e,t){e!==this._state&&(this._state.type===1&&this._state.cancel(),this._state=e,!t&&!this._disposed&&this._onDidChangeState.fire(e))}}var Bun=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},h3=function(n,e){return function(t,i){e(t,i,n)}},wv;const Vun="quickfix-edit-highlight";let H7=wv=class extends ct{static get(e){return e.getContribution(wv.ID)}constructor(e,t,i,r,s,a,o,l,c,u,h){super(),this._commandService=o,this._configurationService=l,this._actionWidgetService=c,this._instantiationService=u,this._telemetryService=h,this._activeCodeActions=this._register(new sc),this._showDisabled=!1,this._disposed=!1,this._editor=e,this._model=this._register(new Fun(this._editor,s.codeActionProvider,t,i,a,l)),this._register(this._model.onDidChangeState(d=>this.update(d))),this._lightBulbWidget=new Bp(()=>{const d=this._editor.getContribution(ab.ID);return d&&this._register(d.onClick(f=>this.showCodeActionsFromLightbulb(f.actions,f))),d}),this._resolver=r.createInstance(gV),this._register(this._editor.onDidLayoutChange(()=>this._actionWidgetService.hide()))}dispose(){this._disposed=!0,super.dispose()}async showCodeActionsFromLightbulb(e,t){if(this._telemetryService.publicLog2("codeAction.showCodeActionsFromLightbulb",{codeActionListLength:e.validActions.length,codeActions:e.validActions.map(i=>i.action.title),codeActionProviders:e.validActions.map(i=>{var r,s;return(s=(r=i.provider)===null||r===void 0?void 0:r.displayName)!==null&&s!==void 0?s:""})}),e.allAIFixes&&e.validActions.length===1){const i=e.validActions[0],r=i.action.command;r&&r.id==="inlineChat.start"&&r.arguments&&r.arguments.length>=1&&(r.arguments[0]={...r.arguments[0],autoSend:!1}),await this._applyCodeAction(i,!1,!1,J9.FromAILightbulb);return}await this.showCodeActionList(e,t,{includeDisabledActions:!1,fromLightbulb:!0})}showCodeActions(e,t,i){return this.showCodeActionList(t,i,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,i,r){var s;if(!this._editor.hasModel())return;(s=Ld.get(this._editor))===null||s===void 0||s.closeMessage();const a=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:i,autoApply:r,context:{notAvailableMessage:e,position:a}})}_trigger(e){return this._model.trigger(e)}async _applyCodeAction(e,t,i,r){try{await this._instantiationService.invokeFunction(Lun,e,r,{preview:i,editor:this._editor})}finally{t&&this._trigger({type:2,triggerAction:Zh.QuickFix,filter:{}})}}async update(e){var t,i,r,s,a,o,l;if(e.type!==1){(t=this._lightBulbWidget.rawValue)===null||t===void 0||t.hide();return}let c;try{c=await e.actions}catch(u){hr(u);return}if(!this._disposed)if((i=this._lightBulbWidget.value)===null||i===void 0||i.update(c,e.trigger,e.position),e.trigger.type===1){if(!((r=e.trigger.filter)===null||r===void 0)&&r.include){const h=this.tryGetValidActionToApply(e.trigger,c);if(h){try{(s=this._lightBulbWidget.value)===null||s===void 0||s.hide(),await this._applyCodeAction(h,!1,!1,J9.FromCodeActions)}finally{c.dispose()}return}if(e.trigger.context){const d=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,c);if(d&&d.action.disabled){(a=Ld.get(this._editor))===null||a===void 0||a.showMessage(d.action.disabled,e.trigger.context.position),c.dispose();return}}}const u=!!(!((o=e.trigger.filter)===null||o===void 0)&&o.include);if(e.trigger.context&&(!c.allActions.length||!u&&!c.validActions.length)){(l=Ld.get(this._editor))===null||l===void 0||l.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=c,c.dispose();return}this._activeCodeActions.value=c,this.showCodeActionList(c,this.toCoords(e.position),{includeDisabledActions:u,fromLightbulb:!1})}else this._actionWidgetService.isVisible?c.dispose():this._activeCodeActions.value=c}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length&&(e.autoApply==="first"&&t.validActions.length===0||e.autoApply==="ifSingle"&&t.allActions.length===1))return t.allActions.find(({action:i})=>i.disabled)}tryGetValidActionToApply(e,t){if(t.validActions.length&&(e.autoApply==="first"&&t.validActions.length>0||e.autoApply==="ifSingle"&&t.validActions.length===1))return t.validActions[0]}async showCodeActionList(e,t,i){const r=this._editor.createDecorationsCollection(),s=this._editor.getDomNode();if(!s)return;const a=i.includeDisabledActions&&(this._showDisabled||e.validActions.length===0)?e.allActions:e.validActions;if(!a.length)return;const o=it.isIPosition(t)?this.toCoords(t):t,l={onSelect:async(c,u)=>{this._applyCodeAction(c,!0,!!u,i.fromLightbulb?J9.FromAILightbulb:J9.FromCodeActions),this._actionWidgetService.hide(!1),r.clear()},onHide:c=>{var u;(u=this._editor)===null||u===void 0||u.focus(),r.clear(),i.fromLightbulb&&c!==void 0&&this._telemetryService.publicLog2("codeAction.showCodeActionList.onHide",{codeActionListLength:e.validActions.length,didCancel:c})},onHover:async(c,u)=>{var h;if(u.isCancellationRequested)return;let d=!1;const f=c.action.kind;if(f){const p=new ro(f);d=[Go.RefactorExtract,Go.RefactorInline,Go.RefactorRewrite,Go.RefactorMove,Go.Source].some(m=>m.contains(p))}return{canPreview:d||!!(!((h=c.action.edit)===null||h===void 0)&&h.edits.length)}},onFocus:c=>{var u,h;if(c&&c.action){const d=c.action.ranges,f=c.action.diagnostics;if(r.clear(),d&&d.length>0){const p=f&&(f==null?void 0:f.length)>1?f.map(g=>({range:g,options:wv.DECORATION})):d.map(g=>({range:g,options:wv.DECORATION}));r.set(p)}else if(f&&f.length>0){const p=f.map(m=>({range:m,options:wv.DECORATION}));r.set(p);const g=f[0];if(g.startLineNumber&&g.startColumn){const m=(h=(u=this._editor.getModel())===null||u===void 0?void 0:u.getWordAtPosition({lineNumber:g.startLineNumber,column:g.startColumn}))===null||h===void 0?void 0:h.word;C4(P("editingNewSelection","Context: {0} at line {1} and column {2}.",m,g.startLineNumber,g.startColumn))}}}else r.clear()}};this._actionWidgetService.show("codeActionWidget",!0,Dun(a,this._shouldShowHeaders(),this._resolver.getResolver()),l,o,s,this._getActionBarActions(e,t,i))}toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=ul(this._editor.getDomNode()),r=i.left+t.left,s=i.top+t.top+t.height;return{x:r,y:s}}_shouldShowHeaders(){var e;const t=(e=this._editor)===null||e===void 0?void 0:e.getModel();return this._configurationService.getValue("editor.codeActionWidget.showHeaders",{resource:t==null?void 0:t.uri})}_getActionBarActions(e,t,i){if(i.fromLightbulb)return[];const r=e.documentation.map(s=>{var a;return{id:s.id,label:s.title,tooltip:(a=s.tooltip)!==null&&a!==void 0?a:"",class:void 0,enabled:!0,run:()=>{var o;return this._commandService.executeCommand(s.id,...(o=s.arguments)!==null&&o!==void 0?o:[])}}});return i.includeDisabledActions&&e.validActions.length>0&&e.allActions.length!==e.validActions.length&&r.push(this._showDisabled?{id:"hideMoreActions",label:P("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,i))}:{id:"showMoreActions",label:P("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,i))}),r}};H7.ID="editor.contrib.codeActionController";H7.DECORATION=fr.register({description:"quickfix-highlight",className:Vun});H7=wv=Bun([h3(1,Z4),h3(2,Bi),h3(3,Si),h3(4,Zn),h3(5,f8),h3(6,Uo),h3(7,Pr),h3(8,Xb),h3(9,Si),h3(10,Iu)],H7);J2((n,e)=>{((r,s)=>{s&&e.addRule(`.monaco-editor ${r} { background-color: ${s}; }`)})(".quickfix-edit-highlight",n.getColor(am));const i=n.getColor(I6);i&&e.addRule(`.monaco-editor .quickfix-edit-highlight { border: 1px ${up(n.type)?"dotted":"solid"} ${i}; box-sizing: border-box; }`)});function PD(n){return Bt.regex(Uje.keys()[0],new RegExp("(\\s|^)"+W1(n.value)+"\\b"))}const Ohe={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:P("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:P("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[P("args.schema.apply.first","Always apply the first returned code action."),P("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),P("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:P("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};function Jb(n,e,t,i,r=Zh.Default){if(n.hasModel()){const s=H7.get(n);s==null||s.manualTriggerAtCurrentPosition(e,r,t,i)}}class jun extends Bn{constructor(){super({id:Ihe,label:P("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:Bt.and(ke.writable,ke.hasCodeActionsProvider),kbOpts:{kbExpr:ke.textInputFocus,primary:2137,weight:100}})}run(e,t){return Jb(t,P("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,Zh.QuickFix)}}class zun extends Ul{constructor(){super({id:Rje,precondition:Bt.and(ke.writable,ke.hasCodeActionsProvider),metadata:{description:"Trigger a code action",args:[{name:"args",schema:Ohe}]}})}runEditorCommand(e,t,i){const r=j3.fromUser(i,{kind:ro.Empty,apply:"ifSingle"});return Jb(t,typeof(i==null?void 0:i.kind)=="string"?r.preferred?P("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):P("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):r.preferred?P("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):P("editor.action.codeAction.noneMessage","No code actions available"),{include:r.kind,includeSourceActions:!0,onlyIncludePreferredActions:r.preferred},r.apply)}}class Wun extends Bn{constructor(){super({id:Hje,label:P("refactor.label","Refactor..."),alias:"Refactor...",precondition:Bt.and(ke.writable,ke.hasCodeActionsProvider),kbOpts:{kbExpr:ke.textInputFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:Bt.and(ke.writable,PD(Go.Refactor))},metadata:{description:"Refactor...",args:[{name:"args",schema:Ohe}]}})}run(e,t,i){const r=j3.fromUser(i,{kind:Go.Refactor,apply:"never"});return Jb(t,typeof(i==null?void 0:i.kind)=="string"?r.preferred?P("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",i.kind):P("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",i.kind):r.preferred?P("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):P("editor.action.refactor.noneMessage","No refactorings available"),{include:Go.Refactor.contains(r.kind)?r.kind:ro.None,onlyIncludePreferredActions:r.preferred},r.apply,Zh.Refactor)}}class Uun extends Bn{constructor(){super({id:Fje,label:P("source.label","Source Action..."),alias:"Source Action...",precondition:Bt.and(ke.writable,ke.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:Bt.and(ke.writable,PD(Go.Source))},metadata:{description:"Source Action...",args:[{name:"args",schema:Ohe}]}})}run(e,t,i){const r=j3.fromUser(i,{kind:Go.Source,apply:"never"});return Jb(t,typeof(i==null?void 0:i.kind)=="string"?r.preferred?P("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):P("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):r.preferred?P("editor.action.source.noneMessage.preferred","No preferred source actions available"):P("editor.action.source.noneMessage","No source actions available"),{include:Go.Source.contains(r.kind)?r.kind:ro.None,includeSourceActions:!0,onlyIncludePreferredActions:r.preferred},r.apply,Zh.SourceAction)}}class $un extends Bn{constructor(){super({id:Dhe,label:P("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:Bt.and(ke.writable,PD(Go.SourceOrganizeImports)),kbOpts:{kbExpr:ke.textInputFocus,primary:1581,weight:100}})}run(e,t){return Jb(t,P("editor.action.organize.noneMessage","No organize imports action available"),{include:Go.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",Zh.OrganizeImports)}}class qun extends Bn{constructor(){super({id:Mhe,label:P("fixAll.label","Fix All"),alias:"Fix All",precondition:Bt.and(ke.writable,PD(Go.SourceFixAll))})}run(e,t){return Jb(t,P("fixAll.noneMessage","No fix all action available"),{include:Go.SourceFixAll,includeSourceActions:!0},"ifSingle",Zh.FixAll)}}class Zun extends Bn{constructor(){super({id:Pje,label:P("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:Bt.and(ke.writable,PD(Go.QuickFix)),kbOpts:{kbExpr:ke.textInputFocus,primary:1625,mac:{primary:2649},weight:100}})}run(e,t){return Jb(t,P("editor.action.autoFix.noneMessage","No auto fixes available"),{include:Go.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",Zh.AutoFix)}}Ls(H7.ID,H7,3);Ls(ab.ID,ab,4);rn(jun);rn(Wun);rn(Uun);rn($un);rn(Zun);rn(qun);Cn(new zun);Ca.as(jp.Configuration).registerConfiguration({...gW,properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:P("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}});Ca.as(jp.Configuration).registerConfiguration({...gW,properties:{"editor.codeActionWidget.includeNearbyQuickFixes":{type:"boolean",scope:5,description:P("includeNearbyQuickFixes","Enable/disable showing nearest Quick Fix within a line when not currently on a diagnostic."),default:!0}}});class Mre{constructor(){this.lenses=[],this._disposables=new jt}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const i of e.lenses)this.lenses.push({symbol:i,provider:t})}}async function qje(n,e,t){const i=n.ordered(e),r=new Map,s=new Mre,a=i.map(async(o,l)=>{r.set(o,l);try{const c=await Promise.resolve(o.provideCodeLenses(e,t));c&&s.add(c,o)}catch(c){za(c)}});return await Promise.all(a),s.lenses=s.lenses.sort((o,l)=>o.symbol.range.startLineNumber<l.symbol.range.startLineNumber?-1:o.symbol.range.startLineNumber>l.symbol.range.startLineNumber?1:r.get(o.provider)<r.get(l.provider)?-1:r.get(o.provider)>r.get(l.provider)?1:o.symbol.range.startColumn<l.symbol.range.startColumn?-1:o.symbol.range.startColumn>l.symbol.range.startColumn?1:0),s}ss.registerCommand("_executeCodeLensProvider",function(n,...e){let[t,i]=e;_s(Ai.isUri(t)),_s(typeof i=="number"||!i);const{codeLensProvider:r}=n.get(Zn),s=n.get(fa).getModel(t);if(!s)throw j2();const a=[],o=new jt;return qje(r,s,qr.None).then(l=>{o.add(l);const c=[];for(const u of l.lenses)i==null||u.symbol.command?a.push(u.symbol):i-- >0&&u.provider.resolveCodeLens&&c.push(Promise.resolve(u.provider.resolveCodeLens(s,u.symbol,qr.None)).then(h=>a.push(h||u.symbol)));return Promise.all(c)}).then(()=>a).finally(()=>{setTimeout(()=>o.dispose(),100)})});var Gun=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},Kun=function(n,e){return function(t,i){e(t,i,n)}};const Zje=Yr("ICodeLensCache");class s_e{constructor(e,t){this.lineCount=e,this.data=t}}let Ore=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new $4(20,.75);const t="codelens/cache";XS(co,()=>e.remove(t,1));const i="codelens/cache2",r=e.get(i,1,"{}");this._deserialize(r),mn.once(e.onWillSaveState)(s=>{s.reason===hA.SHUTDOWN&&e.store(i,this._serialize(),1,1)})}put(e,t){const i=t.lenses.map(a=>{var o;return{range:a.symbol.range,command:a.symbol.command&&{id:"",title:(o=a.symbol.command)===null||o===void 0?void 0:o.title}}}),r=new Mre;r.add({lenses:i,dispose:()=>{}},this._fakeProvider);const s=new s_e(e.getLineCount(),r);this._cache.set(e.uri.toString(),s)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,i]of this._cache){const r=new Set;for(const s of i.data.lenses)r.add(s.symbol.range.startLineNumber);e[t]={lineCount:i.lineCount,lines:[...r.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const i in t){const r=t[i],s=[];for(const o of r.lines)s.push({range:new pe(o,1,o,11)});const a=new Mre;a.add({lenses:s,dispose(){}},this._fakeProvider),this._cache.set(i,new s_e(r.lineCount,a))}}catch{}}};Ore=Gun([Kun(0,sf)],Ore);os(Zje,Ore,1);class Yun{constructor(e,t,i){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){this._lastHeight===void 0?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return this._lastHeight!==0&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class AA{constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id=`codelens.widget-${AA._idPool++}`,this.updatePosition(t),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(e,t){this._commands.clear();const i=[];let r=!1;for(let s=0;s<e.length;s++){const a=e[s];if(a&&(r=!0,a.command)){const o=t7(a.command.title.trim());if(a.command.id){const l=`c${AA._idPool++}`;i.push(hn("a",{id:l,title:a.command.tooltip,role:"button"},...o)),this._commands.set(l,a.command)}else i.push(hn("span",{title:a.command.tooltip},...o));s+1<e.length&&i.push(hn("span",void 0," | "))}}r?(Pc(this._domNode,...i),this._isEmpty&&t&&this._domNode.classList.add("fadein"),this._isEmpty=!1):Pc(this._domNode,hn("span",void 0,"no commands"))}getCommand(e){return e.parentElement===this._domNode?this._commands.get(e.id):void 0}getId(){return this._id}getDomNode(){return this._domNode}updatePosition(e){const t=this._editor.getModel().getLineFirstNonWhitespaceColumn(e);this._widgetPosition={position:{lineNumber:e,column:t},preference:[1]}}getPosition(){return this._widgetPosition||null}}AA._idPool=0;class xY{constructor(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}addDecoration(e,t){this._addDecorations.push(e),this._addDecorationsCallbacks.push(t)}removeDecoration(e){this._removeDecorations.push(e)}commit(e){const t=e.deltaDecorations(this._removeDecorations,this._addDecorations);for(let i=0,r=t.length;i<r;i++)this._addDecorationsCallbacks[i](t[i])}}const o_e=fr.register({collapseOnReplaceEdit:!0,description:"codelens"});class a_e{constructor(e,t,i,r,s,a){this._isDisposed=!1,this._editor=t,this._data=e,this._decorationIds=[];let o;const l=[];this._data.forEach((c,u)=>{c.symbol.command&&l.push(c.symbol),i.addDecoration({range:c.symbol.range,options:o_e},h=>this._decorationIds[u]=h),o?o=pe.plusRange(o,c.symbol.range):o=pe.lift(c.symbol.range)}),this._viewZone=new Yun(o.startLineNumber-1,s,a),this._viewZoneId=r.addZone(this._viewZone),l.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(l,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new AA(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t==null||t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((e,t)=>{const i=this._editor.getModel().getDecorationRange(e),r=this._data[t].symbol;return!!(i&&pe.isEmpty(r.range)===i.isEmpty())})}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((i,r)=>{t.addDecoration({range:i.symbol.range,options:o_e},s=>this._decorationIds[r]=s)})}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t<this._decorationIds.length;t++){const i=e.getDecorationRange(this._decorationIds[t]);i&&(this._data[t].symbol.range=i)}return this._data}updateCommands(e){this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(e,!0);for(let t=0;t<this._data.length;t++){const i=e[t];if(i){const{symbol:r}=this._data[t];r.command=i.command||r.command}}}getCommand(e){var t;return(t=this._contentWidget)===null||t===void 0?void 0:t.getCommand(e)}getLineNumber(){const e=this._editor.getModel().getDecorationRange(this._decorationIds[0]);return e?e.startLineNumber:-1}update(e){if(this.isValid()){const t=this._editor.getModel().getDecorationRange(this._decorationIds[0]);t&&(this._viewZone.afterLineNumber=t.startLineNumber-1,e.layoutZone(this._viewZoneId),this._contentWidget&&(this._contentWidget.updatePosition(t.startLineNumber),this._editor.layoutContentWidget(this._contentWidget)))}}}var Xun=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},CS=function(n,e){return function(t,i){e(t,i,n)}};let uC=class{constructor(e,t,i,r,s,a){this._editor=e,this._languageFeaturesService=t,this._commandService=r,this._notificationService=s,this._codeLensCache=a,this._disposables=new jt,this._localToDispose=new jt,this._lenses=[],this._oldCodeLensModels=new jt,this._provideCodeLensDebounce=i.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=i.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new oo(()=>this._resolveCodeLensesInViewport(),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeConfiguration(o=>{(o.hasChanged(50)||o.hasChanged(19)||o.hasChanged(18))&&this._updateLensStyle(),o.hasChanged(17)&&this._onModelChange()})),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),(e=this._currentCodeLensModel)===null||e===void 0||e.dispose()}_getLayoutInfo(){const e=Math.max(1.3,this._editor.getOption(67)/this._editor.getOption(52));let t=this._editor.getOption(19);return(!t||t<5)&&(t=this._editor.getOption(52)*.9|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(18),r=this._editor.getOption(50),{style:s}=this._editor.getContainerDomNode();s.setProperty("--vscode-editorCodeLens-lineHeight",`${e}px`),s.setProperty("--vscode-editorCodeLens-fontSize",`${t}px`),s.setProperty("--vscode-editorCodeLens-fontFeatureSettings",r.fontFeatureSettings),i&&(s.setProperty("--vscode-editorCodeLens-fontFamily",i),s.setProperty("--vscode-editorCodeLens-fontFamilyDefault",uh.fontFamily)),this._editor.changeViewZones(a=>{for(const o of this._lenses)o.updateHeight(e,a)})}_localDispose(){var e,t,i;(e=this._getCodeLensModelPromise)===null||e===void 0||e.cancel(),this._getCodeLensModelPromise=void 0,(t=this._resolveCodeLensesPromise)===null||t===void 0||t.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),(i=this._currentCodeLensModel)===null||i===void 0||i.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e||!this._editor.getOption(17)||e.isTooLargeForTokenization())return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e)){t&&S7(()=>{const r=this._codeLensCache.get(e);t===r&&(this._codeLensCache.delete(e),this._onModelChange())},30*1e3,this._localToDispose);return}for(const r of this._languageFeaturesService.codeLensProvider.all(e))if(typeof r.onDidChange=="function"){const s=r.onDidChange(()=>i.schedule());this._localToDispose.add(s)}const i=new oo(()=>{var r;const s=Date.now();(r=this._getCodeLensModelPromise)===null||r===void 0||r.cancel(),this._getCodeLensModelPromise=rc(a=>qje(this._languageFeaturesService.codeLensProvider,e,a)),this._getCodeLensModelPromise.then(a=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=a,this._codeLensCache.put(e,a);const o=this._provideCodeLensDebounce.update(e,Date.now()-s);i.delay=o,this._renderCodeLensSymbols(a),this._resolveCodeLensesInViewportSoon()},hr)},this._provideCodeLensDebounce.get(e));this._localToDispose.add(i),this._localToDispose.add(Qi(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{var r;this._editor.changeDecorations(s=>{this._editor.changeViewZones(a=>{const o=[];let l=-1;this._lenses.forEach(u=>{!u.isValid()||l===u.getLineNumber()?o.push(u):(u.update(a),l=u.getLineNumber())});const c=new xY;o.forEach(u=>{u.dispose(c,a),this._lenses.splice(this._lenses.indexOf(u),1)}),c.commit(s)})}),i.schedule(),this._resolveCodeLensesScheduler.cancel(),(r=this._resolveCodeLensesPromise)===null||r===void 0||r.cancel(),this._resolveCodeLensesPromise=void 0})),this._localToDispose.add(this._editor.onDidFocusEditorWidget(()=>{i.schedule()})),this._localToDispose.add(this._editor.onDidBlurEditorText(()=>{i.cancel()})),this._localToDispose.add(this._editor.onDidScrollChange(r=>{r.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(Qi(()=>{if(this._editor.getModel()){const r=kp.capture(this._editor);this._editor.changeDecorations(s=>{this._editor.changeViewZones(a=>{this._disposeAllLenses(s,a)})}),r.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseDown(r=>{if(r.target.type!==9)return;let s=r.target.element;if((s==null?void 0:s.tagName)==="SPAN"&&(s=s.parentElement),(s==null?void 0:s.tagName)==="A")for(const a of this._lenses){const o=a.getCommand(s);if(o){this._commandService.executeCommand(o.id,...o.arguments||[]).catch(l=>this._notificationService.error(l));break}}})),i.schedule()}_disposeAllLenses(e,t){const i=new xY;for(const r of this._lenses)r.dispose(i,t);e&&i.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;const t=this._editor.getModel().getLineCount(),i=[];let r;for(const o of e.lenses){const l=o.symbol.range.startLineNumber;l<1||l>t||(r&&r[r.length-1].symbol.range.startLineNumber===l?r.push(o):(r=[o],i.push(r)))}if(!i.length&&!this._lenses.length)return;const s=kp.capture(this._editor),a=this._getLayoutInfo();this._editor.changeDecorations(o=>{this._editor.changeViewZones(l=>{const c=new xY;let u=0,h=0;for(;h<i.length&&u<this._lenses.length;){const d=i[h][0].symbol.range.startLineNumber,f=this._lenses[u].getLineNumber();f<d?(this._lenses[u].dispose(c,l),this._lenses.splice(u,1)):f===d?(this._lenses[u].updateCodeLensSymbols(i[h],c),h++,u++):(this._lenses.splice(u,0,new a_e(i[h],this._editor,c,l,a.codeLensHeight,()=>this._resolveCodeLensesInViewportSoon())),u++,h++)}for(;u<this._lenses.length;)this._lenses[u].dispose(c,l),this._lenses.splice(u,1);for(;h<i.length;)this._lenses.push(new a_e(i[h],this._editor,c,l,a.codeLensHeight,()=>this._resolveCodeLensesInViewportSoon())),h++;c.commit(o)})}),s.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var e;(e=this._resolveCodeLensesPromise)===null||e===void 0||e.cancel(),this._resolveCodeLensesPromise=void 0;const t=this._editor.getModel();if(!t)return;const i=[],r=[];if(this._lenses.forEach(o=>{const l=o.computeIfNecessary(t);l&&(i.push(l),r.push(o))}),i.length===0)return;const s=Date.now(),a=rc(o=>{const l=i.map((c,u)=>{const h=new Array(c.length),d=c.map((f,p)=>!f.symbol.command&&typeof f.provider.resolveCodeLens=="function"?Promise.resolve(f.provider.resolveCodeLens(t,f.symbol,o)).then(g=>{h[p]=g},za):(h[p]=f.symbol,Promise.resolve(void 0)));return Promise.all(d).then(()=>{!o.isCancellationRequested&&!r[u].isDisposed()&&r[u].updateCommands(h)})});return Promise.all(l)});this._resolveCodeLensesPromise=a,this._resolveCodeLensesPromise.then(()=>{const o=this._resolveCodeLensesDebounce.update(t,Date.now()-s);this._resolveCodeLensesScheduler.delay=o,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),a===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)},o=>{hr(o),a===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)})}async getModel(){var e;return await this._getCodeLensModelPromise,await this._resolveCodeLensesPromise,!((e=this._currentCodeLensModel)===null||e===void 0)&&e.isDisposed?void 0:this._currentCodeLensModel}};uC.ID="css.editor.codeLens";uC=Xun([CS(1,Zn),CS(2,e0),CS(3,Uo),CS(4,hl),CS(5,Zje)],uC);Ls(uC.ID,uC,1);rn(class extends Bn{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:ke.hasCodeLensProvider,label:P("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}async run(e,t){if(!t.hasModel())return;const i=e.get(Up),r=e.get(Uo),s=e.get(hl),a=t.getSelection().positionLineNumber,o=t.getContribution(uC.ID);if(!o)return;const l=await o.getModel();if(!l)return;const c=[];for(const d of l.lenses)d.symbol.command&&d.symbol.range.startLineNumber===a&&c.push({label:d.symbol.command.title,command:d.symbol.command});if(c.length===0)return;const u=await i.pick(c,{canPickMany:!1,placeHolder:P("placeHolder","Select a command")});if(!u)return;let h=u.command;if(l.isDisposed){const d=await o.getModel(),f=d==null?void 0:d.lenses.find(p=>{var g;return p.symbol.range.startLineNumber===a&&((g=p.symbol.command)===null||g===void 0?void 0:g.title)===h.title});if(!f||!f.symbol.command)return;h=f.symbol.command}try{await r.executeCommand(h.id,...h.arguments||[])}catch(d){s.error(d)}}});var Jun=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},SY=function(n,e){return function(t,i){e(t,i,n)}};class Nhe{constructor(e,t){this._editorWorkerClient=new Pue(e,!1,"editorWorkerService",t)}async provideDocumentColors(e,t){return this._editorWorkerClient.computeDefaultDocumentColors(e.uri)}provideColorPresentations(e,t,i){const r=t.range,s=t.color,a=s.alpha,o=new xt(new hs(Math.round(255*s.red),Math.round(255*s.green),Math.round(255*s.blue),a)),l=a?xt.Format.CSS.formatRGB(o):xt.Format.CSS.formatRGBA(o),c=a?xt.Format.CSS.formatHSL(o):xt.Format.CSS.formatHSLA(o),u=a?xt.Format.CSS.formatHex(o):xt.Format.CSS.formatHexA(o),h=[];return h.push({label:l,textEdit:{range:r,text:l}}),h.push({label:c,textEdit:{range:r,text:c}}),h.push({label:u,textEdit:{range:r,text:u}}),h}}let Nre=class extends ct{constructor(e,t,i){super(),this._register(i.colorProvider.register("*",new Nhe(e,t)))}};Nre=Jun([SY(0,fa),SY(1,Ro),SY(2,Zn)],Nre);ID(Nre);async function Gje(n,e,t,i=!0){return Rhe(new edn,n,e,t,i)}function Kje(n,e,t,i){return Promise.resolve(t.provideColorPresentations(n,e,i))}class edn{constructor(){}async compute(e,t,i,r){const s=await e.provideDocumentColors(t,i);if(Array.isArray(s))for(const a of s)r.push({colorInfo:a,provider:e});return Array.isArray(s)}}class tdn{constructor(){}async compute(e,t,i,r){const s=await e.provideDocumentColors(t,i);if(Array.isArray(s))for(const a of s)r.push({range:a.range,color:[a.color.red,a.color.green,a.color.blue,a.color.alpha]});return Array.isArray(s)}}class ndn{constructor(e){this.colorInfo=e}async compute(e,t,i,r){const s=await e.provideColorPresentations(t,this.colorInfo,qr.None);return Array.isArray(s)&&r.push(...s),Array.isArray(s)}}async function Rhe(n,e,t,i,r){let s=!1,a;const o=[],l=e.ordered(t);for(let c=l.length-1;c>=0;c--){const u=l[c];if(u instanceof Nhe)a=u;else try{await n.compute(u,t,i,o)&&(s=!0)}catch(h){za(h)}}return s?o:a&&r?(await n.compute(a,t,i,o),o):[]}function Yje(n,e){const{colorProvider:t}=n.get(Zn),i=n.get(fa).getModel(e);if(!i)throw j2();const r=n.get(Pr).getValue("editor.defaultColorDecorators",{resource:e});return{model:i,colorProviderRegistry:t,isDefaultColorDecoratorsEnabled:r}}ss.registerCommand("_executeDocumentColorProvider",function(n,...e){const[t]=e;if(!(t instanceof Ai))throw j2();const{model:i,colorProviderRegistry:r,isDefaultColorDecoratorsEnabled:s}=Yje(n,t);return Rhe(new tdn,r,i,qr.None,s)});ss.registerCommand("_executeColorPresentationProvider",function(n,...e){const[t,i]=e,{uri:r,range:s}=i;if(!(r instanceof Ai)||!Array.isArray(t)||t.length!==4||!pe.isIRange(s))throw j2();const{model:a,colorProviderRegistry:o,isDefaultColorDecoratorsEnabled:l}=Yje(n,r),[c,u,h,d]=t;return Rhe(new ndn({range:s,color:{red:c,green:u,blue:h,alpha:d}}),o,a,qr.None,l)});var idn=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},LY=function(n,e){return function(t,i){e(t,i,n)}},Rre;const Xje=Object.create({});let F7=Rre=class extends ct{constructor(e,t,i,r){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=i,this._localToDispose=this._register(new jt),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new dD(this._editor),this._decoratorLimitReporter=new rdn,this._colorDecorationClassRefs=this._register(new jt),this._debounceInformation=r.for(i.colorProvider,"Document Colors",{min:Rre.RECOMPUTE_TIME}),this._register(e.onDidChangeModel(()=>{this._isColorDecoratorsEnabled=this.isEnabled(),this.updateColors()})),this._register(e.onDidChangeModelLanguage(()=>this.updateColors())),this._register(i.colorProvider.onDidChange(()=>this.updateColors())),this._register(e.onDidChangeConfiguration(s=>{const a=this._isColorDecoratorsEnabled;this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(147);const o=a!==this._isColorDecoratorsEnabled||s.hasChanged(21),l=s.hasChanged(147);(o||l)&&(this._isColorDecoratorsEnabled?this.updateColors():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(147),this.updateColors()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageId(),i=this._configurationService.getValue(t);if(i&&typeof i=="object"){const r=i.colorDecorators;if(r&&r.enable!==void 0&&!r.enable)return r.enable}return this._editor.getOption(20)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}updateColors(){if(this.stop(),!this._isColorDecoratorsEnabled)return;const e=this._editor.getModel();!e||!this._languageFeaturesService.colorProvider.has(e)||(this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._timeoutTimer||(this._timeoutTimer=new rf,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},this._debounceInformation.get(e)))})),this.beginCompute())}async beginCompute(){this._computePromise=rc(async e=>{const t=this._editor.getModel();if(!t)return[];const i=new cu(!1),r=await Gje(this._languageFeaturesService.colorProvider,t,e,this._isDefaultColorDecoratorsEnabled);return this._debounceInformation.update(t,i.elapsed()),r});try{const e=await this._computePromise;this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null}catch(e){hr(e)}}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map(i=>({range:{startLineNumber:i.colorInfo.range.startLineNumber,startColumn:i.colorInfo.range.startColumn,endLineNumber:i.colorInfo.range.endLineNumber,endColumn:i.colorInfo.range.endColumn},options:fr.EMPTY}));this._editor.changeDecorations(i=>{this._decorationsIds=i.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach((r,s)=>this._colorDatas.set(r,e[s]))})}updateColorDecorators(e){this._colorDecorationClassRefs.clear();const t=[],i=this._editor.getOption(21);for(let s=0;s<e.length&&t.length<i;s++){const{red:a,green:o,blue:l,alpha:c}=e[s].colorInfo.color,u=new hs(Math.round(a*255),Math.round(o*255),Math.round(l*255),c),h=`rgba(${u.r}, ${u.g}, ${u.b}, ${u.a})`,d=this._colorDecorationClassRefs.add(this._ruleFactory.createClassNameRef({backgroundColor:h}));t.push({range:{startLineNumber:e[s].colorInfo.range.startLineNumber,startColumn:e[s].colorInfo.range.startColumn,endLineNumber:e[s].colorInfo.range.endLineNumber,endColumn:e[s].colorInfo.range.endColumn},options:{description:"colorDetector",before:{content:hPe,inlineClassName:`${d.className} colorpicker-color-decoration`,inlineClassNameAffectsLetterSpacing:!0,attachedData:Xje}}})}const r=i<e.length?i:!1;this._decoratorLimitReporter.update(e.length,r),this._colorDecoratorIds.set(t)}removeAllDecorations(){this._editor.removeDecorations(this._decorationsIds),this._decorationsIds=[],this._colorDecoratorIds.clear(),this._colorDecorationClassRefs.clear()}getColorData(e){const t=this._editor.getModel();if(!t)return null;const i=t.getDecorationsInRange(pe.fromPositions(e,e)).filter(r=>this._colorDatas.has(r.id));return i.length===0?null:this._colorDatas.get(i[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};F7.ID="editor.contrib.colorDetector";F7.RECOMPUTE_TIME=1e3;F7=Rre=idn([LY(1,Pr),LY(2,Zn),LY(3,e0)],F7);class rdn{constructor(){this._onDidChange=new Je,this._computed=0,this._limited=!1}update(e,t){(e!==this._computed||t!==this._limited)&&(this._computed=e,this._limited=t,this._onDidChange.fire())}}Ls(F7.ID,F7,1);class sdn{get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(e,t,i){this.presentationIndex=i,this._onColorFlushed=new Je,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new Je,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new Je,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){let i=-1;for(let r=0;r<this.colorPresentations.length;r++)if(t.toLowerCase()===this.colorPresentations[r].label){i=r;break}if(i===-1){const r=t.split("(")[0].toLowerCase();for(let s=0;s<this.colorPresentations.length;s++)if(this.colorPresentations[s].label.toLowerCase().startsWith(r)){i=s;break}}i!==-1&&i!==this.presentationIndex&&(this.presentationIndex=i,this._onDidChangePresentation.fire(this.presentation))}flushColor(){this._onColorFlushed.fire(this._color)}}const I1=hn;class odn extends ct{constructor(e,t,i,r=!1){super(),this.model=t,this.showingStandaloneColorPicker=r,this._closeButton=null,this._domNode=I1(".colorpicker-header"),$t(e,this._domNode),this._pickedColorNode=$t(this._domNode,I1(".picked-color")),$t(this._pickedColorNode,I1("span.codicon.codicon-color-mode")),this._pickedColorPresentation=$t(this._pickedColorNode,document.createElement("span")),this._pickedColorPresentation.classList.add("picked-color-presentation");const s=P("clickToToggleColorOptions","Click to toggle color options (rgb/hsl/hex)");this._pickedColorNode.setAttribute("title",s),this._originalColorNode=$t(this._domNode,I1(".original-color")),this._originalColorNode.style.backgroundColor=xt.Format.CSS.format(this.model.originalColor)||"",this.backgroundColor=i.getColorTheme().getColor(sB)||xt.white,this._register(i.onDidColorThemeChange(a=>{this.backgroundColor=a.getColor(sB)||xt.white})),this._register(Et(this._pickedColorNode,dn.CLICK,()=>this.model.selectNextColorPresentation())),this._register(Et(this._originalColorNode,dn.CLICK,()=>{this.model.color=this.model.originalColor,this.model.flushColor()})),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this._pickedColorNode.style.backgroundColor=xt.Format.CSS.format(t.color)||"",this._pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color),this.showingStandaloneColorPicker&&(this._domNode.classList.add("standalone-colorpicker"),this._closeButton=this._register(new adn(this._domNode)))}get closeButton(){return this._closeButton}get pickedColorNode(){return this._pickedColorNode}get originalColorNode(){return this._originalColorNode}onDidChangeColor(e){this._pickedColorNode.style.backgroundColor=xt.Format.CSS.format(e)||"",this._pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this._pickedColorPresentation.textContent=this.model.presentation?this.model.presentation.label:""}}class adn extends ct{constructor(e){super(),this._onClicked=this._register(new Je),this.onClicked=this._onClicked.event,this._button=document.createElement("div"),this._button.classList.add("close-button"),$t(e,this._button);const t=document.createElement("div");t.classList.add("close-button-inner-div"),$t(this._button,t),$t(t,I1(".button"+Ni.asCSSSelector(Oa("color-picker-close",pn.close,P("closeIcon","Icon to close the color picker"))))).classList.add("close-icon"),this._register(Et(this._button,dn.CLICK,()=>{this._onClicked.fire()}))}}class ldn extends ct{constructor(e,t,i,r=!1){super(),this.model=t,this.pixelRatio=i,this._insertButton=null,this._domNode=I1(".colorpicker-body"),$t(e,this._domNode),this._saturationBox=new cdn(this._domNode,this.model,this.pixelRatio),this._register(this._saturationBox),this._register(this._saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this._saturationBox.onColorFlushed(this.flushColor,this)),this._opacityStrip=new udn(this._domNode,this.model,r),this._register(this._opacityStrip),this._register(this._opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this._opacityStrip.onColorFlushed(this.flushColor,this)),this._hueStrip=new ddn(this._domNode,this.model,r),this._register(this._hueStrip),this._register(this._hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this._hueStrip.onColorFlushed(this.flushColor,this)),r&&(this._insertButton=this._register(new hdn(this._domNode)),this._domNode.classList.add("standalone-colorpicker"))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const i=this.model.color.hsva;this.model.color=new xt(new q3(i.h,e,t,i.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new xt(new q3(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,i=(1-e)*360;this.model.color=new xt(new q3(i===360?0:i,t.s,t.v,t.a))}get domNode(){return this._domNode}get saturationBox(){return this._saturationBox}get enterButton(){return this._insertButton}layout(){this._saturationBox.layout(),this._opacityStrip.layout(),this._hueStrip.layout()}}class cdn extends ct{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this._onDidChange=new Je,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new Je,this.onColorFlushed=this._onColorFlushed.event,this._domNode=I1(".saturation-wrap"),$t(e,this._domNode),this._canvas=document.createElement("canvas"),this._canvas.className="saturation-box",$t(this._domNode,this._canvas),this.selection=I1(".saturation-selection"),$t(this._domNode,this.selection),this.layout(),this._register(Et(this._domNode,dn.POINTER_DOWN,r=>this.onPointerDown(r))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}get domNode(){return this._domNode}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this.monitor=this._register(new fQ);const t=ul(this._domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,r=>this.onDidChangePosition(r.pageX-t.left,r.pageY-t.top),()=>null);const i=Et(e.target.ownerDocument,dn.POINTER_UP,()=>{this._onColorFlushed.fire(),i.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0)}onDidChangePosition(e,t){const i=Math.max(0,Math.min(1,e/this.width)),r=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(i,r),this._onDidChange.fire({s:i,v:r})}layout(){this.width=this._domNode.offsetWidth,this.height=this._domNode.offsetHeight,this._canvas.width=this.width*this.pixelRatio,this._canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new xt(new q3(e.h,1,1,1)),i=this._canvas.getContext("2d"),r=i.createLinearGradient(0,0,this._canvas.width,0);r.addColorStop(0,"rgba(255, 255, 255, 1)"),r.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),r.addColorStop(1,"rgba(255, 255, 255, 0)");const s=i.createLinearGradient(0,0,0,this._canvas.height);s.addColorStop(0,"rgba(0, 0, 0, 0)"),s.addColorStop(1,"rgba(0, 0, 0, 1)"),i.rect(0,0,this._canvas.width,this._canvas.height),i.fillStyle=xt.Format.CSS.format(t),i.fill(),i.fillStyle=r,i.fill(),i.fillStyle=s,i.fill()}paintSelection(e,t){this.selection.style.left=`${e*this.width}px`,this.selection.style.top=`${this.height-t*this.height}px`}onDidChangeColor(e){if(this.monitor&&this.monitor.isMonitoring())return;this.paint();const t=e.hsva;this.paintSelection(t.s,t.v)}}class Jje extends ct{constructor(e,t,i=!1){super(),this.model=t,this._onDidChange=new Je,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new Je,this.onColorFlushed=this._onColorFlushed.event,i?(this.domNode=$t(e,I1(".standalone-strip")),this.overlay=$t(this.domNode,I1(".standalone-overlay"))):(this.domNode=$t(e,I1(".strip")),this.overlay=$t(this.domNode,I1(".overlay"))),this.slider=$t(this.domNode,I1(".slider")),this.slider.style.top="0px",this._register(Et(this.domNode,dn.POINTER_DOWN,r=>this.onPointerDown(r))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onDidChangeColor(e){const t=this.getValue(e);this.updateSliderPosition(t)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._register(new fQ),i=ul(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,s=>this.onDidChangeTop(s.pageY-i.top),()=>null);const r=Et(e.target.ownerDocument,dn.POINTER_UP,()=>{this._onColorFlushed.fire(),r.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")},!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=`${(1-e)*this.height}px`}}class udn extends Jje{constructor(e,t,i=!1){super(e,t,i),this.domNode.classList.add("opacity-strip"),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){super.onDidChangeColor(e);const{r:t,g:i,b:r}=e.rgba,s=new xt(new hs(t,i,r,1)),a=new xt(new hs(t,i,r,0));this.overlay.style.background=`linear-gradient(to bottom, ${s} 0%, ${a} 100%)`}getValue(e){return e.hsva.a}}class ddn extends Jje{constructor(e,t,i=!1){super(e,t,i),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class hdn extends ct{constructor(e){super(),this._onClicked=this._register(new Je),this.onClicked=this._onClicked.event,this._button=$t(e,document.createElement("button")),this._button.classList.add("insert-button"),this._button.textContent="Insert",this._register(Et(this._button,dn.CLICK,()=>{this._onClicked.fire()}))}get button(){return this._button}}class fdn extends i2{constructor(e,t,i,r,s=!1){super(),this.model=t,this.pixelRatio=i,this._register(Dk.getInstance(ki(e)).onDidChange(()=>this.layout()));const a=I1(".colorpicker-widget");e.appendChild(a),this.header=this._register(new odn(a,this.model,r,s)),this.body=this._register(new ldn(a,this.model,this.pixelRatio,s))}layout(){this.body.layout()}}var eze=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},tze=function(n,e){return function(t,i){e(t,i,n)}};class pdn{constructor(e,t,i,r){this.owner=e,this.range=t,this.model=i,this.provider=r,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let mV=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=2}computeSync(e,t){return[]}computeAsync(e,t,i){return yl.fromPromise(this._computeAsync(e,t,i))}async _computeAsync(e,t,i){if(!this._editor.hasModel())return[];const r=F7.get(this._editor);if(!r)return[];for(const s of t){if(!r.isColorDecoration(s))continue;const a=r.getColorData(s.range.getStartPosition());if(a)return[await nze(this,this._editor.getModel(),a.colorInfo,a.provider)]}return[]}renderHoverParts(e,t){return ize(this,this._editor,this._themeService,t,e)}};mV=eze([tze(1,ql)],mV);class gdn{constructor(e,t,i,r){this.owner=e,this.range=t,this.model=i,this.provider=r}}let IA=class{constructor(e,t){this._editor=e,this._themeService=t,this._color=null}async createColorHover(e,t,i){if(!this._editor.hasModel()||!F7.get(this._editor))return null;const s=await Gje(i,this._editor.getModel(),qr.None);let a=null,o=null;for(const h of s){const d=h.colorInfo;pe.containsRange(d.range,e.range)&&(a=d,o=h.provider)}const l=a??e,c=o??t,u=!!a;return{colorHover:await nze(this,this._editor.getModel(),l,c),foundInEditor:u}}async updateEditorModel(e){if(!this._editor.hasModel())return;const t=e.model;let i=new pe(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn);this._color&&(await qP(this._editor.getModel(),t,this._color,i,e),i=rze(this._editor,i,t))}renderHoverParts(e,t){return ize(this,this._editor,this._themeService,t,e)}set color(e){this._color=e}get color(){return this._color}};IA=eze([tze(1,ql)],IA);async function nze(n,e,t,i){const r=e.getValueInRange(t.range),{red:s,green:a,blue:o,alpha:l}=t.color,c=new hs(Math.round(s*255),Math.round(a*255),Math.round(o*255),l),u=new xt(c),h=await Kje(e,t,i,qr.None),d=new sdn(u,[],0);return d.colorPresentations=h||[],d.guessColorPresentation(u,r),n instanceof mV?new pdn(n,pe.lift(t.range),d,i):new gdn(n,pe.lift(t.range),d,i)}function ize(n,e,t,i,r){if(i.length===0||!e.hasModel())return ct.None;if(r.setMinimumDimensions){const d=e.getOption(67)+8;r.setMinimumDimensions(new Os(302,d))}const s=new jt,a=i[0],o=e.getModel(),l=a.model,c=s.add(new fdn(r.fragment,l,e.getOption(143),t,n instanceof IA));r.setColorPicker(c);let u=!1,h=new pe(a.range.startLineNumber,a.range.startColumn,a.range.endLineNumber,a.range.endColumn);if(n instanceof IA){const d=i[0].model.color;n.color=d,qP(o,l,d,h,a),s.add(l.onColorFlushed(f=>{n.color=f}))}else s.add(l.onColorFlushed(async d=>{await qP(o,l,d,h,a),u=!0,h=rze(e,h,l)}));return s.add(l.onDidChangeColor(d=>{qP(o,l,d,h,a)})),s.add(e.onDidChangeModelContent(d=>{u?u=!1:(r.hide(),e.focus())})),s}function rze(n,e,t){var i,r;const s=[],a=(i=t.presentation.textEdit)!==null&&i!==void 0?i:{range:e,text:t.presentation.label,forceMoveMarkers:!1};s.push(a),t.presentation.additionalTextEdits&&s.push(...t.presentation.additionalTextEdits);const o=pe.lift(a.range),l=n.getModel()._setTrackedRange(null,o,3);return n.executeEdits("colorpicker",s),n.pushUndoStop(),(r=n.getModel()._getTrackedRange(l))!==null&&r!==void 0?r:o}async function qP(n,e,t,i,r){const s=await Kje(n,{range:i,color:{red:t.rgba.r/255,green:t.rgba.g/255,blue:t.rgba.b/255,alpha:t.rgba.a}},r.provider,qr.None);e.colorPresentations=s||[]}const sze="editor.action.showHover",mdn="editor.action.showDefinitionPreviewHover",Tdn="editor.action.scrollUpHover",bdn="editor.action.scrollDownHover",_dn="editor.action.scrollLeftHover",vdn="editor.action.scrollRightHover",ydn="editor.action.pageUpHover",wdn="editor.action.pageDownHover",Cdn="editor.action.goToTopHover",Qdn="editor.action.goToBottomHover",Phe="editor.action.increaseHoverVerbosityLevel",Hhe="editor.action.decreaseHoverVerbosityLevel",oze="editor.action.inlineSuggest.commit",aze="editor.action.inlineSuggest.showPrevious",lze="editor.action.inlineSuggest.showNext";var Fhe=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},M0=function(n,e){return function(t,i){e(t,i,n)}},ZP;let Pre=class extends ct{constructor(e,t,i){super(),this.editor=e,this.model=t,this.instantiationService=i,this.alwaysShowToolbar=io(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(62).showToolbar==="always"),this.sessionPosition=void 0,this.position=or(this,r=>{var s,a,o;const l=(s=this.model.read(r))===null||s===void 0?void 0:s.primaryGhostText.read(r);if(!this.alwaysShowToolbar.read(r)||!l||l.parts.length===0)return this.sessionPosition=void 0,null;const c=l.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==l.lineNumber&&(this.sessionPosition=void 0);const u=new it(l.lineNumber,Math.min(c,(o=(a=this.sessionPosition)===null||a===void 0?void 0:a.column)!==null&&o!==void 0?o:Number.MAX_SAFE_INTEGER));return this.sessionPosition=u,u}),this._register(K2((r,s)=>{const a=this.model.read(r);if(!a||!this.alwaysShowToolbar.read(r))return;const o=s.add(this.instantiationService.createInstance(B7,this.editor,!0,this.position,a.selectedInlineCompletionIndex,a.inlineCompletionsCount,a.activeCommands));e.addContentWidget(o),s.add(Qi(()=>e.removeContentWidget(o))),s.add(Rr(l=>{this.position.read(l)&&a.lastTriggerKind.read(l)!==xm.Explicit&&a.triggerExplicitly()}))}))}};Pre=Fhe([M0(2,Si)],Pre);const xdn=Oa("inline-suggestion-hints-next",pn.chevronRight,P("parameterHintsNextIcon","Icon for show next parameter hint.")),Sdn=Oa("inline-suggestion-hints-previous",pn.chevronLeft,P("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let B7=ZP=class extends ct{static get dropDownVisible(){return this._dropDownVisible}createCommandAction(e,t,i){const r=new Fh(e,t,i,!0,()=>this._commandService.executeCommand(e)),s=this.keybindingService.lookupKeybinding(e,this._contextKeyService);let a=t;return s&&(a=P({},"{0} ({1})",t,s.getLabel())),r.tooltip=a,r}constructor(e,t,i,r,s,a,o,l,c,u,h){super(),this.editor=e,this.withBorder=t,this._position=i,this._currentSuggestionIdx=r,this._suggestionCount=s,this._extraCommands=a,this._commandService=o,this.keybindingService=c,this._contextKeyService=u,this._menuService=h,this.id=`InlineSuggestionHintsContentWidget${ZP.id++}`,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=qs("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[qs("div@toolBar")]),this.previousAction=this.createCommandAction(aze,P("previous","Previous"),Ni.asClassName(Sdn)),this.availableSuggestionCountAction=new Fh("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(lze,P("next","Next"),Ni.asClassName(xdn)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(Te.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new oo(()=>{this.availableSuggestionCountAction.label=""},100)),this.disableButtonsDebounced=this._register(new oo(()=>{this.previousAction.enabled=this.nextAction.enabled=!1},100)),this.toolBar=this._register(l.createInstance(Hre,this.nodes.toolBar,Te.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:d=>d.startsWith("primary")},actionViewItemProvider:(d,f)=>{if(d instanceof Bh)return l.createInstance(Edn,d,void 0);if(d===this.availableSuggestionCountAction){const p=new Ldn(void 0,d,{label:!0,icon:!1});return p.setClass("availableSuggestionCount"),p}},telemetrySource:"InlineSuggestionToolbar"})),this.toolBar.setPrependedPrimaryActions([this.previousAction,this.availableSuggestionCountAction,this.nextAction]),this._register(this.toolBar.onDidChangeDropdownVisibility(d=>{ZP._dropDownVisible=d})),this._register(Rr(d=>{this._position.read(d),this.editor.layoutContentWidget(this)})),this._register(Rr(d=>{const f=this._suggestionCount.read(d),p=this._currentSuggestionIdx.read(d);f!==void 0?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${p+1}/${f}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),f!==void 0&&f>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule()})),this._register(Rr(d=>{const p=this._extraCommands.read(d).map(g=>({class:void 0,id:g.id,enabled:!0,tooltip:g.tooltip||"",label:g.title,run:m=>this._commandService.executeCommand(g.id)}));for(const[g,m]of this.inlineCompletionsActionsMenus.getActions())for(const T of m)T instanceof Bh&&p.push(T);p.length>0&&p.unshift(new Nl),this.toolBar.setAdditionalSecondaryActions(p)}))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};B7._dropDownVisible=!1;B7.id=0;B7=ZP=Fhe([M0(6,Uo),M0(7,Si),M0(8,Ps),M0(9,Bi),M0(10,t2)],B7);class Ldn extends tC{constructor(){super(...arguments),this._className=void 0}setClass(e){this._className=e}render(e){super.render(e),this._className&&e.classList.add(this._className)}updateTooltip(){}}let Edn=class extends N7{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=qs("div.keybinding").root;this._register(new _Q(t,Rh,{disableTitle:!0,...iVe})).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}updateTooltip(){}},Hre=class extends CA{constructor(e,t,i,r,s,a,o,l,c){super(e,{resetMenu:t,...i},r,s,a,o,l,c),this.menuId=t,this.options2=i,this.menuService=r,this.contextKeyService=s,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this.prependedPrimaryActions=[],this._store.add(this.menu.onDidChange(()=>this.updateToolbar())),this.updateToolbar()}updateToolbar(){var e,t,i,r,s,a,o;const l=[],c=[];SW(this.menu,(e=this.options2)===null||e===void 0?void 0:e.menuOptions,{primary:l,secondary:c},(i=(t=this.options2)===null||t===void 0?void 0:t.toolbarOptions)===null||i===void 0?void 0:i.primaryGroup,(s=(r=this.options2)===null||r===void 0?void 0:r.toolbarOptions)===null||s===void 0?void 0:s.shouldInlineSubmenu,(o=(a=this.options2)===null||a===void 0?void 0:a.toolbarOptions)===null||o===void 0?void 0:o.useSeparatorsInPrimaryActions),c.push(...this.additionalActions),l.unshift(...this.prependedPrimaryActions),this.setActions(l,c)}setPrependedPrimaryActions(e){ba(this.prependedPrimaryActions,e,(t,i)=>t===i)||(this.prependedPrimaryActions=e,this.updateToolbar())}setAdditionalSecondaryActions(e){ba(this.additionalActions,e,(t,i)=>t===i)||(this.additionalActions=e,this.updateToolbar())}};Hre=Fhe([M0(3,t2),M0(4,Bi),M0(5,e1),M0(6,Ps),M0(7,Uo),M0(8,Iu)],Hre);class Bhe{constructor(){this._onDidWillResize=new Je,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new Je,this.onDidResize=this._onDidResize.event,this._sashListener=new jt,this._size=new Os(0,0),this._minSize=new Os(0,0),this._maxSize=new Os(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new _u(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new _u(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new _u(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:VB.North}),this._southSash=new _u(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:VB.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let e,t=0,i=0;this._sashListener.add(mn.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)(()=>{e===void 0&&(this._onDidWillResize.fire(),e=this._size,t=0,i=0)})),this._sashListener.add(mn.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)(()=>{e!==void 0&&(e=void 0,t=0,i=0,this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(this._eastSash.onDidChange(r=>{e&&(i=r.currentX-r.startX,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))})),this._sashListener.add(this._westSash.onDidChange(r=>{e&&(i=-(r.currentX-r.startX),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))})),this._sashListener.add(this._northSash.onDidChange(r=>{e&&(t=-(r.currentY-r.startY),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))})),this._sashListener.add(this._southSash.onDidChange(r=>{e&&(t=r.currentY-r.startY,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))})),this._sashListener.add(mn.any(this._eastSash.onDidReset,this._westSash.onDidReset)(r=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(mn.any(this._northSash.onDidReset,this._southSash.onDidReset)(r=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(e,t,i,r){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=i?3:0,this._westSash.state=r?3:0}layout(e=this.size.height,t=this.size.width){const{height:i,width:r}=this._minSize,{height:s,width:a}=this._maxSize;e=Math.max(i,Math.min(s,e)),t=Math.max(r,Math.min(a,t));const o=new Os(t,e);Os.equals(o,this._size)||(this.domNode.style.height=e+"px",this.domNode.style.width=t+"px",this._size=o,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}clearSashHoverState(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}get size(){return this._size}set maxSize(e){this._maxSize=e}get maxSize(){return this._maxSize}set minSize(e){this._minSize=e}get minSize(){return this._minSize}set preferredSize(e){this._preferredSize=e}get preferredSize(){return this._preferredSize}}const kdn=30,Adn=24;class Idn extends ct{constructor(e,t=new Os(10,10)){super(),this._editor=e,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._resizableNode=this._register(new Bhe),this._contentPosition=null,this._isResizing=!1,this._resizableNode.domNode.style.position="absolute",this._resizableNode.minSize=Os.lift(t),this._resizableNode.layout(t.height,t.width),this._resizableNode.enableSashes(!0,!0,!0,!0),this._register(this._resizableNode.onDidResize(i=>{this._resize(new Os(i.dimension.width,i.dimension.height)),i.done&&(this._isResizing=!1)})),this._register(this._resizableNode.onDidWillResize(()=>{this._isResizing=!0}))}get isResizing(){return this._isResizing}getDomNode(){return this._resizableNode.domNode}getPosition(){return this._contentPosition}get position(){var e;return!((e=this._contentPosition)===null||e===void 0)&&e.position?it.lift(this._contentPosition.position):void 0}_availableVerticalSpaceAbove(e){const t=this._editor.getDomNode(),i=this._editor.getScrolledVisiblePosition(e);return!t||!i?void 0:ul(t).top+i.top-kdn}_availableVerticalSpaceBelow(e){const t=this._editor.getDomNode(),i=this._editor.getScrolledVisiblePosition(e);if(!t||!i)return;const r=ul(t),s=L7(t.ownerDocument.body),a=r.top+i.top+i.height;return s.height-a-Adn}_findPositionPreference(e,t){var i,r;const s=Math.min((i=this._availableVerticalSpaceBelow(t))!==null&&i!==void 0?i:1/0,e),a=Math.min((r=this._availableVerticalSpaceAbove(t))!==null&&r!==void 0?r:1/0,e),o=Math.min(Math.max(a,s),e),l=Math.min(e,o);let c;return this._editor.getOption(60).above?c=l<=a?1:2:c=l<=s?2:1,c===1?this._resizableNode.enableSashes(!0,!0,!1,!1):this._resizableNode.enableSashes(!1,!0,!0,!1),c}_resize(e){this._resizableNode.layout(e.height,e.width)}}var Ddn=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},XN=function(n,e){return function(t,i){e(t,i,n)}},y3;const l_e=30,Mdn=6;let dC=y3=class extends Idn{get isColorPickerVisible(){var e;return!!(!((e=this._visibleData)===null||e===void 0)&&e.colorPicker)}get isVisibleFromKeyboard(){var e;return((e=this._visibleData)===null||e===void 0?void 0:e.source)===1}get isVisible(){var e;return(e=this._hoverVisibleKey.get())!==null&&e!==void 0?e:!1}get isFocused(){var e;return(e=this._hoverFocusedKey.get())!==null&&e!==void 0?e:!1}constructor(e,t,i,r,s){const a=e.getOption(67)+8,o=150,l=new Os(o,a);super(e,l),this._configurationService=i,this._accessibilityService=r,this._keybindingService=s,this._hover=this._register(new Qde),this._minimumSize=l,this._hoverVisibleKey=ke.hoverVisible.bindTo(t),this._hoverFocusedKey=ke.hoverFocused.bindTo(t),$t(this._resizableNode.domNode,this._hover.containerDomNode),this._resizableNode.domNode.style.zIndex="50",this._register(this._editor.onDidLayoutChange(()=>{this.isVisible&&this._updateMaxDimensions()})),this._register(this._editor.onDidChangeConfiguration(u=>{u.hasChanged(50)&&this._updateFont()}));const c=this._register(ef(this._resizableNode.domNode));this._register(c.onDidFocus(()=>{this._hoverFocusedKey.set(!0)})),this._register(c.onDidBlur(()=>{this._hoverFocusedKey.set(!1)})),this._setHoverData(void 0),this._editor.addContentWidget(this)}dispose(){var e;super.dispose(),(e=this._visibleData)===null||e===void 0||e.disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return y3.ID}static _applyDimensions(e,t,i){const r=typeof t=="number"?`${t}px`:t,s=typeof i=="number"?`${i}px`:i;e.style.width=r,e.style.height=s}_setContentsDomNodeDimensions(e,t){const i=this._hover.contentsDomNode;return y3._applyDimensions(i,e,t)}_setContainerDomNodeDimensions(e,t){const i=this._hover.containerDomNode;return y3._applyDimensions(i,e,t)}_setHoverWidgetDimensions(e,t){this._setContentsDomNodeDimensions(e,t),this._setContainerDomNodeDimensions(e,t),this._layoutContentWidget()}static _applyMaxDimensions(e,t,i){const r=typeof t=="number"?`${t}px`:t,s=typeof i=="number"?`${i}px`:i;e.style.maxWidth=r,e.style.maxHeight=s}_setHoverWidgetMaxDimensions(e,t){y3._applyMaxDimensions(this._hover.contentsDomNode,e,t),y3._applyMaxDimensions(this._hover.containerDomNode,e,t),this._hover.containerDomNode.style.setProperty("--vscode-hover-maxWidth",typeof e=="number"?`${e}px`:e),this._layoutContentWidget()}_setAdjustedHoverWidgetDimensions(e){this._setHoverWidgetMaxDimensions("none","none");const t=e.width,i=e.height;this._setHoverWidgetDimensions(t,i)}_updateResizableNodeMaxDimensions(){var e,t;const i=(e=this._findMaximumRenderingWidth())!==null&&e!==void 0?e:1/0,r=(t=this._findMaximumRenderingHeight())!==null&&t!==void 0?t:1/0;this._resizableNode.maxSize=new Os(i,r),this._setHoverWidgetMaxDimensions(i,r)}_resize(e){var t,i;y3._lastDimensions=new Os(e.width,e.height),this._setAdjustedHoverWidgetDimensions(e),this._resizableNode.layout(e.height,e.width),this._updateResizableNodeMaxDimensions(),this._hover.scrollbar.scanDomNode(),this._editor.layoutContentWidget(this),(i=(t=this._visibleData)===null||t===void 0?void 0:t.colorPicker)===null||i===void 0||i.layout()}_findAvailableSpaceVertically(){var e;const t=(e=this._visibleData)===null||e===void 0?void 0:e.showAtPosition;if(t)return this._positionPreference===1?this._availableVerticalSpaceAbove(t):this._availableVerticalSpaceBelow(t)}_findMaximumRenderingHeight(){const e=this._findAvailableSpaceVertically();if(!e)return;let t=Mdn;return Array.from(this._hover.contentsDomNode.children).forEach(i=>{t+=i.clientHeight}),Math.min(e,t)}_isHoverTextOverflowing(){this._hover.containerDomNode.style.setProperty("--vscode-hover-whiteSpace","nowrap"),this._hover.containerDomNode.style.setProperty("--vscode-hover-sourceWhiteSpace","nowrap");const e=Array.from(this._hover.contentsDomNode.children).some(t=>t.scrollWidth>t.clientWidth);return this._hover.containerDomNode.style.removeProperty("--vscode-hover-whiteSpace"),this._hover.containerDomNode.style.removeProperty("--vscode-hover-sourceWhiteSpace"),e}_findMaximumRenderingWidth(){if(!this._editor||!this._editor.hasModel())return;const e=this._isHoverTextOverflowing(),t=typeof this._contentWidth>"u"?0:this._contentWidth-2;return e||this._hover.containerDomNode.clientWidth<t?L7(this._hover.containerDomNode.ownerDocument.body).width-14:this._hover.containerDomNode.clientWidth+2}isMouseGettingCloser(e,t){if(!this._visibleData)return!1;if(typeof this._visibleData.initialMousePosX>"u"||typeof this._visibleData.initialMousePosY>"u")return this._visibleData.initialMousePosX=e,this._visibleData.initialMousePosY=t,!1;const i=ul(this.getDomNode());typeof this._visibleData.closestMouseDistance>"u"&&(this._visibleData.closestMouseDistance=c_e(this._visibleData.initialMousePosX,this._visibleData.initialMousePosY,i.left,i.top,i.width,i.height));const r=c_e(e,t,i.left,i.top,i.width,i.height);return r>this._visibleData.closestMouseDistance+4?!1:(this._visibleData.closestMouseDistance=Math.min(this._visibleData.closestMouseDistance,r),!0)}_setHoverData(e){var t;(t=this._visibleData)===null||t===void 0||t.disposables.dispose(),this._visibleData=e,this._hoverVisibleKey.set(!!e),this._hover.containerDomNode.classList.toggle("hidden",!e)}_updateFont(){const{fontSize:e,lineHeight:t}=this._editor.getOption(50),i=this._hover.contentsDomNode;i.style.fontSize=`${e}px`,i.style.lineHeight=`${t/e}`,Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(s=>this._editor.applyFontInfo(s))}_updateContent(e){const t=this._hover.contentsDomNode;t.style.paddingBottom="",t.textContent="",t.appendChild(e)}_layoutContentWidget(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_updateMaxDimensions(){const e=Math.max(this._editor.getLayoutInfo().height/4,250,y3._lastDimensions.height),t=Math.max(this._editor.getLayoutInfo().width*.66,500,y3._lastDimensions.width);this._setHoverWidgetMaxDimensions(t,e)}_render(e,t){this._setHoverData(t),this._updateFont(),this._updateContent(e),this._updateMaxDimensions(),this.onContentsChanged(),this._editor.render()}getPosition(){var e;return this._visibleData?{position:this._visibleData.showAtPosition,secondaryPosition:this._visibleData.showAtSecondaryPosition,positionAffinity:this._visibleData.isBeforeContent?3:void 0,preference:[(e=this._positionPreference)!==null&&e!==void 0?e:1]}:null}showAt(e,t){var i,r,s,a;if(!this._editor||!this._editor.hasModel())return;this._render(e,t);const o=im(this._hover.containerDomNode),l=t.showAtPosition;this._positionPreference=(i=this._findPositionPreference(o,l))!==null&&i!==void 0?i:1,this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),(r=t.colorPicker)===null||r===void 0||r.layout();const u=this._hover.containerDomNode.ownerDocument.activeElement===this._hover.containerDomNode&&GFe(this._configurationService.getValue("accessibility.verbosity.hover")===!0&&this._accessibilityService.isScreenReaderOptimized(),(a=(s=this._keybindingService.lookupKeybinding("editor.action.accessibleView"))===null||s===void 0?void 0:s.getAriaLabel())!==null&&a!==void 0?a:"");u&&(this._hover.contentsDomNode.ariaLabel=this._hover.contentsDomNode.textContent+", "+u)}hide(){if(!this._visibleData)return;const e=this._visibleData.stoleFocus||this._hoverFocusedKey.get();this._setHoverData(void 0),this._resizableNode.maxSize=new Os(1/0,1/0),this._resizableNode.clearSashHoverState(),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),e&&this._editor.focus()}_removeConstraintsRenderNormally(){const e=this._editor.getLayoutInfo();this._resizableNode.layout(e.height,e.width),this._setHoverWidgetDimensions("auto","auto")}setMinimumDimensions(e){this._minimumSize=new Os(Math.max(this._minimumSize.width,e.width),Math.max(this._minimumSize.height,e.height)),this._updateMinimumWidth()}_updateMinimumWidth(){const e=typeof this._contentWidth>"u"?this._minimumSize.width:Math.min(this._contentWidth,this._minimumSize.width);this._resizableNode.minSize=new Os(e,this._minimumSize.height)}onContentsChanged(){var e;this._removeConstraintsRenderNormally();const t=this._hover.containerDomNode;let i=im(t),r=Ah(t);if(this._resizableNode.layout(i,r),this._setHoverWidgetDimensions(r,i),i=im(t),r=Ah(t),this._contentWidth=r,this._updateMinimumWidth(),this._resizableNode.layout(i,r),!((e=this._visibleData)===null||e===void 0)&&e.showAtPosition){const s=im(this._hover.containerDomNode);this._positionPreference=this._findPositionPreference(s,this._visibleData.showAtPosition)}this._layoutContentWidget()}focus(){this._hover.containerDomNode.focus()}scrollUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:e-t.lineHeight})}scrollDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:e+t.lineHeight})}scrollLeft(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e-l_e})}scrollRight(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e+l_e})}pageUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e-t})}pageDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e+t})}goToTop(){this._hover.scrollbar.setScrollPosition({scrollTop:0})}goToBottom(){this._hover.scrollbar.setScrollPosition({scrollTop:this._hover.scrollbar.getScrollDimensions().scrollHeight})}};dC.ID="editor.contrib.resizableContentHoverWidget";dC._lastDimensions=new Os(0,0);dC=y3=Ddn([XN(1,Bi),XN(2,Pr),XN(3,n2),XN(4,Ps)],dC);function c_e(n,e,t,i,r,s){const a=t+r/2,o=i+s/2,l=Math.max(Math.abs(n-a)-r/2,0),c=Math.max(Math.abs(e-o)-s/2,0);return Math.sqrt(l*l+c*c)}let Odn=class{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}};class cze extends ct{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new Je),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new oo(()=>this._triggerAsyncComputation(),0)),this._secondWaitScheduler=this._register(new oo(()=>this._triggerSyncComputation(),0)),this._loadingMessageScheduler=this._register(new oo(()=>this._triggerLoadingMessage(),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(60).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=xjt(e=>this._computer.computeAsync(e)),(async()=>{try{for await(const e of this._asyncIterable)e&&(this._result.push(e),this._fireResult());this._asyncIterableDone=!0,(this._state===3||this._state===4)&&this._setState(0)}catch(e){hr(e)}})()):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){this._state===3&&this._setState(4)}_fireResult(){if(this._state===1||this._state===2)return;const e=this._state===0,t=this._state===4;this._onResult.fire(new Odn(this._result.slice(0),e,t))}start(e){if(e===0)this._state===0&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}class EY{constructor(e,t,i,r){this.priority=e,this.range=t,this.initialMousePosX=i,this.initialMousePosY=r,this.type=1}equals(e){return e.type===1&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return e.type===1&&t.lineNumber===this.range.startLineNumber}}class bT{constructor(e,t,i,r,s,a){this.priority=e,this.owner=t,this.range=i,this.initialMousePosX=r,this.initialMousePosY=s,this.supportsMarkerHover=a,this.type=2}equals(e){return e.type===2&&this.owner===e.owner}canAdoptVisibleHover(e,t){return e.type===2&&this.owner===e.owner}}const m8=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}};class Ndn{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}async function Rdn(n,e,t,i,r){const s=await Promise.resolve(n.provideHover(t,i,r)).catch(za);if(!(!s||!Hdn(s)))return new Ndn(n,s,e)}function Vhe(n,e,t,i){const s=n.ordered(e).map((a,o)=>Rdn(a,o,e,t,i));return yl.fromPromises(s).coalesce()}function Pdn(n,e,t,i){return Vhe(n,e,t,i).map(r=>r.hover).toPromise()}U4("_executeHoverProvider",(n,e,t)=>{const i=n.get(Zn);return Pdn(i.hoverProvider,e,t,qr.None)});function Hdn(n){const e=typeof n.range<"u",t=typeof n.contents<"u"&&n.contents&&n.contents.length>0;return e&&t}var Fdn=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},ov=function(n,e){return function(t,i){e(t,i,n)}};const ny=hn,Bdn=Oa("hover-increase-verbosity",pn.add,P("increaseHoverVerbosity","Icon for increaseing hover verbosity.")),Vdn=Oa("hover-decrease-verbosity",pn.remove,P("decreaseHoverVerbosity","Icon for decreasing hover verbosity."));class $f{constructor(e,t,i,r,s,a=void 0){this.owner=e,this.range=t,this.contents=i,this.isBeforeContent=r,this.ordinal=s,this.source=a}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}class uze{constructor(e,t,i){this.hover=e,this.hoverProvider=t,this.hoverPosition=i}supportsVerbosityAction(e){var t,i;switch(e){case Uf.Increase:return(t=this.hover.canIncreaseVerbosity)!==null&&t!==void 0?t:!1;case Uf.Decrease:return(i=this.hover.canDecreaseVerbosity)!==null&&i!==void 0?i:!1}}}let DA=class{constructor(e,t,i,r,s,a,o){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=r,this._languageFeaturesService=s,this._keybindingService=a,this._hoverService=o,this.hoverOrdinal=3}createLoadingMessage(e){return new $f(this,e.range,[new wu().appendText(P("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];const i=this._editor.getModel(),r=e.range.startLineNumber,s=i.getLineMaxColumn(r),a=[];let o=1e3;const l=i.getLineLength(r),c=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),u=this._editor.getOption(117),h=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:c});let d=!1;u>=0&&l>u&&e.range.startColumn>=u&&(d=!0,a.push(new $f(this,e.range,[{value:P("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,o++))),!d&&typeof h=="number"&&l>=h&&a.push(new $f(this,e.range,[{value:P("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,o++));let f=!1;for(const p of t){const g=p.range.startLineNumber===r?p.range.startColumn:1,m=p.range.endLineNumber===r?p.range.endColumn:s,T=p.options.hoverMessage;if(!T||Gw(T))continue;p.options.beforeContentClassName&&(f=!0);const b=new pe(e.range.startLineNumber,g,e.range.startLineNumber,m);a.push(new $f(this,b,Gce(T),f,o++))}return a}computeAsync(e,t,i){if(!this._editor.hasModel()||e.type!==1)return yl.EMPTY;const r=this._editor.getModel(),s=this._languageFeaturesService.hoverProvider;return s.has(r)?this._getMarkdownHovers(s,r,e,i):yl.EMPTY}_getMarkdownHovers(e,t,i,r){const s=i.range.getStartPosition();return Vhe(e,t,s,r).filter(l=>!Gw(l.hover.contents)).map(l=>{const c=l.hover.range?pe.lift(l.hover.range):i.range,u=new uze(l.hover,l.provider,s);return new $f(this,c,l.hover.contents,!1,l.ordinal,u)})}renderHoverParts(e,t){return this._renderedHoverParts=new jdn(t,e.fragment,this._editor,this._languageService,this._openerService,this._keybindingService,this._hoverService,this._configurationService,e.onContentsChanged),this._renderedHoverParts}updateFocusedMarkdownHoverPartVerbosityLevel(e){var t;(t=this._renderedHoverParts)===null||t===void 0||t.updateFocusedHoverPartVerbosityLevel(e)}};DA=Fdn([ov(1,ca),ov(2,t1),ov(3,Pr),ov(4,Zn),ov(5,Ps),ov(6,q4)],DA);class jdn extends ct{constructor(e,t,i,r,s,a,o,l,c){super(),this._editor=i,this._languageService=r,this._openerService=s,this._keybindingService=a,this._hoverService=o,this._configurationService=l,this._onFinishedRendering=c,this._hoverFocusInfo={hoverPartIndex:-1,focusRemains:!1},this._renderedHoverParts=this._renderHoverParts(e,t,this._onFinishedRendering),this._register(Qi(()=>{this._renderedHoverParts.forEach(u=>{u.disposables.dispose()})}))}_renderHoverParts(e,t,i){return e.sort(ch(r=>r.ordinal,W0)),e.map((r,s)=>{const a=this._renderHoverPart(s,r.contents,r.source,i);return t.appendChild(a.renderedMarkdown),a})}_renderHoverPart(e,t,i,r){const{renderedMarkdown:s,disposables:a}=this._renderMarkdownContent(t,r);if(!i)return{renderedMarkdown:s,disposables:a};const o=i.supportsVerbosityAction(Uf.Increase),l=i.supportsVerbosityAction(Uf.Decrease);if(!o&&!l)return{renderedMarkdown:s,disposables:a,hoverSource:i};const c=ny("div.verbosity-actions");s.prepend(c),a.add(this._renderHoverExpansionAction(c,Uf.Increase,o)),a.add(this._renderHoverExpansionAction(c,Uf.Decrease,l));const u=a.add(ef(s));return a.add(u.onDidFocus(()=>{this._hoverFocusInfo={hoverPartIndex:e,focusRemains:!0}})),a.add(u.onDidBlur(()=>{var h;if(!((h=this._hoverFocusInfo)===null||h===void 0)&&h.focusRemains){this._hoverFocusInfo.focusRemains=!1;return}})),{renderedMarkdown:s,disposables:a,hoverSource:i}}_renderMarkdownContent(e,t){const i=ny("div.hover-row");i.tabIndex=0;const r=ny("div.hover-row-contents");i.appendChild(r);const s=new jt;return s.add(dze(this._editor,r,e,this._languageService,this._openerService,t)),{renderedMarkdown:i,disposables:s}}_renderHoverExpansionAction(e,t,i){const r=new jt,s=t===Uf.Increase,a=$t(e,ny(Ni.asCSSSelector(s?Bdn:Vdn)));a.tabIndex=0;const o=new Zw("mouse",!1,{target:e,position:{hoverPosition:0}},this._configurationService,this._hoverService);if(s){const c=this._keybindingService.lookupKeybinding(Phe);r.add(this._hoverService.setupUpdatableHover(o,a,c?P("increaseVerbosityWithKb","Increase Verbosity ({0})",c.getLabel()):P("increaseVerbosity","Increase Verbosity")))}else{const c=this._keybindingService.lookupKeybinding(Hhe);r.add(this._hoverService.setupUpdatableHover(o,a,c?P("decreaseVerbosityWithKb","Decrease Verbosity ({0})",c.getLabel()):P("decreaseVerbosity","Decrease Verbosity")))}if(!i)return a.classList.add("disabled"),r;a.classList.add("enabled");const l=()=>this.updateFocusedHoverPartVerbosityLevel(t);return r.add(new KFe(a,l)),r.add(new YFe(a,l,[3,10])),r}async updateFocusedHoverPartVerbosityLevel(e){var t;const i=this._editor.getModel();if(!i)return;const r=this._hoverFocusInfo.hoverPartIndex,s=this._getRenderedHoverPartAtIndex(r);if(!s||!(!((t=s.hoverSource)===null||t===void 0)&&t.supportsVerbosityAction(e)))return;const a=s.hoverSource.hoverPosition,o=s.hoverSource.hoverProvider,l=s.hoverSource.hover,c={verbosityRequest:{action:e,previousHover:l}};let u;try{u=await Promise.resolve(o.provideHover(i,a,qr.None,c))}catch(f){za(f)}if(!u)return;const h=new uze(u,o,a),d=this._renderHoverPart(r,u.contents,h,this._onFinishedRendering);this._replaceRenderedHoverPartAtIndex(r,d),this._focusOnHoverPartWithIndex(r),this._onFinishedRendering()}_replaceRenderedHoverPartAtIndex(e,t){if(e>=this._renderHoverParts.length||e<0)return;const i=this._renderedHoverParts[e];i.renderedMarkdown.replaceWith(t.renderedMarkdown),i.disposables.dispose(),this._renderedHoverParts[e]=t}_focusOnHoverPartWithIndex(e){this._renderedHoverParts[e].renderedMarkdown.focus(),this._hoverFocusInfo.focusRemains=!0}_getRenderedHoverPartAtIndex(e){return this._renderedHoverParts[e]}}function zdn(n,e,t,i,r){e.sort(ch(a=>a.ordinal,W0));const s=new jt;for(const a of e)s.add(dze(t,n.fragment,a.contents,i,r,n.onContentsChanged));return s}function dze(n,e,t,i,r,s){const a=new jt;for(const o of t){if(Gw(o))continue;const l=ny("div.markdown-hover"),c=$t(l,ny("div.hover-contents")),u=a.add(new S4({editor:n},i,r));a.add(u.onDidRenderAsync(()=>{c.className="hover-contents code-hover-contents",s()}));const h=a.add(u.render(o));c.appendChild(h.element),e.appendChild(l)}return a}function Fre(n,e){return!!n[e]}class kY{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=Fre(e.event,t.triggerModifier),this.hasSideBySideModifier=Fre(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class u_e{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=Fre(e,t.triggerModifier)}}class JN{constructor(e,t,i,r){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=r}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function d_e(n){return n==="altKey"?$r?new JN(57,"metaKey",6,"altKey"):new JN(5,"ctrlKey",6,"altKey"):$r?new JN(6,"altKey",57,"metaKey"):new JN(6,"altKey",5,"ctrlKey")}class XW extends ct{constructor(e,t){var i;super(),this._onMouseMoveOrRelevantKeyDown=this._register(new Je),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new Je),this.onExecute=this._onExecute.event,this._onCancel=this._register(new Je),this.onCancel=this._onCancel.event,this._editor=e,this._extractLineNumberFromMouseEvent=(i=t==null?void 0:t.extractLineNumberFromMouseEvent)!==null&&i!==void 0?i:(r=>r.target.position?r.target.position.lineNumber:0),this._opts=d_e(this._editor.getOption(78)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(r=>{if(r.hasChanged(78)){const s=d_e(this._editor.getOption(78));if(this._opts.equals(s))return;this._opts=s,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}})),this._register(this._editor.onMouseMove(r=>this._onEditorMouseMove(new kY(r,this._opts)))),this._register(this._editor.onMouseDown(r=>this._onEditorMouseDown(new kY(r,this._opts)))),this._register(this._editor.onMouseUp(r=>this._onEditorMouseUp(new kY(r,this._opts)))),this._register(this._editor.onKeyDown(r=>this._onEditorKeyDown(new u_e(r,this._opts)))),this._register(this._editor.onKeyUp(r=>this._onEditorKeyUp(new u_e(r,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(r=>this._onDidChangeCursorSelection(r))),this._register(this._editor.onDidChangeModel(r=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(r=>{(r.scrollTopChanged||r.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=this._extractLineNumberFromMouseEvent(e)}_onEditorMouseUp(e){const t=this._extractLineNumberFromMouseEvent(e);this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}class hze{constructor(e,t){this.range=e,this.direction=t}}class jhe{constructor(e,t,i){this.hint=e,this.anchor=t,this.provider=i,this._isResolved=!1}with(e){const t=new jhe(this.hint,e.anchor,this.provider);return t._isResolved=this._isResolved,t._currentResolve=this._currentResolve,t}async resolve(e){if(typeof this.provider.resolveInlayHint=="function"){if(this._currentResolve)return await this._currentResolve,e.isCancellationRequested?void 0:this.resolve(e);this._isResolved||(this._currentResolve=this._doResolve(e).finally(()=>this._currentResolve=void 0)),await this._currentResolve}}async _doResolve(e){var t,i,r;try{const s=await Promise.resolve(this.provider.resolveInlayHint(this.hint,e));this.hint.tooltip=(t=s==null?void 0:s.tooltip)!==null&&t!==void 0?t:this.hint.tooltip,this.hint.label=(i=s==null?void 0:s.label)!==null&&i!==void 0?i:this.hint.label,this.hint.textEdits=(r=s==null?void 0:s.textEdits)!==null&&r!==void 0?r:this.hint.textEdits,this._isResolved=!0}catch(s){za(s),this._isResolved=!1}}}class _T{static async create(e,t,i,r){const s=[],a=e.ordered(t).reverse().map(o=>i.map(async l=>{try{const c=await o.provideInlayHints(t,l,r);(c!=null&&c.hints.length||o.onDidChangeInlayHints)&&s.push([c??_T._emptyInlayHintList,o])}catch(c){za(c)}}));if(await Promise.all(a.flat()),r.isCancellationRequested||t.isDisposed())throw new Cp;return new _T(i,s,t)}constructor(e,t,i){this._disposables=new jt,this.ranges=e,this.provider=new Set;const r=[];for(const[s,a]of t){this._disposables.add(s),this.provider.add(a);for(const o of s.hints){const l=i.validatePosition(o.position);let c="before";const u=_T._getRangeAtPosition(i,l);let h;u.getStartPosition().isBefore(l)?(h=pe.fromPositions(u.getStartPosition(),l),c="after"):(h=pe.fromPositions(l,u.getEndPosition()),c="before"),r.push(new jhe(o,new hze(h,c),a))}}this.items=r.sort((s,a)=>it.compare(s.hint.position,a.hint.position))}dispose(){this._disposables.dispose()}static _getRangeAtPosition(e,t){const i=t.lineNumber,r=e.getWordAtPosition(t);if(r)return new pe(i,r.startColumn,i,r.endColumn);e.tokenization.tokenizeIfCheap(i);const s=e.tokenization.getLineTokens(i),a=t.column-1,o=s.findTokenIndexAtOffset(a);let l=s.getStartOffset(o),c=s.getEndOffset(o);return c-l===1&&(l===a&&o>1?(l=s.getStartOffset(o-1),c=s.getEndOffset(o-1)):c===a&&o<s.getCount()-1&&(l=s.getStartOffset(o+1),c=s.getEndOffset(o+1))),new pe(i,l+1,i,c+1)}}_T._emptyInlayHintList=Object.freeze({dispose(){},hints:[]});function Wdn(n){return Ai.from({scheme:dr.command,path:n.id,query:n.arguments&&encodeURIComponent(JSON.stringify(n.arguments))}).toString()}var Udn=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},yg=function(n,e){return function(t,i){e(t,i,n)}};let V7=class extends qw{constructor(e,t,i,r,s,a,o,l,c,u,h,d,f){super(e,{...r.getRawOptions(),overflowWidgetsDomNode:r.getOverflowWidgetsDomNode()},i,s,a,o,l,c,u,h,d,f),this._parentEditor=r,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(r.onDidChangeConfiguration(p=>this._onParentConfigurationChanged(p)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){vz(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};V7=Udn([yg(4,Si),yg(5,vs),yg(6,Uo),yg(7,Bi),yg(8,ql),yg(9,hl),yg(10,n2),yg(11,Ro),yg(12,Zn)],V7);const h_e=new xt(new hs(0,122,204)),$dn={showArrow:!0,showFrame:!0,className:"",frameColor:h_e,arrowColor:h_e,keepEditorSelection:!1},qdn="vs.editor.contrib.zoneWidget";class Zdn{constructor(e,t,i,r,s,a,o,l){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=i,this.heightInLines=r,this.showInHiddenAreas=o,this.ordinal=l,this._onDomNodeTop=s,this._onComputedHeight=a}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class Gdn{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class JW{constructor(e){this._editor=e,this._ruleName=JW._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),Zte(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){Zte(this._ruleName),ZF(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px !important; margin-left: -${this._height}px; `)}show(e){e.column===1&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:pe.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}}JW._IdGenerator=new Mde(".arrow-decoration-");class Kdn{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new jt,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=Hg(t),vz(this.options,$dn,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(i=>{const r=this._getWidth(i);this.domNode.style.width=r+"px",this.domNode.style.left=this._getLeft(i)+"px",this._onWidth(r)}))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null}),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new JW(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){const e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&e.minimap.minimapLeft===0?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){var t;if(this.domNode.style.height=`${e}px`,this.container){const i=e-this._decoratingElementsHeight();this.container.style.height=`${i}px`;const r=this.editor.getLayoutInfo();this._doLayout(i,this._getWidth(r))}(t=this._resizeSash)===null||t===void 0||t.layout()}get position(){const e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}show(e,t){const i=pe.isIRange(e)?pe.lift(e):pe.fromPositions(e);this._isShowing=!0,this._showImpl(i,t),this._isShowing=!1,this._positionMarkerId.set([{range:i,options:fr.EMPTY}])}hide(){var e;this._viewZone&&(this.editor.changeViewZones(t=>{this._viewZone&&t.removeZone(this._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),(e=this._arrow)===null||e===void 0||e.hide(),this._positionMarkerId.clear()}_decoratingElementsHeight(){const e=this.editor.getOption(67);let t=0;if(this.options.showArrow){const i=Math.round(e/3);t+=2*i}if(this.options.showFrame){const i=Math.round(e/9);t+=2*i}return t}_showImpl(e,t){const i=e.getStartPosition(),r=this.editor.getLayoutInfo(),s=this._getWidth(r);this.domNode.style.width=`${s}px`,this.domNode.style.left=this._getLeft(r)+"px";const a=document.createElement("div");a.style.overflow="hidden";const o=this.editor.getOption(67);if(!this.options.allowUnlimitedHeight){const d=Math.max(12,this.editor.getLayoutInfo().height/o*.8);t=Math.min(t,d)}let l=0,c=0;if(this._arrow&&this.options.showArrow&&(l=Math.round(o/3),this._arrow.height=l,this._arrow.show(i)),this.options.showFrame&&(c=Math.round(o/9)),this.editor.changeViewZones(d=>{this._viewZone&&d.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new Zdn(a,i.lineNumber,i.column,t,f=>this._onViewZoneTop(f),f=>this._onViewZoneHeight(f),this.options.showInHiddenAreas,this.options.ordinal),this._viewZone.id=d.addZone(this._viewZone),this._overlayWidget=new Gdn(qdn+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){const d=this.options.frameWidth?this.options.frameWidth:c;this.container.style.borderTopWidth=d+"px",this.container.style.borderBottomWidth=d+"px"}const u=t*o-this._decoratingElementsHeight();this.container&&(this.container.style.top=l+"px",this.container.style.height=u+"px",this.container.style.overflow="hidden"),this._doLayout(u,s),this.options.keepEditorSelection||this.editor.setSelection(e);const h=this.editor.getModel();if(h){const d=h.validateRange(new pe(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(d,d.startLineNumber===h.getLineCount())}}revealRange(e,t){t?this.editor.revealLineNearTop(e.endLineNumber,0):this.editor.revealRange(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones(t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))})}_initSash(){if(this._resizeSash)return;this._resizeSash=this._disposables.add(new _u(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0);let e;this._disposables.add(this._resizeSash.onDidStart(t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(()=>{e=void 0})),this._disposables.add(this._resizeSash.onDidChange(t=>{if(e){const i=(t.currentY-e.startY)/this.editor.getOption(67),r=i<0?Math.ceil(i):Math.floor(i),s=e.heightInLines+r;s>5&&s<35&&this._relayout(s)}}))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}var fze=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},pze=function(n,e){return function(t,i){e(t,i,n)}};const gze=Yr("IPeekViewService");os(gze,class{constructor(){this._widgets=new Map}addExclusiveWidget(n,e){const t=this._widgets.get(n);t&&(t.listener.dispose(),t.widget.dispose());const i=()=>{const r=this._widgets.get(n);r&&r.widget===e&&(r.listener.dispose(),this._widgets.delete(n))};this._widgets.set(n,{widget:e,listener:e.onDidClose(i)})}},1);var gh;(function(n){n.inPeekEditor=new An("inReferenceSearchEditor",!0,P("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),n.notInPeekEditor=n.inPeekEditor.toNegated()})(gh||(gh={}));let MA=class{constructor(e,t){e instanceof V7&&gh.inPeekEditor.bindTo(t)}dispose(){}};MA.ID="editor.contrib.referenceController";MA=fze([pze(1,Bi)],MA);Ls(MA.ID,MA,0);function Ydn(n){const e=n.get(vs).getFocusedCodeEditor();return e instanceof V7?e.getParentEditor():e}const Xdn={headerBackgroundColor:xt.white,primaryHeadingColor:xt.fromHex("#333333"),secondaryHeadingColor:xt.fromHex("#6c6c6cb3")};let TV=class extends Kdn{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new Je,this.onDidClose=this._onDidClose.event,vz(this.options,Xdn,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){const t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();const e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=hn(".head"),this._bodyElement=hn(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){this._titleElement=hn(".peekview-title"),this.options.supportOnTitleClick&&(this._titleElement.classList.add("clickable"),ja(this._titleElement,"click",s=>this._onTitleClick(s))),$t(this._headElement,this._titleElement),this._fillTitleIcon(this._titleElement),this._primaryHeading=hn("span.filename"),this._secondaryHeading=hn("span.dirname"),this._metaHeading=hn("span.meta"),$t(this._titleElement,this._primaryHeading,this._secondaryHeading,this._metaHeading);const i=hn(".peekview-actions");$t(this._headElement,i);const r=this._getActionBarOptions();this._actionbarWidget=new Y2(i,r),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new Fh("peekview.close",P("label.close","Close"),Ni.asClassName(pn.close),!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:ABe.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:Rc(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,Dh(this._metaHeading)):gd(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0){this.dispose();return}const i=Math.ceil(this.editor.getOption(67)*1.2),r=Math.round(e-(i+2));this._doLayoutHead(i,t),this._doLayoutBody(r,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};TV=fze([pze(2,Si)],TV);const Jdn=Oe("peekViewTitle.background",{dark:"#252526",light:"#F3F3F3",hcDark:xt.black,hcLight:xt.white},P("peekViewTitleBackground","Background color of the peek view title area.")),mze=Oe("peekViewTitleLabel.foreground",{dark:xt.white,light:xt.black,hcDark:xt.white,hcLight:P2},P("peekViewTitleForeground","Color of the peek view title.")),Tze=Oe("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},P("peekViewTitleInfoForeground","Color of the peek view title info.")),ehn=Oe("peekView.border",{dark:oh,light:oh,hcDark:ns,hcLight:ns},P("peekViewBorder","Color of the peek view borders and arrow.")),thn=Oe("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:xt.black,hcLight:xt.white},P("peekViewResultsBackground","Background color of the peek view result list."));Oe("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:xt.white,hcLight:P2},P("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list."));Oe("peekViewResult.fileForeground",{dark:xt.white,light:"#1E1E1E",hcDark:xt.white,hcLight:P2},P("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list."));Oe("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},P("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list."));Oe("peekViewResult.selectionForeground",{dark:xt.white,light:"#6C6C6C",hcDark:xt.white,hcLight:P2},P("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list."));const B6=Oe("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:xt.black,hcLight:xt.white},P("peekViewEditorBackground","Background color of the peek view editor."));Oe("peekViewEditorGutter.background",{dark:B6,light:B6,hcDark:B6,hcLight:B6},P("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor."));Oe("peekViewEditorStickyScroll.background",{dark:B6,light:B6,hcDark:B6,hcLight:B6},P("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor."));Oe("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},P("peekViewResultsMatchHighlight","Match highlight color in the peek view result list."));Oe("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},P("peekViewEditorMatchHighlight","Match highlight color in the peek view editor."));Oe("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:Xo,hcLight:Xo},P("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."));class j7{constructor(e,t,i,r){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=r,this.id=eie.nextId()}get uri(){return this.link.uri}get range(){var e,t;return(t=(e=this._range)!==null&&e!==void 0?e:this.link.targetSelectionRange)!==null&&t!==void 0?t:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e;const t=(e=this.parent.getPreview(this))===null||e===void 0?void 0:e.preview(this.range);return t?P({},"{0} in {1} on line {2} at column {3}",t.value,G2(this.uri),this.range.startLineNumber,this.range.startColumn):P("aria.oneReference","in {0} on line {1} at column {2}",G2(this.uri),this.range.startLineNumber,this.range.startColumn)}}class nhn{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:r,startColumn:s,endLineNumber:a,endColumn:o}=e,l=i.getWordUntilPosition({lineNumber:r,column:s-t}),c=new pe(r,l.startColumn,r,s),u=new pe(a,o,a,1073741824),h=i.getValueInRange(c).replace(/^\s+/,""),d=i.getValueInRange(e),f=i.getValueInRange(u).replace(/\s+$/,"");return{value:h+d+f,highlight:{start:h.length,end:h.length+d.length}}}}class OA{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new Xa}dispose(){xo(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return e===1?P("aria.fileReferences.1","1 symbol in {0}, full path {1}",G2(this.uri),this.uri.fsPath):P("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,G2(this.uri),this.uri.fsPath)}async resolve(e){if(this._previews.size!==0)return this;for(const t of this.children)if(!this._previews.has(t.uri))try{const i=await e.createModelReference(t.uri);this._previews.set(t.uri,new nhn(i))}catch(i){hr(i)}return this}}class Vh{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new Je,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;e.sort(Vh._compareReferences);let r;for(const s of e)if((!r||!Jo.isEqual(r.uri,s.uri,!0))&&(r=new OA(this,s.uri),this.groups.push(r)),r.children.length===0||Vh._compareReferences(s,r.children[r.children.length-1])!==0){const a=new j7(i===s,r,s,o=>this._onDidChangeReferenceRange.fire(o));this.references.push(a),r.children.push(a)}}dispose(){xo(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new Vh(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?P("aria.result.0","No results found"):this.references.length===1?P("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?P("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):P("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){const{parent:i}=e;let r=i.children.indexOf(e);const s=i.children.length,a=i.parent.groups.length;return a===1||t&&r+1<s||!t&&r>0?(t?r=(r+1)%s:r=(r+s-1)%s,i.children[r]):(r=i.parent.groups.indexOf(i),t?(r=(r+1)%a,i.parent.groups[r].children[0]):(r=(r+a-1)%a,i.parent.groups[r].children[i.parent.groups[r].children.length-1]))}nearestReference(e,t){const i=this.references.map((r,s)=>({idx:s,prefixLen:C7(r.uri.toString(),e.toString()),offsetDist:Math.abs(r.range.startLineNumber-t.lineNumber)*100+Math.abs(r.range.startColumn-t.column)})).sort((r,s)=>r.prefixLen>s.prefixLen?-1:r.prefixLen<s.prefixLen?1:r.offsetDist<s.offsetDist?-1:r.offsetDist>s.offsetDist?1:0)[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&pe.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return Jo.compare(e.uri,t.uri)||pe.compareRangesUsingStarts(e.range,t.range)}}var eU=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},tU=function(n,e){return function(t,i){e(t,i,n)}},Bre;let Vre=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof Vh||e instanceof OA}getChildren(e){if(e instanceof Vh)return e.groups;if(e instanceof OA)return e.resolve(this._resolverService).then(t=>t.children);throw new Error("bad tree")}};Vre=eU([tU(0,yh)],Vre);class ihn{getHeight(){return 23}getTemplateId(e){return e instanceof OA?NA.id:HD.id}}let jre=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof j7){const i=(t=e.parent.getPreview(e))===null||t===void 0?void 0:t.preview(e.range);if(i)return i.value}return G2(e.uri)}};jre=eU([tU(0,Ps)],jre);class rhn{getId(e){return e instanceof j7?e.id:e.uri}}let zre=class extends ct{constructor(e,t){super(),this._labelService=t;const i=document.createElement("div");i.classList.add("reference-file"),this.file=this._register(new GB(i,{supportHighlights:!0})),this.badge=new Fie($t(i,hn(".count")),{},EBe),e.appendChild(i)}set(e,t){const i=aW(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(i,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});const r=e.children.length;this.badge.setCount(r),r>1?this.badge.setTitleFormat(P("referencesCount","{0} references",r)):this.badge.setTitleFormat(P("referenceCount","{0} reference",r))}};zre=eU([tU(1,Yw)],zre);let NA=Bre=class{constructor(e){this._instantiationService=e,this.templateId=Bre.id}renderTemplate(e){return this._instantiationService.createInstance(zre,e)}renderElement(e,t,i){i.set(e.element,vD(e.filterData))}disposeTemplate(e){e.dispose()}};NA.id="FileReferencesRenderer";NA=Bre=eU([tU(0,Si)],NA);class shn extends ct{constructor(e){super(),this.label=this._register(new r7(e))}set(e,t){var i;const r=(i=e.parent.getPreview(e))===null||i===void 0?void 0:i.preview(e.range);if(!r||!r.value)this.label.set(`${G2(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`);else{const{value:s,highlight:a}=r;t&&!dp.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(s,vD(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(s,[a]))}}}class HD{constructor(){this.templateId=HD.id}renderTemplate(e){return new shn(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(e){e.dispose()}}HD.id="OneReferenceRenderer";class ohn{getWidgetAriaLabel(){return P("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var ahn=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},wg=function(n,e){return function(t,i){e(t,i,n)}};class nU{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new jt,this._callOnModelChange=new jt,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(e){for(const t of this._model.references)if(t.uri.toString()===e.uri.toString()){this._addDecorations(t.parent);return}}}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(()=>this._onDecorationChanged()));const t=[],i=[];for(let r=0,s=e.children.length;r<s;r++){const a=e.children[r];this._decorationIgnoreSet.has(a.id)||a.uri.toString()===this._editor.getModel().uri.toString()&&(t.push({range:a.range,options:nU.DecorationOptions}),i.push(r))}this._editor.changeDecorations(r=>{const s=r.deltaDecorations([],t);for(let a=0;a<s.length;a++)this._decorations.set(s[a],e.children[i[a]])})}_onDecorationChanged(){const e=[],t=this._editor.getModel();if(t){for(const[i,r]of this._decorations){const s=t.getDecorationRange(i);if(!s)continue;let a=!1;if(!pe.equalsRange(s,r.range)){if(pe.spansMultipleLines(s))a=!0;else{const o=r.range.endColumn-r.range.startColumn,l=s.endColumn-s.startColumn;o!==l&&(a=!0)}a?(this._decorationIgnoreSet.add(r.id),e.push(i)):r.range=s}}for(let i=0,r=e.length;i<r;i++)this._decorations.delete(e[i]);this._editor.removeDecorations(e)}}removeDecorations(){this._editor.removeDecorations([...this._decorations.keys()]),this._decorations.clear()}}nU.DecorationOptions=fr.register({description:"reference-decoration",stickiness:1,className:"reference-decoration"});class lhn{constructor(){this.ratio=.7,this.heightInLines=18}static fromJSON(e){let t,i;try{const r=JSON.parse(e);t=r.ratio,i=r.heightInLines}catch{}return{ratio:t||.7,heightInLines:i||18}}}class chn extends Nie{}let Wre=class extends TV{constructor(e,t,i,r,s,a,o,l,c,u,h,d){super(e,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0,supportOnTitleClick:!0},a),this._defaultTreeKeyboardSupport=t,this.layoutData=i,this._textModelResolverService=s,this._instantiationService=a,this._peekViewService=o,this._uriLabel=l,this._undoRedoService=c,this._keybindingService=u,this._languageService=h,this._languageConfigurationService=d,this._disposeOnNewModel=new jt,this._callOnDispose=new jt,this._onDidSelectReference=new Je,this.onDidSelectReference=this._onDidSelectReference.event,this._dim=new Os(0,0),this._applyTheme(r.getColorTheme()),this._callOnDispose.add(r.onDidColorThemeChange(this._applyTheme.bind(this))),this._peekViewService.addExclusiveWidget(e,this),this.create()}dispose(){this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),xo(this._preview),xo(this._previewNotAvailableMessage),xo(this._tree),xo(this._previewModelReference),this._splitView.dispose(),super.dispose()}_applyTheme(e){const t=e.getColor(ehn)||xt.transparent;this.style({arrowColor:t,frameColor:t,headerBackgroundColor:e.getColor(Jdn)||xt.transparent,primaryHeadingColor:e.getColor(mze),secondaryHeadingColor:e.getColor(Tze)})}show(e){super.show(e,this.layoutData.heightInLines||18)}focusOnReferenceTree(){this._tree.domFocus()}focusOnPreviewEditor(){this._preview.focus()}isPreviewEditorFocused(){return this._preview.hasTextFocus()}_onTitleClick(e){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:e.ctrlKey||e.metaKey||e.altKey?"side":"open",source:"title"})}_fillBody(e){this.setCssClass("reference-zone-widget"),this._messageContainer=$t(e,hn("div.messages")),gd(this._messageContainer),this._splitView=new OBe(e,{orientation:1}),this._previewContainer=$t(e,hn("div.preview.inline"));const t={scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,alwaysConsumeMouseWheel:!0},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}};this._preview=this._instantiationService.createInstance(V7,this._previewContainer,t,{},this.editor),gd(this._previewContainer),this._previewNotAvailableMessage=new x4(P("missingPreviewMessage","no preview available"),j1,x4.DEFAULT_CREATION_OPTIONS,null,this._undoRedoService,this._languageService,this._languageConfigurationService),this._treeContainer=$t(e,hn("div.ref-tree.inline"));const i={keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new ohn,keyboardNavigationLabelProvider:this._instantiationService.createInstance(jre),identityProvider:new rhn,openOnSingleClick:!0,selectionNavigation:!0,overrideStyles:{listBackground:thn}};this._defaultTreeKeyboardSupport&&this._callOnDispose.add(ja(this._treeContainer,"keydown",s=>{s.equals(9)&&(this._keybindingService.dispatchEvent(s,s.target),s.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(chn,"ReferencesWidget",this._treeContainer,new ihn,[this._instantiationService.createInstance(NA),this._instantiationService.createInstance(HD)],this._instantiationService.createInstance(Vre),i),this._splitView.addView({onDidChange:mn.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:s=>{this._preview.layout({height:this._dim.height,width:s})}},zB.Distribute),this._splitView.addView({onDidChange:mn.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:s=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${s}px`,this._tree.layout(this._dim.height,s)}},zB.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));const r=(s,a)=>{s instanceof j7&&(a==="show"&&this._revealReference(s,!1),this._onDidSelectReference.fire({element:s,kind:a,source:"tree"}))};this._tree.onDidOpen(s=>{s.sideBySide?r(s.element,"side"):s.editorOptions.pinned?r(s.element,"goto"):r(s.element,"show")}),gd(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new Os(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then(()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))})}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=P("noResults","No results"),Dh(this._messageContainer),Promise.resolve(void 0)):(gd(this._messageContainer),this._decorationsManager=new nU(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(e=>this._tree.rerender(e))),this._disposeOnNewModel.add(this._preview.onMouseDown(e=>{const{event:t,target:i}=e;if(t.detail!==2)return;const r=this._getFocusedReference();r&&this._onDidSelectReference.fire({element:{uri:r.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),Dh(this._treeContainer),Dh(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(this._model.groups.length===1?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();if(e instanceof j7)return e;if(e instanceof OA&&e.children.length>0)return e.children[0]}async revealReference(e){await this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})}async _revealReference(e,t){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==dr.inMemory?this.setTitle(VYt(e.uri),this._uriLabel.getUriLabel(aW(e.uri))):this.setTitle(P("peekView.alternateTitle","References"));const i=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent?this._tree.reveal(e):(t&&this._tree.reveal(e.parent),await this._tree.expand(e.parent),this._tree.reveal(e));const r=await i;if(!this._model){r.dispose();return}xo(this._previewModelReference);const s=r.object;if(s){const a=this._preview.getModel()===s.textEditorModel?0:1,o=pe.lift(e.range).collapseToStart();this._previewModelReference=r,this._preview.setModel(s.textEditorModel),this._preview.setSelection(o),this._preview.revealRangeInCenter(o,a)}else this._preview.setModel(this._previewNotAvailableMessage),r.dispose()}};Wre=ahn([wg(3,ql),wg(4,yh),wg(5,Si),wg(6,gze),wg(7,Yw),wg(8,lW),wg(9,Ps),wg(10,ca),wg(11,Ro)],Wre);var uhn=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},av=function(n,e){return function(t,i){e(t,i,n)}},GP;const e_=new An("referenceSearchVisible",!1,P("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let z7=GP=class{static get(e){return e.getContribution(GP.ID)}constructor(e,t,i,r,s,a,o,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=r,this._notificationService=s,this._instantiationService=a,this._storageService=o,this._configurationService=l,this._disposables=new jt,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=e_.bindTo(i)}dispose(){var e,t;this._referenceSearchVisible.reset(),this._disposables.dispose(),(e=this._widget)===null||e===void 0||e.dispose(),(t=this._model)===null||t===void 0||t.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,i){let r;if(this._widget&&(r=this._widget.position),this.closeWidget(),r&&e.containsPosition(r))return;this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));const s="peekViewLayout",a=lhn.fromJSON(this._storageService.get(s,0,"{}"));this._widget=this._instantiationService.createInstance(Wre,this._editor,this._defaultTreeKeyboardSupport,a),this._widget.setTitle(P("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose(()=>{t.cancel(),this._widget&&(this._storageService.store(s,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(l=>{const{element:c,kind:u}=l;if(c)switch(u){case"open":(l.source!=="editor"||!this._configurationService.getValue("editor.stablePeek"))&&this.openReference(c,!1,!1);break;case"side":this.openReference(c,!0,!1);break;case"goto":i?this._gotoReference(c,!0):this.openReference(c,!1,!0);break}}));const o=++this._requestIdPool;t.then(l=>{var c;if(o!==this._requestIdPool||!this._widget){l.dispose();return}return(c=this._model)===null||c===void 0||c.dispose(),this._model=l,this._widget.setModel(this._model).then(()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(P("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const u=this._editor.getModel().uri,h=new it(e.startLineNumber,e.startColumn),d=this._model.nearestReference(u,h);if(d)return this._widget.setSelection(d).then(()=>{this._widget&&this._editor.getOption(87)==="editor"&&this._widget.focusOnPreviewEditor()})}})},l=>{this._notificationService.error(l)})}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}async goToNextOrPreviousReference(e){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const i=this._model.nearestReference(this._editor.getModel().uri,t);if(!i)return;const r=this._model.nextOrPreviousReference(i,e),s=this._editor.hasTextFocus(),a=this._widget.isPreviewEditorFocused();await this._widget.setSelection(r),await this._gotoReference(r,!1),s?this._editor.focus():this._widget&&a&&this._widget.focusOnPreviewEditor()}async revealReference(e){!this._editor.hasModel()||!this._model||!this._widget||await this._widget.revealReference(e)}closeWidget(e=!0){var t,i;(t=this._widget)===null||t===void 0||t.dispose(),(i=this._model)===null||i===void 0||i.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e,t){var i;(i=this._widget)===null||i===void 0||i.hide(),this._ignoreModelChangeEvent=!0;const r=pe.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:r,selectionSource:"code.jump",pinned:t}},this._editor).then(s=>{var a;if(this._ignoreModelChangeEvent=!1,!s||!this._widget){this.closeWidget();return}if(this._editor===s)this._widget.show(r),this._widget.focusOnReferenceTree();else{const o=GP.get(s),l=this._model.clone();this.closeWidget(),s.focus(),o==null||o.toggleWidget(r,rc(c=>Promise.resolve(l)),(a=this._peekMode)!==null&&a!==void 0?a:!1)}},s=>{this._ignoreModelChangeEvent=!1,hr(s)})}openReference(e,t,i){t||this.closeWidget();const{uri:r,range:s}=e;this._editorService.openCodeEditor({resource:r,options:{selection:s,selectionSource:"code.jump",pinned:i}},this._editor,t)}};z7.ID="editor.contrib.referencesController";z7=GP=uhn([av(2,Bi),av(3,vs),av(4,hl),av(5,Si),av(6,sf),av(7,Pr)],z7);function t_(n,e){const t=Ydn(n);if(!t)return;const i=z7.get(t);i&&e(i)}fh.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:Rl(2089,60),when:Bt.or(e_,gh.inPeekEditor),handler(n){t_(n,e=>{e.changeFocusBetweenPreviewAndReferences()})}});fh.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:Bt.or(e_,gh.inPeekEditor),handler(n){t_(n,e=>{e.goToNextOrPreviousReference(!0)})}});fh.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:Bt.or(e_,gh.inPeekEditor),handler(n){t_(n,e=>{e.goToNextOrPreviousReference(!1)})}});ss.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference");ss.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference");ss.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch");ss.registerCommand("closeReferenceSearch",n=>t_(n,e=>e.closeWidget()));fh.registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:Bt.and(gh.inPeekEditor,Bt.not("config.editor.stablePeek"))});fh.registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:Bt.and(e_,Bt.not("config.editor.stablePeek"),Bt.or(ke.editorTextFocus,Urn.negate()))});fh.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:Bt.and(e_,YBe,ehe.negate(),the.negate()),handler(n){var e;const i=(e=n.get(i0).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof j7&&t_(n,r=>r.revealReference(i[0]))}});fh.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:Bt.and(e_,YBe,ehe.negate(),the.negate()),handler(n){var e;const i=(e=n.get(i0).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof j7&&t_(n,r=>r.openReference(i[0],!0,!0))}});ss.registerCommand("openReference",n=>{var e;const i=(e=n.get(i0).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof j7&&t_(n,r=>r.openReference(i[0],!1,!0))});var bze=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},TL=function(n,e){return function(t,i){e(t,i,n)}};const zhe=new An("hasSymbols",!1,P("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),iU=Yr("ISymbolNavigationService");let Ure=class{constructor(e,t,i,r){this._editorService=t,this._notificationService=i,this._keybindingService=r,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=zhe.bindTo(e)}reset(){var e,t;this._ctxHasSymbols.reset(),(e=this._currentState)===null||e===void 0||e.dispose(),(t=this._currentMessage)===null||t===void 0||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1){this.reset();return}this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const i=new $re(this._editorService),r=i.onDidChange(s=>{if(this._ignoreEditorChange)return;const a=this._editorService.getActiveCodeEditor();if(!a)return;const o=a.getModel(),l=a.getPosition();if(!o||!l)return;let c=!1,u=!1;for(const h of t.references)if(ade(h.uri,o.uri))c=!0,u=u||pe.containsPosition(h.range,l);else if(c)break;(!c||!u)&&this.reset()});this._currentState=U0(i,r)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:pe.collapseToStart(t.range),selectionRevealType:3}},e).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){var e;(e=this._currentMessage)===null||e===void 0||e.dispose();const t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),i=t?P("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):P("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(i)}};Ure=bze([TL(0,Bi),TL(1,vs),TL(2,hl),TL(3,Ps)],Ure);os(iU,Ure,1);Cn(new class extends Ul{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:zhe,kbOpts:{weight:100,primary:70}})}runEditorCommand(n,e){return n.get(iU).revealNext(e)}});fh.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:zhe,primary:9,handler(n){n.get(iU).reset()}});let $re=class{constructor(e){this._listener=new Map,this._disposables=new jt,this._onDidChange=new Je,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),xo(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,U0(e.onDidChangeCursorPosition(t=>this._onDidChange.fire({editor:e})),e.onDidChangeModelContent(t=>this._onDidChange.fire({editor:e}))))}_onDidRemoveEditor(e){var t;(t=this._listener.get(e))===null||t===void 0||t.dispose(),this._listener.delete(e)}};$re=bze([TL(0,vs)],$re);async function FD(n,e,t,i){const s=t.ordered(n).map(o=>Promise.resolve(i(o,n,e)).then(void 0,l=>{za(l)})),a=await Promise.all(s);return yp(a.flat())}function rU(n,e,t,i){return FD(e,t,n,(r,s,a)=>r.provideDefinition(s,a,i))}function _ze(n,e,t,i){return FD(e,t,n,(r,s,a)=>r.provideDeclaration(s,a,i))}function vze(n,e,t,i){return FD(e,t,n,(r,s,a)=>r.provideImplementation(s,a,i))}function yze(n,e,t,i){return FD(e,t,n,(r,s,a)=>r.provideTypeDefinition(s,a,i))}function sU(n,e,t,i,r){return FD(e,t,n,async(s,a,o)=>{const l=await s.provideReferences(a,o,{includeDeclaration:!0},r);if(!i||!l||l.length!==2)return l;const c=await s.provideReferences(a,o,{includeDeclaration:!1},r);return c&&c.length===1?c:l})}async function BD(n){const e=await n(),t=new Vh(e,""),i=t.references.map(r=>r.link);return t.dispose(),i}U4("_executeDefinitionProvider",(n,e,t)=>{const i=n.get(Zn),r=rU(i.definitionProvider,e,t,qr.None);return BD(()=>r)});U4("_executeTypeDefinitionProvider",(n,e,t)=>{const i=n.get(Zn),r=yze(i.typeDefinitionProvider,e,t,qr.None);return BD(()=>r)});U4("_executeDeclarationProvider",(n,e,t)=>{const i=n.get(Zn),r=_ze(i.declarationProvider,e,t,qr.None);return BD(()=>r)});U4("_executeReferenceProvider",(n,e,t)=>{const i=n.get(Zn),r=sU(i.referenceProvider,e,t,!1,qr.None);return BD(()=>r)});U4("_executeImplementationProvider",(n,e,t)=>{const i=n.get(Zn),r=vze(i.implementationProvider,e,t,qr.None);return BD(()=>r)});var QS,xS,SS,eR,tR,nR,iR,rR;tc.appendMenuItem(Te.EditorContext,{submenu:Te.EditorContextPeek,title:P("peek.submenu","Peek"),group:"navigation",order:100});class hC{static is(e){return!e||typeof e!="object"?!1:!!(e instanceof hC||it.isIPosition(e.position)&&e.model)}constructor(e,t){this.model=e,this.position=t}}class Zu extends Vp{static all(){return Zu._allSymbolNavigationCommands.values()}static _patchConfig(e){const t={...e,f1:!0};if(t.menu)for(const i of rs.wrap(t.menu))(i.id===Te.EditorContext||i.id===Te.EditorContextPeek)&&(i.when=Bt.and(e.precondition,i.when));return t}constructor(e,t){super(Zu._patchConfig(t)),this.configuration=e,Zu._allSymbolNavigationCommands.set(t.id,this)}runEditorCommand(e,t,i,r){if(!t.hasModel())return Promise.resolve(void 0);const s=e.get(hl),a=e.get(vs),o=e.get(f8),l=e.get(iU),c=e.get(Zn),u=e.get(Si),h=t.getModel(),d=t.getPosition(),f=hC.is(i)?i:new hC(h,d),p=new P7(t,5),g=rD(this._getLocationModel(c,f.model,f.position,p.token),p.token).then(async m=>{var T;if(!m||p.token.isCancellationRequested)return;ph(m.ariaMessage);let b;if(m.referenceAt(h.uri,d)){const _=this._getAlternativeCommand(t);!Zu._activeAlternativeCommands.has(_)&&Zu._allSymbolNavigationCommands.has(_)&&(b=Zu._allSymbolNavigationCommands.get(_))}const v=m.references.length;if(v===0){if(!this.configuration.muteMessage){const _=h.getWordAtPosition(d);(T=Ld.get(t))===null||T===void 0||T.showMessage(this._getNoResultFoundMessage(_),d)}}else if(v===1&&b)Zu._activeAlternativeCommands.add(this.desc.id),u.invokeFunction(_=>b.runEditorCommand(_,t,i,r).finally(()=>{Zu._activeAlternativeCommands.delete(this.desc.id)}));else return this._onResult(a,l,t,m,r)},m=>{s.error(m)}).finally(()=>{p.dispose()});return o.showWhile(g,250),g}async _onResult(e,t,i,r,s){const a=this._getGoToPreference(i);if(!(i instanceof V7)&&(this.configuration.openInPeek||a==="peek"&&r.references.length>1))this._openInPeek(i,r,s);else{const o=r.firstReference(),l=r.references.length>1&&a==="gotoAndPeek",c=await this._openReference(i,e,o,this.configuration.openToSide,!l);l&&c?this._openInPeek(c,r,s):r.dispose(),a==="goto"&&t.put(o)}}async _openReference(e,t,i,r,s){let a;if(VVt(i)&&(a=i.targetSelectionRange),a||(a=i.range),!a)return;const o=await t.openCodeEditor({resource:i.uri,options:{selection:pe.collapseToStart(a),selectionRevealType:3,selectionSource:"code.jump"}},e,r);if(o){if(s){const l=o.getModel(),c=o.createDecorationsCollection([{range:a,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{o.getModel()===l&&c.clear()},350)}return o}}_openInPeek(e,t,i){const r=z7.get(e);r&&e.hasModel()?r.toggleWidget(i??e.getSelection(),rc(s=>Promise.resolve(t)),this.configuration.openInPeek):t.dispose()}}Zu._allSymbolNavigationCommands=new Map;Zu._activeAlternativeCommands=new Set;class VD extends Zu{async _getLocationModel(e,t,i,r){return new Vh(await rU(e.definitionProvider,t,i,r),P("def.title","Definitions"))}_getNoResultFoundMessage(e){return e&&e.word?P("noResultWord","No definition found for '{0}'",e.word):P("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(58).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(58).multipleDefinitions}}ko((QS=class extends VD{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:QS.id,title:{...Ji("actions.goToDecl.label","Go to Definition"),mnemonicTitle:P({},"Go to &&Definition")},precondition:ke.hasDefinitionProvider,keybinding:[{when:ke.editorTextFocus,primary:70,weight:100},{when:Bt.and(ke.editorTextFocus,qBe),primary:2118,weight:100}],menu:[{id:Te.EditorContext,group:"navigation",order:1.1},{id:Te.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),ss.registerCommandAlias("editor.action.goToDeclaration",QS.id)}},QS.id="editor.action.revealDefinition",QS));ko((xS=class extends VD{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:xS.id,title:Ji("actions.goToDeclToSide.label","Open Definition to the Side"),precondition:Bt.and(ke.hasDefinitionProvider,ke.isInEmbeddedEditor.toNegated()),keybinding:[{when:ke.editorTextFocus,primary:Rl(2089,70),weight:100},{when:Bt.and(ke.editorTextFocus,qBe),primary:Rl(2089,2118),weight:100}]}),ss.registerCommandAlias("editor.action.openDeclarationToTheSide",xS.id)}},xS.id="editor.action.revealDefinitionAside",xS));ko((SS=class extends VD{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:SS.id,title:Ji("actions.previewDecl.label","Peek Definition"),precondition:Bt.and(ke.hasDefinitionProvider,gh.notInPeekEditor,ke.isInEmbeddedEditor.toNegated()),keybinding:{when:ke.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:Te.EditorContextPeek,group:"peek",order:2}}),ss.registerCommandAlias("editor.action.previewDeclaration",SS.id)}},SS.id="editor.action.peekDefinition",SS));class wze extends Zu{async _getLocationModel(e,t,i,r){return new Vh(await _ze(e.declarationProvider,t,i,r),P("decl.title","Declarations"))}_getNoResultFoundMessage(e){return e&&e.word?P("decl.noResultWord","No declaration found for '{0}'",e.word):P("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(58).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(58).multipleDeclarations}}ko((eR=class extends wze{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:eR.id,title:{...Ji("actions.goToDeclaration.label","Go to Declaration"),mnemonicTitle:P({},"Go to &&Declaration")},precondition:Bt.and(ke.hasDeclarationProvider,ke.isInEmbeddedEditor.toNegated()),menu:[{id:Te.EditorContext,group:"navigation",order:1.3},{id:Te.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?P("decl.noResultWord","No declaration found for '{0}'",e.word):P("decl.generic.noResults","No declaration found")}},eR.id="editor.action.revealDeclaration",eR));ko(class extends wze{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:Ji("actions.peekDecl.label","Peek Declaration"),precondition:Bt.and(ke.hasDeclarationProvider,gh.notInPeekEditor,ke.isInEmbeddedEditor.toNegated()),menu:{id:Te.EditorContextPeek,group:"peek",order:3}})}});class Cze extends Zu{async _getLocationModel(e,t,i,r){return new Vh(await yze(e.typeDefinitionProvider,t,i,r),P("typedef.title","Type Definitions"))}_getNoResultFoundMessage(e){return e&&e.word?P("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):P("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(58).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(58).multipleTypeDefinitions}}ko((tR=class extends Cze{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:tR.ID,title:{...Ji("actions.goToTypeDefinition.label","Go to Type Definition"),mnemonicTitle:P({},"Go to &&Type Definition")},precondition:ke.hasTypeDefinitionProvider,keybinding:{when:ke.editorTextFocus,primary:0,weight:100},menu:[{id:Te.EditorContext,group:"navigation",order:1.4},{id:Te.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}},tR.ID="editor.action.goToTypeDefinition",tR));ko((nR=class extends Cze{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:nR.ID,title:Ji("actions.peekTypeDefinition.label","Peek Type Definition"),precondition:Bt.and(ke.hasTypeDefinitionProvider,gh.notInPeekEditor,ke.isInEmbeddedEditor.toNegated()),menu:{id:Te.EditorContextPeek,group:"peek",order:4}})}},nR.ID="editor.action.peekTypeDefinition",nR));class Qze extends Zu{async _getLocationModel(e,t,i,r){return new Vh(await vze(e.implementationProvider,t,i,r),P("impl.title","Implementations"))}_getNoResultFoundMessage(e){return e&&e.word?P("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):P("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(58).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(58).multipleImplementations}}ko((iR=class extends Qze{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:iR.ID,title:{...Ji("actions.goToImplementation.label","Go to Implementations"),mnemonicTitle:P({},"Go to &&Implementations")},precondition:ke.hasImplementationProvider,keybinding:{when:ke.editorTextFocus,primary:2118,weight:100},menu:[{id:Te.EditorContext,group:"navigation",order:1.45},{id:Te.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}},iR.ID="editor.action.goToImplementation",iR));ko((rR=class extends Qze{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:rR.ID,title:Ji("actions.peekImplementation.label","Peek Implementations"),precondition:Bt.and(ke.hasImplementationProvider,gh.notInPeekEditor,ke.isInEmbeddedEditor.toNegated()),keybinding:{when:ke.editorTextFocus,primary:3142,weight:100},menu:{id:Te.EditorContextPeek,group:"peek",order:5}})}},rR.ID="editor.action.peekImplementation",rR));class xze extends Zu{_getNoResultFoundMessage(e){return e?P("references.no","No references found for '{0}'",e.word):P("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(58).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(58).multipleReferences}}ko(class extends xze{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{...Ji("goToReferences.label","Go to References"),mnemonicTitle:P({},"Go to &&References")},precondition:Bt.and(ke.hasReferenceProvider,gh.notInPeekEditor,ke.isInEmbeddedEditor.toNegated()),keybinding:{when:ke.editorTextFocus,primary:1094,weight:100},menu:[{id:Te.EditorContext,group:"navigation",order:1.45},{id:Te.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}async _getLocationModel(e,t,i,r){return new Vh(await sU(e.referenceProvider,t,i,!0,r),P("ref.title","References"))}});ko(class extends xze{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:Ji("references.action.label","Peek References"),precondition:Bt.and(ke.hasReferenceProvider,gh.notInPeekEditor,ke.isInEmbeddedEditor.toNegated()),menu:{id:Te.EditorContextPeek,group:"peek",order:6}})}async _getLocationModel(e,t,i,r){return new Vh(await sU(e.referenceProvider,t,i,!1,r),P("ref.title","References"))}});class dhn extends Zu{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",title:Ji("label.generic","Go to Any Symbol"),precondition:Bt.and(gh.notInPeekEditor,ke.isInEmbeddedEditor.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}async _getLocationModel(e,t,i,r){return new Vh(this._references,P("generic.title","Locations"))}_getNoResultFoundMessage(e){return e&&P("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return(t=this._gotoMultipleBehaviour)!==null&&t!==void 0?t:e.getOption(58).multipleReferences}_getAlternativeCommand(){return""}}ss.registerCommand({id:"editor.action.goToLocations",metadata:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:Ai},{name:"position",description:"The position at which to start",constraint:it.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:async(n,e,t,i,r,s,a)=>{_s(Ai.isUri(e)),_s(it.isIPosition(t)),_s(Array.isArray(i)),_s(typeof r>"u"||typeof r=="string"),_s(typeof a>"u"||typeof a=="boolean");const o=n.get(vs),l=await o.openCodeEditor({resource:e},o.getFocusedCodeEditor());if(I4(l))return l.setPosition(t),l.revealPositionInCenterIfOutsideViewport(t,0),l.invokeWithinContext(c=>{const u=new class extends dhn{_getNoResultFoundMessage(h){return s||super._getNoResultFoundMessage(h)}}({muteMessage:!s,openInPeek:!!a,openToSide:!1},i,r);c.get(Si).invokeFunction(u.run.bind(u),l)})}});ss.registerCommand({id:"editor.action.peekLocations",metadata:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:Ai},{name:"position",description:"The position at which to start",constraint:it.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"}]},handler:async(n,e,t,i,r)=>{n.get(Uo).executeCommand("editor.action.goToLocations",e,t,i,r,void 0,!0)}});ss.registerCommand({id:"editor.action.findReferences",handler:(n,e,t)=>{_s(Ai.isUri(e)),_s(it.isIPosition(t));const i=n.get(Zn),r=n.get(vs);return r.openCodeEditor({resource:e},r.getFocusedCodeEditor()).then(s=>{if(!I4(s)||!s.hasModel())return;const a=z7.get(s);if(!a)return;const o=rc(c=>sU(i.referenceProvider,s.getModel(),it.lift(t),!1,c).then(u=>new Vh(u,P("ref.title","References")))),l=new pe(t.lineNumber,t.column,t.lineNumber,t.column);return Promise.resolve(a.toggleWidget(l,o,!1))})}});ss.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations");async function hhn(n,e,t,i){var r;const s=n.get(yh),a=n.get(e1),o=n.get(Uo),l=n.get(Si),c=n.get(hl);if(await i.item.resolve(qr.None),!i.part.location)return;const u=i.part.location,h=[],d=new Set(tc.getMenuItems(Te.EditorContext).map(p=>Pv(p)?p.command.id:GW()));for(const p of Zu.all())d.has(p.desc.id)&&h.push(new Fh(p.desc.id,Bh.label(p.desc,{renderShortTitle:!0}),void 0,!0,async()=>{const g=await s.createModelReference(u.uri);try{const m=new hC(g.object.textEditorModel,pe.getStartPosition(u.range)),T=i.item.anchor.range;await l.invokeFunction(p.runEditorCommand.bind(p),e,m,T)}finally{g.dispose()}}));if(i.part.command){const{command:p}=i.part;h.push(new Nl),h.push(new Fh(p.id,p.title,void 0,!0,async()=>{var g;try{await o.executeCommand(p.id,...(g=p.arguments)!==null&&g!==void 0?g:[])}catch(m){c.notify({severity:cW.Error,source:i.item.provider.displayName,message:m})}}))}const f=e.getOption(127);a.showContextMenu({domForShadowRoot:f&&(r=e.getDomNode())!==null&&r!==void 0?r:void 0,getAnchor:()=>{const p=ul(t);return{x:p.left,y:p.top+p.height+8}},getActions:()=>h,onHide:()=>{e.focus()},autoSelectFirstItem:!0})}async function Sze(n,e,t,i){const s=await n.get(yh).createModelReference(i.uri);await t.invokeWithinContext(async a=>{const o=e.hasSideBySideModifier,l=a.get(Bi),c=gh.inPeekEditor.getValue(l),u=!o&&t.getOption(88)&&!c;return new VD({openToSide:o,openInPeek:u,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(a,new hC(s.object.textEditorModel,pe.getStartPosition(i.range)),pe.lift(i.range))}),s.dispose()}var fhn=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},lv=function(n,e){return function(t,i){e(t,i,n)}},Cv;class bV{constructor(){this._entries=new $4(50)}get(e){const t=bV._key(e);return this._entries.get(t)}set(e,t){const i=bV._key(e);this._entries.set(i,t)}static _key(e){return`${e.uri.toString()}/${e.getVersionId()}`}}const Lze=Yr("IInlayHintsCache");os(Lze,bV,1);class qre{constructor(e,t){this.item=e,this.index=t}get part(){const e=this.item.hint.label;return typeof e=="string"?{label:e}:e[this.index]}}class phn{constructor(e,t){this.part=e,this.hasTriggerModifier=t}}let W7=Cv=class{static get(e){var t;return(t=e.getContribution(Cv.ID))!==null&&t!==void 0?t:void 0}constructor(e,t,i,r,s,a,o){this._editor=e,this._languageFeaturesService=t,this._inlayHintsCache=r,this._commandService=s,this._notificationService=a,this._instaService=o,this._disposables=new jt,this._sessionDisposables=new jt,this._decorationsMetadata=new Map,this._ruleFactory=new dD(this._editor),this._activeRenderMode=0,this._debounceInfo=i.for(t.inlayHintsProvider,"InlayHint",{min:25}),this._disposables.add(t.inlayHintsProvider.onDidChange(()=>this._update())),this._disposables.add(e.onDidChangeModel(()=>this._update())),this._disposables.add(e.onDidChangeModelLanguage(()=>this._update())),this._disposables.add(e.onDidChangeConfiguration(l=>{l.hasChanged(141)&&this._update()})),this._update()}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){this._sessionDisposables.clear(),this._removeAllDecorations();const e=this._editor.getOption(141);if(e.enabled==="off")return;const t=this._editor.getModel();if(!t||!this._languageFeaturesService.inlayHintsProvider.has(t))return;if(e.enabled==="on")this._activeRenderMode=0;else{let o,l;e.enabled==="onUnlessPressed"?(o=0,l=1):(o=1,l=0),this._activeRenderMode=o,this._sessionDisposables.add(rm.getInstance().event(c=>{if(!this._editor.hasModel())return;const u=c.altKey&&c.ctrlKey&&!(c.shiftKey||c.metaKey)?l:o;if(u!==this._activeRenderMode){this._activeRenderMode=u;const h=this._editor.getModel(),d=this._copyInlayHintsWithCurrentAnchor(h);this._updateHintsDecorators([h.getFullModelRange()],d),a.schedule(0)}}))}const i=this._inlayHintsCache.get(t);i&&this._updateHintsDecorators([t.getFullModelRange()],i),this._sessionDisposables.add(Qi(()=>{t.isDisposed()||this._cacheHintsForFastRestore(t)}));let r;const s=new Set,a=new oo(async()=>{const o=Date.now();r==null||r.dispose(!0),r=new Ma;const l=t.onWillDispose(()=>r==null?void 0:r.cancel());try{const c=r.token,u=await _T.create(this._languageFeaturesService.inlayHintsProvider,t,this._getHintsRanges(),c);if(a.delay=this._debounceInfo.update(t,Date.now()-o),c.isCancellationRequested){u.dispose();return}for(const h of u.provider)typeof h.onDidChangeInlayHints=="function"&&!s.has(h)&&(s.add(h),this._sessionDisposables.add(h.onDidChangeInlayHints(()=>{a.isScheduled()||a.schedule()})));this._sessionDisposables.add(u),this._updateHintsDecorators(u.ranges,u.items),this._cacheHintsForFastRestore(t)}catch(c){hr(c)}finally{r.dispose(),l.dispose()}},this._debounceInfo.get(t));this._sessionDisposables.add(a),this._sessionDisposables.add(Qi(()=>r==null?void 0:r.dispose(!0))),a.schedule(0),this._sessionDisposables.add(this._editor.onDidScrollChange(o=>{(o.scrollTopChanged||!a.isScheduled())&&a.schedule()})),this._sessionDisposables.add(this._editor.onDidChangeModelContent(o=>{r==null||r.cancel();const l=Math.max(a.delay,1250);a.schedule(l)})),this._sessionDisposables.add(this._installDblClickGesture(()=>a.schedule(0))),this._sessionDisposables.add(this._installLinkGesture()),this._sessionDisposables.add(this._installContextMenu())}_installLinkGesture(){const e=new jt,t=e.add(new XW(this._editor)),i=new jt;return e.add(i),e.add(t.onMouseMoveOrRelevantKeyDown(r=>{const[s]=r,a=this._getInlayHintLabelPart(s),o=this._editor.getModel();if(!a||!o){i.clear();return}const l=new Ma;i.add(Qi(()=>l.dispose(!0))),a.item.resolve(l.token),this._activeInlayHintPart=a.part.command||a.part.location?new phn(a,s.hasTriggerModifier):void 0;const c=o.validatePosition(a.item.hint.position).lineNumber,u=new pe(c,1,c,o.getLineMaxColumn(c)),h=this._getInlineHintsForRange(u);this._updateHintsDecorators([u],h),i.add(Qi(()=>{this._activeInlayHintPart=void 0,this._updateHintsDecorators([u],h)}))})),e.add(t.onCancel(()=>i.clear())),e.add(t.onExecute(async r=>{const s=this._getInlayHintLabelPart(r);if(s){const a=s.part;a.location?this._instaService.invokeFunction(Sze,r,this._editor,a.location):qee.is(a.command)&&await this._invokeCommand(a.command,s.item)}})),e}_getInlineHintsForRange(e){const t=new Set;for(const i of this._decorationsMetadata.values())e.containsRange(i.item.anchor.range)&&t.add(i.item);return Array.from(t)}_installDblClickGesture(e){return this._editor.onMouseUp(async t=>{if(t.event.detail!==2)return;const i=this._getInlayHintLabelPart(t);if(i&&(t.event.preventDefault(),await i.item.resolve(qr.None),Su(i.item.hint.textEdits))){const r=i.item.hint.textEdits.map(s=>ha.replace(pe.lift(s.range),s.text));this._editor.executeEdits("inlayHint.default",r),e()}})}_installContextMenu(){return this._editor.onContextMenu(async e=>{if(!(e.event.target instanceof HTMLElement))return;const t=this._getInlayHintLabelPart(e);t&&await this._instaService.invokeFunction(hhn,this._editor,e.event.target,t)})}_getInlayHintLabelPart(e){var t;if(e.target.type!==6)return;const i=(t=e.target.detail.injectedText)===null||t===void 0?void 0:t.options;if(i instanceof O7&&(i==null?void 0:i.attachedData)instanceof qre)return i.attachedData}async _invokeCommand(e,t){var i;try{await this._commandService.executeCommand(e.id,...(i=e.arguments)!==null&&i!==void 0?i:[])}catch(r){this._notificationService.notify({severity:cW.Error,source:t.provider.displayName,message:r})}}_cacheHintsForFastRestore(e){const t=this._copyInlayHintsWithCurrentAnchor(e);this._inlayHintsCache.set(e,t)}_copyInlayHintsWithCurrentAnchor(e){const t=new Map;for(const[i,r]of this._decorationsMetadata){if(t.has(r.item))continue;const s=e.getDecorationRange(i);if(s){const a=new hze(s,r.item.anchor.direction),o=r.item.with({anchor:a});t.set(r.item,o)}}return Array.from(t.values())}_getHintsRanges(){const t=this._editor.getModel(),i=this._editor.getVisibleRangesPlusViewportAboveBelow(),r=[];for(const s of i.sort(pe.compareRangesUsingStarts)){const a=t.validateRange(new pe(s.startLineNumber-30,s.startColumn,s.endLineNumber+30,s.endColumn));r.length===0||!pe.areIntersectingOrTouching(r[r.length-1],a)?r.push(a):r[r.length-1]=pe.plusRange(r[r.length-1],a)}return r}_updateHintsDecorators(e,t){var i,r;const s=[],a=(m,T,b,v,_)=>{const w={content:b,inlineClassNameAffectsLetterSpacing:!0,inlineClassName:T.className,cursorStops:v,attachedData:_};s.push({item:m,classNameRef:T,decoration:{range:m.anchor.range,options:{description:"InlayHint",showIfCollapsed:m.anchor.range.isEmpty(),collapseOnReplaceEdit:!m.anchor.range.isEmpty(),stickiness:0,[m.anchor.direction]:this._activeRenderMode===0?w:void 0}}})},o=(m,T)=>{const b=this._ruleFactory.createClassNameRef({width:`${l/3|0}px`,display:"inline-block"});a(m,b," ",T?P0.Right:P0.None)},{fontSize:l,fontFamily:c,padding:u,isUniform:h}=this._getLayoutInfo(),d="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(d,c);let f={line:0,totalLen:0};for(const m of t){if(f.line!==m.anchor.range.startLineNumber&&(f={line:m.anchor.range.startLineNumber,totalLen:0}),f.totalLen>Cv._MAX_LABEL_LEN)continue;m.hint.paddingLeft&&o(m,!1);const T=typeof m.hint.label=="string"?[{label:m.hint.label}]:m.hint.label;for(let b=0;b<T.length;b++){const v=T[b],_=b===0,w=b===T.length-1,y={fontSize:`${l}px`,fontFamily:`var(${d}), ${uh.fontFamily}`,verticalAlign:h?"baseline":"middle",unicodeBidi:"isolate"};Su(m.hint.textEdits)&&(y.cursor="default"),this._fillInColors(y,m.hint),(v.command||v.location)&&((i=this._activeInlayHintPart)===null||i===void 0?void 0:i.part.item)===m&&this._activeInlayHintPart.part.index===b&&(y.textDecoration="underline",this._activeInlayHintPart.hasTriggerModifier&&(y.color=Sa(rqt),y.cursor="pointer")),u&&(_&&w?(y.padding=`1px ${Math.max(1,l/4)|0}px`,y.borderRadius=`${l/4|0}px`):_?(y.padding=`1px 0 1px ${Math.max(1,l/4)|0}px`,y.borderRadius=`${l/4|0}px 0 0 ${l/4|0}px`):w?(y.padding=`1px ${Math.max(1,l/4)|0}px 1px 0`,y.borderRadius=`0 ${l/4|0}px ${l/4|0}px 0`):y.padding="1px 0 1px 0");let C=v.label;f.totalLen+=C.length;let x=!1;const S=f.totalLen-Cv._MAX_LABEL_LEN;if(S>0&&(C=C.slice(0,-S)+"…",x=!0),a(m,this._ruleFactory.createClassNameRef(y),ghn(C),w&&!m.hint.paddingRight?P0.Right:P0.None,new qre(m,b)),x)break}if(m.hint.paddingRight&&o(m,!0),s.length>Cv._MAX_DECORATORS)break}const p=[];for(const[m,T]of this._decorationsMetadata){const b=(r=this._editor.getModel())===null||r===void 0?void 0:r.getDecorationRange(m);b&&e.some(v=>v.containsRange(b))&&(p.push(m),T.classNameRef.dispose(),this._decorationsMetadata.delete(m))}const g=kp.capture(this._editor);this._editor.changeDecorations(m=>{const T=m.deltaDecorations(p,s.map(b=>b.decoration));for(let b=0;b<T.length;b++){const v=s[b];this._decorationsMetadata.set(T[b],v)}}),g.restore(this._editor)}_fillInColors(e,t){t.kind===FF.Parameter?(e.backgroundColor=Sa(uqt),e.color=Sa(cqt)):t.kind===FF.Type?(e.backgroundColor=Sa(lqt),e.color=Sa(aqt)):(e.backgroundColor=Sa(cm),e.color=Sa(lm))}_getLayoutInfo(){const e=this._editor.getOption(141),t=e.padding,i=this._editor.getOption(52),r=this._editor.getOption(49);let s=e.fontSize;(!s||s<5||s>i)&&(s=i);const a=e.fontFamily||r;return{fontSize:s,fontFamily:a,padding:t,isUniform:!t&&a===r&&s===i}}_removeAllDecorations(){this._editor.removeDecorations(Array.from(this._decorationsMetadata.keys()));for(const e of this._decorationsMetadata.values())e.classNameRef.dispose();this._decorationsMetadata.clear()}};W7.ID="editor.contrib.InlayHints";W7._MAX_DECORATORS=1500;W7._MAX_LABEL_LEN=43;W7=Cv=fhn([lv(1,Zn),lv(2,e0),lv(3,Lze),lv(4,Uo),lv(5,hl),lv(6,Si)],W7);function ghn(n){return n.replace(/[ \t]/g," ")}ss.registerCommand("_executeInlayHintProvider",async(n,...e)=>{const[t,i]=e;_s(Ai.isUri(t)),_s(pe.isIRange(i));const{inlayHintsProvider:r}=n.get(Zn),s=await n.get(yh).createModelReference(t);try{const a=await _T.create(r,s.object.textEditorModel,[pe.lift(i)],qr.None),o=a.items.map(l=>l.hint);return setTimeout(()=>a.dispose(),0),o}finally{s.dispose()}});var mhn=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},n9=function(n,e){return function(t,i){e(t,i,n)}};class f_e extends bT{constructor(e,t,i,r){super(10,t,e.item.anchor.range,i,r,!0),this.part=e}}let _V=class extends DA{constructor(e,t,i,r,s,a,o,l){super(e,t,i,a,l,r,s),this._resolverService=o,this.hoverOrdinal=6}suggestHoverAnchor(e){var t;if(!W7.get(this._editor)||e.target.type!==6)return null;const r=(t=e.target.detail.injectedText)===null||t===void 0?void 0:t.options;return r instanceof O7&&r.attachedData instanceof qre?new f_e(r.attachedData,this,e.event.posx,e.event.posy):null}computeSync(){return[]}computeAsync(e,t,i){return e instanceof f_e?new yl(async r=>{const{part:s}=e;if(await s.item.resolve(i),i.isCancellationRequested)return;let a;typeof s.item.hint.tooltip=="string"?a=new wu().appendText(s.item.hint.tooltip):s.item.hint.tooltip&&(a=s.item.hint.tooltip),a&&r.emitOne(new $f(this,e.range,[a],!1,0)),Su(s.item.hint.textEdits)&&r.emitOne(new $f(this,e.range,[new wu().appendText(P("hint.dbl","Double-click to insert"))],!1,10001));let o;if(typeof s.part.tooltip=="string"?o=new wu().appendText(s.part.tooltip):s.part.tooltip&&(o=s.part.tooltip),o&&r.emitOne(new $f(this,e.range,[o],!1,1)),s.part.location||s.part.command){let c;const h=this._editor.getOption(78)==="altKey"?$r?P("links.navigate.kb.meta.mac","cmd + click"):P("links.navigate.kb.meta","ctrl + click"):$r?P("links.navigate.kb.alt.mac","option + click"):P("links.navigate.kb.alt","alt + click");s.part.location&&s.part.command?c=new wu().appendText(P("hint.defAndCommand","Go to Definition ({0}), right click for more",h)):s.part.location?c=new wu().appendText(P("hint.def","Go to Definition ({0})",h)):s.part.command&&(c=new wu(`[${P("hint.cmd","Execute Command")}](${Wdn(s.part.command)} "${s.part.command.title}") (${h})`,{isTrusted:!0})),c&&r.emitOne(new $f(this,e.range,[c],!1,1e4))}const l=await this._resolveInlayHintLabelPartHover(s,i);for await(const c of l)r.emitOne(c)}):yl.EMPTY}async _resolveInlayHintLabelPartHover(e,t){if(!e.part.location)return yl.EMPTY;const{uri:i,range:r}=e.part.location,s=await this._resolverService.createModelReference(i);try{const a=s.object.textEditorModel;return this._languageFeaturesService.hoverProvider.has(a)?Vhe(this._languageFeaturesService.hoverProvider,a,new it(r.startLineNumber,r.startColumn),t).filter(o=>!Gw(o.hover.contents)).map(o=>new $f(this,e.item.anchor.range,o.hover.contents,!1,2+o.ordinal)):yl.EMPTY}finally{s.dispose()}}};_V=mhn([n9(1,ca),n9(2,t1),n9(3,Ps),n9(4,q4),n9(5,Pr),n9(6,yh),n9(7,Zn)],_V);class vV{get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}get source(){return this._source}set source(e){this._source=e}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(e){this._insistOnKeepingHoverVisible=e}constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(e,t){if(t.type!==1&&!t.supportsMarkerHover)return[];const i=e.getModel(),r=t.range.startLineNumber;if(r>i.getLineCount())return[];const s=i.getLineMaxColumn(r);return e.getLineDecorations(r).filter(a=>{if(a.options.isWholeLine)return!0;const o=a.range.startLineNumber===r?a.range.startColumn:1,l=a.range.endLineNumber===r?a.range.endColumn:s;if(a.options.showIfCollapsed){if(o>t.range.startColumn+1||t.range.endColumn-1>l)return!1}else if(o>t.range.startColumn||t.range.endColumn>l)return!1;return!0})}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return yl.EMPTY;const i=vV._getLineDecorations(this._editor,t);return yl.merge(this._participants.map(r=>r.computeAsync?r.computeAsync(t,i,e):yl.EMPTY))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=vV._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return yp(t)}}class Eze{constructor(e,t,i){this.anchor=e,this.messages=t,this.isComplete=i}filter(e){const t=this.messages.filter(i=>i.isValidForHoverAnchor(e));return t.length===this.messages.length?this:new Thn(this,this.anchor,t,this.isComplete)}}class Thn extends Eze{constructor(e,t,i,r){super(t,i,r),this.original=e}filter(e){return this.original.filter(e)}}class bhn{constructor(e,t,i,r,s,a,o,l,c,u){this.initialMousePosX=e,this.initialMousePosY=t,this.colorPicker=i,this.showAtPosition=r,this.showAtSecondaryPosition=s,this.preferAbove=a,this.stoleFocus=o,this.source=l,this.isBeforeContent=c,this.disposables=u,this.closestMouseDistance=void 0}}var _hn=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},vhn=function(n,e){return function(t,i){e(t,i,n)}};const p_e=hn;let yV=class extends ct{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=p_e("div.hover-row.status-bar"),this.hoverElement.tabIndex=0,this.actionsElement=$t(this.hoverElement,p_e("div.actions"))}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;return this._hasContent=!0,this._register(dW.render(this.actionsElement,e,i))}append(e){const t=$t(this.actionsElement,e);return this._hasContent=!0,t}};yV=_hn([vhn(0,Ps)],yV);var yhn=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},g_e=function(n,e){return function(t,i){e(t,i,n)}},KP;let wV=KP=class extends ct{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._currentResult=null,this._widget=this._register(this._instantiationService.createInstance(dC,this._editor)),this._participants=[];for(const r of m8.getAll()){const s=this._instantiationService.createInstance(r,this._editor);s instanceof DA&&!(s instanceof _V)&&(this._markdownHoverParticipant=s),this._participants.push(s)}this._participants.sort((r,s)=>r.hoverOrdinal-s.hoverOrdinal),this._computer=new vV(this._editor,this._participants),this._hoverOperation=this._register(new cze(this._editor,this._computer)),this._register(this._hoverOperation.onResult(r=>{if(!this._computer.anchor)return;const s=r.hasLoadingMessage?this._addLoadingMessage(r.value):r.value;this._withResult(new Eze(this._computer.anchor,s,r.isComplete))})),this._register(ja(this._widget.getDomNode(),"keydown",r=>{r.equals(9)&&this.hide()})),this._register(xa.onDidChange(()=>{this._widget.position&&this._currentResult&&this._setCurrentResult(this._currentResult)}))}_startShowingOrUpdateHover(e,t,i,r,s){return!this._widget.position||!this._currentResult?e?(this._startHoverOperationIfNecessary(e,t,i,r,!1),!0):!1:this._editor.getOption(60).sticky&&s&&this._widget.isMouseGettingCloser(s.event.posx,s.event.posy)?(e&&this._startHoverOperationIfNecessary(e,t,i,r,!0),!0):e?e&&this._currentResult.anchor.equals(e)?!0:e.canAdoptVisibleHover(this._currentResult.anchor,this._widget.position)?(this._setCurrentResult(this._currentResult.filter(e)),this._startHoverOperationIfNecessary(e,t,i,r,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,i,r,!1),!0):(this._setCurrentResult(null),!1)}_startHoverOperationIfNecessary(e,t,i,r,s){this._computer.anchor&&this._computer.anchor.equals(e)||(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=r,this._computer.source=i,this._computer.insistOnKeepingHoverVisible=s,this._hoverOperation.start(t))}_setCurrentResult(e){this._currentResult!==e&&(e&&e.messages.length===0&&(e=null),this._currentResult=e,this._currentResult?this._renderMessages(this._currentResult.anchor,this._currentResult.messages):this._widget.hide())}_addLoadingMessage(e){if(this._computer.anchor){for(const t of this._participants)if(t.createLoadingMessage){const i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}}return e}_withResult(e){this._widget.position&&this._currentResult&&this._currentResult.isComplete&&(!e.isComplete||this._computer.insistOnKeepingHoverVisible&&e.messages.length===0)||this._setCurrentResult(e)}_renderMessages(e,t){const{showAtPosition:i,showAtSecondaryPosition:r,highlightRange:s}=KP.computeHoverRanges(this._editor,e.range,t),a=new jt,o=a.add(new yV(this._keybindingService)),l=document.createDocumentFragment();let c=null;const u={fragment:l,statusBar:o,setColorPicker:d=>c=d,onContentsChanged:()=>this._widget.onContentsChanged(),setMinimumDimensions:d=>this._widget.setMinimumDimensions(d),hide:()=>this.hide()};for(const d of this._participants){const f=t.filter(p=>p.owner===d);f.length>0&&a.add(d.renderHoverParts(u,f))}const h=t.some(d=>d.isBeforeContent);if(o.hasContent&&l.appendChild(o.hoverElement),l.hasChildNodes()){if(s){const d=this._editor.createDecorationsCollection();d.set([{range:s,options:KP._DECORATION_OPTIONS}]),a.add(Qi(()=>{d.clear()}))}this._widget.showAt(l,new bhn(e.initialMousePosX,e.initialMousePosY,c,i,r,this._editor.getOption(60).above,this._computer.shouldFocus,this._computer.source,h,a))}else a.dispose()}static computeHoverRanges(e,t,i){let r=1;if(e.hasModel()){const h=e._getViewModel(),d=h.coordinatesConverter,f=d.convertModelRangeToViewRange(t),p=new it(f.startLineNumber,h.getLineMinColumn(f.startLineNumber));r=d.convertViewPositionToModelPosition(p).column}const s=t.startLineNumber;let a=t.startColumn,o=i[0].range,l=null;for(const h of i)o=pe.plusRange(o,h.range),h.range.startLineNumber===s&&h.range.endLineNumber===s&&(a=Math.max(Math.min(a,h.range.startColumn),r)),h.forceShowAtRange&&(l=h.range);const c=l?l.getStartPosition():new it(s,t.startColumn),u=l?l.getStartPosition():new it(s,a);return{showAtPosition:c,showAtSecondaryPosition:u,highlightRange:o}}showsOrWillShow(e){if(this._widget.isResizing)return!0;const t=[];for(const r of this._participants)if(r.suggestHoverAnchor){const s=r.suggestHoverAnchor(e);s&&t.push(s)}const i=e.target;if(i.type===6&&t.push(new EY(0,i.range,e.event.posx,e.event.posy)),i.type===7){const r=this._editor.getOption(50).typicalHalfwidthCharacterWidth/2;!i.detail.isAfterLines&&typeof i.detail.horizontalDistanceToText=="number"&&i.detail.horizontalDistanceToText<r&&t.push(new EY(0,i.range,e.event.posx,e.event.posy))}return t.length===0?this._startShowingOrUpdateHover(null,0,0,!1,e):(t.sort((r,s)=>s.priority-r.priority),this._startShowingOrUpdateHover(t[0],0,0,!1,e))}startShowingAtRange(e,t,i,r){this._startShowingOrUpdateHover(new EY(0,e,void 0,void 0),t,i,r,null)}async updateFocusedMarkdownHoverVerbosityLevel(e){var t;(t=this._markdownHoverParticipant)===null||t===void 0||t.updateFocusedMarkdownHoverPartVerbosityLevel(e)}containsNode(e){return e?this._widget.getDomNode().contains(e):!1}focus(){this._widget.focus()}scrollUp(){this._widget.scrollUp()}scrollDown(){this._widget.scrollDown()}scrollLeft(){this._widget.scrollLeft()}scrollRight(){this._widget.scrollRight()}pageUp(){this._widget.pageUp()}pageDown(){this._widget.pageDown()}goToTop(){this._widget.goToTop()}goToBottom(){this._widget.goToBottom()}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}get isColorPickerVisible(){return this._widget.isColorPickerVisible}get isVisibleFromKeyboard(){return this._widget.isVisibleFromKeyboard}get isVisible(){return this._widget.isVisible}get isFocused(){return this._widget.isFocused}get isResizing(){return this._widget.isResizing}get widget(){return this._widget}};wV._DECORATION_OPTIONS=fr.register({description:"content-hover-highlight",className:"hoverHighlight"});wV=KP=yhn([g_e(1,Si),g_e(2,Ps)],wV);class whn{get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}get lane(){return this._laneOrLine}set lane(e){this._laneOrLine=e}constructor(e){this._editor=e,this._lineNumber=-1,this._laneOrLine=w4.Center}computeSync(){var e,t;const i=o=>({value:o}),r=this._editor.getLineDecorations(this._lineNumber),s=[],a=this._laneOrLine==="lineNo";if(!r)return s;for(const o of r){const l=(t=(e=o.options.glyphMargin)===null||e===void 0?void 0:e.position)!==null&&t!==void 0?t:w4.Center;if(!a&&l!==this._laneOrLine)continue;const c=a?o.options.lineNumberHoverMessage:o.options.glyphMarginHoverMessage;!c||Gw(c)||s.push(...Gce(c).map(i))}return s}}const m_e=hn;class RA extends ct{constructor(e,t,i){super(),this._renderDisposeables=this._register(new jt),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new Qde),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new S4({editor:this._editor},t,i)),this._computer=new whn(this._editor),this._hoverOperation=this._register(new cze(this._editor,this._computer)),this._register(this._hoverOperation.onResult(r=>{this._withResult(r.value)})),this._register(this._editor.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged())),this._register(this._editor.onDidChangeConfiguration(r=>{r.hasChanged(50)&&this._updateFont()})),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return RA.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}showsOrWillShow(e){const t=e.target;return t.type===2&&t.detail.glyphMarginLane?(this._startShowingAt(t.position.lineNumber,t.detail.glyphMarginLane),!0):t.type===3?(this._startShowingAt(t.position.lineNumber,"lineNo"),!0):!1}_startShowingAt(e,t){this._computer.lineNumber===e&&this._computer.lane===t||(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._computer.lane=t,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const i=document.createDocumentFragment();for(const r of t){const s=m_e("div.hover-row.markdown-hover"),a=$t(s,m_e("div.hover-contents")),o=this._renderDisposeables.add(this._markdownRenderer.render(r.value));a.appendChild(o.element),i.appendChild(s)}this._updateContents(i),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),i=this._editor.getTopForLineNumber(e),r=this._editor.getScrollTop(),s=this._editor.getOption(67),a=this._hover.containerDomNode.clientHeight,o=i-r-(a-s)/2,l=t.glyphMarginLeft+t.glyphMarginWidth+(this._computer.lane==="lineNo"?t.lineNumbersWidth:0);this._hover.containerDomNode.style.left=`${l}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(o),0)}px`}}RA.ID="editor.contrib.modesGlyphHoverWidget";var Chn=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},T_e=function(n,e){return function(t,i){e(t,i,n)}},Zre;let Ju=Zre=class extends ct{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._listenersStore=new jt,this._hoverState={mouseDown:!1,activatedByDecoratorClick:!1},this._reactToEditorMouseMoveRunner=this._register(new oo(()=>this._reactToEditorMouseMove(this._mouseMoveEvent),0)),this._hookListeners(),this._register(this._editor.onDidChangeConfiguration(r=>{r.hasChanged(60)&&(this._unhookListeners(),this._hookListeners())}))}static get(e){return e.getContribution(Zre.ID)}_hookListeners(){const e=this._editor.getOption(60);this._hoverSettings={enabled:e.enabled,sticky:e.sticky,hidingDelay:e.delay},e.enabled?(this._listenersStore.add(this._editor.onMouseDown(t=>this._onEditorMouseDown(t))),this._listenersStore.add(this._editor.onMouseUp(()=>this._onEditorMouseUp())),this._listenersStore.add(this._editor.onMouseMove(t=>this._onEditorMouseMove(t))),this._listenersStore.add(this._editor.onKeyDown(t=>this._onKeyDown(t)))):(this._listenersStore.add(this._editor.onMouseMove(t=>this._onEditorMouseMove(t))),this._listenersStore.add(this._editor.onKeyDown(t=>this._onKeyDown(t)))),this._listenersStore.add(this._editor.onMouseLeave(t=>this._onEditorMouseLeave(t))),this._listenersStore.add(this._editor.onDidChangeModel(()=>{this._cancelScheduler(),this._hideWidgets()})),this._listenersStore.add(this._editor.onDidChangeModelContent(()=>this._cancelScheduler())),this._listenersStore.add(this._editor.onDidScrollChange(t=>this._onEditorScrollChanged(t)))}_unhookListeners(){this._listenersStore.clear()}_cancelScheduler(){this._mouseMoveEvent=void 0,this._reactToEditorMouseMoveRunner.cancel()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._hoverState.mouseDown=!0,!this._shouldNotHideCurrentHoverWidget(e)&&this._hideWidgets()}_shouldNotHideCurrentHoverWidget(e){return!!(this._isMouseOnContentHoverWidget(e)||this._isMouseOnMarginHoverWidget(e)||this._isContentWidgetResizing())}_isMouseOnMarginHoverWidget(e){const t=e.target;return t?t.type===12&&t.detail===RA.ID:!1}_isMouseOnContentHoverWidget(e){const t=e.target;return t?t.type===9&&t.detail===dC.ID:!1}_onEditorMouseUp(){this._hoverState.mouseDown=!1}_onEditorMouseLeave(e){this._cancelScheduler(),!this._shouldNotHideCurrentHoverWidget(e)&&this._hideWidgets()}_shouldNotRecomputeCurrentHoverWidget(e){const t=this._hoverSettings.sticky,i=(o,l)=>{const c=this._isMouseOnMarginHoverWidget(o);return l&&c},r=(o,l)=>{const c=this._isMouseOnContentHoverWidget(o);return l&&c},s=o=>{var l;const c=this._isMouseOnContentHoverWidget(o),u=(l=this._contentWidget)===null||l===void 0?void 0:l.isColorPickerVisible;return c&&u},a=(o,l)=>{var c,u,h,d;return l&&((c=this._contentWidget)===null||c===void 0?void 0:c.containsNode((u=o.event.browserEvent.view)===null||u===void 0?void 0:u.document.activeElement))&&!(!((d=(h=o.event.browserEvent.view)===null||h===void 0?void 0:h.getSelection())===null||d===void 0)&&d.isCollapsed)};return!!(i(e,t)||r(e,t)||s(e)||a(e,t))}_onEditorMouseMove(e){var t,i,r,s;if(this._mouseMoveEvent=e,!((t=this._contentWidget)===null||t===void 0)&&t.isFocused||!((i=this._contentWidget)===null||i===void 0)&&i.isResizing)return;const a=this._hoverSettings.sticky;if(a&&(!((r=this._contentWidget)===null||r===void 0)&&r.isVisibleFromKeyboard))return;if(this._shouldNotRecomputeCurrentHoverWidget(e)){this._reactToEditorMouseMoveRunner.cancel();return}const l=this._hoverSettings.hidingDelay;if(((s=this._contentWidget)===null||s===void 0?void 0:s.isVisible)&&a&&l>0){this._reactToEditorMouseMoveRunner.isScheduled()||this._reactToEditorMouseMoveRunner.schedule(l);return}this._reactToEditorMouseMove(e)}_reactToEditorMouseMove(e){var t;if(!e)return;const r=(t=e.target.element)===null||t===void 0?void 0:t.classList.contains("colorpicker-color-decoration"),s=this._editor.getOption(148),a=this._hoverSettings.enabled,o=this._hoverState.activatedByDecoratorClick;if(r&&(s==="click"&&!o||s==="hover"&&!a||s==="clickAndHover"&&!a&&!o)||!r&&!a&&!o){this._hideWidgets();return}this._tryShowHoverWidget(e,0)||this._tryShowHoverWidget(e,1)||this._hideWidgets()}_tryShowHoverWidget(e,t){const i=this._getOrCreateContentWidget(),r=this._getOrCreateGlyphWidget();let s,a;switch(t){case 0:s=i,a=r;break;case 1:s=r,a=i;break;default:throw new Error(`HoverWidgetType ${t} is unrecognized`)}const o=s.showsOrWillShow(e);return o&&a.hide(),o}_onKeyDown(e){var t;if(!this._editor.hasModel())return;const i=this._keybindingService.softDispatch(e,this._editor.getDomNode()),r=i.kind===1||i.kind===2&&(i.commandId===sze||i.commandId===Phe||i.commandId===Hhe)&&((t=this._contentWidget)===null||t===void 0?void 0:t.isVisible);e.keyCode===5||e.keyCode===6||e.keyCode===57||e.keyCode===4||r||this._hideWidgets()}_hideWidgets(){var e,t,i;this._hoverState.mouseDown&&(!((e=this._contentWidget)===null||e===void 0)&&e.isColorPickerVisible)||B7.dropDownVisible||(this._hoverState.activatedByDecoratorClick=!1,(t=this._glyphWidget)===null||t===void 0||t.hide(),(i=this._contentWidget)===null||i===void 0||i.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(wV,this._editor)),this._contentWidget}_getOrCreateGlyphWidget(){return this._glyphWidget||(this._glyphWidget=this._instantiationService.createInstance(RA,this._editor)),this._glyphWidget}showContentHover(e,t,i,r,s=!1){this._hoverState.activatedByDecoratorClick=s,this._getOrCreateContentWidget().startShowingAtRange(e,t,i,r)}_isContentWidgetResizing(){var e;return((e=this._contentWidget)===null||e===void 0?void 0:e.widget.isResizing)||!1}updateFocusedMarkdownHoverVerbosityLevel(e){this._getOrCreateContentWidget().updateFocusedMarkdownHoverVerbosityLevel(e)}focus(){var e;(e=this._contentWidget)===null||e===void 0||e.focus()}scrollUp(){var e;(e=this._contentWidget)===null||e===void 0||e.scrollUp()}scrollDown(){var e;(e=this._contentWidget)===null||e===void 0||e.scrollDown()}scrollLeft(){var e;(e=this._contentWidget)===null||e===void 0||e.scrollLeft()}scrollRight(){var e;(e=this._contentWidget)===null||e===void 0||e.scrollRight()}pageUp(){var e;(e=this._contentWidget)===null||e===void 0||e.pageUp()}pageDown(){var e;(e=this._contentWidget)===null||e===void 0||e.pageDown()}goToTop(){var e;(e=this._contentWidget)===null||e===void 0||e.goToTop()}goToBottom(){var e;(e=this._contentWidget)===null||e===void 0||e.goToBottom()}get isColorPickerVisible(){var e;return(e=this._contentWidget)===null||e===void 0?void 0:e.isColorPickerVisible}get isHoverVisible(){var e;return(e=this._contentWidget)===null||e===void 0?void 0:e.isVisible}dispose(){var e,t;super.dispose(),this._unhookListeners(),this._listenersStore.dispose(),(e=this._glyphWidget)===null||e===void 0||e.dispose(),(t=this._contentWidget)===null||t===void 0||t.dispose()}};Ju.ID="editor.contrib.hover";Ju=Zre=Chn([T_e(1,Si),T_e(2,Ps)],Ju);class Gre extends ct{constructor(e){super(),this._editor=e,this._register(e.onMouseDown(t=>this.onMouseDown(t)))}dispose(){super.dispose()}onMouseDown(e){const t=this._editor.getOption(148);if(t!=="click"&&t!=="clickAndHover")return;const i=e.target;if(i.type!==6||!i.detail.injectedText||i.detail.injectedText.options.attachedData!==Xje||!i.range)return;const r=this._editor.getContribution(Ju.ID);if(r&&!r.isColorPickerVisible){const s=new pe(i.range.startLineNumber,i.range.startColumn+1,i.range.endLineNumber,i.range.endColumn+1);r.showContentHover(s,1,0,!1,!0)}}}Gre.ID="editor.contrib.colorContribution";Ls(Gre.ID,Gre,2);m8.register(mV);var kze=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},Bf=function(n,e){return function(t,i){e(t,i,n)}},Kre,Yre;let U7=Kre=class extends ct{constructor(e,t,i,r,s,a,o){super(),this._editor=e,this._modelService=i,this._keybindingService=r,this._instantiationService=s,this._languageFeatureService=a,this._languageConfigurationService=o,this._standaloneColorPickerWidget=null,this._standaloneColorPickerVisible=ke.standaloneColorPickerVisible.bindTo(t),this._standaloneColorPickerFocused=ke.standaloneColorPickerFocused.bindTo(t)}showOrFocus(){var e;this._editor.hasModel()&&(this._standaloneColorPickerVisible.get()?this._standaloneColorPickerFocused.get()||(e=this._standaloneColorPickerWidget)===null||e===void 0||e.focus():this._standaloneColorPickerWidget=new CV(this._editor,this._standaloneColorPickerVisible,this._standaloneColorPickerFocused,this._instantiationService,this._modelService,this._keybindingService,this._languageFeatureService,this._languageConfigurationService))}hide(){var e;this._standaloneColorPickerFocused.set(!1),this._standaloneColorPickerVisible.set(!1),(e=this._standaloneColorPickerWidget)===null||e===void 0||e.hide(),this._editor.focus()}insertColor(){var e;(e=this._standaloneColorPickerWidget)===null||e===void 0||e.updateEditor(),this.hide()}static get(e){return e.getContribution(Kre.ID)}};U7.ID="editor.contrib.standaloneColorPickerController";U7=Kre=kze([Bf(1,Bi),Bf(2,fa),Bf(3,Ps),Bf(4,Si),Bf(5,Zn),Bf(6,Ro)],U7);Ls(U7.ID,U7,1);const b_e=8,Qhn=22;let CV=Yre=class extends ct{constructor(e,t,i,r,s,a,o,l){var c;super(),this._editor=e,this._standaloneColorPickerVisible=t,this._standaloneColorPickerFocused=i,this._modelService=s,this._keybindingService=a,this._languageFeaturesService=o,this._languageConfigurationService=l,this.allowEditorOverflow=!0,this._position=void 0,this._body=document.createElement("div"),this._colorHover=null,this._selectionSetInEditor=!1,this._onResult=this._register(new Je),this.onResult=this._onResult.event,this._standaloneColorPickerVisible.set(!0),this._standaloneColorPickerParticipant=r.createInstance(IA,this._editor),this._position=(c=this._editor._getViewModel())===null||c===void 0?void 0:c.getPrimaryCursorState().modelState.position;const u=this._editor.getSelection(),h=u?{startLineNumber:u.startLineNumber,startColumn:u.startColumn,endLineNumber:u.endLineNumber,endColumn:u.endColumn}:{startLineNumber:0,endLineNumber:0,endColumn:0,startColumn:0},d=this._register(ef(this._body));this._register(d.onDidBlur(f=>{this.hide()})),this._register(d.onDidFocus(f=>{this.focus()})),this._register(this._editor.onDidChangeCursorPosition(()=>{this._selectionSetInEditor?this._selectionSetInEditor=!1:this.hide()})),this._register(this._editor.onMouseMove(f=>{var p;const g=(p=f.target.element)===null||p===void 0?void 0:p.classList;g&&g.contains("colorpicker-color-decoration")&&this.hide()})),this._register(this.onResult(f=>{this._render(f.value,f.foundInEditor)})),this._start(h),this._body.style.zIndex="50",this._editor.addContentWidget(this)}updateEditor(){this._colorHover&&this._standaloneColorPickerParticipant.updateEditorModel(this._colorHover)}getId(){return Yre.ID}getDomNode(){return this._body}getPosition(){if(!this._position)return null;const e=this._editor.getOption(60).above;return{position:this._position,secondaryPosition:this._position,preference:e?[1,2]:[2,1],positionAffinity:2}}hide(){this.dispose(),this._standaloneColorPickerVisible.set(!1),this._standaloneColorPickerFocused.set(!1),this._editor.removeContentWidget(this),this._editor.focus()}focus(){this._standaloneColorPickerFocused.set(!0),this._body.focus()}async _start(e){const t=await this._computeAsync(e);t&&this._onResult.fire(new xhn(t.result,t.foundInEditor))}async _computeAsync(e){if(!this._editor.hasModel())return null;const t={range:e,color:{red:0,green:0,blue:0,alpha:1}},i=await this._standaloneColorPickerParticipant.createColorHover(t,new Nhe(this._modelService,this._languageConfigurationService),this._languageFeaturesService.colorProvider);return i?{result:i.colorHover,foundInEditor:i.foundInEditor}:null}_render(e,t){const i=document.createDocumentFragment(),r=this._register(new yV(this._keybindingService));let s;const a={fragment:i,statusBar:r,setColorPicker:g=>s=g,onContentsChanged:()=>{},hide:()=>this.hide()};if(this._colorHover=e,this._register(this._standaloneColorPickerParticipant.renderHoverParts(a,[e])),s===void 0)return;this._body.classList.add("standalone-colorpicker-body"),this._body.style.maxHeight=Math.max(this._editor.getLayoutInfo().height/4,250)+"px",this._body.style.maxWidth=Math.max(this._editor.getLayoutInfo().width*.66,500)+"px",this._body.tabIndex=0,this._body.appendChild(i),s.layout();const o=s.body,l=o.saturationBox.domNode.clientWidth,c=o.domNode.clientWidth-l-Qhn-b_e,u=s.body.enterButton;u==null||u.onClicked(()=>{this.updateEditor(),this.hide()});const h=s.header,d=h.pickedColorNode;d.style.width=l+b_e+"px";const f=h.originalColorNode;f.style.width=c+"px";const p=s.header.closeButton;p==null||p.onClicked(()=>{this.hide()}),t&&(u&&(u.button.textContent="Replace"),this._selectionSetInEditor=!0,this._editor.setSelection(e.range)),this._editor.layoutContentWidget(this)}};CV.ID="editor.contrib.standaloneColorPickerWidget";CV=Yre=kze([Bf(3,Si),Bf(4,fa),Bf(5,Ps),Bf(6,Zn),Bf(7,Ro)],CV);class xhn{constructor(e,t){this.value=e,this.foundInEditor=t}}class Shn extends Vp{constructor(){super({id:"editor.action.showOrFocusStandaloneColorPicker",title:{...Ji("showOrFocusStandaloneColorPicker","Show or Focus Standalone Color Picker"),mnemonicTitle:P({},"&&Show or Focus Standalone Color Picker")},precondition:void 0,menu:[{id:Te.CommandPalette}],metadata:{description:Ji("showOrFocusStandaloneColorPickerDescription","Show or focus a standalone color picker which uses the default color provider. It displays hex/rgb/hsl colors.")}})}runEditorCommand(e,t){var i;(i=U7.get(t))===null||i===void 0||i.showOrFocus()}}class Lhn extends Bn{constructor(){super({id:"editor.action.hideColorPicker",label:P({},"Hide the Color Picker"),alias:"Hide the Color Picker",precondition:ke.standaloneColorPickerVisible.isEqualTo(!0),kbOpts:{primary:9,weight:100},metadata:{description:Ji("hideColorPickerDescription","Hide the standalone color picker.")}})}run(e,t){var i;(i=U7.get(t))===null||i===void 0||i.hide()}}class Ehn extends Bn{constructor(){super({id:"editor.action.insertColorWithStandaloneColorPicker",label:P({},"Insert Color with Standalone Color Picker"),alias:"Insert Color with Standalone Color Picker",precondition:ke.standaloneColorPickerFocused.isEqualTo(!0),kbOpts:{primary:3,weight:100},metadata:{description:Ji("insertColorWithStandaloneColorPickerDescription","Insert hex/rgb/hsl colors with the focused standalone color picker.")}})}run(e,t){var i;(i=U7.get(t))===null||i===void 0||i.insertColor()}}rn(Lhn);rn(Ehn);ko(Shn);class V6{constructor(e,t,i){this.languageConfigurationService=i,this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,i){if(i<0)return!1;const r=t.length,s=e.length;if(i+r>s)return!1;for(let a=0;a<r;a++){const o=e.charCodeAt(i+a),l=t.charCodeAt(a);if(o!==l&&!(o>=65&&o<=90&&o+32===l)&&!(l>=65&&l<=90&&l+32===o))return!1}return!0}_createOperationsForBlockComment(e,t,i,r,s,a){const o=e.startLineNumber,l=e.startColumn,c=e.endLineNumber,u=e.endColumn,h=s.getLineContent(o),d=s.getLineContent(c);let f=h.lastIndexOf(t,l-1+t.length),p=d.indexOf(i,u-1-i.length);if(f!==-1&&p!==-1)if(o===c)h.substring(f+t.length,p).indexOf(i)>=0&&(f=-1,p=-1);else{const m=h.substring(f+t.length),T=d.substring(0,p);(m.indexOf(i)>=0||T.indexOf(i)>=0)&&(f=-1,p=-1)}let g;f!==-1&&p!==-1?(r&&f+t.length<h.length&&h.charCodeAt(f+t.length)===32&&(t=t+" "),r&&p>0&&d.charCodeAt(p-1)===32&&(i=" "+i,p-=1),g=V6._createRemoveBlockCommentOperations(new pe(o,f+t.length+1,c,p+1),t,i)):(g=V6._createAddBlockCommentOperations(e,t,i,this._insertSpace),this._usedEndToken=g.length===1?i:null);for(const m of g)a.addTrackedEditOperation(m.range,m.text)}static _createRemoveBlockCommentOperations(e,t,i){const r=[];return pe.isEmpty(e)?r.push(ha.delete(new pe(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+i.length))):(r.push(ha.delete(new pe(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),r.push(ha.delete(new pe(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+i.length)))),r}static _createAddBlockCommentOperations(e,t,i,r){const s=[];return pe.isEmpty(e)?s.push(ha.replace(new pe(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+i)):(s.push(ha.insert(new it(e.startLineNumber,e.startColumn),t+(r?" ":""))),s.push(ha.insert(new it(e.endLineNumber,e.endColumn),(r?" ":"")+i))),s}getEditOperations(e,t){const i=this._selection.startLineNumber,r=this._selection.startColumn;e.tokenization.tokenizeIfCheap(i);const s=e.getLanguageIdAtPosition(i,r),a=this.languageConfigurationService.getLanguageConfiguration(s).comments;!a||!a.blockCommentStartToken||!a.blockCommentEndToken||this._createOperationsForBlockComment(this._selection,a.blockCommentStartToken,a.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){const i=t.getInverseEditOperations();if(i.length===2){const r=i[0],s=i[1];return new ei(r.range.endLineNumber,r.range.endColumn,s.range.startLineNumber,s.range.startColumn)}else{const r=i[0].range,s=this._usedEndToken?-this._usedEndToken.length-1:0;return new ei(r.endLineNumber,r.endColumn+s,r.endLineNumber,r.endColumn+s)}}}class Rg{constructor(e,t,i,r,s,a,o){this.languageConfigurationService=e,this._selection=t,this._indentSize=i,this._type=r,this._insertSpace=s,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=a,this._ignoreFirstLine=o||!1}static _gatherPreflightCommentStrings(e,t,i,r){e.tokenization.tokenizeIfCheap(t);const s=e.getLanguageIdAtPosition(t,1),a=r.getLanguageConfiguration(s).comments,o=a?a.lineCommentToken:null;if(!o)return null;const l=[];for(let c=0,u=i-t+1;c<u;c++)l[c]={ignore:!1,commentStr:o,commentStrOffset:0,commentStrLength:o.length};return l}static _analyzeLines(e,t,i,r,s,a,o,l){let c=!0,u;e===0?u=!0:e===1?u=!1:u=!0;for(let h=0,d=r.length;h<d;h++){const f=r[h],p=s+h;if(p===s&&o){f.ignore=!0;continue}const g=i.getLineContent(p),m=Yu(g);if(m===-1){f.ignore=a,f.commentStrOffset=g.length;continue}if(c=!1,f.ignore=!1,f.commentStrOffset=m,u&&!V6._haystackHasNeedleAtOffset(g,f.commentStr,m)&&(e===0?u=!1:e===1||(f.ignore=!0)),u&&t){const T=m+f.commentStrLength;T<g.length&&g.charCodeAt(T)===32&&(f.commentStrLength+=1)}}if(e===0&&c){u=!1;for(let h=0,d=r.length;h<d;h++)r[h].ignore=!1}return{supported:!0,shouldRemoveComments:u,lines:r}}static _gatherPreflightData(e,t,i,r,s,a,o,l){const c=Rg._gatherPreflightCommentStrings(i,r,s,l);return c===null?{supported:!1}:Rg._analyzeLines(e,t,i,c,r,a,o,l)}_executeLineComments(e,t,i,r){let s;i.shouldRemoveComments?s=Rg._createRemoveLineCommentsOperations(i.lines,r.startLineNumber):(Rg._normalizeInsertionPoint(e,i.lines,r.startLineNumber,this._indentSize),s=this._createAddLineCommentsOperations(i.lines,r.startLineNumber));const a=new it(r.positionLineNumber,r.positionColumn);for(let o=0,l=s.length;o<l;o++)t.addEditOperation(s[o].range,s[o].text),pe.isEmpty(s[o].range)&&pe.getStartPosition(s[o].range).equals(a)&&e.getLineContent(a.lineNumber).length+1===a.column&&(this._deltaColumn=(s[o].text||"").length);this._selectionId=t.trackSelection(r)}_attemptRemoveBlockComment(e,t,i,r){let s=t.startLineNumber,a=t.endLineNumber;const o=r.length+Math.max(e.getLineFirstNonWhitespaceColumn(t.startLineNumber),t.startColumn);let l=e.getLineContent(s).lastIndexOf(i,o-1),c=e.getLineContent(a).indexOf(r,t.endColumn-1-i.length);return l!==-1&&c===-1&&(c=e.getLineContent(s).indexOf(r,l+i.length),a=s),l===-1&&c!==-1&&(l=e.getLineContent(a).lastIndexOf(i,c),s=a),t.isEmpty()&&(l===-1||c===-1)&&(l=e.getLineContent(s).indexOf(i),l!==-1&&(c=e.getLineContent(s).indexOf(r,l+i.length))),l!==-1&&e.getLineContent(s).charCodeAt(l+i.length)===32&&(i+=" "),c!==-1&&e.getLineContent(a).charCodeAt(c-1)===32&&(r=" "+r,c-=1),l!==-1&&c!==-1?V6._createRemoveBlockCommentOperations(new pe(s,l+i.length+1,a,c+1),i,r):null}_executeBlockComment(e,t,i){e.tokenization.tokenizeIfCheap(i.startLineNumber);const r=e.getLanguageIdAtPosition(i.startLineNumber,1),s=this.languageConfigurationService.getLanguageConfiguration(r).comments;if(!s||!s.blockCommentStartToken||!s.blockCommentEndToken)return;const a=s.blockCommentStartToken,o=s.blockCommentEndToken;let l=this._attemptRemoveBlockComment(e,i,a,o);if(!l){if(i.isEmpty()){const c=e.getLineContent(i.startLineNumber);let u=Yu(c);u===-1&&(u=c.length),l=V6._createAddBlockCommentOperations(new pe(i.startLineNumber,u+1,i.startLineNumber,c.length+1),a,o,this._insertSpace)}else l=V6._createAddBlockCommentOperations(new pe(i.startLineNumber,e.getLineFirstNonWhitespaceColumn(i.startLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),a,o,this._insertSpace);l.length===1&&(this._deltaColumn=a.length+1)}this._selectionId=t.trackSelection(i);for(const c of l)t.addEditOperation(c.range,c.text)}getEditOperations(e,t){let i=this._selection;if(this._moveEndPositionDown=!1,i.startLineNumber===i.endLineNumber&&this._ignoreFirstLine){t.addEditOperation(new pe(i.startLineNumber,e.getLineMaxColumn(i.startLineNumber),i.startLineNumber+1,1),i.startLineNumber===e.getLineCount()?"":`
3362
3362
  `),this._selectionId=t.trackSelection(i);return}i.startLineNumber<i.endLineNumber&&i.endColumn===1&&(this._moveEndPositionDown=!0,i=i.setEndPosition(i.endLineNumber-1,e.getLineMaxColumn(i.endLineNumber-1)));const r=Rg._gatherPreflightData(this._type,this._insertSpace,e,i.startLineNumber,i.endLineNumber,this._ignoreEmptyLines,this._ignoreFirstLine,this.languageConfigurationService);return r.supported?this._executeLineComments(e,t,r,i):this._executeBlockComment(e,t,i)}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),new ei(i.selectionStartLineNumber,i.selectionStartColumn+this._deltaColumn,i.positionLineNumber,i.positionColumn+this._deltaColumn)}static _createRemoveLineCommentsOperations(e,t){const i=[];for(let r=0,s=e.length;r<s;r++){const a=e[r];a.ignore||i.push(ha.delete(new pe(t+r,a.commentStrOffset+1,t+r,a.commentStrOffset+a.commentStrLength+1)))}return i}_createAddLineCommentsOperations(e,t){const i=[],r=this._insertSpace?" ":"";for(let s=0,a=e.length;s<a;s++){const o=e[s];o.ignore||i.push(ha.insert(new it(t+s,o.commentStrOffset+1),o.commentStr+r))}return i}static nextVisibleColumn(e,t,i,r){return i?e+(t-e%t):e+r}static _normalizeInsertionPoint(e,t,i,r){let s=1073741824,a,o;for(let l=0,c=t.length;l<c;l++){if(t[l].ignore)continue;const u=e.getLineContent(i+l);let h=0;for(let d=0,f=t[l].commentStrOffset;h<s&&d<f;d++)h=Rg.nextVisibleColumn(h,r,u.charCodeAt(d)===9,1);h<s&&(s=h)}s=Math.floor(s/r)*r;for(let l=0,c=t.length;l<c;l++){if(t[l].ignore)continue;const u=e.getLineContent(i+l);let h=0;for(a=0,o=t[l].commentStrOffset;h<s&&a<o;a++)h=Rg.nextVisibleColumn(h,r,u.charCodeAt(a)===9,1);h>s?t[l].commentStrOffset=a-1:t[l].commentStrOffset=a}}}class Whe extends Bn{constructor(e,t){super(t),this._type=e}run(e,t){const i=e.get(Ro);if(!t.hasModel())return;const r=t.getModel(),s=[],a=r.getOptions(),o=t.getOption(23),l=t.getSelections().map((u,h)=>({selection:u,index:h,ignoreFirstLine:!1}));l.sort((u,h)=>pe.compareRangesUsingStarts(u.selection,h.selection));let c=l[0];for(let u=1;u<l.length;u++){const h=l[u];c.selection.endLineNumber===h.selection.startLineNumber&&(c.index<h.index?h.ignoreFirstLine=!0:(c.ignoreFirstLine=!0,c=h))}for(const u of l)s.push(new Rg(i,u.selection,a.indentSize,this._type,o.insertSpace,o.ignoreEmptyLines,u.ignoreFirstLine));t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}class khn extends Whe{constructor(){super(0,{id:"editor.action.commentLine",label:P("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:ke.writable,kbOpts:{kbExpr:ke.editorTextFocus,primary:2138,weight:100},menuOpts:{menuId:Te.MenubarEditMenu,group:"5_insert",title:P({},"&&Toggle Line Comment"),order:1}})}}class Ahn extends Whe{constructor(){super(1,{id:"editor.action.addCommentLine",label:P("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:ke.writable,kbOpts:{kbExpr:ke.editorTextFocus,primary:Rl(2089,2081),weight:100}})}}class Ihn extends Whe{constructor(){super(2,{id:"editor.action.removeCommentLine",label:P("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:ke.writable,kbOpts:{kbExpr:ke.editorTextFocus,primary:Rl(2089,2099),weight:100}})}}class Dhn extends Bn{constructor(){super({id:"editor.action.blockComment",label:P("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:ke.writable,kbOpts:{kbExpr:ke.editorTextFocus,primary:1567,linux:{primary:3103},weight:100},menuOpts:{menuId:Te.MenubarEditMenu,group:"5_insert",title:P({},"Toggle &&Block Comment"),order:2}})}run(e,t){const i=e.get(Ro);if(!t.hasModel())return;const r=t.getOption(23),s=[],a=t.getSelections();for(const o of a)s.push(new V6(o,r.insertSpace,i));t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}rn(khn);rn(Ahn);rn(Ihn);rn(Dhn);var Mhn=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},i9=function(n,e){return function(t,i){e(t,i,n)}},Xre;let fC=Xre=class{static get(e){return e.getContribution(Xre.ID)}constructor(e,t,i,r,s,a,o,l){this._contextMenuService=t,this._contextViewService=i,this._contextKeyService=r,this._keybindingService=s,this._menuService=a,this._configurationService=o,this._workspaceContextService=l,this._toDispose=new jt,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu(c=>this._onContextMenu(c))),this._toDispose.add(this._editor.onMouseWheel(c=>{if(this._contextMenuIsBeingShownCount>0){const u=this._contextViewService.getContextViewElement(),h=c.srcElement;h.shadowRoot&&qT(u)===h.shadowRoot||this._contextViewService.hideContextView()}})),this._toDispose.add(this._editor.onKeyDown(c=>{this._editor.getOption(24)&&c.keyCode===58&&(c.preventDefault(),c.stopPropagation(),this.showContextMenu())}))}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(24)){this._editor.focus(),e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position);return}if(e.target.type===12||e.target.type===6&&e.target.detail.injectedText)return;if(e.event.preventDefault(),e.event.stopPropagation(),e.target.type===11)return this._showScrollbarContextMenu(e.event);if(e.target.type!==6&&e.target.type!==7&&e.target.type!==1)return;if(this._editor.focus(),e.target.position){let i=!1;for(const r of this._editor.getSelections())if(r.containsPosition(e.target.position)){i=!0;break}i||this._editor.setPosition(e.target.position)}let t=null;e.target.type!==1&&(t=e.event),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(24)||!this._editor.hasModel())return;const t=this._getMenuActions(this._editor.getModel(),this._editor.contextMenuId);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){const i=[],r=this._menuService.createMenu(t,this._contextKeyService),s=r.getActions({arg:e.uri});r.dispose();for(const a of s){const[,o]=a;let l=0;for(const c of o)if(c instanceof _y){const u=this._getMenuActions(e,c.item.submenu);u.length>0&&(i.push(new Mw(c.id,c.label,u)),l++)}else i.push(c),l++;l&&i.push(new Nl)}return i.length&&i.pop(),i}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;const i=this._editor.getOption(60);this._editor.updateOptions({hover:{enabled:!1}});let r=t;if(!r){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const a=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),o=ul(this._editor.getDomNode()),l=o.left+a.left,c=o.top+a.top+a.height;r={x:l,y:c}}const s=this._editor.getOption(127)&&!wp;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:s?this._editor.getDomNode():void 0,getAnchor:()=>r,getActions:()=>e,getActionViewItem:a=>{const o=this._keybindingFor(a);if(o)return new tC(a,a,{label:!0,keybinding:o.getLabel(),isMenu:!0});const l=a;return typeof l.getActionViewItem=="function"?l.getActionViewItem():new tC(a,a,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:a=>this._keybindingFor(a),onHide:a=>{this._contextMenuIsBeingShownCount--,this._editor.updateOptions({hover:i})}})}_showScrollbarContextMenu(e){if(!this._editor.hasModel()||snn(this._workspaceContextService.getWorkspace()))return;const t=this._editor.getOption(73);let i=0;const r=c=>({id:`menu-action-${++i}`,label:c.label,tooltip:"",class:void 0,enabled:typeof c.enabled>"u"?!0:c.enabled,checked:c.checked,run:c.run}),s=(c,u)=>new Mw(`menu-action-${++i}`,c,u,void 0),a=(c,u,h,d,f)=>{if(!u)return r({label:c,enabled:u,run:()=>{}});const p=m=>()=>{this._configurationService.updateValue(h,m)},g=[];for(const m of f)g.push(r({label:m.label,checked:d===m.value,run:p(m.value)}));return s(c,g)},o=[];o.push(r({label:P("context.minimap.minimap","Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),o.push(new Nl),o.push(r({label:P("context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),o.push(a(P("context.minimap.size","Vertical size"),t.enabled,"editor.minimap.size",t.size,[{label:P("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:P("context.minimap.size.fill","Fill"),value:"fill"},{label:P("context.minimap.size.fit","Fit"),value:"fit"}])),o.push(a(P("context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:P("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:P("context.minimap.slider.always","Always"),value:"always"}]));const l=this._editor.getOption(127)&&!wp;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:l?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>o,onHide:c=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};fC.ID="editor.contrib.contextmenu";fC=Xre=Mhn([i9(1,e1),i9(2,i5),i9(3,Bi),i9(4,Ps),i9(5,t2),i9(6,Pr),i9(7,eb)],fC);class Ohn extends Bn{constructor(){super({id:"editor.action.showContextMenu",label:P("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:ke.textInputFocus,primary:1092,weight:100}})}run(e,t){var i;(i=fC.get(t))===null||i===void 0||i.showContextMenu()}}Ls(fC.ID,fC,2);rn(Ohn);class AY{constructor(e){this.selections=e}equals(e){const t=this.selections.length,i=e.selections.length;if(t!==i)return!1;for(let r=0;r<t;r++)if(!this.selections[r].equalsSelection(e.selections[r]))return!1;return!0}}class IY{constructor(e,t,i){this.cursorState=e,this.scrollTop=t,this.scrollLeft=i}}class ub extends ct{static get(e){return e.getContribution(ub.ID)}constructor(e){super(),this._editor=e,this._isCursorUndoRedo=!1,this._undoStack=[],this._redoStack=[],this._register(e.onDidChangeModel(t=>{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeModelContent(t=>{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeCursorSelection(t=>{if(this._isCursorUndoRedo||!t.oldSelections||t.oldModelVersionId!==t.modelVersionId)return;const i=new AY(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(i)||(this._undoStack.push(new IY(i,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())}))}cursorUndo(){!this._editor.hasModel()||this._undoStack.length===0||(this._redoStack.push(new IY(new AY(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){!this._editor.hasModel()||this._redoStack.length===0||(this._undoStack.push(new IY(new AY(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}ub.ID="editor.contrib.cursorUndoRedoController";class Nhn extends Bn{constructor(){super({id:"cursorUndo",label:P("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:ke.textInputFocus,primary:2099,weight:100}})}run(e,t,i){var r;(r=ub.get(t))===null||r===void 0||r.cursorUndo()}}class Rhn extends Bn{constructor(){super({id:"cursorRedo",label:P("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,i){var r;(r=ub.get(t))===null||r===void 0||r.cursorRedo()}}Ls(ub.ID,ub,0);rn(Nhn);rn(Rhn);class Phn{constructor(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i,this.targetSelection=null}getEditOperations(e,t){const i=e.getValueInRange(this.selection);if(this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new pe(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),i),this.selection.containsPosition(this.targetPosition)&&!(this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition)))){this.targetSelection=this.selection;return}if(this.copy){this.targetSelection=new ei(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber>this.selection.endLineNumber){this.targetSelection=new ei(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber<this.selection.endLineNumber){this.targetSelection=new ei(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new ei(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column-this.selection.endColumn+this.selection.startColumn:this.targetPosition.column-this.selection.endColumn+this.selection.startColumn,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column:this.selection.endColumn):this.targetSelection=new ei(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column+this.selection.endColumn-this.selection.startColumn)}computeCursorState(e,t){return this.targetSelection}}function cv(n){return $r?n.altKey:n.ctrlKey}class Am extends ct{constructor(e){super(),this._editor=e,this._dndDecorationIds=this._editor.createDecorationsCollection(),this._register(this._editor.onMouseDown(t=>this._onEditorMouseDown(t))),this._register(this._editor.onMouseUp(t=>this._onEditorMouseUp(t))),this._register(this._editor.onMouseDrag(t=>this._onEditorMouseDrag(t))),this._register(this._editor.onMouseDrop(t=>this._onEditorMouseDrop(t))),this._register(this._editor.onMouseDropCanceled(()=>this._onEditorMouseDropCanceled())),this._register(this._editor.onKeyDown(t=>this.onEditorKeyDown(t))),this._register(this._editor.onKeyUp(t=>this.onEditorKeyUp(t))),this._register(this._editor.onDidBlurEditorWidget(()=>this.onEditorBlur())),this._register(this._editor.onDidBlurEditorText(()=>this.onEditorBlur())),this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){!this._editor.getOption(35)||this._editor.getOption(22)||(cv(e)&&(this._modifierPressed=!0),this._mouseDown&&cv(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){!this._editor.getOption(35)||this._editor.getOption(22)||(cv(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===Am.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){const t=e.target;if(this._dragSelection===null){const r=(this._editor.getSelections()||[]).filter(s=>t.position&&s.containsPosition(t.position));if(r.length===1)this._dragSelection=r[0];else return}cv(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){const t=new it(e.target.position.lineNumber,e.target.position.column);if(this._dragSelection===null){let i=null;if(e.event.shiftKey){const r=this._editor.getSelection();if(r){const{selectionStartLineNumber:s,selectionStartColumn:a}=r;i=[new ei(s,a,t.lineNumber,t.column)]}}else i=(this._editor.getSelections()||[]).map(r=>r.containsPosition(t)?new ei(t.lineNumber,t.column,t.lineNumber,t.column):r);this._editor.setSelections(i||[],"mouse",3)}else(!this._dragSelection.containsPosition(t)||(cv(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(Am.ID,new Phn(this._dragSelection,t,cv(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}showAt(e){this._dndDecorationIds.set([{range:new pe(e.lineNumber,e.column,e.lineNumber,e.column),options:Am._DECORATION_OPTIONS}]),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds.clear()}_hitContent(e){return e.type===6||e.type===7}_hitMargin(e){return e.type===2||e.type===3||e.type===4}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}Am.ID="editor.contrib.dragAndDrop";Am.TRIGGER_KEY_VALUE=$r?6:5;Am._DECORATION_OPTIONS=fr.register({description:"dnd-target",className:"dnd-target"});Ls(Am.ID,Am,2);var sR;Ls(D4.ID,D4,0);ID(Sre);Cn(new class extends Ul{constructor(){super({id:Dje,precondition:khe,kbOpts:{weight:100,primary:2137}})}runEditorCommand(n,e){var t;return(t=D4.get(e))===null||t===void 0?void 0:t.changePasteType()}});Cn(new class extends Ul{constructor(){super({id:"editor.hidePasteWidget",precondition:khe,kbOpts:{weight:100,primary:9}})}runEditorCommand(n,e){var t;(t=D4.get(e))===null||t===void 0||t.clearWidgets()}});rn((sR=class extends Bn{constructor(){super({id:"editor.action.pasteAs",label:P("pasteAs","Paste As..."),alias:"Paste As...",precondition:ke.writable,metadata:{description:"Paste as",args:[{name:"args",schema:sR.argsSchema}]}})}run(e,t,i){var r;let s=typeof(i==null?void 0:i.kind)=="string"?i.kind:void 0;return!s&&i&&(s=typeof i.id=="string"?i.id:void 0),(r=D4.get(t))===null||r===void 0?void 0:r.pasteAs(s?new ro(s):void 0)}},sR.argsSchema={type:"object",properties:{kind:{type:"string",description:P("pasteAs.kind","The kind of the paste edit to try applying. If not provided or there are multiple edits for this kind, the editor will show a picker.")}}},sR));rn(class extends Bn{constructor(){super({id:"editor.action.pasteAsText",label:P("pasteAsText","Paste as Text"),alias:"Paste as Text",precondition:ke.writable})}run(n,e){var t;return(t=D4.get(e))===null||t===void 0?void 0:t.pasteAs({providerId:Wm.id})}});class Hhn{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}}class __e{constructor(e){this.identifier=e}}const Aze=Yr("treeViewsDndService");os(Aze,Hhn,1);var Fhn=function(n,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,i);else for(var o=n.length-1;o>=0;o--)(a=n[o])&&(s=(r<3?a(s):r>3?a(e,t,s):a(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},oR=function(n,e){return function(t,i){e(t,i,n)}},Jre;const Ize="editor.experimental.dropIntoEditor.defaultProvider",Dze="editor.changeDropType",Uhe=new An("dropWidgetVisible",!1,P("dropWidgetVisible","Whether the drop widget is showing"));let db=Jre=class extends ct{static get(e){return e.getContribution(Jre.ID)}constructor(e,t,i,r,s){super(),this._configService=i,this._languageFeaturesService=r,this._treeViewsDragAndDropService=s,this.treeItemsTransfer=LA.getInstance(),this._dropProgressManager=this._register(t.createInstance(hV,"dropIntoEditor",e)),this._postDropWidgetManager=this._register(t.createInstance(pV,"dropIntoEditor",e,Uhe,{id:Dze,label:P("postDropWidgetTitle","Show drop options...")})),this._register(e.onDropIntoEditor(a=>this.onDropIntoEditor(e,a.position,a.event)))}clearWidgets(){this._postDropWidgetManager.clear()}changeDropType(){this._postDropWidgetManager.tryShowSelector()}async onDropIntoEditor(e,t,i){var r;if(!i.dataTransfer||!e.hasModel())return;(r=this._currentOperation)===null||r===void 0||r.cancel(),e.focus(),e.setPosition(t);const s=rc(async a=>{const o=new P7(e,1,void 0,a);try{const l=await this.extractDataTransferData(i);if(l.size===0||o.token.isCancellationRequested)return;const c=e.getModel();if(!c)return;const u=this._languageFeaturesService.documentDropEditProvider.ordered(c).filter(d=>d.dropMimeTypes?d.dropMimeTypes.some(f=>l.matches(f)):!0),h=await this.getDropEdits(u,c,t,l,o);if(o.token.isCancellationRequested)return;if(h.length){const d=this.getInitialActiveEditIndex(c,h),f=e.getOption(36).showDropSelector==="afterDrop";await this._postDropWidgetManager.applyEditAndShowIfNeeded([pe.fromPositions(t)],{activeEditIndex:d,allEdits:h},f,async p=>p,a)}}finally{o.dispose(),this._currentOperation===s&&(this._currentOperation=void 0)}});this._dropProgressManager.showWhile(t,P("dropIntoEditorProgress","Running drop handlers. Click to cancel"),s),this._currentOperation=s}async getDropEdits(e,t,i,r,s){const a=await rD(Promise.all(e.map(async l=>{try{const c=await l.provideDocumentDropEdits(t,i,r,s.token);return c==null?void 0:c.map(u=>({...u,providerId:l.id}))}catch(c){console.error(c)}})),s.token),o=yp(a??[]).flat();return Aje(o)}getInitialActiveEditIndex(e,t){const i=this._configService.getValue(Ize,{resource:e.uri});for(const[r,s]of Object.entries(i)){const a=new ro(s),o=t.findIndex(l=>a.value===l.providerId&&l.handledMimeType&&wje(r,[l.handledMimeType]));if(o>=0)return o}return 0}async extractDataTransferData(e){if(!e.dataTransfer)return new yje;const t=xje(e.dataTransfer);if(this.treeItemsTransfer.hasData(__e.prototype)){const i=this.treeItemsTransfer.getData(__e.prototype);if(Array.isArray(i))for(const r of i){const s=await this._treeViewsDragAndDropService.removeDragOperationTransfer(r.identifier);if(s)for(const[a,o]of s)t.replace(a,o)}}return t}};db.ID="editor.contrib.dropIntoEditorController";db=Jre=Fhn([oR(1,Si),oR(2,Pr),oR(3,Zn),oR(4,Aze)],db);Ls(db.ID,db,2);ID(xre);Cn(new class extends Ul{constructor(){super({id:Dze,precondition:Uhe,kbOpts:{weight:100,primary:2137}})}runEditorCommand(n,e,t){var i;(i=db.get(e))===null||i===void 0||i.changeDropType()}});Cn(new class extends Ul{constructor(){super({id:"editor.hideDropWidget",precondition:Uhe,kbOpts:{weight:100,primary:9}})}runEditorCommand(n,e,t){var i;(i=db.get(e))===null||i===void 0||i.clearWidgets()}});Ca.as(jp.Configuration).registerConfiguration({...gW,properties:{[Ize]:{type:"object",scope:5,description:P("defaultProviderDescription","Configures the default drop provider to use for content of a given mime type."),default:{},additionalProperties:{type:"string"}}}});class Uu{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const e=this._findScopeDecorationIds.map(t=>this._editor.getModel().getDecorationRange(t)).filter(t=>!!t);if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){const t=this._decorations.indexOf(e);return t>=0?t+1:1}getDecorationRangeAt(e){const t=e<this._decorations.length?this._decorations[e]:null;return t?this._editor.getModel().getDecorationRange(t):null}getCurrentMatchesPosition(e){const t=this._editor.getModel().getDecorationsInRange(e);for(const i of t){const r=i.options;if(r===Uu._FIND_MATCH_DECORATION||r===Uu._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(i.id)}return 0}setCurrentFindMatch(e){let t=null,i=0;if(e)for(let r=0,s=this._decorations.length;r<s;r++){const a=this._editor.getModel().getDecorationRange(this._decorations[r]);if(e.equalsRange(a)){t=this._decorations[r],i=r+1;break}}return(this._highlightedDecorationId!==null||t!==null)&&this._editor.changeDecorations(r=>{if(this._highlightedDecorationId!==null&&(r.changeDecorationOptions(this._highlightedDecorationId,Uu._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),t!==null&&(this._highlightedDecorationId=t,r.changeDecorationOptions(this._highlightedDecorationId,Uu._CURRENT_FIND_MATCH_DECORATION)),this._rangeHighlightDecorationId!==null&&(r.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),t!==null){let s=this._editor.getModel().getDecorationRange(t);if(s.startLineNumber!==s.endLineNumber&&s.endColumn===1){const a=s.endLineNumber-1,o=this._editor.getModel().getLineMaxColumn(a);s=new pe(s.startLineNumber,s.startColumn,a,o)}this._rangeHighlightDecorationId=r.addDecoration(s,Uu._RANGE_HIGHLIGHT_DECORATION)}}),i}set(e,t){this._editor.changeDecorations(i=>{let r=Uu._FIND_MATCH_DECORATION;const s=[];if(e.length>1e3){r=Uu._FIND_MATCH_NO_OVERVIEW_DECORATION;const o=this._editor.getModel().getLineCount(),c=this._editor.getLayoutInfo().height/o,u=Math.max(2,Math.ceil(3/c));let h=e[0].range.startLineNumber,d=e[0].range.endLineNumber;for(let f=1,p=e.length;f<p;f++){const g=e[f].range;d+u>=g.startLineNumber?g.endLineNumber>d&&(d=g.endLineNumber):(s.push({range:new pe(h,1,d,1),options:Uu._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),h=g.startLineNumber,d=g.endLineNumber)}s.push({range:new pe(h,1,d,1),options:Uu._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}const a=new Array(e.length);for(let o=0,l=e.length;o<l;o++)a[o]={range:e[o].range,options:r};this._decorations=i.deltaDecorations(this._decorations,a),this._overviewRulerApproximateDecorations=i.deltaDecorations(this._overviewRulerApproximateDecorations,s),this._rangeHighlightDecorationId&&(i.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),this._findScopeDecorationIds.length&&(this._findScopeDecorationIds.forEach(o=>i.removeDecoration(o)),this._findScopeDecorationIds=[]),t!=null&&t.length&&(this._findScopeDecorationIds=t.map(o=>i.addDecoration(o,Uu._FIND_SCOPE_DECORATION)))})}matchBeforePosition(e){if(this._decorations.length===0)return null;for(let t=this._decorations.length-1;t>=0;t--){const i=this._decorations[t],r=this._editor.getModel().getDecorationRange(i);if(!(!r||r.endLineNumber>e.lineNumber)){if(r.endLineNumber<e.lineNumber)return r;if(!(r.endColumn>e.column))return r}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(this._decorations.length===0)return null;for(let t=0,i=this._decorations.length;t<i;t++){const r=this._decorations[t],s=this._editor.getModel().getDecorationRange(r);if(!(!s||s.startLineNumber<e.lineNumber)){if(s.startLineNumber>e.lineNumber)return s;if(!(s.startColumn<e.column))return s}}return this._editor.getModel().getDecorationRange(this._decorations[0])}_allDecorations(){let e=[];return e=e.concat(this._decorations),e=e.concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationIds.length&&e.push(...this._findScopeDecorationIds),this._rangeHighlightDecorationId&&e.push(this._rangeHighlightDecorationId),e}}Uu._CURRENT_FIND_MATCH_DECORATION=fr.register({description:"current-find-match",stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:Sa(Uue),position:$1.Center},minimap:{color:Sa(Wv),position:1}});Uu._FIND_MATCH_DECORATION=fr.register({description:"find-match",stickiness:1,zIndex:10,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:Sa(Uue),position:$1.Center},minimap:{color:Sa(Wv),position:1}});Uu._FIND_MATCH_NO_OVERVIEW_DECORATION=fr.register({description:"find-match-no-overview",stickiness:1,className:"findMatch",showIfCollapsed:!0});Uu._FIND_MATCH_ONLY_OVERVIEW_DECORATION=fr.register({description:"find-match-only-overview",stickiness:1,overviewRuler:{color:Sa(Uue),position:$1.Center}});Uu._RANGE_HIGHLIGHT_DECORATION=fr.register({description:"find-range-highlight",stickiness:1,className:"rangeHighlight",isWholeLine:!0});Uu._FIND_SCOPE_DECORATION=fr.register({description:"find-scope",className:"findScope",isWholeLine:!0});class Bhn{constructor(e,t,i){this._editorSelection=e,this._ranges=t,this._replaceStrings=i,this._trackedEditorSelectionId=null}getEditOperations(e,t){if(this._ranges.length>0){const i=[];for(let a=0;a<this._ranges.length;a++)i.push({range:this._ranges[a],text:this._replaceStrings[a]});i.sort((a,o)=>pe.compareRangesUsingStarts(a.range,o.range));const r=[];let s=i[0];for(let a=1;a<i.length;a++)s.range.endLineNumber===i[a].range.startLineNumber&&s.range.endColumn===i[a].range.startColumn?(s.range=s.range.plusRange(i[a].range),s.text=s.text+i[a].text):(r.push(s),s=i[a]);r.push(s);for(const a of r)t.addEditOperation(a.range,a.text)}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId)}}function Mze(n,e){if(n&&n[0]!==""){const t=v_e(n,e,"-"),i=v_e(n,e,"_");return t&&!i?y_e(n,e,"-"):!t&&i?y_e(n,e,"_"):n[0].toUpperCase()===n[0]?e.toUpperCase():n[0].toLowerCase()===n[0]?e.toLowerCase():sjt(n[0][0])&&e.length>0?e[0].toUpperCase()+e.substr(1):n[0][0].toUpperCase()!==n[0][0]&&e.length>0?e[0].toLowerCase()+e.substr(1):e}else return e}function v_e(n,e,t){return n[0].indexOf(t)!==-1&&e.indexOf(t)!==-1&&n[0].split(t).length===e.split(t).length}function y_e(n,e,t){const i=e.split(t),r=n[0].split(t);let s="";return i.forEach((a,o)=>{s+=Mze([r[o]],a)+t}),s.slice(0,-1)}class w_e{constructor(e){this.staticValue=e,this.kind=0}}class Vhn{constructor(e){this.pieces=e,this.kind=1}}class pC{static fromStaticValue(e){return new pC([vT.staticValue(e)])}get hasReplacementPatterns(){return this._state.kind===1}constructor(e){!e||e.length===0?this._state=new w_e(""):e.length===1&&e[0].staticValue!==null?this._state=new w_e(e[0].staticValue):this._state=new Vhn(e)}buildReplaceString(e,t){if(this._state.kind===0)return t?Mze(e,this._state.staticValue):this._state.staticValue;let i="";for(let r=0,s=this._state.pieces.length;r<s;r++){const a=this._state.pieces[r];if(a.staticValue!==null){i+=a.staticValue;continue}let o=pC._substitute(a.matchIndex,e);if(a.caseOps!==null&&a.caseOps.length>0){const l=[],c=a.caseOps.length;let u=0;for(let h=0,d=o.length;h<d;h++){if(u>=c){l.push(o.slice(h));break}switch(a.caseOps[u]){case"U":l.push(o[h].toUpperCase());break;case"u":l.push(o[h].toUpperCase()),u++;break;case"L":l.push(o[h].toLowerCase());break;case"l":l.push(o[h].toLowerCase()),u++;break;default:l.push(o[h])}}o=l.join("")}i+=o}return i}static _substitute(e,t){if(t===null)return"";if(e===0)return t[0];let i="";for(;e>0;){if(e<t.length)return(t[e]||"")+i;i=String(e%10)+i,e=Math.floor(e/10)}return"$"+i}}class vT{static staticValue(e){return new vT(e,-1,null)}static caseOps(e,t){return new vT(null,e,t)}constructor(e,t,i){this.staticValue=e,this.matchIndex=t,!i||i.length===0?this.caseOps=null:this.caseOps=i.slice(0)}}class jhn{constructor(e){this._source=e,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}emitUnchanged(e){this._emitStatic(this._source.substring(this._lastCharIndex,e)),this._lastCharIndex=e}emitStatic(e,t){this._emitStatic(e),this._lastCharIndex=t}_emitStatic(e){e.length!==0&&(this._currentStaticPiece+=e)}emitMatchIndex(e,t,i){this._currentStaticPiece.length!==0&&(this._result[this._resultLen++]=vT.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=vT.caseOps(e,i),this._lastCharIndex=t}finalize(){return this.emitUnchanged(this._source.length),this._currentStaticPiece.length!==0&&(this._result[this._resultLen++]=vT.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new pC(this._result)}}function zhn(n){if(!n||n.length===0)return new pC(null);const e=[],t=new jhn(n);for(let i=0,r=n.length;i<r;i++){const s=n.charCodeAt(i);if(s===92){if(i++,i>=r)break;const a=n.charCodeAt(i);switch(a){case 92:t.emitUnchanged(i-1),t.emitStatic("\\",i+1);break;case 110:t.emitUnchanged(i-1),t.emitStatic(`