@cccsaurora/howler-ui 2.14.0-dev.254 → 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.
- package/assets/{abap-DioTpFWz.js → abap-mo7PPmCt.js} +1 -1
- package/assets/{abnf-BqnGCFuY.js → abnf-D5WZvYF_.js} +1 -1
- package/assets/{actionscript-BbgSNYVF.js → actionscript-o1NqrfHn.js} +1 -1
- package/assets/{ada-3sghcvv1.js → ada-BAcJesVD.js} +1 -1
- package/assets/{agda-CgL2h-w0.js → agda-D-QD0Sfn.js} +1 -1
- package/assets/{al-vsYi18Zu.js → al-Dzs83GY0.js} +1 -1
- package/assets/{antlr4-CozY3tDj.js → antlr4-BjEStX_I.js} +1 -1
- package/assets/{apacheconf-Dzhopw7Y.js → apacheconf-Bh7PaD8s.js} +1 -1
- package/assets/{apex-Y6dn4L6I.js → apex-Dg8nVlbW.js} +1 -1
- package/assets/{apl-jZn2TWJJ.js → apl-Bpu7iDoL.js} +1 -1
- package/assets/{applescript-OrmzeHw_.js → applescript-hMMldMmZ.js} +1 -1
- package/assets/{aql-BGSx7NHZ.js → aql-CrUo-IGN.js} +1 -1
- package/assets/{arc-CYcM2gaT.js → arc-O4DCfFxW.js} +1 -1
- package/assets/architecture-O4VJ6CD3-BtxcGCTr.js +1 -0
- package/assets/{architectureDiagram-KFL7JDKH-cXr_dUPt.js → architectureDiagram-KFL7JDKH-ChuPt1SI.js} +1 -1
- package/assets/{arduino-DwvlxRGw.js → arduino-DmF6sKDB.js} +1 -1
- package/assets/{arff-B98O2VNU.js → arff-BBGQBSJT.js} +1 -1
- package/assets/{asciidoc-DGNGtqKK.js → asciidoc-Bj5gp9h7.js} +1 -1
- package/assets/{asm6502-DL5S2azo.js → asm6502-FSfxG8DZ.js} +1 -1
- package/assets/{asmatmel-D5JFqklG.js → asmatmel-e1oEOVx2.js} +1 -1
- package/assets/{aspnet-Cy1VX-B8.js → aspnet-BSz1N4dH.js} +1 -1
- package/assets/{autohotkey-kqISEf8h.js → autohotkey-E5ufzqN-.js} +1 -1
- package/assets/{autoit-CP-cynV8.js → autoit-C_kN8xn5.js} +1 -1
- package/assets/{avisynth-C79P1xaZ.js → avisynth-DbmndZmQ.js} +1 -1
- package/assets/{avro-idl-DoL742iC.js → avro-idl-DGQ_T6zF.js} +1 -1
- package/assets/{bash-y8WYAizC.js → bash-CviVjnOh.js} +1 -1
- package/assets/{basic-UOOPREne.js → basic-Bx3Rn9rA.js} +1 -1
- package/assets/{batch-D-7sm6he.js → batch-DTnb-DYx.js} +1 -1
- package/assets/{bbcode-XdG_O7uA.js → bbcode-D1mhg2V8.js} +1 -1
- package/assets/{bicep-DAEEitW6.js → bicep-0IioNd8i.js} +1 -1
- package/assets/{birb-Ck1Bhcp-.js → birb-DU56kIa1.js} +1 -1
- package/assets/{bison-DKnlauVS.js → bison-BN1e05g4.js} +1 -1
- package/assets/{blockDiagram-ZYB65J3Q-Dhx28gZB.js → blockDiagram-ZYB65J3Q-C50Mlz51.js} +1 -1
- package/assets/{bnf-D-0GdKQe.js → bnf-D2g0vgik.js} +1 -1
- package/assets/{brainfuck-De2SGgOY.js → brainfuck-jbiw2pGD.js} +1 -1
- package/assets/{brightscript-BbgxR96g.js → brightscript-BBDeWuro.js} +1 -1
- package/assets/{bro-Bmk2GDXj.js → bro-CGTpxN4p.js} +1 -1
- package/assets/{bsl-CCrlVDJ9.js → bsl-CqTC8aLw.js} +1 -1
- package/assets/{c-As7bwRFG.js → c-Ds_ySDj7.js} +1 -1
- package/assets/{c4Diagram-AAMF2YG6-BK1QQc6j.js → c4Diagram-AAMF2YG6-B3WV-JGO.js} +1 -1
- package/assets/{cfscript-Dc828Diw.js → cfscript-Bj6Jdimw.js} +1 -1
- package/assets/{chaiscript-C-r2BVGs.js → chaiscript-RYJpKV37.js} +1 -1
- package/assets/channel-C5BRq60g.js +1 -0
- package/assets/{chunk-ANTBXLJU-BrkOqfCt.js → chunk-ANTBXLJU-C1HjgHjc.js} +1 -1
- package/assets/{chunk-FHKO5MBM-BTYbLcY5.js → chunk-FHKO5MBM-BrpQoidZ.js} +1 -1
- package/assets/{chunk-GLLZNHP4-V_faxBRy.js → chunk-GLLZNHP4-DN9o3NmB.js} +1 -1
- package/assets/{chunk-JBRWN2VN-D2f_I5SO.js → chunk-JBRWN2VN-DHDH1I9F.js} +1 -1
- package/assets/{chunk-LXBSTHXV-r_qLX9C2.js → chunk-LXBSTHXV-DsMapXSy.js} +1 -1
- package/assets/{chunk-NRVI72HA-BWHzIfzV.js → chunk-NRVI72HA-zCLbemRf.js} +1 -1
- package/assets/{chunk-OMD6QJNC-Bben7g22.js → chunk-OMD6QJNC-CcTW7n4d.js} +1 -1
- package/assets/{chunk-WVR4S24B-Bj5Q4ASY.js → chunk-WVR4S24B-O5VGDTLK.js} +1 -1
- package/assets/{cil-2M_oUilN.js → cil-D4aeGR4P.js} +1 -1
- package/assets/{classDiagram-3BZAVTQC-B-MEsGDM.js → classDiagram-3BZAVTQC-DC2D1o61.js} +1 -1
- package/assets/{classDiagram-v2-QTMF73CY-B-MEsGDM.js → classDiagram-v2-QTMF73CY-DC2D1o61.js} +1 -1
- package/assets/{clike-DezBoisu.js → clike-CqNn0AJS.js} +1 -1
- package/assets/{clojure-Dv_ZnkG0.js → clojure-CvHCjxEW.js} +1 -1
- package/assets/clone-CQzAVi1_.js +1 -0
- package/assets/{cmake-CVE2d2sF.js → cmake-Y9YYOI1o.js} +1 -1
- package/assets/{cobol-B4Y66MqL.js → cobol-Cn7N4Z9s.js} +1 -1
- package/assets/{coffeescript-DZrXFmEg.js → coffeescript-BNf6wfQ6.js} +1 -1
- package/assets/{concurnas-6l_W23xH.js → concurnas-F8NRlUrA.js} +1 -1
- package/assets/{coq-Biq8Q8Jw.js → coq-CXxL_LlW.js} +1 -1
- package/assets/{core-17OoamG1.js → core-DkoeCqqg.js} +1 -1
- package/assets/{cpp-CmEDFqok.js → cpp-DWon0ppI.js} +1 -1
- package/assets/{crystal-Be4Ix_C5.js → crystal-B2v6_JlQ.js} +1 -1
- package/assets/{csharp-DQbxaBUY.js → csharp-BLSK0Zzi.js} +1 -1
- package/assets/{cshtml-BDdOklOg.js → cshtml-BLIhUWji.js} +1 -1
- package/assets/{csp-Co-YGM0l.js → csp-CeuPpz9b.js} +1 -1
- package/assets/{css-B4-6GSTq.js → css-D8yvO7dz.js} +1 -1
- package/assets/{css-extras-DLiiEFqS.js → css-extras-DRnBitp6.js} +1 -1
- package/assets/{cssMode-IJ8CsQ4u.js → cssMode-DrkEOKra.js} +1 -1
- package/assets/{csv-DR5gorE5.js → csv-Be-N3gG6.js} +1 -1
- package/assets/{cypher-ClXBVod5.js → cypher-BQok03ZI.js} +1 -1
- package/assets/{d-BY8gl-ZO.js → d-Df_6sXOB.js} +1 -1
- package/assets/{dagre-2BBEFEWP-DuRlSfQK.js → dagre-2BBEFEWP-BdLL3xYf.js} +1 -1
- package/assets/{dart-C5YzoyyS.js → dart-AOzSx5I4.js} +1 -1
- package/assets/{dataweave-nckZ105Q.js → dataweave--R-21DfR.js} +1 -1
- package/assets/{dax-D8GVQ7Q9.js → dax-CsnNiQxC.js} +1 -1
- package/assets/{dhall-CbYhVtfA.js → dhall-BidGwr1u.js} +1 -1
- package/assets/{diagram-4IRLE6MV-2IWY-kM2.js → diagram-4IRLE6MV-Du7ZA7eP.js} +1 -1
- package/assets/{diagram-GUPCWM2R-BDJjFPpi.js → diagram-GUPCWM2R-ByacznHI.js} +1 -1
- package/assets/{diagram-RP2FKANI-DkgisrPf.js → diagram-RP2FKANI-uZXzQ0HO.js} +1 -1
- package/assets/{diff-9pxv5BRy.js → diff-By-TneY5.js} +1 -1
- package/assets/{django-CJyHWJir.js → django-CqZkrb5c.js} +1 -1
- package/assets/{dns-zone-file-CQ8jRY4p.js → dns-zone-file-CIIN0Zwd.js} +1 -1
- package/assets/{docker-HGsdlkqh.js → docker-DrVrzUu_.js} +1 -1
- package/assets/{dot-DNGy4950.js → dot-D6JxP7pN.js} +1 -1
- package/assets/{ebnf-CkHI3N5e.js → ebnf-boHv7kBZ.js} +1 -1
- package/assets/{editorconfig-D06mE07y.js → editorconfig-BZK9BWTq.js} +1 -1
- package/assets/{eiffel-BJpYxKun.js → eiffel-BspS-zg2.js} +1 -1
- package/assets/{ejs-BeKPa0nU.js → ejs-BO4bBszI.js} +1 -1
- package/assets/{elixir-CedVvrPi.js → elixir-DCnntdKi.js} +1 -1
- package/assets/{elm-B0-q6VYS.js → elm-wkvDZVBc.js} +1 -1
- package/assets/{erDiagram-HZWUO2LU-vxkSiqGs.js → erDiagram-HZWUO2LU-CLYl94DE.js} +1 -1
- package/assets/{erb-GhmIA6zi.js → erb-D0dPextc.js} +1 -1
- package/assets/{erlang-C5KZlUz6.js → erlang-GkjxK_5M.js} +1 -1
- package/assets/{etlua-BmF_6wvJ.js → etlua-DISv4zYg.js} +1 -1
- package/assets/{excel-formula-D5gtUx8v.js → excel-formula-HLTv-nrr.js} +1 -1
- package/assets/{factor-D48PUs7v.js → factor-BkpcfzTR.js} +1 -1
- package/assets/{false-DNBRMIcQ.js → false-41V82d_P.js} +1 -1
- package/assets/{firestore-security-rules-DyCToKTz.js → firestore-security-rules-RBhhbSld.js} +1 -1
- package/assets/{flow-M9mA_o0w.js → flow-Ht8yfkR5.js} +1 -1
- package/assets/{flowDiagram-THRYKUMA-BcpM7yX9.js → flowDiagram-THRYKUMA-BfELR1TN.js} +1 -1
- package/assets/{fortran-O32_VKq-.js → fortran-Dzm_isHe.js} +1 -1
- package/assets/{freemarker2-jnrfKZoJ.js → freemarker2-BRaa7f1Q.js} +1 -1
- package/assets/{fsharp-BX_2IPMw.js → fsharp-C9WT9v9x.js} +1 -1
- package/assets/{ftl-pbEL73ZV.js → ftl-B17SbwAW.js} +1 -1
- package/assets/{ganttDiagram-WV7ZQ7D5-BdJz3vok.js → ganttDiagram-WV7ZQ7D5-Bw19caXp.js} +1 -1
- package/assets/{gap-C0YiF0W1.js → gap-SzXKPgeq.js} +1 -1
- package/assets/{gcode-DB1SAZXo.js → gcode-CuQuTKdO.js} +1 -1
- package/assets/{gdscript--ZzoLMAK.js → gdscript-bTCD4XIA.js} +1 -1
- package/assets/{gedcom-zIvB0YHx.js → gedcom-Dw1a27VL.js} +1 -1
- package/assets/{gherkin-TgXIjFEd.js → gherkin-B8yC8kPH.js} +1 -1
- package/assets/{git-DjHRoRrM.js → git-CuTlBGs3.js} +1 -1
- package/assets/gitGraph-ZV4HHKMB-NswVDVTC.js +1 -0
- package/assets/{gitGraphDiagram-OJR772UL-BEPp36hQ.js → gitGraphDiagram-OJR772UL-B2Wp36xV.js} +1 -1
- package/assets/{glsl-pHJofW_H.js → glsl-VfJQISaC.js} +1 -1
- package/assets/{gml-zhhfbiSx.js → gml-Cg063sEn.js} +1 -1
- package/assets/{gn-D4x0Pwhh.js → gn-CfhRs8hN.js} +1 -1
- package/assets/{go-Cj4d35qU.js → go-VWO1sCsw.js} +1 -1
- package/assets/{go-module-B4XvBoEL.js → go-module-Ca9MQv90.js} +1 -1
- package/assets/{graph-DrTEIv8e.js → graph-BcxGmKUY.js} +1 -1
- package/assets/{graphql-CUSvvdv8.js → graphql-DQddNIUX.js} +1 -1
- package/assets/{groovy-DrR3HxYo.js → groovy-Dcjs8fee.js} +1 -1
- package/assets/{haml-CN9PA430.js → haml-B5-Vcx98.js} +1 -1
- package/assets/{handlebars-0c_qBBSs.js → handlebars-CYVGF2_K.js} +1 -1
- package/assets/{handlebars-C5qFcGzp.js → handlebars-D9Ysibnv.js} +1 -1
- package/assets/{haskell-YMCCZCvZ.js → haskell-D1TAusTt.js} +1 -1
- package/assets/{haxe-DEtqiMDx.js → haxe-BwfSBwx-.js} +1 -1
- package/assets/{hcl-BvfmVH15.js → hcl-B7RhI5Aa.js} +1 -1
- package/assets/{hlsl-D9Cuhn6a.js → hlsl-ePiBBFSV.js} +1 -1
- package/assets/{hoon-CyNTKZO8.js → hoon-CoBO7KEA.js} +1 -1
- package/assets/{hpkp-PMePQN4R.js → hpkp-D81lsBFo.js} +1 -1
- package/assets/{hsts-C1IEUiiw.js → hsts-D1exIVwR.js} +1 -1
- package/assets/{html-DhVssQ14.js → html-sSVLAgmR.js} +1 -1
- package/assets/{htmlMode-_CeXQrNG.js → htmlMode-1dVkh-tv.js} +1 -1
- package/assets/{http-CzBtUqN2.js → http-Dqk_-m1h.js} +1 -1
- package/assets/{ichigojam-CtAs8Ru9.js → ichigojam-Ew3H_Wnw.js} +1 -1
- package/assets/{icon-ZOqsFYxv.js → icon-7__9w3uI.js} +1 -1
- package/assets/{icu-message-format--SbJpQlz.js → icu-message-format-Dq2hIL7F.js} +1 -1
- package/assets/{idris-J30JM6Ku.js → idris-Cyzo9vXh.js} +1 -1
- package/assets/{iecst-C4zzozX8.js → iecst-DXWmu6AB.js} +1 -1
- package/assets/{ignore-Cuwjb-vJ.js → ignore-BOIdB3R9.js} +1 -1
- package/assets/{index-C0TO4fgZ.js → index-CtirNuor.js} +12 -12
- package/assets/info-63CPKGFF-Eft_YXi-.js +1 -0
- package/assets/{infoDiagram-6WOFNB3A-Ba00wyJK.js → infoDiagram-6WOFNB3A-D1P6rKbs.js} +1 -1
- package/assets/{inform7-xZRzhdMU.js → inform7-Bc1mK28U.js} +1 -1
- package/assets/{ini-Cx5YDLI_.js → ini-DdalcVCy.js} +1 -1
- package/assets/{io-BYId22Yy.js → io-Dt_mcl8h.js} +1 -1
- package/assets/{j-BspKOh_k.js → j-C-lF-CU_.js} +1 -1
- package/assets/{java-KoHbSG7X.js → java-45YI1AnS.js} +1 -1
- package/assets/{javadoc-D8mDlrgy.js → javadoc-Bpiw_kgn.js} +1 -1
- package/assets/{javadoclike-n69N6c3d.js → javadoclike-yg2D82m1.js} +1 -1
- package/assets/{javascript-CJx5e7Ma.js → javascript-BFZWKPPJ.js} +1 -1
- package/assets/{javascript-BxyKX1eS.js → javascript-Br0LiqtA.js} +1 -1
- package/assets/{javastacktrace-Cgu33g6G.js → javastacktrace-BpG-AgnP.js} +1 -1
- package/assets/{jexl-7JaSLpzR.js → jexl-D2VVX-f4.js} +1 -1
- package/assets/{jolie-xq2RGp7Y.js → jolie-B1EwmubH.js} +1 -1
- package/assets/{journeyDiagram-FFXJYRFH-Dq0URTlu.js → journeyDiagram-FFXJYRFH-Bz2eGQD1.js} +1 -1
- package/assets/{jq-BVZs7VpD.js → jq-B1-LZ9LN.js} +1 -1
- package/assets/{js-extras-C0z1SPAf.js → js-extras-CAdKnlUK.js} +1 -1
- package/assets/{js-templates-CP-aaVM4.js → js-templates-BJ0RNBBn.js} +1 -1
- package/assets/{jsdoc-Da43Kz_L.js → jsdoc-CgalBxHx.js} +1 -1
- package/assets/{json-DJsU0Yib.js → json-CQzD9Vuv.js} +1 -1
- package/assets/{json5-U-eXeKgJ.js → json5-DMROsLE9.js} +1 -1
- package/assets/{jsonMode-Dm1GsJw_.js → jsonMode-B7JNisD6.js} +1 -1
- package/assets/{jsonp-ChGOAdSi.js → jsonp-CtbFEoSO.js} +1 -1
- package/assets/{jsstacktrace-BO9i0tQy.js → jsstacktrace-CWlR2r3M.js} +1 -1
- package/assets/{jsx-D5kqK5Z0.js → jsx-Bcm3mCMX.js} +1 -1
- package/assets/{julia-tcjyjCWz.js → julia-DawUNhKV.js} +1 -1
- package/assets/{kanban-definition-KOZQBZVT-z-G0Bgzc.js → kanban-definition-KOZQBZVT-BSCp431P.js} +1 -1
- package/assets/{keepalived-CRm2QCxE.js → keepalived-DTrfwL7-.js} +1 -1
- package/assets/{keyman-6VZL3TCv.js → keyman-Dt-YdFQG.js} +1 -1
- package/assets/{kotlin-CZNKbM-J.js → kotlin-DDKW_KJ3.js} +1 -1
- package/assets/{kumir-B8n4Btgm.js → kumir-CL2qFoX9.js} +1 -1
- package/assets/{kusto-xnOrGNj2.js → kusto-CgVKIahq.js} +1 -1
- package/assets/{latex-UZCAs853.js → latex-CTdn8dw3.js} +1 -1
- package/assets/{latte-CCOUg1RY.js → latte-Dph7wDda.js} +1 -1
- package/assets/{layout-0zkSqhYy.js → layout-BGYG4PDW.js} +1 -1
- package/assets/{less-u97VMhE7.js → less-BW9Z7xNV.js} +1 -1
- package/assets/{lilypond-BWVwYTx9.js → lilypond--bIKevXM.js} +1 -1
- package/assets/{linear-BRqycOwS.js → linear-7u2-1SjO.js} +1 -1
- package/assets/{liquid-65xtnEsX.js → liquid-BdCB7FYI.js} +1 -1
- package/assets/{liquid-CCpfuknj.js → liquid-C6_JMpJr.js} +1 -1
- package/assets/{lisp-BYZP_RnY.js → lisp-BbfmjfSW.js} +1 -1
- package/assets/{livescript-D78FIb8Y.js → livescript-Cnhwlvbs.js} +1 -1
- package/assets/{llvm-CEwCSojv.js → llvm-C5uGkJFM.js} +1 -1
- package/assets/{log-xhnpTM7J.js → log-ClfVLSxk.js} +1 -1
- package/assets/{lolcode-xHjyejA4.js → lolcode-D1tQ-v_i.js} +1 -1
- package/assets/{lua-DVAzQuSg.js → lua-BsJoX6Ep.js} +1 -1
- package/assets/{magma-bJ9tWzKf.js → magma-fNoNeIcf.js} +1 -1
- package/assets/{makefile-lnKE6RrA.js → makefile-B_SRsjlq.js} +1 -1
- package/assets/{markdown-SLsT4ssU.js → markdown-mUAGnld7.js} +1 -1
- package/assets/{markup-CK-pkWQ2.js → markup-BuqVoeXR.js} +1 -1
- package/assets/{markup-templating-Bi8YlLGz.js → markup-templating-DU1K9_L8.js} +1 -1
- package/assets/{matlab-CBYkwhx-.js → matlab-D-TP_4M6.js} +1 -1
- package/assets/{maxscript-oSZ2yUes.js → maxscript-BufcWGly.js} +1 -1
- package/assets/{mdx-BHoJleUX.js → mdx-D5QtPHo7.js} +1 -1
- package/assets/{mel-DRBilGcs.js → mel-BiL0mMX7.js} +1 -1
- package/assets/{mermaid-Bq7sMSAH.js → mermaid-C6ZJwRbK.js} +1 -1
- package/assets/{mermaid-parser.core-tU8oz_mh.js → mermaid-parser.core-B8tr8YAl.js} +3 -3
- package/assets/{min-IMEB23ha.js → min-DlmeNnOM.js} +1 -1
- package/assets/{mindmap-definition-LNHGMQRG-BvLdIl3r.js → mindmap-definition-LNHGMQRG-BzbXC-47.js} +1 -1
- package/assets/{mizar-SGWL8yJi.js → mizar-CTg9VBxB.js} +1 -1
- package/assets/{mongodb-CZXw10Hc.js → mongodb-DZIW47b_.js} +1 -1
- package/assets/{monkey-BpTJAt69.js → monkey-OTcCeVas.js} +1 -1
- package/assets/{moonscript-Bk4aStup.js → moonscript-B9q5jFPJ.js} +1 -1
- package/assets/{n1ql-D92zDtTY.js → n1ql-zxH7u8ek.js} +1 -1
- package/assets/{n4js-DjwSyyw-.js → n4js-DxH8puYd.js} +1 -1
- package/assets/{nand2tetris-hdl-DIu5A2xC.js → nand2tetris-hdl-Y9CaATwQ.js} +1 -1
- package/assets/{naniscript-DIQbQ4YU.js → naniscript-fj11wz4c.js} +1 -1
- package/assets/{nasm-sIQeOEjn.js → nasm-CmwjTodA.js} +1 -1
- package/assets/{neon-Dl5D5n23.js → neon-DM1vXAju.js} +1 -1
- package/assets/{nevod-c_m7oI_g.js → nevod-awEjSQiN.js} +1 -1
- package/assets/{nginx-C-IxH6U8.js → nginx-CtMkRQkZ.js} +1 -1
- package/assets/{nim-BR4sz5ot.js → nim-BpvUfA3V.js} +1 -1
- package/assets/{nix-BeL-oxV9.js → nix-L30ZSyVO.js} +1 -1
- package/assets/{nsis-rZD-kg5m.js → nsis-B-wYmCZG.js} +1 -1
- package/assets/{objectivec-Be-9MKRF.js → objectivec-DqmvSFQo.js} +1 -1
- package/assets/{ocaml-CA824_cd.js → ocaml-DxsXmoff.js} +1 -1
- package/assets/{opencl-B8j5Qt0w.js → opencl-DE2DwDDh.js} +1 -1
- package/assets/{openqasm-CCf14wE-.js → openqasm-B_Z2Pbfo.js} +1 -1
- package/assets/{oz-bpaIpMpm.js → oz-BsEvVihN.js} +1 -1
- package/assets/packet-HUATNLJX-DZEv4qIp.js +1 -0
- package/assets/{parigp-BpezRDz1.js → parigp-Cb59kgzM.js} +1 -1
- package/assets/{parser-BNFPblsz.js → parser-BPfu9fvJ.js} +1 -1
- package/assets/{pascal-CG6NSobL.js → pascal-B60lAKfe.js} +1 -1
- package/assets/{pascaligo-CWE4pgCM.js → pascaligo-jljTdZcp.js} +1 -1
- package/assets/{pcaxis-DImtS1Lw.js → pcaxis-D5-ZKbf-.js} +1 -1
- package/assets/{peoplecode-CwSk531b.js → peoplecode-CHa_iagU.js} +1 -1
- package/assets/{perl-BNJF2-61.js → perl-k-uTMlyD.js} +1 -1
- package/assets/{php-CJ4S3mhg.js → php-DkI131Jd.js} +1 -1
- package/assets/{php-extras-BEgfTPMx.js → php-extras-DwKASBiR.js} +1 -1
- package/assets/{phpdoc-CfUtnM-V.js → phpdoc-U7fWPc6E.js} +1 -1
- package/assets/pie-WTHONI2E-7OIW4qVI.js +1 -0
- package/assets/{pieDiagram-DBDJKBY4-U-WcoY93.js → pieDiagram-DBDJKBY4-C_nsodWG.js} +1 -1
- package/assets/{plsql-YOMwIZVF.js → plsql-vgmv1Vi6.js} +1 -1
- package/assets/{powerquery-Dm0Mhb_V.js → powerquery-DmK9Euuu.js} +1 -1
- package/assets/{powershell-CoKIHaTe.js → powershell-CKXrQp96.js} +1 -1
- package/assets/{processing-Lot7YRTy.js → processing-B5NyV_CO.js} +1 -1
- package/assets/{prolog-DD7zNHdi.js → prolog-BWIt2B_6.js} +1 -1
- package/assets/{promql-D5K0UrTO.js → promql-B_QoDoXl.js} +1 -1
- package/assets/{properties-fkB0Kuub.js → properties-DaR4F6tG.js} +1 -1
- package/assets/{protobuf-cEEc0KlY.js → protobuf-D5QPKMFw.js} +1 -1
- package/assets/{psl-Bmgeg_GT.js → psl-D6wB8sa6.js} +1 -1
- package/assets/{pug-BCcvPa5A.js → pug-Df1YS9qd.js} +1 -1
- package/assets/{puppet-DFb8JIFb.js → puppet-BO-UEy3J.js} +1 -1
- package/assets/{pure-BqsCqoks.js → pure-_uKvBHAQ.js} +1 -1
- package/assets/{purebasic-xNVttaau.js → purebasic-B4ULSQZE.js} +1 -1
- package/assets/{purescript-X0UMi_9p.js → purescript-BZ-uz2lE.js} +1 -1
- package/assets/{python-CdBFSsGJ.js → python-B85Wtz1L.js} +1 -1
- package/assets/{python-C2ne8Ti1.js → python-D7SSynp9.js} +1 -1
- package/assets/{q-B4J60KvR.js → q-vO-s84n9.js} +1 -1
- package/assets/{qml-ChOlgVBD.js → qml-kaZ2gDT3.js} +1 -1
- package/assets/{qore-DEU01OyN.js → qore-DVq2LQeL.js} +1 -1
- package/assets/{qsharp-C9WXkekc.js → qsharp-Bf2rFqlm.js} +1 -1
- package/assets/{quadrantDiagram-YPSRARAO-83pV2sMB.js → quadrantDiagram-YPSRARAO-DApXzXyD.js} +1 -1
- package/assets/{r-CbO7Fypy.js → r-DeLDWJTd.js} +1 -1
- package/assets/{racket-DDR9V-54.js → racket-BcNKcbHA.js} +1 -1
- package/assets/radar-NJJJXTRR-DTGUp5A0.js +1 -0
- package/assets/{razor-BXhlQVgK.js → razor-BGJSc0Tr.js} +1 -1
- package/assets/{reason-B_1dIKwM.js → reason-DgdS1e1I.js} +1 -1
- package/assets/{reduce-DnPItCEY.js → reduce-BgTPaPsL.js} +1 -1
- package/assets/{regex-DrVMU8K9.js → regex-CIYZLC96.js} +1 -1
- package/assets/{rego-BXk4i-LT.js → rego-DCo8FQR5.js} +1 -1
- package/assets/{renpy-DbMgVhqp.js → renpy-BUspwmyO.js} +1 -1
- package/assets/{requirementDiagram-EGVEC5DT-DIc0zxm5.js → requirementDiagram-EGVEC5DT-u3Jr1c40.js} +1 -1
- package/assets/{rest-nUJHBCxD.js → rest-CdGjvoQ8.js} +1 -1
- package/assets/{rip-n9s_9Udz.js → rip-C0zBlfI9.js} +1 -1
- package/assets/{roboconf-CZbzq-aI.js → roboconf-CtH-vuuD.js} +1 -1
- package/assets/{robotframework-DB62acH-.js → robotframework-B2sSQjjW.js} +1 -1
- package/assets/{ruby-BaqmaDPn.js → ruby-B2ODcCrN.js} +1 -1
- package/assets/{rust-Cy7ZKlTk.js → rust-BVonVJBT.js} +1 -1
- package/assets/{sankeyDiagram-HRAUVNP4-Cy3AW06_.js → sankeyDiagram-HRAUVNP4-CFVhGSiA.js} +1 -1
- package/assets/{sas-CwN-rUxt.js → sas-C51qgIML.js} +1 -1
- package/assets/{sass--zuVMD-C.js → sass-aSk38cgu.js} +1 -1
- package/assets/{scala-408cTvZR.js → scala-CHGF8rj2.js} +1 -1
- package/assets/{scheme-UNH4gNpE.js → scheme-DtBnt09V.js} +1 -1
- package/assets/{scss-rRSMvq6L.js → scss-CwFwUKHz.js} +1 -1
- package/assets/{sequenceDiagram-WFGC7UMF-CHqdbNnV.js → sequenceDiagram-WFGC7UMF-2hkaJ4an.js} +1 -1
- package/assets/{shell-session-DEjK8y8D.js → shell-session-B1lsY4lP.js} +1 -1
- package/assets/{smali-DHSYljcX.js → smali-DoC35MXt.js} +1 -1
- package/assets/{smalltalk-CEhF9F2l.js → smalltalk-DC7K9Zjc.js} +1 -1
- package/assets/{smarty-BrN7znZ2.js → smarty-Dya8aFU7.js} +1 -1
- package/assets/{sml-BfGRCu9h.js → sml-BAkRAbsh.js} +1 -1
- package/assets/{solidity-DOLKhA72.js → solidity-DzvaOMP9.js} +1 -1
- package/assets/{solution-file-BKGNWca_.js → solution-file-Bmez1lHa.js} +1 -1
- package/assets/{soy-DEJrGg_A.js → soy-YLTPfz3s.js} +1 -1
- package/assets/{sparql-1Opiov0J.js → sparql-Dune-Ey0.js} +1 -1
- package/assets/{splunk-spl-DIWAywfd.js → splunk-spl-BBCP9G49.js} +1 -1
- package/assets/{sqf-DGFESDPV.js → sqf-CXQAyqIQ.js} +1 -1
- package/assets/{sql-DLrLfyw7.js → sql-02c4jPTl.js} +1 -1
- package/assets/{squirrel-Bd4ZRlpQ.js → squirrel-C0xvhdrs.js} +1 -1
- package/assets/{stan-BvbZQd2u.js → stan-B1JCuN-c.js} +1 -1
- package/assets/{stateDiagram-UUKSUZ4H-2uA3yuPl.js → stateDiagram-UUKSUZ4H-wJehzXeN.js} +1 -1
- package/assets/{stateDiagram-v2-EYPG3UTE-B82CdYRX.js → stateDiagram-v2-EYPG3UTE-BSNhmMZe.js} +1 -1
- package/assets/{stylus-DPnXRJ_G.js → stylus-r331_ig_.js} +1 -1
- package/assets/{swift-C_RMdK0L.js → swift-B9J5Xueq.js} +1 -1
- package/assets/{systemd-D5EOF-4m.js → systemd-XWCGy8Ob.js} +1 -1
- package/assets/{t4-cs-ClmNL6YM.js → t4-cs-Dc98chgs.js} +1 -1
- package/assets/{t4-templating-X7-L1qDB.js → t4-templating-BvTJ1ev3.js} +1 -1
- package/assets/{t4-vb-DpOSQf_k.js → t4-vb-BZfdBq4p.js} +1 -1
- package/assets/{tap-BU5N4MXH.js → tap-DhlZD9D0.js} +1 -1
- package/assets/{tcl-gfuuE3Ao.js → tcl-CuPFotZK.js} +1 -1
- package/assets/{textile-COWPdKuY.js → textile-BXq80H_I.js} +1 -1
- package/assets/{timeline-definition-3HZDQTIS-BHX4h2gq.js → timeline-definition-3HZDQTIS-DGZYlLIL.js} +1 -1
- package/assets/{toml--XK_G3s0.js → toml-B5y3O0-s.js} +1 -1
- package/assets/treemap-75Q7IDZK-BBJN3GI7.js +1 -0
- package/assets/{tremor-DCN8FoOS.js → tremor-C9Ysgl4-.js} +1 -1
- package/assets/{tsMode-C1ylvAq_.js → tsMode-BVMxS71B.js} +1 -1
- package/assets/{tsx--vTZok9C.js → tsx-CLBH7tR4.js} +1 -1
- package/assets/{tt2-DFNhfbJT.js → tt2-FoOwDDSs.js} +1 -1
- package/assets/{turtle-CKUMDGfA.js → turtle-BK5vaG_v.js} +1 -1
- package/assets/{twig-BZRD7ZOB.js → twig-Csv3LkDK.js} +1 -1
- package/assets/{typescript-C6FSLd6J.js → typescript-0ftPtREK.js} +1 -1
- package/assets/{typescript-DTqgIfO2.js → typescript-DVbMPcDB.js} +1 -1
- package/assets/{typoscript-ChcsUI52.js → typoscript-0nvYot7S.js} +1 -1
- package/assets/{unrealscript-B410KxC-.js → unrealscript-LwNoQ3hK.js} +1 -1
- package/assets/{uorazor-CUMS8ZM1.js → uorazor-Cwh8UkUY.js} +1 -1
- package/assets/{uri-CBh4fTTI.js → uri-DshCX7s1.js} +1 -1
- package/assets/{v-BIDmindm.js → v-COh0hg4M.js} +1 -1
- package/assets/{vala-DNF0LFBD.js → vala-DgFyuUwt.js} +1 -1
- package/assets/{vbnet-Ciq9JDG3.js → vbnet-Wk_aEgDi.js} +1 -1
- package/assets/{velocity-DmDArSVc.js → velocity-DFFugm2u.js} +1 -1
- package/assets/{verilog-SYeMJmsy.js → verilog-BKx734nL.js} +1 -1
- package/assets/{vhdl-DBOQ3ZY1.js → vhdl-Cp7FcdJo.js} +1 -1
- package/assets/{vim-DN7TSVuJ.js → vim-CnU0V9TN.js} +1 -1
- package/assets/{visual-basic-B6Vu_V3h.js → visual-basic-hpwCRIX4.js} +1 -1
- package/assets/{warpscript-Dka7eChE.js → warpscript-BGP6IruP.js} +1 -1
- package/assets/{wasm-BmOPydWn.js → wasm-CZNW1nwO.js} +1 -1
- package/assets/{web-idl-CrEx95vz.js → web-idl-BPOBeez0.js} +1 -1
- package/assets/{wiki-BuKhQLIL.js → wiki-CJ3thIMw.js} +1 -1
- package/assets/{wolfram-_utNchhs.js → wolfram-DKnA8Se6.js} +1 -1
- package/assets/{wren-Do4vJsca.js → wren-CqsJ3mfc.js} +1 -1
- package/assets/{xeora-5KtnrAM0.js → xeora-DMp8mBB8.js} +1 -1
- package/assets/{xml-BY8fvbUX.js → xml-Bac-zZiz.js} +1 -1
- package/assets/{xml-doc-CLr_3ZX7.js → xml-doc-Vd4sAKdf.js} +1 -1
- package/assets/{xojo-_zqJierB.js → xojo-UInKc1K-.js} +1 -1
- package/assets/{xquery-B7bA6lvl.js → xquery-rmywbRjN.js} +1 -1
- package/assets/{xychartDiagram-FDP5SA34-BUVLl__t.js → xychartDiagram-FDP5SA34-BvJlNneq.js} +1 -1
- package/assets/{yaml-BrAKw7l8.js → yaml-BxI0F9PE.js} +1 -1
- package/assets/{yaml-arOgPLDM.js → yaml-D9S3dJfe.js} +1 -1
- package/assets/{yang-x9GRP0B4.js → yang-C4BJM-5B.js} +1 -1
- package/assets/{zig-DQuD3qa-.js → zig-BT9rKyM0.js} +1 -1
- package/index.html +1 -1
- package/package.json +1 -1
- package/assets/architecture-O4VJ6CD3-BznV3pKR.js +0 -1
- package/assets/channel-Dm-dxKqG.js +0 -1
- package/assets/clone-BrvWIs-F.js +0 -1
- package/assets/gitGraph-ZV4HHKMB-BRYaYkkA.js +0 -1
- package/assets/info-63CPKGFF-A3gt6Wd6.js +0 -1
- package/assets/packet-HUATNLJX-CNbQ1Tw9.js +0 -1
- package/assets/pie-WTHONI2E-BIg4ak5Y.js +0 -1
- package/assets/radar-NJJJXTRR-Co64lt-v.js +0 -1
- package/assets/treemap-75Q7IDZK-gCG2Twyd.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-2BBEFEWP-
|
|
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
|
|
@@ -89,7 +89,7 @@ a*b*c* # match
|
|
|
89
89
|
.*bbb.* # match
|
|
90
90
|
aaa*bbb* # match`,"regex.zeroplus.text":'The asterisk "*" can be used to match the preceding shortest pattern zero-or-more times. For string "aaabbb":',reserved:PJe,"reserved.ex":"\\(1\\+1\\)\\=2","reserved.ex2":'+ - = && || > < ! ( ) { } [ ] ^ " ~ * ? : \\ /',"reserved.note":"Note","reserved.text":"If you need to use any of the characters which function as operator's in your query itself (and not as operators), then you should escape them with a leading backslash.","reserved.text2":"For instance, to search for (1+1)=2, you would need to write your query as:","reserved.text3":"The reserved characters are:","reserved.text4":"Failing to escape these special characters correctly could lead to a syntax error which prevents your query from running.","reserved.text5":"< and > can’t be escaped at all. The only way to prevent them from attempting to create a range query is to remove them from the search query entirely.",subtitle:HJe,title:FJe,toc:BJe,top:VJe,wildcard:jJe,"wildcard.ex":"qu?ck bro*","wildcard.note":"Note","wildcard.note.text":'Allowing a wildcard at the beginning of a word (eg "*ing") is particularly heavy, because all terms in the index need to be examined, just in case they match.',"wildcard.text":"Wildcard searches can be run on individual terms, using ? to replace a single character, and * to replace zero or more characters:","wildcard.text2":'Be aware that wildcard queries can use an enormous amount of memory and are very slow — just think how many terms need to be queried to match the search query "a* b* c*".'},WJe="Admin menu",UJe="Add",$Je="All",qJe="Any",ZJe="Ascending",GJe="Close",KJe="Descending",YJe="Custom",XJe="Deprecated",JJe="Description",eet="OR",tet="Direction",net="Edit",iet="list",ret="Loading...",set="Manage",oet="None",aet="on",cet="Open",uet="Owner",det="New Password",het="Personalization",fet="Query",pet="references",get="Save",met="Unknown",Tet="using",bet="User menu",_et="Global",vet="Unset",h0e={adminmenu:WJe,"adminmenu.config":"Configuration","adminmenu.users":"Users",add:UJe,all:$Je,any:qJe,asc:ZJe,close:GJe,desc:KJe,"actions.running":'Action "{{action}}" is executing.',"actions.succeeded":'Action "{{action}}" completed successfully.',"api.user.apikey.updated":"New API key added successfully.","api.user.apikey.removed":"API key removed successfully.","api.user.email.updated":"User's email updated successfully.","api.user.name.updated":"User's name updated successfully.","api.user.quota.updated":"API quota updated successfully.","api.user.role.updated":"User's roles updated successfully.","apikey.extended":"Extended","apikey.impersonate":"Impersonate","apikey.read":"Read","apikey.write":"Write","app.drawer.hit.assignment.autocomplete.label":"Choose Assignee","app.drawer.hit.assignment.description":"Choose a user to assign this hit to.","app.drawer.hit.assignment.success":"User assigned to hit sucessfully.","app.drawer.hit.assignment.unassigned.email":"Mark hit as unassigned","app.drawer.hit.assignment.unassigned.name":"Unassigned","app.drawer.view.description.create":"Create a new view.","app.drawer.view.description.edit":"Edit an existing view.","app.drawer.view.global":"Global","app.drawer.view.parent":"Include parent query","app.drawer.view.personal":"Personal","app.drawer.view.query":"View Query","app.drawer.view.title":"View Name","app.drawer.user.apikey.description":"Randomly generated password used in scripts to gain limited data access for any combination of reading, writing, and making changes to your user account (extended keys).<br><br>Can also be used by others to impersonate your account when only permitting read/write permissions.","app.drawer.user.apikey.field.name":"Key Name","app.drawer.user.apikey.permissions":"Key Permissions","app.drawer.user.apikey.expiry.date":"Add Expiry Date","app.drawer.user.apikey.title":"Add API Key","app.drawer.user.apikey.limit.title":"Warning: Short Expiry Duration","app.drawer.user.apikey.limit.description":"Due to the configuration of this Howler deployment, the permitted expiry date for API keys created now is very soon.","app.drawer.user.roles.title":"Add Role","app.drawer.user.groups.title":"Your Groups","app.language":"Language","app.search.fullscreen":"Maximize Search","app.search.shortcut":"Open Search","app.search.starttyping":"Search by assignment, analytic, detection or status","breadcrumb.404":"404","button.add":"Add","button.aggregate":"Aggregate","button.cancel":"Cancel","button.copy":"Copy","button.create":"Create","button.delete":"Delete","button.drag":"Drag","button.edit":"Edit","button.pin":"Pin","button.save":"Save","button.saved":"Saved","button.submit":"Submit","button.search":"Search","button.readonly":"Read Only","button.confirm":"Confirm","clipboard.failure":"could not be copied to clipboard","clipboard.success":"was copied to clipboard.","comments.add":"Add Comment","comments.add.detection":"Add Comment to Detection","comments.add.analytic":"Add Comment to Analytic","comments.delete":"Delete","comments.edit":"Edit","comments.edit.stop":"Stop Editing","comments.edited":"Edited","comments.quote":"Quote Reply","comments.analytic":"Analytic Comments ({{count}})","comments.analytic.show":"Show Analytic Comments","comments.analytic.hide":"Hide Analytic Comments",custom:YJe,"documentation.open.actions":"Actions are a feature in Howler that allow users to perform particular tasks on a large number of hits, through automating the execution of a task on each hit. Click for additional documentation.","documentation.open.search":"Search allows you to query Howler and view the matching hits. Click for additional documentation.","documentation.open.views":"Views are a feature in Howler that allow users to create custom, default queries through which they can organize and triage hits. Click for additional documentation.","documentation.open.templates":"Howler allows analysts and detection engineers to create templates, which allow various analytics and their detections to present fields and data relevant to triaging alerts generated by that analytic/detection. Click for additional documentation.","duplicates.omitted":"Some duplicate entries have been omitted.","rule.interval":"Rule Execution Interval","rule.interval.edit":"Edit Interval","rule.interval.save":"Save Interval","rule.interval.five.minutes":"Every five minutes","rule.interval.thirty.minutes":"Every thirty minutes","rule.interval.one.hour":"Every one hour","rule.interval.three.hours":"Every three hours","rule.interval.six.hours":"Every six hours","rule.interval.one.day":"Every one day","date.range.1.day":"The last day","date.range.3.day":"The last three days","date.range.1.week":"The last week","date.range.1.month":"The last month","date.range.all":"All Dates","date.range.custom":"Custom Date","date.select.start":"Start Date","date.select.end":"End Date","date.search.range":"Search Date Range",deprecated:XJe,description:JJe,divider:eet,direction:tet,"deprecation.instructions":"Upgrade Instructions","drawer.collapse":"Collapse Menu","drawer.expand":"Expand Menu","drawer.apikey.copied":"New key copied to clipboard!",edit:net,"features.warning.title":"Feature In Active Development","features.warning.description":"This feature is undergoing active development, and is not yet in a finished state. You may encounter bugs or instability.","hit.actions.conflict.assess":"Someone else has already assessed this hit.","hit.actions.conflict.manage":"Someone else has already interacted with this hit. Please try again.","hit.label":"Labels","hit.label.category.mitigation":"Category: Mitigation - This label captures what efforts were undertaken to mitigate a compromise.","hit.label.category.insight":"Category: Insight - An analyst has gained a useful insight that they are confident will remain true for future alerts if the surrounding circumstances remain the same.","hit.label.category.victim":"Category: Victim - Hits produced from a victim notification stream can have a label that identifies the victim organization that needs to be notified.","hit.label.category.campaign":"Catergory: Campaign - Identifies ongoing campaigns from specific malware families or phishing initiatives. They should only be considered correct attributions if the hit is promoted to evidence.","hit.label.category.threat":"Category: Threat - Identifies that the hit has been attributed to a known threat actor or group.","hit.label.category.operation":"Category: Operation - The hit is related to an ongoing operation and should be scrutinized with special considerations and a broader understanding of the current circumstances.","hit.label.category.generic":"Category: Generic - A catch-all for any labels added that don't match another category.","hit.label.category.assignments":"Category: Assignments - Specifies what analyst or team of analysts is assigned to triaging this hit.","hit.label.category.tuning":"Category: Tuning - Identifies which hits are already understood and should get triaged automatically.","hit.label.edit":"Manage labels","hit.label.edit.add.error.empty":"Can't add an empty label","hit.label.edit.add.error.duplicate":"Duplicated label not allowed","hit.label.edit.add.category":"New Label Category","hit.label.edit.add.label":"New label value","hit.details.actions.assessment":"Assess","hit.details.actions.assessment.noassessment":"No Assessment","hit.details.actions.assign":"Assign Hit","hit.details.actions.action":"Manage","hit.details.actions.action.release":"Release","hit.details.actions.action.assign_to_other":"Delegate","hit.details.actions.action.vote":"Vote","hit.details.actions.action.start":"Start","hit.details.actions.action.pause":"Pause","hit.details.actions.action.resume":"Resume","hit.details.actions.action.assign_to_me":"Assign to Me","hit.details.actions.action.re_evaluate":"Re-evaluate","hit.details.actions.action.promote":"Promote","hit.details.actions.action.demote":"Demote","hit.details.actions.vote":"Vote","hit.details.actions.vote.novote":"No Vote","hit.details.asessments.ambiguous.description":"The nature of the hit was not successfully determined based on available data.","hit.details.asessments.attempt.description":"The hit represents malicious activity attempting to compromise systems or data.","hit.details.asessments.compromise.description":"The hit was part of a successful compromise.","hit.details.asessments.development.description":"The hit is related to development activity and should be ignored.","hit.details.asessments.false-positive.description":"The hit is not related to the detection that created it.","hit.details.asessments.legitimate.description":"The hit represents legitimate activity not related to an incident.","hit.details.asessments.mitigated.description":"This compromise has already been investigated, mitigated and reported on.","hit.details.asessments.recon.description":"The hit is limited to reconnaissance activity.","hit.details.asessments.security.description":"The hit is related to internal cybersecurity activity and should be ignored.","hit.details.asessments.trivial.description":"The hit was part of an incident of too low a severity to warrant a response.","hit.details.forceDropdown":"Dropdown View","hit.details.shortcuts":"Shortcut Settings","hit.details.title":"Details","hit.header.assignment":"Assignment: {{user}}","hit.header.assignment.add":"Assign to a user","hit.header.assignment.change":"Change assignment","hit.header.bundlesize":"{{hits}} hits","hit.header.escalation":"Escalation Level: ","hit.header.indicators":"Indicators","hit.header.rationale":"Rationale","hit.header.scrutiny":"Scrutiny: ","hit.header.status":"Status: ","hit.header.summary":"Summary","hit.header.target":"Target","hit.header.threat":"Threat","hit.header.votes":"Votes: ","hit.overview.missing":"No overview has been created for this hit. In order to create an overview, press the add button to the right.","hit.panel.aggregation.run":"Create Summary","hit.panel.analytic.open":"Open Analytic","hit.panel.bundles.open":"Parent Bundles","hit.panel.bundles.open.prompt":"Open Parent Bundle","hit.panel.details.show":"Show Hit Details","hit.panel.details.hide":"Hide Hit Details","hit.panel.details.exit":"Close Hit","hit.panel.open":"Open Hit Viewer","hit.panel.close":"Close","hit.panel.hit.noselection":"No hit has been selected","hit.panel.details.cluster":"Cluster Size","hit.panel.details.cluster.description":"Size of the cluster","hit.panel.details.no.subjects":"No subjects found","hit.notebook.confirm.dialog":"A notebook with that name already exists in your environment, do you wish to overwrite it?","hit.notebook.confirm.title":"Overwrite existing notebook?","hit.notebook.select":"Please Select a notebook","hit.notebook.goTo":"Go to Jupyterhub","hit.notebook.tooltip":"Open in Jupyterhub","hit.notebook.error.failToPost":"Failed to send notebook to Jupyterhub, make sure your user environment is running.","hit.summary.title":"Summary of Hits Over Time","hit.summary.subtitle":"Limited to a maximum of 10 000 hits.","hit.summary.aggregate.sources":"Associated Templates:","hit.summary.aggregate.title":"Query Summary Pane","hit.summary.aggregate.nokeys.title":"No keys selected for faceting","hit.summary.aggregate.nokeys.description":"Your current search query does not show any hits with templates set. As the values chosen in the hit templates are what populates this section, no results will be shown.","hit.summary.filter.field":"Group By Field","hit.summary.filter.escalation":"Filter By Escalation","hit.summary.refresh":"Refresh Graph","hit.summary.render.limit":"Results Rendered Limited to {{number}} points","hit.summary.render.limit.description":'For performance reasons, a maximum of {{number}} points are shown by default. To show up to {{max}} points, press "Allow More".',"hit.summary.render.limit.override":"Allow More","hit.summary.server.limit":"Cannot Summarize on {{number}} Hits","hit.summary.server.limit.description":"Due to the complexity of the query, queries larger than {{max}} results cannot be summarized. Refine your query to enable summarization.","hit.summary.zoom.reset":"Reset Zoom","hit.summary.adhoc":"Add Custom Field","hit.summary.adhoc.custom":"Custom Field","analytic.notebook.link":"Link","analytic.notebook.name":"Name","analytic.notebook.dropdown.none":"No specific detection","analytic.notebook.error.minFields":"Name and link are required.","hit.bundle.parents.show":"Show Parent Bundles","hit.bundle.close":"Close Bundle","hit.fields":"Fields","help.hit.bundle.title":"Hit Bundles","help.hit.banner.title":"Populating the Hit Banner","help.hit.banner.description":"See the below hit banner example for the hit keys necessary to properly populate it. If you have any additional questions, ask in the HOWLER support channel.","help.hit.banner.json":"Here is the hit data used to populate this banner:","help.hit.labels.title":"Hit Labels","help.hit.links.title":"Hit Links","help.hit.schema.title":"Hit Schema","help.actions.introduction":"Introduction to Actions","help.hit.schema.description.missing":"No description provided.","help.hit.schema.search.prompt":"Filter Fields","help.hit.schema.regex":"Validation Regex","help.hit.schema.values":"Accepted Values","help.hit.schema.table.assemblyline":"Assemblyline Fields","help.hit.schema.table.ecs":"ECS Fields","help.hit.schema.table.howler":"Howler Fields","help.hit.schema.table.name":"Field","help.hit.schema.table.type":"Type","help.hit.schema.table.description":"Description","hit.quicksearch":"Search by assignment, analytic, detection or status","hit.search.prompt":"Search by providing a lucene query. Activate autocomplete using [ctrl + space].","hit.search.invalid":"Invalid Query","hit.search.keyboard":"Keyboard shortcuts","hit.search.keyboard.no_shortcuts":"No shortcuts","hit.search.keyboard.shortcuts":"Shortcuts","hit.search.keyboard.shortcuts_hints":"Shortcuts with hints","hit.search.settings":"Settings","hit.search.button":"Perform search","hit.search.custom":"Custom Sort","hit.search.aggregate.button":"Create Summary","hit.search.filter.fields":"Fields","hit.search.filter.values":"Values","hit.search.filter.button":"Use lookup filters with predefined values","hit.search.filter.label":"Lookup Filters","hit.search.save.button":"Save query as view","hit.search.save.view":"Save View","hit.search.sort.button":"Sort Results","hit.search.sort.fields":"Sort Field","hit.search.span":"Timespan","hit.search.select.all":"Select all hits on page","hit.search.select.clear":"Clear Selection","hit.search.selected":"{{size}} selected","hit.search.view.current":"Current View","hit.search.view.default":"(Default)","hit.viewer.aggregate":"Summary","hit.viewer.comments":"Comments","hit.viewer.data":"Raw Data","hit.viewer.details":"Details","hit.viewer.json":"JSON","hit.viewer.overview":"Overview","hit.viewer.worklog":"Worklog","hit.viewer.related":"Related Links","hit.viewer.reload":"Reload","hit.worklog.appended":"added to","hit.worklog.removed":"removed from","hit.worklog.set":"updated to","hit.worklog.updated":"Updated","hit.worklog.new":"New Updates","home.title":"My Assigned Hits","json.viewer.search.label":"Search JSON Data","json.viewer.search.prompt":"Query must be a valid regex.","lead.invalid":"Invalid Lead Type","lead.invalid.description":"The selected lead does not match any type Howler recognizes, and therefore will not be rendered.","link.open":"Open Link",list:iet,"live.connecting":"Trying to reconnect to live server.","live.open":"Connected to live server. Updates to alerts will be automatically applied.","live.closing":"Closing connection to live server.","live.closed":"Not connected to live server.",loading:ret,manage:set,"markdown.error":"An Error Has Occurred.","markdown.json.invalid":"Invalid JSON Provided. Consider using the {{json <data>}} utility to convert objects into JSON strings.","markdown.props.missing":"You are missing keyword arguments for this helper:","modal.action.title":"Save Action","modal.action.description":"Provide a name that allows other users to identify the purpose of this action.","modal.action.empty":"Action Name cannot be empty.","modal.action.label":"Action Name","modal.confirm.delete.title":"Confirm Deletion","modal.confirm.delete.description":"Are you sure you want to delete this item?","modal.rule.title":"Create a New Rule","modal.rule.description":"Create a new rule by giving it a name, markdown description and submitting.","modal.rule.name":"Rule Name","modal.rule.name.warn":"In general, analytic name should only contain letters and spaces, preferablly 'In Pascal Case'.","modal.rule.description.title":"Rule Description","modal.rule.file.title":"Query","modal.rule.markdown.title":"Markdown Preview","modal.rule.markdown.placeholder":`Your *markdown* **description** will be ~~rendered~~ here.
|
|
91
91
|
|
|
92
|
-
`,"modal.rule.disabled.analytic":"You must provide a rule name.","modal.rule.disabled.description":"You must provide a useful markdown description for your rule.","modal.rule.success":"Rule Created!","modal.rationale.title":"Add Rationale","modal.rationale.description":"Provide a rationale that succinctly explains to other analysts why you are confident in this assessment.","modal.rationale.label":"Rationale",none:oet,"no.data":"No Data",on:aet,open:cet,owner:uet,"operations.add_label":"Add Label","operations.add_to_bundle":"Add to Bundle","operations.remove_label":"Remove Label","operations.remove_from_bundle":"Remove from Bundle","operations.prioritization":"Change Prioritization","operations.change_field":"Change Field","operations.transition":"Execute Transition","operations.promote":"Promote Hit","operations.demote":"Demote Hit","outline.assemblyline.beacons":"Beacons","outline.assemblyline.file_path":"File Path","outline.assemblyline.last_modified":"Last Modified","outline.assemblyline.tags":"Tags","overview.search":"Search Hit Data","page.404.description":"The page you are looking for cannot be found...","page.404.title":"404: Not found","page.error.title":"Application Stopped Working","page.error.description":"The application stopped working suddenly. If the problem persists please reach out on teams.","page.error.support":"Please click here for teams support","page.dashboard.title":"Dashboard","page.documentation.categories":"API Categories","page.documentation.categories.category":"Category","page.documentation.categories.description":"Description","page.documentation.endpoints":"API Endpoints","page.documentation.endpoint":"Endpoint","page.documentation.endpoint.explanation":"Endpoint Name - The user-friendly name of the endpoint<br>Endpoint Path - the path to make requests to in order to access this endpoint<br>Endpoint Stability - Whether this endpoint is safe to use and unlikely to change significantly.<br>Protection - Whether it is necessary to authenticate when accessing this endpoint<br>Methods - What HTTP methods can be used to access this endpoint","page.documentation.required_type":"Required User Types","page.documentation.required_type.explanation":"Which user types have access to this endpoint. If any of the types are green, you have access to it.","page.documentation.required_priv":"Required API Key Privileges","page.documentation.required_priv.explanation":"What privileges an API Key you generate must have to interact with this endpoint.","page.documentation.description":"Endpoint Description","page.documentation.description.explanation":"The documentation outlining what this endpoint is used for and how you should interact with it.","page.documentation.labels.name":"Label Category","page.documentation.labels.description":"Category Description","page.documentation.labels.example":"Example","page.help":"Help","page.help.title":"Help Dashboard","page.login.button":"Sign in","page.login.password":"Password","page.login.username":"Username","page.logout":"Logging out current user ... ","page.settings":"Your account settings","page.settings.profile.table.email":"Email","page.settings.profile.table.groups":"Groups","page.settings.profile.table.groups.description":"This drawer will show you any groups howler sees you as a part of. This can be useful for verifying you have the permissions and roles you expect given your authentication method.","page.settings.profile.table.name":"Name","page.settings.profile.table.roles":"Roles","page.settings.profile.table.username":"Username","page.settings.profile.title":"Profile","page.settings.security.table.apikeys":"API Keys","page.settings.security.table.apiquota":"API Quota","page.settings.security.table.apiquota.description":"This API quota manages the number of concurrent requests a user can make to howler. For high volume users, this may rate limit them and an administrator will need to change it to a higher number.","page.settings.security.table.password":"Password","page.settings.security.title":"User Security","page.settings.sitemap":"Settings","page.settings.local.title":"UI Preferences","page.settings.local.compact.json":"Show Compact JSON View","page.settings.local.compact.json.description":"Enable or disable a more compact JSON view, better suited to viewing lots of data at once.","page.settings.local.flatten.json":"Flatten JSON in JSON View","page.settings.local.flatten.json.description":"Instead of showing the object structure of the JSON, show it as flattened keys.","page.settings.local.details.drawer":"Always use drawer in Hit Search","page.settings.local.details.drawer.description":"Instead of switching between a divided view and the drawer on different screen sizes, this setting forces Howler to always use the drawer.","page.settings.local.hits.display_type":"Default display type for results","page.settings.local.hits.display_type.description":"This setting allows you to decide whether to use the list or grid view by default when searching.","page.settings.local.hits.display_type.list":"List","page.settings.local.hits.display_type.grid":"Grid","page.settings.local.hits.layout":"Change Layout","page.settings.local.hits.layout.description":"This setting allows you to decide how much padding and spacing, as well as font size and element size, we use when rendering the UI. The denser the UI, the more data can be viewed.","page.settings.local.hits.layout.dense":"Dense","page.settings.local.hits.layout.normal":"Normal","page.settings.local.hits.layout.comfy":"Comfy","page.settings.local.search.width":"Maximum Results Width","page.settings.local.search.width.description":"The maximum size (in pixels) the results column in the search page.","page.settings.local.results.count":"Results Per Page","page.settings.local.results.count.description":"How many results should we show per page when showing search results?","page.settings.admin.title":"Administration","page.user.search":"Search Users","page.user.search.column.username":"Username","page.user.search.column.fullname":"Fullname","page.user.search.column.email":"Email","page.user.search.column.groups":"Groups","page.user.search.prompt":"Search by username, fullname, email or group",password:det,"password.confirm":"Confirm Password","password.match":"Password and Confirm Password must match","password.success":"Your new password has been set. You will be logged out in five seconds.",personalization:het,"personalization.autohideappbar":"Auto Hide Topbar","personalization.dark":"Dark Mode","personalization.minimizebreadcrumbs":"Minimize Breadcrumbs","personalization.quicksearch":"Show Quick Search","personalization.reset_text":"Reset to site defaults","personalization.showbreadcrumbs":"Show Breadcrumbs","personalization.sticky":"Sticky Topbar",query:fet,"quicksearch.aria":"search","quicksearch.placeholder":"Search ...","rationale.default":"Hit assessed as {{assessment}}",references:pet,"retention.imminent":"moments away","retention.safe":"This hit is {{ duration }} from automatic deletion.","retention.warn":"This hit is {{ duration }} from automatic deletion. Consider retaining the hit if you want to avoid data loss.","retention.error":"This hit is {{ duration }} from automatic deletion. You will soon lose access to this hit in Howler - consider retaining the hit if you want to avoid data loss.","route.admin.user.details":"User Details","route.admin.user.search":"User Search","route.advanced":"Advanced Search","route.advanced.error":"Search Error","route.advanced.fields":"Hit Fields to Show","route.advanced.fields.all":"Show All Fields","route.advanced.open":"Open in Search","route.advanced.rows":"Number of Rows to Return","route.advanced.create.rule":"Create Rule","route.advanced.create.rule.disabled":"You must run your search to ensure it is valid first.","route.advanced.execute.query":"Execute Query","route.advanced.query.lucene":"Lucene Query","route.advanced.query.lucene.description":"Apache Lucence is a search syntax used by elasticsearch, Howler and apache lucene. See our documentation for information on this.","route.advanced.query.eql":"EQL Query","route.advanced.query.eql.description":"Event Query Language (EQL) is a query language for event-based time series data, such as logs, metrics, and traces.","route.advanced.query.yaml":"Sigma Rule","route.advanced.query.yaml.description":"Sigma is a generic and open signature format that allows you to describe relevant log events in a straightforward manner. The rule format is very flexible, easy to write and applicable to any type of log file.","route.advanced.result.title":"Howler Advanced Search","route.advanced.result.description":"Execute a query to show results here.","route.advanced.rule.type":"Rule Type","route.advanced.pivot.field":"Group By Field","route.advanced.query.type":"Query Type","route.advanced.query.type.default":"Default","route.advanced.query.type.facet":"Facet","route.advanced.query.type.groupby":"Group By","route.analytics":"Analytics","route.analytics.deleted":"Deleted Rule!","route.analytics.detections":"Detections:","route.analytics.tags":"Tags:","route.analytics.rule":"Rule","route.analytics.rule.title":"Rule Query","route.analytics.contributors":"Contributors","route.analytics.filter.rule":"Filter on Rules","route.analytics.pinned":"Pinned Analytics","route.analytics.search.prompt":"Search by name or detections.","route.analytics.search.filter.rules.show":"Showing Rules Only","route.analytics.search.filter.rules.hide":"Hiding Rules Only","route.analytics.search.filter.rules.toggle":"Toggle Filtering Rule","route.analytics.tab.overview":"Summary","route.analytics.tab.comments":"Comments","route.analytics.tab.hit_comments":"Hit Comments","route.analytics.tab.notebooks":"Notebooks","route.analytics.tab.overviews":"Overviews","route.analytics.tab.rule":"Rule Query","route.analytics.tab.templates":"Templates","route.analytics.tab.triage":"Triage","route.analytics.view":"View Analytic","route.analytics.overview.description":"Description","route.analytics.overview.statistics":"Statistics","route.analytics.overview.limit":"Limited to the most recent 10 000 hits.","route.analytics.overview.empty.title":"No Statistics to Show","route.analytics.overview.empty.description":"There are no existing hits for this analytic. Statistics cannot be shown.","route.analytics.ingestion.title":"Number of Hits Created","route.analytics.escalation.title":"Escalation of Created Hits","route.analytics.assessment.title":"Assessment Result of Created Hits","route.analytics.status.title":"Cumulative Status of Hits Created in the Last Three Months","route.analytics.detection.title":"Hits Ingested in the Last Three Months by Detection","route.analytics.updated":"Analytic Updated!","route.analytics.set.owner":"Change Ownership","route.analytics.triage.title":"Triage Settings","route.analytics.triage.rationale":"Skip Rationale","route.analytics.triage.rationale.description":"When triaging alerts from this analytic, the rationale is not prompted, and is instead auto-generated.","route.analytics.triage.assessments":"Permitted Assessment Outcomes","route.analytics.triage.assessments.description":"When triaging alerts from this analytic, what assessments are valid?","route.actions":"Actions","route.actions.operation.add":"Add New Operation","route.actions.alert.error":"There are {{count}} hits in your query for which this operation may fail.","route.actions.alert.success":"This operation should run without issue.","route.actions.alert.warning":"There are {{count}} hits in your query for which this operation may have no effect.","route.actions.automate":"Automate","route.actions.change":"Run Action","route.actions.edit":"Edit","route.actions.execute":"Execute","route.actions.create":"New Action","route.actions.manager":"Action Manager","route.actions.name":"Action Name","route.actions.open":"Open Query","route.actions.report":"Action Report","route.actions.restart":"Restart","route.actions.view":"View","route.actions.save":"Save Action","route.actions.search":"Search Actions","route.actions.search.prompt":"Search by name or query.","route.actions.search.open":"Open List","route.actions.search.warning":"Before adding operations, you must run and validate a query.","route.actions.trigger.description":"This action has been automated. It will run automatically when the trigger(s) <bold>{{triggers}}</bold> are met.","route.actions.query.empty":"Query cannot be empty.","route.actions.trigger":"Filter by Trigger","route.actions.trigger.create":"Run on Create","route.actions.trigger.promote":"Run on Promotion","route.actions.trigger.demote":"Run on Demotion","route.actions.trigger.update":"Run on Update","route.actions.trigger.resolve":"Run on Resolve","route.actions.trigger.add_label":"Run on Add Label","route.actions.trigger.remove_label":"Run on Remove Label","route.actions.trigger.disabled.explanation":"One of your selected operations does not support this trigger.","route.actions.trigger.disabled.permissions":"You do not have the correct roles to execute this trigger.","route.integrations":"Integrations","route.help":"Help","route.help.main":"Dashboard","route.help.actions":"Action Documentation","route.help.api":"API Documentation","route.help.auth":"Authentication","route.help.client":"Howler Client","route.help.hit":"Hit Documentation","route.help.search":"Search Documentation","route.help.templates":"Templates","route.help.overviews":"Overviews","route.help.notebook":"Notebook Documentation","route.help.views":"Views","route.help.retention":"Retention","route.hits.bundle":"View Bundle","route.hits.view":"View Hit","route.hits":"Alerts","route.home.add.analytic.description":"Select the analytic for which data should be shown, and the visualization to present.","route.home.add.analytic.title":"Add analytic statistics","route.home.add.analytic":"Analytic","route.home.add.description":"Add an additional panel to your dashboard by selecting the type you wish to add, and completing the configuration","route.home.add.limit.description":"Maximum number of hits to render","route.home.add.limit":"Result limit","route.home.add.type.analytic.description":"Present statistics on a given analytic = the resulting assessments, number of hits created, or escalation of created hits","route.home.add.type.analytic":"Analytic Panel","route.home.add.type.view.description":"Present a saved view, limited to a certain number of hits.","route.home.add.type.view":"View Panel","route.home.add.type":"Panel Type","route.home.add.view":"View to present","route.home.add.visualization.assessment.description":"For hits that have been triaged, what was the resulting assessment?","route.home.add.visualization.assessment":"Assessment Result of Created Hits","route.home.add.visualization.created.description":"Time series of the number of hits created by the analytic over the last 90 days.","route.home.add.visualization.created":"Number of Created Hits","route.home.add.visualization.detection.description":"For hits ingested in the last three months, what is their detection?","route.home.add.visualization.detection":"Hits Created by Detection","route.home.add.visualization.escalation.description":"For hits that have been triaged, what was the resulting escalation?","route.home.add.visualization.escalation":"Escalation of Created Hits","route.home.add.visualization.status.description":"For hits ingested in the last three months, what is their status?","route.home.add.visualization.status":"Cumulative Status of Hits Created","route.home.add.visualization.unavailable":"No visualization options available.","route.home.add.visualization":"Visualization","route.home.add":"Add New Panel","route.home.alert.updated.description":"There have been updates to alerts you are involved in. Since you last viewed, {{count}} alert(s) have updates.","route.home.alert.updated.title":"Alert Updates","route.home.description":"Welcome to Howler. You can add items to your dashboard using the buttons above.","route.home.title":"Howler","route.home":"User Dashboard","route.login.button.oauth":"Sign in with","route.search":"Search","route.clear":"Clear query","route.history":"History mode: See all previous queries","route.templates":"Templates","route.templates.analytic":"Choose Analytic","route.templates.detection":"Choose Detection","route.templates.builtin":"Built-in","route.templates.builtin.show":"Built in Templates","route.templates.builtin.hide":"Hide Built in Templates","route.templates.default":"Default","route.templates.global":"Global","route.templates.personal":"Personal","route.templates.search.prompt":"Search by analytic, detection, or template keys.","route.templates.select":"Select an analytic and detection to view and edit the template.","route.templates.readonly.warning":"This is a built-in template, and cannot be edited. To make changes to it, contact","route.templates.prompt":"Activate autocomplete using [ctrl + space].","route.templates.view":"View Template","route.templates.create":"New Template","route.templates.manager.global":"Global","route.templates.manager.personal":"Personal","route.templates.manager.open":"Open View","route.templates.manager.readonly":"Built-in","route.templates.manager.search":"Search Templates","route.templates.rule.explanation":"This is a Howler Analytic. There is only one detection, which has been pre-selected.","route.overviews":"Overviews","route.overviews.analytic":"Choose Analytic","route.overviews.detection":"Choose Detection","route.overviews.default":"Default","route.overviews.search.prompt":"Search by title, content, analytic or detection.","route.overviews.select":"Select an analytic and detection to view and edit the overview.","route.overviews.prompt":"Activate autocomplete using [ctrl + space].","route.overviews.view":"View Overview","route.overviews.create":"New Overview","route.overviews.manager.search":"Search Overviews","route.overviews.manager.delete":"Delete Overview","route.overviews.manager.delete.success":"Overview Removed.","route.overviews.theme.light":"Preview in Light Mode","route.overviews.theme.dark":"Preview in Dark Mode","route.dossiers":"Dossiers","route.dossiers.default":"Default","route.dossiers.search.prompt":"Search by title, query, or owner.","route.dossiers.prompt":"Activate autocomplete using [ctrl + space].","route.dossiers.view":"View Dossier","route.dossiers.create":"New Dossier","route.dossiers.edit":"Edit Dossier","route.dossiers.manager.search":"Search Dossiers","route.dossiers.manager.delete":"Delete Dossier","route.dossiers.manager.delete.success":"Dossier Removed.","route.dossiers.manager.global":"Global","route.dossiers.manager.personal":"Personal","route.dossiers.manager.lead.create":"Create a new lead by pressing the button to the right.","route.dossiers.manager.icon":"Lead Icon","route.dossiers.manager.icon.description":"Specify an icon using the iconify ID. To browse icons, click the button to the right.","route.dossiers.manager.label.en":"English Title","route.dossiers.manager.label.fr":"Titre français","route.dossiers.manager.format":"Lead Format","route.dossiers.manager.tabs.leads":"Leads","route.dossiers.manager.tabs.pivots":"Pivots","route.dossiers.manager.pivot.create":"You currently have no pivots configured. Press the add button to the right to create a new one.","route.dossiers.manager.pivot.icon":"Pivot Icon","route.dossiers.manager.pivot.label.en":"English Title","route.dossiers.manager.pivot.label.fr":"Titre français","route.dossiers.manager.pivot.format":"Pivot format","route.dossiers.manager.pivot.value":"Pivot value","route.dossiers.manager.pivot.mappings":"Pivot Mappings","route.dossiers.manager.pivot.mapping.key":"Key","route.dossiers.manager.pivot.mapping.field":"Hit Field","route.dossiers.manager.pivot.mapping.custom":"Custom Value","route.dossiers.manager.validation.error":"Dossier is Invalid.","route.dossiers.manager.validation.error.missing":"{{field}} is invalid.","route.dossiers.manager.validation.error.leads":"A lead is misconfigured.","route.dossiers.manager.validation.error.pivots":"A pivot is misconfigured.","route.dossiers.manager.validation.error.pivots.duplicate":"A pivot has a duplicate key.","route.dossiers.manager.validation.error.items":"You have not configured any leads or pivots.","route.views":"Views","route.views.create.success":"View Created.","route.views.update.success":"View Updated.","route.views.show":"Show View","route.views.edit":"Edit View","route.views.create":"New View","route.views.manager":"View Manager","route.views.manager.all":"All","route.views.manager.favourites":"Show favourites only","route.views.manager.global":"Global","route.views.manager.personal":"Personal","route.views.manager.open":"Open View","route.views.manager.readonly":"Built-in","route.views.manager.search":"Search Views","route.views.manager.default":"Default View","route.views.name":"View Name","route.views.save":"Save Query as View","route.views.saved":"Pinned Views","route.views.search.prompt":"Search by name, query, or owner.","search.open":"Open Search","search.result.showing":"Showing {{offset}} to {{length}} of {{total}} results","search.result.showing.single":"No results","templates.edit.analytic":"Edit analytic template","templates.edit.detection":"Edit detection template","tooltip.breadcrumbs.max":"Expand Breadcrumbs","tooltip.breadcrumbs.min":"Collapse Breadcrumbs","app.list.empty":"No Results",save:get,"search.total":"There are a total of {{count}} hits matching this query.",unknown:met,using:Tet,"user.error.failed":"The API failed to provide required user information.","user.error.modal.body":"While connecting to the server, an unknown error occurred. Please try again later.","user.error.modal.details":"Details:","user.error.modal.header":"An Error Has Occurred","user.error.modal.reload":"Reload Window","user.login.failed":"Invalid login information. Please check your username and password.",usermenu:bet,"usermenu.logout":"Logout","usermenu.settings":"Settings","view.assigned_to_me":"Assigned to Me","view.notfound":"This view is not availiable to you, or does not exist.","view.settings.advance_on_triage":"Advance to next hit on triage","view.settings.advance_on_triage.description":"If this is enabled, triaging a hit on this view will automatically move to the next hit in line, making rapid triage of hits easier.","tui.query.save.alert":"Load a saved view or save the current query as a view","tui.query.load":"Load a saved view","tui.query.invalid":"Invalid view","tui.query.store.delete":"Delete saved view","tui.query.store.load":"Load saved view into input field","tui.query.views.load":"Load active views into input field","tui.query.views.clear":"Clear active views","tui.query.save.append":"Append active views",global:_et,unset:vet},yet={"route.help.client.description":"Cette documentation explique comment interagir avec l'API howler à l'aide du client howler dans les environnements de développement Java et Python. Nous décrirons le processus de base de création d'un nouveau résultat dans chaque environnement ainsi que la recherche dans howler des résultats correspondant à votre requête.","route.help.hit.description":"Cette documentation détaille plusieurs parties de l'acquisition, de l'affichage et de l'interaction avec les résultats.","route.help.search.description":"Explications et aide pour la recherche de résultats dans Howler, y compris la syntaxe et les exemples.","route.help.views.description":"Les vues sont une fonctionnalité de Howler qui permet aux utilisateurs de créer des requêtes personnalisées par défaut à travers lesquelles ils peuvent organiser et trier les résultats. Dans ce document, nous décrirons comment créer, mettre à jour, interagir avec et supprimer des vues.","route.help.templates.description":"Une explication de l'utilisation des modèles Howler pour afficher des données personnalisées sur les résultats d'une analyse donnée.","route.help.auth.description":"L'API de Howler prend en charge un certain nombre d'approches d'authentification lors de l'accès à l'API. Ce document présente les différentes approches et explique comment utiliser chacune d'entre elles.","route.help.actions.description":"Les actions sont une fonctionnalité de Howler qui permet aux utilisateurs d'effectuer des tâches particulières sur un grand nombre d'occurrences, en automatisant l'exécution d'une tâche sur chaque occurrence. Ce document explique comment utiliser les actions dans Howler.","route.help.api.description":"Une vue d'ensemble de l'API de Howler et de ses composants.","route.help.notebook.description":"Howler offre la possibilité d'ajouter des blocs-notes aux analyses pour faciliter le triage des hits et des alertes. Ce document explique comment utiliser les blocs-notes dans Howler.","route.help.overviews.description":"Howler offre la possibilité de personnaliser la présentation des données associées à une alerte en utilisant des vues d'ensemble. Cet article explique les bases de la création et de l'utilisation des vues d'ensemble.","route.help.retention.description":"Afin de se conformer au règlement, Howler est configuré pour purger les alertes périmées après une période de temps spécifique. Cet article explique comment fonctionne cette systeme."},wet="Recherche de base",Cet="Exemples:",Qet="Champs",xet="Recherche approximative",Let="Regroupement",Eet="Opérateurs booléens",ket="Aperçu",Aet="Recherches de proximité",Iet="Portées",Det="Expressions régulières",Met="Caractères réservés",Oet="Syntaxe de requêtes Lucene et liste des champs d'index",Net="Aide à la Recherche",Ret="Sommaire",Pet="Retour au début",Het="Caractères génériques",Fet={basic:wet,"basic.ex1":'"quick brown fox"',"basic.ex2":"quick OR brown OR fox","basic.text":`La requête de recherche est analysée en une série de termes et d'opérateurs. Un terme peut être un seul mot comme quick, brown ou une phrase, entouré de guillemets doubles "quick brown" qui recherche tous les mots de la phrase, dans le même ordre.`,exemples:Cet,fields:Qet,"fields.att.default":"défaut","fields.att.list":"liste","fields.att.stored":"stocké","fields.ex1":"status:active","fields.ex1.title":"où le champ d'état contient active","fields.ex2":"title:(quick OR brown)","fields.ex2.title":"où le champ de titre contient quick ou brown","fields.ex3":'author:"John Smith"',"fields.ex3.title":'où le champ auteur contient la phrase exacte "john smith"',"fields.ex4":"book.\\*:(quick OR brown)","fields.ex4.title":"où l'un des champs book.title, book.content ou book.date contient quick ou brown (notez comment nous devons échapper le * avec une barre oblique inverse):","fields.ex5":"_exists_:title","fields.ex5.title":"où le champ de titre a une valeur non nulle:","fields.idx_hit":"Index des hits","fields.idx_user":"Index des utilisateurs","fields.idx_template":"Index des templates","fields.idx_analytic":"Index des analytiques","fields.idx_action":"Index des actions","fields.idx_view":"Index des vues","fields.important":"Important","fields.important.text":"Lorsque vous utilisez le moteur de recherche dans l'interface utilisateur, votre requête de recherche est effectuée sur tous ces index en même temps, sauf si vous spécifiez explicitement l'index que vous souhaitez cibler.","fields.textvskeywords":"Texte vs mots-clés","fields.textvskeywords.description":"Le champ de texte et le champ de mot-clé dans Howler présentent des différences qui leur confèrent leurs propres cas d'utilisation. Ces différences sont présentées comme suit :","fields.textvskeywords.keywordfamily":"La famille de mots-clés est optimisée pour les champs qui représentent des données individuelles et comprend les types de champs suivants :","fields.textvskeywords.wildcard":"wildcard","fields.textvskeywords.wildcard.description":"Le type générique est optimisé pour les champs contenant des valeurs importantes ou présentant une cardinalité élevée. C'est le cas de la plupart des champs de télémétrie.","fields.textvskeywords.keyword":"keyword","fields.textvskeywords.keyword.description":"Utilisé pour le contenu structuré avec des valeurs définies, telles que les champs spécifiques à Howler. Ces champs ne prennent pas en charge les recherches avec caractères génériques.","fields.textvskeywords.constantkeyword":"constant_keyword","fields.textvskeywords.constantkeyword.description":"Pour les champs de mots-clés qui contiennent toujours la même valeur. Ce type devrait rarement être nécessaire.","fields.textvskeywords.keyword.more.info":"Pour plus d'informations sur le champ Keyword, veuillez consulter la documentation officielle d'Elasticsearch :","fields.textvskeywords.textfamily":"La famille Text est optimisée pour la recherche de contenu non structuré lisible par l'homme et comprend les types de champs suivants :","fields.textvskeywords.text":"text","fields.textvskeywords.text.description":"Type de champ traditionnel pour le contenu en texte intégral, tel que le corps d'un e-mail ou d'un document.","fields.textvskeywords.matchonlytext":"match_only_text","fields.textvskeywords.matchonlytext.description":"Une variante du texte optimisée pour l'espace qui désactive le scoring et est moins performante pour les requêtes nécessitant des positions. Elle est particulièrement adaptée à l'indexation des messages de journal.","fields.textvskeywords.text.more.info":"Pour plus d'informations concernant le champ Texte, veuillez consulter la documentation officielle d'Elasticsearch :","fields.textvskeywords.text.keyword.compare":"Pour obtenir la liste complète des différents cas d'utilisation des champs Mot-clé et Texte, veuillez consulter :","fields.legend":"Légende","fields.legend.default":"Interrogé lorsqu'aucun champ n'est spécifié","fields.legend.ip_field":"Peut être interrogé en utilisant la notation CIDR","fields.legend.list":"Peut avoir plusieurs valeurs dans le même document","fields.legend.stored":"Renvoyé par défault dans les résultats de recherche","fields.legend.text":"Les particularités de certains types de champs ainsi que leurs différents attributs sont expliqués ici:","fields.legend.text_field":"Seul les premiers 4k sont indexé, les recherches par caractères génériques ne fonctionneront pas comme prévu et ce champ ne peut pas être trié","fields.table.attrib":"Attributs","fields.table.description":"Description","fields.table.name":"Nom du champ","fields.table.type":"Type","fields.text":"En utilisant la recherche de base, seul le champ par défaut est recherché pour les termes de recherche, mais il est possible de spécifier d'autres champs dans la syntaxe de la requête:","fields.text2":"La banque de données Howler est divisée en plusieurs index. Chaque index dispose des champs suivants disponibles pour les recherches. Les champs par défaut sont copiés dans le champ de recherche par défaut qui est utilisé dans le cas où vous n'utilisez que la recherche de base. Les champs stocké seront renvoyé par l'index lors de l'émission d'une requête.",fuzziness:xet,"fuzziness.ex":"quikc~ brwn~ foks~","fuzziness.ex2":"quikc~1","fuzziness.text":"Nous pouvons rechercher des termes similaires, mais pas exactement comme nos termes de recherche, en utilisant l'opérateur «d'approximation»:","fuzziness.text2":"Cela utilise la distance Damerau-Levenshtein pour trouver tous les termes avec un maximum de deux changements, où un changement est l'insertion, la suppression ou la substitution d'un seul caractère, ou la transposition de deux caractères adjacents.","fuzziness.text3":"La distance d'édition par défaut est de 2, mais une distance d'édition de 1 devrait être suffisante pour attraper 80% de toutes les fautes d'orthographe humaines. Elle peut être spécifié comme:",grouping:Let,"grouping.ex":"(quick OR brown) AND fox","grouping.ex2":'status:(active OR pending) title:(+full -"text search")',"grouping.text":"Plusieurs termes ou clauses peuvent être regroupés avec des parenthèses, pour former des sous-requêtes:","grouping.text2":"Les groupes peuvent également être utilisés pour cibler un champ particulier:",operator:Eet,"operator.ex1":"quick brown +fox -news","operator.ex2":"((quick AND fox) OR (brown AND fox) OR fox) AND NOT news","operator.list1":"fox doit être présent","operator.list2":"news doit être absent","operator.list3":"quick and brown sont facultatifs - leur présence augmente la pertinence","operator.text":"Par défaut, tous les termes sont facultatifs, en autant qu'un terme correspond. Une recherche de foo bar baz trouvera tout document contenant un ou plusieurs des éléments foo, bar ou baz. Nous avons déjà discuté de l'operateur par défault ci-dessus qui vous permet de forcer tous les termes à être requis, mais il existe également des opérateurs booléens qui peuvent être utilisés dans la requête de recherche elle-même pour fournir plus de contrôle.","operator.text2":"The preferred operators are + (this term must be present) and - (this term must not be present). All other terms are optional. For example, this query:","operator.text3":"stipule que:","operator.text4":"Les opérateurs booléens familiers AND, OR et NOT (également écrits &&, || et!) Sont également pris en charge, mais sachez qu'ils ne respectent pas les règles de précédence habituelles, donc les parenthèses doivent être utilisées chaque fois que plusieurs opérateurs sont utilisés ensemble. Par exemple, la requête précédente pourrait être réécrite comme:","operator.text5":"Cette requête reproduit désormais correctement la logique de la requête d'origine, mais le score de pertinence ne ressemble guère à l'original.",overview:ket,"overview.text":"Le «mini-langage» de la requête de recherche est utilisé par l'API de recherche. Les opérateurs vous permettent de personnaliser la recherche - les options disponibles sont expliquées ci-dessous:",proximity:Aet,"proximity.ex":'"quick fox"~5',"proximity.text":`Alors qu'une requête de phrase (par exemple "john smith") attend tous les termes exactement dans le même ordre, une requête de proximité permet aux mots spécifiés d'être plus éloignés ou dans un ordre différent. De la même manière que les requêtes approximatives peuvent spécifier une distance d'édition maximale pour les caractères d'un mot, une recherche de proximité nous permet de spécifier une distance d'édition maximale des mots dans une phrase:`,"proximity.text2":"Plus le texte d'un champ est proche de l'ordre d'origine spécifié dans la requête de recherche, plus ce document est considéré comme pertinent. Par rapport à l'exemple de requête ci-dessus, l'expression «quick fox» serait considérée comme plus pertinente que «quick brown fox».",ranges:Iet,"ranges.datemath":"Syntaxe de DateMath","ranges.datemath.ex1":`y => Années
|
|
92
|
+
`,"modal.rule.disabled.analytic":"You must provide a rule name.","modal.rule.disabled.description":"You must provide a useful markdown description for your rule.","modal.rule.success":"Rule Created!","modal.rationale.title":"Add Rationale","modal.rationale.description":"Provide a rationale that succinctly explains to other analysts why you are confident in this assessment.","modal.rationale.label":"Rationale",none:oet,"no.data":"No Data",on:aet,open:cet,owner:uet,"operations.add_label":"Add Label","operations.add_to_bundle":"Add to Bundle","operations.remove_label":"Remove Label","operations.remove_from_bundle":"Remove from Bundle","operations.prioritization":"Change Prioritization","operations.change_field":"Change Field","operations.transition":"Execute Transition","operations.promote":"Promote Hit","operations.demote":"Demote Hit","outline.assemblyline.beacons":"Beacons","outline.assemblyline.file_path":"File Path","outline.assemblyline.last_modified":"Last Modified","outline.assemblyline.tags":"Tags","overview.search":"Search Hit Data","page.404.description":"The page you are looking for cannot be found...","page.404.title":"404: Not found","page.error.title":"Application Stopped Working","page.error.description":"The application stopped working suddenly. If the problem persists please reach out on teams.","page.error.support":"Please click here for teams support","page.dashboard.title":"Dashboard","page.documentation.categories":"API Categories","page.documentation.categories.category":"Category","page.documentation.categories.description":"Description","page.documentation.endpoints":"API Endpoints","page.documentation.endpoint":"Endpoint","page.documentation.endpoint.explanation":"Endpoint Name - The user-friendly name of the endpoint<br>Endpoint Path - the path to make requests to in order to access this endpoint<br>Endpoint Stability - Whether this endpoint is safe to use and unlikely to change significantly.<br>Protection - Whether it is necessary to authenticate when accessing this endpoint<br>Methods - What HTTP methods can be used to access this endpoint","page.documentation.required_type":"Required User Types","page.documentation.required_type.explanation":"Which user types have access to this endpoint. If any of the types are green, you have access to it.","page.documentation.required_priv":"Required API Key Privileges","page.documentation.required_priv.explanation":"What privileges an API Key you generate must have to interact with this endpoint.","page.documentation.description":"Endpoint Description","page.documentation.description.explanation":"The documentation outlining what this endpoint is used for and how you should interact with it.","page.documentation.labels.name":"Label Category","page.documentation.labels.description":"Category Description","page.documentation.labels.example":"Example","page.help":"Help","page.help.title":"Help Dashboard","page.login.button":"Sign in","page.login.password":"Password","page.login.username":"Username","page.logout":"Logging out current user ... ","page.settings":"Your account settings","page.settings.profile.table.email":"Email","page.settings.profile.table.groups":"Groups","page.settings.profile.table.groups.description":"This drawer will show you any groups howler sees you as a part of. This can be useful for verifying you have the permissions and roles you expect given your authentication method.","page.settings.profile.table.name":"Name","page.settings.profile.table.roles":"Roles","page.settings.profile.table.username":"Username","page.settings.profile.title":"Profile","page.settings.security.table.apikeys":"API Keys","page.settings.security.table.apiquota":"API Quota","page.settings.security.table.apiquota.description":"This API quota manages the number of concurrent requests a user can make to howler. For high volume users, this may rate limit them and an administrator will need to change it to a higher number.","page.settings.security.table.password":"Password","page.settings.security.title":"User Security","page.settings.sitemap":"Settings","page.settings.local.title":"UI Preferences","page.settings.local.compact.json":"Show Compact JSON View","page.settings.local.compact.json.description":"Enable or disable a more compact JSON view, better suited to viewing lots of data at once.","page.settings.local.flatten.json":"Flatten JSON in JSON View","page.settings.local.flatten.json.description":"Instead of showing the object structure of the JSON, show it as flattened keys.","page.settings.local.details.drawer":"Always use drawer in Hit Search","page.settings.local.details.drawer.description":"Instead of switching between a divided view and the drawer on different screen sizes, this setting forces Howler to always use the drawer.","page.settings.local.hits.display_type":"Default display type for results","page.settings.local.hits.display_type.description":"This setting allows you to decide whether to use the list or grid view by default when searching.","page.settings.local.hits.display_type.list":"List","page.settings.local.hits.display_type.grid":"Grid","page.settings.local.hits.layout":"Change Layout","page.settings.local.hits.layout.description":"This setting allows you to decide how much padding and spacing, as well as font size and element size, we use when rendering the UI. The denser the UI, the more data can be viewed.","page.settings.local.hits.layout.dense":"Dense","page.settings.local.hits.layout.normal":"Normal","page.settings.local.hits.layout.comfy":"Comfy","page.settings.local.search.width":"Maximum Results Width","page.settings.local.search.width.description":"The maximum size (in pixels) the results column in the search page.","page.settings.local.results.count":"Results Per Page","page.settings.local.results.count.description":"How many results should we show per page when showing search results?","page.settings.admin.title":"Administration","page.user.search":"Search Users","page.user.search.column.username":"Username","page.user.search.column.fullname":"Fullname","page.user.search.column.email":"Email","page.user.search.column.groups":"Groups","page.user.search.prompt":"Search by username, fullname, email or group",password:det,"password.confirm":"Confirm Password","password.match":"Password and Confirm Password must match","password.success":"Your new password has been set. You will be logged out in five seconds.",personalization:het,"personalization.autohideappbar":"Auto Hide Topbar","personalization.dark":"Dark Mode","personalization.minimizebreadcrumbs":"Minimize Breadcrumbs","personalization.quicksearch":"Show Quick Search","personalization.reset_text":"Reset to site defaults","personalization.showbreadcrumbs":"Show Breadcrumbs","personalization.sticky":"Sticky Topbar",query:fet,"quicksearch.aria":"search","quicksearch.placeholder":"Search ...","rationale.default":"Hit assessed as {{assessment}}",references:pet,"retention.imminent":"moments away","retention.safe":"This hit is {{ duration }} from automatic deletion.","retention.warn":"This hit is {{ duration }} from automatic deletion. Consider retaining the hit if you want to avoid data loss.","retention.error":"This hit is {{ duration }} from automatic deletion. You will soon lose access to this hit in Howler - consider retaining the hit if you want to avoid data loss.","route.admin.user.details":"User Details","route.admin.user.search":"User Search","route.advanced":"Advanced Search","route.advanced.error":"Search Error","route.advanced.fields":"Hit Fields to Show","route.advanced.fields.all":"Show All Fields","route.advanced.open":"Open in Search","route.advanced.rows":"Number of Rows to Return","route.advanced.create.rule":"Create Rule","route.advanced.create.rule.disabled":"You must run your search to ensure it is valid first.","route.advanced.execute.query":"Execute Query","route.advanced.query.lucene":"Lucene Query","route.advanced.query.lucene.description":"Apache Lucence is a search syntax used by elasticsearch, Howler and apache lucene. See our documentation for information on this.","route.advanced.query.eql":"EQL Query","route.advanced.query.eql.description":"Event Query Language (EQL) is a query language for event-based time series data, such as logs, metrics, and traces.","route.advanced.query.yaml":"Sigma Rule","route.advanced.query.yaml.description":"Sigma is a generic and open signature format that allows you to describe relevant log events in a straightforward manner. The rule format is very flexible, easy to write and applicable to any type of log file.","route.advanced.result.title":"Howler Advanced Search","route.advanced.result.description":"Execute a query to show results here.","route.advanced.rule.type":"Rule Type","route.advanced.pivot.field":"Group By Field","route.advanced.query.type":"Query Type","route.advanced.query.type.default":"Default","route.advanced.query.type.facet":"Facet","route.advanced.query.type.groupby":"Group By","route.analytics":"Analytics","route.analytics.deleted":"Deleted Rule!","route.analytics.detections":"Detections:","route.analytics.tags":"Tags:","route.analytics.rule":"Rule","route.analytics.rule.title":"Rule Query","route.analytics.contributors":"Contributors","route.analytics.filter.rule":"Filter on Rules","route.analytics.pinned":"Pinned Analytics","route.analytics.search.prompt":"Search by name or detections.","route.analytics.search.filter.rules.show":"Showing Rules Only","route.analytics.search.filter.rules.hide":"Hiding Rules Only","route.analytics.search.filter.rules.toggle":"Toggle Filtering Rule","route.analytics.tab.overview":"Summary","route.analytics.tab.comments":"Comments","route.analytics.tab.hit_comments":"Hit Comments","route.analytics.tab.notebooks":"Notebooks","route.analytics.tab.overviews":"Overviews","route.analytics.tab.rule":"Rule Query","route.analytics.tab.templates":"Templates","route.analytics.tab.triage":"Triage","route.analytics.view":"View Analytic","route.analytics.overview.description":"Description","route.analytics.overview.statistics":"Statistics","route.analytics.overview.limit":"Limited to the most recent 10 000 hits.","route.analytics.overview.empty.title":"No Statistics to Show","route.analytics.overview.empty.description":"There are no existing hits for this analytic. Statistics cannot be shown.","route.analytics.ingestion.title":"Number of Hits Created","route.analytics.escalation.title":"Escalation of Created Hits","route.analytics.assessment.title":"Assessment Result of Created Hits","route.analytics.status.title":"Cumulative Status of Hits Created in the Last Three Months","route.analytics.detection.title":"Hits Ingested in the Last Three Months by Detection","route.analytics.updated":"Analytic Updated!","route.analytics.set.owner":"Change Ownership","route.analytics.triage.title":"Triage Settings","route.analytics.triage.rationale":"Skip Rationale","route.analytics.triage.rationale.description":"When triaging alerts from this analytic, the rationale is not prompted, and is instead auto-generated.","route.analytics.triage.assessments":"Permitted Assessment Outcomes","route.analytics.triage.assessments.description":"When triaging alerts from this analytic, what assessments are valid?","route.actions":"Actions","route.actions.operation.add":"Add New Operation","route.actions.alert.error":"There are {{count}} hits in your query for which this operation may fail.","route.actions.alert.success":"This operation should run without issue.","route.actions.alert.warning":"There are {{count}} hits in your query for which this operation may have no effect.","route.actions.automate":"Automate","route.actions.change":"Run Action","route.actions.edit":"Edit","route.actions.execute":"Execute","route.actions.create":"New Action","route.actions.manager":"Action Manager","route.actions.name":"Action Name","route.actions.open":"Open Query","route.actions.report":"Action Report","route.actions.restart":"Restart","route.actions.view":"View","route.actions.save":"Save Action","route.actions.search":"Search Actions","route.actions.search.prompt":"Search by name or query.","route.actions.search.open":"Open List","route.actions.search.warning":"Before adding operations, you must run and validate a query.","route.actions.trigger.description":"This action has been automated. It will run automatically when the trigger(s) <bold>{{triggers}}</bold> are met.","route.actions.query.empty":"Query cannot be empty.","route.actions.trigger":"Filter by Trigger","route.actions.trigger.create":"Run on Create","route.actions.trigger.promote":"Run on Promotion","route.actions.trigger.demote":"Run on Demotion","route.actions.trigger.update":"Run on Update","route.actions.trigger.resolve":"Run on Resolve","route.actions.trigger.add_label":"Run on Add Label","route.actions.trigger.remove_label":"Run on Remove Label","route.actions.trigger.disabled.explanation":"One of your selected operations does not support this trigger.","route.actions.trigger.disabled.permissions":"You do not have the correct roles to execute this trigger.","route.integrations":"Integrations","route.help":"Help","route.help.main":"Dashboard","route.help.actions":"Action Documentation","route.help.api":"API Documentation","route.help.auth":"Authentication","route.help.client":"Howler Client","route.help.hit":"Hit Documentation","route.help.search":"Search Documentation","route.help.templates":"Templates","route.help.overviews":"Overviews","route.help.notebook":"Notebook Documentation","route.help.views":"Views","route.help.retention":"Retention","route.hits.bundle":"View Bundle","route.hits.view":"View Hit","route.hits":"Alerts","route.home.add.analytic.description":"Select the analytic for which data should be shown, and the visualization to present.","route.home.add.analytic.title":"Add analytic statistics","route.home.add.analytic":"Analytic","route.home.add.description":"Add an additional panel to your dashboard by selecting the type you wish to add, and completing the configuration","route.home.add.limit.description":"Maximum number of hits to render","route.home.add.limit":"Result limit","route.home.add.type.analytic.description":"Present statistics on a given analytic = the resulting assessments, number of hits created, or escalation of created hits","route.home.add.type.analytic":"Analytic Panel","route.home.add.type.view.description":"Present a saved view, limited to a certain number of hits.","route.home.add.type.view":"View Panel","route.home.add.type":"Panel Type","route.home.add.view":"View to present","route.home.add.visualization.assessment.description":"For hits that have been triaged, what was the resulting assessment?","route.home.add.visualization.assessment":"Assessment Result of Created Hits","route.home.add.visualization.created.description":"Time series of the number of hits created by the analytic over the last 90 days.","route.home.add.visualization.created":"Number of Created Hits","route.home.add.visualization.detection.description":"For hits ingested in the last three months, what is their detection?","route.home.add.visualization.detection":"Hits Created by Detection","route.home.add.visualization.escalation.description":"For hits that have been triaged, what was the resulting escalation?","route.home.add.visualization.escalation":"Escalation of Created Hits","route.home.add.visualization.status.description":"For hits ingested in the last three months, what is their status?","route.home.add.visualization.status":"Cumulative Status of Hits Created","route.home.add.visualization.unavailable":"No visualization options available.","route.home.add.visualization":"Visualization","route.home.add":"Add New Panel","route.home.alert.updated.description":"There have been updates to alerts you are involved in. Since you last viewed, {{count}} alert(s) have updates.","route.home.alert.updated.title":"Alert Updates","route.home.description":"Welcome to Howler. You can add items to your dashboard using the buttons above.","route.home.title":"Howler","route.home":"User Dashboard","route.login.button.oauth":"Sign in with","route.search":"Search","route.clear":"Clear query","route.history":"History mode: See all previous queries","route.templates":"Templates","route.templates.analytic":"Choose Analytic","route.templates.detection":"Choose Detection","route.templates.builtin":"Built-in","route.templates.builtin.show":"Built in Templates","route.templates.builtin.hide":"Hide Built in Templates","route.templates.default":"Default","route.templates.global":"Global","route.templates.personal":"Personal","route.templates.search.prompt":"Search by analytic, detection, or template keys.","route.templates.select":"Select an analytic and detection to view and edit the template.","route.templates.readonly.warning":"This is a built-in template, and cannot be edited. To make changes to it, contact","route.templates.prompt":"Activate autocomplete using [ctrl + space].","route.templates.view":"View Template","route.templates.create":"New Template","route.templates.manager.global":"Global","route.templates.manager.personal":"Personal","route.templates.manager.open":"Open View","route.templates.manager.readonly":"Built-in","route.templates.manager.search":"Search Templates","route.templates.rule.explanation":"This is a Howler Analytic. There is only one detection, which has been pre-selected.","route.overviews":"Overviews","route.overviews.analytic":"Choose Analytic","route.overviews.detection":"Choose Detection","route.overviews.default":"Default","route.overviews.search.prompt":"Search by title, content, analytic or detection.","route.overviews.select":"Select an analytic and detection to view and edit the overview.","route.overviews.prompt":"Activate autocomplete using [ctrl + space].","route.overviews.view":"View Overview","route.overviews.create":"New Overview","route.overviews.manager.search":"Search Overviews","route.overviews.manager.delete":"Delete Overview","route.overviews.manager.delete.success":"Overview Removed.","route.overviews.theme.light":"Preview in Light Mode","route.overviews.theme.dark":"Preview in Dark Mode","route.dossiers":"Dossiers","route.dossiers.default":"Default","route.dossiers.search.prompt":"Search by title, query, or owner.","route.dossiers.prompt":"Activate autocomplete using [ctrl + space].","route.dossiers.view":"View Dossier","route.dossiers.create":"New Dossier","route.dossiers.edit":"Edit Dossier","route.dossiers.manager.search":"Search Dossiers","route.dossiers.manager.delete":"Delete Dossier","route.dossiers.manager.delete.success":"Dossier Removed.","route.dossiers.manager.field.title":"Title","route.dossiers.manager.field.type":"Type","route.dossiers.manager.field.query":"Query","route.dossiers.manager.global":"Global","route.dossiers.manager.personal":"Personal","route.dossiers.manager.lead.create":"Create a new lead by pressing the button to the right.","route.dossiers.manager.icon":"Lead Icon","route.dossiers.manager.icon.description":"Specify an icon using the iconify ID. To browse icons, click the button to the right.","route.dossiers.manager.label.en":"English Title","route.dossiers.manager.label.fr":"Titre français","route.dossiers.manager.format":"Lead Format","route.dossiers.manager.tabs.leads":"Leads","route.dossiers.manager.tabs.pivots":"Pivots","route.dossiers.manager.pivot.create":"You currently have no pivots configured. Press the add button to the right to create a new one.","route.dossiers.manager.pivot.icon":"Pivot Icon","route.dossiers.manager.pivot.label.en":"English Title","route.dossiers.manager.pivot.label.fr":"Titre français","route.dossiers.manager.pivot.format":"Pivot format","route.dossiers.manager.pivot.value":"Pivot value","route.dossiers.manager.pivot.mappings":"Pivot Mappings","route.dossiers.manager.pivot.mapping.key":"Key","route.dossiers.manager.pivot.mapping.field":"Hit Field","route.dossiers.manager.pivot.mapping.custom":"Custom Value","route.dossiers.manager.validation.error":"Dossier is Invalid.","route.dossiers.manager.validation.search":"You must search to validate your query before submitting.","route.dossiers.manager.validation.error.missing":"{{field}} is invalid.","route.dossiers.manager.validation.error.leads":"A lead is misconfigured.","route.dossiers.manager.validation.error.pivots":"A pivot is misconfigured.","route.dossiers.manager.validation.error.pivots.duplicate":"A pivot has a duplicate key.","route.dossiers.manager.validation.error.items":"You have not configured any leads or pivots.","route.views":"Views","route.views.create.success":"View Created.","route.views.update.success":"View Updated.","route.views.show":"Show View","route.views.edit":"Edit View","route.views.create":"New View","route.views.manager":"View Manager","route.views.manager.all":"All","route.views.manager.favourites":"Show favourites only","route.views.manager.global":"Global","route.views.manager.personal":"Personal","route.views.manager.open":"Open View","route.views.manager.readonly":"Built-in","route.views.manager.search":"Search Views","route.views.manager.default":"Default View","route.views.name":"View Name","route.views.save":"Save Query as View","route.views.saved":"Pinned Views","route.views.search.prompt":"Search by name, query, or owner.","search.open":"Open Search","search.result.showing":"Showing {{offset}} to {{length}} of {{total}} results","search.result.showing.single":"No results","templates.edit.analytic":"Edit analytic template","templates.edit.detection":"Edit detection template","tooltip.breadcrumbs.max":"Expand Breadcrumbs","tooltip.breadcrumbs.min":"Collapse Breadcrumbs","app.list.empty":"No Results",save:get,"search.total":"There are a total of {{count}} hits matching this query.",unknown:met,using:Tet,"user.error.failed":"The API failed to provide required user information.","user.error.modal.body":"While connecting to the server, an unknown error occurred. Please try again later.","user.error.modal.details":"Details:","user.error.modal.header":"An Error Has Occurred","user.error.modal.reload":"Reload Window","user.login.failed":"Invalid login information. Please check your username and password.",usermenu:bet,"usermenu.logout":"Logout","usermenu.settings":"Settings","view.assigned_to_me":"Assigned to Me","view.notfound":"This view is not availiable to you, or does not exist.","view.settings.advance_on_triage":"Advance to next hit on triage","view.settings.advance_on_triage.description":"If this is enabled, triaging a hit on this view will automatically move to the next hit in line, making rapid triage of hits easier.","tui.query.save.alert":"Load a saved view or save the current query as a view","tui.query.load":"Load a saved view","tui.query.invalid":"Invalid view","tui.query.store.delete":"Delete saved view","tui.query.store.load":"Load saved view into input field","tui.query.views.load":"Load active views into input field","tui.query.views.clear":"Clear active views","tui.query.save.append":"Append active views",global:_et,unset:vet},yet={"route.help.client.description":"Cette documentation explique comment interagir avec l'API howler à l'aide du client howler dans les environnements de développement Java et Python. Nous décrirons le processus de base de création d'un nouveau résultat dans chaque environnement ainsi que la recherche dans howler des résultats correspondant à votre requête.","route.help.hit.description":"Cette documentation détaille plusieurs parties de l'acquisition, de l'affichage et de l'interaction avec les résultats.","route.help.search.description":"Explications et aide pour la recherche de résultats dans Howler, y compris la syntaxe et les exemples.","route.help.views.description":"Les vues sont une fonctionnalité de Howler qui permet aux utilisateurs de créer des requêtes personnalisées par défaut à travers lesquelles ils peuvent organiser et trier les résultats. Dans ce document, nous décrirons comment créer, mettre à jour, interagir avec et supprimer des vues.","route.help.templates.description":"Une explication de l'utilisation des modèles Howler pour afficher des données personnalisées sur les résultats d'une analyse donnée.","route.help.auth.description":"L'API de Howler prend en charge un certain nombre d'approches d'authentification lors de l'accès à l'API. Ce document présente les différentes approches et explique comment utiliser chacune d'entre elles.","route.help.actions.description":"Les actions sont une fonctionnalité de Howler qui permet aux utilisateurs d'effectuer des tâches particulières sur un grand nombre d'occurrences, en automatisant l'exécution d'une tâche sur chaque occurrence. Ce document explique comment utiliser les actions dans Howler.","route.help.api.description":"Une vue d'ensemble de l'API de Howler et de ses composants.","route.help.notebook.description":"Howler offre la possibilité d'ajouter des blocs-notes aux analyses pour faciliter le triage des hits et des alertes. Ce document explique comment utiliser les blocs-notes dans Howler.","route.help.overviews.description":"Howler offre la possibilité de personnaliser la présentation des données associées à une alerte en utilisant des vues d'ensemble. Cet article explique les bases de la création et de l'utilisation des vues d'ensemble.","route.help.retention.description":"Afin de se conformer au règlement, Howler est configuré pour purger les alertes périmées après une période de temps spécifique. Cet article explique comment fonctionne cette systeme."},wet="Recherche de base",Cet="Exemples:",Qet="Champs",xet="Recherche approximative",Let="Regroupement",Eet="Opérateurs booléens",ket="Aperçu",Aet="Recherches de proximité",Iet="Portées",Det="Expressions régulières",Met="Caractères réservés",Oet="Syntaxe de requêtes Lucene et liste des champs d'index",Net="Aide à la Recherche",Ret="Sommaire",Pet="Retour au début",Het="Caractères génériques",Fet={basic:wet,"basic.ex1":'"quick brown fox"',"basic.ex2":"quick OR brown OR fox","basic.text":`La requête de recherche est analysée en une série de termes et d'opérateurs. Un terme peut être un seul mot comme quick, brown ou une phrase, entouré de guillemets doubles "quick brown" qui recherche tous les mots de la phrase, dans le même ordre.`,exemples:Cet,fields:Qet,"fields.att.default":"défaut","fields.att.list":"liste","fields.att.stored":"stocké","fields.ex1":"status:active","fields.ex1.title":"où le champ d'état contient active","fields.ex2":"title:(quick OR brown)","fields.ex2.title":"où le champ de titre contient quick ou brown","fields.ex3":'author:"John Smith"',"fields.ex3.title":'où le champ auteur contient la phrase exacte "john smith"',"fields.ex4":"book.\\*:(quick OR brown)","fields.ex4.title":"où l'un des champs book.title, book.content ou book.date contient quick ou brown (notez comment nous devons échapper le * avec une barre oblique inverse):","fields.ex5":"_exists_:title","fields.ex5.title":"où le champ de titre a une valeur non nulle:","fields.idx_hit":"Index des hits","fields.idx_user":"Index des utilisateurs","fields.idx_template":"Index des templates","fields.idx_analytic":"Index des analytiques","fields.idx_action":"Index des actions","fields.idx_view":"Index des vues","fields.important":"Important","fields.important.text":"Lorsque vous utilisez le moteur de recherche dans l'interface utilisateur, votre requête de recherche est effectuée sur tous ces index en même temps, sauf si vous spécifiez explicitement l'index que vous souhaitez cibler.","fields.textvskeywords":"Texte vs mots-clés","fields.textvskeywords.description":"Le champ de texte et le champ de mot-clé dans Howler présentent des différences qui leur confèrent leurs propres cas d'utilisation. Ces différences sont présentées comme suit :","fields.textvskeywords.keywordfamily":"La famille de mots-clés est optimisée pour les champs qui représentent des données individuelles et comprend les types de champs suivants :","fields.textvskeywords.wildcard":"wildcard","fields.textvskeywords.wildcard.description":"Le type générique est optimisé pour les champs contenant des valeurs importantes ou présentant une cardinalité élevée. C'est le cas de la plupart des champs de télémétrie.","fields.textvskeywords.keyword":"keyword","fields.textvskeywords.keyword.description":"Utilisé pour le contenu structuré avec des valeurs définies, telles que les champs spécifiques à Howler. Ces champs ne prennent pas en charge les recherches avec caractères génériques.","fields.textvskeywords.constantkeyword":"constant_keyword","fields.textvskeywords.constantkeyword.description":"Pour les champs de mots-clés qui contiennent toujours la même valeur. Ce type devrait rarement être nécessaire.","fields.textvskeywords.keyword.more.info":"Pour plus d'informations sur le champ Keyword, veuillez consulter la documentation officielle d'Elasticsearch :","fields.textvskeywords.textfamily":"La famille Text est optimisée pour la recherche de contenu non structuré lisible par l'homme et comprend les types de champs suivants :","fields.textvskeywords.text":"text","fields.textvskeywords.text.description":"Type de champ traditionnel pour le contenu en texte intégral, tel que le corps d'un e-mail ou d'un document.","fields.textvskeywords.matchonlytext":"match_only_text","fields.textvskeywords.matchonlytext.description":"Une variante du texte optimisée pour l'espace qui désactive le scoring et est moins performante pour les requêtes nécessitant des positions. Elle est particulièrement adaptée à l'indexation des messages de journal.","fields.textvskeywords.text.more.info":"Pour plus d'informations concernant le champ Texte, veuillez consulter la documentation officielle d'Elasticsearch :","fields.textvskeywords.text.keyword.compare":"Pour obtenir la liste complète des différents cas d'utilisation des champs Mot-clé et Texte, veuillez consulter :","fields.legend":"Légende","fields.legend.default":"Interrogé lorsqu'aucun champ n'est spécifié","fields.legend.ip_field":"Peut être interrogé en utilisant la notation CIDR","fields.legend.list":"Peut avoir plusieurs valeurs dans le même document","fields.legend.stored":"Renvoyé par défault dans les résultats de recherche","fields.legend.text":"Les particularités de certains types de champs ainsi que leurs différents attributs sont expliqués ici:","fields.legend.text_field":"Seul les premiers 4k sont indexé, les recherches par caractères génériques ne fonctionneront pas comme prévu et ce champ ne peut pas être trié","fields.table.attrib":"Attributs","fields.table.description":"Description","fields.table.name":"Nom du champ","fields.table.type":"Type","fields.text":"En utilisant la recherche de base, seul le champ par défaut est recherché pour les termes de recherche, mais il est possible de spécifier d'autres champs dans la syntaxe de la requête:","fields.text2":"La banque de données Howler est divisée en plusieurs index. Chaque index dispose des champs suivants disponibles pour les recherches. Les champs par défaut sont copiés dans le champ de recherche par défaut qui est utilisé dans le cas où vous n'utilisez que la recherche de base. Les champs stocké seront renvoyé par l'index lors de l'émission d'une requête.",fuzziness:xet,"fuzziness.ex":"quikc~ brwn~ foks~","fuzziness.ex2":"quikc~1","fuzziness.text":"Nous pouvons rechercher des termes similaires, mais pas exactement comme nos termes de recherche, en utilisant l'opérateur «d'approximation»:","fuzziness.text2":"Cela utilise la distance Damerau-Levenshtein pour trouver tous les termes avec un maximum de deux changements, où un changement est l'insertion, la suppression ou la substitution d'un seul caractère, ou la transposition de deux caractères adjacents.","fuzziness.text3":"La distance d'édition par défaut est de 2, mais une distance d'édition de 1 devrait être suffisante pour attraper 80% de toutes les fautes d'orthographe humaines. Elle peut être spécifié comme:",grouping:Let,"grouping.ex":"(quick OR brown) AND fox","grouping.ex2":'status:(active OR pending) title:(+full -"text search")',"grouping.text":"Plusieurs termes ou clauses peuvent être regroupés avec des parenthèses, pour former des sous-requêtes:","grouping.text2":"Les groupes peuvent également être utilisés pour cibler un champ particulier:",operator:Eet,"operator.ex1":"quick brown +fox -news","operator.ex2":"((quick AND fox) OR (brown AND fox) OR fox) AND NOT news","operator.list1":"fox doit être présent","operator.list2":"news doit être absent","operator.list3":"quick and brown sont facultatifs - leur présence augmente la pertinence","operator.text":"Par défaut, tous les termes sont facultatifs, en autant qu'un terme correspond. Une recherche de foo bar baz trouvera tout document contenant un ou plusieurs des éléments foo, bar ou baz. Nous avons déjà discuté de l'operateur par défault ci-dessus qui vous permet de forcer tous les termes à être requis, mais il existe également des opérateurs booléens qui peuvent être utilisés dans la requête de recherche elle-même pour fournir plus de contrôle.","operator.text2":"The preferred operators are + (this term must be present) and - (this term must not be present). All other terms are optional. For example, this query:","operator.text3":"stipule que:","operator.text4":"Les opérateurs booléens familiers AND, OR et NOT (également écrits &&, || et!) Sont également pris en charge, mais sachez qu'ils ne respectent pas les règles de précédence habituelles, donc les parenthèses doivent être utilisées chaque fois que plusieurs opérateurs sont utilisés ensemble. Par exemple, la requête précédente pourrait être réécrite comme:","operator.text5":"Cette requête reproduit désormais correctement la logique de la requête d'origine, mais le score de pertinence ne ressemble guère à l'original.",overview:ket,"overview.text":"Le «mini-langage» de la requête de recherche est utilisé par l'API de recherche. Les opérateurs vous permettent de personnaliser la recherche - les options disponibles sont expliquées ci-dessous:",proximity:Aet,"proximity.ex":'"quick fox"~5',"proximity.text":`Alors qu'une requête de phrase (par exemple "john smith") attend tous les termes exactement dans le même ordre, une requête de proximité permet aux mots spécifiés d'être plus éloignés ou dans un ordre différent. De la même manière que les requêtes approximatives peuvent spécifier une distance d'édition maximale pour les caractères d'un mot, une recherche de proximité nous permet de spécifier une distance d'édition maximale des mots dans une phrase:`,"proximity.text2":"Plus le texte d'un champ est proche de l'ordre d'origine spécifié dans la requête de recherche, plus ce document est considéré comme pertinent. Par rapport à l'exemple de requête ci-dessus, l'expression «quick fox» serait considérée comme plus pertinente que «quick brown fox».",ranges:Iet,"ranges.datemath":"Syntaxe de DateMath","ranges.datemath.ex1":`y => Années
|
|
93
93
|
M => Mois
|
|
94
94
|
w => Semaines
|
|
95
95
|
d => Jours
|
|
@@ -146,7 +146,7 @@ a*b*c* # correspondra
|
|
|
146
146
|
.*bbb.* # correspondra
|
|
147
147
|
aaa*bbb* # correspondra`,"regex.zeroplus.text":`L'astérisque "*" peut être utilisé pour faire correspondre zéro ou plusieurs fois le modèle le plus court précédent. Pour la chaîne "aaabbb":`,reserved:Met,"reserved.ex":"\\(1\\+1\\)\\=2","reserved.ex2":'+ - = && || > < ! ( ) { } [ ] ^ " ~ * ? : \\ /',"reserved.note":"Noter","reserved.text":"Si vous avez besoin d'utiliser l'un des caractères qui fonctionnent comme des opérateurs dans votre requête elle-même (et non comme des opérateurs), vous devez alors les échapper avec une barre oblique inverse.","reserved.text2":"Par exemple, pour rechercher (1+1)=2, vous devez écrire votre requête sous la forme:","reserved.text3":"Les caractères réservés sont:","reserved.text4":"Ne pas échapper correctement à ces caractères spéciaux peut entraîner une erreur de syntaxe qui empêche l'exécution de votre requête.","reserved.text5":"< et > ne peuvent pas être échappés. Le seul moyen de les empêcher de tenter de créer une requête de plage est de les supprimer entièrement de la requête de recherche.",subtitle:Oet,title:Net,toc:Ret,top:Pet,wildcard:Het,"wildcard.ex":"qu?ck bro*","wildcard.note":"Noter","wildcard.note.text":`Autoriser un caractère générique au début d'un mot (par exemple "* ing") est particulièrement lourd, car tous les termes de l'index doivent être examinés, juste au cas où ils correspondent.`,"wildcard.text":"Les recherches génériques peuvent être exécutées sur des termes individuels, en utilisant ? pour remplacer un seul caractère, et * pour remplacer zéro ou plusieurs caractères:","wildcard.text2":'Sachez que les requêtes génériques peuvent utiliser une énorme quantité de mémoire et sont lentes - pensez simplement au nombre de termes qui doivent être interrogés pour correspondre à la requête de recherche "a * b * c *".'},Bet="Menu d'administration",Vet="Ajouter",jet="Tous",zet="Tous",Wet="Ascendant",Uet="Fermer",$et="Descendant",qet="Personnalisé",Zet="Obsolète",Get="OU",Ket="Direction",Yet="Modifier",Xet="liste",Jet="Chargement...",ett="Gérer",ttt="Rien",ntt="sur",itt="Ouvert",rtt="Propriétaire",stt="Nouveau mot de passe",ott="Personnalisation",att="Requête",ltt="références",ctt="Sauvegarder",utt="Inconnu",dtt="utilisant",htt="Menu d'utilisateur",ftt="Global",ptt="Non défini",gtt={adminmenu:Bet,"adminmenu.config":"Configuration","adminmenu.users":"Usagers","api.user.apikey.updated":"Nouvelle clé API ajoutée avec succès.","api.user.apikey.removed":"Clé API supprimée avec succès","api.user.email.updated":"L'email de l'utilisateur a été actualisé avec succès.","api.user.name.updated":"Le nom de l'utilisateur a été actualisé avec succès.","api.user.quota.updated":"Le quota de l'API a été actualisé avec succès.","api.user.role.updated":"Les rôles de l'utilisateur ont été actualisé avec succès.","apikey.extended":"Étendu","apikey.impersonate":"Imiter","apikey.read":"Lire","apikey.write":"Écrire",add:Vet,all:jet,any:zet,asc:Wet,close:Uet,desc:$et,"actions.running":`Action "{{action}}" s'exécute.`,"actions.succeeded":'Action "{{action}}" achevé avec succès.',"app.drawer.hit.assignment.autocomplete.label":"Choisissez le destinataire","app.drawer.hit.assignment.description":"Choisissez un utilisateur à qui assigner ce hit.","app.drawer.hit.assignment.success":"L'utilisateur a été assigné au hit avec succès.","app.drawer.hit.assignment.unassigned.email":"Marquer le hit comme non attribué","app.drawer.hit.assignment.unassigned.name":"Non attribué","app.drawer.view.description.create":"Créer une nouvelle vue.","app.drawer.view.description.edit":"Modifier une vue existante.","app.drawer.view.global":"Global","app.drawer.view.parent":"Inclure la requête parent","app.drawer.view.personal":"Personnelle","app.drawer.view.query":"Requête de vue","app.drawer.view.title":"Nom de la vue","app.drawer.user.apikey.description":"Mot de passe généré aléatoirement et utilisé dans des scripts pour obtenir un accès limité aux données pour toute combinaison de lecture, d'écriture et de modification de votre compte utilisateur (clés étendues).<br><br>Peut également être utilisé par d'autres personnes pour se faire passer pour votre compte lorsqu'elles n'ont que des droits de lecture/écriture.","app.drawer.user.apikey.field.name":"Nom de la clé","app.drawer.user.apikey.permissions":"Permissions de la clé","app.drawer.user.apikey.expiry.date":"Ajouter une date d'expiration","app.drawer.user.apikey.title":"Ajouter une clé API","app.drawer.user.apikey.limit.title":"Avertissement : Durée d'expiration courte","app.drawer.user.apikey.limit.description":"En raison de la configuration de ce déploiement Howler, la date d'expiration autorisée pour les clés API créées maintenant est très proche.","app.drawer.user.roles.title":"Ajouter un rôle","app.drawer.user.groups.title":"Vos groupes","app.language":"Langue","app.search.fullscreen":"Maximiser la recherche","app.search.shortcut":"Ouvrir la recherche","app.search.starttyping":"Recherche par affectation, analyse, détection ou statut","breadcrumb.404":"404","button.add":"Ajouter","button.aggregate":"Agréger","button.cancel":"Annuler","button.delete":"Supprimer","button.drag":"Glisser","button.copy":"Copier","button.create":"Créer","button.edit":"Modifier","button.pin":"Épingler","button.save":"Enregistrer","button.saved":"Enregistrée","button.submit":"Soumettre","button.search":"Rechercher","button.readonly":"Lecture seule","button.confirm":"Confirmer","clipboard.failure":"n'a pas pu être copié dans le presse-papiers.","clipboard.success":"a été copié dans le presse-papiers.","comments.add":"Ajouter un commentaire","comments.add.detection":"Ajouter un commentaire à cette détection","comments.add.analytic":"Ajouter un commentaire à cette analyse","comments.delete":"Supprimer","comments.edit":"Modifier","comments.edit.stop":"Arrêter Modification","comments.edited":"Modifié","comments.quote":"Citation Réponse","comments.analytic":"Commentaires d'analyse ({{count}})","comments.analytic.show":"Montrer les commentaires d'analyse","comments.analytic.hide":"Cacher les commentaires d'analyse",custom:qet,"documentation.open.actions":"Les actions sont une fonctionnalité de Howler qui permet aux utilisateurs d'effectuer des tâches particulières sur un grand nombre de hits, en automatisant l'exécution d'une tâche sur chaque hit. Cliquez pour plus de documentation.","documentation.open.search":"La recherche vous permet d'interroger Howler et d'afficher les résultats correspondants. Cliquez pour plus de documentation.","documentation.open.views":"Les vues sont une fonctionnalité de Howler qui permet aux utilisateurs de créer des requêtes personnalisées par défaut à travers lesquelles ils peuvent organiser et trier les hits. Cliquez pour plus de documentation.","documentation.open.templates":"Howler permet aux analystes et aux ingénieurs de détection de créer des modèles, qui permettent à diverses analyses et à leurs détections de présenter des champs et des données pertinents pour le triage des alertes générées par cette analyse/détection. Cliquez pour plus de documentation.","duplicates.omitted":"Certains doublons ont été omis.","rule.interval":"Intervalle d'exécution de la règle","rule.interval.edit":"Modifier intervalle","rule.interval.save":"Sauvegarder intervalle","rule.interval.five.minutes":"Toutes les cinq minutes","rule.interval.thirty.minutes":"Toutes les trente minutes","rule.interval.one.hour":"Toutes les heures","rule.interval.three.hours":"Toutes les trois heures","rule.interval.six.hours":"Toutes les six heures","rule.interval.one.day":"Tous les jours","date.range.1.day":"Dernier jour","date.range.3.day":"Les trois derniers jours","date.range.1.week":"La dernière semaine","date.range.1.month":"Le dernier mois","date.range.all":"Toutes les dates","date.range.custom":"Date personnalisée","date.select.start":"Sélectionner la date de début","date.select.end":"Sélectionner la date de fin","date.search.range":"Plage de dates de recherche",deprecated:Zet,divider:Get,direction:Ket,"deprecation.instructions":"Instructions de mise à niveau","drawer.collapse":"Fermer le Menu","drawer.expand":"Ouvrir le Menu","drawer.apikey.copied":"Nouvelle clé API copiée dans le presse-papiers!",edit:Yet,"features.warning.title":"Fonctionnalité en développement actif","features.warning.description":"Cette fonctionnalité fait l'objet d'un développement actif et n'est pas encore achevée. Il est possible que vous rencontriez des problèmes ou de l'instabilité.","hit.actions.conflict.assess":"Quelqu'un d'autre a déjà évalué ce hit.","hit.actions.conflict.manage":"Quelqu'un d'autre a déjà interagi avec ce hit. Veuillez réessayer.","hit.label":"Étiquettes","hit.label.category.mitigation":"Catégorie : Atténuation - Cette étiquette indique les efforts entrepris pour atténuer la compromission.","hit.label.category.insight":"Catégorie : Insight - Un analyste a acquis une connaissance utile dont il est certain qu'elle restera vraie pour les futures alertes si les circonstances environnantes restent les mêmes.","hit.label.category.victim":"Catégorie : Victime - Les messages produits à partir d'un flux de notification aux victimes peuvent avoir une étiquette qui identifie l'organisation victime qui doit être notifiée.","hit.label.category.campaign":"Catégorie : Campagne - Identifie les campagnes en cours menées par des familles de logiciels malveillants ou des initiatives d'hameçonnage spécifiques. Elles ne doivent être considérées comme des attributions correctes que si le résultat positif est promu au rang de preuve.","hit.label.category.threat":"Catégorie : Menace - Indique que le hit a été attribuée à un acteur ou à un groupe de menace connu.","hit.label.category.operation":"Catégorie : Opération - le hit est liée à une opération en cours et doit être examinée avec des considérations particulières et une compréhension plus large des circonstances actuelles.","hit.label.category.generic":"Catégorie : Générique - Un fourre-tout pour toutes les étiquettes ajoutées qui ne correspondent pas à une autre catégorie.","hit.label.category.assignments":"Catégorie : Affectation - Indique quel analyste ou quelle équipe d'analystes est chargé(e) de trier cette réponse positive.","hit.label.category.tuning":"Catégorie : Tuning - Identifie les hits qui sont déjà compris et qui devraient être triés automatiquement.","hit.label.edit":"Gestion des étiquettes","hit.label.edit.desc":"Ajouter ou retirer des étiquettes","hit.label.edit.add.error.empty":"Étiquette vide non-permise","hit.label.edit.add.error.duplicate":"Étiquette en double non-permise","hit.label.edit.add.category":"Catégorie de l'étiquette","hit.label.edit.add.label":"Valeur de l'étiquette","hit.details.actions.assessment":"Évaluer","hit.details.actions.assessment.noassessment":"Aucun Évaluation","hit.details.actions.assign":"Assigner Hit","hit.details.actions.action":"Actions","hit.details.actions.action.release":"Libérer","hit.details.actions.action.assign_to_other":"Déléguer","hit.details.actions.action.vote":"Voter","hit.details.actions.action.start":"Commencer","hit.details.actions.action.pause":"Pause","hit.details.actions.action.resume":"Reprendre","hit.details.actions.action.assign_to_me":"Assigner à moi","hit.details.actions.action.re_evaluate":"Réévaluer","hit.details.actions.action.promote":"Promouvoir","hit.details.actions.action.demote":"Rétrograder","hit.details.actions.vote":"Voter","hit.details.actions.vote.novote":"Pas de vote","hit.details.asessments.ambiguous.description":"La nature du hit n'a pas pu être déterminée avec succès sur la base des données disponibles.","hit.details.asessments.attempt.description":"Le hit représente une activité malveillante visant à compromettre des systèmes ou des données.","hit.details.asessments.compromise.description":"Le hit fait partie d'un compromis réussi.","hit.details.asessments.development.description":"Le hit est liée à une activité de développement et doit être ignorée.","hit.details.asessments.false-positive.description":"Le hit n'est pas lié à la détection qui l'a créé.","hit.details.asessments.legitimate.description":"Le hit représente une activité légitime qui n'est pas liée à un incident.","hit.details.asessments.mitigated.description":"Cette compromission a déjà fait l'objet d'une enquête, de mesures d'atténuation et d'un rapport.","hit.details.asessments.recon.description":"Le hit est limitée à une activité de reconnaissance.","hit.details.asessments.security.description":"Le hit est liée à une activité interne de cybersécurité et doit être ignorée.","hit.details.asessments.trivial.description":"Le hit fait partie d'un incident dont la gravité est trop faible pour justifier une réponse.","hit.details.forceDropdown":"Utiliser l'affichage de la liste déroulante","hit.details.shortcuts":"Paramètres des raccourcis","hit.details.title":"Détails","hit.header.assignment":"Affectation: {{user}}","hit.header.assignment.add":"Attribuer à un utilisateur","hit.header.assignment.change":"Changer l'affectation","hit.header.bundlesize":"{{hits}} hits","hit.header.escalation":"Niveau d'escalade: ","hit.header.indicators":"Indicateurs","hit.header.rationale":"Justification","hit.header.scrutiny":"Examen minutieux: ","hit.header.status":"Statut: ","hit.header.summary":"Résumé","hit.header.target":"Cible","hit.header.threat":"Menace","hit.header.votes":"Votes: ","hit.overview.missing":"Aucune vue d'ensemble n'a été créée pour ce hit. Pour créer une vue d'ensemble, cliquez sur le bouton pour ajouter à droite.","hit.panel.aggregation.run":"Créer un sommaire","hit.panel.analytic.open":"Ouvrir l'analyse","hit.panel.bundles.open":"Groupes parentaux","hit.panel.bundles.open.prompt":"Ouvrir le groupe parent","hit.panel.details.show":"Montrer les détails du hit","hit.panel.details.hide":"Cacher les détails du hit","hit.panel.details.exit":"Fermer hit","hit.panel.open":"Ouvrir hit","hit.panel.close":"Fermer","hit.panel.hit.noselection":"Aucun résultat n'a été sélectionné","hit.panel.details.cluster":"Taille de la grappe","hit.panel.details.cluster.description":"Taille de la grappe","hit.panel.details.no.subjects":"Aucun sujet trouvé","hit.notebook.confirm.dialog":"Un notebook portant ce nom existe déjà dans votre environnement, souhaitez-vous le remplacer ?","hit.notebook.confirm.title":"Remplacer le notebook existant ?","hit.notebook.select":"Veuillez sélectionner un notebook","hit.notebook.goTo":"Aller a Jupyterhub","hit.notebook.tooltip":"Ouvrir dans Jupyterhub","hit.notebook.error.failToPost":"Échec de l'envoi du bloc-notes à Jupyterhub, assurez-vous que votre environnement utilisateur est en cours d'exécution.","hit.summary.title":"Résumé des hits au fil du temps","hit.summary.subtitle":"Limité à un maximum de 10 000 hits","hit.summary.aggregate.sources":"Modèles associés:","hit.summary.aggregate.title":"Volet de résumé des requêtes","hit.summary.aggregate.nokeys.title":"Pas de clés sélectionnées pour le facettage","hit.summary.aggregate.nokeys.description":"Votre recherche actuelle n'affiche aucun résultat avec des modèles définis. Comme ce sont les valeurs choisies dans les modèles de résultats qui alimentent cette section, aucun résultat ne sera affiché.","hit.summary.filter.field":"Champ de regroupement par","hit.summary.filter.escalation":"Filtre par escalade","hit.summary.refresh":"Rafraîchir le graphique","hit.summary.render.limit":"Résultats limités à {{number}} points","hit.summary.render.limit.description":`Pour des raisons de performance, un maximum de {{number}} points est affiché par défaut. Pour afficher jusqu'à {{max}} points, appuyez sur "Autoriser plus".`,"hit.summary.render.limit.override":"Autoriser plus","hit.summary.server.limit":"Impossible de résumer sur {{number}} Hits","hit.summary.server.limit.description":"En raison de la complexité de la requête, les requêtes dont le nombre de résultats est supérieur à {{max}} ne peuvent pas être résumées. Affinez votre requête pour permettre le résumé.","hit.summary.zoom.reset":"Réinitialiser le zoom","hit.summary.adhoc":"Ajouter une clé personnalisée","hit.summary.adhoc.custom":"Champ personnalisé","analytic.notebook.link":"Lien","analytic.notebook.name":"Nom","analytic.notebook.dropdown.none":"Aucune detection specifique","analytic.notebook.error.minFields":"Nom et lien requis.","hit.bundle.parents.show":"Afficher les paquets parents","hit.bundle.close":"Fermer Paquet","hit.fields":"Champs","help.hit.bundle.title":"Groupes des hits","help.hit.banner.title":"Remplissage de l'en-tête de hit","help.hit.banner.description":"Voir l'exemple d'en-tête de résultat ci-dessous pour connaître les clés de résultat nécessaires pour le remplir correctement. Si vous avez d'autres questions, posez-les dans le réseau d'assistance HOWLER.","help.hit.banner.json":"Voici les données de résultats utilisées pour remplir cet en-tête:","help.hit.labels.title":"Étiquettes du hit","help.hit.links.title":"Liens du hit","help.hit.schema.title":"Schéma du hit","help.hit.schema.regex":"Regex de validation","help.hit.schema.values":"Valeurs acceptées","help.actions.introduction":"Introduction aux actions","help.hit.schema.description.missing":"Aucune description n'est fournie.","help.hit.schema.search.prompt":"Filtrer les champs","help.hit.schema.table.assemblyline":"Champs d'assemblyline","help.hit.schema.table.ecs":"Champs ECS","help.hit.schema.table.howler":"Champs Howler","help.hit.schema.table.name":"Champ","help.hit.schema.table.type":"Type","help.hit.schema.table.description":"Description","hit.quicksearch":"Recherche par affectation, analytique, détection ou état","hit.search.prompt":"Rechercher en fournissant une requête lucene. Activer l'autocomplétion en utilisant [ctrl + espace].","hit.search.invalid":"Requête invalide","hit.search.keyboard":"Raccourcis clavier","hit.search.keyboard.no_shortcuts":"Pas de raccourcis","hit.search.keyboard.shortcuts":"Raccourcis","hit.search.keyboard.shortcuts_hints":"Raccourcis avec indice","hit.search.settings":"Paramètres","hit.search.button":"Effectuer une recherche","hit.search.aggregate.button":"Créer un sommaire","hit.search.filter.fields":"Paramètres","hit.search.filter.values":"Valeurs","hit.search.filter.button":"Utiliser des filtres de recherche avec des valeurs prédéfinies","hit.search.filter.label":"Filtres de recherche","hit.search.save.button":"Sauvegarder la requête en tant que vue","hit.search.save.view":"Sauvegarder la vue","hit.search.custom":"Triage personnalisé","hit.search.sort.fields":"Champ à trier","hit.search.span":"Durée","hit.search.sort.button":"Trier les résultats","hit.search.select.all":"Sélectionner tous les résultats de la page","hit.search.select.clear":"Effacer la sélection","hit.search.selected":"{{size}} sélectionné(s)","hit.search.view.current":"Vue courante","hit.search.view.default":"(Défaut)","hit.viewer.aggregate":"Sommaire","hit.viewer.comments":"Commentaires","hit.viewer.data":"Données brutes","hit.viewer.details":"Détails","hit.viewer.json":"JSON","hit.view.overview":"Vue d'ensemble","hit.viewer.worklog":"Journal de Bord","hit.viewer.related":"Liens connexes","hit.viewer.reload":"Recharge","hit.worklog.appended":"ajouté à","hit.worklog.removed":"retiré de","hit.worklog.set":"révisé à","hit.worklog.updated":"Actualisé","hit.worklog.new":"Nouveaux développements","home.title":"Mes Hits Assignés","json.viewer.search.label":"Recherche de valeurs JSON","json.viewer.search.prompt":"La requête doit être une expression rationnelle valide.","lead.invalid":"Type de piste non valide","lead.invalid.description":"La piste sélectionnée ne correspond à aucun type reconnu par Howler, et ne sera donc pas rendu.","link.open":"Ouvrir le lien",list:Xet,"live.connecting":"Essayer de se reconnecter au serveur en direct.","live.open":"Connecté au serveur en direct. Les mises à jour des alertes seront automatiquement appliquées.","live.closing":"Fermeture de la connexion au serveur en direct.","live.closed":"Non connecté au serveur en direct.",loading:Jet,manage:ett,"markdown.error":"Une erreur s'est produite.","markdown.json.invalid":"JSON non valide fourni. Pensez à utiliser l'utilitaire {{json <data>}} pour convertir les objets en chaînes JSON.","markdown.props.missing":"Il manque des arguments de mots-clés pour cette aide:","modal.action.title":"Enregistrer l'action","modal.action.description":"Donnez un nom qui permette aux autres utilisateurs d'identifier l'objectif de cette action.","modal.action.empty":"Le nom de l'action ne peut pas être vide.","modal.action.label":"Nom de l'action","modal.confirm.delete.title":"Confirmer la suppression","modal.confirm.delete.description":"Êtes-vous sûr de vouloir supprimer cet élément ?","modal.rule.title":"Créer une nouvelle règle","modal.rule.description":"Créer une nouvelle règle en lui donnant un nom, une description markdown et en la soumettant","modal.rule.name":"Nom de la règle","modal.rule.name.warn":"En général, le nom de l'analyse ne doit contenir que des lettres et des espaces, de préférence 'En Pascal Case'","modal.rule.description.title":"Description de la règle","modal.rule.file.title":"Requête","modal.rule.markdown.title":"Aperçu Markdown","modal.rule.markdown.placeholder":`Votre *markdown* **description** sera ~~rendered~~ ici.
|
|
148
148
|
|
|
149
|
-
`,"modal.rule.disabled.analytic":"Vous devez fournir un nom de règle","modal.rule.disabled.description":"Vous devez fournir une description markdown utile pour votre règle.","modal.rule.success":"règle créée!","modal.rationale.title":"Ajouter une justification","modal.rationale.description":"Fournissez une justification qui explique succinctement aux autres analystes les raisons pour lesquelles vous êtes confiant dans cette évaluation.","modal.rationale.label":"Justification",none:ttt,"no.data":"Aucune donnée",on:ntt,open:itt,owner:rtt,"operations.add_label":"Ajouter un label","operations.add_to_bundle":"Ajouter à une groupe des hits","operations.remove_label":"Supprimer un label","operations.remove_from_bundle":"Supprimer d'une groupe des hits","operations.change_field":"Modifier un champs","operations.prioritization":"Modifier l'ordre de priorité","operations.transition":"Exécuter la transition","operations.promote":"Promouvoir un hit","operations.demote":"Rétrograder un hit","outline.assemblyline.beacons":"Balises","outline.assemblyline.file_path":"Chemin d'accès au fichier","outline.assemblyline.last_modified":"Dernière modification","outline.assemblyline.tags":"Tags","overview.search":"Recherche dans les champs du Hit","page.404.description":"La page que vous recherchez est introuvable ...","page.404.title":"404: Introuvable","page.error.title":"L'application ne fonctionne plus","page.error.description":"L'application a cessé de fonctionner soudainement. Si le problème persiste, veuillez nous contacter sur teams.","page.error.support":"Cliquez ici pour obtenir du soutien sur teams","page.dashboard.title":"Tableau de bord","page.documentation.categories":"Catégories d'API","page.documentation.categories.category":"Catégorie","page.documentation.categories.description":"Description","page.documentation.endpoints":"Points de terminaison de l'API","page.documentation.endpoint":"Point de terminaison","page.documentation.endpoint.explanation":"Nom de point de terminaison - Le nom convivial de l'endpoint.<br>Chemin d'accès au point de terminaison - le chemin d'accès à emprunter pour accéder à ce point de terminaison.<br>Stabilité du point de terminaison - Si ce point de terminaison est sûr à utiliser et peu susceptible de changer de manière significative.<br>Protection - S'il est nécessaire de s'authentifier pour accéder à ce point d'accès.<br>Méthodes - Quelles méthodes HTTP peuvent être utilisées pour accéder à ce point de terminaison.","page.documentation.required_type":"Types d'utilisateurs requis","page.documentation.required_type.explanation":"Quels types d'utilisateurs ont accès à ce point de terminaison. Si l'un des types est vert, vous y avez accès.","page.documentation.required_priv":"Privilèges requis pour la clé API","page.documentation.required_priv.explanation":"Les privilèges que la clé API que vous avez générée doit avoir pour interagir avec ce point de terminaison.","page.documentation.description":"Description du point de terminaison","page.documentation.description.explanation":"La documentation décrivant à quoi sert ce point de terminaison et comment vous devez interagir avec lui.","page.documentation.labels.name":"Catégorie de l'étiquette","page.documentation.labels.description":"Description de la catégorie","page.documentation.labels.example":"Exemple","page.help":"Aide","page.help.title":"Tableau de bord de l'aide","page.login.button":"Se connecter","page.login.error":"Tapez simplement n'importe quoi dans les champs du nom d'utilisateur et du mot de passe ...","page.login.password":"Mot de passe","page.login.username":"Nom d'utilisateur","page.logout":"Déconnexion de l'utilisateur actuel ... ","page.settings":"Paramètres de votre compte","page.settings.profile.table.email":"Courriel","page.settings.profile.table.groups":"Groupes","page.settings.profile.table.groups.description":"Ce tiroir vous montrera tous les groupes dont howler vous considère comme faisant partie. Cela peut être utile pour vérifier que vous avez les permissions et les rôles que vous attendez en fonction de votre méthode d'authentification.","page.settings.profile.table.name":"Nom","page.settings.profile.table.roles":"Rôles","page.settings.profile.table.username":"Nom d'utilisateur","page.settings.profile.title":"Profile","page.settings.security.table.apikeys":"Clés API","page.settings.security.table.apiquota":"Quota API","page.settings.security.table.apiquota.description":"Ce quota API gère le nombre de requêtes simultanées qu'un utilisateur peut faire à howler. Pour les utilisateurs à fort volume, ce quota peut les limiter et un administrateur devra le changer pour un nombre plus élevé.","page.settings.security.table.password":"Mot de passe","page.settings.security.title":"Sécurité de l'utilisateur","page.settings.sitemap":"Paramètres","page.settings.local.title":"Préférences de l'interface utilisateur","page.settings.local.compact.json":"Afficher la vue JSON compacte","page.settings.local.compact.json.description":"Activer ou désactiver une vue JSON plus compacte, mieux adaptée à la visualisation d'un grand nombre de données en une seule fois","page.settings.local.flatten.json":"Aplatir le JSON dans la vue JSON","page.settings.local.flatten.json.description":"Au lieu d'afficher la structure d'objet du JSON, affichez-la sous forme de clés aplaties","page.settings.local.details.drawer":"Toujours utiliser le tiroir dans la recherche du hit","page.settings.local.details.drawer.description":"Au lieu de basculer entre une vue divisée et le tiroir en fonction de la taille de l'écran, ce paramètre oblige Howler à toujours utiliser le tiroir.","page.settings.local.hits.display_type":"Type d'affichage par défaut pour les résultats","page.settings.local.hits.display_type.description":"Ce paramètre vous permet de choisir entre l'affichage sous forme de liste ou de grille par défaut lors d'une recherche.","page.settings.local.hits.display_type.list":"Liste","page.settings.local.hits.display_type.grid":"Grille","page.settings.local.hits.layout":"Change Layout","page.settings.local.hits.layout.description":"Ce paramètre vous permet de décider de la quantité de rembourrage et d'espacement, ainsi que de la taille de la police et de la taille de l'élément, que nous utilisons lors du rendu de l'interface utilisateur. Plus l'interface est dense, plus il est possible d'afficher de données.","page.settings.local.hits.layout.dense":"Dense","page.settings.local.hits.layout.normal":"Normal","page.settings.local.hits.layout.comfy":"Confortable","page.settings.local.search.width":"Largeur maximale des résultats","page.settings.local.search.width.description":"Taille maximale (en pixels) de la colonne des résultats dans la page de recherche.","page.settings.local.results.count":"Résultats par page","page.settings.local.results.count.description":"Combien de résultats devons-nous afficher par page lors de l'affichage des résultats de recherche ?","page.settings.admin.title":"Administration","page.user.search":"Chercher des utilisateurs","page.user.search.column.username":"Nom d'utilisateur","page.user.search.column.fullname":"Nom complet","page.user.search.column.email":"E-mail","page.user.search.column.groups":"Groupes","page.user.search.prompt":"Rechercher par nom d'utilisateur, nom complet, e-mail ou groupe",password:stt,"password.confirm":"Confirmer le mot de passe","password.match":"Le mot de passe et le mot de passe de confirmation doivent correspondre","password.success":"Votre nouveau mot de passe a été défini. Vous serez déconnecté dans cinq secondes.",personalization:ott,"personalization.autohideappbar":"Masquer la barre supérieure","personalization.dark":"Mode Sombre","personalization.minimizebreadcrumbs":"Minimiser fils d'ariane","personalization.quicksearch":"Afficher recherche rapide","personalization.reset_text":"Réinitialiser les paramètres","personalization.showbreadcrumbs":"Afficher fils d'ariane","personalization.sticky":"Barre supérieure collante",query:att,"quicksearch.aria":"recherche","quicksearch.placeholder":"Recherche ...","rationale.default":"Hit évaluée comme {{assessment}}",references:ltt,"retention.imminent":"à quelques instants","retention.safe":"Ce résultat est {{ duration }} de la suppression automatique.","retention.warn":"Ce résultat est {{ duration }} de la suppression automatique. Envisagez de conserver le résultat positif si vous voulez éviter la perte de données.","retention.error":"Ce résultat est {{ duration }} de la suppression automatique. Vous n'aurez bientôt plus accès à ce résultat dans Howler. Pensez à conserver ce résultat si vous voulez éviter toute perte de données.","route.admin.user.details":"Détails d'utilisateur","route.admin.user.search":"Recherche utilisateurs","route.advanced":"Recherche avancée","route.advanced.error":"Erreur de recherche","route.advanced.fields":"Champs à montrer","route.advanced.fields.all":"Afficher tous les champs","route.advanced.open":"Ouvrir en recherche","route.advanced.rows":"Nombre de lignes à renvoyer","route.advanced.create.rule":"Créer une règle","route.advanced.create.rule.disabled":"Vous devez d'abord lancer votre recherche pour vous assurer qu'elle est valide","route.advanced.query.lucene":"Requête Lucene","route.advanced.query.lucene.description":"Apache Lucence est une syntaxe de recherche utilisée par elasticsearch, Howler et apache lucene. Voir notre documentation pour plus d'informations à ce sujet.","route.advanced.query.eql":"Requête EQL","route.advanced.query.eql.description":"Event Query Language (EQL) est un langage de requête pour les données de séries temporelles basées sur des événements, telles que les journaux, les métriques et les traces.","route.advanced.query.yaml":"Règle Sigma","route.advanced.query.yaml.description":"Sigma est un format de signature générique et ouvert qui vous permet de décrire des événements de journal pertinents de manière directe. Le format de règle est très flexible, facile à écrire et applicable à tout type de fichier journal.","route.advanced.result.title":"Recherche avancée de howler","route.advanced.result.description":"Exécutez une requête pour afficher les résultats ici.","route.advanced.rule.type":"Type de règle","route.advanced.pivot.field":"Champ à regrouper par","route.advanced.query.type":"Type de requête","route.advanced.query.type.default":"Défaut","route.advanced.query.type.facet":"Facette","route.advanced.query.type.groupby":"Regrouper","route.analytics":"Analyses","route.analytics.deleted":"Règle supprimée!","route.analytics.detections":"Détections:","route.analytics.tags":"Tags:","route.analytics.rule":"règle","route.analytics.rule.title":"Requête de règle","route.analytics.contributors":"Contributeurs","route.analytics.filter.rule":"Filtre sur les règles","route.analytics.pinned":"Analyses épinglées","route.analytics.search.prompt":"Recherche par nom ou par détection.","route.analytics.search.filter.rules.show":"Afficher uniquement les règles","route.analytics.search.filter.rules.hide":"Cacher les règles uniquement","route.analytics.search.filter.rules.toggle":"Filtrer les règles","route.analytics.tab.overview":"Sommaire","route.analytics.tab.overviews":"Vues d'ensemble","route.analytics.tab.comments":"Commentaires","route.analytics.tab.hit_comments":"Commentaires des hits","route.analytics.tab.notebooks":"Notebooks","route.analytics.tab.rule":"Requête de règle","route.analytics.tab.templates":"Modèles","route.analytics.tab.triage":"Triage","route.analytics.view":"Voir l'analyse","route.analytics.overview.description":"Description","route.analytics.overview.statistics":"Statistiques","route.analytics.overview.limit":"Limité aux 10 000 dernières hits.","route.analytics.overview.empty.title":"Pas de statistiques à montrer","route.analytics.overview.empty.description":"Il n'y a pas de résultats existants pour cette analyse. Les statistiques ne peuvent pas être affichées.","route.analytics.ingestion.title":"Nombre de hits créés","route.analytics.escalation.title":"Escalade des hits créés","route.analytics.assessment.title":"Résultat de l'évaluation des hits créés","route.analytics.status.title":"État cumulatif des hits créés au cours des trois derniers mois","route.analytics.detection.title":"Hits ingérés au cours des trois derniers mois par détection","route.analytics.updated":"Analytic mis a jour!","route.analytics.set.owner":"Changement de propriétaire","route.analytics.triage.title":"Paramètres de triage","route.analytics.triage.rationale":"Sauter la justification","route.analytics.triage.rationale.description":"Lors du triage des alertes provenant de cette analyse, la justification n'est pas demandée et est générée automatiquement.","route.analytics.triage.assessments":"Résultats d'évaluation autorisés","route.analytics.triage.assessments.description":"Lors du triage des alertes provenant de cette analyse, quelles sont les évaluations valides?","route.actions":"Actions","route.actions.operation.add":"Ajouter une nouvelle opération","route.actions.alert.error":"Il y a {{count}} hits dans votre requête pour lesquels cette opération peut échouer.","route.actions.alert.success":"Cette action devrait s'exécuter sans problème.","route.actions.alert.warning":"Il y a {{count}} occurrences dans votre requête pour lesquelles cette opération pourrait ne pas avoir d'effet.","route.actions.automate":"Automatiser","route.actions.change":"Exécuter un action","route.actions.create":"Nouveau action","route.actions.edit":"Modifier","route.actions.execute":"Exécuter","route.actions.name":"Nom de l'action","route.actions.open":"Ouvrir la requête","route.actions.view":"Visualiser","route.actions.report":"Rapport d'action","route.actions.restart":"Redémarrer","route.actions.save":"Sauvegarder l'action","route.actions.search":"Rechercher des actions","route.actions.search.open":"Ouvrir la liste","route.actions.search.prompt":"Recherche par nom ou par requête.","route.actions.search.warning":"Avant d'ajouter des opérations, vous devez exécuter et valider une requête.","route.actions.trigger.description":"Cette action a été automatisée. Elle s'exécutera automatiquement lorsque le(s) déclencheur(s) <bold>{{triggers}}</bold> sera (seront) atteint(s).","route.actions.query.empty":"La requête ne peut pas être vide.","route.actions.trigger":"Filtrer par déclencheur","route.actions.trigger.create":"Exécution lors du création","route.actions.trigger.promote":"Exécution lors du promotion","route.actions.trigger.demote":"Exécution lors du démotion","route.actions.trigger.update":"Exécution lors de la mise à jour","route.actions.trigger.resolve":"Exécution lors de la résolution","route.actions.trigger.add_label":"Exécution sur l'ajout d'une étiquette","route.actions.trigger.remove_label":"Exécuter la suppression de l'étiquette","route.actions.trigger.disabled.explanation":"L'une des opérations sélectionnées ne prend pas en charge ce déclencheur.","route.actions.trigger.disabled.permissions":"Vous n'avez pas les rôles corrects pour exécuter ce déclencheur.","route.integrations":"Intégrations","route.help":"Aide","route.help.main":"Tableau de bord","route.help.api":"Documentation de l'API","route.help.auth":"Authentification","route.help.bundles":"Groupes des hits","route.help.client":"Client Howler","route.help.hit":"Documentation sur les coups","route.help.search":"Recherche","route.help.templates":"Modèles","route.help.overviews":"Vues d'ensemble","route.help.notebook":"Documentation des carnets","route.help.views":"Vues","route.help.retention":"Rétention","route.hits":"Alertes","route.hits.bundle":"Voir groupe","route.hits.view":"Afficher hit","route.home.add.analytic.description":"Sélectionnez l'analyse pour laquelle les données doivent être affichées, et la visualisation à présenter","route.home.add.analytic.title":"Ajouter des statistiques analytiques","route.home.add.analytic":"Analytique","route.home.add.description":"Ajoutez un panneau supplémentaire à votre tableau de bord en sélectionnant le type que vous souhaitez ajouter et en complétant la configuration","route.home.add.limit.description":"Nombre maximal d'occurrences à afficher","route.home.add.limit":"Limite du résultat","route.home.add.type.analytic.description":"Présenter les statistiques d'une analyse donnée = les évaluations résultantes, le nombre de résultats créés ou l'escalade des résultats créés","route.home.add.type.analytic":"Panneau analytique","route.home.add.type.view.description":"Présenter une vue sauvegardée, limitée à un certain nombre de résultats","route.home.add.type.view":"Panneau d'affichage","route.home.add.type":"Type de panneau","route.home.add.view":"Vue à présenter","route.home.add.visualization.assessment.description":"Pour les hits qui ont été triés, quelle a été l'évaluation qui en a résulté ?","route.home.add.visualization.assessment":"Résultat de l'évaluation des résultats créés","route.home.add.visualization.created.description":"Série temporelle du nombre de hits créés par l'analytique au cours des 90 derniers jours","route.home.add.visualization.created":"Nombre de hits créés","route.home.add.visualization.detection.description":"Pour les hits créés au cours des trois derniers mois, quel est leur niveau de détection ?","route.home.add.visualization.detection":"Hits créés par détection","route.home.add.visualization.escalation.description":"Pour les hits qui ont été triés, quelle a été l'escalade qui en a résulté ?","route.home.add.visualization.escalation":"Escalade des hits créés","route.home.add.visualization.status.description":"Quel est l'état des hits créés au cours des trois derniers mois ?","route.home.add.visualization.status":"État cumulatif des hits créés","route.home.add.visualization.unavailable":"Aucune option de visualisation disponible.","route.home.add.visualization":"Visualisation","route.home.add":"Ajouter un nouveau panneau","route.home.alert.updated.description":"Des mises à jour ont été apportées aux alertes auxquelles vous participez. Depuis votre dernière consultation, {{count}} alertes ont été mises à jour","route.home.alert.updated.title":"Alert Updates","route.home.description":"Bienvenue sur Howler. Vous pouvez ajouter des éléments à votre tableau de bord en utilisant les boutons ci-dessus.","route.home.title":"Howler","route.home":"Tableau de bord utilisateur","route.history":"Mode historique : Voir toutes les requêtes précédentes","route.clear":"Effacer la requête","route.help.hit.banner":"Documentation sur en-tête de hit","route.login.button.oauth":"Se connecter avec","route.templates":"Modèles","route.templates.analytic":"Choisir une analyse","route.templates.detection":"Choisir une détection","route.templates.builtin":"Intégré","route.templates.builtin.show":"Modèles intégrés","route.templates.builtin.hide":"Masquer les modèles intégrés","route.templates.default":"Défaut","route.templates.global":"Général","route.templates.personal":"Personnel","route.templates.search.prompt":"Recherche par clé d'analyse, de détection ou de modèle.","route.templates.select":"Choisir une analyse et une détection pour visualiser et modifier le modèle.","route.templates.readonly.warning":"Il s'agit d'un modèle intégré qui ne peut pas être modifié. Pour le modifier, veuillez contacter","route.templates.prompt":"Activer l'autocomplétion en utilisant [ctrl + espace].","route.templates.view":"Voir le modèle","route.templates.create":"Nouvelle modèle","route.templates.manager.global":"Global","route.templates.manager.personal":"Personnel","route.templates.manager.readonly":"Intégré","route.templates.manager.search":"Rechercher les modèles","route.templates.rule.explanation":"Il s'agit d'une analyse Howler. Il n'y a qu'une seule détection, qui a été présélectionnée.","route.overviews":"Vues d'ensemble","route.overviews.analytic":"Choisir une analyse","route.overviews.detection":"Choisir une détection","route.overviews.default":"Défaut","route.overviews.search.prompt":"Recherche par titre, contenu, clé d'analyse ou de détection.","route.overviews.select":"Choisir une analyse et une détection pour visualiser et modifier la vue d'ensemble.","route.overviews.prompt":"Activer l'autocomplétion en utilisant [ctrl + espace].","route.overviews.view":"Voir la vue d'ensemble","route.overviews.create":"Nouvelle vue d'ensemble","route.overviews.manager.search":"Rechercher les vues d'ensemble","route.overviews.manager.delete":"Supprimer la vue d'ensemble","route.overviews.manager.delete.success":"Vue d'ensemble Supprimée.","route.overviews.theme.light":"Prévoyez en mode clair","route.overviews.theme.dark":"Prévoyez en mode sombre","route.dossiers":"Dossiers","route.dossiers.default":"Défaut","route.dossiers.search.prompt":"Recherche par titre, requête ou propriétaire.","route.dossiers.prompt":"Activez l'autocomplétion en utilisant [ctrl + espace].","route.dossiers.view":"Voir le dossier","route.dossiers.create":"Nouveau dossier","route.dossiers.edit":"Modifier le dossier","route.dossiers.manager.search":"Rechercher un dossier","route.dossiers.manager.delete":"Supprimer un dossier","route.dossiers.manager.delete.success":"Dossier supprimé.","route.dossiers.manager.global":"Global","route.dossiers.manager.personal":"Personnel","route.dossiers.manager.lead.create":"Créez un nouveau dossier en appuyant sur le bouton à droite.","route.dossiers.manager.icon":"Icône de la piste","route.dossiers.manager.icon.description":"Spécifiez une icône à l'aide de l'ID iconify. Pour parcourir les icônes, cliquez sur le bouton à droite.","route.dossiers.manager.label.en":"English Title","route.dossiers.manager.label.fr":"Titre français","route.dossiers.manager.format":"Format de la piste","route.dossiers.manager.tabs.leads":"Pistes","route.dossiers.manager.tabs.pivots":"Pivots","route.dossiers.manager.pivot.create":"Vous n'avez actuellement aucun pivot configuré. Appuyez sur le bouton Ajouter à droite pour en créer un nouveau.","route.dossiers.manager.pivot.icon":"Icône du pivot","route.dossiers.manager.pivot.label.en":"English Title","route.dossiers.manager.pivot.label.fr":"Titre français","route.dossiers.manager.pivot.format":"Format du pivot","route.dossiers.manager.pivot.value":"Valeur du pivot","route.dossiers.manager.pivot.mappings":"Mappages de pivot","route.dossiers.manager.pivot.mapping.key":"Clé","route.dossiers.manager.pivot.mapping.field":"Champs du hit","route.dossiers.manager.pivot.mapping.custom":"Valeur personnalisée","route.dossiers.manager.validation.error":"Dossier est invalide.","route.dossiers.manager.validation.error.missing":"{{field}} est invalide.","route.dossiers.manager.validation.error.leads":"Une piste est mal configuré.","route.dossiers.manager.validation.error.pivots":"Un pivot est mal configuré.","route.dossiers.manager.validation.error.pivots.duplicate":"Un pivot a une clé dupliquée.","route.dossiers.manager.validation.error.items":"Vous n'avez pas configuré de pistes ou de pivots.","route.views.create.success":"Vue crée.","route.views.update.success":"Vue actualisée.","route.views.create":"Nouvelle vue","route.views.edit":"Modifier vue","route.views.manager.all":"Tous","route.views.manager.default":"Vue par défaut","route.views.manager.favourites":"Afficher uniquement les favoris","route.views.manager.global":"Global","route.views.manager.open":"Ouvrier la vue","route.views.manager.personal":"Personnel","route.views.manager.readonly":"Intégré","route.views.manager.search":"Rechercher les vues","route.views.manager":"Gérer vue","route.views.save":"Enregistrer cette requête comme vue","route.views.saved":"Vues épinglées","route.views.show":"Voir les vues","route.views":"Vues","search.open":"Ouvrir la recherche","search.result.showing":"Affichage de {{offset}} à {{length}} sur {{total}} articles","search.result.showing.single":"Aucun articles","templates.edit.analytic":"Modifier modèle pour cette analyse","templates.edit.detection":"Modifier modèle pour cette détection","tooltip.breadcrumbs.max":"Maximiser fils d'ariane","tooltip.breadcrumbs.min":"Minimiser fils d'ariane","app.list.empty":"Aucun résultat",save:ctt,"search.total":"Il y a un total de {{count}} résultats correspondant à cette requête.",unknown:utt,using:dtt,"user.error.failed":"L'API a été incapable de retourner les informations d'utilisateur.","user.error.modal.body":"Une erreur inconnue s'est produite lors de la connexion au serveur. Veuillez réessayer plus tard.","user.error.modal.details":"Détails: ","user.error.modal.header":"Une erreur s'est produite","user.error.modal.reload":"Recharger la fenêtre","user.login.failed":"Informations de connexion non valides. Veuillez vérifier votre nom d'utilisateur et votre mot de passe.",usermenu:htt,"usermenu.logout":"Déconnecter","usermenu.settings":"Paramètres","view.assigned_to_me":"Assigné à moi","view.notfound":"Cette vue n'est pas disponible pour vous, ou n'existe pas.","view.settings.advance_on_triage":"Passer à la hit suivant lors du triage","view.settings.advance_on_triage.description":"Si cette option est activée, le triage d'une hit sur cette vue passera automatiquement à la hit suivant, ce qui facilitera le triage rapide des résultats.","Unclassified//Official Use Only":"Non classé//Réservé à des fins officielles","Protected B":"Protégé B","query.invalid":"Requête invalide","tui.query.save.alert":"Charger une vue enregistrée ou enregistrer la requête actuelle en tant que vue","tui.query.load":"Charger une vue enregistrée","tui.query.invalid":"Requête invalide","tui.query.store.delete":"Supprimer la vue enregistrée","tui.query.store.load":"Charger la vue enregistrée dans le champ de saisie","tui.query.views.load":"Charger les vues actives dans le champ de saisie","tui.query.views.clear":"Effacer les vues actives","tui.query.save.append":"Ajouter les vues actives",global:ftt,unset:ptt};var H$,f0e;function mtt(){return f0e||(f0e=1,H$={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),H$}var Ttt=mtt();const btt=$l(Ttt);var _tt=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function p0e(n){var e={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},t=n.match(/<\/?([^\s]+?)[/\s>]/);if(t&&(e.name=t[1],(btt[t[1]]||n.charAt(n.length-2)==="/")&&(e.voidElement=!0),e.name.startsWith("!--"))){var i=n.indexOf("-->");return{type:"comment",comment:i!==-1?n.slice(4,i):""}}for(var r=new RegExp(_tt),s=null;(s=r.exec(n))!==null;)if(s[0].trim())if(s[1]){var a=s[1].trim(),o=[a,""];a.indexOf("=")>-1&&(o=a.split("=")),e.attrs[o[0]]=o[1],r.lastIndex--}else s[2]&&(e.attrs[s[2]]=s[3].trim().substring(1,s[3].length-1));return e}var vtt=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,ytt=/^\s*$/,wtt=Object.create(null);function oCe(n,e){switch(e.type){case"text":return n+e.content;case"tag":return n+="<"+e.name+(e.attrs?(function(t){var i=[];for(var r in t)i.push(r+'="'+t[r]+'"');return i.length?" "+i.join(" "):""})(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?n:n+e.children.reduce(oCe,"")+"</"+e.name+">";case"comment":return n+"<!--"+e.comment+"-->"}}var Ctt={parse:function(n,e){e||(e={}),e.components||(e.components=wtt);var t,i=[],r=[],s=-1,a=!1;if(n.indexOf("<")!==0){var o=n.indexOf("<");i.push({type:"text",content:o===-1?n:n.substring(0,o)})}return n.replace(vtt,function(l,c){if(a){if(l!=="</"+t.name+">")return;a=!1}var u,h=l.charAt(1)!=="/",d=l.startsWith("<!--"),f=c+l.length,p=n.charAt(f);if(d){var g=p0e(l);return s<0?(i.push(g),i):((u=r[s]).children.push(g),i)}if(h&&(s++,(t=p0e(l)).type==="tag"&&e.components[t.name]&&(t.type="component",a=!0),t.voidElement||a||!p||p==="<"||t.children.push({type:"text",content:n.slice(f,n.indexOf("<",f))}),s===0&&i.push(t),(u=r[s-1])&&u.children.push(t),r[s]=t),(!h||t.voidElement)&&(s>-1&&(t.voidElement||t.name===l.slice(2,-1))&&(s--,t=s===-1?i:r[s]),!a&&p!=="<"&&p)){u=s===-1?i:r[s].children;var m=n.indexOf("<",f),T=n.slice(f,m===-1?void 0:m);ytt.test(T)&&(T=" "),(m>-1&&s+u.length>=0||T!==" ")&&u.push({type:"text",content:T})}}),i},stringify:function(n){return n.reduce(function(e,t){return e+oCe("",t)},"")}};function MR(){if(console&&console.warn){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];j0(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e)}}const g0e={};function TH(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];j0(e[0])&&g0e[e[0]]||(j0(e[0])&&(g0e[e[0]]=new Date),MR(...e))}const aCe=(n,e)=>()=>{if(n.isInitialized)e();else{const t=()=>{setTimeout(()=>{n.off("initialized",t)},0),e()};n.on("initialized",t)}},m0e=(n,e,t)=>{n.loadNamespaces(e,aCe(n,t))},T0e=(n,e,t,i)=>{j0(t)&&(t=[t]),t.forEach(r=>{n.options.ns.indexOf(r)<0&&n.options.ns.push(r)}),n.loadLanguages(e,aCe(n,i))},Qtt=function(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=e.languages[0],r=e.options?e.options.fallbackLng:!1,s=e.languages[e.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const a=(o,l)=>{const c=e.services.backendConnector.state[`${o}|${l}`];return c===-1||c===2};return t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!a(e.isLanguageChangingTo,n)?!1:!!(e.hasResourceBundle(i,n)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||a(i,n)&&(!r||a(s,n)))},xtt=function(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!e.languages||!e.languages.length?(TH("i18n.languages were undefined or empty",e.languages),!0):e.options.ignoreJSONStructure!==void 0?e.hasLoadedNamespace(n,{lng:t.lng,precheck:(r,s)=>{if(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!s(r.isLanguageChangingTo,n))return!1}}):Qtt(n,e,t)},j0=n=>typeof n=="string",Ev=n=>typeof n=="object"&&n!==null,Stt=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Ltt={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Ett=n=>Ltt[n],ktt=n=>n.replace(Stt,Ett);let mX={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:ktt};const Att=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};mX={...mX,...n}},lCe=()=>mX;let cCe;const Itt=n=>{cCe=n},zoe=()=>cCe,F$=(n,e)=>{if(!n)return!1;const t=n.props?n.props.children:n.children;return e?t.length>0:!!t},B$=n=>{if(!n)return[];const e=n.props?n.props.children:n.children;return n.props&&n.props.i18nIsDynamicList?kv(e):e},Dtt=n=>Array.isArray(n)&&n.every(F.isValidElement),kv=n=>Array.isArray(n)?n:[n],Mtt=(n,e)=>{const t={...e};return t.props=Object.assign(n.props,e.props),t},uCe=(n,e)=>{if(!n)return"";let t="";const i=kv(n),r=e.transSupportBasicHtmlNodes&&e.transKeepBasicHtmlNodesFor?e.transKeepBasicHtmlNodesFor:[];return i.forEach((s,a)=>{if(j0(s))t+=`${s}`;else if(F.isValidElement(s)){const{props:o,type:l}=s,c=Object.keys(o).length,u=r.indexOf(l)>-1,h=o.children;if(!h&&u&&!c)t+=`<${l}/>`;else if(!h&&(!u||c)||o.i18nIsDynamicList)t+=`<${a}></${a}>`;else if(u&&c===1&&j0(h))t+=`<${l}>${h}</${l}>`;else{const d=uCe(h,e);t+=`<${a}>${d}</${a}>`}}else if(s===null)MR("Trans: the passed in value is invalid - seems you passed in a null child.");else if(Ev(s)){const{format:o,...l}=s,c=Object.keys(l);if(c.length===1){const u=o?`${c[0]}, ${o}`:c[0];t+=`{{${u}}}`}else MR("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",s)}else MR("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",s)}),t},Ott=(n,e,t,i,r,s)=>{if(e==="")return[];const a=i.transKeepBasicHtmlNodesFor||[],o=e&&new RegExp(a.map(m=>`<${m}`).join("|")).test(e);if(!n&&!o&&!s)return[e];const l={},c=m=>{kv(m).forEach(b=>{j0(b)||(F$(b)?c(B$(b)):Ev(b)&&!F.isValidElement(b)&&Object.assign(l,b))})};c(n);const u=Ctt.parse(`<0>${e}</0>`),h={...l,...r},d=(m,T,b)=>{const v=B$(m),_=p(v,T.children,b);return Dtt(v)&&_.length===0||m.props&&m.props.i18nIsDynamicList?v:_},f=(m,T,b,v,_)=>{m.dummy?(m.children=T,b.push(F.cloneElement(m,{key:v},_?void 0:T))):b.push(...F.Children.map([m],w=>{const y={...w.props};return delete y.i18nIsDynamicList,F.createElement(w.type,{...y,key:v,ref:w.ref},_?null:T)}))},p=(m,T,b)=>{const v=kv(m);return kv(T).reduce((w,y,C)=>{const x=y.children&&y.children[0]&&y.children[0].content&&t.services.interpolator.interpolate(y.children[0].content,h,t.language);if(y.type==="tag"){let S=v[parseInt(y.name,10)];b.length===1&&!S&&(S=b[0][y.name]),S||(S={});const L=Object.keys(y.attrs).length!==0?Mtt({props:y.attrs},S):S,E=F.isValidElement(L),I=E&&F$(y,!0)&&!y.voidElement,O=o&&Ev(L)&&L.dummy&&!E,k=Ev(n)&&Object.hasOwnProperty.call(n,y.name);if(j0(L)){const N=t.services.interpolator.interpolate(L,h,t.language);w.push(N)}else if(F$(L)||I){const N=d(L,y,b);f(L,N,w,C)}else if(O){const N=p(v,y.children,b);f(L,N,w,C)}else if(Number.isNaN(parseFloat(y.name)))if(k){const N=d(L,y,b);f(L,N,w,C,y.voidElement)}else if(i.transSupportBasicHtmlNodes&&a.indexOf(y.name)>-1)if(y.voidElement)w.push(F.createElement(y.name,{key:`${y.name}-${C}`}));else{const N=p(v,y.children,b);w.push(F.createElement(y.name,{key:`${y.name}-${C}`},N))}else if(y.voidElement)w.push(`<${y.name} />`);else{const N=p(v,y.children,b);w.push(`<${y.name}>${N}</${y.name}>`)}else if(Ev(L)&&!E){const N=y.children[0]?x:null;N&&w.push(N)}else f(L,x,w,C,y.children.length!==1||!x)}else if(y.type==="text"){const S=i.transWrapTextNodes,L=s?i.unescape(t.services.interpolator.interpolate(y.content,h,t.language)):t.services.interpolator.interpolate(y.content,h,t.language);S?w.push(F.createElement(S,{key:`${y.name}-${C}`},L)):w.push(L)}return w},[])},g=p([{dummy:!0,children:n||[]}],u,kv(n||[]));return B$(g[0])};function Ntt(n){let{children:e,count:t,parent:i,i18nKey:r,context:s,tOptions:a={},values:o,defaults:l,components:c,ns:u,i18n:h,t:d,shouldUnescape:f,...p}=n;const g=h||zoe();if(!g)return TH("You will need to pass in an i18next instance by using i18nextReactModule"),e;const m=d||g.t.bind(g)||(I=>I),T={...lCe(),...g.options&&g.options.react};let b=u||m.ns||g.options&&g.options.defaultNS;b=j0(b)?[b]:b||["translation"];const v=uCe(e,T),_=l||v||T.transEmptyNodeValue||r,{hashTransKey:w}=T,y=r||(w?w(v||_):v||_);g.options&&g.options.interpolation&&g.options.interpolation.defaultVariables&&(o=o&&Object.keys(o).length>0?{...o,...g.options.interpolation.defaultVariables}:{...g.options.interpolation.defaultVariables});const C=o||t!==void 0||!e?a.interpolation:{interpolation:{...a.interpolation,prefix:"#$?",suffix:"?$#"}},x={...a,context:s||a.context,count:t,...o,...C,defaultValue:_,ns:b},S=y?m(y,x):_;c&&Object.keys(c).forEach(I=>{const O=c[I];if(typeof O.type=="function"||!O.props||!O.props.children||S.indexOf(`${I}/>`)<0&&S.indexOf(`${I} />`)<0)return;function k(){return F.createElement(F.Fragment,null,O)}c[I]=F.createElement(k)});const L=Ott(c||e,S,g,T,x,f),E=i!==void 0?i:T.defaultTransParent;return E?F.createElement(E,p,L):L}const Rtt={type:"3rdParty",init(n){Att(n.options.react),Itt(n)}},Woe=F.createContext();class Ptt{constructor(){Hn(this,"getUsedNamespaces",()=>Object.keys(this.usedNamespaces));this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(t=>{this.usedNamespaces[t]||(this.usedNamespaces[t]=!0)})}}function La(n){let{children:e,count:t,parent:i,i18nKey:r,context:s,tOptions:a={},values:o,defaults:l,components:c,ns:u,i18n:h,t:d,shouldUnescape:f,...p}=n;const{i18n:g,defaultNS:m}=F.useContext(Woe)||{},T=h||g||zoe(),b=d||T&&T.t.bind(T);return Ntt({children:e,count:t,parent:i,i18nKey:r,context:s,tOptions:a,values:o,defaults:l,components:c,ns:u||b&&b.ns||m||T&&T.options&&T.options.defaultNS,i18n:T,t:d,shouldUnescape:f,...p})}const Htt=(n,e)=>{const t=F.useRef();return F.useEffect(()=>{t.current=n},[n,e]),t.current},dCe=(n,e,t,i)=>n.getFixedT(e,t,i),Ftt=(n,e,t,i)=>F.useCallback(dCe(n,e,t,i),[n,e,t,i]),ln=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:t}=e,{i18n:i,defaultNS:r}=F.useContext(Woe)||{},s=t||i||zoe();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new Ptt),!s){TH("You will need to pass in an i18next instance by using initReactI18next");const _=(y,C)=>j0(C)?C:Ev(C)&&j0(C.defaultValue)?C.defaultValue:Array.isArray(y)?y[y.length-1]:y,w=[_,{},!1];return w.t=_,w.i18n={},w.ready=!1,w}s.options.react&&s.options.react.wait!==void 0&&TH("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...lCe(),...s.options.react,...e},{useSuspense:o,keyPrefix:l}=a;let c=n||r||s.options&&s.options.defaultNS;c=j0(c)?[c]:c||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(c);const u=(s.isInitialized||s.initializedStoreOnce)&&c.every(_=>xtt(_,s,a)),h=Ftt(s,e.lng||null,a.nsMode==="fallback"?c:c[0],l),d=()=>h,f=()=>dCe(s,e.lng||null,a.nsMode==="fallback"?c:c[0],l),[p,g]=F.useState(d);let m=c.join();e.lng&&(m=`${e.lng}${m}`);const T=Htt(m),b=F.useRef(!0);F.useEffect(()=>{const{bindI18n:_,bindI18nStore:w}=a;b.current=!0,!u&&!o&&(e.lng?T0e(s,e.lng,c,()=>{b.current&&g(f)}):m0e(s,c,()=>{b.current&&g(f)})),u&&T&&T!==m&&b.current&&g(f);const y=()=>{b.current&&g(f)};return _&&s&&s.on(_,y),w&&s&&s.store.on(w,y),()=>{b.current=!1,_&&s&&_.split(" ").forEach(C=>s.off(C,y)),w&&s&&w.split(" ").forEach(C=>s.store.off(C,y))}},[s,m]),F.useEffect(()=>{b.current&&u&&g(d)},[s,l,u]);const v=[p,s,u];if(v.t=p,v.i18n=s,v.ready=u,u||!u&&!o)return v;throw new Promise(_=>{e.lng?T0e(s,e.lng,c,()=>_()):m0e(s,c,()=>_())})};function Btt(n){let{i18n:e,defaultNS:t,children:i}=n;const r=F.useMemo(()=>({i18n:e,defaultNS:t}),[e,t]);return F.createElement(Woe.Provider,{value:r},i)}const Vtt={en:{translation:h0e,helpSearch:zJe,helpMain:SJe},fr:{translation:gtt,helpSearch:Fet,helpMain:yet},woof:{translation:Object.keys(h0e).reduce((n,e)=>(n[e]="woof",n),{})}},N0=dJe();N0.use(sCe).use(Rtt).init({fallbackLng:"en",keySeparator:!1,interpolation:{escapeValue:!1},detection:{order:["localStorage","cookie"]},resources:Vtt});function jtt(n){const{toggleLanguage:e}=F.useContext(WV);return F.useEffect(()=>()=>{},[n]),F.useMemo(()=>({isFR:()=>N0.language==="fr",isEN:()=>N0.language==="en",toggle:e}),[e])}function Zm(){return F.useContext(Hwe)}function Sb(){return F.useContext(Vwe)}function ztt(){const{theme:n}=UV(),{preferences:e}=vc();return F.useMemo(()=>n==="dark"?e.appIconDark:e.appIconLight,[n,e])}function Wtt(){return F.useContext($we)}function qV(){return F.useContext(jwe)}function hCe(){return F.useContext(zwe)}var V$={exports:{}},c1={},j$={exports:{}},z$={};/**
|
|
149
|
+
`,"modal.rule.disabled.analytic":"Vous devez fournir un nom de règle","modal.rule.disabled.description":"Vous devez fournir une description markdown utile pour votre règle.","modal.rule.success":"règle créée!","modal.rationale.title":"Ajouter une justification","modal.rationale.description":"Fournissez une justification qui explique succinctement aux autres analystes les raisons pour lesquelles vous êtes confiant dans cette évaluation.","modal.rationale.label":"Justification",none:ttt,"no.data":"Aucune donnée",on:ntt,open:itt,owner:rtt,"operations.add_label":"Ajouter un label","operations.add_to_bundle":"Ajouter à une groupe des hits","operations.remove_label":"Supprimer un label","operations.remove_from_bundle":"Supprimer d'une groupe des hits","operations.change_field":"Modifier un champs","operations.prioritization":"Modifier l'ordre de priorité","operations.transition":"Exécuter la transition","operations.promote":"Promouvoir un hit","operations.demote":"Rétrograder un hit","outline.assemblyline.beacons":"Balises","outline.assemblyline.file_path":"Chemin d'accès au fichier","outline.assemblyline.last_modified":"Dernière modification","outline.assemblyline.tags":"Tags","overview.search":"Recherche dans les champs du Hit","page.404.description":"La page que vous recherchez est introuvable ...","page.404.title":"404: Introuvable","page.error.title":"L'application ne fonctionne plus","page.error.description":"L'application a cessé de fonctionner soudainement. Si le problème persiste, veuillez nous contacter sur teams.","page.error.support":"Cliquez ici pour obtenir du soutien sur teams","page.dashboard.title":"Tableau de bord","page.documentation.categories":"Catégories d'API","page.documentation.categories.category":"Catégorie","page.documentation.categories.description":"Description","page.documentation.endpoints":"Points de terminaison de l'API","page.documentation.endpoint":"Point de terminaison","page.documentation.endpoint.explanation":"Nom de point de terminaison - Le nom convivial de l'endpoint.<br>Chemin d'accès au point de terminaison - le chemin d'accès à emprunter pour accéder à ce point de terminaison.<br>Stabilité du point de terminaison - Si ce point de terminaison est sûr à utiliser et peu susceptible de changer de manière significative.<br>Protection - S'il est nécessaire de s'authentifier pour accéder à ce point d'accès.<br>Méthodes - Quelles méthodes HTTP peuvent être utilisées pour accéder à ce point de terminaison.","page.documentation.required_type":"Types d'utilisateurs requis","page.documentation.required_type.explanation":"Quels types d'utilisateurs ont accès à ce point de terminaison. Si l'un des types est vert, vous y avez accès.","page.documentation.required_priv":"Privilèges requis pour la clé API","page.documentation.required_priv.explanation":"Les privilèges que la clé API que vous avez générée doit avoir pour interagir avec ce point de terminaison.","page.documentation.description":"Description du point de terminaison","page.documentation.description.explanation":"La documentation décrivant à quoi sert ce point de terminaison et comment vous devez interagir avec lui.","page.documentation.labels.name":"Catégorie de l'étiquette","page.documentation.labels.description":"Description de la catégorie","page.documentation.labels.example":"Exemple","page.help":"Aide","page.help.title":"Tableau de bord de l'aide","page.login.button":"Se connecter","page.login.error":"Tapez simplement n'importe quoi dans les champs du nom d'utilisateur et du mot de passe ...","page.login.password":"Mot de passe","page.login.username":"Nom d'utilisateur","page.logout":"Déconnexion de l'utilisateur actuel ... ","page.settings":"Paramètres de votre compte","page.settings.profile.table.email":"Courriel","page.settings.profile.table.groups":"Groupes","page.settings.profile.table.groups.description":"Ce tiroir vous montrera tous les groupes dont howler vous considère comme faisant partie. Cela peut être utile pour vérifier que vous avez les permissions et les rôles que vous attendez en fonction de votre méthode d'authentification.","page.settings.profile.table.name":"Nom","page.settings.profile.table.roles":"Rôles","page.settings.profile.table.username":"Nom d'utilisateur","page.settings.profile.title":"Profile","page.settings.security.table.apikeys":"Clés API","page.settings.security.table.apiquota":"Quota API","page.settings.security.table.apiquota.description":"Ce quota API gère le nombre de requêtes simultanées qu'un utilisateur peut faire à howler. Pour les utilisateurs à fort volume, ce quota peut les limiter et un administrateur devra le changer pour un nombre plus élevé.","page.settings.security.table.password":"Mot de passe","page.settings.security.title":"Sécurité de l'utilisateur","page.settings.sitemap":"Paramètres","page.settings.local.title":"Préférences de l'interface utilisateur","page.settings.local.compact.json":"Afficher la vue JSON compacte","page.settings.local.compact.json.description":"Activer ou désactiver une vue JSON plus compacte, mieux adaptée à la visualisation d'un grand nombre de données en une seule fois","page.settings.local.flatten.json":"Aplatir le JSON dans la vue JSON","page.settings.local.flatten.json.description":"Au lieu d'afficher la structure d'objet du JSON, affichez-la sous forme de clés aplaties","page.settings.local.details.drawer":"Toujours utiliser le tiroir dans la recherche du hit","page.settings.local.details.drawer.description":"Au lieu de basculer entre une vue divisée et le tiroir en fonction de la taille de l'écran, ce paramètre oblige Howler à toujours utiliser le tiroir.","page.settings.local.hits.display_type":"Type d'affichage par défaut pour les résultats","page.settings.local.hits.display_type.description":"Ce paramètre vous permet de choisir entre l'affichage sous forme de liste ou de grille par défaut lors d'une recherche.","page.settings.local.hits.display_type.list":"Liste","page.settings.local.hits.display_type.grid":"Grille","page.settings.local.hits.layout":"Change Layout","page.settings.local.hits.layout.description":"Ce paramètre vous permet de décider de la quantité de rembourrage et d'espacement, ainsi que de la taille de la police et de la taille de l'élément, que nous utilisons lors du rendu de l'interface utilisateur. Plus l'interface est dense, plus il est possible d'afficher de données.","page.settings.local.hits.layout.dense":"Dense","page.settings.local.hits.layout.normal":"Normal","page.settings.local.hits.layout.comfy":"Confortable","page.settings.local.search.width":"Largeur maximale des résultats","page.settings.local.search.width.description":"Taille maximale (en pixels) de la colonne des résultats dans la page de recherche.","page.settings.local.results.count":"Résultats par page","page.settings.local.results.count.description":"Combien de résultats devons-nous afficher par page lors de l'affichage des résultats de recherche ?","page.settings.admin.title":"Administration","page.user.search":"Chercher des utilisateurs","page.user.search.column.username":"Nom d'utilisateur","page.user.search.column.fullname":"Nom complet","page.user.search.column.email":"E-mail","page.user.search.column.groups":"Groupes","page.user.search.prompt":"Rechercher par nom d'utilisateur, nom complet, e-mail ou groupe",password:stt,"password.confirm":"Confirmer le mot de passe","password.match":"Le mot de passe et le mot de passe de confirmation doivent correspondre","password.success":"Votre nouveau mot de passe a été défini. Vous serez déconnecté dans cinq secondes.",personalization:ott,"personalization.autohideappbar":"Masquer la barre supérieure","personalization.dark":"Mode Sombre","personalization.minimizebreadcrumbs":"Minimiser fils d'ariane","personalization.quicksearch":"Afficher recherche rapide","personalization.reset_text":"Réinitialiser les paramètres","personalization.showbreadcrumbs":"Afficher fils d'ariane","personalization.sticky":"Barre supérieure collante",query:att,"quicksearch.aria":"recherche","quicksearch.placeholder":"Recherche ...","rationale.default":"Hit évaluée comme {{assessment}}",references:ltt,"retention.imminent":"à quelques instants","retention.safe":"Ce résultat est {{ duration }} de la suppression automatique.","retention.warn":"Ce résultat est {{ duration }} de la suppression automatique. Envisagez de conserver le résultat positif si vous voulez éviter la perte de données.","retention.error":"Ce résultat est {{ duration }} de la suppression automatique. Vous n'aurez bientôt plus accès à ce résultat dans Howler. Pensez à conserver ce résultat si vous voulez éviter toute perte de données.","route.admin.user.details":"Détails d'utilisateur","route.admin.user.search":"Recherche utilisateurs","route.advanced":"Recherche avancée","route.advanced.error":"Erreur de recherche","route.advanced.fields":"Champs à montrer","route.advanced.fields.all":"Afficher tous les champs","route.advanced.open":"Ouvrir en recherche","route.advanced.rows":"Nombre de lignes à renvoyer","route.advanced.create.rule":"Créer une règle","route.advanced.create.rule.disabled":"Vous devez d'abord lancer votre recherche pour vous assurer qu'elle est valide","route.advanced.query.lucene":"Requête Lucene","route.advanced.query.lucene.description":"Apache Lucence est une syntaxe de recherche utilisée par elasticsearch, Howler et apache lucene. Voir notre documentation pour plus d'informations à ce sujet.","route.advanced.query.eql":"Requête EQL","route.advanced.query.eql.description":"Event Query Language (EQL) est un langage de requête pour les données de séries temporelles basées sur des événements, telles que les journaux, les métriques et les traces.","route.advanced.query.yaml":"Règle Sigma","route.advanced.query.yaml.description":"Sigma est un format de signature générique et ouvert qui vous permet de décrire des événements de journal pertinents de manière directe. Le format de règle est très flexible, facile à écrire et applicable à tout type de fichier journal.","route.advanced.result.title":"Recherche avancée de howler","route.advanced.result.description":"Exécutez une requête pour afficher les résultats ici.","route.advanced.rule.type":"Type de règle","route.advanced.pivot.field":"Champ à regrouper par","route.advanced.query.type":"Type de requête","route.advanced.query.type.default":"Défaut","route.advanced.query.type.facet":"Facette","route.advanced.query.type.groupby":"Regrouper","route.analytics":"Analyses","route.analytics.deleted":"Règle supprimée!","route.analytics.detections":"Détections:","route.analytics.tags":"Tags:","route.analytics.rule":"règle","route.analytics.rule.title":"Requête de règle","route.analytics.contributors":"Contributeurs","route.analytics.filter.rule":"Filtre sur les règles","route.analytics.pinned":"Analyses épinglées","route.analytics.search.prompt":"Recherche par nom ou par détection.","route.analytics.search.filter.rules.show":"Afficher uniquement les règles","route.analytics.search.filter.rules.hide":"Cacher les règles uniquement","route.analytics.search.filter.rules.toggle":"Filtrer les règles","route.analytics.tab.overview":"Sommaire","route.analytics.tab.overviews":"Vues d'ensemble","route.analytics.tab.comments":"Commentaires","route.analytics.tab.hit_comments":"Commentaires des hits","route.analytics.tab.notebooks":"Notebooks","route.analytics.tab.rule":"Requête de règle","route.analytics.tab.templates":"Modèles","route.analytics.tab.triage":"Triage","route.analytics.view":"Voir l'analyse","route.analytics.overview.description":"Description","route.analytics.overview.statistics":"Statistiques","route.analytics.overview.limit":"Limité aux 10 000 dernières hits.","route.analytics.overview.empty.title":"Pas de statistiques à montrer","route.analytics.overview.empty.description":"Il n'y a pas de résultats existants pour cette analyse. Les statistiques ne peuvent pas être affichées.","route.analytics.ingestion.title":"Nombre de hits créés","route.analytics.escalation.title":"Escalade des hits créés","route.analytics.assessment.title":"Résultat de l'évaluation des hits créés","route.analytics.status.title":"État cumulatif des hits créés au cours des trois derniers mois","route.analytics.detection.title":"Hits ingérés au cours des trois derniers mois par détection","route.analytics.updated":"Analytic mis a jour!","route.analytics.set.owner":"Changement de propriétaire","route.analytics.triage.title":"Paramètres de triage","route.analytics.triage.rationale":"Sauter la justification","route.analytics.triage.rationale.description":"Lors du triage des alertes provenant de cette analyse, la justification n'est pas demandée et est générée automatiquement.","route.analytics.triage.assessments":"Résultats d'évaluation autorisés","route.analytics.triage.assessments.description":"Lors du triage des alertes provenant de cette analyse, quelles sont les évaluations valides?","route.actions":"Actions","route.actions.operation.add":"Ajouter une nouvelle opération","route.actions.alert.error":"Il y a {{count}} hits dans votre requête pour lesquels cette opération peut échouer.","route.actions.alert.success":"Cette action devrait s'exécuter sans problème.","route.actions.alert.warning":"Il y a {{count}} occurrences dans votre requête pour lesquelles cette opération pourrait ne pas avoir d'effet.","route.actions.automate":"Automatiser","route.actions.change":"Exécuter un action","route.actions.create":"Nouveau action","route.actions.edit":"Modifier","route.actions.execute":"Exécuter","route.actions.name":"Nom de l'action","route.actions.open":"Ouvrir la requête","route.actions.view":"Visualiser","route.actions.report":"Rapport d'action","route.actions.restart":"Redémarrer","route.actions.save":"Sauvegarder l'action","route.actions.search":"Rechercher des actions","route.actions.search.open":"Ouvrir la liste","route.actions.search.prompt":"Recherche par nom ou par requête.","route.actions.search.warning":"Avant d'ajouter des opérations, vous devez exécuter et valider une requête.","route.actions.trigger.description":"Cette action a été automatisée. Elle s'exécutera automatiquement lorsque le(s) déclencheur(s) <bold>{{triggers}}</bold> sera (seront) atteint(s).","route.actions.query.empty":"La requête ne peut pas être vide.","route.actions.trigger":"Filtrer par déclencheur","route.actions.trigger.create":"Exécution lors du création","route.actions.trigger.promote":"Exécution lors du promotion","route.actions.trigger.demote":"Exécution lors du démotion","route.actions.trigger.update":"Exécution lors de la mise à jour","route.actions.trigger.resolve":"Exécution lors de la résolution","route.actions.trigger.add_label":"Exécution sur l'ajout d'une étiquette","route.actions.trigger.remove_label":"Exécuter la suppression de l'étiquette","route.actions.trigger.disabled.explanation":"L'une des opérations sélectionnées ne prend pas en charge ce déclencheur.","route.actions.trigger.disabled.permissions":"Vous n'avez pas les rôles corrects pour exécuter ce déclencheur.","route.integrations":"Intégrations","route.help":"Aide","route.help.main":"Tableau de bord","route.help.api":"Documentation de l'API","route.help.auth":"Authentification","route.help.bundles":"Groupes des hits","route.help.client":"Client Howler","route.help.hit":"Documentation sur les coups","route.help.search":"Recherche","route.help.templates":"Modèles","route.help.overviews":"Vues d'ensemble","route.help.notebook":"Documentation des carnets","route.help.views":"Vues","route.help.retention":"Rétention","route.hits":"Alertes","route.hits.bundle":"Voir groupe","route.hits.view":"Afficher hit","route.home.add.analytic.description":"Sélectionnez l'analyse pour laquelle les données doivent être affichées, et la visualisation à présenter","route.home.add.analytic.title":"Ajouter des statistiques analytiques","route.home.add.analytic":"Analytique","route.home.add.description":"Ajoutez un panneau supplémentaire à votre tableau de bord en sélectionnant le type que vous souhaitez ajouter et en complétant la configuration","route.home.add.limit.description":"Nombre maximal d'occurrences à afficher","route.home.add.limit":"Limite du résultat","route.home.add.type.analytic.description":"Présenter les statistiques d'une analyse donnée = les évaluations résultantes, le nombre de résultats créés ou l'escalade des résultats créés","route.home.add.type.analytic":"Panneau analytique","route.home.add.type.view.description":"Présenter une vue sauvegardée, limitée à un certain nombre de résultats","route.home.add.type.view":"Panneau d'affichage","route.home.add.type":"Type de panneau","route.home.add.view":"Vue à présenter","route.home.add.visualization.assessment.description":"Pour les hits qui ont été triés, quelle a été l'évaluation qui en a résulté ?","route.home.add.visualization.assessment":"Résultat de l'évaluation des résultats créés","route.home.add.visualization.created.description":"Série temporelle du nombre de hits créés par l'analytique au cours des 90 derniers jours","route.home.add.visualization.created":"Nombre de hits créés","route.home.add.visualization.detection.description":"Pour les hits créés au cours des trois derniers mois, quel est leur niveau de détection ?","route.home.add.visualization.detection":"Hits créés par détection","route.home.add.visualization.escalation.description":"Pour les hits qui ont été triés, quelle a été l'escalade qui en a résulté ?","route.home.add.visualization.escalation":"Escalade des hits créés","route.home.add.visualization.status.description":"Quel est l'état des hits créés au cours des trois derniers mois ?","route.home.add.visualization.status":"État cumulatif des hits créés","route.home.add.visualization.unavailable":"Aucune option de visualisation disponible.","route.home.add.visualization":"Visualisation","route.home.add":"Ajouter un nouveau panneau","route.home.alert.updated.description":"Des mises à jour ont été apportées aux alertes auxquelles vous participez. Depuis votre dernière consultation, {{count}} alertes ont été mises à jour","route.home.alert.updated.title":"Alert Updates","route.home.description":"Bienvenue sur Howler. Vous pouvez ajouter des éléments à votre tableau de bord en utilisant les boutons ci-dessus.","route.home.title":"Howler","route.home":"Tableau de bord utilisateur","route.history":"Mode historique : Voir toutes les requêtes précédentes","route.clear":"Effacer la requête","route.help.hit.banner":"Documentation sur en-tête de hit","route.login.button.oauth":"Se connecter avec","route.templates":"Modèles","route.templates.analytic":"Choisir une analyse","route.templates.detection":"Choisir une détection","route.templates.builtin":"Intégré","route.templates.builtin.show":"Modèles intégrés","route.templates.builtin.hide":"Masquer les modèles intégrés","route.templates.default":"Défaut","route.templates.global":"Général","route.templates.personal":"Personnel","route.templates.search.prompt":"Recherche par clé d'analyse, de détection ou de modèle.","route.templates.select":"Choisir une analyse et une détection pour visualiser et modifier le modèle.","route.templates.readonly.warning":"Il s'agit d'un modèle intégré qui ne peut pas être modifié. Pour le modifier, veuillez contacter","route.templates.prompt":"Activer l'autocomplétion en utilisant [ctrl + espace].","route.templates.view":"Voir le modèle","route.templates.create":"Nouvelle modèle","route.templates.manager.global":"Global","route.templates.manager.personal":"Personnel","route.templates.manager.readonly":"Intégré","route.templates.manager.search":"Rechercher les modèles","route.templates.rule.explanation":"Il s'agit d'une analyse Howler. Il n'y a qu'une seule détection, qui a été présélectionnée.","route.overviews":"Vues d'ensemble","route.overviews.analytic":"Choisir une analyse","route.overviews.detection":"Choisir une détection","route.overviews.default":"Défaut","route.overviews.search.prompt":"Recherche par titre, contenu, clé d'analyse ou de détection.","route.overviews.select":"Choisir une analyse et une détection pour visualiser et modifier la vue d'ensemble.","route.overviews.prompt":"Activer l'autocomplétion en utilisant [ctrl + espace].","route.overviews.view":"Voir la vue d'ensemble","route.overviews.create":"Nouvelle vue d'ensemble","route.overviews.manager.search":"Rechercher les vues d'ensemble","route.overviews.manager.delete":"Supprimer la vue d'ensemble","route.overviews.manager.delete.success":"Vue d'ensemble Supprimée.","route.overviews.theme.light":"Prévoyez en mode clair","route.overviews.theme.dark":"Prévoyez en mode sombre","route.dossiers":"Dossiers","route.dossiers.default":"Défaut","route.dossiers.search.prompt":"Recherche par titre, requête ou propriétaire.","route.dossiers.prompt":"Activez l'autocomplétion en utilisant [ctrl + espace].","route.dossiers.view":"Voir le dossier","route.dossiers.create":"Nouveau dossier","route.dossiers.edit":"Modifier le dossier","route.dossiers.manager.search":"Rechercher un dossier","route.dossiers.manager.delete":"Supprimer un dossier","route.dossiers.manager.delete.success":"Dossier supprimé.","route.dossiers.manager.field.title":"Titre","route.dossiers.manager.field.type":"Type","route.dossiers.manager.field.query":"Requête","route.dossiers.manager.global":"Global","route.dossiers.manager.personal":"Personnel","route.dossiers.manager.lead.create":"Créez un nouveau dossier en appuyant sur le bouton à droite.","route.dossiers.manager.icon":"Icône de la piste","route.dossiers.manager.icon.description":"Spécifiez une icône à l'aide de l'ID iconify. Pour parcourir les icônes, cliquez sur le bouton à droite.","route.dossiers.manager.label.en":"English Title","route.dossiers.manager.label.fr":"Titre français","route.dossiers.manager.format":"Format de la piste","route.dossiers.manager.tabs.leads":"Pistes","route.dossiers.manager.tabs.pivots":"Pivots","route.dossiers.manager.pivot.create":"Vous n'avez actuellement aucun pivot configuré. Appuyez sur le bouton Ajouter à droite pour en créer un nouveau.","route.dossiers.manager.pivot.icon":"Icône du pivot","route.dossiers.manager.pivot.label.en":"English Title","route.dossiers.manager.pivot.label.fr":"Titre français","route.dossiers.manager.pivot.format":"Format du pivot","route.dossiers.manager.pivot.value":"Valeur du pivot","route.dossiers.manager.pivot.mappings":"Mappages de pivot","route.dossiers.manager.pivot.mapping.key":"Clé","route.dossiers.manager.pivot.mapping.field":"Champs du hit","route.dossiers.manager.pivot.mapping.custom":"Valeur personnalisée","route.dossiers.manager.validation.error":"Dossier est invalide.","route.dossiers.manager.validation.search":"Vous devez effectuer une recherche pour valider votre requête avant de la soumettre.","route.dossiers.manager.validation.error.missing":"{{field}} est invalide.","route.dossiers.manager.validation.error.leads":"Une piste est mal configuré.","route.dossiers.manager.validation.error.pivots":"Un pivot est mal configuré.","route.dossiers.manager.validation.error.pivots.duplicate":"Un pivot a une clé dupliquée.","route.dossiers.manager.validation.error.items":"Vous n'avez pas configuré de pistes ou de pivots.","route.views.create.success":"Vue crée.","route.views.update.success":"Vue actualisée.","route.views.create":"Nouvelle vue","route.views.edit":"Modifier vue","route.views.manager.all":"Tous","route.views.manager.default":"Vue par défaut","route.views.manager.favourites":"Afficher uniquement les favoris","route.views.manager.global":"Global","route.views.manager.open":"Ouvrier la vue","route.views.manager.personal":"Personnel","route.views.manager.readonly":"Intégré","route.views.manager.search":"Rechercher les vues","route.views.manager":"Gérer vue","route.views.save":"Enregistrer cette requête comme vue","route.views.saved":"Vues épinglées","route.views.show":"Voir les vues","route.views":"Vues","search.open":"Ouvrir la recherche","search.result.showing":"Affichage de {{offset}} à {{length}} sur {{total}} articles","search.result.showing.single":"Aucun articles","templates.edit.analytic":"Modifier modèle pour cette analyse","templates.edit.detection":"Modifier modèle pour cette détection","tooltip.breadcrumbs.max":"Maximiser fils d'ariane","tooltip.breadcrumbs.min":"Minimiser fils d'ariane","app.list.empty":"Aucun résultat",save:ctt,"search.total":"Il y a un total de {{count}} résultats correspondant à cette requête.",unknown:utt,using:dtt,"user.error.failed":"L'API a été incapable de retourner les informations d'utilisateur.","user.error.modal.body":"Une erreur inconnue s'est produite lors de la connexion au serveur. Veuillez réessayer plus tard.","user.error.modal.details":"Détails: ","user.error.modal.header":"Une erreur s'est produite","user.error.modal.reload":"Recharger la fenêtre","user.login.failed":"Informations de connexion non valides. Veuillez vérifier votre nom d'utilisateur et votre mot de passe.",usermenu:htt,"usermenu.logout":"Déconnecter","usermenu.settings":"Paramètres","view.assigned_to_me":"Assigné à moi","view.notfound":"Cette vue n'est pas disponible pour vous, ou n'existe pas.","view.settings.advance_on_triage":"Passer à la hit suivant lors du triage","view.settings.advance_on_triage.description":"Si cette option est activée, le triage d'une hit sur cette vue passera automatiquement à la hit suivant, ce qui facilitera le triage rapide des résultats.","Unclassified//Official Use Only":"Non classé//Réservé à des fins officielles","Protected B":"Protégé B","query.invalid":"Requête invalide","tui.query.save.alert":"Charger une vue enregistrée ou enregistrer la requête actuelle en tant que vue","tui.query.load":"Charger une vue enregistrée","tui.query.invalid":"Requête invalide","tui.query.store.delete":"Supprimer la vue enregistrée","tui.query.store.load":"Charger la vue enregistrée dans le champ de saisie","tui.query.views.load":"Charger les vues actives dans le champ de saisie","tui.query.views.clear":"Effacer les vues actives","tui.query.save.append":"Ajouter les vues actives",global:ftt,unset:ptt};var H$,f0e;function mtt(){return f0e||(f0e=1,H$={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),H$}var Ttt=mtt();const btt=$l(Ttt);var _tt=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function p0e(n){var e={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},t=n.match(/<\/?([^\s]+?)[/\s>]/);if(t&&(e.name=t[1],(btt[t[1]]||n.charAt(n.length-2)==="/")&&(e.voidElement=!0),e.name.startsWith("!--"))){var i=n.indexOf("-->");return{type:"comment",comment:i!==-1?n.slice(4,i):""}}for(var r=new RegExp(_tt),s=null;(s=r.exec(n))!==null;)if(s[0].trim())if(s[1]){var a=s[1].trim(),o=[a,""];a.indexOf("=")>-1&&(o=a.split("=")),e.attrs[o[0]]=o[1],r.lastIndex--}else s[2]&&(e.attrs[s[2]]=s[3].trim().substring(1,s[3].length-1));return e}var vtt=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,ytt=/^\s*$/,wtt=Object.create(null);function oCe(n,e){switch(e.type){case"text":return n+e.content;case"tag":return n+="<"+e.name+(e.attrs?(function(t){var i=[];for(var r in t)i.push(r+'="'+t[r]+'"');return i.length?" "+i.join(" "):""})(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?n:n+e.children.reduce(oCe,"")+"</"+e.name+">";case"comment":return n+"<!--"+e.comment+"-->"}}var Ctt={parse:function(n,e){e||(e={}),e.components||(e.components=wtt);var t,i=[],r=[],s=-1,a=!1;if(n.indexOf("<")!==0){var o=n.indexOf("<");i.push({type:"text",content:o===-1?n:n.substring(0,o)})}return n.replace(vtt,function(l,c){if(a){if(l!=="</"+t.name+">")return;a=!1}var u,h=l.charAt(1)!=="/",d=l.startsWith("<!--"),f=c+l.length,p=n.charAt(f);if(d){var g=p0e(l);return s<0?(i.push(g),i):((u=r[s]).children.push(g),i)}if(h&&(s++,(t=p0e(l)).type==="tag"&&e.components[t.name]&&(t.type="component",a=!0),t.voidElement||a||!p||p==="<"||t.children.push({type:"text",content:n.slice(f,n.indexOf("<",f))}),s===0&&i.push(t),(u=r[s-1])&&u.children.push(t),r[s]=t),(!h||t.voidElement)&&(s>-1&&(t.voidElement||t.name===l.slice(2,-1))&&(s--,t=s===-1?i:r[s]),!a&&p!=="<"&&p)){u=s===-1?i:r[s].children;var m=n.indexOf("<",f),T=n.slice(f,m===-1?void 0:m);ytt.test(T)&&(T=" "),(m>-1&&s+u.length>=0||T!==" ")&&u.push({type:"text",content:T})}}),i},stringify:function(n){return n.reduce(function(e,t){return e+oCe("",t)},"")}};function MR(){if(console&&console.warn){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];j0(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e)}}const g0e={};function TH(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];j0(e[0])&&g0e[e[0]]||(j0(e[0])&&(g0e[e[0]]=new Date),MR(...e))}const aCe=(n,e)=>()=>{if(n.isInitialized)e();else{const t=()=>{setTimeout(()=>{n.off("initialized",t)},0),e()};n.on("initialized",t)}},m0e=(n,e,t)=>{n.loadNamespaces(e,aCe(n,t))},T0e=(n,e,t,i)=>{j0(t)&&(t=[t]),t.forEach(r=>{n.options.ns.indexOf(r)<0&&n.options.ns.push(r)}),n.loadLanguages(e,aCe(n,i))},Qtt=function(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=e.languages[0],r=e.options?e.options.fallbackLng:!1,s=e.languages[e.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const a=(o,l)=>{const c=e.services.backendConnector.state[`${o}|${l}`];return c===-1||c===2};return t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!a(e.isLanguageChangingTo,n)?!1:!!(e.hasResourceBundle(i,n)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||a(i,n)&&(!r||a(s,n)))},xtt=function(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!e.languages||!e.languages.length?(TH("i18n.languages were undefined or empty",e.languages),!0):e.options.ignoreJSONStructure!==void 0?e.hasLoadedNamespace(n,{lng:t.lng,precheck:(r,s)=>{if(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!s(r.isLanguageChangingTo,n))return!1}}):Qtt(n,e,t)},j0=n=>typeof n=="string",Ev=n=>typeof n=="object"&&n!==null,Stt=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Ltt={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Ett=n=>Ltt[n],ktt=n=>n.replace(Stt,Ett);let mX={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:ktt};const Att=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};mX={...mX,...n}},lCe=()=>mX;let cCe;const Itt=n=>{cCe=n},zoe=()=>cCe,F$=(n,e)=>{if(!n)return!1;const t=n.props?n.props.children:n.children;return e?t.length>0:!!t},B$=n=>{if(!n)return[];const e=n.props?n.props.children:n.children;return n.props&&n.props.i18nIsDynamicList?kv(e):e},Dtt=n=>Array.isArray(n)&&n.every(F.isValidElement),kv=n=>Array.isArray(n)?n:[n],Mtt=(n,e)=>{const t={...e};return t.props=Object.assign(n.props,e.props),t},uCe=(n,e)=>{if(!n)return"";let t="";const i=kv(n),r=e.transSupportBasicHtmlNodes&&e.transKeepBasicHtmlNodesFor?e.transKeepBasicHtmlNodesFor:[];return i.forEach((s,a)=>{if(j0(s))t+=`${s}`;else if(F.isValidElement(s)){const{props:o,type:l}=s,c=Object.keys(o).length,u=r.indexOf(l)>-1,h=o.children;if(!h&&u&&!c)t+=`<${l}/>`;else if(!h&&(!u||c)||o.i18nIsDynamicList)t+=`<${a}></${a}>`;else if(u&&c===1&&j0(h))t+=`<${l}>${h}</${l}>`;else{const d=uCe(h,e);t+=`<${a}>${d}</${a}>`}}else if(s===null)MR("Trans: the passed in value is invalid - seems you passed in a null child.");else if(Ev(s)){const{format:o,...l}=s,c=Object.keys(l);if(c.length===1){const u=o?`${c[0]}, ${o}`:c[0];t+=`{{${u}}}`}else MR("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",s)}else MR("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",s)}),t},Ott=(n,e,t,i,r,s)=>{if(e==="")return[];const a=i.transKeepBasicHtmlNodesFor||[],o=e&&new RegExp(a.map(m=>`<${m}`).join("|")).test(e);if(!n&&!o&&!s)return[e];const l={},c=m=>{kv(m).forEach(b=>{j0(b)||(F$(b)?c(B$(b)):Ev(b)&&!F.isValidElement(b)&&Object.assign(l,b))})};c(n);const u=Ctt.parse(`<0>${e}</0>`),h={...l,...r},d=(m,T,b)=>{const v=B$(m),_=p(v,T.children,b);return Dtt(v)&&_.length===0||m.props&&m.props.i18nIsDynamicList?v:_},f=(m,T,b,v,_)=>{m.dummy?(m.children=T,b.push(F.cloneElement(m,{key:v},_?void 0:T))):b.push(...F.Children.map([m],w=>{const y={...w.props};return delete y.i18nIsDynamicList,F.createElement(w.type,{...y,key:v,ref:w.ref},_?null:T)}))},p=(m,T,b)=>{const v=kv(m);return kv(T).reduce((w,y,C)=>{const x=y.children&&y.children[0]&&y.children[0].content&&t.services.interpolator.interpolate(y.children[0].content,h,t.language);if(y.type==="tag"){let S=v[parseInt(y.name,10)];b.length===1&&!S&&(S=b[0][y.name]),S||(S={});const L=Object.keys(y.attrs).length!==0?Mtt({props:y.attrs},S):S,E=F.isValidElement(L),I=E&&F$(y,!0)&&!y.voidElement,O=o&&Ev(L)&&L.dummy&&!E,k=Ev(n)&&Object.hasOwnProperty.call(n,y.name);if(j0(L)){const N=t.services.interpolator.interpolate(L,h,t.language);w.push(N)}else if(F$(L)||I){const N=d(L,y,b);f(L,N,w,C)}else if(O){const N=p(v,y.children,b);f(L,N,w,C)}else if(Number.isNaN(parseFloat(y.name)))if(k){const N=d(L,y,b);f(L,N,w,C,y.voidElement)}else if(i.transSupportBasicHtmlNodes&&a.indexOf(y.name)>-1)if(y.voidElement)w.push(F.createElement(y.name,{key:`${y.name}-${C}`}));else{const N=p(v,y.children,b);w.push(F.createElement(y.name,{key:`${y.name}-${C}`},N))}else if(y.voidElement)w.push(`<${y.name} />`);else{const N=p(v,y.children,b);w.push(`<${y.name}>${N}</${y.name}>`)}else if(Ev(L)&&!E){const N=y.children[0]?x:null;N&&w.push(N)}else f(L,x,w,C,y.children.length!==1||!x)}else if(y.type==="text"){const S=i.transWrapTextNodes,L=s?i.unescape(t.services.interpolator.interpolate(y.content,h,t.language)):t.services.interpolator.interpolate(y.content,h,t.language);S?w.push(F.createElement(S,{key:`${y.name}-${C}`},L)):w.push(L)}return w},[])},g=p([{dummy:!0,children:n||[]}],u,kv(n||[]));return B$(g[0])};function Ntt(n){let{children:e,count:t,parent:i,i18nKey:r,context:s,tOptions:a={},values:o,defaults:l,components:c,ns:u,i18n:h,t:d,shouldUnescape:f,...p}=n;const g=h||zoe();if(!g)return TH("You will need to pass in an i18next instance by using i18nextReactModule"),e;const m=d||g.t.bind(g)||(I=>I),T={...lCe(),...g.options&&g.options.react};let b=u||m.ns||g.options&&g.options.defaultNS;b=j0(b)?[b]:b||["translation"];const v=uCe(e,T),_=l||v||T.transEmptyNodeValue||r,{hashTransKey:w}=T,y=r||(w?w(v||_):v||_);g.options&&g.options.interpolation&&g.options.interpolation.defaultVariables&&(o=o&&Object.keys(o).length>0?{...o,...g.options.interpolation.defaultVariables}:{...g.options.interpolation.defaultVariables});const C=o||t!==void 0||!e?a.interpolation:{interpolation:{...a.interpolation,prefix:"#$?",suffix:"?$#"}},x={...a,context:s||a.context,count:t,...o,...C,defaultValue:_,ns:b},S=y?m(y,x):_;c&&Object.keys(c).forEach(I=>{const O=c[I];if(typeof O.type=="function"||!O.props||!O.props.children||S.indexOf(`${I}/>`)<0&&S.indexOf(`${I} />`)<0)return;function k(){return F.createElement(F.Fragment,null,O)}c[I]=F.createElement(k)});const L=Ott(c||e,S,g,T,x,f),E=i!==void 0?i:T.defaultTransParent;return E?F.createElement(E,p,L):L}const Rtt={type:"3rdParty",init(n){Att(n.options.react),Itt(n)}},Woe=F.createContext();class Ptt{constructor(){Hn(this,"getUsedNamespaces",()=>Object.keys(this.usedNamespaces));this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(t=>{this.usedNamespaces[t]||(this.usedNamespaces[t]=!0)})}}function La(n){let{children:e,count:t,parent:i,i18nKey:r,context:s,tOptions:a={},values:o,defaults:l,components:c,ns:u,i18n:h,t:d,shouldUnescape:f,...p}=n;const{i18n:g,defaultNS:m}=F.useContext(Woe)||{},T=h||g||zoe(),b=d||T&&T.t.bind(T);return Ntt({children:e,count:t,parent:i,i18nKey:r,context:s,tOptions:a,values:o,defaults:l,components:c,ns:u||b&&b.ns||m||T&&T.options&&T.options.defaultNS,i18n:T,t:d,shouldUnescape:f,...p})}const Htt=(n,e)=>{const t=F.useRef();return F.useEffect(()=>{t.current=n},[n,e]),t.current},dCe=(n,e,t,i)=>n.getFixedT(e,t,i),Ftt=(n,e,t,i)=>F.useCallback(dCe(n,e,t,i),[n,e,t,i]),ln=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:t}=e,{i18n:i,defaultNS:r}=F.useContext(Woe)||{},s=t||i||zoe();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new Ptt),!s){TH("You will need to pass in an i18next instance by using initReactI18next");const _=(y,C)=>j0(C)?C:Ev(C)&&j0(C.defaultValue)?C.defaultValue:Array.isArray(y)?y[y.length-1]:y,w=[_,{},!1];return w.t=_,w.i18n={},w.ready=!1,w}s.options.react&&s.options.react.wait!==void 0&&TH("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...lCe(),...s.options.react,...e},{useSuspense:o,keyPrefix:l}=a;let c=n||r||s.options&&s.options.defaultNS;c=j0(c)?[c]:c||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(c);const u=(s.isInitialized||s.initializedStoreOnce)&&c.every(_=>xtt(_,s,a)),h=Ftt(s,e.lng||null,a.nsMode==="fallback"?c:c[0],l),d=()=>h,f=()=>dCe(s,e.lng||null,a.nsMode==="fallback"?c:c[0],l),[p,g]=F.useState(d);let m=c.join();e.lng&&(m=`${e.lng}${m}`);const T=Htt(m),b=F.useRef(!0);F.useEffect(()=>{const{bindI18n:_,bindI18nStore:w}=a;b.current=!0,!u&&!o&&(e.lng?T0e(s,e.lng,c,()=>{b.current&&g(f)}):m0e(s,c,()=>{b.current&&g(f)})),u&&T&&T!==m&&b.current&&g(f);const y=()=>{b.current&&g(f)};return _&&s&&s.on(_,y),w&&s&&s.store.on(w,y),()=>{b.current=!1,_&&s&&_.split(" ").forEach(C=>s.off(C,y)),w&&s&&w.split(" ").forEach(C=>s.store.off(C,y))}},[s,m]),F.useEffect(()=>{b.current&&u&&g(d)},[s,l,u]);const v=[p,s,u];if(v.t=p,v.i18n=s,v.ready=u,u||!u&&!o)return v;throw new Promise(_=>{e.lng?T0e(s,e.lng,c,()=>_()):m0e(s,c,()=>_())})};function Btt(n){let{i18n:e,defaultNS:t,children:i}=n;const r=F.useMemo(()=>({i18n:e,defaultNS:t}),[e,t]);return F.createElement(Woe.Provider,{value:r},i)}const Vtt={en:{translation:h0e,helpSearch:zJe,helpMain:SJe},fr:{translation:gtt,helpSearch:Fet,helpMain:yet},woof:{translation:Object.keys(h0e).reduce((n,e)=>(n[e]="woof",n),{})}},N0=dJe();N0.use(sCe).use(Rtt).init({fallbackLng:"en",keySeparator:!1,interpolation:{escapeValue:!1},detection:{order:["localStorage","cookie"]},resources:Vtt});function jtt(n){const{toggleLanguage:e}=F.useContext(WV);return F.useEffect(()=>()=>{},[n]),F.useMemo(()=>({isFR:()=>N0.language==="fr",isEN:()=>N0.language==="en",toggle:e}),[e])}function Zm(){return F.useContext(Hwe)}function Sb(){return F.useContext(Vwe)}function ztt(){const{theme:n}=UV(),{preferences:e}=vc();return F.useMemo(()=>n==="dark"?e.appIconDark:e.appIconLight,[n,e])}function Wtt(){return F.useContext($we)}function qV(){return F.useContext(jwe)}function hCe(){return F.useContext(zwe)}var V$={exports:{}},c1={},j$={exports:{}},z$={};/**
|
|
150
150
|
* @license React
|
|
151
151
|
* scheduler.production.min.js
|
|
152
152
|
*
|
|
@@ -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-DuRlSfQK.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-BK1QQc6j.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-BcpM7yX9.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-BcpM7yX9.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-vxkSiqGs.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-BEPp36hQ.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-BdJz3vok.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-Ba00wyJK.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-U-WcoY93.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-83pV2sMB.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-BUVLl__t.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-DIc0zxm5.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-CHqdbNnV.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-B-MEsGDM.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-B-MEsGDM.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-2uA3yuPl.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-B82CdYRX.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-Dq0URTlu.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-
|
|
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-DioTpFWz.js").then(n=>n.a),[])}),abnf:Xe("abnf",function(){return Ae(()=>import("./abnf-BqnGCFuY.js").then(n=>n.a),[])}),actionscript:Xe("actionscript",function(){return Ae(()=>import("./actionscript-BbgSNYVF.js").then(n=>n.a),[])}),ada:Xe("ada",function(){return Ae(()=>import("./ada-3sghcvv1.js").then(n=>n.a),[])}),agda:Xe("agda",function(){return Ae(()=>import("./agda-CgL2h-w0.js").then(n=>n.a),[])}),al:Xe("al",function(){return Ae(()=>import("./al-vsYi18Zu.js").then(n=>n.a),[])}),antlr4:Xe("antlr4",function(){return Ae(()=>import("./antlr4-CozY3tDj.js").then(n=>n.a),[])}),apacheconf:Xe("apacheconf",function(){return Ae(()=>import("./apacheconf-Dzhopw7Y.js").then(n=>n.a),[])}),apex:Xe("apex",function(){return Ae(()=>import("./apex-Y6dn4L6I.js").then(n=>n.a),__vite__mapDeps([47,48]))}),apl:Xe("apl",function(){return Ae(()=>import("./apl-jZn2TWJJ.js").then(n=>n.a),[])}),applescript:Xe("applescript",function(){return Ae(()=>import("./applescript-OrmzeHw_.js").then(n=>n.a),[])}),aql:Xe("aql",function(){return Ae(()=>import("./aql-BGSx7NHZ.js").then(n=>n.a),[])}),arduino:Xe("arduino",function(){return Ae(()=>import("./arduino-DwvlxRGw.js").then(n=>n.a),__vite__mapDeps([49,50,51]))}),arff:Xe("arff",function(){return Ae(()=>import("./arff-B98O2VNU.js").then(n=>n.a),[])}),asciidoc:Xe("asciidoc",function(){return Ae(()=>import("./asciidoc-DGNGtqKK.js").then(n=>n.a),[])}),asm6502:Xe("asm6502",function(){return Ae(()=>import("./asm6502-DL5S2azo.js").then(n=>n.a),[])}),asmatmel:Xe("asmatmel",function(){return Ae(()=>import("./asmatmel-D5JFqklG.js").then(n=>n.a),[])}),aspnet:Xe("aspnet",function(){return Ae(()=>import("./aspnet-Cy1VX-B8.js").then(n=>n.a),__vite__mapDeps([52,53]))}),autohotkey:Xe("autohotkey",function(){return Ae(()=>import("./autohotkey-kqISEf8h.js").then(n=>n.a),[])}),autoit:Xe("autoit",function(){return Ae(()=>import("./autoit-CP-cynV8.js").then(n=>n.a),[])}),avisynth:Xe("avisynth",function(){return Ae(()=>import("./avisynth-C79P1xaZ.js").then(n=>n.a),[])}),avroIdl:Xe("avroIdl",function(){return Ae(()=>import("./avro-idl-DoL742iC.js").then(n=>n.a),[])}),bash:Xe("bash",function(){return Ae(()=>import("./bash-y8WYAizC.js").then(n=>n.b),__vite__mapDeps([54,55]))}),basic:Xe("basic",function(){return Ae(()=>import("./basic-UOOPREne.js").then(n=>n.b),__vite__mapDeps([56,57]))}),batch:Xe("batch",function(){return Ae(()=>import("./batch-D-7sm6he.js").then(n=>n.b),[])}),bbcode:Xe("bbcode",function(){return Ae(()=>import("./bbcode-XdG_O7uA.js").then(n=>n.b),[])}),bicep:Xe("bicep",function(){return Ae(()=>import("./bicep-DAEEitW6.js").then(n=>n.b),[])}),birb:Xe("birb",function(){return Ae(()=>import("./birb-Ck1Bhcp-.js").then(n=>n.b),[])}),bison:Xe("bison",function(){return Ae(()=>import("./bison-DKnlauVS.js").then(n=>n.b),__vite__mapDeps([58,51]))}),bnf:Xe("bnf",function(){return Ae(()=>import("./bnf-D-0GdKQe.js").then(n=>n.b),[])}),brainfuck:Xe("brainfuck",function(){return Ae(()=>import("./brainfuck-De2SGgOY.js").then(n=>n.b),[])}),brightscript:Xe("brightscript",function(){return Ae(()=>import("./brightscript-BbgxR96g.js").then(n=>n.b),[])}),bro:Xe("bro",function(){return Ae(()=>import("./bro-Bmk2GDXj.js").then(n=>n.b),[])}),bsl:Xe("bsl",function(){return Ae(()=>import("./bsl-CCrlVDJ9.js").then(n=>n.b),[])}),c:Xe("c",function(){return Ae(()=>import("./c-As7bwRFG.js").then(n=>n.c),__vite__mapDeps([59,51]))}),cfscript:Xe("cfscript",function(){return Ae(()=>import("./cfscript-Dc828Diw.js").then(n=>n.c),[])}),chaiscript:Xe("chaiscript",function(){return Ae(()=>import("./chaiscript-C-r2BVGs.js").then(n=>n.c),__vite__mapDeps([60,50,51]))}),cil:Xe("cil",function(){return Ae(()=>import("./cil-2M_oUilN.js").then(n=>n.c),[])}),clike:Xe("clike",function(){return Ae(()=>import("./clike-DezBoisu.js").then(n=>n.c),__vite__mapDeps([61,62]))}),clojure:Xe("clojure",function(){return Ae(()=>import("./clojure-Dv_ZnkG0.js").then(n=>n.c),[])}),cmake:Xe("cmake",function(){return Ae(()=>import("./cmake-CVE2d2sF.js").then(n=>n.c),[])}),cobol:Xe("cobol",function(){return Ae(()=>import("./cobol-B4Y66MqL.js").then(n=>n.c),[])}),coffeescript:Xe("coffeescript",function(){return Ae(()=>import("./coffeescript-DZrXFmEg.js").then(n=>n.c),[])}),concurnas:Xe("concurnas",function(){return Ae(()=>import("./concurnas-6l_W23xH.js").then(n=>n.c),[])}),coq:Xe("coq",function(){return Ae(()=>import("./coq-Biq8Q8Jw.js").then(n=>n.c),[])}),cpp:Xe("cpp",function(){return Ae(()=>import("./cpp-CmEDFqok.js").then(n=>n.c),__vite__mapDeps([63,50,51]))}),crystal:Xe("crystal",function(){return Ae(()=>import("./crystal-Be4Ix_C5.js").then(n=>n.c),__vite__mapDeps([64,65]))}),csharp:Xe("csharp",function(){return Ae(()=>import("./csharp-DQbxaBUY.js").then(n=>n.c),__vite__mapDeps([66,53]))}),cshtml:Xe("cshtml",function(){return Ae(()=>import("./cshtml-BDdOklOg.js").then(n=>n.c),__vite__mapDeps([67,53]))}),csp:Xe("csp",function(){return Ae(()=>import("./csp-Co-YGM0l.js").then(n=>n.c),[])}),cssExtras:Xe("cssExtras",function(){return Ae(()=>import("./css-extras-DLiiEFqS.js").then(n=>n.c),[])}),css:Xe("css",function(){return Ae(()=>import("./css-B4-6GSTq.js").then(n=>n.c),__vite__mapDeps([68,69]))}),csv:Xe("csv",function(){return Ae(()=>import("./csv-DR5gorE5.js").then(n=>n.c),[])}),cypher:Xe("cypher",function(){return Ae(()=>import("./cypher-ClXBVod5.js").then(n=>n.c),[])}),d:Xe("d",function(){return Ae(()=>import("./d-BY8gl-ZO.js").then(n=>n.d),[])}),dart:Xe("dart",function(){return Ae(()=>import("./dart-C5YzoyyS.js").then(n=>n.d),[])}),dataweave:Xe("dataweave",function(){return Ae(()=>import("./dataweave-nckZ105Q.js").then(n=>n.d),[])}),dax:Xe("dax",function(){return Ae(()=>import("./dax-D8GVQ7Q9.js").then(n=>n.d),[])}),dhall:Xe("dhall",function(){return Ae(()=>import("./dhall-CbYhVtfA.js").then(n=>n.d),[])}),diff:Xe("diff",function(){return Ae(()=>import("./diff-9pxv5BRy.js").then(n=>n.d),[])}),django:Xe("django",function(){return Ae(()=>import("./django-CJyHWJir.js").then(n=>n.d),__vite__mapDeps([70,71]))}),dnsZoneFile:Xe("dnsZoneFile",function(){return Ae(()=>import("./dns-zone-file-CQ8jRY4p.js").then(n=>n.d),[])}),docker:Xe("docker",function(){return Ae(()=>import("./docker-HGsdlkqh.js").then(n=>n.d),[])}),dot:Xe("dot",function(){return Ae(()=>import("./dot-DNGy4950.js").then(n=>n.d),[])}),ebnf:Xe("ebnf",function(){return Ae(()=>import("./ebnf-CkHI3N5e.js").then(n=>n.e),[])}),editorconfig:Xe("editorconfig",function(){return Ae(()=>import("./editorconfig-D06mE07y.js").then(n=>n.e),[])}),eiffel:Xe("eiffel",function(){return Ae(()=>import("./eiffel-BJpYxKun.js").then(n=>n.e),[])}),ejs:Xe("ejs",function(){return Ae(()=>import("./ejs-BeKPa0nU.js").then(n=>n.e),__vite__mapDeps([72,71]))}),elixir:Xe("elixir",function(){return Ae(()=>import("./elixir-CedVvrPi.js").then(n=>n.e),[])}),elm:Xe("elm",function(){return Ae(()=>import("./elm-B0-q6VYS.js").then(n=>n.e),[])}),erb:Xe("erb",function(){return Ae(()=>import("./erb-GhmIA6zi.js").then(n=>n.e),__vite__mapDeps([73,65,71]))}),erlang:Xe("erlang",function(){return Ae(()=>import("./erlang-C5KZlUz6.js").then(n=>n.e),[])}),etlua:Xe("etlua",function(){return Ae(()=>import("./etlua-BmF_6wvJ.js").then(n=>n.e),__vite__mapDeps([74,75,71]))}),excelFormula:Xe("excelFormula",function(){return Ae(()=>import("./excel-formula-D5gtUx8v.js").then(n=>n.e),[])}),factor:Xe("factor",function(){return Ae(()=>import("./factor-D48PUs7v.js").then(n=>n.f),[])}),falselang:Xe("falselang",function(){return Ae(()=>import("./false-DNBRMIcQ.js").then(n=>n._),[])}),firestoreSecurityRules:Xe("firestoreSecurityRules",function(){return Ae(()=>import("./firestore-security-rules-DyCToKTz.js").then(n=>n.f),[])}),flow:Xe("flow",function(){return Ae(()=>import("./flow-M9mA_o0w.js").then(n=>n.f),[])}),fortran:Xe("fortran",function(){return Ae(()=>import("./fortran-O32_VKq-.js").then(n=>n.f),[])}),fsharp:Xe("fsharp",function(){return Ae(()=>import("./fsharp-BX_2IPMw.js").then(n=>n.f),[])}),ftl:Xe("ftl",function(){return Ae(()=>import("./ftl-pbEL73ZV.js").then(n=>n.f),__vite__mapDeps([76,71]))}),gap:Xe("gap",function(){return Ae(()=>import("./gap-C0YiF0W1.js").then(n=>n.g),[])}),gcode:Xe("gcode",function(){return Ae(()=>import("./gcode-DB1SAZXo.js").then(n=>n.g),[])}),gdscript:Xe("gdscript",function(){return Ae(()=>import("./gdscript--ZzoLMAK.js").then(n=>n.g),[])}),gedcom:Xe("gedcom",function(){return Ae(()=>import("./gedcom-zIvB0YHx.js").then(n=>n.g),[])}),gherkin:Xe("gherkin",function(){return Ae(()=>import("./gherkin-TgXIjFEd.js").then(n=>n.g),[])}),git:Xe("git",function(){return Ae(()=>import("./git-DjHRoRrM.js").then(n=>n.g),[])}),glsl:Xe("glsl",function(){return Ae(()=>import("./glsl-pHJofW_H.js").then(n=>n.g),__vite__mapDeps([77,51]))}),gml:Xe("gml",function(){return Ae(()=>import("./gml-zhhfbiSx.js").then(n=>n.g),[])}),gn:Xe("gn",function(){return Ae(()=>import("./gn-D4x0Pwhh.js").then(n=>n.g),[])}),goModule:Xe("goModule",function(){return Ae(()=>import("./go-module-B4XvBoEL.js").then(n=>n.g),[])}),go:Xe("go",function(){return Ae(()=>import("./go-Cj4d35qU.js").then(n=>n.g),[])}),graphql:Xe("graphql",function(){return Ae(()=>import("./graphql-CUSvvdv8.js").then(n=>n.g),[])}),groovy:Xe("groovy",function(){return Ae(()=>import("./groovy-DrR3HxYo.js").then(n=>n.g),[])}),haml:Xe("haml",function(){return Ae(()=>import("./haml-CN9PA430.js").then(n=>n.h),__vite__mapDeps([78,65]))}),handlebars:Xe("handlebars",function(){return Ae(()=>import("./handlebars-C5qFcGzp.js").then(n=>n.h),__vite__mapDeps([79,71]))}),haskell:Xe("haskell",function(){return Ae(()=>import("./haskell-YMCCZCvZ.js").then(n=>n.h),__vite__mapDeps([80,81]))}),haxe:Xe("haxe",function(){return Ae(()=>import("./haxe-DEtqiMDx.js").then(n=>n.h),[])}),hcl:Xe("hcl",function(){return Ae(()=>import("./hcl-BvfmVH15.js").then(n=>n.h),[])}),hlsl:Xe("hlsl",function(){return Ae(()=>import("./hlsl-D9Cuhn6a.js").then(n=>n.h),__vite__mapDeps([82,51]))}),hoon:Xe("hoon",function(){return Ae(()=>import("./hoon-CyNTKZO8.js").then(n=>n.h),[])}),hpkp:Xe("hpkp",function(){return Ae(()=>import("./hpkp-PMePQN4R.js").then(n=>n.h),[])}),hsts:Xe("hsts",function(){return Ae(()=>import("./hsts-C1IEUiiw.js").then(n=>n.h),[])}),http:Xe("http",function(){return Ae(()=>import("./http-CzBtUqN2.js").then(n=>n.h),[])}),ichigojam:Xe("ichigojam",function(){return Ae(()=>import("./ichigojam-CtAs8Ru9.js").then(n=>n.i),[])}),icon:Xe("icon",function(){return Ae(()=>import("./icon-ZOqsFYxv.js").then(n=>n.i),[])}),icuMessageFormat:Xe("icuMessageFormat",function(){return Ae(()=>import("./icu-message-format--SbJpQlz.js").then(n=>n.i),[])}),idris:Xe("idris",function(){return Ae(()=>import("./idris-J30JM6Ku.js").then(n=>n.i),__vite__mapDeps([83,81]))}),iecst:Xe("iecst",function(){return Ae(()=>import("./iecst-C4zzozX8.js").then(n=>n.i),[])}),ignore:Xe("ignore",function(){return Ae(()=>import("./ignore-Cuwjb-vJ.js").then(n=>n.i),[])}),inform7:Xe("inform7",function(){return Ae(()=>import("./inform7-xZRzhdMU.js").then(n=>n.i),[])}),ini:Xe("ini",function(){return Ae(()=>import("./ini-Cx5YDLI_.js").then(n=>n.i),[])}),io:Xe("io",function(){return Ae(()=>import("./io-BYId22Yy.js").then(n=>n.i),[])}),j:Xe("j",function(){return Ae(()=>import("./j-BspKOh_k.js").then(n=>n.j),[])}),java:Xe("java",function(){return Ae(()=>import("./java-KoHbSG7X.js").then(n=>n.j),__vite__mapDeps([84,85]))}),javadoc:Xe("javadoc",function(){return Ae(()=>import("./javadoc-D8mDlrgy.js").then(n=>n.j),__vite__mapDeps([86,85,87]))}),javadoclike:Xe("javadoclike",function(){return Ae(()=>import("./javadoclike-n69N6c3d.js").then(n=>n.j),__vite__mapDeps([88,87]))}),javascript:Xe("javascript",function(){return Ae(()=>import("./javascript-CJx5e7Ma.js").then(n=>n.j),__vite__mapDeps([89,90]))}),javastacktrace:Xe("javastacktrace",function(){return Ae(()=>import("./javastacktrace-Cgu33g6G.js").then(n=>n.j),[])}),jexl:Xe("jexl",function(){return Ae(()=>import("./jexl-7JaSLpzR.js").then(n=>n.j),[])}),jolie:Xe("jolie",function(){return Ae(()=>import("./jolie-xq2RGp7Y.js").then(n=>n.j),[])}),jq:Xe("jq",function(){return Ae(()=>import("./jq-BVZs7VpD.js").then(n=>n.j),[])}),jsExtras:Xe("jsExtras",function(){return Ae(()=>import("./js-extras-C0z1SPAf.js").then(n=>n.j),[])}),jsTemplates:Xe("jsTemplates",function(){return Ae(()=>import("./js-templates-CP-aaVM4.js").then(n=>n.j),[])}),jsdoc:Xe("jsdoc",function(){return Ae(()=>import("./jsdoc-Da43Kz_L.js").then(n=>n.j),__vite__mapDeps([91,87,92]))}),json:Xe("json",function(){return Ae(()=>import("./json-DJsU0Yib.js").then(n=>n.j),__vite__mapDeps([93,94]))}),json5:Xe("json5",function(){return Ae(()=>import("./json5-U-eXeKgJ.js").then(n=>n.j),__vite__mapDeps([95,94]))}),jsonp:Xe("jsonp",function(){return Ae(()=>import("./jsonp-ChGOAdSi.js").then(n=>n.j),__vite__mapDeps([96,94]))}),jsstacktrace:Xe("jsstacktrace",function(){return Ae(()=>import("./jsstacktrace-BO9i0tQy.js").then(n=>n.j),[])}),jsx:Xe("jsx",function(){return Ae(()=>import("./jsx-D5kqK5Z0.js").then(n=>n.j),__vite__mapDeps([97,98]))}),julia:Xe("julia",function(){return Ae(()=>import("./julia-tcjyjCWz.js").then(n=>n.j),[])}),keepalived:Xe("keepalived",function(){return Ae(()=>import("./keepalived-CRm2QCxE.js").then(n=>n.k),[])}),keyman:Xe("keyman",function(){return Ae(()=>import("./keyman-6VZL3TCv.js").then(n=>n.k),[])}),kotlin:Xe("kotlin",function(){return Ae(()=>import("./kotlin-CZNKbM-J.js").then(n=>n.k),[])}),kumir:Xe("kumir",function(){return Ae(()=>import("./kumir-B8n4Btgm.js").then(n=>n.k),[])}),kusto:Xe("kusto",function(){return Ae(()=>import("./kusto-xnOrGNj2.js").then(n=>n.k),[])}),latex:Xe("latex",function(){return Ae(()=>import("./latex-UZCAs853.js").then(n=>n.l),[])}),latte:Xe("latte",function(){return Ae(()=>import("./latte-CCOUg1RY.js").then(n=>n.l),__vite__mapDeps([99,71,100]))}),less:Xe("less",function(){return Ae(()=>import("./less-u97VMhE7.js").then(n=>n.l),[])}),lilypond:Xe("lilypond",function(){return Ae(()=>import("./lilypond-BWVwYTx9.js").then(n=>n.l),__vite__mapDeps([101,102]))}),liquid:Xe("liquid",function(){return Ae(()=>import("./liquid-CCpfuknj.js").then(n=>n.l),__vite__mapDeps([103,71]))}),lisp:Xe("lisp",function(){return Ae(()=>import("./lisp-BYZP_RnY.js").then(n=>n.l),[])}),livescript:Xe("livescript",function(){return Ae(()=>import("./livescript-D78FIb8Y.js").then(n=>n.l),[])}),llvm:Xe("llvm",function(){return Ae(()=>import("./llvm-CEwCSojv.js").then(n=>n.l),[])}),log:Xe("log",function(){return Ae(()=>import("./log-xhnpTM7J.js").then(n=>n.l),[])}),lolcode:Xe("lolcode",function(){return Ae(()=>import("./lolcode-xHjyejA4.js").then(n=>n.l),[])}),lua:Xe("lua",function(){return Ae(()=>import("./lua-DVAzQuSg.js").then(n=>n.l),__vite__mapDeps([104,75]))}),magma:Xe("magma",function(){return Ae(()=>import("./magma-bJ9tWzKf.js").then(n=>n.m),[])}),makefile:Xe("makefile",function(){return Ae(()=>import("./makefile-lnKE6RrA.js").then(n=>n.m),[])}),markdown:Xe("markdown",function(){return Ae(()=>import("./markdown-SLsT4ssU.js").then(n=>n.m),[])}),markupTemplating:Xe("markupTemplating",function(){return Ae(()=>import("./markup-templating-Bi8YlLGz.js").then(n=>n.m),__vite__mapDeps([105,71]))}),markup:Xe("markup",function(){return Ae(()=>import("./markup-CK-pkWQ2.js").then(n=>n.m),__vite__mapDeps([106,107]))}),matlab:Xe("matlab",function(){return Ae(()=>import("./matlab-CBYkwhx-.js").then(n=>n.m),[])}),maxscript:Xe("maxscript",function(){return Ae(()=>import("./maxscript-oSZ2yUes.js").then(n=>n.m),[])}),mel:Xe("mel",function(){return Ae(()=>import("./mel-DRBilGcs.js").then(n=>n.m),[])}),mermaid:Xe("mermaid",function(){return Ae(()=>import("./mermaid-Bq7sMSAH.js").then(n=>n.m),[])}),mizar:Xe("mizar",function(){return Ae(()=>import("./mizar-SGWL8yJi.js").then(n=>n.m),[])}),mongodb:Xe("mongodb",function(){return Ae(()=>import("./mongodb-CZXw10Hc.js").then(n=>n.m),[])}),monkey:Xe("monkey",function(){return Ae(()=>import("./monkey-BpTJAt69.js").then(n=>n.m),[])}),moonscript:Xe("moonscript",function(){return Ae(()=>import("./moonscript-Bk4aStup.js").then(n=>n.m),[])}),n1ql:Xe("n1ql",function(){return Ae(()=>import("./n1ql-D92zDtTY.js").then(n=>n.n),[])}),n4js:Xe("n4js",function(){return Ae(()=>import("./n4js-DjwSyyw-.js").then(n=>n.n),[])}),nand2tetrisHdl:Xe("nand2tetrisHdl",function(){return Ae(()=>import("./nand2tetris-hdl-DIu5A2xC.js").then(n=>n.n),[])}),naniscript:Xe("naniscript",function(){return Ae(()=>import("./naniscript-DIQbQ4YU.js").then(n=>n.n),[])}),nasm:Xe("nasm",function(){return Ae(()=>import("./nasm-sIQeOEjn.js").then(n=>n.n),[])}),neon:Xe("neon",function(){return Ae(()=>import("./neon-Dl5D5n23.js").then(n=>n.n),[])}),nevod:Xe("nevod",function(){return Ae(()=>import("./nevod-c_m7oI_g.js").then(n=>n.n),[])}),nginx:Xe("nginx",function(){return Ae(()=>import("./nginx-C-IxH6U8.js").then(n=>n.n),[])}),nim:Xe("nim",function(){return Ae(()=>import("./nim-BR4sz5ot.js").then(n=>n.n),[])}),nix:Xe("nix",function(){return Ae(()=>import("./nix-BeL-oxV9.js").then(n=>n.n),[])}),nsis:Xe("nsis",function(){return Ae(()=>import("./nsis-rZD-kg5m.js").then(n=>n.n),[])}),objectivec:Xe("objectivec",function(){return Ae(()=>import("./objectivec-Be-9MKRF.js").then(n=>n.o),__vite__mapDeps([108,51]))}),ocaml:Xe("ocaml",function(){return Ae(()=>import("./ocaml-CA824_cd.js").then(n=>n.o),[])}),opencl:Xe("opencl",function(){return Ae(()=>import("./opencl-B8j5Qt0w.js").then(n=>n.o),__vite__mapDeps([109,51]))}),openqasm:Xe("openqasm",function(){return Ae(()=>import("./openqasm-CCf14wE-.js").then(n=>n.o),[])}),oz:Xe("oz",function(){return Ae(()=>import("./oz-bpaIpMpm.js").then(n=>n.o),[])}),parigp:Xe("parigp",function(){return Ae(()=>import("./parigp-BpezRDz1.js").then(n=>n.p),[])}),parser:Xe("parser",function(){return Ae(()=>import("./parser-BNFPblsz.js").then(n=>n.p),[])}),pascal:Xe("pascal",function(){return Ae(()=>import("./pascal-CG6NSobL.js").then(n=>n.p),[])}),pascaligo:Xe("pascaligo",function(){return Ae(()=>import("./pascaligo-CWE4pgCM.js").then(n=>n.p),[])}),pcaxis:Xe("pcaxis",function(){return Ae(()=>import("./pcaxis-DImtS1Lw.js").then(n=>n.p),[])}),peoplecode:Xe("peoplecode",function(){return Ae(()=>import("./peoplecode-CwSk531b.js").then(n=>n.p),[])}),perl:Xe("perl",function(){return Ae(()=>import("./perl-BNJF2-61.js").then(n=>n.p),[])}),phpExtras:Xe("phpExtras",function(){return Ae(()=>import("./php-extras-BEgfTPMx.js").then(n=>n.p),__vite__mapDeps([110,100,71]))}),php:Xe("php",function(){return Ae(()=>import("./php-CJ4S3mhg.js").then(n=>n.p),__vite__mapDeps([111,100,71]))}),phpdoc:Xe("phpdoc",function(){return Ae(()=>import("./phpdoc-CfUtnM-V.js").then(n=>n.p),__vite__mapDeps([112,100,71,87]))}),plsql:Xe("plsql",function(){return Ae(()=>import("./plsql-YOMwIZVF.js").then(n=>n.p),__vite__mapDeps([113,48]))}),powerquery:Xe("powerquery",function(){return Ae(()=>import("./powerquery-Dm0Mhb_V.js").then(n=>n.p),[])}),powershell:Xe("powershell",function(){return Ae(()=>import("./powershell-CoKIHaTe.js").then(n=>n.p),[])}),processing:Xe("processing",function(){return Ae(()=>import("./processing-Lot7YRTy.js").then(n=>n.p),[])}),prolog:Xe("prolog",function(){return Ae(()=>import("./prolog-DD7zNHdi.js").then(n=>n.p),[])}),promql:Xe("promql",function(){return Ae(()=>import("./promql-D5K0UrTO.js").then(n=>n.p),[])}),properties:Xe("properties",function(){return Ae(()=>import("./properties-fkB0Kuub.js").then(n=>n.p),[])}),protobuf:Xe("protobuf",function(){return Ae(()=>import("./protobuf-cEEc0KlY.js").then(n=>n.p),[])}),psl:Xe("psl",function(){return Ae(()=>import("./psl-Bmgeg_GT.js").then(n=>n.p),[])}),pug:Xe("pug",function(){return Ae(()=>import("./pug-BCcvPa5A.js").then(n=>n.p),[])}),puppet:Xe("puppet",function(){return Ae(()=>import("./puppet-DFb8JIFb.js").then(n=>n.p),[])}),pure:Xe("pure",function(){return Ae(()=>import("./pure-BqsCqoks.js").then(n=>n.p),[])}),purebasic:Xe("purebasic",function(){return Ae(()=>import("./purebasic-xNVttaau.js").then(n=>n.p),[])}),purescript:Xe("purescript",function(){return Ae(()=>import("./purescript-X0UMi_9p.js").then(n=>n.p),__vite__mapDeps([114,81]))}),python:Xe("python",function(){return Ae(()=>import("./python-CdBFSsGJ.js").then(n=>n.p),[])}),q:Xe("q",function(){return Ae(()=>import("./q-B4J60KvR.js").then(n=>n.q),[])}),qml:Xe("qml",function(){return Ae(()=>import("./qml-ChOlgVBD.js").then(n=>n.q),[])}),qore:Xe("qore",function(){return Ae(()=>import("./qore-DEU01OyN.js").then(n=>n.q),[])}),qsharp:Xe("qsharp",function(){return Ae(()=>import("./qsharp-C9WXkekc.js").then(n=>n.q),[])}),r:Xe("r",function(){return Ae(()=>import("./r-CbO7Fypy.js").then(n=>n.r),[])}),racket:Xe("racket",function(){return Ae(()=>import("./racket-DDR9V-54.js").then(n=>n.r),__vite__mapDeps([115,102]))}),reason:Xe("reason",function(){return Ae(()=>import("./reason-B_1dIKwM.js").then(n=>n.r),[])}),regex:Xe("regex",function(){return Ae(()=>import("./regex-DrVMU8K9.js").then(n=>n.r),[])}),rego:Xe("rego",function(){return Ae(()=>import("./rego-BXk4i-LT.js").then(n=>n.r),[])}),renpy:Xe("renpy",function(){return Ae(()=>import("./renpy-DbMgVhqp.js").then(n=>n.r),[])}),rest:Xe("rest",function(){return Ae(()=>import("./rest-nUJHBCxD.js").then(n=>n.r),[])}),rip:Xe("rip",function(){return Ae(()=>import("./rip-n9s_9Udz.js").then(n=>n.r),[])}),roboconf:Xe("roboconf",function(){return Ae(()=>import("./roboconf-CZbzq-aI.js").then(n=>n.r),[])}),robotframework:Xe("robotframework",function(){return Ae(()=>import("./robotframework-DB62acH-.js").then(n=>n.r),[])}),ruby:Xe("ruby",function(){return Ae(()=>import("./ruby-BaqmaDPn.js").then(n=>n.r),__vite__mapDeps([116,65]))}),rust:Xe("rust",function(){return Ae(()=>import("./rust-Cy7ZKlTk.js").then(n=>n.r),[])}),sas:Xe("sas",function(){return Ae(()=>import("./sas-CwN-rUxt.js").then(n=>n.s),[])}),sass:Xe("sass",function(){return Ae(()=>import("./sass--zuVMD-C.js").then(n=>n.s),[])}),scala:Xe("scala",function(){return Ae(()=>import("./scala-408cTvZR.js").then(n=>n.s),__vite__mapDeps([117,85]))}),scheme:Xe("scheme",function(){return Ae(()=>import("./scheme-UNH4gNpE.js").then(n=>n.s),__vite__mapDeps([118,102]))}),scss:Xe("scss",function(){return Ae(()=>import("./scss-rRSMvq6L.js").then(n=>n.s),[])}),shellSession:Xe("shellSession",function(){return Ae(()=>import("./shell-session-DEjK8y8D.js").then(n=>n.s),__vite__mapDeps([119,55]))}),smali:Xe("smali",function(){return Ae(()=>import("./smali-DHSYljcX.js").then(n=>n.s),[])}),smalltalk:Xe("smalltalk",function(){return Ae(()=>import("./smalltalk-CEhF9F2l.js").then(n=>n.s),[])}),smarty:Xe("smarty",function(){return Ae(()=>import("./smarty-BrN7znZ2.js").then(n=>n.s),__vite__mapDeps([120,71]))}),sml:Xe("sml",function(){return Ae(()=>import("./sml-BfGRCu9h.js").then(n=>n.s),[])}),solidity:Xe("solidity",function(){return Ae(()=>import("./solidity-DOLKhA72.js").then(n=>n.s),[])}),solutionFile:Xe("solutionFile",function(){return Ae(()=>import("./solution-file-BKGNWca_.js").then(n=>n.s),[])}),soy:Xe("soy",function(){return Ae(()=>import("./soy-DEJrGg_A.js").then(n=>n.s),__vite__mapDeps([121,71]))}),sparql:Xe("sparql",function(){return Ae(()=>import("./sparql-1Opiov0J.js").then(n=>n.s),__vite__mapDeps([122,123]))}),splunkSpl:Xe("splunkSpl",function(){return Ae(()=>import("./splunk-spl-DIWAywfd.js").then(n=>n.s),[])}),sqf:Xe("sqf",function(){return Ae(()=>import("./sqf-DGFESDPV.js").then(n=>n.s),[])}),sql:Xe("sql",function(){return Ae(()=>import("./sql-DLrLfyw7.js").then(n=>n.s),__vite__mapDeps([124,48]))}),squirrel:Xe("squirrel",function(){return Ae(()=>import("./squirrel-Bd4ZRlpQ.js").then(n=>n.s),[])}),stan:Xe("stan",function(){return Ae(()=>import("./stan-BvbZQd2u.js").then(n=>n.s),[])}),stylus:Xe("stylus",function(){return Ae(()=>import("./stylus-DPnXRJ_G.js").then(n=>n.s),[])}),swift:Xe("swift",function(){return Ae(()=>import("./swift-C_RMdK0L.js").then(n=>n.s),[])}),systemd:Xe("systemd",function(){return Ae(()=>import("./systemd-D5EOF-4m.js").then(n=>n.s),[])}),t4Cs:Xe("t4Cs",function(){return Ae(()=>import("./t4-cs-ClmNL6YM.js").then(n=>n.t),__vite__mapDeps([125,126,53]))}),t4Templating:Xe("t4Templating",function(){return Ae(()=>import("./t4-templating-X7-L1qDB.js").then(n=>n.t),__vite__mapDeps([127,126]))}),t4Vb:Xe("t4Vb",function(){return Ae(()=>import("./t4-vb-DpOSQf_k.js").then(n=>n.t),__vite__mapDeps([128,126,129,57]))}),tap:Xe("tap",function(){return Ae(()=>import("./tap-BU5N4MXH.js").then(n=>n.t),__vite__mapDeps([130,131]))}),tcl:Xe("tcl",function(){return Ae(()=>import("./tcl-gfuuE3Ao.js").then(n=>n.t),[])}),textile:Xe("textile",function(){return Ae(()=>import("./textile-COWPdKuY.js").then(n=>n.t),[])}),toml:Xe("toml",function(){return Ae(()=>import("./toml--XK_G3s0.js").then(n=>n.t),[])}),tremor:Xe("tremor",function(){return Ae(()=>import("./tremor-DCN8FoOS.js").then(n=>n.t),[])}),tsx:Xe("tsx",function(){return Ae(()=>import("./tsx--vTZok9C.js").then(n=>n.t),__vite__mapDeps([132,98,92]))}),tt2:Xe("tt2",function(){return Ae(()=>import("./tt2-DFNhfbJT.js").then(n=>n.t),__vite__mapDeps([133,71]))}),turtle:Xe("turtle",function(){return Ae(()=>import("./turtle-CKUMDGfA.js").then(n=>n.t),__vite__mapDeps([134,123]))}),twig:Xe("twig",function(){return Ae(()=>import("./twig-BZRD7ZOB.js").then(n=>n.t),__vite__mapDeps([135,71]))}),typescript:Xe("typescript",function(){return Ae(()=>import("./typescript-DTqgIfO2.js").then(n=>n.t),__vite__mapDeps([136,92]))}),typoscript:Xe("typoscript",function(){return Ae(()=>import("./typoscript-ChcsUI52.js").then(n=>n.t),[])}),unrealscript:Xe("unrealscript",function(){return Ae(()=>import("./unrealscript-B410KxC-.js").then(n=>n.u),[])}),uorazor:Xe("uorazor",function(){return Ae(()=>import("./uorazor-CUMS8ZM1.js").then(n=>n.u),[])}),uri:Xe("uri",function(){return Ae(()=>import("./uri-CBh4fTTI.js").then(n=>n.u),[])}),v:Xe("v",function(){return Ae(()=>import("./v-BIDmindm.js").then(n=>n.v),[])}),vala:Xe("vala",function(){return Ae(()=>import("./vala-DNF0LFBD.js").then(n=>n.v),[])}),vbnet:Xe("vbnet",function(){return Ae(()=>import("./vbnet-Ciq9JDG3.js").then(n=>n.v),__vite__mapDeps([137,129,57]))}),velocity:Xe("velocity",function(){return Ae(()=>import("./velocity-DmDArSVc.js").then(n=>n.v),[])}),verilog:Xe("verilog",function(){return Ae(()=>import("./verilog-SYeMJmsy.js").then(n=>n.v),[])}),vhdl:Xe("vhdl",function(){return Ae(()=>import("./vhdl-DBOQ3ZY1.js").then(n=>n.v),[])}),vim:Xe("vim",function(){return Ae(()=>import("./vim-DN7TSVuJ.js").then(n=>n.v),[])}),visualBasic:Xe("visualBasic",function(){return Ae(()=>import("./visual-basic-B6Vu_V3h.js").then(n=>n.v),[])}),warpscript:Xe("warpscript",function(){return Ae(()=>import("./warpscript-Dka7eChE.js").then(n=>n.w),[])}),wasm:Xe("wasm",function(){return Ae(()=>import("./wasm-BmOPydWn.js").then(n=>n.w),[])}),webIdl:Xe("webIdl",function(){return Ae(()=>import("./web-idl-CrEx95vz.js").then(n=>n.w),[])}),wiki:Xe("wiki",function(){return Ae(()=>import("./wiki-BuKhQLIL.js").then(n=>n.w),[])}),wolfram:Xe("wolfram",function(){return Ae(()=>import("./wolfram-_utNchhs.js").then(n=>n.w),[])}),wren:Xe("wren",function(){return Ae(()=>import("./wren-Do4vJsca.js").then(n=>n.w),[])}),xeora:Xe("xeora",function(){return Ae(()=>import("./xeora-5KtnrAM0.js").then(n=>n.x),[])}),xmlDoc:Xe("xmlDoc",function(){return Ae(()=>import("./xml-doc-CLr_3ZX7.js").then(n=>n.x),[])}),xojo:Xe("xojo",function(){return Ae(()=>import("./xojo-_zqJierB.js").then(n=>n.x),[])}),xquery:Xe("xquery",function(){return Ae(()=>import("./xquery-B7bA6lvl.js").then(n=>n.x),[])}),yaml:Xe("yaml",function(){return Ae(()=>import("./yaml-arOgPLDM.js").then(n=>n.y),__vite__mapDeps([138,131]))}),yang:Xe("yang",function(){return Ae(()=>import("./yang-x9GRP0B4.js").then(n=>n.y),[])}),zig:Xe("zig",function(){return Ae(()=>import("./zig-DQuD3qa-.js").then(n=>n.z),[])})},myt=pyt({loader:function(){return Ae(()=>import("./core-17OoamG1.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୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢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;怳Ādpuct;戏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ǣጓ\0y;䐎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Ā;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀ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Ā;elƀ;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\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»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ↄⅪ←ٖ↛ǰ↉\0proø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;䅓Ācrir;榿;쀀𝔬ͯ\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\0m;櫳;櫽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,"<$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.
|
|
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
|
|
@@ -617,7 +617,7 @@ ${S.split(`
|
|
|
617
617
|
* Released under the MIT License
|
|
618
618
|
*/const gk=n=>n&&n.enabled&&n.modifierKey,eNe=(n,e)=>n&&e[n+"Key"],Sce=(n,e)=>n&&!e[n+"Key"];function v7(n,e,t){return n===void 0?!0:typeof n=="string"?n.indexOf(e)!==-1:typeof n=="function"?n({chart:t}).indexOf(e)!==-1:!1}function gG(n,e){return typeof n=="function"&&(n=n({chart:e})),typeof n=="string"?{x:n.indexOf("x")!==-1,y:n.indexOf("y")!==-1}:{x:!1,y:!1}}function DMt(n,e){let t;return function(){return clearTimeout(t),t=setTimeout(n,e),e}}function MMt({x:n,y:e},t){const i=t.scales,r=Object.keys(i);for(let s=0;s<r.length;s++){const a=i[r[s]];if(e>=a.top&&e<=a.bottom&&n>=a.left&&n<=a.right)return a}return null}function tNe(n,e,t){const{mode:i="xy",scaleMode:r,overScaleMode:s}=n||{},a=MMt(e,t),o=gG(i,t),l=gG(r,t);if(s){const u=gG(s,t);for(const h of["x","y"])u[h]&&(l[h]=o[h],o[h]=!1)}if(a&&l[a.axis])return[a];const c=[];return vo(t.scales,function(u){o[u.axis]&&c.push(u)}),c}const vee=new WeakMap;function ic(n){let e=vee.get(n);return e||(e={originalScaleLimits:{},updatedScaleLimits:{},handlers:{},panDelta:{},dragging:!1,panning:!1},vee.set(n,e)),e}function OMt(n){vee.delete(n)}function nNe(n,e,t,i){const r=Math.max(0,Math.min(1,(n-e)/t||0)),s=1-r;return{min:i*r,max:i*s}}function iNe(n,e){const t=n.isHorizontal()?e.x:e.y;return n.getValueForPixel(t)}function rNe(n,e,t){const i=n.max-n.min,r=i*(e-1),s=iNe(n,t);return nNe(s,n.min,i,r)}function NMt(n,e,t){const i=iNe(n,t);if(i===void 0)return{min:n.min,max:n.max};const r=Math.log10(n.min),s=Math.log10(n.max),a=Math.log10(i),o=s-r,l=o*(e-1),c=nNe(a,r,o,l);return{min:Math.pow(10,r+c.min),max:Math.pow(10,s-c.max)}}function RMt(n,e){return e&&(e[n.id]||e[n.axis])||{}}function D5e(n,e,t,i,r){let s=t[i];if(s==="original"){const a=n.originalScaleLimits[e.id][i];s=Us(a.options,a.scale)}return Us(s,r)}function PMt(n,e,t){const i=n.getValueForPixel(e),r=n.getValueForPixel(t);return{min:Math.min(i,r),max:Math.max(i,r)}}function HMt(n,{min:e,max:t,minLimit:i,maxLimit:r},s){const a=(n-t+e)/2;e-=a,t+=a;const o=s.min.options??s.min.scale,l=s.max.options??s.max.scale,c=n/1e6;return aT(e,o,c)&&(e=o),aT(t,l,c)&&(t=l),e<i?(e=i,t=Math.min(i+n,r)):t>r&&(t=r,e=Math.max(r-n,i)),{min:e,max:t}}function Fb(n,{min:e,max:t},i,r=!1){const s=ic(n.chart),{options:a}=n,o=RMt(n,i),{minRange:l=0}=o,c=D5e(s,n,o,"min",-1/0),u=D5e(s,n,o,"max",1/0);if(r==="pan"&&(e<c||t>u))return!0;const h=n.max-n.min,d=r?Math.max(t-e,l):h;if(r&&d===l&&h<=l)return!0;const f=HMt(d,{min:e,max:t,minLimit:c,maxLimit:u},s.originalScaleLimits[n.id]);return a.min=f.min,a.max=f.max,s.updatedScaleLimits[n.id]=f,n.parse(f.min)!==n.min||n.parse(f.max)!==n.max}function FMt(n,e,t,i){const r=rNe(n,e,t),s={min:n.min+r.min,max:n.max-r.max};return Fb(n,s,i,!0)}function BMt(n,e,t,i){const r=NMt(n,e,t);return Fb(n,r,i,!0)}function VMt(n,e,t,i){Fb(n,PMt(n,e,t),i,!0)}const M5e=n=>n===0||isNaN(n)?0:n<0?Math.min(Math.round(n),-1):Math.max(Math.round(n),1);function jMt(n){const t=n.getLabels().length-1;n.min>0&&(n.min-=1),n.max<t&&(n.max+=1)}function zMt(n,e,t,i){const r=rNe(n,e,t);n.min===n.max&&e<1&&jMt(n);const s={min:n.min+M5e(r.min),max:n.max-M5e(r.max)};return Fb(n,s,i,!0)}function WMt(n){return n.isHorizontal()?n.width:n.height}function UMt(n,e,t){const r=n.getLabels().length-1;let{min:s,max:a}=n;const o=Math.max(a-s,1),l=Math.round(WMt(n)/Math.max(o,10)),c=Math.round(Math.abs(e/l));let u;return e<-l?(a=Math.min(a+c,r),s=o===1?a:a-o,u=a===r):e>l&&(s=Math.max(0,s-c),a=o===1?s:s+o,u=s===0),Fb(n,{min:s,max:a},t)||u}const $Mt={second:500,minute:30*1e3,hour:1800*1e3,day:720*60*1e3,week:3.5*24*60*60*1e3,month:360*60*60*1e3,quarter:1440*60*60*1e3,year:4368*60*60*1e3};function sNe(n,e,t,i=!1){const{min:r,max:s,options:a}=n,o=a.time&&a.time.round,l=$Mt[o]||0,c=n.getValueForPixel(n.getPixelForValue(r+l)-e),u=n.getValueForPixel(n.getPixelForValue(s+l)-e);return isNaN(c)||isNaN(u)?!0:Fb(n,{min:c,max:u},t,i?"pan":!1)}function O5e(n,e,t){return sNe(n,e,t,!0)}const yee={category:zMt,default:FMt,logarithmic:BMt},wee={default:VMt},Cee={category:UMt,default:sNe,logarithmic:O5e,timeseries:O5e};function qMt(n,e,t){const{id:i,options:{min:r,max:s}}=n;if(!e[i]||!t[i])return!0;const a=t[i];return a.min!==r||a.max!==s}function N5e(n,e){vo(n,(t,i)=>{e[i]||delete n[i]})}function nQ(n,e){const{scales:t}=n,{originalScaleLimits:i,updatedScaleLimits:r}=e;return vo(t,function(s){qMt(s,i,r)&&(i[s.id]={min:{scale:s.min,options:s.options.min},max:{scale:s.max,options:s.options.max}})}),N5e(i,t),N5e(r,t),i}function R5e(n,e,t,i){const r=yee[n.type]||yee.default;Ds(r,[n,e,t,i])}function P5e(n,e,t,i){const r=wee[n.type]||wee.default;Ds(r,[n,e,t,i])}function ZMt(n){const e=n.chartArea;return{x:(e.left+e.right)/2,y:(e.top+e.bottom)/2}}function Lce(n,e,t="none",i="api"){const{x:r=1,y:s=1,focalPoint:a=ZMt(n)}=typeof e=="number"?{x:e,y:e}:e,o=ic(n),{options:{limits:l,zoom:c}}=o;nQ(n,o);const u=r!==1,h=s!==1,d=tNe(c,a,n);vo(d||n.scales,function(f){f.isHorizontal()&&u?R5e(f,r,a,l):!f.isHorizontal()&&h&&R5e(f,s,a,l)}),n.update(t),Ds(c.onZoom,[{chart:n,trigger:i}])}function oNe(n,e,t,i="none",r="api"){const s=ic(n),{options:{limits:a,zoom:o}}=s,{mode:l="xy"}=o;nQ(n,s);const c=v7(l,"x",n),u=v7(l,"y",n);vo(n.scales,function(h){h.isHorizontal()&&c?P5e(h,e.x,t.x,a):!h.isHorizontal()&&u&&P5e(h,e.y,t.y,a)}),n.update(i),Ds(o.onZoom,[{chart:n,trigger:r}])}function GMt(n,e,t,i="none",r="api"){var o;const s=ic(n);nQ(n,s);const a=n.scales[e];Fb(a,t,void 0,!0),n.update(i),Ds((o=s.options.zoom)==null?void 0:o.onZoom,[{chart:n,trigger:r}])}function KMt(n,e="default"){const t=ic(n),i=nQ(n,t);vo(n.scales,function(r){const s=r.options;i[r.id]?(s.min=i[r.id].min.options,s.max=i[r.id].max.options):(delete s.min,delete s.max),delete t.updatedScaleLimits[r.id]}),n.update(e),Ds(t.options.zoom.onZoomComplete,[{chart:n}])}function YMt(n,e){const t=n.originalScaleLimits[e];if(!t)return;const{min:i,max:r}=t;return Us(r.options,r.scale)-Us(i.options,i.scale)}function XMt(n){const e=ic(n);let t=1,i=1;return vo(n.scales,function(r){const s=YMt(e,r.id);if(s){const a=Math.round(s/(r.max-r.min)*100)/100;t=Math.min(t,a),i=Math.max(i,a)}}),t<1?t:i}function H5e(n,e,t,i){const{panDelta:r}=i,s=r[n.id]||0;z0(s)===z0(e)&&(e+=s);const a=Cee[n.type]||Cee.default;Ds(a,[n,e,t])?r[n.id]=0:r[n.id]=e}function aNe(n,e,t,i="none"){const{x:r=0,y:s=0}=typeof e=="number"?{x:e,y:e}:e,a=ic(n),{options:{pan:o,limits:l}}=a,{onPan:c}=o||{};nQ(n,a);const u=r!==0,h=s!==0;vo(t||n.scales,function(d){d.isHorizontal()&&u?H5e(d,r,l,a):!d.isHorizontal()&&h&&H5e(d,s,l,a)}),n.update(i),Ds(c,[{chart:n}])}function lNe(n){const e=ic(n);nQ(n,e);const t={};for(const i of Object.keys(n.scales)){const{min:r,max:s}=e.originalScaleLimits[i]||{min:{},max:{}};t[i]={min:r.scale,max:s.scale}}return t}function JMt(n){const e=ic(n),t={};for(const i of Object.keys(n.scales))t[i]=e.updatedScaleLimits[i];return t}function eOt(n){const e=lNe(n);for(const t of Object.keys(n.scales)){const{min:i,max:r}=e[t];if(i!==void 0&&n.scales[t].min!==i||r!==void 0&&n.scales[t].max!==r)return!0}return!1}function F5e(n){const e=ic(n);return e.panning||e.dragging}const B5e=(n,e,t)=>Math.min(t,Math.max(e,n));function Q1(n,e){const{handlers:t}=ic(n),i=t[e];i&&i.target&&(i.target.removeEventListener(e,i),delete t[e])}function KL(n,e,t,i){const{handlers:r,options:s}=ic(n),a=r[t];if(a&&a.target===e)return;Q1(n,t),r[t]=l=>i(n,l,s),r[t].target=e;const o=t==="wheel"?!1:void 0;e.addEventListener(t,r[t],{passive:o})}function tOt(n,e){const t=ic(n);t.dragStart&&(t.dragging=!0,t.dragEnd=e,n.update("none"))}function nOt(n,e){const t=ic(n);!t.dragStart||e.key!=="Escape"||(Q1(n,"keydown"),t.dragging=!1,t.dragStart=t.dragEnd=null,n.update("none"))}function Qee(n,e){if(n.target!==e.canvas){const t=e.canvas.getBoundingClientRect();return{x:n.clientX-t.left,y:n.clientY-t.top}}return k3(n,e)}function cNe(n,e,t){const{onZoomStart:i,onZoomRejected:r}=t;if(i){const s=Qee(e,n);if(Ds(i,[{chart:n,event:e,point:s}])===!1)return Ds(r,[{chart:n,event:e}]),!1}}function iOt(n,e){if(n.legend){const s=k3(e,n);if(xw(s,n.legend))return}const t=ic(n),{pan:i,zoom:r={}}=t.options;if(e.button!==0||eNe(gk(i),e)||Sce(gk(r.drag),e))return Ds(r.onZoomRejected,[{chart:n,event:e}]);cNe(n,e,r)!==!1&&(t.dragStart=e,KL(n,n.canvas.ownerDocument,"mousemove",tOt),KL(n,window.document,"keydown",nOt))}function rOt({begin:n,end:e},t){let i=e.x-n.x,r=e.y-n.y;const s=Math.abs(i/r);s>t?i=Math.sign(i)*Math.abs(r*t):s<t&&(r=Math.sign(r)*Math.abs(i/t)),e.x=n.x+i,e.y=n.y+r}function V5e(n,e,t,{min:i,max:r,prop:s}){n[i]=B5e(Math.min(t.begin[s],t.end[s]),e[i],e[r]),n[r]=B5e(Math.max(t.begin[s],t.end[s]),e[i],e[r])}function sOt(n,e,t){const i={begin:Qee(e.dragStart,n),end:Qee(e.dragEnd,n)};if(t){const r=n.chartArea.width/n.chartArea.height;rOt(i,r)}return i}function uNe(n,e,t,i){const r=v7(e,"x",n),s=v7(e,"y",n),{top:a,left:o,right:l,bottom:c,width:u,height:h}=n.chartArea,d={top:a,left:o,right:l,bottom:c},f=sOt(n,t,i&&r&&s);r&&V5e(d,n.chartArea,f,{min:"left",max:"right",prop:"x"}),s&&V5e(d,n.chartArea,f,{min:"top",max:"bottom",prop:"y"});const p=d.right-d.left,g=d.bottom-d.top;return{...d,width:p,height:g,zoomX:r&&p?1+(u-p)/u:1,zoomY:s&&g?1+(h-g)/h:1}}function oOt(n,e){const t=ic(n);if(!t.dragStart)return;Q1(n,"mousemove");const{mode:i,onZoomComplete:r,drag:{threshold:s=0,maintainAspectRatio:a}}=t.options.zoom,o=uNe(n,i,{dragStart:t.dragStart,dragEnd:e},a),l=v7(i,"x",n)?o.width:0,c=v7(i,"y",n)?o.height:0,u=Math.sqrt(l*l+c*c);if(t.dragStart=t.dragEnd=null,u<=s){t.dragging=!1,n.update("none");return}oNe(n,{x:o.left,y:o.top},{x:o.right,y:o.bottom},"zoom","drag"),t.dragging=!1,t.filterNextClick=!0,Ds(r,[{chart:n}])}function aOt(n,e,t){if(Sce(gk(t.wheel),e)){Ds(t.onZoomRejected,[{chart:n,event:e}]);return}if(cNe(n,e,t)!==!1&&(e.cancelable&&e.preventDefault(),e.deltaY!==void 0))return!0}function lOt(n,e){const{handlers:{onZoomComplete:t},options:{zoom:i}}=ic(n);if(!aOt(n,e,i))return;const r=e.target.getBoundingClientRect(),s=i.wheel.speed,a=e.deltaY>=0?2-1/(1-s):1+s,o={x:a,y:a,focalPoint:{x:e.clientX-r.left,y:e.clientY-r.top}};Lce(n,o,"zoom","wheel"),Ds(t,[{chart:n}])}function cOt(n,e,t,i){t&&(ic(n).handlers[e]=DMt(()=>Ds(t,[{chart:n}]),i))}function uOt(n,e){const t=n.canvas,{wheel:i,drag:r,onZoomComplete:s}=e.zoom;i.enabled?(KL(n,t,"wheel",lOt),cOt(n,"onZoomComplete",s,250)):Q1(n,"wheel"),r.enabled?(KL(n,t,"mousedown",iOt),KL(n,t.ownerDocument,"mouseup",oOt)):(Q1(n,"mousedown"),Q1(n,"mousemove"),Q1(n,"mouseup"),Q1(n,"keydown"))}function dOt(n){Q1(n,"mousedown"),Q1(n,"mousemove"),Q1(n,"mouseup"),Q1(n,"wheel"),Q1(n,"click"),Q1(n,"keydown")}function hOt(n,e){return function(t,i){const{pan:r,zoom:s={}}=e.options;if(!r||!r.enabled)return!1;const a=i&&i.srcEvent;return a&&!e.panning&&i.pointerType==="mouse"&&(Sce(gk(r),a)||eNe(gk(s.drag),a))?(Ds(r.onPanRejected,[{chart:n,event:i}]),!1):!0}}function fOt(n,e){const t=Math.abs(n.clientX-e.clientX),i=Math.abs(n.clientY-e.clientY),r=t/i;let s,a;return r>.3&&r<1.7?s=a=!0:t>i?s=!0:a=!0,{x:s,y:a}}function dNe(n,e,t){if(e.scale){const{center:i,pointers:r}=t,s=1/e.scale*t.scale,a=t.target.getBoundingClientRect(),o=fOt(r[0],r[1]),l=e.options.zoom.mode,c={x:o.x&&v7(l,"x",n)?s:1,y:o.y&&v7(l,"y",n)?s:1,focalPoint:{x:i.x-a.left,y:i.y-a.top}};Lce(n,c,"zoom","pinch"),e.scale=t.scale}}function pOt(n,e,t){if(e.options.zoom.pinch.enabled){const i=k3(t,n);Ds(e.options.zoom.onZoomStart,[{chart:n,event:t,point:i}])===!1?(e.scale=null,Ds(e.options.zoom.onZoomRejected,[{chart:n,event:t}])):e.scale=1}}function gOt(n,e,t){e.scale&&(dNe(n,e,t),e.scale=null,Ds(e.options.zoom.onZoomComplete,[{chart:n}]))}function hNe(n,e,t){const i=e.delta;i&&(e.panning=!0,aNe(n,{x:t.deltaX-i.x,y:t.deltaY-i.y},e.panScales),e.delta={x:t.deltaX,y:t.deltaY})}function mOt(n,e,t){const{enabled:i,onPanStart:r,onPanRejected:s}=e.options.pan;if(!i)return;const a=t.target.getBoundingClientRect(),o={x:t.center.x-a.left,y:t.center.y-a.top};if(Ds(r,[{chart:n,event:t,point:o}])===!1)return Ds(s,[{chart:n,event:t}]);e.panScales=tNe(e.options.pan,o,n),e.delta={x:0,y:0},hNe(n,e,t)}function TOt(n,e){e.delta=null,e.panning&&(e.panning=!1,e.filterNextClick=!0,Ds(e.options.pan.onPanComplete,[{chart:n}]))}const xee=new WeakMap;function j5e(n,e){const t=ic(n),i=n.canvas,{pan:r,zoom:s}=e,a=new GL.Manager(i);s&&s.pinch.enabled&&(a.add(new GL.Pinch),a.on("pinchstart",o=>pOt(n,t,o)),a.on("pinch",o=>dNe(n,t,o)),a.on("pinchend",o=>gOt(n,t,o))),r&&r.enabled&&(a.add(new GL.Pan({threshold:r.threshold,enable:hOt(n,t)})),a.on("panstart",o=>mOt(n,t,o)),a.on("panmove",o=>hNe(n,t,o)),a.on("panend",()=>TOt(n,t))),xee.set(n,a)}function z5e(n){const e=xee.get(n);e&&(e.remove("pinchstart"),e.remove("pinch"),e.remove("pinchend"),e.remove("panstart"),e.remove("pan"),e.remove("panend"),e.destroy(),xee.delete(n))}function bOt(n,e){var a,o,l,c;const{pan:t,zoom:i}=n,{pan:r,zoom:s}=e;return((o=(a=i==null?void 0:i.zoom)==null?void 0:a.pinch)==null?void 0:o.enabled)!==((c=(l=s==null?void 0:s.zoom)==null?void 0:l.pinch)==null?void 0:c.enabled)||(t==null?void 0:t.enabled)!==(r==null?void 0:r.enabled)||(t==null?void 0:t.threshold)!==(r==null?void 0:r.threshold)}var _Ot="2.2.0";function LO(n,e,t){const i=t.zoom.drag,{dragStart:r,dragEnd:s}=ic(n);if(i.drawTime!==e||!s)return;const{left:a,top:o,width:l,height:c}=uNe(n,t.zoom.mode,{dragStart:r,dragEnd:s},i.maintainAspectRatio),u=n.ctx;u.save(),u.beginPath(),u.fillStyle=i.backgroundColor||"rgba(225,225,225,0.3)",u.fillRect(a,o,l,c),i.borderWidth>0&&(u.lineWidth=i.borderWidth,u.strokeStyle=i.borderColor||"rgba(225,225,225)",u.strokeRect(a,o,l,c)),u.restore()}var vOt={id:"zoom",version:_Ot,defaults:{pan:{enabled:!1,mode:"xy",threshold:10,modifierKey:null},zoom:{wheel:{enabled:!1,speed:.1,modifierKey:null},drag:{enabled:!1,drawTime:"beforeDatasetsDraw",modifierKey:null},pinch:{enabled:!1},mode:"xy"}},start:function(n,e,t){const i=ic(n);i.options=t,Object.prototype.hasOwnProperty.call(t.zoom,"enabled")&&console.warn("The option `zoom.enabled` is no longer supported. Please use `zoom.wheel.enabled`, `zoom.drag.enabled`, or `zoom.pinch.enabled`."),(Object.prototype.hasOwnProperty.call(t.zoom,"overScaleMode")||Object.prototype.hasOwnProperty.call(t.pan,"overScaleMode"))&&console.warn("The option `overScaleMode` is deprecated. Please use `scaleMode` instead (and update `mode` as desired)."),GL&&j5e(n,t),n.pan=(r,s,a)=>aNe(n,r,s,a),n.zoom=(r,s)=>Lce(n,r,s),n.zoomRect=(r,s,a)=>oNe(n,r,s,a),n.zoomScale=(r,s,a)=>GMt(n,r,s,a),n.resetZoom=r=>KMt(n,r),n.getZoomLevel=()=>XMt(n),n.getInitialScaleBounds=()=>lNe(n),n.getZoomedScaleBounds=()=>JMt(n),n.isZoomedOrPanned=()=>eOt(n),n.isZoomingOrPanning=()=>F5e(n)},beforeEvent(n,{event:e}){if(F5e(n))return!1;if(e.type==="click"||e.type==="mouseup"){const t=ic(n);if(t.filterNextClick)return t.filterNextClick=!1,!1}},beforeUpdate:function(n,e,t){const i=ic(n),r=i.options;i.options=t,bOt(r,t)&&(z5e(n),j5e(n,t)),uOt(n,t)},beforeDatasetsDraw(n,e,t){LO(n,"beforeDatasetsDraw",t)},afterDatasetsDraw(n,e,t){LO(n,"afterDatasetsDraw",t)},beforeDraw(n,e,t){LO(n,"beforeDraw",t)},afterDraw(n,e,t){LO(n,"afterDraw",t)},stop:function(n){dOt(n),GL&&z5e(n),OMt(n)},panFunctions:Cee,zoomFunctions:yee,zoomRectFunctions:wee};tQ.defaults.font.family="'Roboto', 'Helvetica', 'Arial', sans-serif";tQ.register(KS,wF,_ee,pk,cP,Q6,UDt,$Dt,eMt,zDt,wF,uP,PDt);tQ.register(vOt);const UI=()=>{const{t:n}=ln(),e=nr(),t=F.useCallback((i,r="route.analytics.overview.limit")=>({responsive:!0,plugins:{legend:{display:!0,position:"top",labels:{color:e.palette.text.primary}},title:{display:!0,text:n(i),color:e.palette.text.primary,font:{size:16},padding:{bottom:0}},subtitle:{display:!0,text:n(r),color:e.palette.text.secondary,font:{size:10},padding:{bottom:10}},zoom:{zoom:{wheel:{enabled:!0,modifierKey:"ctrl"},pinch:{enabled:!0},mode:"y"},pan:{enabled:!0,mode:"xy"},limits:{y:{min:0}}}},scales:{x:{type:"time",time:{unit:"day"},ticks:{color:e.palette.text.primary}},y:{beginAtZero:!0,ticks:{color:e.palette.text.primary}}}}),[n,e.palette.text.primary,e.palette.text.secondary]);return{line:(i,r)=>{const s=t(i,r);return s.plugins.subtitle=null,s.plugins.zoom.pan.mode="x",s},doughnut:(i,r)=>({...t(i,r),scales:null}),bar:(i,r)=>{const s=t(i,r);return s.plugins.legend={display:!1},s.scales={y:{beginAtZero:!0,ticks:{precision:0,color:e.palette.text.primary}},x:{ticks:{color:e.palette.text.primary}}},s},scatter:(i,r)=>t(i,r)}},fNe="label";function W5e(n,e){typeof n=="function"?n(e):n&&(n.current=e)}function yOt(n,e){const t=n.options;t&&e&&Object.assign(t,e)}function pNe(n,e){n.labels=e}function gNe(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:fNe;const i=[];n.datasets=e.map(r=>{const s=n.datasets.find(a=>a[t]===r[t]);return!s||!r.data||i.includes(s)?{...r}:(i.push(s),Object.assign(s,r),s)})}function wOt(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fNe;const t={labels:[],datasets:[]};return pNe(t,n.labels),gNe(t,n.datasets,e),t}function COt(n,e){const{height:t=150,width:i=300,redraw:r=!1,datasetIdKey:s,type:a,data:o,options:l,plugins:c=[],fallbackContent:u,updateMode:h,...d}=n,f=F.useRef(null),p=F.useRef(null),g=()=>{f.current&&(p.current=new tQ(f.current,{type:a,data:wOt(o,s),options:l&&{...l},plugins:c}),W5e(e,p.current))},m=()=>{W5e(e,null),p.current&&(p.current.destroy(),p.current=null)};return F.useEffect(()=>{!r&&p.current&&l&&yOt(p.current,l)},[r,l]),F.useEffect(()=>{!r&&p.current&&pNe(p.current.config.data,o.labels)},[r,o.labels]),F.useEffect(()=>{!r&&p.current&&o.datasets&&gNe(p.current.config.data,o.datasets,s)},[r,o.datasets]),F.useEffect(()=>{p.current&&(r?(m(),setTimeout(g)):p.current.update(h))},[r,l,o.labels,o.datasets,h]),F.useEffect(()=>{p.current&&(m(),setTimeout(g))},[a]),F.useEffect(()=>(g(),()=>m()),[]),br.createElement("canvas",{ref:f,role:"img",height:t,width:i,...d},u)}const QOt=F.forwardRef(COt);function uz(n,e){return tQ.register(e),F.forwardRef((t,i)=>br.createElement(QOt,{...t,ref:i,type:n}))}const mNe=uz("line",sP),xOt=uz("bar",rP),SOt=uz("doughnut",ZS),LOt=uz("scatter",oP),TNe=F.forwardRef(({analytic:n},e)=>{const{t}=ln(),{bar:i}=UI(),[r,s]=F.useState(!1),[a,o]=F.useState({});return F.useEffect(()=>{n&&(s(!0),Sn.search.facet.hit.post({fields:["howler.assessment"],query:`howler.analytic:("${n.name}")`}).then(l=>o(l["howler.assessment"])).finally(()=>s(!1)))},[n]),!r&&a.length<1?Q.jsx(ai,{sx:{minHeight:"300px",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:Q.jsx(mt,{variant:"h4",sx:l=>({color:l.palette.divider}),children:t("no.data")})}):n&&!r?Q.jsx(xOt,{ref:e,options:i("route.analytics.assessment.title",""),data:{labels:Object.keys(a),datasets:[{label:"",data:Object.values(a),borderColor:Object.keys(a).map(l=>g4(l)),backgroundColor:Object.keys(a).map(l=>g4(l))}]}}):Q.jsx(Br,{variant:"rounded",height:200})}),bNe=F.forwardRef(({analytic:n},e)=>{const{line:t}=UI(),[i,r]=F.useState(!1),[s,a]=F.useState({});return F.useEffect(()=>{n&&(r(!0),Sn.search.histogram.hit.post("timestamp",{query:`howler.analytic:("${n.name}")`,start:"now-3M",gap:"1d",mincount:0}).then(a).finally(()=>r(!1)))},[n]),n&&!i?Q.jsx(mNe,{ref:e,options:t("route.analytics.ingestion.title"),data:{datasets:[{label:n==null?void 0:n.name,data:Object.keys(s).map(o=>({x:new Date(o).getTime(),y:s[o]})),borderColor:g4(n==null?void 0:n.name),backgroundColor:"transparent",pointBackgroundColor:Object.keys(s).map(o=>s[o]?g4(n==null?void 0:n.name):"transparent"),pointBorderWidth:Object.keys(s).map(o=>s[o]?2:0)}]}}):Q.jsx(Br,{variant:"rounded",height:200})}),_Ne=F.forwardRef(({analytic:n,field:e,color:t},i)=>{const{line:r}=UI(),[s,a]=F.useState(!1),[o,l]=F.useState([]),c=F.useCallback(async()=>{try{a(!0);const h=await Sn.search.facet.hit.post({query:`howler.analytic:("${n.name}")`,fields:[e]}),d=Object.entries(h[e]).sort(([f,p],[g,m])=>m-p).map(([f])=>f);l(await Promise.all(d.map(async f=>{const p=await Sn.search.histogram.hit.post("timestamp",{query:`howler.analytic:("${n.name}") AND ${e}:("${f}")`,start:"now-3M",gap:"1d",mincount:0});return{label:f,fill:!0,data:Object.keys(p).map((g,m,T)=>({x:new Date(g).getTime(),y:wpt(T.map(b=>p[b]).slice(0,m))})),borderColor:t(f),backgroundColor:t(f),pointBackgroundColor:"transparent",pointBorderWidth:0}})))}finally{a(!1)}},[n==null?void 0:n.name,t,e]);F.useEffect(()=>{n&&c()},[n,c]);const u=F.useMemo(()=>{const h=r(`route.analytics.${e.replace("howler.","")}.title`);return{...h,plugins:{...h.plugins,tooltip:{mode:"index"}},scales:{...h.scales,y:{...h.scales.y,stacked:!0}}}},[e,r]);return n&&!s?Q.jsx(mNe,{ref:i,options:u,data:{datasets:o}}):Q.jsx(Br,{variant:"rounded",height:200})}),vNe=F.forwardRef(({analytic:n},e)=>Q.jsx(_Ne,{ref:e,analytic:n,field:"howler.detection",color:g4})),yNe=F.forwardRef(({analytic:n,maxWidth:e="45%"},t)=>{const i=nr(),{doughnut:r}=UI(),[s,a]=F.useState(!1),[o,l]=F.useState({}),c=F.useMemo(()=>Object.keys(o).map(u=>BE[u]?i.palette[BE[u]].main:"rgba(255, 255, 255, 0.16)"),[o,i.palette]);return F.useEffect(()=>{n&&(a(!0),Sn.search.facet.hit.post({query:`howler.analytic:("${n.name}")`,fields:["howler.escalation"]}).then(u=>l(u["howler.escalation"])).finally(()=>a(!1)))},[n]),n&&!s?Q.jsx("div",{style:{maxWidth:e},children:Q.jsx(SOt,{ref:t,options:r("route.analytics.escalation.title",""),data:{labels:Object.keys(o),datasets:[{label:n==null?void 0:n.name,data:Object.values(o),borderColor:c,backgroundColor:c}]}})}):Q.jsx(Br,{variant:"rounded",height:200,width:"45%"})}),wNe=F.forwardRef(({analytic:n},e)=>{const t=nr();return Q.jsx(_Ne,{ref:e,analytic:n,field:"howler.status",color:i=>i==="on-hold"?t.palette.grey:t.palette[Uye[i]].main})}),EOt=({analytic:n,setAnalytic:e})=>{const{t}=ln(),i=nr(),{dispatchApi:r}=zs(),s=uo(i.breakpoints.down("md")),{showSuccessMessage:a}=ed(),[o,l]=F.useState(!0),[c,u]=F.useState(!1),[h,d]=F.useState(!1),[f,p]=F.useState(!1),[g,m]=F.useState("");F.useEffect(()=>{n&&(l(!0),Sn.search.count.hit.post({query:`howler.analytic:"${_p(n.name)}"`}).then(({count:b})=>p(!b)).finally(()=>l(!1)))},[n]);const T=F.useCallback(async()=>{try{if(h){u(!0);const b=await r(Sn.analytic.put(n.analytic_id,{description:g}),{showError:!0,throwError:!0});e(b),a(t("route.analytics.updated"))}else m(n.description)}finally{d(!h),u(!1)}},[n,r,g,h,e,a,t]);return Q.jsxs(Q.Fragment,{children:[Q.jsx(is,{flexItem:!0,sx:{mt:1}}),Q.jsxs(rt,{spacing:2,direction:s?"column":"row",divider:Q.jsx(is,{orientation:s?"horizontal":"vertical",flexItem:!0}),sx:{flex:1,"& > div":{flex:1}},children:[Q.jsxs(ai,{sx:{maxWidth:"50%",overflow:"auto"},children:[Q.jsxs(mt,{variant:"h5",sx:{mt:2,mb:1,display:"flex",flexDirection:"row"},children:[t("route.analytics.overview.description"),Q.jsx(Ei,{sx:{marginLeft:"auto"},disabled:c,onClick:T,children:c?Q.jsx(_a,{size:20}):h?Q.jsx(tf,{fontSize:"small"}):Q.jsx(Hh,{fontSize:"small"})})]}),h?Q.jsx(Ar,{value:g,onChange:b=>m(b.target.value),fullWidth:!0,multiline:!0,minRows:30,sx:{"& textarea":{fontFamily:"monospace",fontSize:13}}}):Q.jsx(jc,{md:n==null?void 0:n.description})]}),Q.jsxs(rt,{direction:"column",spacing:2,children:[Q.jsx(mt,{variant:"h5",sx:{mt:`${i.spacing(2)} !important`},children:t("route.analytics.overview.statistics")}),o?Q.jsx(Br,{variant:"rounded",width:"100%",height:"90px"}):f?Q.jsxs(Ed,{variant:"outlined",severity:"warning",children:[Q.jsx(gp,{children:t("route.analytics.overview.empty.title")}),t("route.analytics.overview.empty.description")]}):Q.jsxs(Q.Fragment,{children:[Q.jsx(Wi,{children:Q.jsx(iu,{children:Q.jsx(bNe,{analytic:n})})}),Q.jsx(Wi,{children:Q.jsx(iu,{sx:{display:"flex",justifyContent:"center"},children:Q.jsx(yNe,{analytic:n})})}),Q.jsx(Wi,{children:Q.jsx(iu,{children:Q.jsx(TNe,{analytic:n})})}),Q.jsx(Wi,{children:Q.jsx(iu,{children:Q.jsx(wNe,{analytic:n})})}),Q.jsx(Wi,{children:Q.jsx(iu,{children:Q.jsx(vNe,{analytic:n})})})]})]})]})]})},Ece=F.createContext(null),kOt=({children:n})=>{const[e,t]=F.useState(!1),[i,r]=F.useState(!1),[s,a]=F.useState([]),o=F.useCallback(async(u=!1)=>{if(i&&!u||e)return s;try{t(!0);const h=await Sn.overview.get();return a(h),r(!0),h}finally{t(!1)}},[e,i,s]),l=F.useCallback(u=>u&&s.filter(h=>{var d;return h.analytic===u.howler.analytic&&(!h.detection||h.detection.toLowerCase()===((d=u.howler.detection)==null?void 0:d.toLowerCase()))}).sort((h,d)=>h.detection&&!d.detection?-1:!h.detection&&d.detection?1:0)[0],[s]),c=F.useCallback(()=>{r(!1),o()},[]);return Q.jsx(Ece.Provider,{value:{overviews:s,getOverviews:o,getMatchingOverview:l,refresh:c,loaded:i},children:n})},CNe=({overview:n,className:e,onDelete:t})=>{const{t:i}=ln();return Q.jsx(Wi,{variant:"outlined",sx:{p:1,mb:1},className:e,children:Q.jsxs(rt,{direction:"row",alignItems:"center",spacing:1,children:[Q.jsxs(rt,{children:[Q.jsxs(mt,{variant:"body1",children:[i(n.analytic)," - ",i(n.detection??"all")]}),Q.jsx(mt,{variant:"caption",color:"text.secondary",children:Q.jsx("code",{children:Q.jsx("pre",{children:n.content.split(`
|
|
619
619
|
`).filter(r=>!!r).slice(0,3).map(r=>r.replace(/(.{,64}).+/,"$1")).join(`
|
|
620
|
-
`)})})})]}),Q.jsx(ku,{}),Q.jsx(zc,{sx:{height:"24px",width:"24px"},userId:n.owner}),t&&Q.jsx(Jn,{title:i("route.overviews.manager.delete"),children:Q.jsx(Ei,{onClick:r=>t(r,n.overview_id),children:Q.jsx(Gh,{})})})]})},n.overview_id)},AOt=({analytic:n})=>{const{t:e}=ln(),t=uo("(max-width: 1800px)"),{getOverviews:i,overviews:r}=F.useContext(Ece),s=F.useMemo(()=>r.filter(l=>l.analytic===(n==null?void 0:n.name)),[n==null?void 0:n.name,r]),[a,o]=F.useState(!1);return F.useEffect(()=>{o(!0),i().finally(()=>o(!1))},[i]),n?Q.jsxs(rt,{spacing:1,position:"relative",children:[Q.jsxs(oI,{component:Lo,to:`/overviews/view?analytic=${n.name}`,variant:"extended",size:"large",color:"primary",sx:l=>({textTransform:"none",position:t?"fixed":"absolute",right:t?l.spacing(2):`calc(100% + ${l.spacing(5)})`,whiteSpace:"nowrap",...t?{bottom:l.spacing(1)}:{top:l.spacing(2)}}),children:[Q.jsx(bm,{sx:{mr:1}}),Q.jsx(mt,{children:e("route.overviews.create")})]}),a&&Q.jsx(Br,{width:"100%",height:"175px"}),!a&&s.length<1&&Q.jsx(p4,{}),s.map(l=>Q.jsx(ai,{component:Lo,to:`/overviews/view?analytic=${l.analytic}${l.detection?"&template="+l.detection:""}`,sx:c=>({textDecoration:"none","& > .MuiCard-root":{cursor:"pointer",transition:c.transitions.create("border-color"),"&:hover":{borderColor:"primary.main"}}}),children:Q.jsx(CNe,{overview:l})},l.overview_id))]}):Q.jsx(Br,{variant:"rounded",width:"100%",sx:{minHeight:"300px",mt:2}})},QNe=({template:n,className:e})=>{const{t}=ln();return Q.jsx(Wi,{variant:"outlined",sx:{p:1,mb:1},className:e,children:Q.jsxs(rt,{direction:"row",spacing:1,children:[Q.jsx(Jn,{title:t(`route.templates.manager.${n.type}`),children:{readonly:Q.jsx(Toe,{}),global:Q.jsx(iI,{}),personal:Q.jsx(yC,{})}[n.type]}),Q.jsx(is,{orientation:"vertical",flexItem:!0}),Q.jsxs(rt,{children:[Q.jsxs(mt,{variant:"body1",children:[t(n.analytic)," - ",t(n.detection??"all")]}),n.keys.map(i=>Q.jsx(mt,{variant:"caption",sx:{ml:1},children:Q.jsx("code",{children:i})},n.template_id+i))]})]})},n.template_id)},IOt=({analytic:n})=>{const{t:e}=ln(),t=uo("(max-width: 1800px)"),{dispatchApi:i}=zs(),[r,s]=F.useState([]),[a,o]=F.useState(!1);return F.useEffect(()=>{o(!0),i(Sn.template.get()).then(l=>l.filter(c=>c.analytic===(n==null?void 0:n.name))).then(s).finally(()=>o(!1))},[n==null?void 0:n.name,i]),n?Q.jsxs(rt,{spacing:1,position:"relative",children:[Q.jsxs(oI,{component:Lo,to:`/templates/view?analytic=${n.name}`,variant:"extended",size:"large",color:"primary",sx:l=>({textTransform:"none",position:t?"fixed":"absolute",right:t?l.spacing(2):`calc(100% + ${l.spacing(5)})`,whiteSpace:"nowrap",...t?{bottom:l.spacing(1)}:{top:l.spacing(2)}}),children:[Q.jsx(bm,{sx:{mr:1}}),Q.jsx(mt,{children:e("route.templates.create")})]}),a&&Q.jsx(Br,{width:"100%",height:"175px"}),!a&&r.length<1&&Q.jsx(p4,{}),r.map(l=>Q.jsx(ai,{component:Lo,to:`/templates/view?analytic=${l.analytic}${l.detection?"&template="+l.detection:""}&type=${l.type}`,sx:c=>({textDecoration:"none","& > .MuiCard-root":{cursor:"pointer",transition:c.transitions.create("border-color"),"&:hover":{borderColor:"primary.main"}}}),children:Q.jsx(QNe,{template:l})},l.template_id))]}):Q.jsx(Br,{variant:"rounded",width:"100%",sx:{minHeight:"300px",mt:2}})},DOt=({analytic:n,setAnalytic:e})=>{var f;const t=nr(),{t:i}=ln(),{dispatchApi:r}=zs(),{showSuccessMessage:s}=ed(),[a,o]=F.useState(!1),[l,c]=F.useState(!1),[u,h]=F.useState(null),d=F.useCallback(async()=>{try{if(l){o(!0);const p=await r(Sn.analytic.put(n.analytic_id,{rule:u}),{showError:!0,throwError:!0});e(p),s(i("route.analytics.updated"))}else h(n.rule)}finally{c(!l),o(!1)}},[n,r,u,l,e,s,i]);return Q.jsxs(rt,{spacing:2,sx:{height:"100%",pt:1,px:1,mt:1,border:`thin solid ${t.palette.divider}`,borderRight:`thin solid ${t.palette.divider}`},children:[Q.jsxs(mt,{variant:"h5",sx:{mt:2,mb:1,display:"flex",flexDirection:"row"},children:[Q.jsx("span",{children:i("route.analytics.rule.title")}),Q.jsxs("span",{style:{marginLeft:t.spacing(1),textTransform:"capitalize"},children:["(",n==null?void 0:n.rule_type,")"]}),Q.jsx(Ei,{sx:{marginLeft:"auto"},disabled:a,onClick:d,children:a?Q.jsx(_a,{size:20}):l?Q.jsx(tf,{fontSize:"small"}):Q.jsx(Hh,{fontSize:"small"})})]}),Q.jsx(ai,{sx:{flex:1},children:Q.jsx(Gae,{query:u??(n==null?void 0:n.rule),setQuery:l&&h,language:(f=n==null?void 0:n.rule_type)==null?void 0:f.replace("sigma","yaml")})})]})},MOt=({analytic:n,setAnalytic:e})=>{var c,u,h,d;const{dispatchApi:t}=zs(),{t:i}=ln(),{config:r}=F.useContext(wa),[s,a]=F.useState(!1),o=F.useCallback(async f=>{try{a(!0);const p=await t(Sn.analytic.put(n.analytic_id,f),{throwError:!0,showError:!0});e(p)}finally{a(!1)}},[n==null?void 0:n.analytic_id,t,e]),l=F.useMemo(()=>{var f,p;return((f=n==null?void 0:n.triage_settings)==null?void 0:f.valid_assessments)??((p=r.lookups)==null?void 0:p["howler.assessment"])??[]},[(c=n==null?void 0:n.triage_settings)==null?void 0:c.valid_assessments,r.lookups]);return Q.jsxs(rt,{spacing:2,pt:1,children:[Q.jsx(is,{flexItem:!0}),Q.jsx(nw,{sx:{"& table tr:last-child td":{borderBottom:0}},component:Lu,children:Q.jsxs(V0,{children:[Q.jsx(u4,{children:Q.jsx(Co,{children:Q.jsx(Xi,{colSpan:3,children:Q.jsx(mt,{variant:"h6",children:i("route.analytics.triage.title")})})})}),Q.jsxs(ep,{children:[Q.jsx(w6,{titleKey:"route.analytics.triage.rationale",descriptionKey:"route.analytics.triage.rationale.description",value:((u=n==null?void 0:n.triage_settings)==null?void 0:u.skip_rationale)??!1,type:"checkbox",onEdit:async f=>o({triage_settings:{skip_rationale:JSON.parse(f)}})}),Q.jsx(Co,{children:Q.jsx(Xi,{sx:{width:"100%",borderBottom:0,paddingBottom:"0 !important",whiteSpace:"nowrap"},children:i("route.analytics.triage.assessments")})}),Q.jsx(Co,{children:Q.jsx(Xi,{colSpan:3,sx:{borderBottom:0,paddingTop:"0 !important"},children:Q.jsx(mt,{variant:"caption",color:"text.secondary",children:i("route.analytics.triage.assessments.description")})})}),Q.jsx(Co,{children:Q.jsx(Xi,{colSpan:3,children:Q.jsx(Nr,{container:!0,spacing:1,children:(d=(h=r.lookups)==null?void 0:h["howler.assessment"])==null?void 0:d.map(f=>Q.jsx(Nr,{item:!0,children:Q.jsxs(rt,{direction:"row",alignItems:"center",spacing:1,sx:p=>({border:"thin solid",borderColor:"divider",p:1,borderRadius:p.shape.borderRadius}),children:[Q.jsx(Jn,{title:i(`hit.details.asessments.${f}.description`),children:Q.jsx(mt,{component:"span",children:f.split("-").map(Xm).join(" ")})}),Q.jsx(M2,{checked:l.includes(f)??!0,onChange:(p,g)=>o({triage_settings:{valid_assessments:g?i8([...l,f]):l.filter(m=>f!==m)}}),disabled:s})]})},f))})})})]})]})})]})},OOt=()=>{const{t:n}=ln(),e=Y1(),t=tl(),{user:i}=ya(),[r,s]=yc(),{dispatchApi:a}=zs(),o=nr(),{showSuccessMessage:l}=ed(),{users:c,searchUsers:u}=F.useContext(iz),{config:h}=F.useContext(wa),[d,f]=F.useState(null),[p,g]=F.useState(r.get("tab")??"overview"),[m,T]=F.useState(!1),[b,v]=F.useState(!1),[_,w]=F.useState(lH[3].crontab),y=F.useMemo(()=>((d==null?void 0:d.contributors)??[]).filter(O=>O!==(d==null?void 0:d.owner)),[d==null?void 0:d.contributors,d==null?void 0:d.owner]);F.useEffect(()=>{a(Sn.analytic.get(e.id)).then(f)},[a,e.id]);const[C,x]=F.useState(r.get("filter")??null),S=F.useCallback(O=>{x(C===O?null:O)},[C]),L=F.useCallback(async O=>{const k=await a(Sn.analytic.owner.post(d.analytic_id,{username:O}),{throwError:!0,showError:!0});f(k)},[d==null?void 0:d.analytic_id,a]),E=F.useCallback(async()=>{await a(Sn.analytic.del(d==null?void 0:d.analytic_id)),l(n("route.analytics.deleted")),t("/analytics")},[d==null?void 0:d.analytic_id,a,t,l,n]),I=F.useCallback(async()=>{if(m){v(!0);try{await a(Sn.analytic.put(d==null?void 0:d.analytic_id,{rule_crontab:_})),f(O=>({...O,rule_crontab:_})),T(!1)}finally{v(!1)}}else T(!0)},[d==null?void 0:d.analytic_id,_,a,m]);return F.useEffect(()=>{r.get("tab")!==p&&r.set("tab",p),r.get("filter")!==C&&(C?r.set("filter",C):r.delete("filter")),s(r,{replace:!0})},[C,r,s,p]),F.useEffect(()=>{d!=null&&d.owner&&u(`uname:"${d==null?void 0:d.owner}"`)},[d==null?void 0:d.owner,u]),Q.jsx(va,{maxWidth:"1500px",textAlign:"left",height:"100%",children:Q.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:[Q.jsx(mt,{variant:"h3",mb:2,children:Q.jsxs(rt,{direction:"row",spacing:1,alignItems:"center",children:[d?Q.jsx("span",{children:d.name}):Q.jsxs(rt,{children:[Q.jsx(Br,{variant:"text",width:"170px",height:"28px"}),Q.jsx(Br,{variant:"text",width:"140px",height:"28px"})]}),(d==null?void 0:d.rule)&&Q.jsxs(Q.Fragment,{children:[Q.jsx(Jn,{title:n("route.analytics.rule"),children:Q.jsx(xT,{fontSize:"large",color:"info"})}),((d==null?void 0:d.owner)===i.username||i.roles.includes("admin"))&&Q.jsx(Ei,{onClick:E,children:Q.jsx(Gh,{})})]}),Q.jsx(Ei,{component:Lo,to:`/hits?query=howler.analytic:"${d==null?void 0:d.name}"`,children:Q.jsx(pp,{})})]})}),Q.jsxs(rt,{direction:"row",spacing:1,divider:Q.jsx(is,{flexItem:!0,orientation:"vertical",sx:{marginLeft:`${o.spacing(2)} !important`,marginRight:`${o.spacing(1)} !important`}}),mb:2,children:[Q.jsxs(rt,{spacing:1,alignItems:"start",children:[Q.jsx(mt,{variant:"body1",color:"text.secondary",children:n("owner")}),Q.jsxs(rt,{direction:"row",spacing:1,alignItems:"center",children:[d!=null&&d.rule?Q.jsx(zc,{userId:d==null?void 0:d.owner}):Q.jsx(wEt,{buttonSx:{marginTop:"0 !important",marginLeft:`${o.spacing(-1)} !important`,marginRight:`${o.spacing(-1)} !important`},userId:d==null?void 0:d.owner,onChange:L,i18nLabel:"route.analytics.set.owner"}),Q.jsx(rt,{children:c[d==null?void 0:d.owner]?Q.jsxs(Q.Fragment,{children:[Q.jsx(mt,{variant:"body1",children:c[d==null?void 0:d.owner].name}),Q.jsx(mt,{component:"a",href:`mailto:${c[d==null?void 0:d.owner].email}`,variant:"caption",color:"text.secondary",children:c[d==null?void 0:d.owner].email})]}):Q.jsxs(Q.Fragment,{children:[Q.jsx(Br,{variant:"text",width:"70px"}),Q.jsx(Br,{variant:"text",width:"60px"})]})})]})]}),y.length>0&&Q.jsxs(rt,{spacing:1,children:[Q.jsx(mt,{variant:"body1",color:"text.secondary",children:n("route.analytics.contributors")}),Q.jsx(rt,{direction:"row",alignItems:"center",spacing:1,children:y.map(O=>Q.jsx(zc,{userId:O},O))})]}),(d==null?void 0:d.rule_crontab)&&Q.jsxs(rt,{direction:"row",spacing:1,children:[Q.jsxs(rt,{spacing:1,justifyContent:"space-between",children:[Q.jsx(mt,{variant:"body1",color:"text.secondary",children:n("rule.interval")}),m?Q.jsxs(su,{sx:{minWidth:"200px"},children:[Q.jsx(_m,{children:n("rule.interval")}),Q.jsx(R1,{size:"small",label:n("rule.interval"),onChange:O=>w(O.target.value),value:_,children:lH.map(O=>Q.jsx(Zs,{value:O.crontab,children:n(O.key)},O.key))})]}):Q.jsx("code",{style:{backgroundColor:o.palette.background.paper,padding:o.spacing(.5),alignSelf:"start",borderRadius:o.shape.borderRadius,border:`thin solid ${o.palette.divider}`,width:"100%"},children:d.rule_crontab})]}),((d==null?void 0:d.owner)===i.username||i.roles.includes("admin"))&&Q.jsx(Jn,{title:n(m?"rule.interval.save":"rule.interval.edit"),children:Q.jsx(Ei,{disabled:b,sx:{alignSelf:"end"},onClick:I,children:b?Q.jsx(_a,{size:20}):m?Q.jsx(tf,{}):Q.jsx(Hh,{})})})]})]}),Q.jsxs(Nr,{container:!0,children:[Q.jsx(Nr,{item:!0,xs:12,md:9,children:Q.jsxs(O4,{value:p,onChange:(O,k)=>g(k),children:[Q.jsx(Vs,{label:n("route.analytics.tab.overview"),value:"overview"}),Q.jsx(Vs,{label:n("route.analytics.tab.comments"),value:"comments"}),Q.jsx(Vs,{label:n("route.analytics.tab.hit_comments"),value:"hit_comments"}),Q.jsx(Vs,{label:n("route.analytics.tab.templates"),value:"templates"}),Q.jsx(Vs,{label:n("route.analytics.tab.overviews"),value:"overviews"}),(d==null?void 0:d.rule)&&Q.jsx(Vs,{label:n("route.analytics.tab.rule"),value:"rule"}),(h==null?void 0:h.configuration.features.notebook)&&Q.jsx(Vs,{label:n("route.analytics.tab.notebooks"),value:"notebooks"}),Q.jsx(Vs,{label:n("route.analytics.tab.triage"),value:"triage"})]})}),["comments","hit_comments"].includes(p)&&Q.jsx(Nr,{item:!0,xs:12,md:3,children:Q.jsx(Ya,{options:(d==null?void 0:d.detections)??[],renderInput:O=>Q.jsx(Ar,{...O,label:"Detection"}),value:C,onChange:(O,k)=>S(k)})})]}),{comments:Q.jsx(xEt,{analytic:d,setAnalytic:f}),hit_comments:Q.jsx(SEt,{analytic:d}),overview:Q.jsx(EOt,{analytic:d,setAnalytic:f}),overviews:Q.jsx(AOt,{analytic:d}),rule:Q.jsx(DOt,{analytic:d,setAnalytic:f}),templates:Q.jsx(IOt,{analytic:d}),triage:Q.jsx(MOt,{analytic:d,setAnalytic:f}),...h!=null&&h.configuration.features.notebook?{notebooks:Q.jsx(kEt,{analytic:d,setAnalytic:f})}:{}}[p]]})})},NOt=()=>{var E,I;const n=nr(),e=tl(),{t}=ln(),{dispatchApi:i}=zs(),{load:r}=F.useContext(e5),[s,a]=yc(),o=oa(Ii.PAGE_COUNT,25)[0],l=ya(),[c,u]=X7(Ii.ONLY_RULES,0),[h,d]=F.useState(!1),[f,p]=F.useState(!1),[g,m]=F.useState(s.get("phrase")||""),[T,b]=F.useState(parseInt(s.get("offset"))||0),[v,_]=F.useState(null),w=F.useCallback(async O=>{await i(Sn.analytic.favourite.post(O.analytic_id)),l.setUser({...l.user,favourite_analytics:[...l.user.favourite_analytics,O.analytic_id]})},[l,i]),y=F.useCallback(async O=>{await i(Sn.analytic.favourite.del(O.analytic_id)),l.setUser({...l.user,favourite_analytics:l.user.favourite_analytics.filter(k=>k!==O.analytic_id)})},[l,i]),C=F.useCallback(async()=>{d(!0),p(!1),g?s.set("phrase",g):s.delete("phrase"),a(s,{replace:!0});try{const O=_p(g),k=await i(Sn.search.analytic.post({query:`name:*${O}* OR detections:*${O}*`+(c>0?" AND _exists_:rule_type":c<0?" AND -_exists_:rule_type":""),rows:o,offset:T}));_(k),r(k.items.map(N=>({id:N.analytic_id,item:N})))}catch{p(!0)}finally{d(!1)}},[i,r,T,c,o,g,s,a]),x=F.useCallback(O=>{O!==T&&(s.set("offset",O.toString()),a(s,{replace:!0}),b(O))},[T,s,a]),S=F.useCallback(async(O,k)=>{var N;O.preventDefault(),O.stopPropagation(),(N=l.user)!=null&&N.favourite_analytics.includes(k.analytic_id)?await i(y(k)):await i(w(k))},[w,(E=l.user)==null?void 0:E.favourite_analytics,i,y]);F.useEffect(()=>{C(),s.has("offset")||(s.set("offset","0"),a(s,{replace:!0}))},[c]),F.useEffect(()=>{(v==null?void 0:v.total)<=T&&(b(0),s.set("offset","0"),a(s,{replace:!0}))},[T,v==null?void 0:v.total,s,a]),F.useEffect(()=>{h||C()},[T]);const L=F.useCallback(({item:O},k)=>{var R,H,j;const N=(O.item.contributors??[]).filter(U=>U!==O.item.owner);return Q.jsxs(Wi,{onClick:()=>e(`/analytics/${O.item.analytic_id}`),variant:"outlined",className:k(),sx:{"&:hover":{borderColor:"primary.main"},transitionProperty:"border-color",cursor:"pointer",mt:1},children:[Q.jsx(W6,{title:Q.jsxs(rt,{direction:"row",spacing:1,alignItems:"center",children:[Q.jsx("span",{children:O.item.name}),O.item.rule_type&&Q.jsxs(Q.Fragment,{children:[Q.jsx(Jn,{title:t("route.analytics.rule"),children:Q.jsx(xT,{color:"info"})}),Q.jsx("code",{style:{fontSize:".55em",backgroundColor:n.palette.background.paper,padding:n.spacing(.5),borderRadius:n.shape.borderRadius,border:`thin solid ${n.palette.divider}`},children:O.item.rule_type})]}),Q.jsx(ku,{}),Q.jsxs(rt,{direction:"row",spacing:1,sx:{mt:1},children:[O.item.owner&&Q.jsx(zc,{sx:{width:24,height:24},userId:O.item.owner}),N.length>0&&Q.jsx(is,{orientation:"vertical",flexItem:!0}),Q.jsx(woe,{children:N.map(U=>Q.jsx(zc,{sx:{width:24,height:24},userId:U},U))})]}),Q.jsx(Jn,{title:t("button.pin"),children:Q.jsx(Ei,{size:"small",onClick:U=>S(U,O.item),children:(H=(R=l.user)==null?void 0:R.favourite_analytics)!=null&&H.includes(O.item.analytic_id)?Q.jsx(loe,{}):Q.jsx($ve,{})})})]})}),((j=O.item.detections)==null?void 0:j.length)>0&&Q.jsx(iu,{sx:{paddingTop:0},children:Q.jsxs(Nr,{container:!0,spacing:.5,sx:{marginTop:`${n.spacing(-.5)} !important`},children:[O.item.detections.slice(0,5).map(U=>Q.jsx(Nr,{item:!0,children:Q.jsx(xs,{size:"small",variant:"outlined",label:U})},U)),O.item.detections.length>5&&Q.jsx(Nr,{item:!0,children:Q.jsx(Jn,{title:Q.jsx(rt,{children:O.item.detections.slice(5).map(U=>Q.jsx("span",{children:U},U))}),children:Q.jsx(xs,{size:"small",variant:"outlined",label:`+ ${O.item.detections.length-5}`})})})]})})]},O.item.name)},[(I=l.user)==null?void 0:I.favourite_analytics,e,S,t,n]);return Q.jsx(JC,{onSearch:C,onPageChange:x,phrase:g,setPhrase:m,hasError:f,searching:h,searchAdornment:Q.jsx(Jf,{position:"end",children:Q.jsx(Jn,{title:t(`route.analytics.search.filter.rules.${c<0?"hide":c>0?"show":"toggle"}`),children:Q.jsx(Ei,{onClick:()=>u((c+2)%3-1),children:Q.jsx(xT,{color:c<0?"error":c>0?"info":"inherit",sx:{transition:n.transitions.create(["color"])}})})})}),aboveSearch:Q.jsx(mt,{sx:{fontStyle:"italic",color:n.palette.text.disabled,mb:.5},variant:"body2",children:t("route.analytics.search.prompt")}),renderer:L,response:v,searchPrompt:"route.analytics.manager.search"})},ROt=()=>Q.jsx(Pb,{children:Q.jsx(NOt,{})});var Fu={},U5e;function POt(){if(U5e)return Fu;U5e=1;var n=Qb();const e=/^[a-z0-9]+(-[a-z0-9]+)*$/,t=(ze,bt,Lt,Ot="")=>{const kt=ze.split(":");if(ze.slice(0,1)==="@"){if(kt.length<2||kt.length>3)return null;Ot=kt.shift().slice(1)}if(kt.length>3||!kt.length)return null;if(kt.length>1){const ie=kt.pop(),ue=kt.pop(),Me={provider:kt.length>0?kt[0]:Ot,prefix:ue,name:ie};return bt&&!i(Me)?null:Me}const Y=kt[0],K=Y.split("-");if(K.length>1){const ie={provider:Ot,prefix:K.shift(),name:K.join("-")};return bt&&!i(ie)?null:ie}if(Lt&&Ot===""){const ie={provider:Ot,prefix:"",name:Y};return bt&&!i(ie,Lt)?null:ie}return null},i=(ze,bt)=>ze?!!((ze.provider===""||ze.provider.match(e))&&(bt&&ze.prefix===""||ze.prefix.match(e))&&ze.name.match(e)):!1,r=Object.freeze({left:0,top:0,width:16,height:16}),s=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),a=Object.freeze({...r,...s}),o=Object.freeze({...a,body:"",hidden:!1});function l(ze,bt){const Lt={};!ze.hFlip!=!bt.hFlip&&(Lt.hFlip=!0),!ze.vFlip!=!bt.vFlip&&(Lt.vFlip=!0);const Ot=((ze.rotate||0)+(bt.rotate||0))%4;return Ot&&(Lt.rotate=Ot),Lt}function c(ze,bt){const Lt=l(ze,bt);for(const Ot in o)Ot in s?Ot in ze&&!(Ot in Lt)&&(Lt[Ot]=s[Ot]):Ot in bt?Lt[Ot]=bt[Ot]:Ot in ze&&(Lt[Ot]=ze[Ot]);return Lt}function u(ze,bt){const Lt=ze.icons,Ot=ze.aliases||Object.create(null),kt=Object.create(null);function Y(K){if(Lt[K])return kt[K]=[];if(!(K in kt)){kt[K]=null;const ie=Ot[K]&&Ot[K].parent,ue=ie&&Y(ie);ue&&(kt[K]=[ie].concat(ue))}return kt[K]}return Object.keys(Lt).concat(Object.keys(Ot)).forEach(Y),kt}function h(ze,bt,Lt){const Ot=ze.icons,kt=ze.aliases||Object.create(null);let Y={};function K(ie){Y=c(Ot[ie]||kt[ie],Y)}return K(bt),Lt.forEach(K),c(ze,Y)}function d(ze,bt){const Lt=[];if(typeof ze!="object"||typeof ze.icons!="object")return Lt;ze.not_found instanceof Array&&ze.not_found.forEach(kt=>{bt(kt,null),Lt.push(kt)});const Ot=u(ze);for(const kt in Ot){const Y=Ot[kt];Y&&(bt(kt,h(ze,kt,Y)),Lt.push(kt))}return Lt}const f={provider:"",aliases:{},not_found:{},...r};function p(ze,bt){for(const Lt in bt)if(Lt in ze&&typeof ze[Lt]!=typeof bt[Lt])return!1;return!0}function g(ze){if(typeof ze!="object"||ze===null)return null;const bt=ze;if(typeof bt.prefix!="string"||!ze.icons||typeof ze.icons!="object"||!p(ze,f))return null;const Lt=bt.icons;for(const kt in Lt){const Y=Lt[kt];if(!kt.match(e)||typeof Y.body!="string"||!p(Y,o))return null}const Ot=bt.aliases||Object.create(null);for(const kt in Ot){const Y=Ot[kt],K=Y.parent;if(!kt.match(e)||typeof K!="string"||!Lt[K]&&!Ot[K]||!p(Y,o))return null}return bt}const m=Object.create(null);function T(ze,bt){return{provider:ze,prefix:bt,icons:Object.create(null),missing:new Set}}function b(ze,bt){const Lt=m[ze]||(m[ze]=Object.create(null));return Lt[bt]||(Lt[bt]=T(ze,bt))}function v(ze,bt){return g(bt)?d(bt,(Lt,Ot)=>{Ot?ze.icons[Lt]=Ot:ze.missing.add(Lt)}):[]}function _(ze,bt,Lt){try{if(typeof Lt.body=="string")return ze.icons[bt]={...Lt},!0}catch{}return!1}function w(ze,bt){let Lt=[];return(typeof ze=="string"?[ze]:Object.keys(m)).forEach(kt=>{(typeof kt=="string"&&typeof bt=="string"?[bt]:Object.keys(m[kt]||{})).forEach(K=>{const ie=b(kt,K);Lt=Lt.concat(Object.keys(ie.icons).map(ue=>(kt!==""?"@"+kt+":":"")+K+":"+ue))})}),Lt}let y=!1;function C(ze){return typeof ze=="boolean"&&(y=ze),y}function x(ze){const bt=typeof ze=="string"?t(ze,!0,y):ze;if(bt){const Lt=b(bt.provider,bt.prefix),Ot=bt.name;return Lt.icons[Ot]||(Lt.missing.has(Ot)?null:void 0)}}function S(ze,bt){const Lt=t(ze,!0,y);if(!Lt)return!1;const Ot=b(Lt.provider,Lt.prefix);return _(Ot,Lt.name,bt)}function L(ze,bt){if(typeof ze!="object")return!1;if(typeof bt!="string"&&(bt=ze.provider||""),y&&!bt&&!ze.prefix){let kt=!1;return g(ze)&&(ze.prefix="",d(ze,(Y,K)=>{K&&S(Y,K)&&(kt=!0)})),kt}const Lt=ze.prefix;if(!i({provider:bt,prefix:Lt,name:"a"}))return!1;const Ot=b(bt,Lt);return!!v(Ot,ze)}function E(ze){return!!x(ze)}function I(ze){const bt=x(ze);return bt?{...a,...bt}:null}const O=Object.freeze({width:null,height:null}),k=Object.freeze({...O,...s}),N=/(-?[0-9.]*[0-9]+[0-9.]*)/g,R=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function H(ze,bt,Lt){if(bt===1)return ze;if(Lt=Lt||100,typeof ze=="number")return Math.ceil(ze*bt*Lt)/Lt;if(typeof ze!="string")return ze;const Ot=ze.split(N);if(Ot===null||!Ot.length)return ze;const kt=[];let Y=Ot.shift(),K=R.test(Y);for(;;){if(K){const ie=parseFloat(Y);isNaN(ie)?kt.push(Y):kt.push(Math.ceil(ie*bt*Lt)/Lt)}else kt.push(Y);if(Y=Ot.shift(),Y===void 0)return kt.join("");K=!K}}const j=ze=>ze==="unset"||ze==="undefined"||ze==="none";function U(ze,bt){const Lt={...a,...ze},Ot={...k,...bt},kt={left:Lt.left,top:Lt.top,width:Lt.width,height:Lt.height};let Y=Lt.body;[Lt,Ot].forEach(an=>{const Mn=[],oi=an.hFlip,gi=an.vFlip;let kn=an.rotate;oi?gi?kn+=2:(Mn.push("translate("+(kt.width+kt.left).toString()+" "+(0-kt.top).toString()+")"),Mn.push("scale(-1 1)"),kt.top=kt.left=0):gi&&(Mn.push("translate("+(0-kt.left).toString()+" "+(kt.height+kt.top).toString()+")"),Mn.push("scale(1 -1)"),kt.top=kt.left=0);let ir;switch(kn<0&&(kn-=Math.floor(kn/4)*4),kn=kn%4,kn){case 1:ir=kt.height/2+kt.top,Mn.unshift("rotate(90 "+ir.toString()+" "+ir.toString()+")");break;case 2:Mn.unshift("rotate(180 "+(kt.width/2+kt.left).toString()+" "+(kt.height/2+kt.top).toString()+")");break;case 3:ir=kt.width/2+kt.left,Mn.unshift("rotate(-90 "+ir.toString()+" "+ir.toString()+")");break}kn%2===1&&(kt.left!==kt.top&&(ir=kt.left,kt.left=kt.top,kt.top=ir),kt.width!==kt.height&&(ir=kt.width,kt.width=kt.height,kt.height=ir)),Mn.length&&(Y='<g transform="'+Mn.join(" ")+'">'+Y+"</g>")});const K=Ot.width,ie=Ot.height,ue=kt.width,Me=kt.height;let nt,Tt;K===null?(Tt=ie===null?"1em":ie==="auto"?Me:ie,nt=H(Tt,ue/Me)):(nt=K==="auto"?ue:K,Tt=ie===null?H(nt,Me/ue):ie==="auto"?Me:ie);const lt={},Wt=(an,Mn)=>{j(Mn)||(lt[an]=Mn.toString())};return Wt("width",nt),Wt("height",Tt),lt.viewBox=kt.left.toString()+" "+kt.top.toString()+" "+ue.toString()+" "+Me.toString(),{attributes:lt,body:Y}}const W=/\sid="(\S+)"/g,Z="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let te=0;function X(ze,bt=Z){const Lt=[];let Ot;for(;Ot=W.exec(ze);)Lt.push(Ot[1]);if(!Lt.length)return ze;const kt="suffix"+(Math.random()*16777216|Date.now()).toString(16);return Lt.forEach(Y=>{const K=typeof bt=="function"?bt(Y):bt+(te++).toString(),ie=Y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");ze=ze.replace(new RegExp('([#;"])('+ie+')([")]|\\.[a-z])',"g"),"$1"+K+kt+"$3")}),ze=ze.replace(new RegExp(kt,"g"),""),ze}const oe=Object.create(null);function fe(ze,bt){oe[ze]=bt}function Le(ze){return oe[ze]||oe[""]}function Pe(ze){let bt;if(typeof ze.resources=="string")bt=[ze.resources];else if(bt=ze.resources,!(bt instanceof Array)||!bt.length)return null;return{resources:bt,path:ze.path||"/",maxURL:ze.maxURL||500,rotate:ze.rotate||750,timeout:ze.timeout||5e3,random:ze.random===!0,index:ze.index||0,dataAfterTimeout:ze.dataAfterTimeout!==!1}}const Qe=Object.create(null),_e=["https://api.simplesvg.com","https://api.unisvg.com"],Ee=[];for(;_e.length>0;)_e.length===1||Math.random()>.5?Ee.push(_e.shift()):Ee.push(_e.pop());Qe[""]=Pe({resources:["https://api.iconify.design"].concat(Ee)});function Ne(ze,bt){const Lt=Pe(bt);return Lt===null?!1:(Qe[ze]=Lt,!0)}function ht(ze){return Qe[ze]}function zt(){return Object.keys(Qe)}let $n=(()=>{let ze;try{if(ze=fetch,typeof ze=="function")return ze}catch{}})();function zn(ze){$n=ze}function qi(){return $n}function Jt(ze,bt){const Lt=ht(ze);if(!Lt)return 0;let Ot;if(!Lt.maxURL)Ot=0;else{let kt=0;Lt.resources.forEach(K=>{kt=Math.max(kt,K.length)});const Y=bt+".json?icons=";Ot=Lt.maxURL-kt-Lt.path.length-Y.length}return Ot}function Be(ze){return ze===404}const ot=(ze,bt,Lt)=>{const Ot=[],kt=Jt(ze,bt),Y="icons";let K={type:Y,provider:ze,prefix:bt,icons:[]},ie=0;return Lt.forEach((ue,Me)=>{ie+=ue.length+1,ie>=kt&&Me>0&&(Ot.push(K),K={type:Y,provider:ze,prefix:bt,icons:[]},ie=ue.length),K.icons.push(ue)}),Ot.push(K),Ot};function Fe(ze){if(typeof ze=="string"){const bt=ht(ze);if(bt)return bt.path}return"/"}const ge={prepare:ot,send:(ze,bt,Lt)=>{if(!$n){Lt("abort",424);return}let Ot=Fe(bt.provider);switch(bt.type){case"icons":{const Y=bt.prefix,ie=bt.icons.join(","),ue=new URLSearchParams({icons:ie});Ot+=Y+".json?"+ue.toString();break}case"custom":{const Y=bt.uri;Ot+=Y.slice(0,1)==="/"?Y.slice(1):Y;break}default:Lt("abort",400);return}let kt=503;$n(ze+Ot).then(Y=>{const K=Y.status;if(K!==200){setTimeout(()=>{Lt(Be(K)?"abort":"next",K)});return}return kt=501,Y.json()}).then(Y=>{if(typeof Y!="object"||Y===null){setTimeout(()=>{Y===404?Lt("abort",Y):Lt("next",kt)});return}setTimeout(()=>{Lt("success",Y)})}).catch(()=>{Lt("next",kt)})}};function xe(ze){const bt={loaded:[],missing:[],pending:[]},Lt=Object.create(null);ze.sort((kt,Y)=>kt.provider!==Y.provider?kt.provider.localeCompare(Y.provider):kt.prefix!==Y.prefix?kt.prefix.localeCompare(Y.prefix):kt.name.localeCompare(Y.name));let Ot={provider:"",prefix:"",name:""};return ze.forEach(kt=>{if(Ot.name===kt.name&&Ot.prefix===kt.prefix&&Ot.provider===kt.provider)return;Ot=kt;const Y=kt.provider,K=kt.prefix,ie=kt.name,ue=Lt[Y]||(Lt[Y]=Object.create(null)),Me=ue[K]||(ue[K]=b(Y,K));let nt;ie in Me.icons?nt=bt.loaded:K===""||Me.missing.has(ie)?nt=bt.missing:nt=bt.pending;const Tt={provider:Y,prefix:K,name:ie};nt.push(Tt)}),bt}function Ve(ze,bt){ze.forEach(Lt=>{const Ot=Lt.loaderCallbacks;Ot&&(Lt.loaderCallbacks=Ot.filter(kt=>kt.id!==bt))})}function be(ze){ze.pendingCallbacksFlag||(ze.pendingCallbacksFlag=!0,setTimeout(()=>{ze.pendingCallbacksFlag=!1;const bt=ze.loaderCallbacks?ze.loaderCallbacks.slice(0):[];if(!bt.length)return;let Lt=!1;const Ot=ze.provider,kt=ze.prefix;bt.forEach(Y=>{const K=Y.icons,ie=K.pending.length;K.pending=K.pending.filter(ue=>{if(ue.prefix!==kt)return!0;const Me=ue.name;if(ze.icons[Me])K.loaded.push({provider:Ot,prefix:kt,name:Me});else if(ze.missing.has(Me))K.missing.push({provider:Ot,prefix:kt,name:Me});else return Lt=!0,!0;return!1}),K.pending.length!==ie&&(Lt||Ve([ze],Y.id),Y.callback(K.loaded.slice(0),K.missing.slice(0),K.pending.slice(0),Y.abort))})}))}let me=0;function Ce(ze,bt,Lt){const Ot=me++,kt=Ve.bind(null,Lt,Ot);if(!bt.pending.length)return kt;const Y={id:Ot,icons:bt,callback:ze,abort:kt};return Lt.forEach(K=>{(K.loaderCallbacks||(K.loaderCallbacks=[])).push(Y)}),kt}function Re(ze,bt=!0,Lt=!1){const Ot=[];return ze.forEach(kt=>{const Y=typeof kt=="string"?t(kt,bt,Lt):kt;Y&&Ot.push(Y)}),Ot}var vt={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Rt(ze,bt,Lt,Ot){const kt=ze.resources.length,Y=ze.random?Math.floor(Math.random()*kt):ze.index;let K;if(ze.random){let Tr=ze.resources.slice(0);for(K=[];Tr.length>1;){const Ns=Math.floor(Math.random()*Tr.length);K.push(Tr[Ns]),Tr=Tr.slice(0,Ns).concat(Tr.slice(Ns+1))}K=K.concat(Tr)}else K=ze.resources.slice(Y).concat(ze.resources.slice(0,Y));const ie=Date.now();let ue="pending",Me=0,nt,Tt=null,lt=[],Wt=[];typeof Ot=="function"&&Wt.push(Ot);function an(){Tt&&(clearTimeout(Tt),Tt=null)}function Mn(){ue==="pending"&&(ue="aborted"),an(),lt.forEach(Tr=>{Tr.status==="pending"&&(Tr.status="aborted")}),lt=[]}function oi(Tr,Ns){Ns&&(Wt=[]),typeof Tr=="function"&&Wt.push(Tr)}function gi(){return{startTime:ie,payload:bt,status:ue,queriesSent:Me,queriesPending:lt.length,subscribe:oi,abort:Mn}}function kn(){ue="failed",Wt.forEach(Tr=>{Tr(void 0,nt)})}function ir(){lt.forEach(Tr=>{Tr.status==="pending"&&(Tr.status="aborted")}),lt=[]}function Cs(Tr,Ns,fo){const Zl=Ns!=="success";switch(lt=lt.filter(Pt=>Pt!==Tr),ue){case"pending":break;case"failed":if(Zl||!ze.dataAfterTimeout)return;break;default:return}if(Ns==="abort"){nt=fo,kn();return}if(Zl){nt=fo,lt.length||(K.length?ms():kn());return}if(an(),ir(),!ze.random){const Pt=ze.resources.indexOf(Tr.resource);Pt!==-1&&Pt!==ze.index&&(ze.index=Pt)}ue="completed",Wt.forEach(Pt=>{Pt(fo)})}function ms(){if(ue!=="pending")return;an();const Tr=K.shift();if(Tr===void 0){if(lt.length){Tt=setTimeout(()=>{an(),ue==="pending"&&(ir(),kn())},ze.timeout);return}kn();return}const Ns={status:"pending",resource:Tr,callback:(fo,Zl)=>{Cs(Ns,fo,Zl)}};lt.push(Ns),Me++,Tt=setTimeout(ms,ze.rotate),Lt(Tr,bt,Ns.callback)}return setTimeout(ms),gi}function qt(ze){const bt={...vt,...ze};let Lt=[];function Ot(){Lt=Lt.filter(ie=>ie().status==="pending")}function kt(ie,ue,Me){const nt=Rt(bt,ie,ue,(Tt,lt)=>{Ot(),Me&&Me(Tt,lt)});return Lt.push(nt),nt}function Y(ie){return Lt.find(ue=>ie(ue))||null}return{query:kt,find:Y,setIndex:ie=>{bt.index=ie},getIndex:()=>bt.index,cleanup:Ot}}function en(){}const En=Object.create(null);function yn(ze){if(!En[ze]){const bt=ht(ze);if(!bt)return;const Lt=qt(bt),Ot={config:bt,redundancy:Lt};En[ze]=Ot}return En[ze]}function Pn(ze,bt,Lt){let Ot,kt;if(typeof ze=="string"){const Y=Le(ze);if(!Y)return Lt(void 0,424),en;kt=Y.send;const K=yn(ze);K&&(Ot=K.redundancy)}else{const Y=Pe(ze);if(Y){Ot=qt(Y);const K=ze.resources?ze.resources[0]:"",ie=Le(K);ie&&(kt=ie.send)}}return!Ot||!kt?(Lt(void 0,424),en):Ot.query(bt,kt,Lt)().abort}const mi="iconify2",Zi="iconify",si=Zi+"-count",lr=Zi+"-version",Qr=36e5,Oi=168;function er(ze,bt){try{return ze.getItem(bt)}catch{}}function Ti(ze,bt,Lt){try{return ze.setItem(bt,Lt),!0}catch{}}function yi(ze,bt){try{ze.removeItem(bt)}catch{}}function cr(ze,bt){return Ti(ze,si,bt.toString())}function Ki(ze){return parseInt(er(ze,si))||0}const Ri={local:!0,session:!0},tr={local:new Set,session:new Set};let Vi=!1;function et(ze){Vi=ze}let We=typeof window>"u"?{}:window;function Dt(ze){const bt=ze+"Storage";try{if(We&&We[bt]&&typeof We[bt].length=="number")return We[bt]}catch{}Ri[ze]=!1}function cn(ze,bt){const Lt=Dt(ze);if(!Lt)return;const Ot=er(Lt,lr);if(Ot!==mi){if(Ot){const ie=Ki(Lt);for(let ue=0;ue<ie;ue++)yi(Lt,Zi+ue.toString())}Ti(Lt,lr,mi),cr(Lt,0);return}const kt=Math.floor(Date.now()/Qr)-Oi,Y=ie=>{const ue=Zi+ie.toString(),Me=er(Lt,ue);if(typeof Me=="string"){try{const nt=JSON.parse(Me);if(typeof nt=="object"&&typeof nt.cached=="number"&&nt.cached>kt&&typeof nt.provider=="string"&&typeof nt.data=="object"&&typeof nt.data.prefix=="string"&&bt(nt,ie))return!0}catch{}yi(Lt,ue)}};let K=Ki(Lt);for(let ie=K-1;ie>=0;ie--)Y(ie)||(ie===K-1?(K--,cr(Lt,K)):tr[ze].add(ie))}function Qn(){if(!Vi){et(!0);for(const ze in Ri)cn(ze,bt=>{const Lt=bt.data,Ot=bt.provider,kt=Lt.prefix,Y=b(Ot,kt);if(!v(Y,Lt).length)return!1;const K=Lt.lastModified||-1;return Y.lastModifiedCached=Y.lastModifiedCached?Math.min(Y.lastModifiedCached,K):K,!0})}}function jn(ze,bt){const Lt=ze.lastModifiedCached;if(Lt&&Lt>=bt)return Lt===bt;if(ze.lastModifiedCached=bt,Lt)for(const Ot in Ri)cn(Ot,kt=>{const Y=kt.data;return kt.provider!==ze.provider||Y.prefix!==ze.prefix||Y.lastModified===bt});return!0}function fi(ze,bt){Vi||Qn();function Lt(Ot){let kt;if(!Ri[Ot]||!(kt=Dt(Ot)))return;const Y=tr[Ot];let K;if(Y.size)Y.delete(K=Array.from(Y).shift());else if(K=Ki(kt),!cr(kt,K+1))return;const ie={cached:Math.floor(Date.now()/Qr),provider:ze.provider,data:bt};return Ti(kt,Zi+K.toString(),JSON.stringify(ie))}bt.lastModified&&!jn(ze,bt.lastModified)||Object.keys(bt.icons).length&&(bt.not_found&&(bt=Object.assign({},bt),delete bt.not_found),Lt("local")||Lt("session"))}function Yn(){}function qn(ze){ze.iconsLoaderFlag||(ze.iconsLoaderFlag=!0,setTimeout(()=>{ze.iconsLoaderFlag=!1,be(ze)}))}function ii(ze,bt){ze.iconsToLoad?ze.iconsToLoad=ze.iconsToLoad.concat(bt).sort():ze.iconsToLoad=bt,ze.iconsQueueFlag||(ze.iconsQueueFlag=!0,setTimeout(()=>{ze.iconsQueueFlag=!1;const{provider:Lt,prefix:Ot}=ze,kt=ze.iconsToLoad;delete ze.iconsToLoad;let Y;if(!kt||!(Y=Le(Lt)))return;Y.prepare(Lt,Ot,kt).forEach(ie=>{Pn(Lt,ie,ue=>{if(typeof ue!="object")ie.icons.forEach(Me=>{ze.missing.add(Me)});else try{const Me=v(ze,ue);if(!Me.length)return;const nt=ze.pendingIcons;nt&&Me.forEach(Tt=>{nt.delete(Tt)}),fi(ze,ue)}catch(Me){console.error(Me)}qn(ze)})})}))}const li=(ze,bt)=>{const Lt=Re(ze,!0,C()),Ot=xe(Lt);if(!Ot.pending.length){let ue=!0;return bt&&setTimeout(()=>{ue&&bt(Ot.loaded,Ot.missing,Ot.pending,Yn)}),()=>{ue=!1}}const kt=Object.create(null),Y=[];let K,ie;return Ot.pending.forEach(ue=>{const{provider:Me,prefix:nt}=ue;if(nt===ie&&Me===K)return;K=Me,ie=nt,Y.push(b(Me,nt));const Tt=kt[Me]||(kt[Me]=Object.create(null));Tt[nt]||(Tt[nt]=[])}),Ot.pending.forEach(ue=>{const{provider:Me,prefix:nt,name:Tt}=ue,lt=b(Me,nt),Wt=lt.pendingIcons||(lt.pendingIcons=new Set);Wt.has(Tt)||(Wt.add(Tt),kt[Me][nt].push(Tt))}),Y.forEach(ue=>{const{provider:Me,prefix:nt}=ue;kt[Me][nt].length&&ii(ue,kt[Me][nt])}),bt?Ce(bt,Ot,Y):Yn},Ln=ze=>new Promise((bt,Lt)=>{const Ot=typeof ze=="string"?t(ze,!0):ze;if(!Ot){Lt(ze);return}li([Ot||ze],kt=>{if(kt.length&&Ot){const Y=x(Ot);if(Y){bt({...a,...Y});return}}Lt(ze)})});function ut(ze,bt){switch(ze){case"local":case"session":Ri[ze]=bt;break;case"all":for(const Lt in Ri)Ri[Lt]=bt;break}}function wn(ze,bt){const Lt={...ze};for(const Ot in bt){const kt=bt[Ot],Y=typeof kt;Ot in O?(kt===null||kt&&(Y==="string"||Y==="number"))&&(Lt[Ot]=kt):Y===typeof Lt[Ot]&&(Lt[Ot]=Ot==="rotate"?kt%4:kt)}return Lt}const Nt=/[\s,]+/;function Ye(ze,bt){bt.split(Nt).forEach(Lt=>{switch(Lt.trim()){case"horizontal":ze.hFlip=!0;break;case"vertical":ze.vFlip=!0;break}})}function Gt(ze,bt=0){const Lt=ze.replace(/^-?[0-9.]*/,"");function Ot(kt){for(;kt<0;)kt+=4;return kt%4}if(Lt===""){const kt=parseInt(ze);return isNaN(kt)?0:Ot(kt)}else if(Lt!==ze){let kt=0;switch(Lt){case"%":kt=25;break;case"deg":kt=90}if(kt){let Y=parseFloat(ze.slice(0,ze.length-Lt.length));return isNaN(Y)?0:(Y=Y/kt,Y%1===0?Ot(Y):0)}}return bt}function Gn(ze,bt){let Lt=ze.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const Ot in bt)Lt+=" "+Ot+'="'+bt[Ot]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+Lt+">"+ze+"</svg>"}function pi(ze){return ze.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Hr(ze){return"data:image/svg+xml,"+pi(ze)}function Ui(ze){return'url("'+Hr(ze)+'")'}let Xr;function Xs(){try{Xr=window.trustedTypes.createPolicy("iconify",{createHTML:ze=>ze})}catch{Xr=null}}function ao(ze){return Xr===void 0&&Xs(),Xr?Xr.createHTML(ze):ze}const ho={...k,inline:!1},ws={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},ji={display:"inline-block"},kr={backgroundColor:"currentColor"},Po={backgroundColor:"transparent"},fl={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Zr={WebkitMask:kr,mask:kr,background:Po};for(const ze in Zr){const bt=Zr[ze];for(const Lt in fl)bt[ze+Lt]=fl[Lt]}const To={...ho,inline:!0};function il(ze){return ze+(ze.match(/^[-0-9.]+$/)?"px":"")}const Uc=(ze,bt,Lt,Ot)=>{const kt=Lt?To:ho,Y=wn(kt,bt),K=bt.mode||"svg",ie={},ue=bt.style||{},Me={...K==="svg"?ws:{},ref:Ot};for(let gi in bt){const kn=bt[gi];if(kn!==void 0)switch(gi){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":Y[gi]=kn===!0||kn==="true"||kn===1;break;case"flip":typeof kn=="string"&&Ye(Y,kn);break;case"color":ie.color=kn;break;case"rotate":typeof kn=="string"?Y[gi]=Gt(kn):typeof kn=="number"&&(Y[gi]=kn);break;case"ariaHidden":case"aria-hidden":kn!==!0&&kn!=="true"&&delete Me["aria-hidden"];break;default:kt[gi]===void 0&&(Me[gi]=kn)}}const nt=U(ze,Y),Tt=nt.attributes;if(Y.inline&&(ie.verticalAlign="-0.125em"),K==="svg"){Me.style={...ie,...ue},Object.assign(Me,Tt);let gi=0,kn=bt.id;return typeof kn=="string"&&(kn=kn.replace(/-/g,"_")),Me.dangerouslySetInnerHTML={__html:ao(X(nt.body,kn?()=>kn+"ID"+gi++:"iconifyReact"))},n.createElement("svg",Me)}const{body:lt,width:Wt,height:an}=ze,Mn=K==="mask"||(K==="bg"?!1:lt.indexOf("currentColor")!==-1),oi=Gn(lt,{...Tt,width:Wt+"",height:an+""});return Me.style={...ie,"--svg":Ui(oi),width:il(Tt.width),height:il(Tt.height),...ji,...Mn?kr:Po,...ue},n.createElement("span",Me)};function lc(ze){ut(ze,!0)}function Hl(ze){ut(ze,!1)}if(C(!0),fe("",ge),typeof document<"u"&&typeof window<"u"){Qn();const ze=window;if(ze.IconifyPreload!==void 0){const bt=ze.IconifyPreload,Lt="Invalid IconifyPreload syntax.";typeof bt=="object"&&bt!==null&&(bt instanceof Array?bt:[bt]).forEach(Ot=>{try{(typeof Ot!="object"||Ot===null||Ot instanceof Array||typeof Ot.icons!="object"||typeof Ot.prefix!="string"||!L(Ot))&&console.error(Lt)}catch{console.error(Lt)}})}if(ze.IconifyProviders!==void 0){const bt=ze.IconifyProviders;if(typeof bt=="object"&&bt!==null)for(let Lt in bt){const Ot="IconifyProviders["+Lt+"] is invalid.";try{const kt=bt[Lt];if(typeof kt!="object"||!kt||kt.resources===void 0)continue;Ne(Lt,kt)||console.error(Ot)}catch{console.error(Ot)}}}}class Wa extends n.Component{constructor(bt){super(bt),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(bt){this.state.icon!==bt&&this.setState({icon:bt})}_checkIcon(bt){const Lt=this.state,Ot=this.props.icon;if(typeof Ot=="object"&&Ot!==null&&typeof Ot.body=="string"){this._icon="",this._abortLoading(),(bt||Lt.icon===null)&&this._setData({data:Ot});return}let kt;if(typeof Ot!="string"||(kt=t(Ot,!1,!0))===null){this._abortLoading(),this._setData(null);return}const Y=x(kt);if(!Y){(!this._loading||this._loading.name!==Ot)&&(this._abortLoading(),this._icon="",this._setData(null),Y!==null&&(this._loading={name:Ot,abort:li([kt],this._checkIcon.bind(this,!1))}));return}if(this._icon!==Ot||Lt.icon===null){this._abortLoading(),this._icon=Ot;const K=["iconify"];kt.prefix!==""&&K.push("iconify--"+kt.prefix),kt.provider!==""&&K.push("iconify--"+kt.provider),this._setData({data:Y,classes:K}),this.props.onLoad&&this.props.onLoad(Ot)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(bt){bt.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const bt=this.props,Lt=this.state.icon;if(Lt===null)return bt.children?bt.children:n.createElement("span",{});let Ot=bt;return Lt.classes&&(Ot={...bt,className:(typeof bt.className=="string"?bt.className+" ":"")+Lt.classes.join(" ")}),Uc({...a,...Lt.data},Ot,bt._inline,bt._ref)}}const ta=n.forwardRef(function(bt,Lt){const Ot={...bt,_ref:Lt,_inline:!1};return n.createElement(Wa,Ot)}),pa=n.forwardRef(function(bt,Lt){const Ot={...bt,_ref:Lt,_inline:!0};return n.createElement(Wa,Ot)}),Pd={getAPIConfig:ht,setAPIModule:fe,sendAPIQuery:Pn,setFetch:zn,getFetch:qi,listAPIProviders:zt};return Fu.Icon=ta,Fu.InlineIcon=pa,Fu._api=Pd,Fu.addAPIProvider=Ne,Fu.addCollection=L,Fu.addIcon=S,Fu.buildIcon=U,Fu.calculateSize=H,Fu.disableCache=Hl,Fu.enableCache=lc,Fu.getIcon=I,Fu.iconExists=E,Fu.listIcons=w,Fu.loadIcon=Ln,Fu.loadIcons=li,Fu.replaceIDs=X,Fu}var B1=POt();const HOt=({lead:n,update:e})=>{var c,u;const{t}=ln(),i=nr(),r=N4(),s=ac(),a=F.useMemo(()=>(n==null?void 0:n.icon)??"material-symbols:find-in-page",[n==null?void 0:n.icon]),o=F.useMemo(()=>JSON.parse((n==null?void 0:n.metadata)??"{}"),[n==null?void 0:n.metadata]),l=F.useCallback(h=>{e({metadata:JSON.stringify(vj({},o,h))})},[o,e]);return F.useEffect(()=>{r&&r.editor.getModels().forEach(h=>h.setEOL(r.editor.EndOfLineSequence.LF))},[r]),Q.jsxs(rt,{spacing:2,pt:2,sx:{flex:1},children:[Q.jsxs(rt,{direction:"row",alignItems:"center",position:"relative",children:[Q.jsx(Ar,{size:"small",label:t("route.dossiers.manager.icon"),value:a,disabled:!n,fullWidth:!0,error:!B1.iconExists(a),sx:{"& input":{paddingLeft:"2.25rem"}},onChange:h=>e({icon:h.target.value})}),Q.jsx(B1.Icon,{fontSize:"1.75rem",icon:a,style:{position:"absolute",left:"0.5rem"}}),Q.jsx(so,{variant:"outlined",color:"error",disabled:!n,sx:{minWidth:"0 !important",ml:1},onClick:()=>e(null),children:Q.jsx(Gh,{})})]}),Q.jsxs(rt,{direction:"row",spacing:.5,alignItems:"center",sx:{mt:`${i.spacing(.5)} !important`},children:[Q.jsx(mt,{color:"text.secondary",children:t("route.dossiers.manager.icon.description")}),Q.jsx(Ei,{size:"small",component:"a",href:"https://icon-sets.iconify.design/",children:Q.jsx(pp,{fontSize:"small"})})]}),Q.jsxs(rt,{direction:"row",spacing:2,children:[Q.jsx(Ar,{size:"small",label:t("route.dossiers.manager.label.en"),disabled:!n,value:((c=n==null?void 0:n.label)==null?void 0:c.en)??"",fullWidth:!0,onChange:h=>e({label:{en:h.target.value}})}),Q.jsx(Ar,{size:"small",label:t("route.dossiers.manager.label.fr"),disabled:!n,value:((u=n==null?void 0:n.label)==null?void 0:u.fr)??"",fullWidth:!0,onChange:h=>e({label:{fr:h.target.value}})})]}),Q.jsx(Ya,{disabled:!n,options:["markdown",...el.leadFormats],renderInput:h=>Q.jsx(Ar,{...h,size:"small",label:t("route.dossiers.manager.format")}),value:(n==null?void 0:n.format)??"",onChange:(h,d)=>e({format:d,metadata:"{}",content:""})}),!!(n!=null&&n.format)&&(n.format==="markdown"?Q.jsx(GE,{height:"100%",width:"100%",language:"markdown",theme:i.palette.mode==="light"?"howler":"howler-dark",value:(n==null?void 0:n.content)??"",onChange:h=>e({content:h}),options:{}}):s.executeFunction(`lead.${n.format}.form`,{lead:n,metadata:o,update:e,updateMetadata:l}))]})},FOt=({dossier:n,setDossier:e,loading:t})=>{var o;const{t:i,i18n:r}=ln(),[s,a]=F.useState(0);return Q.jsxs(Lu,{sx:{p:1,display:"flex",flexDirection:"column",flex:1},children:[Q.jsxs(rt,{direction:"row",children:[!(n!=null&&n.leads)||n.leads.length<1?Q.jsx(Ed,{variant:"outlined",severity:"warning",sx:{mr:1,px:1,py:0,minHeight:"0 !important",display:"flex",alignItems:"center","& .MuiAlert-icon ":{fontSize:"20px",py:0},"& .MuiAlert-message":{py:.7}},children:i("route.dossiers.manager.lead.create")}):Q.jsx(O4,{value:s,onChange:(l,c)=>a(c),sx:{minHeight:"0 !important"},children:(o=n.leads)==null?void 0:o.map((l,c)=>Q.jsx(Vs,{disabled:!n||t,sx:{py:1,minHeight:"0 !important"},label:Q.jsxs(rt,{direction:"row",spacing:.5,children:[l.icon&&Q.jsx(B1.Icon,{icon:l.icon}),Q.jsx("span",{children:r.language==="en"?l.label.en:l.label.fr})]}),value:c},l.content))}),Q.jsx(so,{sx:{ml:"auto",alignSelf:"end",minWidth:"0 !important"},size:"small",variant:"contained",onClick:()=>{var l;a(((l=n.leads)==null?void 0:l.length)??0),e(c=>({...c,leads:[...c.leads??[],{icon:"material-symbols:add-ad",label:{en:"New Lead",fr:"Nouvelle Piste"}}]}))},children:Q.jsx(U2,{})})]}),Q.jsx(HOt,{lead:(n.leads??[])[s],update:l=>e(c=>({...c,leads:(c.leads??[]).map((u,h)=>h!==s?u:B2(l)?null:vj({},u,l)).filter(u=>!B2(u))}))})]})},BOt=({pivot:n,update:e})=>{var r;const{t}=ln(),{config:i}=F.useContext(wa);return Q.jsxs(Q.Fragment,{children:[Q.jsx(Ar,{size:"small",label:t("route.dossiers.manager.pivot.value"),disabled:!n,value:(n==null?void 0:n.value)??"",fullWidth:!0,onChange:s=>e({value:s.target.value})}),Q.jsx(is,{flexItem:!0}),Q.jsx(mt,{children:t("route.dossiers.manager.pivot.mappings")}),(r=n==null?void 0:n.mappings)==null?void 0:r.map((s,a)=>Q.jsxs(F.Fragment,{children:[Q.jsxs(rt,{direction:"row",spacing:1,children:[Q.jsx(Ar,{size:"small",label:t("route.dossiers.manager.pivot.mapping.key"),disabled:!n,value:(s==null?void 0:s.key)??"",onChange:o=>e({mappings:n.mappings.map((l,c)=>a===c?{...l,key:o.target.value}:l)})}),Q.jsx(Ya,{fullWidth:!0,disabled:!n,options:["custom",...Object.keys(i.indexes.hit)],renderInput:o=>Q.jsx(Ar,{...o,size:"small",fullWidth:!0,label:t("route.dossiers.manager.pivot.mapping.field"),sx:{minWidth:"150px"}}),getOptionLabel:o=>t(o),value:s.field??"",onChange:(o,l)=>e({mappings:n.mappings.map((c,u)=>a===u?{...c,field:l}:c)})}),Q.jsx(Ei,{onClick:()=>e({mappings:n.mappings.filter((o,l)=>a!==l)}),children:Q.jsx(qve,{})})]}),s.field==="custom"&&Q.jsx(Ar,{size:"small",label:t("route.dossiers.manager.pivot.mapping.custom"),disabled:!n,value:(s==null?void 0:s.custom_value)??"",onChange:o=>e({mappings:n.mappings.map((l,c)=>a===c?{...l,custom_value:o.target.value}:l)})})]},a)),Q.jsx(so,{disabled:!n,sx:{ml:"auto",alignSelf:"end",minWidth:"0 !important"},size:"small",variant:"contained",onClick:()=>{e({mappings:[...n.mappings??[],{key:"key"}]})},children:Q.jsx(U2,{})})]})},VOt=({dossier:n,setDossier:e,loading:t})=>{var d,f,p;const i=nr(),{t:r,i18n:s}=ln(),a=ac(),[o,l]=F.useState(0),c=F.useCallback(g=>e(m=>({...m,pivots:(m.pivots??[]).map((T,b)=>{if(o!==b)return T;if(B2(g))return null;const v=vj({},T,g);return g.mappings&&(v.mappings=g.mappings),v}).filter(T=>!B2(T))})),[e,o]),u=F.useMemo(()=>{var g;return((g=n.pivots)==null?void 0:g[o])??null},[n.pivots,o]),h=F.useMemo(()=>(u==null?void 0:u.icon)??"material-symbols:find-in-page",[u==null?void 0:u.icon]);return Q.jsx(Lu,{sx:{p:1,display:"flex",flexDirection:"column",flex:1},children:Q.jsxs(rt,{spacing:2,children:[Q.jsxs(rt,{direction:"row",children:[!(n!=null&&n.pivots)||n.pivots.length<1?Q.jsx(Ed,{variant:"outlined",severity:"warning",sx:{mr:1,px:1,py:0,minHeight:"0 !important",display:"flex",alignItems:"center","& .MuiAlert-icon ":{fontSize:"20px",py:0},"& .MuiAlert-message":{py:.7}},children:r("route.dossiers.manager.pivot.create")}):Q.jsx(O4,{value:o,onChange:(g,m)=>l(m),sx:{minHeight:"0 !important"},children:(d=n.pivots)==null?void 0:d.map((g,m)=>Q.jsx(Vs,{disabled:!n||t,sx:{py:1,minHeight:"0 !important"},label:Q.jsxs(rt,{direction:"row",spacing:.5,children:[g.icon&&Q.jsx(B1.Icon,{icon:g.icon}),Q.jsx("span",{children:s.language==="en"?g.label.en:g.label.fr})]}),value:m},g.value))}),Q.jsx(so,{sx:{ml:"auto",alignSelf:"end",minWidth:"0 !important"},size:"small",variant:"contained",onClick:()=>{var g;l(((g=n.pivots)==null?void 0:g.length)??0),e(m=>({...m,pivots:[...m.pivots??[],{icon:"material-symbols:add-ad",label:{en:"New Pivot",fr:"Nouvelle pivot"}}]}))},children:Q.jsx(U2,{})})]}),Q.jsxs(rt,{spacing:2,children:[Q.jsxs(rt,{direction:"row",alignItems:"center",position:"relative",children:[Q.jsx(Ar,{size:"small",label:r("route.dossiers.manager.pivot.icon"),value:h,disabled:!u,fullWidth:!0,error:!B1.iconExists(h),sx:{"& input":{paddingLeft:"2.25rem"}},onChange:g=>c({icon:g.target.value})}),Q.jsx(B1.Icon,{fontSize:"1.75rem",icon:h,style:{position:"absolute",left:"0.5rem"}}),Q.jsx(so,{variant:"outlined",color:"error",disabled:!u,sx:{minWidth:"0 !important",ml:1},onClick:()=>c(null),children:Q.jsx(Gh,{})})]}),Q.jsxs(rt,{direction:"row",spacing:.5,alignItems:"center",sx:{mt:`${i.spacing(.5)} !important`},children:[Q.jsx(mt,{color:"text.secondary",children:r("route.dossiers.manager.icon.description")}),Q.jsx(Ei,{size:"small",component:"a",href:"https://icon-sets.iconify.design/",children:Q.jsx(pp,{fontSize:"small"})})]}),Q.jsxs(rt,{direction:"row",spacing:2,children:[Q.jsx(Ar,{size:"small",label:r("route.dossiers.manager.pivot.label.en"),disabled:!u,value:((f=u==null?void 0:u.label)==null?void 0:f.en)??"",fullWidth:!0,onChange:g=>c({label:{en:g.target.value}})}),Q.jsx(Ar,{size:"small",label:r("route.dossiers.manager.pivot.label.fr"),disabled:!u,value:((p=u==null?void 0:u.label)==null?void 0:p.fr)??"",fullWidth:!0,onChange:g=>c({label:{fr:g.target.value}})})]}),Q.jsx(Ya,{disabled:!u,options:["link",...el.pivotFormats],renderInput:g=>Q.jsx(Ar,{...g,size:"small",label:r("route.dossiers.manager.pivot.format")}),value:(u==null?void 0:u.format)??"",onChange:(g,m)=>c({format:m,value:"",mappings:[]})}),!!(u!=null&&u.format)&&(u.format==="link"?Q.jsx(BOt,{pivot:u,update:c}):a.executeFunction(`pivot.${u.format}.form`,{pivot:u,update:c}))]})]})})},jOt=()=>{const{t:n,i18n:e}=ln(),t=Y1(),{dispatchApi:i}=zs(),r=tl(),s=un(Or,y=>y.setQuery),a=uo(`(max-width: ${e.language==="en"?1275:1375}px)`),[o,l]=F.useState(),[c,u]=F.useState({type:"global"}),[h,d]=F.useState("leads"),[f,p]=F.useState(-1),[g,m]=F.useState(!1),[T,b]=F.useState(!1),v=F.useMemo(()=>!Bae(o,c),[c,o]),_=F.useMemo(()=>{var y,C;return!c||!c.query||!c.type||!c.title?n("route.dossiers.manager.validation.error"):c.query?c.type?c.title?(c.leads??[]).length<1&&(c.pivots??[]).length<1?n("route.dossiers.manager.validation.error.items"):(y=c.leads??[])!=null&&y.every(x=>{var S,L;return x.icon&&B1.iconExists(x.icon)&&((S=x.label)==null?void 0:S.en)&&((L=x.label)==null?void 0:L.fr)&&x.label&&x.format&&x.content})?(c.pivots??[]).every(x=>x.icon&&B1.iconExists(x.icon)&&x.label&&x.label.en&&x.label.fr&&x.format)?(C=c.pivots)!=null&&C.every(x=>(x.mappings??[]).length===yj(x.mappings??[],"key").length)?null:n("route.dossiers.manager.validation.error.pivots.duplicate"):n("route.dossiers.manager.validation.error.pivots"):n("route.dossiers.manager.validation.error.leads"):n("route.dossiers.manager.validation.error.missing",{field:"title"}):n("route.dossiers.manager.validation.error.missing",{field:"type"}):n("route.dossiers.manager.validation.error.missing",{field:"query"})},[c,n]),w=F.useCallback(async()=>{b(!0);try{if(t.id)u(await i(Sn.dossier.put(c.dossier_id,jxe(c,["dossier_id","id"]))));else{const y=await i(Sn.dossier.post(c));r(`/dossiers/${y.dossier_id}/edit`)}}finally{b(!1)}},[i,c,r,t.id]);return F.useEffect(()=>{t.id&&(b(!0),i(Sn.dossier.get(t.id)).then(y=>{l(y),u(y)}).finally(()=>b(!1)))},[i,t.id]),F.useEffect(()=>{c.query&&(s(c.query),(async()=>{b(!0);try{const y=await i(Sn.search.hit.post({query:c.query,rows:0}));p(y.total)}finally{b(!1)}})())},[i,c.query,s]),Q.jsx(va,{maxWidth:"1000px",width:"100%",textAlign:"left",height:"97%",children:Q.jsxs(ai,{position:"relative",height:"100%",children:[Q.jsx(Jn,{title:_,children:Q.jsx("span",{children:Q.jsxs(oI,{variant:"extended",size:"large",color:"primary",disabled:!v||g||!!_||T,sx:y=>({textTransform:"none",position:"absolute",right:a?y.spacing(2):`calc(100% + ${y.spacing(2)})`,whiteSpace:"nowrap",pointerEvents:"initial !important",...a?{bottom:y.spacing(1)}:{top:0}}),onClick:w,children:[T?Q.jsx(_a,{size:24,sx:{mr:1}}):Q.jsx(moe,{sx:{mr:1}}),Q.jsx(mt,{children:n("save")})]})})}),Q.jsxs(rt,{spacing:1,height:"100%",children:[Q.jsx(Lu,{sx:{p:1},children:Q.jsxs(rt,{spacing:1,children:[Q.jsxs(rt,{spacing:1,direction:"row",children:[Q.jsx(Ar,{disabled:!c||T,label:"Title",size:"small",value:c.title??"",onChange:y=>u(C=>({...C,title:y.target.value})),fullWidth:!0}),Q.jsxs(d4,{disabled:!c||T,exclusive:!0,value:c.type??"global",onChange:(y,C)=>u(x=>({...x,type:C})),children:[Q.jsx(Jn,{title:n("route.dossiers.manager.global"),children:Q.jsx(Dc,{value:"global",size:"small",children:Q.jsx(iI,{fontSize:"small"})})}),Q.jsx(Jn,{title:n("route.dossiers.manager.personal"),children:Q.jsx(Dc,{value:"personal",size:"small",children:Q.jsx(yC,{fontSize:"small"})})})]})]}),Q.jsx(mt,{sx:y=>({color:y.palette.text.secondary,fontSize:"0.9em",fontStyle:"italic",mb:.5}),variant:"body2",children:n("hit.search.prompt")}),Q.jsx(kI,{disabled:!c||T,onChange:(y,C)=>m(C),triggerSearch:y=>u(C=>({...C,query:y}))}),f>=0&&Q.jsx(Qj,{count:f,query:c.query})]})}),Q.jsxs(O4,{value:h,onChange:(y,C)=>d(C),children:[Q.jsx(Vs,{label:n("route.dossiers.manager.tabs.leads"),value:"leads"}),Q.jsx(Vs,{label:n("route.dossiers.manager.tabs.pivots"),value:"pivots"})]}),h==="leads"&&Q.jsx(FOt,{dossier:c,setDossier:u,loading:T}),h==="pivots"&&Q.jsx(VOt,{dossier:c,setDossier:u,loading:T})]})]})})},$5e=F.memo(jOt),zOt=({dossier:n,className:e,onDelete:t})=>{const{t:i}=ln();return Q.jsx(Wi,{variant:"outlined",sx:{p:1,mb:1},className:e,children:Q.jsxs(rt,{direction:"row",alignItems:"center",spacing:1,children:[Q.jsxs(rt,{children:[Q.jsxs(mt,{variant:"body1",display:"flex",alignItems:"start",children:[Q.jsx(Jn,{title:i(`route.dossiers.manager.${n.type}`),children:n.type==="personal"?Q.jsx(yC,{fontSize:"small"}):Q.jsx(iI,{fontSize:"small"})}),Q.jsx(ai,{component:"span",ml:1,children:n.title})]}),Q.jsx(mt,{variant:"caption",color:"text.secondary",children:Q.jsx("code",{children:n.query})})]}),Q.jsx(ku,{}),Q.jsx(zc,{sx:{height:"24px",width:"24px"},userId:n.owner}),t&&Q.jsx(Jn,{title:i("route.dossiers.manager.delete"),children:Q.jsx(Ei,{onClick:r=>t(r,n.dossier_id),children:Q.jsx(Gh,{})})})]})},n.dossier_id)},WOt=()=>{const{t:n}=ln(),e=tl(),{dispatchApi:t}=zs(),{showSuccessMessage:i}=ed(),[r,s]=yc(),{load:a}=F.useContext(e5),o=oa(Ii.PAGE_COUNT,25)[0],[l,c]=F.useState(""),[u,h]=F.useState(parseInt(r.get("offset"))||0),[d,f]=F.useState(null),[p,g]=F.useState(!1),[m,T]=F.useState(!1),b=F.useCallback(async()=>{try{T(!0),g(!1),l?r.set("phrase",l):r.delete("phrase"),s(r,{replace:!0});const y=l?`*:*${l}*`:"*:*";f(await t(Sn.search.dossier.post({query:y,rows:o,offset:u})))}catch{g(!0)}finally{T(!1)}},[l,s,r,t,o,u]);F.useEffect(()=>{d&&a(d.items.map(y=>({id:y.dossier_id,item:y,selected:!1,cursor:!1})))},[d,a]);const v=F.useCallback(y=>{y!==u&&(r.set("offset",y.toString()),s(r,{replace:!0}),h(y))},[u,r,s]),_=F.useCallback(async(y,C)=>{y.preventDefault(),y.stopPropagation();try{await t(Sn.dossier.del(C),{throwError:!1,showError:!0}),await b(),i(n("route.dossiers.manager.delete.success"))}catch(x){console.warn(x)}},[t,b,i,n]);F.useEffect(()=>{b(),r.has("offset")||(r.set("offset","0"),s(r,{replace:!0}))},[]),F.useEffect(()=>{(d==null?void 0:d.total)<=u&&(h(0),r.set("offset","0"),s(r,{replace:!0}))},[u,d==null?void 0:d.total,r,s]),F.useEffect(()=>{m||b()},[u]);const w=F.useCallback((y,C)=>Q.jsx(zOt,{dossier:y,className:C,onDelete:_}),[_]);return Q.jsx(JC,{onSearch:b,onPageChange:v,phrase:l,setPhrase:c,hasError:p,searching:m,aboveSearch:Q.jsx(mt,{sx:y=>({fontStyle:"italic",color:y.palette.text.disabled,mb:.5}),variant:"body2",children:n("route.dossiers.search.prompt")}),renderer:({item:y},C)=>w(y.item,C()),response:d,onSelect:y=>e(`/dossiers/${y.id}/edit`),onCreate:()=>e("/dossiers/create"),createPrompt:"route.dossiers.create",searchPrompt:"route.dossiers.manager.search",createIcon:Q.jsx(hoe,{sx:{mr:1}})})},UOt=()=>Q.jsx(Pb,{children:Q.jsx(WOt,{})}),$Ot=n=>{const e=window.sessionStorage.getItem(n);return Number(e)||0},qOt=(n,e)=>{try{window.sessionStorage.setItem(n,e.toString())}catch{console.log("Session storage full, can not save the scroll position")}},X2=(n="app-scrollct")=>{const e=`scroll-position-${Pl().key}`;F.useLayoutEffect(()=>(document.getElementById(n).scrollTo(0,$Ot(e)),()=>{qOt(e,document.getElementById(n).scrollTop??0)}),[n,e])},ZOt=`# Using Actions in Howler
|
|
620
|
+
`)})})})]}),Q.jsx(ku,{}),Q.jsx(zc,{sx:{height:"24px",width:"24px"},userId:n.owner}),t&&Q.jsx(Jn,{title:i("route.overviews.manager.delete"),children:Q.jsx(Ei,{onClick:r=>t(r,n.overview_id),children:Q.jsx(Gh,{})})})]})},n.overview_id)},AOt=({analytic:n})=>{const{t:e}=ln(),t=uo("(max-width: 1800px)"),{getOverviews:i,overviews:r}=F.useContext(Ece),s=F.useMemo(()=>r.filter(l=>l.analytic===(n==null?void 0:n.name)),[n==null?void 0:n.name,r]),[a,o]=F.useState(!1);return F.useEffect(()=>{o(!0),i().finally(()=>o(!1))},[i]),n?Q.jsxs(rt,{spacing:1,position:"relative",children:[Q.jsxs(oI,{component:Lo,to:`/overviews/view?analytic=${n.name}`,variant:"extended",size:"large",color:"primary",sx:l=>({textTransform:"none",position:t?"fixed":"absolute",right:t?l.spacing(2):`calc(100% + ${l.spacing(5)})`,whiteSpace:"nowrap",...t?{bottom:l.spacing(1)}:{top:l.spacing(2)}}),children:[Q.jsx(bm,{sx:{mr:1}}),Q.jsx(mt,{children:e("route.overviews.create")})]}),a&&Q.jsx(Br,{width:"100%",height:"175px"}),!a&&s.length<1&&Q.jsx(p4,{}),s.map(l=>Q.jsx(ai,{component:Lo,to:`/overviews/view?analytic=${l.analytic}${l.detection?"&template="+l.detection:""}`,sx:c=>({textDecoration:"none","& > .MuiCard-root":{cursor:"pointer",transition:c.transitions.create("border-color"),"&:hover":{borderColor:"primary.main"}}}),children:Q.jsx(CNe,{overview:l})},l.overview_id))]}):Q.jsx(Br,{variant:"rounded",width:"100%",sx:{minHeight:"300px",mt:2}})},QNe=({template:n,className:e})=>{const{t}=ln();return Q.jsx(Wi,{variant:"outlined",sx:{p:1,mb:1},className:e,children:Q.jsxs(rt,{direction:"row",spacing:1,children:[Q.jsx(Jn,{title:t(`route.templates.manager.${n.type}`),children:{readonly:Q.jsx(Toe,{}),global:Q.jsx(iI,{}),personal:Q.jsx(yC,{})}[n.type]}),Q.jsx(is,{orientation:"vertical",flexItem:!0}),Q.jsxs(rt,{children:[Q.jsxs(mt,{variant:"body1",children:[t(n.analytic)," - ",t(n.detection??"all")]}),n.keys.map(i=>Q.jsx(mt,{variant:"caption",sx:{ml:1},children:Q.jsx("code",{children:i})},n.template_id+i))]})]})},n.template_id)},IOt=({analytic:n})=>{const{t:e}=ln(),t=uo("(max-width: 1800px)"),{dispatchApi:i}=zs(),[r,s]=F.useState([]),[a,o]=F.useState(!1);return F.useEffect(()=>{o(!0),i(Sn.template.get()).then(l=>l.filter(c=>c.analytic===(n==null?void 0:n.name))).then(s).finally(()=>o(!1))},[n==null?void 0:n.name,i]),n?Q.jsxs(rt,{spacing:1,position:"relative",children:[Q.jsxs(oI,{component:Lo,to:`/templates/view?analytic=${n.name}`,variant:"extended",size:"large",color:"primary",sx:l=>({textTransform:"none",position:t?"fixed":"absolute",right:t?l.spacing(2):`calc(100% + ${l.spacing(5)})`,whiteSpace:"nowrap",...t?{bottom:l.spacing(1)}:{top:l.spacing(2)}}),children:[Q.jsx(bm,{sx:{mr:1}}),Q.jsx(mt,{children:e("route.templates.create")})]}),a&&Q.jsx(Br,{width:"100%",height:"175px"}),!a&&r.length<1&&Q.jsx(p4,{}),r.map(l=>Q.jsx(ai,{component:Lo,to:`/templates/view?analytic=${l.analytic}${l.detection?"&template="+l.detection:""}&type=${l.type}`,sx:c=>({textDecoration:"none","& > .MuiCard-root":{cursor:"pointer",transition:c.transitions.create("border-color"),"&:hover":{borderColor:"primary.main"}}}),children:Q.jsx(QNe,{template:l})},l.template_id))]}):Q.jsx(Br,{variant:"rounded",width:"100%",sx:{minHeight:"300px",mt:2}})},DOt=({analytic:n,setAnalytic:e})=>{var f;const t=nr(),{t:i}=ln(),{dispatchApi:r}=zs(),{showSuccessMessage:s}=ed(),[a,o]=F.useState(!1),[l,c]=F.useState(!1),[u,h]=F.useState(null),d=F.useCallback(async()=>{try{if(l){o(!0);const p=await r(Sn.analytic.put(n.analytic_id,{rule:u}),{showError:!0,throwError:!0});e(p),s(i("route.analytics.updated"))}else h(n.rule)}finally{c(!l),o(!1)}},[n,r,u,l,e,s,i]);return Q.jsxs(rt,{spacing:2,sx:{height:"100%",pt:1,px:1,mt:1,border:`thin solid ${t.palette.divider}`,borderRight:`thin solid ${t.palette.divider}`},children:[Q.jsxs(mt,{variant:"h5",sx:{mt:2,mb:1,display:"flex",flexDirection:"row"},children:[Q.jsx("span",{children:i("route.analytics.rule.title")}),Q.jsxs("span",{style:{marginLeft:t.spacing(1),textTransform:"capitalize"},children:["(",n==null?void 0:n.rule_type,")"]}),Q.jsx(Ei,{sx:{marginLeft:"auto"},disabled:a,onClick:d,children:a?Q.jsx(_a,{size:20}):l?Q.jsx(tf,{fontSize:"small"}):Q.jsx(Hh,{fontSize:"small"})})]}),Q.jsx(ai,{sx:{flex:1},children:Q.jsx(Gae,{query:u??(n==null?void 0:n.rule),setQuery:l&&h,language:(f=n==null?void 0:n.rule_type)==null?void 0:f.replace("sigma","yaml")})})]})},MOt=({analytic:n,setAnalytic:e})=>{var c,u,h,d;const{dispatchApi:t}=zs(),{t:i}=ln(),{config:r}=F.useContext(wa),[s,a]=F.useState(!1),o=F.useCallback(async f=>{try{a(!0);const p=await t(Sn.analytic.put(n.analytic_id,f),{throwError:!0,showError:!0});e(p)}finally{a(!1)}},[n==null?void 0:n.analytic_id,t,e]),l=F.useMemo(()=>{var f,p;return((f=n==null?void 0:n.triage_settings)==null?void 0:f.valid_assessments)??((p=r.lookups)==null?void 0:p["howler.assessment"])??[]},[(c=n==null?void 0:n.triage_settings)==null?void 0:c.valid_assessments,r.lookups]);return Q.jsxs(rt,{spacing:2,pt:1,children:[Q.jsx(is,{flexItem:!0}),Q.jsx(nw,{sx:{"& table tr:last-child td":{borderBottom:0}},component:Lu,children:Q.jsxs(V0,{children:[Q.jsx(u4,{children:Q.jsx(Co,{children:Q.jsx(Xi,{colSpan:3,children:Q.jsx(mt,{variant:"h6",children:i("route.analytics.triage.title")})})})}),Q.jsxs(ep,{children:[Q.jsx(w6,{titleKey:"route.analytics.triage.rationale",descriptionKey:"route.analytics.triage.rationale.description",value:((u=n==null?void 0:n.triage_settings)==null?void 0:u.skip_rationale)??!1,type:"checkbox",onEdit:async f=>o({triage_settings:{skip_rationale:JSON.parse(f)}})}),Q.jsx(Co,{children:Q.jsx(Xi,{sx:{width:"100%",borderBottom:0,paddingBottom:"0 !important",whiteSpace:"nowrap"},children:i("route.analytics.triage.assessments")})}),Q.jsx(Co,{children:Q.jsx(Xi,{colSpan:3,sx:{borderBottom:0,paddingTop:"0 !important"},children:Q.jsx(mt,{variant:"caption",color:"text.secondary",children:i("route.analytics.triage.assessments.description")})})}),Q.jsx(Co,{children:Q.jsx(Xi,{colSpan:3,children:Q.jsx(Nr,{container:!0,spacing:1,children:(d=(h=r.lookups)==null?void 0:h["howler.assessment"])==null?void 0:d.map(f=>Q.jsx(Nr,{item:!0,children:Q.jsxs(rt,{direction:"row",alignItems:"center",spacing:1,sx:p=>({border:"thin solid",borderColor:"divider",p:1,borderRadius:p.shape.borderRadius}),children:[Q.jsx(Jn,{title:i(`hit.details.asessments.${f}.description`),children:Q.jsx(mt,{component:"span",children:f.split("-").map(Xm).join(" ")})}),Q.jsx(M2,{checked:l.includes(f)??!0,onChange:(p,g)=>o({triage_settings:{valid_assessments:g?i8([...l,f]):l.filter(m=>f!==m)}}),disabled:s})]})},f))})})})]})]})})]})},OOt=()=>{const{t:n}=ln(),e=Y1(),t=tl(),{user:i}=ya(),[r,s]=yc(),{dispatchApi:a}=zs(),o=nr(),{showSuccessMessage:l}=ed(),{users:c,searchUsers:u}=F.useContext(iz),{config:h}=F.useContext(wa),[d,f]=F.useState(null),[p,g]=F.useState(r.get("tab")??"overview"),[m,T]=F.useState(!1),[b,v]=F.useState(!1),[_,w]=F.useState(lH[3].crontab),y=F.useMemo(()=>((d==null?void 0:d.contributors)??[]).filter(O=>O!==(d==null?void 0:d.owner)),[d==null?void 0:d.contributors,d==null?void 0:d.owner]);F.useEffect(()=>{a(Sn.analytic.get(e.id)).then(f)},[a,e.id]);const[C,x]=F.useState(r.get("filter")??null),S=F.useCallback(O=>{x(C===O?null:O)},[C]),L=F.useCallback(async O=>{const k=await a(Sn.analytic.owner.post(d.analytic_id,{username:O}),{throwError:!0,showError:!0});f(k)},[d==null?void 0:d.analytic_id,a]),E=F.useCallback(async()=>{await a(Sn.analytic.del(d==null?void 0:d.analytic_id)),l(n("route.analytics.deleted")),t("/analytics")},[d==null?void 0:d.analytic_id,a,t,l,n]),I=F.useCallback(async()=>{if(m){v(!0);try{await a(Sn.analytic.put(d==null?void 0:d.analytic_id,{rule_crontab:_})),f(O=>({...O,rule_crontab:_})),T(!1)}finally{v(!1)}}else T(!0)},[d==null?void 0:d.analytic_id,_,a,m]);return F.useEffect(()=>{r.get("tab")!==p&&r.set("tab",p),r.get("filter")!==C&&(C?r.set("filter",C):r.delete("filter")),s(r,{replace:!0})},[C,r,s,p]),F.useEffect(()=>{d!=null&&d.owner&&u(`uname:"${d==null?void 0:d.owner}"`)},[d==null?void 0:d.owner,u]),Q.jsx(va,{maxWidth:"1500px",textAlign:"left",height:"100%",children:Q.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:[Q.jsx(mt,{variant:"h3",mb:2,children:Q.jsxs(rt,{direction:"row",spacing:1,alignItems:"center",children:[d?Q.jsx("span",{children:d.name}):Q.jsxs(rt,{children:[Q.jsx(Br,{variant:"text",width:"170px",height:"28px"}),Q.jsx(Br,{variant:"text",width:"140px",height:"28px"})]}),(d==null?void 0:d.rule)&&Q.jsxs(Q.Fragment,{children:[Q.jsx(Jn,{title:n("route.analytics.rule"),children:Q.jsx(xT,{fontSize:"large",color:"info"})}),((d==null?void 0:d.owner)===i.username||i.roles.includes("admin"))&&Q.jsx(Ei,{onClick:E,children:Q.jsx(Gh,{})})]}),Q.jsx(Ei,{component:Lo,to:`/hits?query=howler.analytic:"${d==null?void 0:d.name}"`,children:Q.jsx(pp,{})})]})}),Q.jsxs(rt,{direction:"row",spacing:1,divider:Q.jsx(is,{flexItem:!0,orientation:"vertical",sx:{marginLeft:`${o.spacing(2)} !important`,marginRight:`${o.spacing(1)} !important`}}),mb:2,children:[Q.jsxs(rt,{spacing:1,alignItems:"start",children:[Q.jsx(mt,{variant:"body1",color:"text.secondary",children:n("owner")}),Q.jsxs(rt,{direction:"row",spacing:1,alignItems:"center",children:[d!=null&&d.rule?Q.jsx(zc,{userId:d==null?void 0:d.owner}):Q.jsx(wEt,{buttonSx:{marginTop:"0 !important",marginLeft:`${o.spacing(-1)} !important`,marginRight:`${o.spacing(-1)} !important`},userId:d==null?void 0:d.owner,onChange:L,i18nLabel:"route.analytics.set.owner"}),Q.jsx(rt,{children:c[d==null?void 0:d.owner]?Q.jsxs(Q.Fragment,{children:[Q.jsx(mt,{variant:"body1",children:c[d==null?void 0:d.owner].name}),Q.jsx(mt,{component:"a",href:`mailto:${c[d==null?void 0:d.owner].email}`,variant:"caption",color:"text.secondary",children:c[d==null?void 0:d.owner].email})]}):Q.jsxs(Q.Fragment,{children:[Q.jsx(Br,{variant:"text",width:"70px"}),Q.jsx(Br,{variant:"text",width:"60px"})]})})]})]}),y.length>0&&Q.jsxs(rt,{spacing:1,children:[Q.jsx(mt,{variant:"body1",color:"text.secondary",children:n("route.analytics.contributors")}),Q.jsx(rt,{direction:"row",alignItems:"center",spacing:1,children:y.map(O=>Q.jsx(zc,{userId:O},O))})]}),(d==null?void 0:d.rule_crontab)&&Q.jsxs(rt,{direction:"row",spacing:1,children:[Q.jsxs(rt,{spacing:1,justifyContent:"space-between",children:[Q.jsx(mt,{variant:"body1",color:"text.secondary",children:n("rule.interval")}),m?Q.jsxs(su,{sx:{minWidth:"200px"},children:[Q.jsx(_m,{children:n("rule.interval")}),Q.jsx(R1,{size:"small",label:n("rule.interval"),onChange:O=>w(O.target.value),value:_,children:lH.map(O=>Q.jsx(Zs,{value:O.crontab,children:n(O.key)},O.key))})]}):Q.jsx("code",{style:{backgroundColor:o.palette.background.paper,padding:o.spacing(.5),alignSelf:"start",borderRadius:o.shape.borderRadius,border:`thin solid ${o.palette.divider}`,width:"100%"},children:d.rule_crontab})]}),((d==null?void 0:d.owner)===i.username||i.roles.includes("admin"))&&Q.jsx(Jn,{title:n(m?"rule.interval.save":"rule.interval.edit"),children:Q.jsx(Ei,{disabled:b,sx:{alignSelf:"end"},onClick:I,children:b?Q.jsx(_a,{size:20}):m?Q.jsx(tf,{}):Q.jsx(Hh,{})})})]})]}),Q.jsxs(Nr,{container:!0,children:[Q.jsx(Nr,{item:!0,xs:12,md:9,children:Q.jsxs(O4,{value:p,onChange:(O,k)=>g(k),children:[Q.jsx(Vs,{label:n("route.analytics.tab.overview"),value:"overview"}),Q.jsx(Vs,{label:n("route.analytics.tab.comments"),value:"comments"}),Q.jsx(Vs,{label:n("route.analytics.tab.hit_comments"),value:"hit_comments"}),Q.jsx(Vs,{label:n("route.analytics.tab.templates"),value:"templates"}),Q.jsx(Vs,{label:n("route.analytics.tab.overviews"),value:"overviews"}),(d==null?void 0:d.rule)&&Q.jsx(Vs,{label:n("route.analytics.tab.rule"),value:"rule"}),(h==null?void 0:h.configuration.features.notebook)&&Q.jsx(Vs,{label:n("route.analytics.tab.notebooks"),value:"notebooks"}),Q.jsx(Vs,{label:n("route.analytics.tab.triage"),value:"triage"})]})}),["comments","hit_comments"].includes(p)&&Q.jsx(Nr,{item:!0,xs:12,md:3,children:Q.jsx(Ya,{options:(d==null?void 0:d.detections)??[],renderInput:O=>Q.jsx(Ar,{...O,label:"Detection"}),value:C,onChange:(O,k)=>S(k)})})]}),{comments:Q.jsx(xEt,{analytic:d,setAnalytic:f}),hit_comments:Q.jsx(SEt,{analytic:d}),overview:Q.jsx(EOt,{analytic:d,setAnalytic:f}),overviews:Q.jsx(AOt,{analytic:d}),rule:Q.jsx(DOt,{analytic:d,setAnalytic:f}),templates:Q.jsx(IOt,{analytic:d}),triage:Q.jsx(MOt,{analytic:d,setAnalytic:f}),...h!=null&&h.configuration.features.notebook?{notebooks:Q.jsx(kEt,{analytic:d,setAnalytic:f})}:{}}[p]]})})},NOt=()=>{var E,I;const n=nr(),e=tl(),{t}=ln(),{dispatchApi:i}=zs(),{load:r}=F.useContext(e5),[s,a]=yc(),o=oa(Ii.PAGE_COUNT,25)[0],l=ya(),[c,u]=X7(Ii.ONLY_RULES,0),[h,d]=F.useState(!1),[f,p]=F.useState(!1),[g,m]=F.useState(s.get("phrase")||""),[T,b]=F.useState(parseInt(s.get("offset"))||0),[v,_]=F.useState(null),w=F.useCallback(async O=>{await i(Sn.analytic.favourite.post(O.analytic_id)),l.setUser({...l.user,favourite_analytics:[...l.user.favourite_analytics,O.analytic_id]})},[l,i]),y=F.useCallback(async O=>{await i(Sn.analytic.favourite.del(O.analytic_id)),l.setUser({...l.user,favourite_analytics:l.user.favourite_analytics.filter(k=>k!==O.analytic_id)})},[l,i]),C=F.useCallback(async()=>{d(!0),p(!1),g?s.set("phrase",g):s.delete("phrase"),a(s,{replace:!0});try{const O=_p(g),k=await i(Sn.search.analytic.post({query:`name:*${O}* OR detections:*${O}*`+(c>0?" AND _exists_:rule_type":c<0?" AND -_exists_:rule_type":""),rows:o,offset:T}));_(k),r(k.items.map(N=>({id:N.analytic_id,item:N})))}catch{p(!0)}finally{d(!1)}},[i,r,T,c,o,g,s,a]),x=F.useCallback(O=>{O!==T&&(s.set("offset",O.toString()),a(s,{replace:!0}),b(O))},[T,s,a]),S=F.useCallback(async(O,k)=>{var N;O.preventDefault(),O.stopPropagation(),(N=l.user)!=null&&N.favourite_analytics.includes(k.analytic_id)?await i(y(k)):await i(w(k))},[w,(E=l.user)==null?void 0:E.favourite_analytics,i,y]);F.useEffect(()=>{C(),s.has("offset")||(s.set("offset","0"),a(s,{replace:!0}))},[c]),F.useEffect(()=>{(v==null?void 0:v.total)<=T&&(b(0),s.set("offset","0"),a(s,{replace:!0}))},[T,v==null?void 0:v.total,s,a]),F.useEffect(()=>{h||C()},[T]);const L=F.useCallback(({item:O},k)=>{var R,H,j;const N=(O.item.contributors??[]).filter(U=>U!==O.item.owner);return Q.jsxs(Wi,{onClick:()=>e(`/analytics/${O.item.analytic_id}`),variant:"outlined",className:k(),sx:{"&:hover":{borderColor:"primary.main"},transitionProperty:"border-color",cursor:"pointer",mt:1},children:[Q.jsx(W6,{title:Q.jsxs(rt,{direction:"row",spacing:1,alignItems:"center",children:[Q.jsx("span",{children:O.item.name}),O.item.rule_type&&Q.jsxs(Q.Fragment,{children:[Q.jsx(Jn,{title:t("route.analytics.rule"),children:Q.jsx(xT,{color:"info"})}),Q.jsx("code",{style:{fontSize:".55em",backgroundColor:n.palette.background.paper,padding:n.spacing(.5),borderRadius:n.shape.borderRadius,border:`thin solid ${n.palette.divider}`},children:O.item.rule_type})]}),Q.jsx(ku,{}),Q.jsxs(rt,{direction:"row",spacing:1,sx:{mt:1},children:[O.item.owner&&Q.jsx(zc,{sx:{width:24,height:24},userId:O.item.owner}),N.length>0&&Q.jsx(is,{orientation:"vertical",flexItem:!0}),Q.jsx(woe,{children:N.map(U=>Q.jsx(zc,{sx:{width:24,height:24},userId:U},U))})]}),Q.jsx(Jn,{title:t("button.pin"),children:Q.jsx(Ei,{size:"small",onClick:U=>S(U,O.item),children:(H=(R=l.user)==null?void 0:R.favourite_analytics)!=null&&H.includes(O.item.analytic_id)?Q.jsx(loe,{}):Q.jsx($ve,{})})})]})}),((j=O.item.detections)==null?void 0:j.length)>0&&Q.jsx(iu,{sx:{paddingTop:0},children:Q.jsxs(Nr,{container:!0,spacing:.5,sx:{marginTop:`${n.spacing(-.5)} !important`},children:[O.item.detections.slice(0,5).map(U=>Q.jsx(Nr,{item:!0,children:Q.jsx(xs,{size:"small",variant:"outlined",label:U})},U)),O.item.detections.length>5&&Q.jsx(Nr,{item:!0,children:Q.jsx(Jn,{title:Q.jsx(rt,{children:O.item.detections.slice(5).map(U=>Q.jsx("span",{children:U},U))}),children:Q.jsx(xs,{size:"small",variant:"outlined",label:`+ ${O.item.detections.length-5}`})})})]})})]},O.item.name)},[(I=l.user)==null?void 0:I.favourite_analytics,e,S,t,n]);return Q.jsx(JC,{onSearch:C,onPageChange:x,phrase:g,setPhrase:m,hasError:f,searching:h,searchAdornment:Q.jsx(Jf,{position:"end",children:Q.jsx(Jn,{title:t(`route.analytics.search.filter.rules.${c<0?"hide":c>0?"show":"toggle"}`),children:Q.jsx(Ei,{onClick:()=>u((c+2)%3-1),children:Q.jsx(xT,{color:c<0?"error":c>0?"info":"inherit",sx:{transition:n.transitions.create(["color"])}})})})}),aboveSearch:Q.jsx(mt,{sx:{fontStyle:"italic",color:n.palette.text.disabled,mb:.5},variant:"body2",children:t("route.analytics.search.prompt")}),renderer:L,response:v,searchPrompt:"route.analytics.manager.search"})},ROt=()=>Q.jsx(Pb,{children:Q.jsx(NOt,{})});var Fu={},U5e;function POt(){if(U5e)return Fu;U5e=1;var n=Qb();const e=/^[a-z0-9]+(-[a-z0-9]+)*$/,t=(ze,bt,Lt,Ot="")=>{const kt=ze.split(":");if(ze.slice(0,1)==="@"){if(kt.length<2||kt.length>3)return null;Ot=kt.shift().slice(1)}if(kt.length>3||!kt.length)return null;if(kt.length>1){const ie=kt.pop(),ue=kt.pop(),Me={provider:kt.length>0?kt[0]:Ot,prefix:ue,name:ie};return bt&&!i(Me)?null:Me}const Y=kt[0],K=Y.split("-");if(K.length>1){const ie={provider:Ot,prefix:K.shift(),name:K.join("-")};return bt&&!i(ie)?null:ie}if(Lt&&Ot===""){const ie={provider:Ot,prefix:"",name:Y};return bt&&!i(ie,Lt)?null:ie}return null},i=(ze,bt)=>ze?!!((ze.provider===""||ze.provider.match(e))&&(bt&&ze.prefix===""||ze.prefix.match(e))&&ze.name.match(e)):!1,r=Object.freeze({left:0,top:0,width:16,height:16}),s=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),a=Object.freeze({...r,...s}),o=Object.freeze({...a,body:"",hidden:!1});function l(ze,bt){const Lt={};!ze.hFlip!=!bt.hFlip&&(Lt.hFlip=!0),!ze.vFlip!=!bt.vFlip&&(Lt.vFlip=!0);const Ot=((ze.rotate||0)+(bt.rotate||0))%4;return Ot&&(Lt.rotate=Ot),Lt}function c(ze,bt){const Lt=l(ze,bt);for(const Ot in o)Ot in s?Ot in ze&&!(Ot in Lt)&&(Lt[Ot]=s[Ot]):Ot in bt?Lt[Ot]=bt[Ot]:Ot in ze&&(Lt[Ot]=ze[Ot]);return Lt}function u(ze,bt){const Lt=ze.icons,Ot=ze.aliases||Object.create(null),kt=Object.create(null);function Y(K){if(Lt[K])return kt[K]=[];if(!(K in kt)){kt[K]=null;const ie=Ot[K]&&Ot[K].parent,ue=ie&&Y(ie);ue&&(kt[K]=[ie].concat(ue))}return kt[K]}return Object.keys(Lt).concat(Object.keys(Ot)).forEach(Y),kt}function h(ze,bt,Lt){const Ot=ze.icons,kt=ze.aliases||Object.create(null);let Y={};function K(ie){Y=c(Ot[ie]||kt[ie],Y)}return K(bt),Lt.forEach(K),c(ze,Y)}function d(ze,bt){const Lt=[];if(typeof ze!="object"||typeof ze.icons!="object")return Lt;ze.not_found instanceof Array&&ze.not_found.forEach(kt=>{bt(kt,null),Lt.push(kt)});const Ot=u(ze);for(const kt in Ot){const Y=Ot[kt];Y&&(bt(kt,h(ze,kt,Y)),Lt.push(kt))}return Lt}const f={provider:"",aliases:{},not_found:{},...r};function p(ze,bt){for(const Lt in bt)if(Lt in ze&&typeof ze[Lt]!=typeof bt[Lt])return!1;return!0}function g(ze){if(typeof ze!="object"||ze===null)return null;const bt=ze;if(typeof bt.prefix!="string"||!ze.icons||typeof ze.icons!="object"||!p(ze,f))return null;const Lt=bt.icons;for(const kt in Lt){const Y=Lt[kt];if(!kt.match(e)||typeof Y.body!="string"||!p(Y,o))return null}const Ot=bt.aliases||Object.create(null);for(const kt in Ot){const Y=Ot[kt],K=Y.parent;if(!kt.match(e)||typeof K!="string"||!Lt[K]&&!Ot[K]||!p(Y,o))return null}return bt}const m=Object.create(null);function T(ze,bt){return{provider:ze,prefix:bt,icons:Object.create(null),missing:new Set}}function b(ze,bt){const Lt=m[ze]||(m[ze]=Object.create(null));return Lt[bt]||(Lt[bt]=T(ze,bt))}function v(ze,bt){return g(bt)?d(bt,(Lt,Ot)=>{Ot?ze.icons[Lt]=Ot:ze.missing.add(Lt)}):[]}function _(ze,bt,Lt){try{if(typeof Lt.body=="string")return ze.icons[bt]={...Lt},!0}catch{}return!1}function w(ze,bt){let Lt=[];return(typeof ze=="string"?[ze]:Object.keys(m)).forEach(kt=>{(typeof kt=="string"&&typeof bt=="string"?[bt]:Object.keys(m[kt]||{})).forEach(K=>{const ie=b(kt,K);Lt=Lt.concat(Object.keys(ie.icons).map(ue=>(kt!==""?"@"+kt+":":"")+K+":"+ue))})}),Lt}let y=!1;function C(ze){return typeof ze=="boolean"&&(y=ze),y}function x(ze){const bt=typeof ze=="string"?t(ze,!0,y):ze;if(bt){const Lt=b(bt.provider,bt.prefix),Ot=bt.name;return Lt.icons[Ot]||(Lt.missing.has(Ot)?null:void 0)}}function S(ze,bt){const Lt=t(ze,!0,y);if(!Lt)return!1;const Ot=b(Lt.provider,Lt.prefix);return _(Ot,Lt.name,bt)}function L(ze,bt){if(typeof ze!="object")return!1;if(typeof bt!="string"&&(bt=ze.provider||""),y&&!bt&&!ze.prefix){let kt=!1;return g(ze)&&(ze.prefix="",d(ze,(Y,K)=>{K&&S(Y,K)&&(kt=!0)})),kt}const Lt=ze.prefix;if(!i({provider:bt,prefix:Lt,name:"a"}))return!1;const Ot=b(bt,Lt);return!!v(Ot,ze)}function E(ze){return!!x(ze)}function I(ze){const bt=x(ze);return bt?{...a,...bt}:null}const O=Object.freeze({width:null,height:null}),k=Object.freeze({...O,...s}),N=/(-?[0-9.]*[0-9]+[0-9.]*)/g,R=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function H(ze,bt,Lt){if(bt===1)return ze;if(Lt=Lt||100,typeof ze=="number")return Math.ceil(ze*bt*Lt)/Lt;if(typeof ze!="string")return ze;const Ot=ze.split(N);if(Ot===null||!Ot.length)return ze;const kt=[];let Y=Ot.shift(),K=R.test(Y);for(;;){if(K){const ie=parseFloat(Y);isNaN(ie)?kt.push(Y):kt.push(Math.ceil(ie*bt*Lt)/Lt)}else kt.push(Y);if(Y=Ot.shift(),Y===void 0)return kt.join("");K=!K}}const j=ze=>ze==="unset"||ze==="undefined"||ze==="none";function U(ze,bt){const Lt={...a,...ze},Ot={...k,...bt},kt={left:Lt.left,top:Lt.top,width:Lt.width,height:Lt.height};let Y=Lt.body;[Lt,Ot].forEach(an=>{const Mn=[],oi=an.hFlip,gi=an.vFlip;let kn=an.rotate;oi?gi?kn+=2:(Mn.push("translate("+(kt.width+kt.left).toString()+" "+(0-kt.top).toString()+")"),Mn.push("scale(-1 1)"),kt.top=kt.left=0):gi&&(Mn.push("translate("+(0-kt.left).toString()+" "+(kt.height+kt.top).toString()+")"),Mn.push("scale(1 -1)"),kt.top=kt.left=0);let ir;switch(kn<0&&(kn-=Math.floor(kn/4)*4),kn=kn%4,kn){case 1:ir=kt.height/2+kt.top,Mn.unshift("rotate(90 "+ir.toString()+" "+ir.toString()+")");break;case 2:Mn.unshift("rotate(180 "+(kt.width/2+kt.left).toString()+" "+(kt.height/2+kt.top).toString()+")");break;case 3:ir=kt.width/2+kt.left,Mn.unshift("rotate(-90 "+ir.toString()+" "+ir.toString()+")");break}kn%2===1&&(kt.left!==kt.top&&(ir=kt.left,kt.left=kt.top,kt.top=ir),kt.width!==kt.height&&(ir=kt.width,kt.width=kt.height,kt.height=ir)),Mn.length&&(Y='<g transform="'+Mn.join(" ")+'">'+Y+"</g>")});const K=Ot.width,ie=Ot.height,ue=kt.width,Me=kt.height;let nt,Tt;K===null?(Tt=ie===null?"1em":ie==="auto"?Me:ie,nt=H(Tt,ue/Me)):(nt=K==="auto"?ue:K,Tt=ie===null?H(nt,Me/ue):ie==="auto"?Me:ie);const lt={},Wt=(an,Mn)=>{j(Mn)||(lt[an]=Mn.toString())};return Wt("width",nt),Wt("height",Tt),lt.viewBox=kt.left.toString()+" "+kt.top.toString()+" "+ue.toString()+" "+Me.toString(),{attributes:lt,body:Y}}const W=/\sid="(\S+)"/g,Z="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let te=0;function X(ze,bt=Z){const Lt=[];let Ot;for(;Ot=W.exec(ze);)Lt.push(Ot[1]);if(!Lt.length)return ze;const kt="suffix"+(Math.random()*16777216|Date.now()).toString(16);return Lt.forEach(Y=>{const K=typeof bt=="function"?bt(Y):bt+(te++).toString(),ie=Y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");ze=ze.replace(new RegExp('([#;"])('+ie+')([")]|\\.[a-z])',"g"),"$1"+K+kt+"$3")}),ze=ze.replace(new RegExp(kt,"g"),""),ze}const oe=Object.create(null);function fe(ze,bt){oe[ze]=bt}function Le(ze){return oe[ze]||oe[""]}function Pe(ze){let bt;if(typeof ze.resources=="string")bt=[ze.resources];else if(bt=ze.resources,!(bt instanceof Array)||!bt.length)return null;return{resources:bt,path:ze.path||"/",maxURL:ze.maxURL||500,rotate:ze.rotate||750,timeout:ze.timeout||5e3,random:ze.random===!0,index:ze.index||0,dataAfterTimeout:ze.dataAfterTimeout!==!1}}const Qe=Object.create(null),_e=["https://api.simplesvg.com","https://api.unisvg.com"],Ee=[];for(;_e.length>0;)_e.length===1||Math.random()>.5?Ee.push(_e.shift()):Ee.push(_e.pop());Qe[""]=Pe({resources:["https://api.iconify.design"].concat(Ee)});function Ne(ze,bt){const Lt=Pe(bt);return Lt===null?!1:(Qe[ze]=Lt,!0)}function ht(ze){return Qe[ze]}function zt(){return Object.keys(Qe)}let $n=(()=>{let ze;try{if(ze=fetch,typeof ze=="function")return ze}catch{}})();function zn(ze){$n=ze}function qi(){return $n}function Jt(ze,bt){const Lt=ht(ze);if(!Lt)return 0;let Ot;if(!Lt.maxURL)Ot=0;else{let kt=0;Lt.resources.forEach(K=>{kt=Math.max(kt,K.length)});const Y=bt+".json?icons=";Ot=Lt.maxURL-kt-Lt.path.length-Y.length}return Ot}function Be(ze){return ze===404}const ot=(ze,bt,Lt)=>{const Ot=[],kt=Jt(ze,bt),Y="icons";let K={type:Y,provider:ze,prefix:bt,icons:[]},ie=0;return Lt.forEach((ue,Me)=>{ie+=ue.length+1,ie>=kt&&Me>0&&(Ot.push(K),K={type:Y,provider:ze,prefix:bt,icons:[]},ie=ue.length),K.icons.push(ue)}),Ot.push(K),Ot};function Fe(ze){if(typeof ze=="string"){const bt=ht(ze);if(bt)return bt.path}return"/"}const ge={prepare:ot,send:(ze,bt,Lt)=>{if(!$n){Lt("abort",424);return}let Ot=Fe(bt.provider);switch(bt.type){case"icons":{const Y=bt.prefix,ie=bt.icons.join(","),ue=new URLSearchParams({icons:ie});Ot+=Y+".json?"+ue.toString();break}case"custom":{const Y=bt.uri;Ot+=Y.slice(0,1)==="/"?Y.slice(1):Y;break}default:Lt("abort",400);return}let kt=503;$n(ze+Ot).then(Y=>{const K=Y.status;if(K!==200){setTimeout(()=>{Lt(Be(K)?"abort":"next",K)});return}return kt=501,Y.json()}).then(Y=>{if(typeof Y!="object"||Y===null){setTimeout(()=>{Y===404?Lt("abort",Y):Lt("next",kt)});return}setTimeout(()=>{Lt("success",Y)})}).catch(()=>{Lt("next",kt)})}};function xe(ze){const bt={loaded:[],missing:[],pending:[]},Lt=Object.create(null);ze.sort((kt,Y)=>kt.provider!==Y.provider?kt.provider.localeCompare(Y.provider):kt.prefix!==Y.prefix?kt.prefix.localeCompare(Y.prefix):kt.name.localeCompare(Y.name));let Ot={provider:"",prefix:"",name:""};return ze.forEach(kt=>{if(Ot.name===kt.name&&Ot.prefix===kt.prefix&&Ot.provider===kt.provider)return;Ot=kt;const Y=kt.provider,K=kt.prefix,ie=kt.name,ue=Lt[Y]||(Lt[Y]=Object.create(null)),Me=ue[K]||(ue[K]=b(Y,K));let nt;ie in Me.icons?nt=bt.loaded:K===""||Me.missing.has(ie)?nt=bt.missing:nt=bt.pending;const Tt={provider:Y,prefix:K,name:ie};nt.push(Tt)}),bt}function Ve(ze,bt){ze.forEach(Lt=>{const Ot=Lt.loaderCallbacks;Ot&&(Lt.loaderCallbacks=Ot.filter(kt=>kt.id!==bt))})}function be(ze){ze.pendingCallbacksFlag||(ze.pendingCallbacksFlag=!0,setTimeout(()=>{ze.pendingCallbacksFlag=!1;const bt=ze.loaderCallbacks?ze.loaderCallbacks.slice(0):[];if(!bt.length)return;let Lt=!1;const Ot=ze.provider,kt=ze.prefix;bt.forEach(Y=>{const K=Y.icons,ie=K.pending.length;K.pending=K.pending.filter(ue=>{if(ue.prefix!==kt)return!0;const Me=ue.name;if(ze.icons[Me])K.loaded.push({provider:Ot,prefix:kt,name:Me});else if(ze.missing.has(Me))K.missing.push({provider:Ot,prefix:kt,name:Me});else return Lt=!0,!0;return!1}),K.pending.length!==ie&&(Lt||Ve([ze],Y.id),Y.callback(K.loaded.slice(0),K.missing.slice(0),K.pending.slice(0),Y.abort))})}))}let me=0;function Ce(ze,bt,Lt){const Ot=me++,kt=Ve.bind(null,Lt,Ot);if(!bt.pending.length)return kt;const Y={id:Ot,icons:bt,callback:ze,abort:kt};return Lt.forEach(K=>{(K.loaderCallbacks||(K.loaderCallbacks=[])).push(Y)}),kt}function Re(ze,bt=!0,Lt=!1){const Ot=[];return ze.forEach(kt=>{const Y=typeof kt=="string"?t(kt,bt,Lt):kt;Y&&Ot.push(Y)}),Ot}var vt={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Rt(ze,bt,Lt,Ot){const kt=ze.resources.length,Y=ze.random?Math.floor(Math.random()*kt):ze.index;let K;if(ze.random){let Tr=ze.resources.slice(0);for(K=[];Tr.length>1;){const Ns=Math.floor(Math.random()*Tr.length);K.push(Tr[Ns]),Tr=Tr.slice(0,Ns).concat(Tr.slice(Ns+1))}K=K.concat(Tr)}else K=ze.resources.slice(Y).concat(ze.resources.slice(0,Y));const ie=Date.now();let ue="pending",Me=0,nt,Tt=null,lt=[],Wt=[];typeof Ot=="function"&&Wt.push(Ot);function an(){Tt&&(clearTimeout(Tt),Tt=null)}function Mn(){ue==="pending"&&(ue="aborted"),an(),lt.forEach(Tr=>{Tr.status==="pending"&&(Tr.status="aborted")}),lt=[]}function oi(Tr,Ns){Ns&&(Wt=[]),typeof Tr=="function"&&Wt.push(Tr)}function gi(){return{startTime:ie,payload:bt,status:ue,queriesSent:Me,queriesPending:lt.length,subscribe:oi,abort:Mn}}function kn(){ue="failed",Wt.forEach(Tr=>{Tr(void 0,nt)})}function ir(){lt.forEach(Tr=>{Tr.status==="pending"&&(Tr.status="aborted")}),lt=[]}function Cs(Tr,Ns,fo){const Zl=Ns!=="success";switch(lt=lt.filter(Pt=>Pt!==Tr),ue){case"pending":break;case"failed":if(Zl||!ze.dataAfterTimeout)return;break;default:return}if(Ns==="abort"){nt=fo,kn();return}if(Zl){nt=fo,lt.length||(K.length?ms():kn());return}if(an(),ir(),!ze.random){const Pt=ze.resources.indexOf(Tr.resource);Pt!==-1&&Pt!==ze.index&&(ze.index=Pt)}ue="completed",Wt.forEach(Pt=>{Pt(fo)})}function ms(){if(ue!=="pending")return;an();const Tr=K.shift();if(Tr===void 0){if(lt.length){Tt=setTimeout(()=>{an(),ue==="pending"&&(ir(),kn())},ze.timeout);return}kn();return}const Ns={status:"pending",resource:Tr,callback:(fo,Zl)=>{Cs(Ns,fo,Zl)}};lt.push(Ns),Me++,Tt=setTimeout(ms,ze.rotate),Lt(Tr,bt,Ns.callback)}return setTimeout(ms),gi}function qt(ze){const bt={...vt,...ze};let Lt=[];function Ot(){Lt=Lt.filter(ie=>ie().status==="pending")}function kt(ie,ue,Me){const nt=Rt(bt,ie,ue,(Tt,lt)=>{Ot(),Me&&Me(Tt,lt)});return Lt.push(nt),nt}function Y(ie){return Lt.find(ue=>ie(ue))||null}return{query:kt,find:Y,setIndex:ie=>{bt.index=ie},getIndex:()=>bt.index,cleanup:Ot}}function en(){}const En=Object.create(null);function yn(ze){if(!En[ze]){const bt=ht(ze);if(!bt)return;const Lt=qt(bt),Ot={config:bt,redundancy:Lt};En[ze]=Ot}return En[ze]}function Pn(ze,bt,Lt){let Ot,kt;if(typeof ze=="string"){const Y=Le(ze);if(!Y)return Lt(void 0,424),en;kt=Y.send;const K=yn(ze);K&&(Ot=K.redundancy)}else{const Y=Pe(ze);if(Y){Ot=qt(Y);const K=ze.resources?ze.resources[0]:"",ie=Le(K);ie&&(kt=ie.send)}}return!Ot||!kt?(Lt(void 0,424),en):Ot.query(bt,kt,Lt)().abort}const mi="iconify2",Zi="iconify",si=Zi+"-count",lr=Zi+"-version",Qr=36e5,Oi=168;function er(ze,bt){try{return ze.getItem(bt)}catch{}}function Ti(ze,bt,Lt){try{return ze.setItem(bt,Lt),!0}catch{}}function yi(ze,bt){try{ze.removeItem(bt)}catch{}}function cr(ze,bt){return Ti(ze,si,bt.toString())}function Ki(ze){return parseInt(er(ze,si))||0}const Ri={local:!0,session:!0},tr={local:new Set,session:new Set};let Vi=!1;function et(ze){Vi=ze}let We=typeof window>"u"?{}:window;function Dt(ze){const bt=ze+"Storage";try{if(We&&We[bt]&&typeof We[bt].length=="number")return We[bt]}catch{}Ri[ze]=!1}function cn(ze,bt){const Lt=Dt(ze);if(!Lt)return;const Ot=er(Lt,lr);if(Ot!==mi){if(Ot){const ie=Ki(Lt);for(let ue=0;ue<ie;ue++)yi(Lt,Zi+ue.toString())}Ti(Lt,lr,mi),cr(Lt,0);return}const kt=Math.floor(Date.now()/Qr)-Oi,Y=ie=>{const ue=Zi+ie.toString(),Me=er(Lt,ue);if(typeof Me=="string"){try{const nt=JSON.parse(Me);if(typeof nt=="object"&&typeof nt.cached=="number"&&nt.cached>kt&&typeof nt.provider=="string"&&typeof nt.data=="object"&&typeof nt.data.prefix=="string"&&bt(nt,ie))return!0}catch{}yi(Lt,ue)}};let K=Ki(Lt);for(let ie=K-1;ie>=0;ie--)Y(ie)||(ie===K-1?(K--,cr(Lt,K)):tr[ze].add(ie))}function Qn(){if(!Vi){et(!0);for(const ze in Ri)cn(ze,bt=>{const Lt=bt.data,Ot=bt.provider,kt=Lt.prefix,Y=b(Ot,kt);if(!v(Y,Lt).length)return!1;const K=Lt.lastModified||-1;return Y.lastModifiedCached=Y.lastModifiedCached?Math.min(Y.lastModifiedCached,K):K,!0})}}function jn(ze,bt){const Lt=ze.lastModifiedCached;if(Lt&&Lt>=bt)return Lt===bt;if(ze.lastModifiedCached=bt,Lt)for(const Ot in Ri)cn(Ot,kt=>{const Y=kt.data;return kt.provider!==ze.provider||Y.prefix!==ze.prefix||Y.lastModified===bt});return!0}function fi(ze,bt){Vi||Qn();function Lt(Ot){let kt;if(!Ri[Ot]||!(kt=Dt(Ot)))return;const Y=tr[Ot];let K;if(Y.size)Y.delete(K=Array.from(Y).shift());else if(K=Ki(kt),!cr(kt,K+1))return;const ie={cached:Math.floor(Date.now()/Qr),provider:ze.provider,data:bt};return Ti(kt,Zi+K.toString(),JSON.stringify(ie))}bt.lastModified&&!jn(ze,bt.lastModified)||Object.keys(bt.icons).length&&(bt.not_found&&(bt=Object.assign({},bt),delete bt.not_found),Lt("local")||Lt("session"))}function Yn(){}function qn(ze){ze.iconsLoaderFlag||(ze.iconsLoaderFlag=!0,setTimeout(()=>{ze.iconsLoaderFlag=!1,be(ze)}))}function ii(ze,bt){ze.iconsToLoad?ze.iconsToLoad=ze.iconsToLoad.concat(bt).sort():ze.iconsToLoad=bt,ze.iconsQueueFlag||(ze.iconsQueueFlag=!0,setTimeout(()=>{ze.iconsQueueFlag=!1;const{provider:Lt,prefix:Ot}=ze,kt=ze.iconsToLoad;delete ze.iconsToLoad;let Y;if(!kt||!(Y=Le(Lt)))return;Y.prepare(Lt,Ot,kt).forEach(ie=>{Pn(Lt,ie,ue=>{if(typeof ue!="object")ie.icons.forEach(Me=>{ze.missing.add(Me)});else try{const Me=v(ze,ue);if(!Me.length)return;const nt=ze.pendingIcons;nt&&Me.forEach(Tt=>{nt.delete(Tt)}),fi(ze,ue)}catch(Me){console.error(Me)}qn(ze)})})}))}const li=(ze,bt)=>{const Lt=Re(ze,!0,C()),Ot=xe(Lt);if(!Ot.pending.length){let ue=!0;return bt&&setTimeout(()=>{ue&&bt(Ot.loaded,Ot.missing,Ot.pending,Yn)}),()=>{ue=!1}}const kt=Object.create(null),Y=[];let K,ie;return Ot.pending.forEach(ue=>{const{provider:Me,prefix:nt}=ue;if(nt===ie&&Me===K)return;K=Me,ie=nt,Y.push(b(Me,nt));const Tt=kt[Me]||(kt[Me]=Object.create(null));Tt[nt]||(Tt[nt]=[])}),Ot.pending.forEach(ue=>{const{provider:Me,prefix:nt,name:Tt}=ue,lt=b(Me,nt),Wt=lt.pendingIcons||(lt.pendingIcons=new Set);Wt.has(Tt)||(Wt.add(Tt),kt[Me][nt].push(Tt))}),Y.forEach(ue=>{const{provider:Me,prefix:nt}=ue;kt[Me][nt].length&&ii(ue,kt[Me][nt])}),bt?Ce(bt,Ot,Y):Yn},Ln=ze=>new Promise((bt,Lt)=>{const Ot=typeof ze=="string"?t(ze,!0):ze;if(!Ot){Lt(ze);return}li([Ot||ze],kt=>{if(kt.length&&Ot){const Y=x(Ot);if(Y){bt({...a,...Y});return}}Lt(ze)})});function ut(ze,bt){switch(ze){case"local":case"session":Ri[ze]=bt;break;case"all":for(const Lt in Ri)Ri[Lt]=bt;break}}function wn(ze,bt){const Lt={...ze};for(const Ot in bt){const kt=bt[Ot],Y=typeof kt;Ot in O?(kt===null||kt&&(Y==="string"||Y==="number"))&&(Lt[Ot]=kt):Y===typeof Lt[Ot]&&(Lt[Ot]=Ot==="rotate"?kt%4:kt)}return Lt}const Nt=/[\s,]+/;function Ye(ze,bt){bt.split(Nt).forEach(Lt=>{switch(Lt.trim()){case"horizontal":ze.hFlip=!0;break;case"vertical":ze.vFlip=!0;break}})}function Gt(ze,bt=0){const Lt=ze.replace(/^-?[0-9.]*/,"");function Ot(kt){for(;kt<0;)kt+=4;return kt%4}if(Lt===""){const kt=parseInt(ze);return isNaN(kt)?0:Ot(kt)}else if(Lt!==ze){let kt=0;switch(Lt){case"%":kt=25;break;case"deg":kt=90}if(kt){let Y=parseFloat(ze.slice(0,ze.length-Lt.length));return isNaN(Y)?0:(Y=Y/kt,Y%1===0?Ot(Y):0)}}return bt}function Gn(ze,bt){let Lt=ze.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const Ot in bt)Lt+=" "+Ot+'="'+bt[Ot]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+Lt+">"+ze+"</svg>"}function pi(ze){return ze.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Hr(ze){return"data:image/svg+xml,"+pi(ze)}function Ui(ze){return'url("'+Hr(ze)+'")'}let Xr;function Xs(){try{Xr=window.trustedTypes.createPolicy("iconify",{createHTML:ze=>ze})}catch{Xr=null}}function ao(ze){return Xr===void 0&&Xs(),Xr?Xr.createHTML(ze):ze}const ho={...k,inline:!1},ws={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},ji={display:"inline-block"},kr={backgroundColor:"currentColor"},Po={backgroundColor:"transparent"},fl={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Zr={WebkitMask:kr,mask:kr,background:Po};for(const ze in Zr){const bt=Zr[ze];for(const Lt in fl)bt[ze+Lt]=fl[Lt]}const To={...ho,inline:!0};function il(ze){return ze+(ze.match(/^[-0-9.]+$/)?"px":"")}const Uc=(ze,bt,Lt,Ot)=>{const kt=Lt?To:ho,Y=wn(kt,bt),K=bt.mode||"svg",ie={},ue=bt.style||{},Me={...K==="svg"?ws:{},ref:Ot};for(let gi in bt){const kn=bt[gi];if(kn!==void 0)switch(gi){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":Y[gi]=kn===!0||kn==="true"||kn===1;break;case"flip":typeof kn=="string"&&Ye(Y,kn);break;case"color":ie.color=kn;break;case"rotate":typeof kn=="string"?Y[gi]=Gt(kn):typeof kn=="number"&&(Y[gi]=kn);break;case"ariaHidden":case"aria-hidden":kn!==!0&&kn!=="true"&&delete Me["aria-hidden"];break;default:kt[gi]===void 0&&(Me[gi]=kn)}}const nt=U(ze,Y),Tt=nt.attributes;if(Y.inline&&(ie.verticalAlign="-0.125em"),K==="svg"){Me.style={...ie,...ue},Object.assign(Me,Tt);let gi=0,kn=bt.id;return typeof kn=="string"&&(kn=kn.replace(/-/g,"_")),Me.dangerouslySetInnerHTML={__html:ao(X(nt.body,kn?()=>kn+"ID"+gi++:"iconifyReact"))},n.createElement("svg",Me)}const{body:lt,width:Wt,height:an}=ze,Mn=K==="mask"||(K==="bg"?!1:lt.indexOf("currentColor")!==-1),oi=Gn(lt,{...Tt,width:Wt+"",height:an+""});return Me.style={...ie,"--svg":Ui(oi),width:il(Tt.width),height:il(Tt.height),...ji,...Mn?kr:Po,...ue},n.createElement("span",Me)};function lc(ze){ut(ze,!0)}function Hl(ze){ut(ze,!1)}if(C(!0),fe("",ge),typeof document<"u"&&typeof window<"u"){Qn();const ze=window;if(ze.IconifyPreload!==void 0){const bt=ze.IconifyPreload,Lt="Invalid IconifyPreload syntax.";typeof bt=="object"&&bt!==null&&(bt instanceof Array?bt:[bt]).forEach(Ot=>{try{(typeof Ot!="object"||Ot===null||Ot instanceof Array||typeof Ot.icons!="object"||typeof Ot.prefix!="string"||!L(Ot))&&console.error(Lt)}catch{console.error(Lt)}})}if(ze.IconifyProviders!==void 0){const bt=ze.IconifyProviders;if(typeof bt=="object"&&bt!==null)for(let Lt in bt){const Ot="IconifyProviders["+Lt+"] is invalid.";try{const kt=bt[Lt];if(typeof kt!="object"||!kt||kt.resources===void 0)continue;Ne(Lt,kt)||console.error(Ot)}catch{console.error(Ot)}}}}class Wa extends n.Component{constructor(bt){super(bt),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(bt){this.state.icon!==bt&&this.setState({icon:bt})}_checkIcon(bt){const Lt=this.state,Ot=this.props.icon;if(typeof Ot=="object"&&Ot!==null&&typeof Ot.body=="string"){this._icon="",this._abortLoading(),(bt||Lt.icon===null)&&this._setData({data:Ot});return}let kt;if(typeof Ot!="string"||(kt=t(Ot,!1,!0))===null){this._abortLoading(),this._setData(null);return}const Y=x(kt);if(!Y){(!this._loading||this._loading.name!==Ot)&&(this._abortLoading(),this._icon="",this._setData(null),Y!==null&&(this._loading={name:Ot,abort:li([kt],this._checkIcon.bind(this,!1))}));return}if(this._icon!==Ot||Lt.icon===null){this._abortLoading(),this._icon=Ot;const K=["iconify"];kt.prefix!==""&&K.push("iconify--"+kt.prefix),kt.provider!==""&&K.push("iconify--"+kt.provider),this._setData({data:Y,classes:K}),this.props.onLoad&&this.props.onLoad(Ot)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(bt){bt.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const bt=this.props,Lt=this.state.icon;if(Lt===null)return bt.children?bt.children:n.createElement("span",{});let Ot=bt;return Lt.classes&&(Ot={...bt,className:(typeof bt.className=="string"?bt.className+" ":"")+Lt.classes.join(" ")}),Uc({...a,...Lt.data},Ot,bt._inline,bt._ref)}}const ta=n.forwardRef(function(bt,Lt){const Ot={...bt,_ref:Lt,_inline:!1};return n.createElement(Wa,Ot)}),pa=n.forwardRef(function(bt,Lt){const Ot={...bt,_ref:Lt,_inline:!0};return n.createElement(Wa,Ot)}),Pd={getAPIConfig:ht,setAPIModule:fe,sendAPIQuery:Pn,setFetch:zn,getFetch:qi,listAPIProviders:zt};return Fu.Icon=ta,Fu.InlineIcon=pa,Fu._api=Pd,Fu.addAPIProvider=Ne,Fu.addCollection=L,Fu.addIcon=S,Fu.buildIcon=U,Fu.calculateSize=H,Fu.disableCache=Hl,Fu.enableCache=lc,Fu.getIcon=I,Fu.iconExists=E,Fu.listIcons=w,Fu.loadIcon=Ln,Fu.loadIcons=li,Fu.replaceIDs=X,Fu}var B1=POt();const HOt=({lead:n,update:e})=>{var c,u;const{t}=ln(),i=nr(),r=N4(),s=ac(),a=F.useMemo(()=>(n==null?void 0:n.icon)??"material-symbols:find-in-page",[n==null?void 0:n.icon]),o=F.useMemo(()=>JSON.parse((n==null?void 0:n.metadata)??"{}"),[n==null?void 0:n.metadata]),l=F.useCallback(h=>{e({metadata:JSON.stringify(vj({},o,h))})},[o,e]);return F.useEffect(()=>{r&&r.editor.getModels().forEach(h=>h.setEOL(r.editor.EndOfLineSequence.LF))},[r]),Q.jsxs(rt,{spacing:2,pt:2,sx:{flex:1},children:[Q.jsxs(rt,{direction:"row",alignItems:"center",position:"relative",children:[Q.jsx(Ar,{size:"small",label:t("route.dossiers.manager.icon"),value:a,disabled:!n,fullWidth:!0,error:!B1.iconExists(a),sx:{"& input":{paddingLeft:"2.25rem"}},onChange:h=>e({icon:h.target.value})}),Q.jsx(B1.Icon,{fontSize:"1.75rem",icon:a,style:{position:"absolute",left:"0.5rem"}}),Q.jsx(so,{variant:"outlined",color:"error",disabled:!n,sx:{minWidth:"0 !important",ml:1},onClick:()=>e(null),children:Q.jsx(Gh,{})})]}),Q.jsxs(rt,{direction:"row",spacing:.5,alignItems:"center",sx:{mt:`${i.spacing(.5)} !important`},children:[Q.jsx(mt,{color:"text.secondary",children:t("route.dossiers.manager.icon.description")}),Q.jsx(Ei,{size:"small",component:"a",href:"https://icon-sets.iconify.design/",children:Q.jsx(pp,{fontSize:"small"})})]}),Q.jsxs(rt,{direction:"row",spacing:2,children:[Q.jsx(Ar,{size:"small",label:t("route.dossiers.manager.label.en"),disabled:!n,value:((c=n==null?void 0:n.label)==null?void 0:c.en)??"",fullWidth:!0,onChange:h=>e({label:{en:h.target.value}})}),Q.jsx(Ar,{size:"small",label:t("route.dossiers.manager.label.fr"),disabled:!n,value:((u=n==null?void 0:n.label)==null?void 0:u.fr)??"",fullWidth:!0,onChange:h=>e({label:{fr:h.target.value}})})]}),Q.jsx(Ya,{disabled:!n,options:["markdown",...el.leadFormats],renderInput:h=>Q.jsx(Ar,{...h,size:"small",label:t("route.dossiers.manager.format")}),value:(n==null?void 0:n.format)??"",onChange:(h,d)=>e({format:d,metadata:"{}",content:""})}),!!(n!=null&&n.format)&&(n.format==="markdown"?Q.jsx(GE,{height:"100%",width:"100%",language:"markdown",theme:i.palette.mode==="light"?"howler":"howler-dark",value:(n==null?void 0:n.content)??"",onChange:h=>e({content:h}),options:{}}):s.executeFunction(`lead.${n.format}.form`,{lead:n,metadata:o,update:e,updateMetadata:l}))]})},FOt=({dossier:n,setDossier:e,loading:t})=>{var o;const{t:i,i18n:r}=ln(),[s,a]=F.useState(0);return Q.jsxs(Lu,{sx:{p:1,display:"flex",flexDirection:"column",flex:1},children:[Q.jsxs(rt,{direction:"row",children:[!(n!=null&&n.leads)||n.leads.length<1?Q.jsx(Ed,{variant:"outlined",severity:"warning",sx:{mr:1,px:1,py:0,minHeight:"0 !important",display:"flex",alignItems:"center","& .MuiAlert-icon ":{fontSize:"20px",py:0},"& .MuiAlert-message":{py:.7}},children:i("route.dossiers.manager.lead.create")}):Q.jsx(O4,{value:s,onChange:(l,c)=>a(c),sx:{minHeight:"0 !important"},children:(o=n.leads)==null?void 0:o.map((l,c)=>Q.jsx(Vs,{disabled:!n||t,sx:{py:1,minHeight:"0 !important"},label:Q.jsxs(rt,{direction:"row",spacing:.5,children:[l.icon&&Q.jsx(B1.Icon,{icon:l.icon}),Q.jsx("span",{children:r.language==="en"?l.label.en:l.label.fr})]}),value:c},l.content))}),Q.jsx(so,{sx:{ml:"auto",alignSelf:"end",minWidth:"0 !important"},size:"small",variant:"contained",onClick:()=>{var l;a(((l=n.leads)==null?void 0:l.length)??0),e(c=>({...c,leads:[...c.leads??[],{icon:"material-symbols:add-ad",label:{en:"New Lead",fr:"Nouvelle Piste"}}]}))},children:Q.jsx(U2,{})})]}),Q.jsx(HOt,{lead:(n.leads??[])[s],update:l=>e(c=>({...c,leads:(c.leads??[]).map((u,h)=>h!==s?u:B2(l)?null:vj({},u,l)).filter(u=>!B2(u))}))})]})},BOt=({pivot:n,update:e})=>{var r;const{t}=ln(),{config:i}=F.useContext(wa);return Q.jsxs(Q.Fragment,{children:[Q.jsx(Ar,{size:"small",label:t("route.dossiers.manager.pivot.value"),disabled:!n,value:(n==null?void 0:n.value)??"",fullWidth:!0,onChange:s=>e({value:s.target.value})}),Q.jsx(is,{flexItem:!0}),Q.jsx(mt,{children:t("route.dossiers.manager.pivot.mappings")}),(r=n==null?void 0:n.mappings)==null?void 0:r.map((s,a)=>Q.jsxs(F.Fragment,{children:[Q.jsxs(rt,{direction:"row",spacing:1,children:[Q.jsx(Ar,{size:"small",label:t("route.dossiers.manager.pivot.mapping.key"),disabled:!n,value:(s==null?void 0:s.key)??"",onChange:o=>e({mappings:n.mappings.map((l,c)=>a===c?{...l,key:o.target.value}:l)})}),Q.jsx(Ya,{fullWidth:!0,disabled:!n,options:["custom",...Object.keys(i.indexes.hit)],renderInput:o=>Q.jsx(Ar,{...o,size:"small",fullWidth:!0,label:t("route.dossiers.manager.pivot.mapping.field"),sx:{minWidth:"150px"}}),getOptionLabel:o=>t(o),value:s.field??"",onChange:(o,l)=>e({mappings:n.mappings.map((c,u)=>a===u?{...c,field:l}:c)})}),Q.jsx(Ei,{onClick:()=>e({mappings:n.mappings.filter((o,l)=>a!==l)}),children:Q.jsx(qve,{})})]}),s.field==="custom"&&Q.jsx(Ar,{size:"small",label:t("route.dossiers.manager.pivot.mapping.custom"),disabled:!n,value:(s==null?void 0:s.custom_value)??"",onChange:o=>e({mappings:n.mappings.map((l,c)=>a===c?{...l,custom_value:o.target.value}:l)})})]},a)),Q.jsx(so,{disabled:!n,sx:{ml:"auto",alignSelf:"end",minWidth:"0 !important"},size:"small",variant:"contained",onClick:()=>{e({mappings:[...n.mappings??[],{key:"key"}]})},children:Q.jsx(U2,{})})]})},VOt=({dossier:n,setDossier:e,loading:t})=>{var d,f,p;const i=nr(),{t:r,i18n:s}=ln(),a=ac(),[o,l]=F.useState(0),c=F.useCallback(g=>e(m=>({...m,pivots:(m.pivots??[]).map((T,b)=>{if(o!==b)return T;if(B2(g))return null;const v=vj({},T,g);return g.mappings&&(v.mappings=g.mappings),v}).filter(T=>!B2(T))})),[e,o]),u=F.useMemo(()=>{var g;return((g=n.pivots)==null?void 0:g[o])??null},[n.pivots,o]),h=F.useMemo(()=>(u==null?void 0:u.icon)??"material-symbols:find-in-page",[u==null?void 0:u.icon]);return Q.jsx(Lu,{sx:{p:1,display:"flex",flexDirection:"column",flex:1},children:Q.jsxs(rt,{spacing:2,children:[Q.jsxs(rt,{direction:"row",children:[!(n!=null&&n.pivots)||n.pivots.length<1?Q.jsx(Ed,{variant:"outlined",severity:"warning",sx:{mr:1,px:1,py:0,minHeight:"0 !important",display:"flex",alignItems:"center","& .MuiAlert-icon ":{fontSize:"20px",py:0},"& .MuiAlert-message":{py:.7}},children:r("route.dossiers.manager.pivot.create")}):Q.jsx(O4,{value:o,onChange:(g,m)=>l(m),sx:{minHeight:"0 !important"},children:(d=n.pivots)==null?void 0:d.map((g,m)=>Q.jsx(Vs,{disabled:!n||t,sx:{py:1,minHeight:"0 !important"},label:Q.jsxs(rt,{direction:"row",spacing:.5,children:[g.icon&&Q.jsx(B1.Icon,{icon:g.icon}),Q.jsx("span",{children:s.language==="en"?g.label.en:g.label.fr})]}),value:m},g.value))}),Q.jsx(so,{sx:{ml:"auto",alignSelf:"end",minWidth:"0 !important"},size:"small",variant:"contained",onClick:()=>{var g;l(((g=n.pivots)==null?void 0:g.length)??0),e(m=>({...m,pivots:[...m.pivots??[],{icon:"material-symbols:add-ad",label:{en:"New Pivot",fr:"Nouvelle pivot"}}]}))},children:Q.jsx(U2,{})})]}),Q.jsxs(rt,{spacing:2,children:[Q.jsxs(rt,{direction:"row",alignItems:"center",position:"relative",children:[Q.jsx(Ar,{size:"small",label:r("route.dossiers.manager.pivot.icon"),value:h,disabled:!u,fullWidth:!0,error:!B1.iconExists(h),sx:{"& input":{paddingLeft:"2.25rem"}},onChange:g=>c({icon:g.target.value})}),Q.jsx(B1.Icon,{fontSize:"1.75rem",icon:h,style:{position:"absolute",left:"0.5rem"}}),Q.jsx(so,{variant:"outlined",color:"error",disabled:!u,sx:{minWidth:"0 !important",ml:1},onClick:()=>c(null),children:Q.jsx(Gh,{})})]}),Q.jsxs(rt,{direction:"row",spacing:.5,alignItems:"center",sx:{mt:`${i.spacing(.5)} !important`},children:[Q.jsx(mt,{color:"text.secondary",children:r("route.dossiers.manager.icon.description")}),Q.jsx(Ei,{size:"small",component:"a",href:"https://icon-sets.iconify.design/",children:Q.jsx(pp,{fontSize:"small"})})]}),Q.jsxs(rt,{direction:"row",spacing:2,children:[Q.jsx(Ar,{size:"small",label:r("route.dossiers.manager.pivot.label.en"),disabled:!u,value:((f=u==null?void 0:u.label)==null?void 0:f.en)??"",fullWidth:!0,onChange:g=>c({label:{en:g.target.value}})}),Q.jsx(Ar,{size:"small",label:r("route.dossiers.manager.pivot.label.fr"),disabled:!u,value:((p=u==null?void 0:u.label)==null?void 0:p.fr)??"",fullWidth:!0,onChange:g=>c({label:{fr:g.target.value}})})]}),Q.jsx(Ya,{disabled:!u,options:["link",...el.pivotFormats],renderInput:g=>Q.jsx(Ar,{...g,size:"small",label:r("route.dossiers.manager.pivot.format")}),value:(u==null?void 0:u.format)??"",onChange:(g,m)=>c({format:m,value:"",mappings:[]})}),!!(u!=null&&u.format)&&(u.format==="link"?Q.jsx(BOt,{pivot:u,update:c}):a.executeFunction(`pivot.${u.format}.form`,{pivot:u,update:c}))]})]})})},jOt=()=>{const{t:n,i18n:e}=ln(),t=Y1(),{dispatchApi:i}=zs(),r=tl(),s=un(Or,y=>y.setQuery),a=uo(`(max-width: ${e.language==="en"?1275:1375}px)`),[o,l]=F.useState(),[c,u]=F.useState({type:"global",leads:[],pivots:[]}),[h,d]=F.useState("leads"),[f,p]=F.useState(-1),[g,m]=F.useState(!1),[T,b]=F.useState(!1),v=F.useMemo(()=>!Bae(o,c),[c,o]),_=F.useMemo(()=>{var y,C;return c?c.title?f<0||g?n("route.dossiers.manager.validation.search"):c.query?c.type?(c.leads??[]).length<1&&(c.pivots??[]).length<1?n("route.dossiers.manager.validation.error.items"):(y=c.leads??[])!=null&&y.every(x=>{var S,L;return x.icon&&B1.iconExists(x.icon)&&((S=x.label)==null?void 0:S.en)&&((L=x.label)==null?void 0:L.fr)&&x.label&&x.format&&x.content})?(c.pivots??[]).every(x=>x.icon&&B1.iconExists(x.icon)&&x.label&&x.label.en&&x.label.fr&&x.format)?(C=c.pivots)!=null&&C.every(x=>(x.mappings??[]).length===yj(x.mappings??[],"key").length)?null:n("route.dossiers.manager.validation.error.pivots.duplicate"):n("route.dossiers.manager.validation.error.pivots"):n("route.dossiers.manager.validation.error.leads"):n("route.dossiers.manager.validation.error.missing",{field:n("route.dossiers.manager.field.type")}):n("route.dossiers.manager.validation.error.missing",{field:n("route.dossiers.manager.field.query")}):n("route.dossiers.manager.validation.error.missing",{field:n("route.dossiers.manager.field.title")}):n("route.dossiers.manager.validation.error")},[c,g,f,n]),w=F.useCallback(async()=>{b(!0);try{if(t.id)u(await i(Sn.dossier.put(c.dossier_id,jxe(c,["dossier_id","id"]))));else{const y=await i(Sn.dossier.post(c));r(`/dossiers/${y.dossier_id}/edit`)}}finally{b(!1)}},[i,c,r,t.id]);return F.useEffect(()=>{t.id&&(b(!0),i(Sn.dossier.get(t.id)).then(y=>{l(y),u(y)}).finally(()=>b(!1)))},[i,t.id]),F.useEffect(()=>{c.query&&(s(c.query),(async()=>{b(!0);try{const y=await i(Sn.search.hit.post({query:c.query,rows:0}));p(y.total)}finally{b(!1)}})())},[i,c.query,s]),Q.jsx(va,{maxWidth:"1000px",width:"100%",textAlign:"left",height:"97%",children:Q.jsxs(ai,{position:"relative",height:"100%",children:[Q.jsx(Jn,{title:_,children:Q.jsx("span",{children:Q.jsxs(oI,{variant:"extended",size:"large",color:"primary",disabled:!v||!!_||T,sx:y=>({textTransform:"none",position:"absolute",right:a?y.spacing(2):`calc(100% + ${y.spacing(2)})`,whiteSpace:"nowrap",pointerEvents:"initial !important",...a?{bottom:y.spacing(1)}:{top:0}}),onClick:w,children:[T?Q.jsx(_a,{size:24,sx:{mr:1}}):Q.jsx(moe,{sx:{mr:1}}),Q.jsx(mt,{children:n("save")})]})})}),Q.jsxs(rt,{spacing:1,height:"100%",children:[Q.jsx(Lu,{sx:{p:1},children:Q.jsxs(rt,{spacing:1,children:[Q.jsxs(rt,{spacing:1,direction:"row",children:[Q.jsx(Ar,{disabled:!c||T,label:"Title",size:"small",value:c.title??"",onChange:y=>u(C=>({...C,title:y.target.value})),fullWidth:!0}),Q.jsxs(d4,{disabled:!c||T,exclusive:!0,value:c.type??"global",onChange:(y,C)=>u(x=>({...x,type:C})),children:[Q.jsx(Jn,{title:n("route.dossiers.manager.global"),children:Q.jsx(Dc,{value:"global",size:"small",children:Q.jsx(iI,{fontSize:"small"})})}),Q.jsx(Jn,{title:n("route.dossiers.manager.personal"),children:Q.jsx(Dc,{value:"personal",size:"small",children:Q.jsx(yC,{fontSize:"small"})})})]})]}),Q.jsx(mt,{sx:y=>({color:y.palette.text.secondary,fontSize:"0.9em",fontStyle:"italic",mb:.5}),variant:"body2",children:n("hit.search.prompt")}),Q.jsx(kI,{disabled:!c||T,onChange:(y,C)=>m(C),triggerSearch:y=>u(C=>({...C,query:y}))}),f>=0&&Q.jsx(Qj,{count:f,query:c.query})]})}),Q.jsxs(O4,{value:h,onChange:(y,C)=>d(C),children:[Q.jsx(Vs,{label:n("route.dossiers.manager.tabs.leads"),value:"leads"}),Q.jsx(Vs,{label:n("route.dossiers.manager.tabs.pivots"),value:"pivots"})]}),h==="leads"&&Q.jsx(FOt,{dossier:c,setDossier:u,loading:T}),h==="pivots"&&Q.jsx(VOt,{dossier:c,setDossier:u,loading:T})]})]})})},$5e=F.memo(jOt),zOt=({dossier:n,className:e,onDelete:t})=>{const{t:i}=ln();return Q.jsx(Wi,{variant:"outlined",sx:{p:1,mb:1},className:e,children:Q.jsxs(rt,{direction:"row",alignItems:"center",spacing:1,children:[Q.jsxs(rt,{children:[Q.jsxs(mt,{variant:"body1",display:"flex",alignItems:"start",children:[Q.jsx(Jn,{title:i(`route.dossiers.manager.${n.type}`),children:n.type==="personal"?Q.jsx(yC,{fontSize:"small"}):Q.jsx(iI,{fontSize:"small"})}),Q.jsx(ai,{component:"span",ml:1,children:n.title})]}),Q.jsx(mt,{variant:"caption",color:"text.secondary",children:Q.jsx("code",{children:n.query})})]}),Q.jsx(ku,{}),Q.jsx(zc,{sx:{height:"24px",width:"24px"},userId:n.owner}),t&&Q.jsx(Jn,{title:i("route.dossiers.manager.delete"),children:Q.jsx(Ei,{onClick:r=>t(r,n.dossier_id),children:Q.jsx(Gh,{})})})]})},n.dossier_id)},WOt=()=>{const{t:n}=ln(),e=tl(),{dispatchApi:t}=zs(),{showSuccessMessage:i}=ed(),[r,s]=yc(),{load:a}=F.useContext(e5),o=oa(Ii.PAGE_COUNT,25)[0],[l,c]=F.useState(""),[u,h]=F.useState(parseInt(r.get("offset"))||0),[d,f]=F.useState(null),[p,g]=F.useState(!1),[m,T]=F.useState(!1),b=F.useCallback(async()=>{try{T(!0),g(!1),l?r.set("phrase",l):r.delete("phrase"),s(r,{replace:!0});const y=l?`*:*${l}*`:"*:*";f(await t(Sn.search.dossier.post({query:y,rows:o,offset:u})))}catch{g(!0)}finally{T(!1)}},[l,s,r,t,o,u]);F.useEffect(()=>{d&&a(d.items.map(y=>({id:y.dossier_id,item:y,selected:!1,cursor:!1})))},[d,a]);const v=F.useCallback(y=>{y!==u&&(r.set("offset",y.toString()),s(r,{replace:!0}),h(y))},[u,r,s]),_=F.useCallback(async(y,C)=>{y.preventDefault(),y.stopPropagation();try{await t(Sn.dossier.del(C),{throwError:!1,showError:!0}),await b(),i(n("route.dossiers.manager.delete.success"))}catch(x){console.warn(x)}},[t,b,i,n]);F.useEffect(()=>{b(),r.has("offset")||(r.set("offset","0"),s(r,{replace:!0}))},[]),F.useEffect(()=>{(d==null?void 0:d.total)<=u&&(h(0),r.set("offset","0"),s(r,{replace:!0}))},[u,d==null?void 0:d.total,r,s]),F.useEffect(()=>{m||b()},[u]);const w=F.useCallback((y,C)=>Q.jsx(zOt,{dossier:y,className:C,onDelete:_}),[_]);return Q.jsx(JC,{onSearch:b,onPageChange:v,phrase:l,setPhrase:c,hasError:p,searching:m,aboveSearch:Q.jsx(mt,{sx:y=>({fontStyle:"italic",color:y.palette.text.disabled,mb:.5}),variant:"body2",children:n("route.dossiers.search.prompt")}),renderer:({item:y},C)=>w(y.item,C()),response:d,onSelect:y=>e(`/dossiers/${y.id}/edit`),onCreate:()=>e("/dossiers/create"),createPrompt:"route.dossiers.create",searchPrompt:"route.dossiers.manager.search",createIcon:Q.jsx(hoe,{sx:{mr:1}})})},UOt=()=>Q.jsx(Pb,{children:Q.jsx(WOt,{})}),$Ot=n=>{const e=window.sessionStorage.getItem(n);return Number(e)||0},qOt=(n,e)=>{try{window.sessionStorage.setItem(n,e.toString())}catch{console.log("Session storage full, can not save the scroll position")}},X2=(n="app-scrollct")=>{const e=`scroll-position-${Pl().key}`;F.useLayoutEffect(()=>(document.getElementById(n).scrollTo(0,$Ot(e)),()=>{qOt(e,document.getElementById(n).scrollTop??0)}),[n,e])},ZOt=`# Using Actions in Howler
|
|
621
621
|
|
|
622
622
|
Actions are a feature in Howler that allow users to perform particular tasks on a large number of hits, through automating the execution of a task on each hit. There are currently \`action_count\` operations supported in howler:
|
|
623
623
|
|
|
@@ -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-jnrfKZoJ.js"),[]).then(n=>n.TagAutoInterpolationDollar)});Li({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>Ae(()=>import("./freemarker2-jnrfKZoJ.js"),[]).then(n=>n.TagAngleInterpolationDollar)});Li({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>Ae(()=>import("./freemarker2-jnrfKZoJ.js"),[]).then(n=>n.TagBracketInterpolationDollar)});Li({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>Ae(()=>import("./freemarker2-jnrfKZoJ.js"),[]).then(n=>n.TagAngleInterpolationBracket)});Li({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>Ae(()=>import("./freemarker2-jnrfKZoJ.js"),[]).then(n=>n.TagBracketInterpolationBracket)});Li({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>Ae(()=>import("./freemarker2-jnrfKZoJ.js"),[]).then(n=>n.TagAutoInterpolationDollar)});Li({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>Ae(()=>import("./freemarker2-jnrfKZoJ.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-0c_qBBSs.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-DhVssQ14.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-BxyKX1eS.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-65xtnEsX.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-BHoJleUX.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-C2ne8Ti1.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-BXhlQVgK.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-C6FSLd6J.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-BY8fvbUX.js"),[])});Li({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>Ae(()=>import("./yaml-BrAKw7l8.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-
|
|
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-
|
|
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-C1ylvAq_.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(`
|