@cc-monitoring/proxy-core 0.4.1 → 0.4.2
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/dist/docs/404.html +1 -1
- package/dist/docs/assets/{app.g7N9jkzn.js → app.vxoC6jUT.js} +1 -1
- package/dist/docs/assets/chunks/@localSearchIndexroot.lKm6N3Ik.js +1 -0
- package/dist/docs/assets/chunks/{VPLocalSearchBox.BHwI475_.js → VPLocalSearchBox.DrfGpz86.js} +1 -1
- package/dist/docs/assets/chunks/{theme.FhAJSNDh.js → theme.CCmzbSn9.js} +2 -2
- package/dist/docs/index.html +2 -2
- package/dist/docs/overview.html +2 -2
- package/dist/docs/packages-utils.html +2 -2
- package/dist/docs/proxy-admin/env-and-build.html +2 -2
- package/dist/docs/proxy-admin/index.html +2 -2
- package/dist/docs/proxy-admin/layout-and-menu.html +2 -2
- package/dist/docs/proxy-admin/pages.html +2 -2
- package/dist/docs/proxy-admin/routing-and-auth.html +2 -2
- package/dist/docs/proxy-admin/services-and-mock.html +2 -2
- package/dist/docs/proxy-cli/api-layer.html +2 -2
- package/dist/docs/proxy-cli/app-shell.html +2 -2
- package/dist/docs/proxy-cli/components-common.html +2 -2
- package/dist/docs/proxy-cli/components-config.html +2 -2
- package/dist/docs/proxy-cli/components-requests.html +2 -2
- package/dist/docs/proxy-cli/components-stats.html +2 -2
- package/dist/docs/proxy-cli/components-status.html +2 -2
- package/dist/docs/proxy-cli/data-hooks.html +2 -2
- package/dist/docs/proxy-cli/index.html +2 -2
- package/dist/docs/proxy-cli/utils-and-i18n.html +2 -2
- package/dist/docs/proxy-core/chat-api.html +2 -2
- package/dist/docs/proxy-core/cli.html +2 -2
- package/dist/docs/proxy-core/config.html +2 -2
- package/dist/docs/proxy-core/data-layer.html +2 -2
- package/dist/docs/proxy-core/entry.html +2 -2
- package/dist/docs/proxy-core/index.html +2 -2
- package/dist/docs/proxy-core/pm2.html +2 -2
- package/dist/docs/proxy-core/providers.html +2 -2
- package/dist/docs/proxy-core/proxy.html +2 -2
- package/dist/docs/proxy-core/stats.html +2 -2
- package/dist/docs/proxy-core/tool.html +2 -2
- package/dist/docs/proxy-core/ui-routes.html +2 -2
- package/dist/docs/proxy-core/utilities.html +2 -2
- package/dist/docs/quickstart.html +2 -2
- package/dist/docs/request-flow.html +2 -2
- package/dist/server/__tests__/proxy.test.js +84 -0
- package/dist/server/chat-route.js +3 -3
- package/dist/server/proxy.js +46 -2
- package/dist/ui/assets/{1c-CaPSZBmB.js → 1c-BdWVxVKv.js} +1 -1
- package/dist/ui/assets/{abnf-DBDOsmne.js → abnf-hHBtR6kN.js} +1 -1
- package/dist/ui/assets/{abnfDiagram-VRR7QNED-D8zK__Mj.js → abnfDiagram-VRR7QNED-B0E8zzLB.js} +1 -1
- package/dist/ui/assets/{accesslog-BOLs2Kig.js → accesslog-BZmvPz-q.js} +1 -1
- package/dist/ui/assets/{actionscript-BZYKhS1B.js → actionscript-XtUFCVQF.js} +1 -1
- package/dist/ui/assets/{ada-DyacnMpg.js → ada-DDsWH3P3.js} +1 -1
- package/dist/ui/assets/{angelscript-CAN6j0H3.js → angelscript-CGLPsuae.js} +1 -1
- package/dist/ui/assets/{apache-BE4vouiQ.js → apache-eGe6GEfx.js} +1 -1
- package/dist/ui/assets/{applescript-CS88I1yz.js → applescript-Ch2Hdkz_.js} +1 -1
- package/dist/ui/assets/{arc-CTMmdrSV.js → arc-Bi_rJJly.js} +1 -1
- package/dist/ui/assets/{arcade-B0f0f5SD.js → arcade-BAeq_5jU.js} +1 -1
- package/dist/ui/assets/{architectureDiagram-ZJ3FMSHR-Dtvpnopp.js → architectureDiagram-ZJ3FMSHR-D3rUGwDS.js} +1 -1
- package/dist/ui/assets/{arduino-Bhm-OSb2.js → arduino-DJR8nayp.js} +1 -1
- package/dist/ui/assets/{armasm-CEy-mDHc.js → armasm-DqDD_ZDN.js} +1 -1
- package/dist/ui/assets/{asciidoc-CrZqQBTj.js → asciidoc-CgBdhmR5.js} +1 -1
- package/dist/ui/assets/{aspectj-B4IlFyyJ.js → aspectj-Dbm_6mY0.js} +1 -1
- package/dist/ui/assets/{autohotkey-Cihy-FjA.js → autohotkey-BkbluSS8.js} +1 -1
- package/dist/ui/assets/{autoit-Dis_JVJq.js → autoit-qUepyZBT.js} +1 -1
- package/dist/ui/assets/{avrasm-CVhMycHj.js → avrasm-2snPxE5L.js} +1 -1
- package/dist/ui/assets/{awk-BCViwLf5.js → awk-oPcQTdJK.js} +1 -1
- package/dist/ui/assets/{axapta-pWB4JVB_.js → axapta-CCu7hfQ-.js} +1 -1
- package/dist/ui/assets/{bash-B6Giryub.js → bash-CmWN3rPR.js} +1 -1
- package/dist/ui/assets/{basic-DcrjcHB0.js → basic-Dg8KcxuC.js} +1 -1
- package/dist/ui/assets/{blockDiagram-677ZJIJ3-DfhtgI1r.js → blockDiagram-677ZJIJ3-Dusa5zr8.js} +1 -1
- package/dist/ui/assets/{bnf-cpKU0967.js → bnf-Zmfygl9A.js} +1 -1
- package/dist/ui/assets/{brainfuck-CFFdk4cM.js → brainfuck-K4-sBD6i.js} +1 -1
- package/dist/ui/assets/{coq-C1g3mm0X.js → c-BGtacyfP.js} +1 -1
- package/dist/ui/assets/{c-like-CWn59vrg.js → c-like-FRDCqB2X.js} +1 -1
- package/dist/ui/assets/{c4Diagram-LMCZKHZV-D1Oh6k37.js → c4Diagram-LMCZKHZV-C4Vo5RAI.js} +1 -1
- package/dist/ui/assets/{cal-8i26_L39.js → cal-BibfnL8Q.js} +1 -1
- package/dist/ui/assets/{capnproto-CviwnFBf.js → capnproto-D4sJA0ax.js} +1 -1
- package/dist/ui/assets/{ceylon-CQyc4rWs.js → ceylon-DuI5ot57.js} +1 -1
- package/dist/ui/assets/channel-CviGbONW.js +1 -0
- package/dist/ui/assets/{chunk-2Q5K7J3B-oswPBwIn.js → chunk-2Q5K7J3B-C0UTs_LW.js} +1 -1
- package/dist/ui/assets/{chunk-32BRIVSS-B5pU_9b9.js → chunk-32BRIVSS-BMqPhehD.js} +1 -1
- package/dist/ui/assets/{chunk-5VM5RSS4-gvtfMc4w.js → chunk-5VM5RSS4-CKN4Vw1w.js} +1 -1
- package/dist/ui/assets/{chunk-EX3LRPZG-BkBaDMy4.js → chunk-EX3LRPZG-BYHH22fs.js} +1 -1
- package/dist/ui/assets/{chunk-JWPE2WC7-Ch-C75ar.js → chunk-JWPE2WC7-b55Vo5mo.js} +1 -1
- package/dist/ui/assets/{chunk-MOJQB5TN-BfYhj1jN.js → chunk-MOJQB5TN-CvtnHxi4.js} +1 -1
- package/dist/ui/assets/{chunk-RYQCIY6F-D8izfruP.js → chunk-RYQCIY6F-Bi9_eYfb.js} +1 -1
- package/dist/ui/assets/{chunk-V7JOEXUC-CbzHnW90.js → chunk-V7JOEXUC-C3ujZT8O.js} +1 -1
- package/dist/ui/assets/{chunk-VR4S4FIN-Dr4M5qZA.js → chunk-VR4S4FIN-D4pfDh-j.js} +1 -1
- package/dist/ui/assets/{chunk-XXDRQBXY-QE-R8dRe.js → chunk-XXDRQBXY-DQAjg3aO.js} +1 -1
- package/dist/ui/assets/classDiagram-OUVF2IWQ-BlFcpmEd.js +1 -0
- package/dist/ui/assets/classDiagram-v2-EOCWNBFH-BlFcpmEd.js +1 -0
- package/dist/ui/assets/{clean-DZeAtQ7H.js → clean-BVmfQBBV.js} +1 -1
- package/dist/ui/assets/{clojure-U4ebZ7NQ.js → clojure-BN3C1fnU.js} +1 -1
- package/dist/ui/assets/{clojure-repl-B4QSIzUI.js → clojure-repl-C7Gg0UPF.js} +1 -1
- package/dist/ui/assets/{cmake-UHexZySb.js → cmake-CTQFRyul.js} +1 -1
- package/dist/ui/assets/{coffeescript-Dg56H9Mr.js → coffeescript-DGWU3k3W.js} +1 -1
- package/dist/ui/assets/{c-CW6KPMeI.js → coq-Bv9CXGly.js} +1 -1
- package/dist/ui/assets/{cos-BL4DdyGh.js → cos-JXNeNyLn.js} +1 -1
- package/dist/ui/assets/{cose-bilkent-JH36ORCC-BHQslHP3.js → cose-bilkent-JH36ORCC-B2e-rPVN.js} +1 -1
- package/dist/ui/assets/{cpp-keZI-XAd.js → cpp-DVS4QZP-.js} +1 -1
- package/dist/ui/assets/{crmsh-DdXYVeeA.js → crmsh-CFD7lrxk.js} +1 -1
- package/dist/ui/assets/{crystal-C4AN0m0I.js → crystal-D7vS7dho.js} +1 -1
- package/dist/ui/assets/{csharp-COUyKsNR.js → csharp-BgeVxKaT.js} +1 -1
- package/dist/ui/assets/{csp-DBc-rgSJ.js → csp-CmAkjXvi.js} +1 -1
- package/dist/ui/assets/{css-B8m6O_Pw.js → css-DtEkZRCq.js} +1 -1
- package/dist/ui/assets/{cynefin-VYW2F7L2-B3L-WcKn.js → cynefin-VYW2F7L2-bhneX2QQ.js} +1 -1
- package/dist/ui/assets/{cynefinDiagram-TSTJHNR4-fzaM4qcZ.js → cynefinDiagram-TSTJHNR4-BvtRhsVM.js} +1 -1
- package/dist/ui/assets/{d-dgQN4Rko.js → d-ov1MlWJx.js} +1 -1
- package/dist/ui/assets/{dagre-VKFMJZFB-DJHj16mR.js → dagre-VKFMJZFB-nxN1qAKi.js} +1 -1
- package/dist/ui/assets/{dart-D2Y7LOq-.js → dart-DX6s604e.js} +1 -1
- package/dist/ui/assets/{delphi-DaGcSk5A.js → delphi-D0oU57Jt.js} +1 -1
- package/dist/ui/assets/{diagram-FQU43EPY-iZEZ1f-R.js → diagram-FQU43EPY-CWkdysy2.js} +1 -1
- package/dist/ui/assets/{diagram-G47NLZAW-rkQb3r-C.js → diagram-G47NLZAW-L7jPJ-r1.js} +1 -1
- package/dist/ui/assets/{diagram-NH7WQ7WH-B4Fy72tP.js → diagram-NH7WQ7WH-fhOp1mr9.js} +1 -1
- package/dist/ui/assets/{diagram-OA4YK3LP-BndmuIBq.js → diagram-OA4YK3LP-B7UMZ-5d.js} +1 -1
- package/dist/ui/assets/{diagram-WEI45ONY-CwlAiqOe.js → diagram-WEI45ONY-B-toJrZu.js} +1 -1
- package/dist/ui/assets/{diff-prcRV1Y3.js → diff-CAzYRr8i.js} +1 -1
- package/dist/ui/assets/{django-B1zIoGSx.js → django-DPFPMDLP.js} +1 -1
- package/dist/ui/assets/{dns-ZxI_aTwc.js → dns-kf25JjIl.js} +1 -1
- package/dist/ui/assets/{dockerfile-Dp_fT6E-.js → dockerfile-GP7x-Ptc.js} +1 -1
- package/dist/ui/assets/{dos-Cuu5c8vv.js → dos-DlXSYH18.js} +1 -1
- package/dist/ui/assets/{dsconfig-DcGTOhbS.js → dsconfig-DrXWPwZN.js} +1 -1
- package/dist/ui/assets/{dts-DCF8VaRk.js → dts-B9QdwGCS.js} +1 -1
- package/dist/ui/assets/{dust-DeCmZWMK.js → dust-CdplAbVJ.js} +1 -1
- package/dist/ui/assets/{ebnf-BHQQcuF_.js → ebnf-BdCAaKiH.js} +1 -1
- package/dist/ui/assets/{ebnfDiagram-CCIWWBDH-DJ_RuhTm.js → ebnfDiagram-CCIWWBDH-l1kXQDgJ.js} +1 -1
- package/dist/ui/assets/{elixir-BHmweJ4d.js → elixir-WekcTu8c.js} +1 -1
- package/dist/ui/assets/{elm-v76Hd2B3.js → elm-DKbQ6Ryz.js} +1 -1
- package/dist/ui/assets/{erDiagram-Q63AITRT-DVZkY5RZ.js → erDiagram-Q63AITRT-CCeU8uXM.js} +1 -1
- package/dist/ui/assets/{erb-xvWF5bfx.js → erb-DvQ2S9Q6.js} +1 -1
- package/dist/ui/assets/{erlang-CKBMURym.js → erlang-C4cAvWW8.js} +1 -1
- package/dist/ui/assets/{erlang-repl-BjcfXt3Z.js → erlang-repl-BMKmccqv.js} +1 -1
- package/dist/ui/assets/{excel-Cdrtxhml.js → excel-Cz9AeP71.js} +1 -1
- package/dist/ui/assets/{fix-CB-So5So.js → fix-BFQxvtLz.js} +1 -1
- package/dist/ui/assets/{flix-VM9AOrq6.js → flix-D3TgVgHZ.js} +1 -1
- package/dist/ui/assets/{flowDiagram-23GEKE2U-vyGW67Xm.js → flowDiagram-23GEKE2U-CWYmXYgW.js} +1 -1
- package/dist/ui/assets/{fortran-CcwJVO8H.js → fortran-CWmklLY8.js} +1 -1
- package/dist/ui/assets/{fsharp-DiATpw1u.js → fsharp-V2Eau__H.js} +1 -1
- package/dist/ui/assets/{gams-Csg9YNPz.js → gams-KwiGZby9.js} +1 -1
- package/dist/ui/assets/{ganttDiagram-NO4QXBWP-C2TRbwLw.js → ganttDiagram-NO4QXBWP-Bw1obkG5.js} +1 -1
- package/dist/ui/assets/{gauss-Bc4TC8Wh.js → gauss-CRI2FQhz.js} +1 -1
- package/dist/ui/assets/{gcode-Rig_2OoA.js → gcode-Bh0f80Zp.js} +1 -1
- package/dist/ui/assets/{gherkin-ByBU06QB.js → gherkin-DEjcfzYc.js} +1 -1
- package/dist/ui/assets/{gitGraphDiagram-IHSO6WYX-CEiqfFIF.js → gitGraphDiagram-IHSO6WYX-OfPpsImd.js} +1 -1
- package/dist/ui/assets/{glsl-C8D6y2Tn.js → glsl-BrYpeP6h.js} +1 -1
- package/dist/ui/assets/{gml-PHpGPHbT.js → gml-m818HPGO.js} +1 -1
- package/dist/ui/assets/{go-BL_o_3ez.js → go-BX431CyL.js} +1 -1
- package/dist/ui/assets/{golo-CWQ6dTUz.js → golo-D4m-zAId.js} +1 -1
- package/dist/ui/assets/{gradle-Y_I2KN2z.js → gradle-Cq6wabEA.js} +1 -1
- package/dist/ui/assets/{groovy-JnIv8p2l.js → groovy-TjcpUbQS.js} +1 -1
- package/dist/ui/assets/{haml-B8W_h6mZ.js → haml-DrCR34E5.js} +1 -1
- package/dist/ui/assets/{handlebars-DVm8mJuD.js → handlebars-CVS3O2t9.js} +1 -1
- package/dist/ui/assets/{haskell-DlDi2Ty7.js → haskell-B8q0nv1_.js} +1 -1
- package/dist/ui/assets/{haxe-CftFNVE-.js → haxe-DXPsSA4C.js} +1 -1
- package/dist/ui/assets/{hsp-C67xnq9C.js → hsp-CzpLpdV9.js} +1 -1
- package/dist/ui/assets/{htmlbars-CmJCm67U.js → htmlbars-Cs_-HclQ.js} +1 -1
- package/dist/ui/assets/{http-b-FPEcHP.js → http-CHD9pG0v.js} +1 -1
- package/dist/ui/assets/{hy-BWD3ncpN.js → hy-B-a7tYC4.js} +1 -1
- package/dist/ui/assets/{index-C7s1zgJb.js → index-CJEzcYeX.js} +5 -5
- package/dist/ui/assets/{index-D2UBwfSG.js → index-DBPwq3d-.js} +3 -3
- package/dist/ui/assets/{infoDiagram-FWYZ7A6U-C0Px17IN.js → infoDiagram-FWYZ7A6U-DNrZutb1.js} +1 -1
- package/dist/ui/assets/{inform7-C-OYaMO5.js → inform7-47bZAprM.js} +1 -1
- package/dist/ui/assets/{ini-CVyYmykw.js → ini-D00zSJOc.js} +1 -1
- package/dist/ui/assets/{irpf90-BcpjWXIz.js → irpf90-Cb5adfDu.js} +1 -1
- package/dist/ui/assets/{isbl-ZraBBeEr.js → isbl-NcFXKDCH.js} +1 -1
- package/dist/ui/assets/{ishikawaDiagram-FXEZZL3T-BjmTMgpO.js → ishikawaDiagram-FXEZZL3T-DodxL_A3.js} +1 -1
- package/dist/ui/assets/{java-D_mE2DT6.js → java-DdNdnIDI.js} +1 -1
- package/dist/ui/assets/{javascript-akXESsox.js → javascript-CauBsBfA.js} +1 -1
- package/dist/ui/assets/{jboss-cli-CFe3gTDt.js → jboss-cli-Ce_9aKRs.js} +1 -1
- package/dist/ui/assets/{journeyDiagram-5HDEW3XC-BpgJUvs6.js → journeyDiagram-5HDEW3XC-CaegxpYw.js} +1 -1
- package/dist/ui/assets/{json-sjN7AzRC.js → json-BKT_pfo1.js} +1 -1
- package/dist/ui/assets/{julia-BJJYbUMV.js → julia-bWGt_b_o.js} +1 -1
- package/dist/ui/assets/{julia-repl-BwruD8Ix.js → julia-repl-D-rjMsRC.js} +1 -1
- package/dist/ui/assets/{kanban-definition-HUTT4EX6-DFlE9edA.js → kanban-definition-HUTT4EX6-DocIVGMy.js} +1 -1
- package/dist/ui/assets/{kotlin-CAIQsLCF.js → kotlin-CW5ChHJw.js} +1 -1
- package/dist/ui/assets/{lasso-sU67h-5u.js → lasso-1z4Xsh4l.js} +1 -1
- package/dist/ui/assets/{latex-CVX-jP88.js → latex-DRw0gvLT.js} +1 -1
- package/dist/ui/assets/{ldif-DGM9xbFZ.js → ldif-CC6n1ZWZ.js} +1 -1
- package/dist/ui/assets/{leaf-AlB_zmwz.js → leaf-DtycGYP2.js} +1 -1
- package/dist/ui/assets/{less-CKwfEdZQ.js → less-DHfDdpLT.js} +1 -1
- package/dist/ui/assets/{lisp-CXYLaAPw.js → lisp-F7y5QBiG.js} +1 -1
- package/dist/ui/assets/{livecodeserver-C02fGGTS.js → livecodeserver-B4rL97ZE.js} +1 -1
- package/dist/ui/assets/{livescript-CBMa8QF_.js → livescript-C1A66vR3.js} +1 -1
- package/dist/ui/assets/{llvm-WXTIohTC.js → llvm-DrJc4jDQ.js} +1 -1
- package/dist/ui/assets/{lsl-4obd2U_I.js → lsl-ByygfQlb.js} +1 -1
- package/dist/ui/assets/{lua-DTSy-TjF.js → lua-C93sHZoB.js} +1 -1
- package/dist/ui/assets/{makefile-Bf2UEO0i.js → makefile-CymUCipv.js} +1 -1
- package/dist/ui/assets/{markdown-BgoGmFfJ.js → markdown-BLwVli7a.js} +1 -1
- package/dist/ui/assets/{mathematica-CSiA8KQh.js → mathematica-DMmVw4oA.js} +1 -1
- package/dist/ui/assets/{matlab-DoMvLsGB.js → matlab-DJPyR0-0.js} +1 -1
- package/dist/ui/assets/{maxima-BFO4dfZO.js → maxima-B_5tEBD-.js} +1 -1
- package/dist/ui/assets/{mel-DyBpmDxt.js → mel-B5AJmhET.js} +1 -1
- package/dist/ui/assets/{mercury-OL5G5uU6.js → mercury-DDm_HlP5.js} +1 -1
- package/dist/ui/assets/{mindmap-definition-LN4V7U3C-s-nUZuCs.js → mindmap-definition-LN4V7U3C-Ck5xDFhg.js} +1 -1
- package/dist/ui/assets/{mipsasm-KQwdm39j.js → mipsasm-BBf0KZxo.js} +1 -1
- package/dist/ui/assets/{mizar-BqndJ30I.js → mizar-BvkTEip4.js} +1 -1
- package/dist/ui/assets/{mojolicious-Bvc1uJd-.js → mojolicious-t81pYOLs.js} +1 -1
- package/dist/ui/assets/{monkey-Dl_gLm7-.js → monkey-B5URMcLy.js} +1 -1
- package/dist/ui/assets/{moonscript-BL6R6eAz.js → moonscript-Bbi3L3V5.js} +1 -1
- package/dist/ui/assets/{n1ql-C09iOJfQ.js → n1ql-DE8gguiN.js} +1 -1
- package/dist/ui/assets/{nginx-C7W01nBr.js → nginx-ytmzvrnA.js} +1 -1
- package/dist/ui/assets/{nim-Dj78szvD.js → nim-28PFAP2a.js} +1 -1
- package/dist/ui/assets/{nix-BOtGyPmd.js → nix-DPGZqLl2.js} +1 -1
- package/dist/ui/assets/{node-repl-19nZvZ4A.js → node-repl-77Ag73Mp.js} +1 -1
- package/dist/ui/assets/{nsis-ByCl1zIm.js → nsis-Bd-Jh2mn.js} +1 -1
- package/dist/ui/assets/{objectivec-BhdaT_Jr.js → objectivec-Dut0JGtJ.js} +1 -1
- package/dist/ui/assets/{ocaml-D_NXvSO7.js → ocaml-B8NbbL7d.js} +1 -1
- package/dist/ui/assets/{openscad-DOhagvnA.js → openscad-3haKn8_6.js} +1 -1
- package/dist/ui/assets/{oxygene-5BnkqMRH.js → oxygene-CzZcXgOW.js} +1 -1
- package/dist/ui/assets/{parser3-jSWlxi8m.js → parser3-B9_LTx13.js} +1 -1
- package/dist/ui/assets/{pegDiagram-2B236MQR-CideH-XT.js → pegDiagram-2B236MQR-CnkbIPdt.js} +1 -1
- package/dist/ui/assets/{perl-CfsqjZ4b.js → perl-CJHWWgIf.js} +1 -1
- package/dist/ui/assets/{pf-kOewxO29.js → pf-BpbQ2FKx.js} +1 -1
- package/dist/ui/assets/{pgsql-CXm2Xd-Z.js → pgsql-DNFfp1qF.js} +1 -1
- package/dist/ui/assets/{php-CRiA_dH8.js → php-BHGIfWOP.js} +1 -1
- package/dist/ui/assets/{php-template-ByMrxqSd.js → php-template-CajBP9Ht.js} +1 -1
- package/dist/ui/assets/{pieDiagram-ENE6RG2P-CJkCdB38.js → pieDiagram-ENE6RG2P-BOBkdC1f.js} +1 -1
- package/dist/ui/assets/{plaintext-BJx0R6A5.js → plaintext-CdRaKh_-.js} +1 -1
- package/dist/ui/assets/{pony-CozCHtz4.js → pony-BTFZduq1.js} +1 -1
- package/dist/ui/assets/{powershell-BT7gMMgn.js → powershell-gWcxiMpD.js} +1 -1
- package/dist/ui/assets/{processing-FOIxn_W_.js → processing-DbryYP4B.js} +1 -1
- package/dist/ui/assets/{profile-BsoUuD9w.js → profile-CHL6RTDR.js} +1 -1
- package/dist/ui/assets/{prolog-Bd3gvQ2N.js → prolog-CAz3V1M6.js} +1 -1
- package/dist/ui/assets/{properties-BWGFdny9.js → properties-BLvgyNqZ.js} +1 -1
- package/dist/ui/assets/{protobuf-pQSKoOOY.js → protobuf-C-bEtiAJ.js} +1 -1
- package/dist/ui/assets/{puppet-DnEN_mgS.js → puppet-67xqXQgg.js} +1 -1
- package/dist/ui/assets/{purebasic-BqoOGoRw.js → purebasic-DAwxmhyv.js} +1 -1
- package/dist/ui/assets/{python-repl-zqu5igFS.js → python-repl-BJmGMIGi.js} +1 -1
- package/dist/ui/assets/{python-TeVYomkE.js → python-z-wrDm9i.js} +1 -1
- package/dist/ui/assets/{q-CZC9Dltd.js → q-CDMPAvF9.js} +1 -1
- package/dist/ui/assets/{qml-ZNInP45Q.js → qml-CbE9R2YT.js} +1 -1
- package/dist/ui/assets/{quadrantDiagram-ABIIQ3AL-Dd7PwxsF.js → quadrantDiagram-ABIIQ3AL-BHAhzSkD.js} +1 -1
- package/dist/ui/assets/{r-B39DAmkC.js → r-B1k7RrWh.js} +1 -1
- package/dist/ui/assets/{railroadDiagram-RFXS5EU6-DtO5PVFZ.js → railroadDiagram-RFXS5EU6-CsQep5fB.js} +1 -1
- package/dist/ui/assets/{reasonml-B-ZWFJt_.js → reasonml-CghNJ9wO.js} +1 -1
- package/dist/ui/assets/{requirementDiagram-TGXJPOKE-DihF4OTj.js → requirementDiagram-TGXJPOKE-BTTRG_C-.js} +1 -1
- package/dist/ui/assets/{rib-CnGG0qMF.js → rib-BzZqpngB.js} +1 -1
- package/dist/ui/assets/{roboconf-Ewtfps4u.js → roboconf-Bn6vqIcm.js} +1 -1
- package/dist/ui/assets/{routeros-CPcmP1c7.js → routeros-CWiIB6Sc.js} +1 -1
- package/dist/ui/assets/{rsl-NbjWFbPH.js → rsl-8XzLd-ex.js} +1 -1
- package/dist/ui/assets/{ruby-DWDdy5yE.js → ruby-CMsox328.js} +1 -1
- package/dist/ui/assets/{ruleslanguage-Cv_DZe2r.js → ruleslanguage-sJ93c6T4.js} +1 -1
- package/dist/ui/assets/{rust-NZnsfER5.js → rust-q4W6ksGp.js} +1 -1
- package/dist/ui/assets/{sankeyDiagram-HTMAVEWB-D6i-Mzte.js → sankeyDiagram-HTMAVEWB-_xUP3uiO.js} +1 -1
- package/dist/ui/assets/{sas-C4wv0P6G.js → sas-JzGZkjB8.js} +1 -1
- package/dist/ui/assets/{scala-DUdTOIgx.js → scala-BBRUB1bT.js} +1 -1
- package/dist/ui/assets/{scheme-DEdFa14t.js → scheme-gFzNu8q5.js} +1 -1
- package/dist/ui/assets/{scilab-xY51J2bR.js → scilab-0XjfEPk4.js} +1 -1
- package/dist/ui/assets/{scss-BEYp1sXc.js → scss-CuET4vU_.js} +1 -1
- package/dist/ui/assets/{sequenceDiagram-DBY2YBRQ-njQlqy_J.js → sequenceDiagram-DBY2YBRQ-DYM-Lf_t.js} +1 -1
- package/dist/ui/assets/{shell-fq6bkhOw.js → shell-DozhgmQz.js} +1 -1
- package/dist/ui/assets/{sizeCapture-X5ZJPWSS-tLn70-Fb.js → sizeCapture-X5ZJPWSS-enn2ctEl.js} +1 -1
- package/dist/ui/assets/{smali-CsSAuSYg.js → smali-DCS5Fxk1.js} +1 -1
- package/dist/ui/assets/{smalltalk-DJ7zrd87.js → smalltalk-BHQ0G1rO.js} +1 -1
- package/dist/ui/assets/{sml-CnDwl0nH.js → sml-Bj9p_O7l.js} +1 -1
- package/dist/ui/assets/{sqf-Cc2SX4Zy.js → sqf-VjHINPVc.js} +1 -1
- package/dist/ui/assets/{sql-DUQA_V_4.js → sql-DNYdjhOa.js} +1 -1
- package/dist/ui/assets/{sql_more-BHoH-8oO.js → sql_more-DF9pwFii.js} +1 -1
- package/dist/ui/assets/{stan-D-7F5jH6.js → stan-DQ7LiXhT.js} +1 -1
- package/dist/ui/assets/{stata-xKD_DnDE.js → stata-4eQacDMD.js} +1 -1
- package/dist/ui/assets/{stateDiagram-2N3HPSRC-B4O8weor.js → stateDiagram-2N3HPSRC-CX-Qz4n7.js} +1 -1
- package/dist/ui/assets/stateDiagram-v2-6OUMAXLB-Ch54U9zs.js +1 -0
- package/dist/ui/assets/{step21-obc_kzQY.js → step21-BgYnjmFD.js} +1 -1
- package/dist/ui/assets/{stylus-CkAUSRd-.js → stylus-ZZ5CxZ05.js} +1 -1
- package/dist/ui/assets/{subunit-BDv8PGo1.js → subunit-Ci5aUEE2.js} +1 -1
- package/dist/ui/assets/{swift-CHsYyW-p.js → swift-DQJ4QPRG.js} +1 -1
- package/dist/ui/assets/{swimlanes-5IMT3BWC-DSr9Ty4A.js → swimlanes-5IMT3BWC-vO-7dG2V.js} +2 -2
- package/dist/ui/assets/swimlanesDiagram-G3AALYLV-DxwJcNf4.js +8 -0
- package/dist/ui/assets/{taggerscript-C_2JQgO9.js → taggerscript-DM07ScL_.js} +1 -1
- package/dist/ui/assets/{tap-Bi497Z2c.js → tap-C6aPKgww.js} +1 -1
- package/dist/ui/assets/{tcl-B1XMvLaD.js → tcl-DjtvddtN.js} +1 -1
- package/dist/ui/assets/{thrift-D9X0Hmmc.js → thrift-BoJuHfsC.js} +1 -1
- package/dist/ui/assets/{timeline-definition-FHXFAJF6-C4_gj50B.js → timeline-definition-FHXFAJF6-Cn7z-Bqh.js} +1 -1
- package/dist/ui/assets/{tp-CJG4Odbx.js → tp-7mrfAfpj.js} +1 -1
- package/dist/ui/assets/{twig-flj72_wc.js → twig-DOOUfGqf.js} +1 -1
- package/dist/ui/assets/{typescript-CWPwVoLd.js → typescript-BbC9hUFK.js} +1 -1
- package/dist/ui/assets/{vala-LuCNWNuU.js → vala-XjKwsdD0.js} +1 -1
- package/dist/ui/assets/{vbnet-CGUT6ss0.js → vbnet-Da3MfWx9.js} +1 -1
- package/dist/ui/assets/{vbscript-CNiUBJhn.js → vbscript-DT_81k7v.js} +1 -1
- package/dist/ui/assets/{vbscript-html-CJGgjjbc.js → vbscript-html-DUFh3J5N.js} +1 -1
- package/dist/ui/assets/{vennDiagram-L72KCM5P-BxcAUnYo.js → vennDiagram-L72KCM5P-BnjZCady.js} +1 -1
- package/dist/ui/assets/{verilog-C4f9ZBTK.js → verilog-D5Okzav9.js} +1 -1
- package/dist/ui/assets/{vhdl-CyDQIZve.js → vhdl-_hcd5jXC.js} +1 -1
- package/dist/ui/assets/{vim-XAUBqa0M.js → vim-BuKTsAic.js} +1 -1
- package/dist/ui/assets/{wardleyDiagram-EHGQE667-DlwSH77q.js → wardleyDiagram-EHGQE667-Bgp49v0-.js} +1 -1
- package/dist/ui/assets/{x86asm-Cp6vHuUx.js → x86asm-DWOIgEnP.js} +1 -1
- package/dist/ui/assets/{xl-BHgDofIM.js → xl-D6TFf1q5.js} +1 -1
- package/dist/ui/assets/{xml-QloVn4s_.js → xml-_5JZFtHD.js} +1 -1
- package/dist/ui/assets/{xquery-spJZLmyM.js → xquery-BC0pvaic.js} +1 -1
- package/dist/ui/assets/{xychartDiagram-FW5EYKEG-BxGVZcnb.js → xychartDiagram-FW5EYKEG-DmyzmXyI.js} +1 -1
- package/dist/ui/assets/{yaml-CUju4iq0.js → yaml-CLzRjl8_.js} +1 -1
- package/dist/ui/assets/{zephir-ChVpmD0Y.js → zephir-nZ6mLYuU.js} +1 -1
- package/dist/ui/index.html +1 -1
- package/package.json +1 -1
- package/dist/docs/assets/chunks/@localSearchIndexroot.IHxQqfJH.js +0 -1
- package/dist/ui/assets/channel-Da2MvpNG.js +0 -1
- package/dist/ui/assets/classDiagram-OUVF2IWQ-mHUiWjcC.js +0 -1
- package/dist/ui/assets/classDiagram-v2-EOCWNBFH-mHUiWjcC.js +0 -1
- package/dist/ui/assets/stateDiagram-v2-6OUMAXLB-CO881_ht.js +0 -1
- package/dist/ui/assets/swimlanesDiagram-G3AALYLV-DFMCDs8b.js +0 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-DA-rfuFy.js","assets/html-pp8916En.js","assets/javascript-wDzz0qaB.js","assets/css-CLj8gQPS.js","assets/angular-ts-BrjP3tb8.js","assets/scss-D5BDwBP9.js","assets/apl-CORt7UWP.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-HNnZUWAn.js","assets/typescript-BPQ3VLAy.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-2xfisSek.js","assets/html-derivative-DlHx6ybY.js","assets/sql-CRqJ_cUM.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-nBiQ_Alo.js","assets/coffee-Ch7k5sss.js","assets/cpp-UfJy6YNI.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-DGywbUpC.js","assets/shellscript-Yzrsuije.js","assets/edge-FbVlp4U3.js","assets/elixir-CkH2-t6x.js","assets/elm-DbKCFpqz.js","assets/erb-Dm6A9KJ5.js","assets/ruby-DyJCeAvU.js","assets/haml-D5jkg6IW.js","assets/graphql-ChdNCCLP.js","assets/jsx-g9-lgVsj.js","assets/lua-BaeVxFsk.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-CkoXwp7k.js","assets/fortran-free-form-BxgE0vQu.js","assets/fsharp-CXgrBDvD.js","assets/gdresource-BOOCDP_w.js","assets/gdshader-DkwncUOv.js","assets/gdscript-C5YyOfLZ.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-ByusRIyA.js","assets/glimmer-ts-BfAWNZQY.js","assets/hack-DbPARsA_.js","assets/handlebars-BpdQsYii.js","assets/http-jrhK8wxY.js","assets/hurl-irOxFIW8.js","assets/csv-fuZLfV_i.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-f2NsQr07.js","assets/jison-wvAkD_A8.js","assets/julia-D7OTSIA_.js","assets/r-Dspwwk_N.js","assets/just-CUsbIsdP.js","assets/perl-B9cMNwum.js","assets/latex-CaSxy8MP.js","assets/tex-idrVyKtj.js","assets/liquid-C0sCDyMI.js","assets/marko-DjSrsDqO.js","assets/less-B1dDrJ26.js","assets/mdc-DTYItulj.js","assets/nextflow-C-mBbutL.js","assets/nextflow-groovy-vE_lwT2v.js","assets/nginx-BpAMiNFr.js","assets/nim-BIad80T-.js","assets/php-Csjmro_R.js","assets/pug-DKIMFp6K.js","assets/qml-3beO22l8.js","assets/razor-BjBPvh-w.js","assets/csharp-DSvCPggb.js","assets/rst-CpCqk9r5.js","assets/cmake-D1j8_8rp.js","assets/sas-DEy46yEz.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-8wufbnw4.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-DI20mbqo.js","assets/surrealql-Bq5Q-fJD.js","assets/svelte-Cy7k_4gC.js","assets/templ-DhtptRzy.js","assets/go-C27-OAKa.js","assets/ts-tags-D351s5mN.js","assets/twig-CW1WmMYd.js","assets/vue-D2xRrEX4.js","assets/vue-html-AaS7Mt5G.js","assets/vue-vine-BoDAl6tE.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js","assets/dagre-VKFMJZFB-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-DA-rfuFy.js","assets/html-pp8916En.js","assets/javascript-wDzz0qaB.js","assets/css-CLj8gQPS.js","assets/angular-ts-BrjP3tb8.js","assets/scss-D5BDwBP9.js","assets/apl-CORt7UWP.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-HNnZUWAn.js","assets/typescript-BPQ3VLAy.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-2xfisSek.js","assets/html-derivative-DlHx6ybY.js","assets/sql-CRqJ_cUM.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-nBiQ_Alo.js","assets/coffee-Ch7k5sss.js","assets/cpp-UfJy6YNI.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-DGywbUpC.js","assets/shellscript-Yzrsuije.js","assets/edge-FbVlp4U3.js","assets/elixir-CkH2-t6x.js","assets/elm-DbKCFpqz.js","assets/erb-Dm6A9KJ5.js","assets/ruby-DyJCeAvU.js","assets/haml-D5jkg6IW.js","assets/graphql-ChdNCCLP.js","assets/jsx-g9-lgVsj.js","assets/lua-BaeVxFsk.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-CkoXwp7k.js","assets/fortran-free-form-BxgE0vQu.js","assets/fsharp-CXgrBDvD.js","assets/gdresource-BOOCDP_w.js","assets/gdshader-DkwncUOv.js","assets/gdscript-C5YyOfLZ.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-ByusRIyA.js","assets/glimmer-ts-BfAWNZQY.js","assets/hack-DbPARsA_.js","assets/handlebars-BpdQsYii.js","assets/http-jrhK8wxY.js","assets/hurl-irOxFIW8.js","assets/csv-fuZLfV_i.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-f2NsQr07.js","assets/jison-wvAkD_A8.js","assets/julia-D7OTSIA_.js","assets/r-Dspwwk_N.js","assets/just-CUsbIsdP.js","assets/perl-B9cMNwum.js","assets/latex-CaSxy8MP.js","assets/tex-idrVyKtj.js","assets/liquid-C0sCDyMI.js","assets/marko-DjSrsDqO.js","assets/less-B1dDrJ26.js","assets/mdc-DTYItulj.js","assets/nextflow-C-mBbutL.js","assets/nextflow-groovy-vE_lwT2v.js","assets/nginx-BpAMiNFr.js","assets/nim-BIad80T-.js","assets/php-Csjmro_R.js","assets/pug-DKIMFp6K.js","assets/qml-3beO22l8.js","assets/razor-BjBPvh-w.js","assets/csharp-DSvCPggb.js","assets/rst-CpCqk9r5.js","assets/cmake-D1j8_8rp.js","assets/sas-DEy46yEz.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-8wufbnw4.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-DI20mbqo.js","assets/surrealql-Bq5Q-fJD.js","assets/svelte-Cy7k_4gC.js","assets/templ-DhtptRzy.js","assets/go-C27-OAKa.js","assets/ts-tags-D351s5mN.js","assets/twig-CW1WmMYd.js","assets/vue-D2xRrEX4.js","assets/vue-html-AaS7Mt5G.js","assets/vue-vine-BoDAl6tE.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js","assets/dagre-VKFMJZFB-nxN1qAKi.js","assets/chunk-RYQCIY6F-Bi9_eYfb.js","assets/graph-C2PyVmSI.js","assets/map-BQHxRNoK.js","assets/layout-HEHzrzvT.js","assets/swimlanes-5IMT3BWC-vO-7dG2V.js","assets/cose-bilkent-JH36ORCC-B2e-rPVN.js","assets/cytoscape.esm-CUqq0XTU.js","assets/c4Diagram-LMCZKHZV-C4Vo5RAI.js","assets/chunk-32BRIVSS-BMqPhehD.js","assets/flowDiagram-23GEKE2U-CWYmXYgW.js","assets/chunk-5VM5RSS4-CKN4Vw1w.js","assets/chunk-XXDRQBXY-DQAjg3aO.js","assets/chunk-VR4S4FIN-D4pfDh-j.js","assets/channel-CviGbONW.js","assets/swimlanesDiagram-G3AALYLV-DxwJcNf4.js","assets/erDiagram-Q63AITRT-CCeU8uXM.js","assets/gitGraphDiagram-IHSO6WYX-OfPpsImd.js","assets/chunk-2Q5K7J3B-C0UTs_LW.js","assets/chunk-JWPE2WC7-b55Vo5mo.js","assets/cynefin-VYW2F7L2-bhneX2QQ.js","assets/infoDiagram-FWYZ7A6U-DNrZutb1.js","assets/pieDiagram-ENE6RG2P-BOBkdC1f.js","assets/arc-Bi_rJJly.js","assets/requirementDiagram-TGXJPOKE-BTTRG_C-.js","assets/sequenceDiagram-DBY2YBRQ-DYM-Lf_t.js","assets/classDiagram-OUVF2IWQ-BlFcpmEd.js","assets/chunk-V7JOEXUC-C3ujZT8O.js","assets/classDiagram-v2-EOCWNBFH-BlFcpmEd.js","assets/stateDiagram-2N3HPSRC-CX-Qz4n7.js","assets/chunk-EX3LRPZG-BYHH22fs.js","assets/stateDiagram-v2-6OUMAXLB-Ch54U9zs.js","assets/journeyDiagram-5HDEW3XC-CaegxpYw.js","assets/timeline-definition-FHXFAJF6-Cn7z-Bqh.js","assets/mindmap-definition-LN4V7U3C-Ck5xDFhg.js","assets/kanban-definition-HUTT4EX6-DocIVGMy.js","assets/diagram-NH7WQ7WH-fhOp1mr9.js","assets/diagram-WEI45ONY-B-toJrZu.js","assets/blockDiagram-677ZJIJ3-Dusa5zr8.js","assets/diagram-OA4YK3LP-B7UMZ-5d.js","assets/architectureDiagram-ZJ3FMSHR-D3rUGwDS.js","assets/diagram-FQU43EPY-CWkdysy2.js","assets/diagram-G47NLZAW-L7jPJ-r1.js","assets/wardleyDiagram-EHGQE667-Bgp49v0-.js","assets/cynefinDiagram-TSTJHNR4-BvtRhsVM.js","assets/railroadDiagram-RFXS5EU6-CsQep5fB.js","assets/chunk-MOJQB5TN-CvtnHxi4.js","assets/ebnfDiagram-CCIWWBDH-l1kXQDgJ.js","assets/abnfDiagram-VRR7QNED-B0E8zzLB.js","assets/pegDiagram-2B236MQR-CnkbIPdt.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
var Ame=Object.defineProperty;var Ime=Object.getPrototypeOf;var Rme=Reflect.get;var V4=e=>{throw TypeError(e)};var Lme=(e,t,n)=>t in e?Ame(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ae=(e,t,n)=>Lme(e,typeof t!="symbol"?t+"":t,n),Ik=(e,t,n)=>t.has(e)||V4("Cannot "+n);var Co=(e,t,n)=>(Ik(e,t,"read from private field"),n?n.call(e):t.get(e)),ad=(e,t,n)=>t.has(e)?V4("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ss=(e,t,n,r)=>(Ik(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Rk=(e,t,n)=>(Ik(e,t,"access private method"),n);var W4=(e,t,n)=>Rme(Ime(e),n,t);function DK(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var er=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var FK={exports:{}},ME={},jK={exports:{}},Tn={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react.production.min.js
|
|
@@ -593,7 +593,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
593
593
|
`})]})}function Kit(){const{t:e}=fi("config"),[t,n]=v.useState(null),[r,i]=v.useState("success"),[o,a]=v.useState(null),[s,l]=v.useState(!1);v.useEffect(()=>{Ooe().then(u=>{"configPath"in u&&a(u.configPath)}).catch(()=>{})},[]);const c=async()=>{l(!0),n(null);try{const u=await Git();n(u.message),i(u.success?"success":"error"),setTimeout(()=>n(null),5e3)}catch{n(e("message.restartFailed")),i("error")}finally{l(!1)}};return V.jsxs("div",{children:[V.jsxs("div",{className:"mb-4",children:[V.jsx("h4",{className:"text-xs font-medium mb-2 text-text-muted",children:e("section.server")}),V.jsxs("div",{className:"space-y-2",children:[V.jsx(Hw,{color:ga.input,children:V.jsxs("div",{className:"flex items-center justify-between",children:[V.jsxs("div",{children:[V.jsx("div",{className:"text-xs font-medium text-text-muted mb-1",children:e("common:label.address")}),V.jsx("div",{className:"text-text-primary font-mono text-xs",children:"http://localhost:9527"})]}),V.jsx(Vr,{title:e("action.syncClaudeConfig"),children:V.jsx(dn,{type:"text",size:"small",icon:V.jsx(zrt,{size:14}),loading:s,onClick:c,className:"!p-0 flex items-center"})})]})}),V.jsxs(Hw,{color:ga.output,children:[V.jsx("div",{className:"text-xs font-medium text-text-muted mb-1",children:e("common:label.configPath")}),V.jsx("div",{className:"text-text-primary font-mono text-xs break-all",children:o?o.replace(/\/config\.json$/,""):"~/.cc-monitoring"})]})]})]}),t&&V.jsx("div",{className:`p-2 mb-2 rounded ${r==="success"?"bg-success/10 text-success":"bg-error/10 text-error"}`,children:t})]})}const _V={GET:{bg:"rgba(16, 185, 129, 0.2)",text:"#10B981",border:"rgba(16, 185, 129, 0.3)"},POST:{bg:"rgba(59, 130, 246, 0.2)",text:"#3B82F6",border:"rgba(59, 130, 246, 0.3)"},PUT:{bg:"rgba(245, 158, 11, 0.2)",text:"#F59E0B",border:"rgba(245, 158, 11, 0.3)"},PATCH:{bg:"rgba(245, 158, 11, 0.2)",text:"#F59E0B",border:"rgba(245, 158, 11, 0.3)"},DELETE:{bg:"rgba(239, 68, 68, 0.2)",text:"#EF4444",border:"rgba(239, 68, 68, 0.3)"},HEAD:{bg:"rgba(148, 163, 184, 0.2)",text:"#94A3B8",border:"rgba(148, 163, 184, 0.3)"},OPTIONS:{bg:"rgba(148, 163, 184, 0.2)",text:"#94A3B8",border:"rgba(148, 163, 184, 0.3)"}},Xit={bg:"rgba(16, 185, 129, 0.2)",text:"#10B981",border:"rgba(16, 185, 129, 0.3)"},Yit={bg:"rgba(239, 68, 68, 0.2)",text:"#EF4444",border:"rgba(239, 68, 68, 0.3)"};function Qit({method:e,statusCode:t}){const n=t!==void 0?t>=200&&t<300?Xit:Yit:_V[e.toUpperCase()]??_V.HEAD;return V.jsx("span",{className:"px-2 py-0.5 text-xs font-semibold rounded border",style:{backgroundColor:n.bg,color:n.text,borderColor:n.border},children:e.toUpperCase()})}function Zit({model:e}){return V.jsx("span",{className:"px-2 py-0.5 text-xs font-semibold rounded border",style:{backgroundColor:"rgba(168, 85, 247, 0.2)",color:"#A855F7",borderColor:"rgba(168, 85, 247, 0.3)"},children:e})}function Jit({usage:e}){const t={input:e.input_tokens??0,output:e.output_tokens??0,cacheRead:e.cache_read_input_tokens??0,cacheCreate:e.cache_creation_input_tokens??0},n=Math.max(t.input,t.output,t.cacheRead,t.cacheCreate,1),r=16,i=2,o=s=>s===0?i:Math.max(i,s/n*r),a=[{key:"input",label:"输入",value:t.input,color:ga.input},{key:"output",label:"输出",value:t.output,color:ga.output},{key:"cacheRead",label:"缓存命中",value:t.cacheRead,color:ga.cacheRead},{key:"cacheCreate",label:"缓存创建",value:t.cacheCreate,color:ga.cacheCreate}];return V.jsx("div",{className:"flex items-end gap-1 ml-2",children:a.map(s=>V.jsxs("div",{className:"flex flex-col items-center group relative",children:[V.jsx("div",{className:"w-3 rounded-t transition-all duration-300",style:{height:`${o(s.value)}px`,backgroundColor:s.color}}),V.jsxs("div",{className:`absolute bottom-full mb-1 left-1/2 -translate-x-1/2
|
|
594
594
|
bg-bg-secondary border border-border rounded px-2 py-1
|
|
595
595
|
text-xs text-text-primary whitespace-nowrap
|
|
596
|
-
opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none z-10`,children:[s.label,": ",s.value]})]},s.key))})}function eot({usage:e}){return!e||!e.input_tokens&&!e.output_tokens&&!e.cache_read_input_tokens&&!e.cache_creation_input_tokens?V.jsx("span",{className:"text-text-muted text-xs",children:"--"}):V.jsx(Jit,{usage:e})}const kV=100,TV=500,tot=5*6e4;function $V(e,t){return e.status==="pending"&&t-new Date(e.timestamp).getTime()>tot}const OV=["#3B82F6","#10B981","#F59E0B","#06B6D4","#8B5CF6","#EC4899","#14B8A6","#6366F1"];function not(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)|0;return OV[Math.abs(t)%OV.length]}function rot(e,t){return e.length>t?`${e.slice(0,t)}...`:e}function iot({initialRequests:e,onCompare:t,onRowClick:n,selectedRowKeys:r,onSelectedRowKeysChange:i,loading:o}){const[a,s]=v.useState(e),[l,c]=v.useState(kV),[u,d]=v.useState(!1),[f,h]=v.useState(!0),[,p]=v.useState(0);v.useEffect(()=>{const S=setInterval(()=>p(C=>C+1),3e4);return()=>clearInterval(S)},[]);const g=Date.now();v.useMemo(()=>{s(S=>{const C=new Set(e.filter(O=>O.pendingId).map(O=>O.pendingId));let w=C.size>0?S.filter(O=>!C.has(O.compositeId)):S;const E=new Set(w.map(O=>O.compositeId)),_=e.filter(O=>!E.has(O.compositeId));if(_.length===0&&C.size===0)return S;const P=[..._,...w].sort((O,T)=>new Date(T.timestamp).getTime()-new Date(O.timestamp).getTime());return P.length>TV?P.slice(0,TV):P})},[e]);const y=v.useMemo(()=>{const S=new Map;a.forEach(w=>{const E=S.get(w.sessionId)||[];E.push(w),S.set(w.sessionId,E)});const C=new Map;return S.forEach(w=>{w.slice().sort((E,_)=>new Date(E.timestamp).getTime()-new Date(_.timestamp).getTime()).forEach((E,_)=>C.set(E.compositeId,_+1))}),a.map(w=>({...w,sequence:C.get(w.compositeId)}))},[a]).slice(0,l),b=v.useCallback(async()=>{if(!(u||!f)){d(!0);try{const S=a[a.length-1],C=S==null?void 0:S.timestamp,w=await YR(kV,C);w.requests.length>0&&(s(E=>{const _=new Set(E.map(P=>P.compositeId)),k=w.requests.filter(P=>!_.has(P.compositeId));return[...E,...k]}),c(E=>E+w.requests.length)),h(w.hasMore)}finally{d(!1)}}},[u,f,a]),x=[{title:"",key:"checkbox",width:40,fixed:"left",align:"center",render:(S,C)=>V.jsx(Du,{checked:r.includes(C.compositeId),onClick:w=>w.stopPropagation(),onChange:w=>{if(w.target.checked){const E=[...r,C.compositeId];i(E.slice(-2))}else i(r.filter(E=>E!==C.compositeId))}})},{title:"Session ID",dataIndex:"sessionId",key:"sessionId",width:200,render:(S,C)=>{const w=not(S);return V.jsxs("div",{className:"flex items-center gap-2",style:{minWidth:0},children:[C.status==="pending"&&!$V(C,g)&&V.jsx(Vrt,{size:14,className:"flex-shrink-0 animate-spin",style:{color:w}}),V.jsx("span",{className:"text-xs font-mono",style:{color:w,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:130,display:"inline-block"},title:S,children:rot(S,16)})]})}},{title:"时间",dataIndex:"timestamp",key:"timestamp",width:160,render:S=>V.jsx("span",{className:"text-xs",style:{color:"var(--color-text-muted)"},children:ID(S,"monthDayTime")})},{title:"Token",key:"token",width:140,render:(S,C)=>V.jsx(eot,{usage:C.usage})},{title:"模型",dataIndex:"model",key:"model",width:240,render:S=>S?V.jsx(Zit,{model:S}):null},{title:"请求端点",dataIndex:"baseUrl",key:"baseUrl",width:220,ellipsis:!0,render:S=>V.jsx("span",{className:"text-xs",style:{color:"var(--color-text-secondary)"},title:S,children:S||"-"})},{title:"UA",dataIndex:"userAgent",key:"userAgent",width:180,ellipsis:!0,render:S=>V.jsx("span",{className:"text-xs",style:{color:"var(--color-text-secondary)"},title:S,children:S||"-"})},{title:"耗时",dataIndex:"responseTime",key:"responseTime",width:80,render:S=>V.jsxs("span",{className:"text-xs",style:{color:"var(--color-text-muted)"},children:[(S/1e3).toFixed(1),"s"]})},{title:"状态码",dataIndex:"statusCode",key:"statusCode",width:80,render:(S,C)=>{if($V(C,g)||!!C.closedAt&&(S===0||S>=200&&S<300))return V.jsx(Vr,{title:C.error||"请求中断(原因未知)",children:V.jsx("span",{className:"text-xs font-medium",style:{color:"var(--color-warning)"},children:"中断"})});const E=S>=200&&S<300?"var(--color-success)":"var(--color-error)";return V.jsx("span",{className:"text-xs font-medium",style:{color:E},children:S})}},{title:"Method",dataIndex:"method",key:"method",width:100,render:(S,C)=>V.jsx(Qit,{method:C.method,statusCode:C.statusCode})},{title:"URL",dataIndex:"path",key:"path",ellipsis:!0,render:S=>V.jsx("span",{className:"text-xs",style:{color:"var(--color-text-secondary)"},children:S})},{title:"机器码",dataIndex:"machineId",key:"machineId",width:180,render:S=>V.jsx("span",{className:"text-xs font-mono",style:{color:"var(--color-text-muted)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:160,display:"inline-block"},title:S,children:S||"-"})}];return V.jsx("div",{className:"flex flex-col",children:V.jsx(Ic,{dataSource:y,columns:x,pagination:!1,loading:o,onRow:S=>({onClick:()=>n(S),className:"cursor-pointer"}),rowKey:"compositeId",size:"small",scroll:{x:1660,y:"calc(100vh - 200px)"},tableLayout:"auto",sticky:!0,footer:()=>V.jsxs("div",{className:"flex justify-end gap-3 py-4 px-4 border-t",style:{borderColor:"var(--color-border)"},children:[V.jsx(dn,{type:"primary",icon:V.jsx(Brt,{size:16}),disabled:r.length!==2,onClick:()=>t(r),children:"对比"}),f&&V.jsx(dn,{loading:u,onClick:b,variant:"outlined",children:"加载更多"})]})})})}var oot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]},name:"api",theme:"outlined"},aot=function(t,n){return v.createElement(cn,_e({},t,{ref:n,icon:oot}))},Poe=v.forwardRef(aot),sot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"},lot=function(t,n){return v.createElement(cn,_e({},t,{ref:n,icon:sot}))},cot=v.forwardRef(lot),uot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},dot=function(t,n){return v.createElement(cn,_e({},t,{ref:n,icon:uot}))},fot=v.forwardRef(dot),hot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},pot=function(t,n){return v.createElement(cn,_e({},t,{ref:n,icon:hot}))},got=v.forwardRef(pot),mot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 161H699.2c-49.1 0-97.1 14.1-138.4 40.7L512 233l-48.8-31.3A255.2 255.2 0 00324.8 161H96c-17.7 0-32 14.3-32 32v568c0 17.7 14.3 32 32 32h228.8c49.1 0 97.1 14.1 138.4 40.7l44.4 28.6c1.3.8 2.8 1.3 4.3 1.3s3-.4 4.3-1.3l44.4-28.6C602 807.1 650.1 793 699.2 793H928c17.7 0 32-14.3 32-32V193c0-17.7-14.3-32-32-32zM324.8 721H136V233h188.8c35.4 0 69.8 10.1 99.5 29.2l48.8 31.3 6.9 4.5v462c-47.6-25.6-100.8-39-155.2-39zm563.2 0H699.2c-54.4 0-107.6 13.4-155.2 39V298l6.9-4.5 48.8-31.3c29.7-19.1 64.1-29.2 99.5-29.2H888v488zM396.9 361H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm223.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c0-4.1-3.2-7.5-7.1-7.5H627.1c-3.9 0-7.1 3.4-7.1 7.5zM396.9 501H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm416 0H627.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5z"}}]},name:"read",theme:"outlined"},vot=function(t,n){return v.createElement(cn,_e({},t,{ref:n,icon:mot}))},yot=v.forwardRef(vot),bot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"robot",theme:"outlined"},xot=function(t,n){return v.createElement(cn,_e({},t,{ref:n,icon:bot}))},PV=v.forwardRef(xot),Cot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"},Sot=function(t,n){return v.createElement(cn,_e({},t,{ref:n,icon:Cot}))},wot=v.forwardRef(Sot),Eot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 01144-53.5L537 318.9a32.05 32.05 0 000 45.3l124.5 124.5a32.05 32.05 0 0045.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z"}}]},name:"tool",theme:"outlined"},_ot=function(t,n){return v.createElement(cn,_e({},t,{ref:n,icon:Eot}))},kot=v.forwardRef(_ot),Tot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},$ot=function(t,n){return v.createElement(cn,_e({},t,{ref:n,icon:Tot}))},Oot=v.forwardRef($ot);function Aoe({tabs:e,defaultTab:t,children:n}){var o;const[r,i]=v.useState(t??((o=e[0])==null?void 0:o.id));return V.jsxs("div",{children:[V.jsx("div",{className:"flex border-b border-border mb-3",children:e.map(a=>V.jsx("button",{onClick:()=>i(a.id),className:`px-4 py-2 text-sm transition-colors ${r===a.id?"text-text-primary border-b-2 border-primary bg-bg-primary":"text-text-muted hover:text-text-primary hover:bg-bg-secondary"}`,children:a.label},a.id))}),V.jsx("div",{className:"p-2",children:n[r]})]})}function Ioe(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const n=e[t],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&Ioe(n)}),e}let AV=class{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function Roe(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function gu(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const Pot="</span>",IV=e=>!!e.scope,Aot=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${t}${e}`};class Iot{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=Roe(t)}openNode(t){if(!IV(t))return;const n=Aot(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){IV(t)&&(this.buffer+=Pot)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const RV=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class RD{constructor(){this.rootNode=RV(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const n=RV({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{RD._collapse(n)}))}}class Rot extends RD{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,n){const r=t.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new Iot(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function N0(e){return e?typeof e=="string"?e:e.source:null}function Loe(e){return Uf("(?=",e,")")}function Lot(e){return Uf("(?:",e,")*")}function Mot(e){return Uf("(?:",e,")?")}function Uf(...e){return e.map(n=>N0(n)).join("")}function Not(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function LD(...e){return"("+(Not(e).capture?"":"?:")+e.map(r=>N0(r)).join("|")+")"}function Moe(e){return new RegExp(e.toString()+"|").exec("").length-1}function Bot(e,t){const n=e&&e.exec(t);return n&&n.index===0}const Dot=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function MD(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;const i=n;let o=N0(r),a="";for(;o.length>0;){const s=Dot.exec(o);if(!s){a+=o;break}a+=o.substring(0,s.index),o=o.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?a+="\\"+String(Number(s[1])+i):(a+=s[0],s[0]==="("&&n++)}return a}).map(r=>`(${r})`).join(t)}const Fot=/\b\B/,Noe="[a-zA-Z]\\w*",ND="[a-zA-Z_]\\w*",Boe="\\b\\d+(\\.\\d+)?",Doe="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Foe="\\b(0b[01]+)",jot="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",zot=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=Uf(t,/.*\b/,e.binary,/\b.*/)),gu({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},B0={begin:"\\\\[\\s\\S]",relevance:0},Hot={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[B0]},Vot={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[B0]},Wot={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},k_=function(e,t,n={}){const r=gu({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=LD("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Uf(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},Uot=k_("//","$"),qot=k_("/\\*","\\*/"),Got=k_("#","$"),Kot={scope:"number",begin:Boe,relevance:0},Xot={scope:"number",begin:Doe,relevance:0},Yot={scope:"number",begin:Foe,relevance:0},Qot={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[B0,{begin:/\[/,end:/\]/,relevance:0,contains:[B0]}]},Zot={scope:"title",begin:Noe,relevance:0},Jot={scope:"title",begin:ND,relevance:0},eat={begin:"\\.\\s*"+ND,relevance:0},tat=function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})};var t1=Object.freeze({__proto__:null,APOS_STRING_MODE:Hot,BACKSLASH_ESCAPE:B0,BINARY_NUMBER_MODE:Yot,BINARY_NUMBER_RE:Foe,COMMENT:k_,C_BLOCK_COMMENT_MODE:qot,C_LINE_COMMENT_MODE:Uot,C_NUMBER_MODE:Xot,C_NUMBER_RE:Doe,END_SAME_AS_BEGIN:tat,HASH_COMMENT_MODE:Got,IDENT_RE:Noe,MATCH_NOTHING_RE:Fot,METHOD_GUARD:eat,NUMBER_MODE:Kot,NUMBER_RE:Boe,PHRASAL_WORDS_MODE:Wot,QUOTE_STRING_MODE:Vot,REGEXP_MODE:Qot,RE_STARTERS_RE:jot,SHEBANG:zot,TITLE_MODE:Zot,UNDERSCORE_IDENT_RE:ND,UNDERSCORE_TITLE_MODE:Jot});function nat(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function rat(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function iat(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=nat,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function oat(e,t){Array.isArray(e.illegal)&&(e.illegal=LD(...e.illegal))}function aat(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function sat(e,t){e.relevance===void 0&&(e.relevance=1)}const lat=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=Uf(n.beforeMatch,Loe(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},cat=["of","and","for","in","not","or","if","then","parent","list","value"],uat="keyword";function joe(e,t,n=uat){const r=Object.create(null);return typeof e=="string"?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(o){Object.assign(r,joe(e[o],t,o))}),r;function i(o,a){t&&(a=a.map(s=>s.toLowerCase())),a.forEach(function(s){const l=s.split("|");r[l[0]]=[o,dat(l[0],l[1])]})}}function dat(e,t){return t?Number(t):fat(e)?0:1}function fat(e){return cat.includes(e.toLowerCase())}const LV={},Zd=e=>{console.error(e)},MV=(e,...t)=>{console.log(`WARN: ${e}`,...t)},ph=(e,t)=>{LV[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),LV[`${e}/${t}`]=!0)},Vw=new Error;function zoe(e,t,{key:n}){let r=0;const i=e[n],o={},a={};for(let s=1;s<=t.length;s++)a[s+r]=i[s],o[s+r]=!0,r+=Moe(t[s-1]);e[n]=a,e[n]._emit=o,e[n]._multi=!0}function hat(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Zd("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Vw;if(typeof e.beginScope!="object"||e.beginScope===null)throw Zd("beginScope must be object"),Vw;zoe(e,e.begin,{key:"beginScope"}),e.begin=MD(e.begin,{joinWith:""})}}function pat(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Zd("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Vw;if(typeof e.endScope!="object"||e.endScope===null)throw Zd("endScope must be object"),Vw;zoe(e,e.end,{key:"endScope"}),e.end=MD(e.end,{joinWith:""})}}function gat(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function mat(e){gat(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),hat(e),pat(e)}function vat(e){function t(a,s){return new RegExp(N0(a),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=Moe(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(l=>l[1]);this.matcherRe=t(MD(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(s);if(!l)return null;const c=l.findIndex((d,f)=>f>0&&d!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const l=new n;return this.rules.slice(s).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(s);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(s)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(a){const s=new r;return a.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),a.terminatorEnd&&s.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&s.addRule(a.illegal,{type:"illegal"}),s}function o(a,s){const l=a;if(a.isCompiled)return l;[rat,aat,mat,lat].forEach(u=>u(a,s)),e.compilerExtensions.forEach(u=>u(a,s)),a.__beforeBegin=null,[iat,oat,sat].forEach(u=>u(a,s)),a.isCompiled=!0;let c=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),c=a.keywords.$pattern,delete a.keywords.$pattern),c=c||/\w+/,a.keywords&&(a.keywords=joe(a.keywords,e.case_insensitive)),l.keywordPatternRe=t(c,!0),s&&(a.begin||(a.begin=/\B|\b/),l.beginRe=t(l.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(l.endRe=t(l.end)),l.terminatorEnd=N0(l.end)||"",a.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(a.end?"|":"")+s.terminatorEnd)),a.illegal&&(l.illegalRe=t(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(u){return yat(u==="self"?a:u)})),a.contains.forEach(function(u){o(u,l)}),a.starts&&o(a.starts,s),l.matcher=i(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=gu(e.classNameAliases||{}),o(e)}function Hoe(e){return e?e.endsWithParent||Hoe(e.starts):!1}function yat(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return gu(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Hoe(e)?gu(e,{starts:e.starts?gu(e.starts):null}):Object.isFrozen(e)?gu(e):e}var bat="11.11.1";class xat extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}}const M$=Roe,NV=gu,BV=Symbol("nomatch"),Cat=7,Voe=function(e){const t=Object.create(null),n=Object.create(null),r=[];let i=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Rot};function l(A){return s.noHighlightRe.test(A)}function c(A){let L=A.className+" ";L+=A.parentNode?A.parentNode.className:"";const M=s.languageDetectRe.exec(L);if(M){const j=_(M[1]);return j||(MV(o.replace("{}",M[1])),MV("Falling back to no-highlight mode for this block.",A)),j?M[1]:"no-highlight"}return L.split(/\s+/).find(j=>l(j)||_(j))}function u(A,L,M){let j="",N="";typeof L=="object"?(j=A,M=L.ignoreIllegals,N=L.language):(ph("10.7.0","highlight(lang, code, ...args) has been deprecated."),ph("10.7.0",`Please use highlight(code, options) instead.
|
|
596
|
+
opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none z-10`,children:[s.label,": ",s.value]})]},s.key))})}function eot({usage:e}){return!e||!e.input_tokens&&!e.output_tokens&&!e.cache_read_input_tokens&&!e.cache_creation_input_tokens?V.jsx("span",{className:"text-text-muted text-xs",children:"--"}):V.jsx(Jit,{usage:e})}const kV=100,TV=500,tot=5*6e4;function $V(e,t){return e.status==="pending"&&t-new Date(e.timestamp).getTime()>tot}const OV=["#3B82F6","#10B981","#F59E0B","#06B6D4","#8B5CF6","#EC4899","#14B8A6","#6366F1"];function not(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)|0;return OV[Math.abs(t)%OV.length]}function rot(e,t){return e.length>t?`${e.slice(0,t)}...`:e}function iot({initialRequests:e,onCompare:t,onRowClick:n,selectedRowKeys:r,onSelectedRowKeysChange:i,loading:o}){const[a,s]=v.useState(e),[l,c]=v.useState(kV),[u,d]=v.useState(!1),[f,h]=v.useState(!0),[,p]=v.useState(0);v.useEffect(()=>{const S=setInterval(()=>p(C=>C+1),3e4);return()=>clearInterval(S)},[]);const g=Date.now();v.useMemo(()=>{s(S=>{const C=new Set(e.filter(R=>R.pendingId).map(R=>R.pendingId));let w=C.size>0?S.filter(R=>!C.has(R.compositeId)):S;const E=new Map(e.map(R=>[R.compositeId,R]));let _=!1;w=w.map(R=>{const $=E.get(R.compositeId);return $&&$!==R?(_=!0,$):R});const k=new Set(w.map(R=>R.compositeId)),P=e.filter(R=>!k.has(R.compositeId));if(P.length===0&&C.size===0&&!_)return S;const T=[...P,...w].sort((R,$)=>new Date($.timestamp).getTime()-new Date(R.timestamp).getTime());return T.length>TV?T.slice(0,TV):T})},[e]);const y=v.useMemo(()=>{const S=new Map;a.forEach(w=>{const E=S.get(w.sessionId)||[];E.push(w),S.set(w.sessionId,E)});const C=new Map;return S.forEach(w=>{w.slice().sort((E,_)=>new Date(E.timestamp).getTime()-new Date(_.timestamp).getTime()).forEach((E,_)=>C.set(E.compositeId,_+1))}),a.map(w=>({...w,sequence:C.get(w.compositeId)}))},[a]).slice(0,l),b=v.useCallback(async()=>{if(!(u||!f)){d(!0);try{const S=a[a.length-1],C=S==null?void 0:S.timestamp,w=await YR(kV,C);w.requests.length>0&&(s(E=>{const _=new Set(E.map(P=>P.compositeId)),k=w.requests.filter(P=>!_.has(P.compositeId));return[...E,...k]}),c(E=>E+w.requests.length)),h(w.hasMore)}finally{d(!1)}}},[u,f,a]),x=[{title:"",key:"checkbox",width:40,fixed:"left",align:"center",render:(S,C)=>V.jsx(Du,{checked:r.includes(C.compositeId),onClick:w=>w.stopPropagation(),onChange:w=>{if(w.target.checked){const E=[...r,C.compositeId];i(E.slice(-2))}else i(r.filter(E=>E!==C.compositeId))}})},{title:"Session ID",dataIndex:"sessionId",key:"sessionId",width:200,render:(S,C)=>{const w=not(S);return V.jsxs("div",{className:"flex items-center gap-2",style:{minWidth:0},children:[C.status==="pending"&&!$V(C,g)&&V.jsx(Vrt,{size:14,className:"flex-shrink-0 animate-spin",style:{color:w}}),V.jsx("span",{className:"text-xs font-mono",style:{color:w,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:130,display:"inline-block"},title:S,children:rot(S,16)})]})}},{title:"时间",dataIndex:"timestamp",key:"timestamp",width:160,render:S=>V.jsx("span",{className:"text-xs",style:{color:"var(--color-text-muted)"},children:ID(S,"monthDayTime")})},{title:"Token",key:"token",width:140,render:(S,C)=>V.jsx(eot,{usage:C.usage})},{title:"模型",dataIndex:"model",key:"model",width:240,render:S=>S?V.jsx(Zit,{model:S}):null},{title:"请求端点",dataIndex:"baseUrl",key:"baseUrl",width:220,ellipsis:!0,render:S=>V.jsx("span",{className:"text-xs",style:{color:"var(--color-text-secondary)"},title:S,children:S||"-"})},{title:"UA",dataIndex:"userAgent",key:"userAgent",width:180,ellipsis:!0,render:S=>V.jsx("span",{className:"text-xs",style:{color:"var(--color-text-secondary)"},title:S,children:S||"-"})},{title:"耗时",dataIndex:"responseTime",key:"responseTime",width:80,render:S=>V.jsxs("span",{className:"text-xs",style:{color:"var(--color-text-muted)"},children:[(S/1e3).toFixed(1),"s"]})},{title:"状态码",dataIndex:"statusCode",key:"statusCode",width:80,render:(S,C)=>{if($V(C,g)||!!C.closedAt&&(S===0||S>=200&&S<300))return V.jsx(Vr,{title:C.error||"请求中断(原因未知)",children:V.jsx("span",{className:"text-xs font-medium",style:{color:"var(--color-warning)"},children:"中断"})});const E=S>=200&&S<300?"var(--color-success)":"var(--color-error)";return V.jsx("span",{className:"text-xs font-medium",style:{color:E},children:S})}},{title:"Method",dataIndex:"method",key:"method",width:100,render:(S,C)=>V.jsx(Qit,{method:C.method,statusCode:C.statusCode})},{title:"URL",dataIndex:"path",key:"path",ellipsis:!0,render:S=>V.jsx("span",{className:"text-xs",style:{color:"var(--color-text-secondary)"},children:S})},{title:"机器码",dataIndex:"machineId",key:"machineId",width:180,render:S=>V.jsx("span",{className:"text-xs font-mono",style:{color:"var(--color-text-muted)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:160,display:"inline-block"},title:S,children:S||"-"})}];return V.jsx("div",{className:"flex flex-col",children:V.jsx(Ic,{dataSource:y,columns:x,pagination:!1,loading:o,onRow:S=>({onClick:()=>n(S),className:"cursor-pointer"}),rowKey:"compositeId",size:"small",scroll:{x:1660,y:"calc(100vh - 200px)"},tableLayout:"auto",sticky:!0,footer:()=>V.jsxs("div",{className:"flex justify-end gap-3 py-4 px-4 border-t",style:{borderColor:"var(--color-border)"},children:[V.jsx(dn,{type:"primary",icon:V.jsx(Brt,{size:16}),disabled:r.length!==2,onClick:()=>t(r),children:"对比"}),f&&V.jsx(dn,{loading:u,onClick:b,variant:"outlined",children:"加载更多"})]})})})}var oot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]},name:"api",theme:"outlined"},aot=function(t,n){return v.createElement(cn,_e({},t,{ref:n,icon:oot}))},Poe=v.forwardRef(aot),sot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"},lot=function(t,n){return v.createElement(cn,_e({},t,{ref:n,icon:sot}))},cot=v.forwardRef(lot),uot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},dot=function(t,n){return v.createElement(cn,_e({},t,{ref:n,icon:uot}))},fot=v.forwardRef(dot),hot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},pot=function(t,n){return v.createElement(cn,_e({},t,{ref:n,icon:hot}))},got=v.forwardRef(pot),mot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 161H699.2c-49.1 0-97.1 14.1-138.4 40.7L512 233l-48.8-31.3A255.2 255.2 0 00324.8 161H96c-17.7 0-32 14.3-32 32v568c0 17.7 14.3 32 32 32h228.8c49.1 0 97.1 14.1 138.4 40.7l44.4 28.6c1.3.8 2.8 1.3 4.3 1.3s3-.4 4.3-1.3l44.4-28.6C602 807.1 650.1 793 699.2 793H928c17.7 0 32-14.3 32-32V193c0-17.7-14.3-32-32-32zM324.8 721H136V233h188.8c35.4 0 69.8 10.1 99.5 29.2l48.8 31.3 6.9 4.5v462c-47.6-25.6-100.8-39-155.2-39zm563.2 0H699.2c-54.4 0-107.6 13.4-155.2 39V298l6.9-4.5 48.8-31.3c29.7-19.1 64.1-29.2 99.5-29.2H888v488zM396.9 361H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm223.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c0-4.1-3.2-7.5-7.1-7.5H627.1c-3.9 0-7.1 3.4-7.1 7.5zM396.9 501H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm416 0H627.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5z"}}]},name:"read",theme:"outlined"},vot=function(t,n){return v.createElement(cn,_e({},t,{ref:n,icon:mot}))},yot=v.forwardRef(vot),bot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"robot",theme:"outlined"},xot=function(t,n){return v.createElement(cn,_e({},t,{ref:n,icon:bot}))},PV=v.forwardRef(xot),Cot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"},Sot=function(t,n){return v.createElement(cn,_e({},t,{ref:n,icon:Cot}))},wot=v.forwardRef(Sot),Eot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 01144-53.5L537 318.9a32.05 32.05 0 000 45.3l124.5 124.5a32.05 32.05 0 0045.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z"}}]},name:"tool",theme:"outlined"},_ot=function(t,n){return v.createElement(cn,_e({},t,{ref:n,icon:Eot}))},kot=v.forwardRef(_ot),Tot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},$ot=function(t,n){return v.createElement(cn,_e({},t,{ref:n,icon:Tot}))},Oot=v.forwardRef($ot);function Aoe({tabs:e,defaultTab:t,children:n}){var o;const[r,i]=v.useState(t??((o=e[0])==null?void 0:o.id));return V.jsxs("div",{children:[V.jsx("div",{className:"flex border-b border-border mb-3",children:e.map(a=>V.jsx("button",{onClick:()=>i(a.id),className:`px-4 py-2 text-sm transition-colors ${r===a.id?"text-text-primary border-b-2 border-primary bg-bg-primary":"text-text-muted hover:text-text-primary hover:bg-bg-secondary"}`,children:a.label},a.id))}),V.jsx("div",{className:"p-2",children:n[r]})]})}function Ioe(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const n=e[t],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&Ioe(n)}),e}let AV=class{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function Roe(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function gu(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const Pot="</span>",IV=e=>!!e.scope,Aot=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${t}${e}`};class Iot{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=Roe(t)}openNode(t){if(!IV(t))return;const n=Aot(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){IV(t)&&(this.buffer+=Pot)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const RV=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class RD{constructor(){this.rootNode=RV(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const n=RV({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{RD._collapse(n)}))}}class Rot extends RD{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,n){const r=t.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new Iot(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function N0(e){return e?typeof e=="string"?e:e.source:null}function Loe(e){return Uf("(?=",e,")")}function Lot(e){return Uf("(?:",e,")*")}function Mot(e){return Uf("(?:",e,")?")}function Uf(...e){return e.map(n=>N0(n)).join("")}function Not(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function LD(...e){return"("+(Not(e).capture?"":"?:")+e.map(r=>N0(r)).join("|")+")"}function Moe(e){return new RegExp(e.toString()+"|").exec("").length-1}function Bot(e,t){const n=e&&e.exec(t);return n&&n.index===0}const Dot=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function MD(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;const i=n;let o=N0(r),a="";for(;o.length>0;){const s=Dot.exec(o);if(!s){a+=o;break}a+=o.substring(0,s.index),o=o.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?a+="\\"+String(Number(s[1])+i):(a+=s[0],s[0]==="("&&n++)}return a}).map(r=>`(${r})`).join(t)}const Fot=/\b\B/,Noe="[a-zA-Z]\\w*",ND="[a-zA-Z_]\\w*",Boe="\\b\\d+(\\.\\d+)?",Doe="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Foe="\\b(0b[01]+)",jot="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",zot=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=Uf(t,/.*\b/,e.binary,/\b.*/)),gu({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},B0={begin:"\\\\[\\s\\S]",relevance:0},Hot={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[B0]},Vot={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[B0]},Wot={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},k_=function(e,t,n={}){const r=gu({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=LD("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Uf(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},Uot=k_("//","$"),qot=k_("/\\*","\\*/"),Got=k_("#","$"),Kot={scope:"number",begin:Boe,relevance:0},Xot={scope:"number",begin:Doe,relevance:0},Yot={scope:"number",begin:Foe,relevance:0},Qot={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[B0,{begin:/\[/,end:/\]/,relevance:0,contains:[B0]}]},Zot={scope:"title",begin:Noe,relevance:0},Jot={scope:"title",begin:ND,relevance:0},eat={begin:"\\.\\s*"+ND,relevance:0},tat=function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})};var t1=Object.freeze({__proto__:null,APOS_STRING_MODE:Hot,BACKSLASH_ESCAPE:B0,BINARY_NUMBER_MODE:Yot,BINARY_NUMBER_RE:Foe,COMMENT:k_,C_BLOCK_COMMENT_MODE:qot,C_LINE_COMMENT_MODE:Uot,C_NUMBER_MODE:Xot,C_NUMBER_RE:Doe,END_SAME_AS_BEGIN:tat,HASH_COMMENT_MODE:Got,IDENT_RE:Noe,MATCH_NOTHING_RE:Fot,METHOD_GUARD:eat,NUMBER_MODE:Kot,NUMBER_RE:Boe,PHRASAL_WORDS_MODE:Wot,QUOTE_STRING_MODE:Vot,REGEXP_MODE:Qot,RE_STARTERS_RE:jot,SHEBANG:zot,TITLE_MODE:Zot,UNDERSCORE_IDENT_RE:ND,UNDERSCORE_TITLE_MODE:Jot});function nat(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function rat(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function iat(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=nat,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function oat(e,t){Array.isArray(e.illegal)&&(e.illegal=LD(...e.illegal))}function aat(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function sat(e,t){e.relevance===void 0&&(e.relevance=1)}const lat=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=Uf(n.beforeMatch,Loe(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},cat=["of","and","for","in","not","or","if","then","parent","list","value"],uat="keyword";function joe(e,t,n=uat){const r=Object.create(null);return typeof e=="string"?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(o){Object.assign(r,joe(e[o],t,o))}),r;function i(o,a){t&&(a=a.map(s=>s.toLowerCase())),a.forEach(function(s){const l=s.split("|");r[l[0]]=[o,dat(l[0],l[1])]})}}function dat(e,t){return t?Number(t):fat(e)?0:1}function fat(e){return cat.includes(e.toLowerCase())}const LV={},Zd=e=>{console.error(e)},MV=(e,...t)=>{console.log(`WARN: ${e}`,...t)},ph=(e,t)=>{LV[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),LV[`${e}/${t}`]=!0)},Vw=new Error;function zoe(e,t,{key:n}){let r=0;const i=e[n],o={},a={};for(let s=1;s<=t.length;s++)a[s+r]=i[s],o[s+r]=!0,r+=Moe(t[s-1]);e[n]=a,e[n]._emit=o,e[n]._multi=!0}function hat(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Zd("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Vw;if(typeof e.beginScope!="object"||e.beginScope===null)throw Zd("beginScope must be object"),Vw;zoe(e,e.begin,{key:"beginScope"}),e.begin=MD(e.begin,{joinWith:""})}}function pat(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Zd("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Vw;if(typeof e.endScope!="object"||e.endScope===null)throw Zd("endScope must be object"),Vw;zoe(e,e.end,{key:"endScope"}),e.end=MD(e.end,{joinWith:""})}}function gat(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function mat(e){gat(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),hat(e),pat(e)}function vat(e){function t(a,s){return new RegExp(N0(a),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=Moe(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(l=>l[1]);this.matcherRe=t(MD(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(s);if(!l)return null;const c=l.findIndex((d,f)=>f>0&&d!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const l=new n;return this.rules.slice(s).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(s);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(s)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(a){const s=new r;return a.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),a.terminatorEnd&&s.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&s.addRule(a.illegal,{type:"illegal"}),s}function o(a,s){const l=a;if(a.isCompiled)return l;[rat,aat,mat,lat].forEach(u=>u(a,s)),e.compilerExtensions.forEach(u=>u(a,s)),a.__beforeBegin=null,[iat,oat,sat].forEach(u=>u(a,s)),a.isCompiled=!0;let c=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),c=a.keywords.$pattern,delete a.keywords.$pattern),c=c||/\w+/,a.keywords&&(a.keywords=joe(a.keywords,e.case_insensitive)),l.keywordPatternRe=t(c,!0),s&&(a.begin||(a.begin=/\B|\b/),l.beginRe=t(l.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(l.endRe=t(l.end)),l.terminatorEnd=N0(l.end)||"",a.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(a.end?"|":"")+s.terminatorEnd)),a.illegal&&(l.illegalRe=t(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(u){return yat(u==="self"?a:u)})),a.contains.forEach(function(u){o(u,l)}),a.starts&&o(a.starts,s),l.matcher=i(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=gu(e.classNameAliases||{}),o(e)}function Hoe(e){return e?e.endsWithParent||Hoe(e.starts):!1}function yat(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return gu(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Hoe(e)?gu(e,{starts:e.starts?gu(e.starts):null}):Object.isFrozen(e)?gu(e):e}var bat="11.11.1";class xat extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}}const M$=Roe,NV=gu,BV=Symbol("nomatch"),Cat=7,Voe=function(e){const t=Object.create(null),n=Object.create(null),r=[];let i=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Rot};function l(A){return s.noHighlightRe.test(A)}function c(A){let L=A.className+" ";L+=A.parentNode?A.parentNode.className:"";const M=s.languageDetectRe.exec(L);if(M){const j=_(M[1]);return j||(MV(o.replace("{}",M[1])),MV("Falling back to no-highlight mode for this block.",A)),j?M[1]:"no-highlight"}return L.split(/\s+/).find(j=>l(j)||_(j))}function u(A,L,M){let j="",N="";typeof L=="object"?(j=A,M=L.ignoreIllegals,N=L.language):(ph("10.7.0","highlight(lang, code, ...args) has been deprecated."),ph("10.7.0",`Please use highlight(code, options) instead.
|
|
597
597
|
https://github.com/highlightjs/highlight.js/issues/2277`),N=A,j=L),M===void 0&&(M=!0);const z={code:j,language:N};$("before:highlight",z);const H=z.result?z.result:d(z.language,z.code,M);return H.code=z.code,$("after:highlight",H),H}function d(A,L,M,j){const N=Object.create(null);function z(oe,pe){return oe.keywords[pe]}function H(){if(!de.keywords){Pe.addText(fe);return}let oe=0;de.keywordPatternRe.lastIndex=0;let pe=de.keywordPatternRe.exec(fe),we="";for(;pe;){we+=fe.substring(oe,pe.index);const Te=J.case_insensitive?pe[0].toLowerCase():pe[0],Ie=z(de,Te);if(Ie){const[xe,ye]=Ie;if(Pe.addText(we),we="",N[Te]=(N[Te]||0)+1,N[Te]<=Cat&&(ke+=ye),xe.startsWith("_"))we+=pe[0];else{const Me=J.classNameAliases[xe]||xe;Y(pe[0],Me)}}else we+=pe[0];oe=de.keywordPatternRe.lastIndex,pe=de.keywordPatternRe.exec(fe)}we+=fe.substring(oe),Pe.addText(we)}function D(){if(fe==="")return;let oe=null;if(typeof de.subLanguage=="string"){if(!t[de.subLanguage]){Pe.addText(fe);return}oe=d(de.subLanguage,fe,!0,Oe[de.subLanguage]),Oe[de.subLanguage]=oe._top}else oe=h(fe,de.subLanguage.length?de.subLanguage:null);de.relevance>0&&(ke+=oe.relevance),Pe.__addSublanguage(oe._emitter,oe.language)}function X(){de.subLanguage!=null?D():H(),fe=""}function Y(oe,pe){oe!==""&&(Pe.startScope(pe),Pe.addText(oe),Pe.endScope())}function ne(oe,pe){let we=1;const Te=pe.length-1;for(;we<=Te;){if(!oe._emit[we]){we++;continue}const Ie=J.classNameAliases[oe[we]]||oe[we],xe=pe[we];Ie?Y(xe,Ie):(fe=xe,H(),fe=""),we++}}function ce(oe,pe){return oe.scope&&typeof oe.scope=="string"&&Pe.openNode(J.classNameAliases[oe.scope]||oe.scope),oe.beginScope&&(oe.beginScope._wrap?(Y(fe,J.classNameAliases[oe.beginScope._wrap]||oe.beginScope._wrap),fe=""):oe.beginScope._multi&&(ne(oe.beginScope,pe),fe="")),de=Object.create(oe,{parent:{value:de}}),de}function re(oe,pe,we){let Te=Bot(oe.endRe,we);if(Te){if(oe["on:end"]){const Ie=new AV(oe);oe["on:end"](pe,Ie),Ie.isMatchIgnored&&(Te=!1)}if(Te){for(;oe.endsParent&&oe.parent;)oe=oe.parent;return oe}}if(oe.endsWithParent)return re(oe.parent,pe,we)}function Z(oe){return de.matcher.regexIndex===0?(fe+=oe[0],1):(Be=!0,0)}function ee(oe){const pe=oe[0],we=oe.rule,Te=new AV(we),Ie=[we.__beforeBegin,we["on:begin"]];for(const xe of Ie)if(xe&&(xe(oe,Te),Te.isMatchIgnored))return Z(pe);return we.skip?fe+=pe:(we.excludeBegin&&(fe+=pe),X(),!we.returnBegin&&!we.excludeBegin&&(fe=pe)),ce(we,oe),we.returnBegin?0:pe.length}function K(oe){const pe=oe[0],we=L.substring(oe.index),Te=re(de,oe,we);if(!Te)return BV;const Ie=de;de.endScope&&de.endScope._wrap?(X(),Y(pe,de.endScope._wrap)):de.endScope&&de.endScope._multi?(X(),ne(de.endScope,oe)):Ie.skip?fe+=pe:(Ie.returnEnd||Ie.excludeEnd||(fe+=pe),X(),Ie.excludeEnd&&(fe=pe));do de.scope&&Pe.closeNode(),!de.skip&&!de.subLanguage&&(ke+=de.relevance),de=de.parent;while(de!==Te.parent);return Te.starts&&ce(Te.starts,oe),Ie.returnEnd?0:pe.length}function W(){const oe=[];for(let pe=de;pe!==J;pe=pe.parent)pe.scope&&oe.unshift(pe.scope);oe.forEach(pe=>Pe.openNode(pe))}let ie={};function q(oe,pe){const we=pe&&pe[0];if(fe+=oe,we==null)return X(),0;if(ie.type==="begin"&&pe.type==="end"&&ie.index===pe.index&&we===""){if(fe+=L.slice(pe.index,pe.index+1),!i){const Te=new Error(`0 width match regex (${A})`);throw Te.languageName=A,Te.badRule=ie.rule,Te}return 1}if(ie=pe,pe.type==="begin")return ee(pe);if(pe.type==="illegal"&&!M){const Te=new Error('Illegal lexeme "'+we+'" for mode "'+(de.scope||"<unnamed>")+'"');throw Te.mode=de,Te}else if(pe.type==="end"){const Te=K(pe);if(Te!==BV)return Te}if(pe.type==="illegal"&&we==="")return fe+=`
|
|
598
598
|
`,1;if(Se>1e5&&Se>pe.index*3)throw new Error("potential infinite loop, way more iterations than matches");return fe+=we,we.length}const J=_(A);if(!J)throw Zd(o.replace("{}",A)),new Error('Unknown language: "'+A+'"');const se=vat(J);let me="",de=j||se;const Oe={},Pe=new s.__emitter(s);W();let fe="",ke=0,be=0,Se=0,Be=!1;try{if(J.__emitTokens)J.__emitTokens(L,Pe);else{for(de.matcher.considerAll();;){Se++,Be?Be=!1:de.matcher.considerAll(),de.matcher.lastIndex=be;const oe=de.matcher.exec(L);if(!oe)break;const pe=L.substring(be,oe.index),we=q(pe,oe);be=oe.index+we}q(L.substring(be))}return Pe.finalize(),me=Pe.toHTML(),{language:A,value:me,relevance:ke,illegal:!1,_emitter:Pe,_top:de}}catch(oe){if(oe.message&&oe.message.includes("Illegal"))return{language:A,value:M$(L),illegal:!0,relevance:0,_illegalBy:{message:oe.message,index:be,context:L.slice(be-100,be+100),mode:oe.mode,resultSoFar:me},_emitter:Pe};if(i)return{language:A,value:M$(L),illegal:!1,relevance:0,errorRaised:oe,_emitter:Pe,_top:de};throw oe}}function f(A){const L={value:M$(A),illegal:!1,relevance:0,_top:a,_emitter:new s.__emitter(s)};return L._emitter.addText(A),L}function h(A,L){L=L||s.languages||Object.keys(t);const M=f(A),j=L.filter(_).filter(P).map(X=>d(X,A,!1));j.unshift(M);const N=j.sort((X,Y)=>{if(X.relevance!==Y.relevance)return Y.relevance-X.relevance;if(X.language&&Y.language){if(_(X.language).supersetOf===Y.language)return 1;if(_(Y.language).supersetOf===X.language)return-1}return 0}),[z,H]=N,D=z;return D.secondBest=H,D}function p(A,L,M){const j=L&&n[L]||M;A.classList.add("hljs"),A.classList.add(`language-${j}`)}function g(A){let L=null;const M=c(A);if(l(M))return;if($("before:highlightElement",{el:A,language:M}),A.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",A);return}if(A.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(A)),s.throwUnescapedHTML))throw new xat("One of your code blocks includes unescaped HTML.",A.innerHTML);L=A;const j=L.textContent,N=M?u(j,{language:M,ignoreIllegals:!0}):h(j);A.innerHTML=N.value,A.dataset.highlighted="yes",p(A,M,N.language),A.result={language:N.language,re:N.relevance,relevance:N.relevance},N.secondBest&&(A.secondBest={language:N.secondBest.language,relevance:N.secondBest.relevance}),$("after:highlightElement",{el:A,result:N,text:j})}function m(A){s=NV(s,A)}const y=()=>{S(),ph("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function b(){S(),ph("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let x=!1;function S(){function A(){S()}if(document.readyState==="loading"){x||window.addEventListener("DOMContentLoaded",A,!1),x=!0;return}document.querySelectorAll(s.cssSelector).forEach(g)}function C(A,L){let M=null;try{M=L(e)}catch(j){if(Zd("Language definition for '{}' could not be registered.".replace("{}",A)),i)Zd(j);else throw j;M=a}M.name||(M.name=A),t[A]=M,M.rawDefinition=L.bind(null,e),M.aliases&&k(M.aliases,{languageName:A})}function w(A){delete t[A];for(const L of Object.keys(n))n[L]===A&&delete n[L]}function E(){return Object.keys(t)}function _(A){return A=(A||"").toLowerCase(),t[A]||t[n[A]]}function k(A,{languageName:L}){typeof A=="string"&&(A=[A]),A.forEach(M=>{n[M.toLowerCase()]=L})}function P(A){const L=_(A);return L&&!L.disableAutodetect}function O(A){A["before:highlightBlock"]&&!A["before:highlightElement"]&&(A["before:highlightElement"]=L=>{A["before:highlightBlock"](Object.assign({block:L.el},L))}),A["after:highlightBlock"]&&!A["after:highlightElement"]&&(A["after:highlightElement"]=L=>{A["after:highlightBlock"](Object.assign({block:L.el},L))})}function T(A){O(A),r.push(A)}function R(A){const L=r.indexOf(A);L!==-1&&r.splice(L,1)}function $(A,L){const M=A;r.forEach(function(j){j[M]&&j[M](L)})}function I(A){return ph("10.7.0","highlightBlock will be removed entirely in v12.0"),ph("10.7.0","Please use highlightElement now."),g(A)}Object.assign(e,{highlight:u,highlightAuto:h,highlightAll:S,highlightElement:g,highlightBlock:I,configure:m,initHighlighting:y,initHighlightingOnLoad:b,registerLanguage:C,unregisterLanguage:w,listLanguages:E,getLanguage:_,registerAliases:k,autoDetection:P,inherit:NV,addPlugin:T,removePlugin:R}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=bat,e.regex={concat:Uf,lookahead:Loe,either:LD,optional:Mot,anyNumberOfTimes:Lot};for(const A in t1)typeof t1[A]=="object"&&Ioe(t1[A]);return Object.assign(e,t1),e},Tg=Voe({});Tg.newInstance=()=>Voe({});var Sat=Tg;Tg.HighlightJS=Tg;Tg.default=Tg;const Woe=kn(Sat);function wat(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}Woe.registerLanguage("json",wat);function xv({code:e,lang:t="json"}){const[n,r]=v.useState(!1),i=Woe.highlight(e,{language:t}).value,o=async()=>{await navigator.clipboard.writeText(e),r(!0),setTimeout(()=>r(!1),1500)};return V.jsxs("div",{className:"group relative max-h-[400px] overflow-auto hljs rounded p-3 text-sm my-2",children:[V.jsx("button",{onClick:o,className:"absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity bg-bg-hover/80 text-text-muted p-1 rounded border border-border z-10",title:"复制",children:n?V.jsx(Irt,{size:12}):V.jsx(Lrt,{size:12})}),V.jsx("pre",{className:"m-0 p-0 bg-transparent whitespace-pre",children:V.jsx("code",{className:`language-${t}`,dangerouslySetInnerHTML:{__html:i}})})]})}function DV(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const a=n.slice(i,r).trim();(a||!o)&&t.push(a),i=r+1,r=n.indexOf(",",i)}return t}function Uoe(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Eat=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,_at=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,kat={};function FV(e,t){return(kat.jsx?_at:Eat).test(e)}const Tat=/[ \t\n\f\r]/g;function T_(e){return typeof e=="object"?e.type==="text"?jV(e.value):!1:jV(e)}function jV(e){return e.replace(Tat,"")===""}class Wb{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Wb.prototype.normal={};Wb.prototype.property={};Wb.prototype.space=void 0;function qoe(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Wb(n,r,t)}function D0(e){return e.toLowerCase()}class Qo{constructor(t,n){this.attribute=n,this.property=t}}Qo.prototype.attribute="";Qo.prototype.booleanish=!1;Qo.prototype.boolean=!1;Qo.prototype.commaOrSpaceSeparated=!1;Qo.prototype.commaSeparated=!1;Qo.prototype.defined=!1;Qo.prototype.mustUseProperty=!1;Qo.prototype.number=!1;Qo.prototype.overloadedBoolean=!1;Qo.prototype.property="";Qo.prototype.spaceSeparated=!1;Qo.prototype.space=void 0;let $at=0;const on=qf(),Ur=qf(),QR=qf(),et=qf(),or=qf(),Jd=qf(),ia=qf();function qf(){return 2**++$at}const ZR=Object.freeze(Object.defineProperty({__proto__:null,boolean:on,booleanish:Ur,commaOrSpaceSeparated:ia,commaSeparated:Jd,number:et,overloadedBoolean:QR,spaceSeparated:or},Symbol.toStringTag,{value:"Module"})),N$=Object.keys(ZR);class BD extends Qo{constructor(t,n,r,i){let o=-1;if(super(t,n),zV(this,"space",i),typeof r=="number")for(;++o<N$.length;){const a=N$[o];zV(this,N$[o],(r&ZR[a])===ZR[a])}}}BD.prototype.defined=!0;function zV(e,t,n){n&&(e[t]=n)}function fm(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new BD(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[D0(r)]=r,n[D0(o.attribute)]=r}return new Wb(t,n,e.space)}const Goe=fm({properties:{ariaActiveDescendant:null,ariaAtomic:Ur,ariaAutoComplete:null,ariaBusy:Ur,ariaChecked:Ur,ariaColCount:et,ariaColIndex:et,ariaColSpan:et,ariaControls:or,ariaCurrent:null,ariaDescribedBy:or,ariaDetails:null,ariaDisabled:Ur,ariaDropEffect:or,ariaErrorMessage:null,ariaExpanded:Ur,ariaFlowTo:or,ariaGrabbed:Ur,ariaHasPopup:null,ariaHidden:Ur,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:or,ariaLevel:et,ariaLive:null,ariaModal:Ur,ariaMultiLine:Ur,ariaMultiSelectable:Ur,ariaOrientation:null,ariaOwns:or,ariaPlaceholder:null,ariaPosInSet:et,ariaPressed:Ur,ariaReadOnly:Ur,ariaRelevant:null,ariaRequired:Ur,ariaRoleDescription:or,ariaRowCount:et,ariaRowIndex:et,ariaRowSpan:et,ariaSelected:Ur,ariaSetSize:et,ariaSort:null,ariaValueMax:et,ariaValueMin:et,ariaValueNow:et,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Koe(e,t){return t in e?e[t]:t}function Xoe(e,t){return Koe(e,t.toLowerCase())}const Oat=fm({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Jd,acceptCharset:or,accessKey:or,action:null,allow:null,allowFullScreen:on,allowPaymentRequest:on,allowUserMedia:on,alpha:on,alt:null,as:null,async:on,autoCapitalize:null,autoComplete:or,autoFocus:on,autoPlay:on,blocking:or,capture:null,charSet:null,checked:on,cite:null,className:or,closedBy:null,colorSpace:null,cols:et,colSpan:et,command:null,commandFor:null,content:null,contentEditable:Ur,controls:on,controlsList:or,coords:et|Jd,crossOrigin:null,data:null,dateTime:null,decoding:null,default:on,defer:on,dir:null,dirName:null,disabled:on,download:QR,draggable:Ur,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:on,formTarget:null,headers:or,height:et,hidden:QR,high:et,href:null,hrefLang:null,htmlFor:or,httpEquiv:or,id:null,imageSizes:null,imageSrcSet:null,inert:on,inputMode:null,integrity:null,is:null,isMap:on,itemId:null,itemProp:or,itemRef:or,itemScope:on,itemType:or,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:on,low:et,manifest:null,max:null,maxLength:et,media:null,method:null,min:null,minLength:et,multiple:on,muted:on,name:null,nonce:null,noModule:on,noValidate:on,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:on,optimum:et,pattern:null,ping:or,placeholder:null,playsInline:on,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:on,referrerPolicy:null,rel:or,required:on,reversed:on,rows:et,rowSpan:et,sandbox:or,scope:null,scoped:on,seamless:on,selected:on,shadowRootClonable:on,shadowRootCustomElementRegistry:on,shadowRootDelegatesFocus:on,shadowRootMode:null,shadowRootSerializable:on,shape:null,size:et,sizes:null,slot:null,span:et,spellCheck:Ur,src:null,srcDoc:null,srcLang:null,srcSet:null,start:et,step:null,style:null,tabIndex:et,target:null,title:null,translate:null,type:null,typeMustMatch:on,useMap:null,value:Ur,width:et,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:or,axis:null,background:null,bgColor:null,border:et,borderColor:null,bottomMargin:et,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:on,declare:on,event:null,face:null,frame:null,frameBorder:null,hSpace:et,leftMargin:et,link:null,longDesc:null,lowSrc:null,marginHeight:et,marginWidth:et,noResize:on,noHref:on,noShade:on,noWrap:on,object:null,profile:null,prompt:null,rev:null,rightMargin:et,rules:null,scheme:null,scrolling:Ur,standby:null,summary:null,text:null,topMargin:et,valueType:null,version:null,vAlign:null,vLink:null,vSpace:et,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:on,disablePictureInPicture:on,disableRemotePlayback:on,exportParts:Jd,part:or,prefix:null,property:null,results:et,security:null,unselectable:null},space:"html",transform:Xoe}),Pat=fm({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",maskType:"mask-type",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"},properties:{about:ia,accentHeight:et,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:et,amplitude:et,arabicForm:null,ascent:et,attributeName:null,attributeType:null,azimuth:et,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:et,by:null,calcMode:null,capHeight:et,className:or,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:et,diffuseConstant:et,direction:null,display:null,dur:null,divisor:et,dominantBaseline:null,download:on,dx:null,dy:null,edgeMode:null,editable:null,elevation:et,enableBackground:null,end:null,event:null,exponent:et,externalResourcesRequired:null,fill:null,fillOpacity:et,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:Jd,g2:Jd,glyphName:Jd,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:et,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:et,horizOriginX:et,horizOriginY:et,id:null,ideographic:et,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:et,k:et,k1:et,k2:et,k3:et,k4:et,kernelMatrix:ia,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:et,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:et,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:et,overlineThickness:et,paintOrder:null,panose1:null,path:null,pathLength:et,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:or,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:et,pointsAtY:et,pointsAtZ:et,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ia,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ia,rev:ia,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ia,requiredFeatures:ia,requiredFonts:ia,requiredFormats:ia,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:et,specularExponent:et,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:et,strikethroughThickness:et,string:null,stroke:null,strokeDashArray:ia,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:et,strokeOpacity:et,strokeWidth:null,style:null,surfaceScale:et,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ia,tabIndex:et,tableValues:null,target:null,targetX:et,targetY:et,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ia,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:et,underlineThickness:et,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:et,values:null,vAlphabetic:et,vMathematical:et,vectorEffect:null,vHanging:et,vIdeographic:et,version:null,vertAdvY:et,vertOriginX:et,vertOriginY:et,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:et,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Koe}),Yoe=fm({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Qoe=fm({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Xoe}),Zoe=fm({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Aat={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Iat=/[A-Z]/g,HV=/-[a-z]/g,Rat=/^data[-\w.:]+$/i;function DD(e,t){const n=D0(t);let r=t,i=Qo;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Rat.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(HV,Mat);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!HV.test(o)){let a=o.replace(Iat,Lat);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=BD}return new i(r,t)}function Lat(e){return"-"+e.toLowerCase()}function Mat(e){return e.charAt(1).toUpperCase()}const FD=qoe([Goe,Oat,Yoe,Qoe,Zoe],"html"),hm=qoe([Goe,Pat,Yoe,Qoe,Zoe],"svg");function VV(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Joe(e){return e.join(" ").trim()}var jD={},WV=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Nat=/\n/g,Bat=/^\s*/,Dat=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Fat=/^:\s*/,jat=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,zat=/^[;\s]*/,Hat=/^\s+|\s+$/g,Vat=`
|
|
599
599
|
`,UV="/",qV="*",wd="",Wat="comment",Uat="declaration";function qat(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(p){var g=p.match(Nat);g&&(n+=g.length);var m=p.lastIndexOf(Vat);r=~m?p.length-m:r+p.length}function o(){var p={line:n,column:r};return function(g){return g.position=new a(p),c(),g}}function a(p){this.start=p,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function s(p){var g=new Error(t.source+":"+n+":"+r+": "+p);if(g.reason=p,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function l(p){var g=p.exec(e);if(g){var m=g[0];return i(m),e=e.slice(m.length),g}}function c(){l(Bat)}function u(p){var g;for(p=p||[];g=d();)g!==!1&&p.push(g);return p}function d(){var p=o();if(!(UV!=e.charAt(0)||qV!=e.charAt(1))){for(var g=2;wd!=e.charAt(g)&&(qV!=e.charAt(g)||UV!=e.charAt(g+1));)++g;if(g+=2,wd===e.charAt(g-1))return s("End of comment missing");var m=e.slice(2,g-2);return r+=2,i(m),e=e.slice(g),r+=2,p({type:Wat,comment:m})}}function f(){var p=o(),g=l(Dat);if(g){if(d(),!l(Fat))return s("property missing ':'");var m=l(jat),y=p({type:Uat,property:GV(g[0].replace(WV,wd)),value:m?GV(m[0].replace(WV,wd)):wd});return l(zat),y}}function h(){var p=[];u(p);for(var g;g=f();)g!==!1&&(p.push(g),u(p));return p}return c(),h()}function GV(e){return e?e.replace(Hat,wd):wd}var Gat=qat,Kat=er&&er.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jD,"__esModule",{value:!0});jD.default=Yat;const Xat=Kat(Gat);function Yat(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,Xat.default)(e),i=typeof t=="function";return r.forEach(o=>{if(o.type!=="declaration")return;const{property:a,value:s}=o;i?t(a,s,o):s&&(n=n||{},n[a]=s)}),n}var $_={};Object.defineProperty($_,"__esModule",{value:!0});$_.camelCase=void 0;var Qat=/^--[a-zA-Z0-9_-]+$/,Zat=/-([a-z])/g,Jat=/^[^-]+$/,est=/^-(webkit|moz|ms|o|khtml)-/,tst=/^-(ms)-/,nst=function(e){return!e||Jat.test(e)||Qat.test(e)},rst=function(e,t){return t.toUpperCase()},KV=function(e,t){return"".concat(t,"-")},ist=function(e,t){return t===void 0&&(t={}),nst(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(tst,KV):e=e.replace(est,KV),e.replace(Zat,rst))};$_.camelCase=ist;var ost=er&&er.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},ast=ost(jD),sst=$_;function JR(e,t){var n={};return!e||typeof e!="string"||(0,ast.default)(e,function(r,i){r&&i&&(n[(0,sst.camelCase)(r,t)]=i)}),n}JR.default=JR;var eae=JR;const lst=kn(eae),tae=nae("end"),zD=nae("start");function nae(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function cst(e){const t=zD(e),n=tae(e);if(t&&n)return{start:t,end:n}}function ay(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?XV(e.position):"start"in e||"end"in e?XV(e):"line"in e||"column"in e?eL(e):""}function eL(e){return YV(e&&e.line)+":"+YV(e&&e.column)}function XV(e){return eL(e&&e.start)+"-"+eL(e&&e.end)}function YV(e){return e&&typeof e=="number"?e:1}class bo extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},a=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(a=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=ay(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}bo.prototype.file="";bo.prototype.name="";bo.prototype.reason="";bo.prototype.message="";bo.prototype.stack="";bo.prototype.column=void 0;bo.prototype.line=void 0;bo.prototype.ancestors=void 0;bo.prototype.cause=void 0;bo.prototype.fatal=void 0;bo.prototype.place=void 0;bo.prototype.ruleId=void 0;bo.prototype.source=void 0;const HD={}.hasOwnProperty,ust=new Map,dst=/[A-Z]/g,fst=new Set(["table","tbody","thead","tfoot","tr"]),hst=new Set(["td","th"]),rae="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function pst(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Sst(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Cst(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?hm:FD,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=iae(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function iae(e,t,n){if(t.type==="element")return gst(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return mst(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return yst(e,t,n);if(t.type==="mdxjsEsm")return vst(e,t);if(t.type==="root")return bst(e,t,n);if(t.type==="text")return xst(e,t)}function gst(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=hm,e.schema=i),e.ancestors.push(t);const o=aae(e,t.tagName,!1),a=wst(e,t);let s=WD(e,t);return fst.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!T_(l):!0})),oae(e,a,o,t),VD(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function mst(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}F0(e,t.position)}function vst(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);F0(e,t.position)}function yst(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=hm,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:aae(e,t.name,!0),a=Est(e,t),s=WD(e,t);return oae(e,a,o,t),VD(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function bst(e,t,n){const r={};return VD(r,WD(e,t)),e.create(t,e.Fragment,r,n)}function xst(e,t){return t.value}function oae(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function VD(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Cst(e,t,n){return r;function r(i,o,a,s){const c=Array.isArray(a.children)?n:t;return s?c(o,a,s):c(o,a)}}function Sst(e,t){return n;function n(r,i,o,a){const s=Array.isArray(o.children),l=zD(r);return t(i,o,a,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function wst(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&HD.call(t.properties,i)){const o=_st(e,i,t.properties[i]);if(o){const[a,s]=o;e.tableCellAlignToStyle&&a==="align"&&typeof s=="string"&&hst.has(t.tagName)?r=s:n[a]=s}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Est(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const a=o.expression;a.type;const s=a.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else F0(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,o=e.evaluater.evaluateExpression(s.expression)}else F0(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function WD(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:ust;for(;++r<t.children.length;){const o=t.children[r];let a;if(e.passKeys){const l=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(l){const c=i.get(l)||0;a=l+"-"+c,i.set(l,c+1)}}const s=iae(e,o,a);s!==void 0&&n.push(s)}return n}function _st(e,t,n){const r=DD(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Uoe(n):Joe(n)),r.property==="style"){let i=typeof n=="object"?n:kst(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Tst(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Aat[r.property]||r.property:r.attribute,n]}}function kst(e,t){try{return lst(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new bo("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=rae+"#cannot-parse-style-attribute",i}}function aae(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,a;for(;++o<i.length;){const s=FV(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};a=a?{type:"MemberExpression",object:a,property:s,computed:!!(o&&s.type==="Literal"),optional:!1}:s}r=a}else r=FV(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return HD.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);F0(e)}function F0(e,t){const n=new bo("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=rae+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Tst(e){const t={};let n;for(n in e)HD.call(e,n)&&(t[$st(n)]=e[n]);return t}function $st(e){let t=e.replace(dst,Ost);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Ost(e){return"-"+e.toLowerCase()}const B$={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Pst={};function Ast(e,t){const n=Pst,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return sae(e,r,i)}function sae(e,t,n){if(Ist(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return QV(e.children,t,n)}return Array.isArray(e)?QV(e,t,n):""}function QV(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=sae(e[i],t,n);return r.join("")}function Ist(e){return!!(e&&typeof e=="object")}const ZV=document.createElement("i");function j0(e){const t="&"+e+";";ZV.innerHTML=t;const n=ZV.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Tl(e,t,n,r){const i=e.length;let o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function Da(e,t){return e.length>0?(Tl(e,e.length,0,t),e):t}const JV={}.hasOwnProperty;function Rst(e){const t={};let n=-1;for(;++n<e.length;)Lst(t,e[n]);return t}function Lst(e,t){let n;for(n in t){const i=(JV.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){JV.call(i,a)||(i[a]=[]);const s=o[a];Mst(i[a],Array.isArray(s)?s:s?[s]:[])}}}function Mst(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Tl(e,0,0,r)}function lae(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Cp(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const dl=ed(/[A-Za-z]/),ma=ed(/[\dA-Za-z]/),Nst=ed(/[#-'*+\--9=?A-Z^-~]/);function tL(e){return e!==null&&(e<32||e===127)}const nL=ed(/\d/),Bst=ed(/[\dA-Fa-f]/),Dst=ed(/[!-/:-@[-`{-~]/);function rn(e){return e!==null&&e<-2}function Uo(e){return e!==null&&(e<0||e===32)}function Yn(e){return e===-2||e===-1||e===32}const Fst=ed(new RegExp("\\p{P}|\\p{S}","u")),jst=ed(/\s/);function ed(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function pm(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(o===37&&ma(e.charCodeAt(n+1))&&ma(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ur(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return Yn(l)?(e.enter(n),s(l)):t(l)}function s(l){return Yn(l)&&o++<i?(e.consume(l),s):(e.exit(n),t(l))}}const zst={tokenize:Hst};function Hst(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ur(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),o(s)}function o(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,a(s)}function a(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return rn(s)?(e.consume(s),e.exit("chunkText"),o):(e.consume(s),a)}}const Vst={tokenize:Wst},eW={tokenize:Ust};function Wst(e){const t=this,n=[];let r=0,i,o,a;return s;function s(x){if(r<n.length){const S=n[r];return t.containerState=S[1],e.attempt(S[0].continuation,l,c)(x)}return c(x)}function l(x){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&b();const S=t.events.length;let C=S,w;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){w=t.events[C][1].end;break}y(r);let E=S;for(;E<t.events.length;)t.events[E][1].end={...w},E++;return Tl(t.events,C+1,0,t.events.slice(S)),t.events.length=E,c(x)}return s(x)}function c(x){if(r===n.length){if(!i)return f(x);if(i.currentConstruct&&i.currentConstruct.concrete)return p(x);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(eW,u,d)(x)}function u(x){return i&&b(),y(r),f(x)}function d(x){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,p(x)}function f(x){return t.containerState={},e.attempt(eW,h,p)(x)}function h(x){return r++,n.push([t.currentConstruct,t.containerState]),f(x)}function p(x){if(x===null){i&&b(),y(0),e.consume(x);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),g(x)}function g(x){if(x===null){m(e.exit("chunkFlow"),!0),y(0),e.consume(x);return}return rn(x)?(e.consume(x),m(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(x),g)}function m(x,S){const C=t.sliceStream(x);if(S&&C.push(null),x.previous=o,o&&(o.next=x),o=x,i.defineSkip(x.start),i.write(C),t.parser.lazy[x.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<a&&(!i.events[w][1].end||i.events[w][1].end.offset>a))return;const E=t.events.length;let _=E,k,P;for(;_--;)if(t.events[_][0]==="exit"&&t.events[_][1].type==="chunkFlow"){if(k){P=t.events[_][1].end;break}k=!0}for(y(r),w=E;w<t.events.length;)t.events[w][1].end={...P},w++;Tl(t.events,_+1,0,t.events.slice(E)),t.events.length=w}}function y(x){let S=n.length;for(;S-- >x;){const C=n[S];t.containerState=C[1],C[0].exit.call(t,e)}n.length=x}function b(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Ust(e,t,n){return ur(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function tW(e){if(e===null||Uo(e)||jst(e))return 1;if(Fst(e))return 2}function UD(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const rL={name:"attention",resolveAll:qst,tokenize:Gst};function qst(e,t){let n=-1,r,i,o,a,s,l,c,u;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},f={...e[n][1].start};nW(d,-l),nW(f,l),a={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},o={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...a.start},end:{...s.end}},e[r][1].end={...a.start},e[n][1].start={...s.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Da(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Da(c,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),c=Da(c,UD(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Da(c,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=Da(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,Tl(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Gst(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=tW(r);let o;return a;function a(l){return o=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===o)return e.consume(l),s;const c=e.exit("attentionSequence"),u=tW(l),d=!u||u===2&&i||n.includes(l),f=!i||i===2&&u||n.includes(r);return c._open=!!(o===42?d:d&&(i||!f)),c._close=!!(o===42?f:f&&(u||!d)),t(l)}}function nW(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Kst={name:"autolink",tokenize:Xst};function Xst(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return dl(h)?(e.consume(h),a):h===64?n(h):c(h)}function a(h){return h===43||h===45||h===46||ma(h)?(r=1,s(h)):c(h)}function s(h){return h===58?(e.consume(h),r=0,l):(h===43||h===45||h===46||ma(h))&&r++<32?(e.consume(h),s):(r=0,c(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||tL(h)?n(h):(e.consume(h),l)}function c(h){return h===64?(e.consume(h),u):Nst(h)?(e.consume(h),c):n(h)}function u(h){return ma(h)?d(h):n(h)}function d(h){return h===46?(e.consume(h),r=0,u):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):f(h)}function f(h){if((h===45||ma(h))&&r++<63){const p=h===45?f:d;return e.consume(h),p}return n(h)}}const O_={partial:!0,tokenize:Yst};function Yst(e,t,n){return r;function r(o){return Yn(o)?ur(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||rn(o)?t(o):n(o)}}const cae={continuation:{tokenize:Zst},exit:Jst,name:"blockQuote",tokenize:Qst};function Qst(e,t,n){const r=this;return i;function i(a){if(a===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),o}return n(a)}function o(a){return Yn(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function Zst(e,t,n){const r=this;return i;function i(a){return Yn(a)?ur(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return e.attempt(cae,t,n)(a)}}function Jst(e){e.exit("blockQuote")}const uae={name:"characterEscape",tokenize:elt};function elt(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Dst(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const dae={name:"characterReference",tokenize:tlt};function tlt(e,t,n){const r=this;let i=0,o,a;return s;function s(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),o=31,a=ma,u(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=Bst,u):(e.enter("characterReferenceValue"),o=7,a=nL,u(d))}function u(d){if(d===59&&i){const f=e.exit("characterReferenceValue");return a===ma&&!j0(r.sliceSerialize(f))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(d)&&i++<o?(e.consume(d),u):n(d)}}const rW={partial:!0,tokenize:rlt},iW={concrete:!0,name:"codeFenced",tokenize:nlt};function nlt(e,t,n){const r=this,i={partial:!0,tokenize:C};let o=0,a=0,s;return l;function l(w){return c(w)}function c(w){const E=r.events[r.events.length-1];return o=E&&E[1].type==="linePrefix"?E[2].sliceSerialize(E[1],!0).length:0,s=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(w)}function u(w){return w===s?(a++,e.consume(w),u):a<3?n(w):(e.exit("codeFencedFenceSequence"),Yn(w)?ur(e,d,"whitespace")(w):d(w))}function d(w){return w===null||rn(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(rW,g,S)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(w))}function f(w){return w===null||rn(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(w)):Yn(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ur(e,h,"whitespace")(w)):w===96&&w===s?n(w):(e.consume(w),f)}function h(w){return w===null||rn(w)?d(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===null||rn(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(w)):w===96&&w===s?n(w):(e.consume(w),p)}function g(w){return e.attempt(i,S,m)(w)}function m(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),y}function y(w){return o>0&&Yn(w)?ur(e,b,"linePrefix",o+1)(w):b(w)}function b(w){return w===null||rn(w)?e.check(rW,g,S)(w):(e.enter("codeFlowValue"),x(w))}function x(w){return w===null||rn(w)?(e.exit("codeFlowValue"),b(w)):(e.consume(w),x)}function S(w){return e.exit("codeFenced"),t(w)}function C(w,E,_){let k=0;return P;function P(I){return w.enter("lineEnding"),w.consume(I),w.exit("lineEnding"),O}function O(I){return w.enter("codeFencedFence"),Yn(I)?ur(w,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):T(I)}function T(I){return I===s?(w.enter("codeFencedFenceSequence"),R(I)):_(I)}function R(I){return I===s?(k++,w.consume(I),R):k>=a?(w.exit("codeFencedFenceSequence"),Yn(I)?ur(w,$,"whitespace")(I):$(I)):_(I)}function $(I){return I===null||rn(I)?(w.exit("codeFencedFence"),E(I)):_(I)}}}function rlt(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const D$={name:"codeIndented",tokenize:olt},ilt={partial:!0,tokenize:alt};function olt(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),ur(e,o,"linePrefix",5)(c)}function o(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?a(c):n(c)}function a(c){return c===null?l(c):rn(c)?e.attempt(ilt,a,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||rn(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function alt(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):rn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):ur(e,o,"linePrefix",5)(a)}function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):rn(a)?i(a):n(a)}}const slt={name:"codeText",previous:clt,resolve:llt,tokenize:ult};function llt(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function clt(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ult(e,t,n){let r=0,i,o;return a;function a(d){return e.enter("codeText"),e.enter("codeTextSequence"),s(d)}function s(d){return d===96?(e.consume(d),r++,s):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(o=e.enter("codeTextSequence"),i=0,u(d)):rn(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||rn(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),c)}function u(d){return d===96?(e.consume(d),i++,u):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(o.type="codeTextData",c(d))}}class dlt{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Gm(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Gm(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Gm(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Gm(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Gm(this.left,n.reverse())}}}function Gm(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function fae(e){const t={};let n=-1,r,i,o,a,s,l,c;const u=new dlt(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type==="chunkFlow"&&u.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,flt(u,n)),n=t[n],c=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(a=u.get(o),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(u.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return Tl(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}function flt(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const s=a.events,l=[],c={};let u,d,f=-1,h=n,p=0,g=0;const m=[g];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),d&&a.defineSkip(h.start),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++f<s.length;)s[f][0]==="exit"&&s[f-1][0]==="enter"&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(g=f+1,m.push(g),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(a.events=[],h?(h._tokenizer=void 0,h.previous=void 0):m.pop(),f=m.length;f--;){const y=s.slice(m[f],m[f+1]),b=o.pop();l.push([b,b+y.length-1]),e.splice(b,2,y)}for(l.reverse(),f=-1;++f<l.length;)c[p+l[f][0]]=p+l[f][1],p+=l[f][1]-l[f][0]-1;return c}const hlt={resolve:glt,tokenize:mlt},plt={partial:!0,tokenize:vlt};function glt(e){return fae(e),e}function mlt(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?o(s):rn(s)?e.check(plt,a,o)(s):(e.consume(s),i)}function o(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function a(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function vlt(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ur(e,o,"linePrefix")}function o(a){if(a===null||rn(a))return n(a);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function hae(e,t,n,r,i,o,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return d;function d(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),f):y===null||y===32||y===41||tL(y)?n(y):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),g(y))}function f(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(s),f(y)):y===null||y===60||rn(y)?n(y):(e.consume(y),y===92?p:h)}function p(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function g(y){return!u&&(y===null||y===41||Uo(y))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(y)):u<c&&y===40?(e.consume(y),u++,g):y===41?(e.consume(y),u--,g):y===null||y===32||y===40||tL(y)?n(y):(e.consume(y),y===92?m:g)}function m(y){return y===40||y===41||y===92?(e.consume(y),g):g(y)}}function pae(e,t,n,r,i,o){const a=this;let s=0,l;return c;function c(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),u}function u(h){return s>999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):rn(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===null||h===91||h===93||rn(h)||s++>999?(e.exit("chunkString"),u(h)):(e.consume(h),l||(l=!Yn(h)),h===92?f:d)}function f(h){return h===91||h===92||h===93?(e.consume(h),s++,d):d(h)}}function gae(e,t,n,r,i,o){let a;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),a=f===40?41:f,l):n(f)}function l(f){return f===a?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(o),c(f))}function c(f){return f===a?(e.exit(o),l(a)):f===null?n(f):rn(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),ur(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(f){return f===a||f===null||rn(f)?(e.exit("chunkString"),c(f)):(e.consume(f),f===92?d:u)}function d(f){return f===a||f===92?(e.consume(f),u):u(f)}}function sy(e,t){let n;return r;function r(i){return rn(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Yn(i)?ur(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const ylt={name:"definition",tokenize:xlt},blt={partial:!0,tokenize:Clt};function xlt(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),a(h)}function a(h){return pae.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=Cp(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return Uo(h)?sy(e,c)(h):c(h)}function c(h){return hae(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function u(h){return e.attempt(blt,d,d)(h)}function d(h){return Yn(h)?ur(e,f,"whitespace")(h):f(h)}function f(h){return h===null||rn(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function Clt(e,t,n){return r;function r(s){return Uo(s)?sy(e,i)(s):n(s)}function i(s){return gae(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return Yn(s)?ur(e,a,"whitespace")(s):a(s)}function a(s){return s===null||rn(s)?t(s):n(s)}}const Slt={name:"hardBreakEscape",tokenize:wlt};function wlt(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return rn(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Elt={name:"headingAtx",resolve:_lt,tokenize:klt};function _lt(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Tl(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function klt(e,t,n){let r=0;return i;function i(u){return e.enter("atxHeading"),o(u)}function o(u){return e.enter("atxHeadingSequence"),a(u)}function a(u){return u===35&&r++<6?(e.consume(u),a):u===null||Uo(u)?(e.exit("atxHeadingSequence"),s(u)):n(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||rn(u)?(e.exit("atxHeading"),t(u)):Yn(u)?ur(e,s,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),s(u))}function c(u){return u===null||u===35||Uo(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),c)}}const Tlt=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],oW=["pre","script","style","textarea"],$lt={concrete:!0,name:"htmlFlow",resolveTo:Alt,tokenize:Ilt},Olt={partial:!0,tokenize:Llt},Plt={partial:!0,tokenize:Rlt};function Alt(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Ilt(e,t,n){const r=this;let i,o,a,s,l;return c;function c(D){return u(D)}function u(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),d}function d(D){return D===33?(e.consume(D),f):D===47?(e.consume(D),o=!0,g):D===63?(e.consume(D),i=3,r.interrupt?t:N):dl(D)?(e.consume(D),a=String.fromCharCode(D),m):n(D)}function f(D){return D===45?(e.consume(D),i=2,h):D===91?(e.consume(D),i=5,s=0,p):dl(D)?(e.consume(D),i=4,r.interrupt?t:N):n(D)}function h(D){return D===45?(e.consume(D),r.interrupt?t:N):n(D)}function p(D){const X="CDATA[";return D===X.charCodeAt(s++)?(e.consume(D),s===X.length?r.interrupt?t:T:p):n(D)}function g(D){return dl(D)?(e.consume(D),a=String.fromCharCode(D),m):n(D)}function m(D){if(D===null||D===47||D===62||Uo(D)){const X=D===47,Y=a.toLowerCase();return!X&&!o&&oW.includes(Y)?(i=1,r.interrupt?t(D):T(D)):Tlt.includes(a.toLowerCase())?(i=6,X?(e.consume(D),y):r.interrupt?t(D):T(D)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(D):o?b(D):x(D))}return D===45||ma(D)?(e.consume(D),a+=String.fromCharCode(D),m):n(D)}function y(D){return D===62?(e.consume(D),r.interrupt?t:T):n(D)}function b(D){return Yn(D)?(e.consume(D),b):P(D)}function x(D){return D===47?(e.consume(D),P):D===58||D===95||dl(D)?(e.consume(D),S):Yn(D)?(e.consume(D),x):P(D)}function S(D){return D===45||D===46||D===58||D===95||ma(D)?(e.consume(D),S):C(D)}function C(D){return D===61?(e.consume(D),w):Yn(D)?(e.consume(D),C):x(D)}function w(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),l=D,E):Yn(D)?(e.consume(D),w):_(D)}function E(D){return D===l?(e.consume(D),l=null,k):D===null||rn(D)?n(D):(e.consume(D),E)}function _(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||Uo(D)?C(D):(e.consume(D),_)}function k(D){return D===47||D===62||Yn(D)?x(D):n(D)}function P(D){return D===62?(e.consume(D),O):n(D)}function O(D){return D===null||rn(D)?T(D):Yn(D)?(e.consume(D),O):n(D)}function T(D){return D===45&&i===2?(e.consume(D),A):D===60&&i===1?(e.consume(D),L):D===62&&i===4?(e.consume(D),z):D===63&&i===3?(e.consume(D),N):D===93&&i===5?(e.consume(D),j):rn(D)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Olt,H,R)(D)):D===null||rn(D)?(e.exit("htmlFlowData"),R(D)):(e.consume(D),T)}function R(D){return e.check(Plt,$,H)(D)}function $(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),I}function I(D){return D===null||rn(D)?R(D):(e.enter("htmlFlowData"),T(D))}function A(D){return D===45?(e.consume(D),N):T(D)}function L(D){return D===47?(e.consume(D),a="",M):T(D)}function M(D){if(D===62){const X=a.toLowerCase();return oW.includes(X)?(e.consume(D),z):T(D)}return dl(D)&&a.length<8?(e.consume(D),a+=String.fromCharCode(D),M):T(D)}function j(D){return D===93?(e.consume(D),N):T(D)}function N(D){return D===62?(e.consume(D),z):D===45&&i===2?(e.consume(D),N):T(D)}function z(D){return D===null||rn(D)?(e.exit("htmlFlowData"),H(D)):(e.consume(D),z)}function H(D){return e.exit("htmlFlow"),t(D)}}function Rlt(e,t,n){const r=this;return i;function i(a){return rn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function Llt(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(O_,t,n)}}const Mlt={name:"htmlText",tokenize:Nlt};function Nlt(e,t,n){const r=this;let i,o,a;return s;function s(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),l}function l(N){return N===33?(e.consume(N),c):N===47?(e.consume(N),C):N===63?(e.consume(N),x):dl(N)?(e.consume(N),_):n(N)}function c(N){return N===45?(e.consume(N),u):N===91?(e.consume(N),o=0,p):dl(N)?(e.consume(N),b):n(N)}function u(N){return N===45?(e.consume(N),h):n(N)}function d(N){return N===null?n(N):N===45?(e.consume(N),f):rn(N)?(a=d,L(N)):(e.consume(N),d)}function f(N){return N===45?(e.consume(N),h):d(N)}function h(N){return N===62?A(N):N===45?f(N):d(N)}function p(N){const z="CDATA[";return N===z.charCodeAt(o++)?(e.consume(N),o===z.length?g:p):n(N)}function g(N){return N===null?n(N):N===93?(e.consume(N),m):rn(N)?(a=g,L(N)):(e.consume(N),g)}function m(N){return N===93?(e.consume(N),y):g(N)}function y(N){return N===62?A(N):N===93?(e.consume(N),y):g(N)}function b(N){return N===null||N===62?A(N):rn(N)?(a=b,L(N)):(e.consume(N),b)}function x(N){return N===null?n(N):N===63?(e.consume(N),S):rn(N)?(a=x,L(N)):(e.consume(N),x)}function S(N){return N===62?A(N):x(N)}function C(N){return dl(N)?(e.consume(N),w):n(N)}function w(N){return N===45||ma(N)?(e.consume(N),w):E(N)}function E(N){return rn(N)?(a=E,L(N)):Yn(N)?(e.consume(N),E):A(N)}function _(N){return N===45||ma(N)?(e.consume(N),_):N===47||N===62||Uo(N)?k(N):n(N)}function k(N){return N===47?(e.consume(N),A):N===58||N===95||dl(N)?(e.consume(N),P):rn(N)?(a=k,L(N)):Yn(N)?(e.consume(N),k):A(N)}function P(N){return N===45||N===46||N===58||N===95||ma(N)?(e.consume(N),P):O(N)}function O(N){return N===61?(e.consume(N),T):rn(N)?(a=O,L(N)):Yn(N)?(e.consume(N),O):k(N)}function T(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),i=N,R):rn(N)?(a=T,L(N)):Yn(N)?(e.consume(N),T):(e.consume(N),$)}function R(N){return N===i?(e.consume(N),i=void 0,I):N===null?n(N):rn(N)?(a=R,L(N)):(e.consume(N),R)}function $(N){return N===null||N===34||N===39||N===60||N===61||N===96?n(N):N===47||N===62||Uo(N)?k(N):(e.consume(N),$)}function I(N){return N===47||N===62||Uo(N)?k(N):n(N)}function A(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):n(N)}function L(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),M}function M(N){return Yn(N)?ur(e,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):j(N)}function j(N){return e.enter("htmlTextData"),a(N)}}const qD={name:"labelEnd",resolveAll:jlt,resolveTo:zlt,tokenize:Hlt},Blt={tokenize:Vlt},Dlt={tokenize:Wlt},Flt={tokenize:Ult};function jlt(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Tl(e,0,e.length,n),e}function zlt(e,t){let n=e.length,r=0,i,o,a,s;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const l={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[o][1].start},end:{...e[a][1].end}},u={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[a-2][1].start}};return s=[["enter",l,t],["enter",c,t]],s=Da(s,e.slice(o+1,o+r+3)),s=Da(s,[["enter",u,t]]),s=Da(s,UD(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),s=Da(s,[["exit",u,t],e[a-2],e[a-1],["exit",c,t]]),s=Da(s,e.slice(a+1)),s=Da(s,[["exit",l,t]]),Tl(e,o,e.length,s),e}function Hlt(e,t,n){const r=this;let i=r.events.length,o,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return s;function s(f){return o?o._inactive?d(f):(a=r.parser.defined.includes(Cp(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):n(f)}function l(f){return f===40?e.attempt(Blt,u,a?u:d)(f):f===91?e.attempt(Dlt,u,a?c:d)(f):a?u(f):d(f)}function c(f){return e.attempt(Flt,u,d)(f)}function u(f){return t(f)}function d(f){return o._balanced=!0,n(f)}}function Vlt(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return Uo(d)?sy(e,o)(d):o(d)}function o(d){return d===41?u(d):hae(e,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function a(d){return Uo(d)?sy(e,l)(d):u(d)}function s(d){return n(d)}function l(d){return d===34||d===39||d===40?gae(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):u(d)}function c(d){return Uo(d)?sy(e,u)(d):u(d)}function u(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function Wlt(e,t,n){const r=this;return i;function i(s){return pae.call(r,e,o,a,"reference","referenceMarker","referenceString")(s)}function o(s){return r.parser.defined.includes(Cp(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function a(s){return n(s)}}function Ult(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const qlt={name:"labelStartImage",resolveAll:qD.resolveAll,tokenize:Glt};function Glt(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),o}function o(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),a):n(s)}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Klt={name:"labelStartLink",resolveAll:qD.resolveAll,tokenize:Xlt};function Xlt(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const F$={name:"lineEnding",tokenize:Ylt};function Ylt(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ur(e,t,"linePrefix")}}const xC={name:"thematicBreak",tokenize:Qlt};function Qlt(e,t,n){let r=0,i;return o;function o(c){return e.enter("thematicBreak"),a(c)}function a(c){return i=c,s(c)}function s(c){return c===i?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||rn(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),Yn(c)?ur(e,s,"whitespace")(c):s(c))}}const Mo={continuation:{tokenize:tct},exit:rct,name:"list",tokenize:ect},Zlt={partial:!0,tokenize:ict},Jlt={partial:!0,tokenize:nct};function ect(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(h){const p=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:nL(h)){if(r.containerState.type||(r.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(xC,n,c)(h):c(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return nL(h)&&++a<10?(e.consume(h),l):(!r.interrupt||a<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):n(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(O_,r.interrupt?n:u,e.attempt(Zlt,f,d))}function u(h){return r.containerState.initialBlankLine=!0,o++,f(h)}function d(h){return Yn(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),f):n(h)}function f(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function tct(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(O_,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ur(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!Yn(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Jlt,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,ur(e,e.attempt(Mo,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function nct(e,t,n){const r=this;return ur(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function rct(e){e.exit(this.containerState.type)}function ict(e,t,n){const r=this;return ur(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!Yn(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const aW={name:"setextUnderline",resolveTo:oct,tokenize:act};function oct(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=a,e.push(["exit",a,t]),e}function act(e,t,n){const r=this;let i;return o;function o(c){let u=r.events.length,d;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){d=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=c,a(c)):n(c)}function a(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),Yn(c)?ur(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||rn(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const sct={tokenize:lct};function lct(e){const t=this,n=e.attempt(O_,r,e.attempt(this.parser.constructs.flowInitial,i,ur(e,e.attempt(this.parser.constructs.flow,i,e.attempt(hlt,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const cct={resolveAll:vae()},uct=mae("string"),dct=mae("text");function mae(e){return{resolveAll:vae(e==="text"?fct:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,s);return a;function a(u){return c(u)?o(u):s(u)}function s(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),o(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const d=i[u];let f=-1;if(d)for(;++f<d.length;){const h=d[f];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function vae(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function fct(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,a=-1,s=0,l;for(;o--;){const c=i[o];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(c===-2)l=!0,s++;else if(c!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const c={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:r.start._bufferIndex+a,_index:r.start._index+o,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const hct={42:Mo,43:Mo,45:Mo,48:Mo,49:Mo,50:Mo,51:Mo,52:Mo,53:Mo,54:Mo,55:Mo,56:Mo,57:Mo,62:cae},pct={91:ylt},gct={[-2]:D$,[-1]:D$,32:D$},mct={35:Elt,42:xC,45:[aW,xC],60:$lt,61:aW,95:xC,96:iW,126:iW},vct={38:dae,92:uae},yct={[-5]:F$,[-4]:F$,[-3]:F$,33:qlt,38:dae,42:rL,60:[Kst,Mlt],91:Klt,92:[Slt,uae],93:qD,95:rL,96:slt},bct={null:[rL,cct]},xct={null:[42,95]},Cct={null:[]},Sct=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:xct,contentInitial:pct,disable:Cct,document:hct,flow:mct,flowInitial:gct,insideSpan:bct,string:vct,text:yct},Symbol.toStringTag,{value:"Module"}));function wct(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let a=[],s=[];const l={attempt:E(C),check:E(w),consume:b,enter:x,exit:S,interrupt:E(w,{interrupt:!0})},c={code:null,containerState:{},defineSkip:g,events:[],now:p,parser:e,previous:null,sliceSerialize:f,sliceStream:h,write:d};let u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function d(O){return a=Da(a,O),m(),a[a.length-1]!==null?[]:(_(t,0),c.events=UD(o,c.events,c),c.events)}function f(O,T){return _ct(h(O),T)}function h(O){return Ect(a,O)}function p(){const{_bufferIndex:O,_index:T,line:R,column:$,offset:I}=r;return{_bufferIndex:O,_index:T,line:R,column:$,offset:I}}function g(O){i[O.line]=O.column,P()}function m(){let O;for(;r._index<a.length;){const T=a[r._index];if(typeof T=="string")for(O=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===O&&r._bufferIndex<T.length;)y(T.charCodeAt(r._bufferIndex));else y(T)}}function y(O){u=u(O)}function b(O){rn(O)?(r.line++,r.column=1,r.offset+=O===-3?2:1,P()):O!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=O}function x(O,T){const R=T||{};return R.type=O,R.start=p(),c.events.push(["enter",R,c]),s.push(R),R}function S(O){const T=s.pop();return T.end=p(),c.events.push(["exit",T,c]),T}function C(O,T){_(O,T.from)}function w(O,T){T.restore()}function E(O,T){return R;function R($,I,A){let L,M,j,N;return Array.isArray($)?H($):"tokenize"in $?H([$]):z($);function z(ne){return ce;function ce(re){const Z=re!==null&&ne[re],ee=re!==null&&ne.null,K=[...Array.isArray(Z)?Z:Z?[Z]:[],...Array.isArray(ee)?ee:ee?[ee]:[]];return H(K)(re)}}function H(ne){return L=ne,M=0,ne.length===0?A:D(ne[M])}function D(ne){return ce;function ce(re){return N=k(),j=ne,ne.partial||(c.currentConstruct=ne),ne.name&&c.parser.constructs.disable.null.includes(ne.name)?Y():ne.tokenize.call(T?Object.assign(Object.create(c),T):c,l,X,Y)(re)}}function X(ne){return O(j,N),I}function Y(ne){return N.restore(),++M<L.length?D(L[M]):A}}}function _(O,T){O.resolveAll&&!o.includes(O)&&o.push(O),O.resolve&&Tl(c.events,T,c.events.length-T,O.resolve(c.events.slice(T),c)),O.resolveTo&&(c.events=O.resolveTo(c.events,c))}function k(){const O=p(),T=c.previous,R=c.currentConstruct,$=c.events.length,I=Array.from(s);return{from:$,restore:A};function A(){r=O,c.previous=T,c.currentConstruct=R,c.events.length=$,s=I,P()}}function P(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Ect(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function _ct(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=`
|
|
@@ -2288,7 +2288,7 @@ ${o}
|
|
|
2288
2288
|
`))})}function bwt(e){var t=e.codeString,n=e.codeStyle,r=e.containerStyle,i=r===void 0?{float:"left",paddingRight:"10px"}:r,o=e.numberStyle,a=o===void 0?{}:o,s=e.startingLineNumber;return B.createElement("code",{style:Object.assign({},n,i)},ywt({lines:t.replace(/\n$/,"").split(`
|
|
2289
2289
|
`),style:a,startingLineNumber:s}))}function xwt(e){return"".concat(e.toString().length,".25em")}function qce(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function Gce(e,t,n){var r={display:"inline-block",minWidth:xwt(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},i=typeof e=="function"?e(t):e,o=mu(mu({},r),i);return o}function OC(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,i=e.largestLineNumber,o=e.showInlineLineNumbers,a=e.lineProps,s=a===void 0?{}:a,l=e.className,c=l===void 0?[]:l,u=e.showLineNumbers,d=e.wrapLongLines,f=e.wrapLines,h=f===void 0?!1:f,p=h?mu({},typeof s=="function"?s(n):s):{};if(p.className=p.className?[].concat(De(p.className.trim().split(/\s+/)),De(c)):c,n&&o){var g=Gce(r,n,i);t.unshift(qce(n,g))}return d&u&&(p.style=mu({display:"flex"},p.style)),{type:"element",tagName:"span",properties:p,children:t}}function Kce(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];e.length===void 0&&(e=[e]);for(var r=0;r<e.length;r++){var i=e[r];if(i.type==="text")n.push(OC({children:[i],className:De(new Set(t))}));else if(i.children){var o,a=t.concat(((o=i.properties)===null||o===void 0?void 0:o.className)||[]);Kce(i.children,a).forEach(function(s){return n.push(s)})}}return n}function Cwt(e,t,n,r,i,o,a,s,l){var c,u=Kce(e.value),d=[],f=-1,h=0;function p(C,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return OC({children:C,lineNumber:w,lineNumberStyle:s,largestLineNumber:a,showInlineLineNumbers:i,lineProps:n,className:E,showLineNumbers:r,wrapLongLines:l,wrapLines:t})}function g(C,w){if(r&&w&&i){var E=Gce(s,w,a);C.unshift(qce(w,E))}return C}function m(C,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||E.length>0?p(C,w,E):g(C,w)}for(var y=function(){var w=u[h],E=w.children[0].value,_=vwt(E);if(_){var k=E.split(`
|
|
2290
2290
|
`);k.forEach(function(P,O){var T=r&&d.length+o,R={type:"text",value:"".concat(P,`
|
|
2291
|
-
`)};if(O===0){var $=u.slice(f+1,h).concat(OC({children:[R],className:w.properties.className})),I=m($,T);d.push(I)}else if(O===k.length-1){var A=u[h+1]&&u[h+1].children&&u[h+1].children[0],L={type:"text",value:"".concat(P)};if(A){var M=OC({children:[L],className:w.properties.className});u.splice(h+1,0,M)}else{var j=[L],N=m(j,T,w.properties.className);d.push(N)}}else{var z=[R],H=m(z,T,w.properties.className);d.push(H)}}),f=h}h++};h<u.length;)y();if(f!==u.length-1){var b=u.slice(f+1,u.length);if(b&&b.length){var x=r&&d.length+o,S=m(b,x);d.push(S)}}return t?d:(c=[]).concat.apply(c,d)}function Swt(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(i,o){return Uce({node:i,stylesheet:n,useInlineStyles:r,key:"code-segment-".concat(o)})})}function Xce(e){return e&&typeof e.highlightAuto<"u"}function wwt(e){var t=e.astGenerator,n=e.language,r=e.code,i=e.defaultCodeValue;if(Xce(t)){var o=pwt(t,n);return n==="text"?{value:i,language:"text"}:o?t.highlight(n,r):t.highlightAuto(r)}try{return n&&n!=="text"?{value:t.highlight(r,n)}:{value:i}}catch{return{value:i}}}function Ewt(e,t){return function(r){var i,o,a=r.language,s=r.children,l=r.style,c=l===void 0?t:l,u=r.customStyle,d=u===void 0?{}:u,f=r.codeTagProps,h=f===void 0?{className:a?"language-".concat(a):void 0,style:mu(mu({},c['code[class*="language-"]']),c['code[class*="language-'.concat(a,'"]')])}:f,p=r.useInlineStyles,g=p===void 0?!0:p,m=r.showLineNumbers,y=m===void 0?!1:m,b=r.showInlineLineNumbers,x=b===void 0?!0:b,S=r.startingLineNumber,C=S===void 0?1:S,w=r.lineNumberContainerStyle,E=r.lineNumberStyle,_=E===void 0?{}:E,k=r.wrapLines,P=r.wrapLongLines,O=P===void 0?!1:P,T=r.lineProps,R=T===void 0?{}:T,$=r.renderer,I=r.PreTag,A=I===void 0?"pre":I,L=r.CodeTag,M=L===void 0?"code":L,j=r.code,N=j===void 0?(Array.isArray(s)?s[0]:s)||"":j,z=r.astGenerator,H=Nt(r,gwt);z=z||e;var D=y?B.createElement(bwt,{containerStyle:w,codeStyle:h.style||{},numberStyle:_,startingLineNumber:C,codeString:N}):null,X=c.hljs||c['pre[class*="language-"]']||{backgroundColor:"#fff"},Y=Xce(z)?"hljs":"prismjs",ne=g?Object.assign({},H,{style:Object.assign({},X,d)}):Object.assign({},H,{className:H.className?"".concat(Y," ").concat(H.className):Y,style:Object.assign({},d)});if(O?h.style=mu({whiteSpace:"pre-wrap"},h.style):h.style=mu({whiteSpace:"pre"},h.style),!z)return B.createElement(A,ne,D,B.createElement(M,h,N));(k===void 0&&$||O)&&(k=!0),$=$||Swt;var ce=[{type:"text",value:N}],re=wwt({astGenerator:z,language:a,code:N,defaultCodeValue:ce});re.language===null&&(re.value=ce);var Z=(i=(o=N.match(/\n/g))===null||o===void 0?void 0:o.length)!==null&&i!==void 0?i:0,ee=C+Z,K=Cwt(re,k,R,y,x,C,ee,_,O);return B.createElement(A,ne,B.createElement(M,h,!x&&D,$({rows:K,stylesheet:c,useInlineStyles:g})))}}const Hq=/[#.]/g;function _wt(e,t){const n=e||"",r={};let i=0,o,a;for(;i<n.length;){Hq.lastIndex=i;const s=Hq.exec(n),l=n.slice(i,s?s.index:n.length);l&&(o?o==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:a=l,i+=l.length),s&&(o=s[0],i++)}return{type:"element",tagName:a||t||"div",properties:r,children:[]}}function Yce(e,t,n){const r=n?Owt(n):void 0;function i(o,a,...s){let l;if(o==null){l={type:"root",children:[]};const c=a;s.unshift(c)}else{l=_wt(o,t);const c=l.tagName.toLowerCase(),u=r?r.get(c):void 0;if(l.tagName=u||c,kwt(a))s.unshift(a);else for(const[d,f]of Object.entries(a))Twt(e,l.properties,d,f)}for(const c of s)lM(l.children,c);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return i}function kwt(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const o=i;for(const a of o)if(typeof a!="number"&&typeof a!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Twt(e,t,n,r){const i=DD(e,n);let o;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;o=r}else typeof r=="boolean"?o=r:typeof r=="string"?i.spaceSeparated?o=VV(r):i.commaSeparated?o=DV(r):i.commaOrSpaceSeparated?o=VV(DV(r).join(" ")):o=Vq(i,i.property,r):Array.isArray(r)?o=[...r]:o=i.property==="style"?$wt(r):String(r);if(Array.isArray(o)){const a=[];for(const s of o)a.push(Vq(i,i.property,s));o=a}i.property==="className"&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[i.property]=o}}function lM(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)lM(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?lM(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Vq(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||D0(n)===D0(t)))return!0}return n}function $wt(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function Owt(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Pwt=["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"],Awt=Yce(FD,"div");Yce(hm,"g",Pwt);const Wq={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function Qce(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function Iwt(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Rwt(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Uq(e){return Rwt(e)||Qce(e)}const Lwt=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function Mwt(e,t){const n={},r=typeof n.additional=="string"?n.additional.charCodeAt(0):n.additional,i=[];let o=0,a=-1,s="",l,c;n.position&&("start"in n.position||"indent"in n.position?(c=n.position.indent,l=n.position.start):l=n.position);let u=(l?l.line:0)||1,d=(l?l.column:0)||1,f=p(),h;for(o--;++o<=e.length;)if(h===10&&(d=(c?c[a]:0)||1),h=e.charCodeAt(o),h===38){const y=e.charCodeAt(o+1);if(y===9||y===10||y===12||y===32||y===38||y===60||Number.isNaN(y)||r&&y===r){s+=String.fromCharCode(h),d++;continue}const b=o+1;let x=b,S=b,C;if(y===35){S=++x;const R=e.charCodeAt(S);R===88||R===120?(C="hexadecimal",S=++x):C="decimal"}else C="named";let w="",E="",_="";const k=C==="named"?Uq:C==="decimal"?Qce:Iwt;for(S--;++S<=e.length;){const R=e.charCodeAt(S);if(!k(R))break;_+=String.fromCharCode(R),C==="named"&&fse.includes(_)&&(w=_,E=j0(_))}let P=e.charCodeAt(S)===59;if(P){S++;const R=C==="named"?j0(_):!1;R&&(w=_,E=R)}let O=1+S-b,T="";if(!(!P&&n.nonTerminated===!1))if(!_)C!=="named"&&g(4,O);else if(C==="named"){if(P&&!E)g(5,1);else if(w!==_&&(S=x+w.length,O=1+S-x,P=!1),!P){const R=w?1:3;if(n.attribute){const $=e.charCodeAt(S);$===61?(g(R,O),E=""):Uq($)?E="":g(R,O)}else g(R,O)}T=E}else{P||g(2,O);let R=Number.parseInt(_,C==="hexadecimal"?16:10);if(Nwt(R))g(7,O),T="�";else if(R in Wq)g(6,O),T=Wq[R];else{let $="";Bwt(R)&&g(6,O),R>65535&&(R-=65536,$+=String.fromCharCode(R>>>10|55296),R=56320|R&1023),T=$+String.fromCharCode(R)}}if(T){m(),f=p(),o=S-1,d+=S-b+1,i.push(T);const R=p();R.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,T,{start:f,end:R},e.slice(b-1,S)),f=R}else _=e.slice(b-1,S),s+=_,d+=_.length,o=S-1}else h===10&&(u++,a++,d=0),Number.isNaN(h)?m():(s+=String.fromCharCode(h),d++);return i.join("");function p(){return{line:u,column:d,offset:o+((l?l.offset:0)||0)}}function g(y,b){let x;n.warning&&(x=p(),x.column+=b,x.offset+=b,n.warning.call(n.warningContext||void 0,Lwt[y],x,y))}function m(){s&&(i.push(s),n.text&&n.text.call(n.textContext||void 0,s,{start:f,end:p()}),s="")}}function Nwt(e){return e>=55296&&e<=57343||e>1114111}function Bwt(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var Dwt=0,M1={},bi={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++Dwt}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(bi.util.type(t)){case"Object":if(i=bi.util.objId(t),n[i])return n[i];r={},n[i]=r;for(var o in t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case"Array":return i=bi.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(a,s){r[s]=e(a,n)}),r);default:return t}}},languages:{plain:M1,plaintext:M1,text:M1,txt:M1,extend:function(e,t){var n=bi.util.clone(bi.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||bi.languages;var i=r[e],o={};for(var a in i)if(i.hasOwnProperty(a)){if(a==t)for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s]);n.hasOwnProperty(a)||(o[a]=i[a])}var l=r[e];return r[e]=o,bi.languages.DFS(bi.languages,function(c,u){u===l&&c!=e&&(this[c]=o)}),o},DFS:function e(t,n,r,i){i=i||{};var o=bi.util.objId;for(var a in t)if(t.hasOwnProperty(a)){n.call(t,a,t[a],r||a);var s=t[a],l=bi.util.type(s);l==="Object"&&!i[o(s)]?(i[o(s)]=!0,e(s,n,null,i)):l==="Array"&&!i[o(s)]&&(i[o(s)]=!0,e(s,n,a,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(bi.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=bi.tokenize(r.code,r.grammar),bi.hooks.run("after-tokenize",r),py.stringify(bi.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new Fwt;return PC(i,i.head,e),Zce(e,i,t,i.head,0),zwt(i)},hooks:{all:{},add:function(e,t){var n=bi.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=bi.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:py};function py(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function qq(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var o=i[1].length;i.index+=o,i[0]=i[0].slice(o)}return i}function Zce(e,t,n,r,i,o){for(var a in n)if(!(!n.hasOwnProperty(a)||!n[a])){var s=n[a];s=Array.isArray(s)?s:[s];for(var l=0;l<s.length;++l){if(o&&o.cause==a+","+l)return;var c=s[l],u=c.inside,d=!!c.lookbehind,f=!!c.greedy,h=c.alias;if(f&&!c.pattern.global){var p=c.pattern.toString().match(/[imsuy]*$/)[0];c.pattern=RegExp(c.pattern.source,p+"g")}for(var g=c.pattern||c,m=r.next,y=i;m!==t.tail&&!(o&&y>=o.reach);y+=m.value.length,m=m.next){var b=m.value;if(t.length>e.length)return;if(!(b instanceof py)){var x=1,S;if(f){if(S=qq(g,y,e,d),!S||S.index>=e.length)break;var _=S.index,C=S.index+S[0].length,w=y;for(w+=m.value.length;_>=w;)m=m.next,w+=m.value.length;if(w-=m.value.length,y=w,m.value instanceof py)continue;for(var E=m;E!==t.tail&&(w<C||typeof E.value=="string");E=E.next)x++,w+=E.value.length;x--,b=e.slice(y,w),S.index-=y}else if(S=qq(g,0,b,d),!S)continue;var _=S.index,k=S[0],P=b.slice(0,_),O=b.slice(_+k.length),T=y+b.length;o&&T>o.reach&&(o.reach=T);var R=m.prev;P&&(R=PC(t,R,P),y+=P.length),jwt(t,R,x);var $=new py(a,u?bi.tokenize(k,u):k,h,k);if(m=PC(t,R,$),O&&PC(t,m,O),x>1){var I={cause:a+","+l,reach:T};Zce(e,t,n,m.prev,y,I),o&&I.reach>o.reach&&(o.reach=I.reach)}}}}}}function Fwt(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function PC(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function jwt(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}function zwt(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}const Jce=bi;function eue(){}eue.prototype=Jce;const Yr=new eue;Yr.highlight=Hwt;Yr.register=Vwt;Yr.alias=Wwt;Yr.registered=Uwt;Yr.listLanguages=qwt;Yr.util.encode=Gwt;Yr.Token.stringify=cM;function Hwt(e,t){if(typeof e!="string")throw new TypeError("Expected `string` for `value`, got `"+e+"`");let n,r;if(t&&typeof t=="object")n=t;else{if(r=t,typeof r!="string")throw new TypeError("Expected `string` for `name`, got `"+r+"`");if(Object.hasOwn(Yr.languages,r))n=Yr.languages[r];else throw new Error("Unknown language: `"+r+"` is not registered")}return{type:"root",children:Jce.highlight.call(Yr,e,n,r)}}function Vwt(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `syntax`, got `"+e+"`");Object.hasOwn(Yr.languages,e.displayName)||e(Yr)}function Wwt(e,t){const n=Yr.languages;let r={};typeof e=="string"?t&&(r[e]=t):r=e;let i;for(i in r)if(Object.hasOwn(r,i)){const o=r[i],a=typeof o=="string"?[o]:o;let s=-1;for(;++s<a.length;)n[a[s]]=n[i]}}function Uwt(e){if(typeof e!="string")throw new TypeError("Expected `string` for `aliasOrLanguage`, got `"+e+"`");return Object.hasOwn(Yr.languages,e)}function qwt(){const e=Yr.languages,t=[];let n;for(n in e)Object.hasOwn(e,n)&&typeof e[n]=="object"&&t.push(n);return t}function cM(e,t){if(typeof e=="string")return{type:"text",value:e};if(Array.isArray(e)){const r=[];let i=-1;for(;++i<e.length;)e[i]!==null&&e[i]!==void 0&&e[i]!==""&&r.push(cM(e[i],t));return r}const n={attributes:{},classes:["token",e.type],content:cM(e.content,t),language:t,tag:"span",type:e.type};return e.alias&&n.classes.push(...typeof e.alias=="string"?[e.alias]:e.alias),Yr.hooks.run("wrap",n),Awt(n.tag+"."+n.classes.join("."),Kwt(n.attributes),n.content)}function Gwt(e){return e}function Kwt(e){let t;for(t in e)Object.hasOwn(e,t)&&(e[t]=Mwt(e[t]));return e}const r4t=Object.freeze(Object.defineProperty({__proto__:null,refractor:Yr},Symbol.toStringTag,{value:"Module"}));var rk=Ewt(Yr,{});rk.registerLanguage=function(e,t){return Yr.register(t)};rk.alias=function(e,t){return Yr.alias(e,t)};const Gq={'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%)"}},Xwt=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-header`]:{display:"flex",alignItems:"center",justifyContent:"space-between",color:e.colorText,background:e.colorFillContent,padding:e.paddingSM,borderStartStartRadius:e.borderRadius,borderStartEndRadius:e.borderRadius},[`${t}-header-title`]:{fontSize:e.fontSize,fontWeight:e.fontWeightStrong},[`${t}-code`]:{borderEndEndRadius:e.borderRadius,borderEndStartRadius:e.borderRadius,borderStartStartRadius:0,borderStartEndRadius:0,background:e.colorBgContainer,border:`1px solid ${e.colorBorderSecondary}`,borderTop:"none",overflow:"hidden","pre,code":{whiteSpace:"pre",fontSize:e.fontSize,fontFamily:e.fontFamilyCode,lineHeight:2,borderRadius:0,border:"none"},"code[class*='language-'],pre[class*='language-']":{background:"none"}},[`&${t}-rtl`]:{direction:"rtl"}}}},Ywt=e=>({colorBgTitle:e.colorFillContent,colorBorderCode:e.colorBorderSecondary,colorTextTitle:e.colorText}),Qwt=Qb("CodeHighlighter",e=>{const t=Gf(e,{});return[Xwt(t)]},Ywt),Zwt={...Gq,'pre[class*="language-"]':{...Gq['pre[class*="language-"]'],margin:0}},NO=new Map;let BO=null;const Jwt=e=>{if(!NO.has(e)){const t=v.lazy(async()=>{try{await U(()=>import(`react-syntax-highlighter/dist/esm/languages/prism/${e}`),[])}catch(n){console.warn(`[CodeHighlighter] Failed to load language: ${e}`,n)}return{default:({children:n,...r})=>B.createElement(rk,_e({language:e},r),n)}});NO.set(e,t)}return NO.get(e)},eEt=()=>(BO||(BO=v.lazy(()=>U(()=>import("./index-D2UBwfSG.js").then(e=>e.c9),[]).then(e=>({default:t=>B.createElement(e.Prism,t)})))),BO),tue=B.forwardRef((e,t)=>{var k,P;const{lang:n,children:r,header:i,prefixCls:o,className:a,classNames:s={},styles:l={},style:c={},highlightProps:u,prismLightMode:d=!0,...f}=e,{getPrefixCls:h,direction:p}=qi(),g=h("codeHighlighter",o),[m,y]=Qwt(g),b=Nc("codeHighlighter"),x=d?n?Jwt(n):rk:eEt();if(!r)return null;if(!n)return B.createElement("code",null,r);const S=it(g,b.className,a,(k=b.classNames)==null?void 0:k.root,s.root,m,y,{[`${g}-rtl`]:p==="rtl"}),C={...b.style,...l==null?void 0:l.root,...c},w=()=>{var T,R,$,I;if(i===void 0)return B.createElement("div",{className:it(`${g}-header`,(T=b.classNames)==null?void 0:T.header,s.header),style:{...(R=b.styles)==null?void 0:R.header,...l.header}},B.createElement("span",{className:it(`${g}-header-title`,s.headerTitle,($=b.classNames)==null?void 0:$.headerTitle),style:{...(I=b.styles)==null?void 0:I.headerTitle,...l.headerTitle}},n),B.createElement(wf.Copy,{text:r}));const O=typeof i=="function"?i():i;return O===!1?null:O},E=B.createElement(x,_e({language:n,wrapLines:!0,style:Zwt,codeTagProps:{style:{background:"transparent"}}},u),r.replace(/\n$/,"")),_=B.createElement(v.Suspense,{fallback:B.createElement("code",{style:{whiteSpace:"pre-wrap"}},r.replace(/\n$/,""))},E);return B.createElement("div",_e({ref:t,className:S,style:C},f),w(),B.createElement("div",{className:it(`${g}-code`,(P=b.classNames)==null?void 0:P.code,s.code),style:{...b.styles.code,...l.code}},_))});var nue="Expected a function",Kq=NaN,tEt="[object Symbol]",nEt=/^\s+|\s+$/g,rEt=/^[-+]0x[0-9a-f]+$/i,iEt=/^0b[01]+$/i,oEt=/^0o[0-7]+$/i,aEt=parseInt,sEt=typeof er=="object"&&er&&er.Object===Object&&er,lEt=typeof self=="object"&&self&&self.Object===Object&&self,cEt=sEt||lEt||Function("return this")(),uEt=Object.prototype,dEt=uEt.toString,fEt=Math.max,hEt=Math.min,DO=function(){return cEt.Date.now()};function pEt(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(nue);t=Xq(t)||0,aE(n)&&(u=!!n.leading,d="maxWait"in n,o=d?fEt(Xq(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f);function h(w){var E=r,_=i;return r=i=void 0,c=w,a=e.apply(_,E),a}function p(w){return c=w,s=setTimeout(y,t),u?h(w):a}function g(w){var E=w-l,_=w-c,k=t-E;return d?hEt(k,o-_):k}function m(w){var E=w-l,_=w-c;return l===void 0||E>=t||E<0||d&&_>=o}function y(){var w=DO();if(m(w))return b(w);s=setTimeout(y,g(w))}function b(w){return s=void 0,f&&r?h(w):(r=i=void 0,a)}function x(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function S(){return s===void 0?a:b(DO())}function C(){var w=DO(),E=m(w);if(r=arguments,i=this,l=w,E){if(s===void 0)return p(l);if(d)return s=setTimeout(y,t),h(l)}return s===void 0&&(s=setTimeout(y,t)),a}return C.cancel=x,C.flush=S,C}function gEt(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(nue);return aE(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),pEt(e,t,{leading:r,maxWait:t,trailing:i})}function aE(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function mEt(e){return!!e&&typeof e=="object"}function vEt(e){return typeof e=="symbol"||mEt(e)&&dEt.call(e)==tEt}function Xq(e){if(typeof e=="number")return e;if(vEt(e))return Kq;if(aE(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=aE(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(nEt,"");var n=iEt.test(e);return n||oEt.test(e)?aEt(e.slice(2),n?2:8):rEt.test(e)?Kq:+e}var yEt=gEt;const bEt=kn(yEt);var rue=Object.defineProperty,F=(e,t)=>rue(e,"name",{value:t,configurable:!0}),xEt=(e,t)=>{for(var n in t)rue(e,n,{get:t[n],enumerable:!0})},Vl={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},qe={trace:F((...e)=>{},"trace"),debug:F((...e)=>{},"debug"),info:F((...e)=>{},"info"),warn:F((...e)=>{},"warn"),error:F((...e)=>{},"error"),fatal:F((...e)=>{},"fatal")},N5=F(function(e="fatal"){let t=Vl.fatal;typeof e=="string"?e.toLowerCase()in Vl&&(t=Vl[e]):typeof e=="number"&&(t=e),qe.trace=()=>{},qe.debug=()=>{},qe.info=()=>{},qe.warn=()=>{},qe.error=()=>{},qe.fatal=()=>{},t<=Vl.fatal&&(qe.fatal=console.error?console.error.bind(console,Ra("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Ra("FATAL"))),t<=Vl.error&&(qe.error=console.error?console.error.bind(console,Ra("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Ra("ERROR"))),t<=Vl.warn&&(qe.warn=console.warn?console.warn.bind(console,Ra("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Ra("WARN"))),t<=Vl.info&&(qe.info=console.info?console.info.bind(console,Ra("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Ra("INFO"))),t<=Vl.debug&&(qe.debug=console.debug?console.debug.bind(console,Ra("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ra("DEBUG"))),t<=Vl.trace&&(qe.trace=console.debug?console.debug.bind(console,Ra("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ra("TRACE")))},"setLogLevel"),Ra=F(e=>`%c${I$e().format("ss.SSS")} : ${e} : `,"format");const AC={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e),hsl2rgb:({h:e,s:t,l:n},r)=>{if(!t)return n*2.55;e/=360,t/=100,n/=100;const i=n<.5?n*(1+t):n+t-n*t,o=2*n-i;switch(r){case"r":return AC.hue2rgb(o,i,e+1/3)*255;case"g":return AC.hue2rgb(o,i,e)*255;case"b":return AC.hue2rgb(o,i,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:n},r)=>{e/=255,t/=255,n/=255;const i=Math.max(e,t,n),o=Math.min(e,t,n),a=(i+o)/2;if(r==="l")return a*100;if(i===o)return 0;const s=i-o,l=a>.5?s/(2-i-o):s/(i+o);if(r==="s")return l*100;switch(i){case e:return((t-n)/s+(t<n?6:0))*60;case t:return((n-e)/s+2)*60;case n:return((e-t)/s+4)*60;default:return-1}}},CEt={clamp:(e,t,n)=>t>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},SEt={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},tn={channel:AC,lang:CEt,unit:SEt},Zc={};for(let e=0;e<=255;e++)Zc[e]=tn.unit.dec2hex(e);const ro={ALL:0,RGB:1,HSL:2};class wEt{constructor(){this.type=ro.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=ro.ALL}is(t){return this.type===t}}class EEt{constructor(t,n){this.color=n,this.changed=!1,this.data=t,this.type=new wEt}set(t,n){return this.color=n,this.changed=!1,this.data=t,this.type.type=ro.ALL,this}_ensureHSL(){const t=this.data,{h:n,s:r,l:i}=t;n===void 0&&(t.h=tn.channel.rgb2hsl(t,"h")),r===void 0&&(t.s=tn.channel.rgb2hsl(t,"s")),i===void 0&&(t.l=tn.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r:n,g:r,b:i}=t;n===void 0&&(t.r=tn.channel.hsl2rgb(t,"r")),r===void 0&&(t.g=tn.channel.hsl2rgb(t,"g")),i===void 0&&(t.b=tn.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,n=t.r;return!this.type.is(ro.HSL)&&n!==void 0?n:(this._ensureHSL(),tn.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,n=t.g;return!this.type.is(ro.HSL)&&n!==void 0?n:(this._ensureHSL(),tn.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,n=t.b;return!this.type.is(ro.HSL)&&n!==void 0?n:(this._ensureHSL(),tn.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,n=t.h;return!this.type.is(ro.RGB)&&n!==void 0?n:(this._ensureRGB(),tn.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,n=t.s;return!this.type.is(ro.RGB)&&n!==void 0?n:(this._ensureRGB(),tn.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,n=t.l;return!this.type.is(ro.RGB)&&n!==void 0?n:(this._ensureRGB(),tn.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(ro.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(ro.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(ro.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(ro.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(ro.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(ro.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const ik=new EEt({r:0,g:0,b:0,a:0},"transparent"),Ep={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(Ep.re);if(!t)return;const n=t[1],r=parseInt(n,16),i=n.length,o=i%4===0,a=i>4,s=a?1:17,l=a?8:4,c=o?0:-1,u=a?255:15;return ik.set({r:(r>>l*(c+3)&u)*s,g:(r>>l*(c+2)&u)*s,b:(r>>l*(c+1)&u)*s,a:o?(r&u)*s/255:1},e)},stringify:e=>{const{r:t,g:n,b:r,a:i}=e;return i<1?`#${Zc[Math.round(t)]}${Zc[Math.round(n)]}${Zc[Math.round(r)]}${Zc[Math.round(i*255)]}`:`#${Zc[Math.round(t)]}${Zc[Math.round(n)]}${Zc[Math.round(r)]}`}},zd={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(zd.hueRe);if(t){const[,n,r]=t;switch(r){case"grad":return tn.channel.clamp.h(parseFloat(n)*.9);case"rad":return tn.channel.clamp.h(parseFloat(n)*180/Math.PI);case"turn":return tn.channel.clamp.h(parseFloat(n)*360)}}return tn.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const n=e.match(zd.re);if(!n)return;const[,r,i,o,a,s]=n;return ik.set({h:zd._hue2deg(r),s:tn.channel.clamp.s(parseFloat(i)),l:tn.channel.clamp.l(parseFloat(o)),a:a?tn.channel.clamp.a(s?parseFloat(a)/100:parseFloat(a)):1},e)},stringify:e=>{const{h:t,s:n,l:r,a:i}=e;return i<1?`hsla(${tn.lang.round(t)}, ${tn.lang.round(n)}%, ${tn.lang.round(r)}%, ${i})`:`hsl(${tn.lang.round(t)}, ${tn.lang.round(n)}%, ${tn.lang.round(r)}%)`}},gy={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=gy.colors[e];if(t)return Ep.parse(t)},stringify:e=>{const t=Ep.stringify(e);for(const n in gy.colors)if(gy.colors[n]===t)return n}},Tv={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const n=e.match(Tv.re);if(!n)return;const[,r,i,o,a,s,l,c,u]=n;return ik.set({r:tn.channel.clamp.r(i?parseFloat(r)*2.55:parseFloat(r)),g:tn.channel.clamp.g(a?parseFloat(o)*2.55:parseFloat(o)),b:tn.channel.clamp.b(l?parseFloat(s)*2.55:parseFloat(s)),a:c?tn.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{const{r:t,g:n,b:r,a:i}=e;return i<1?`rgba(${tn.lang.round(t)}, ${tn.lang.round(n)}, ${tn.lang.round(r)}, ${tn.lang.round(i)})`:`rgb(${tn.lang.round(t)}, ${tn.lang.round(n)}, ${tn.lang.round(r)})`}},$l={format:{keyword:gy,hex:Ep,rgb:Tv,rgba:Tv,hsl:zd,hsla:zd},parse:e=>{if(typeof e!="string")return e;const t=Ep.parse(e)||Tv.parse(e)||zd.parse(e)||gy.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(ro.HSL)||e.data.r===void 0?zd.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Tv.stringify(e):Ep.stringify(e)},iue=(e,t)=>{const n=$l.parse(e);for(const r in t)n[r]=tn.channel.clamp[r](t[r]);return $l.stringify(n)},Iu=(e,t,n=0,r=1)=>{if(typeof e!="number")return iue(e,{a:t});const i=ik.set({r:tn.channel.clamp.r(e),g:tn.channel.clamp.g(t),b:tn.channel.clamp.b(n),a:tn.channel.clamp.a(r)});return $l.stringify(i)},_Et=e=>{const{r:t,g:n,b:r}=$l.parse(e),i=.2126*tn.channel.toLinear(t)+.7152*tn.channel.toLinear(n)+.0722*tn.channel.toLinear(r);return tn.lang.round(i)},kEt=e=>_Et(e)>=.5,Us=e=>!kEt(e),oue=(e,t,n)=>{const r=$l.parse(e),i=r[t],o=tn.channel.clamp[t](i+n);return i!==o&&(r[t]=o),$l.stringify(r)},Re=(e,t)=>oue(e,"l",t),Le=(e,t)=>oue(e,"l",-t),G=(e,t)=>{const n=$l.parse(e),r={};for(const i in t)t[i]&&(r[i]=n[i]+t[i]);return iue(e,r)},TEt=(e,t,n=50)=>{const{r,g:i,b:o,a}=$l.parse(e),{r:s,g:l,b:c,a:u}=$l.parse(t),d=n/100,f=d*2-1,h=a-u,g=((f*h===-1?f:(f+h)/(1+f*h))+1)/2,m=1-g,y=r*g+s*m,b=i*g+l*m,x=o*g+c*m,S=a*d+u*(1-d);return Iu(y,b,x,S)},Ce=(e,t=100)=>{const n=$l.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,TEt(n,e,t)};/*! @license DOMPurify 3.4.11 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.11/LICENSE */function Yq(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $Et(e){if(Array.isArray(e))return e}function OEt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function PEt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2291
|
+
`)};if(O===0){var $=u.slice(f+1,h).concat(OC({children:[R],className:w.properties.className})),I=m($,T);d.push(I)}else if(O===k.length-1){var A=u[h+1]&&u[h+1].children&&u[h+1].children[0],L={type:"text",value:"".concat(P)};if(A){var M=OC({children:[L],className:w.properties.className});u.splice(h+1,0,M)}else{var j=[L],N=m(j,T,w.properties.className);d.push(N)}}else{var z=[R],H=m(z,T,w.properties.className);d.push(H)}}),f=h}h++};h<u.length;)y();if(f!==u.length-1){var b=u.slice(f+1,u.length);if(b&&b.length){var x=r&&d.length+o,S=m(b,x);d.push(S)}}return t?d:(c=[]).concat.apply(c,d)}function Swt(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(i,o){return Uce({node:i,stylesheet:n,useInlineStyles:r,key:"code-segment-".concat(o)})})}function Xce(e){return e&&typeof e.highlightAuto<"u"}function wwt(e){var t=e.astGenerator,n=e.language,r=e.code,i=e.defaultCodeValue;if(Xce(t)){var o=pwt(t,n);return n==="text"?{value:i,language:"text"}:o?t.highlight(n,r):t.highlightAuto(r)}try{return n&&n!=="text"?{value:t.highlight(r,n)}:{value:i}}catch{return{value:i}}}function Ewt(e,t){return function(r){var i,o,a=r.language,s=r.children,l=r.style,c=l===void 0?t:l,u=r.customStyle,d=u===void 0?{}:u,f=r.codeTagProps,h=f===void 0?{className:a?"language-".concat(a):void 0,style:mu(mu({},c['code[class*="language-"]']),c['code[class*="language-'.concat(a,'"]')])}:f,p=r.useInlineStyles,g=p===void 0?!0:p,m=r.showLineNumbers,y=m===void 0?!1:m,b=r.showInlineLineNumbers,x=b===void 0?!0:b,S=r.startingLineNumber,C=S===void 0?1:S,w=r.lineNumberContainerStyle,E=r.lineNumberStyle,_=E===void 0?{}:E,k=r.wrapLines,P=r.wrapLongLines,O=P===void 0?!1:P,T=r.lineProps,R=T===void 0?{}:T,$=r.renderer,I=r.PreTag,A=I===void 0?"pre":I,L=r.CodeTag,M=L===void 0?"code":L,j=r.code,N=j===void 0?(Array.isArray(s)?s[0]:s)||"":j,z=r.astGenerator,H=Nt(r,gwt);z=z||e;var D=y?B.createElement(bwt,{containerStyle:w,codeStyle:h.style||{},numberStyle:_,startingLineNumber:C,codeString:N}):null,X=c.hljs||c['pre[class*="language-"]']||{backgroundColor:"#fff"},Y=Xce(z)?"hljs":"prismjs",ne=g?Object.assign({},H,{style:Object.assign({},X,d)}):Object.assign({},H,{className:H.className?"".concat(Y," ").concat(H.className):Y,style:Object.assign({},d)});if(O?h.style=mu({whiteSpace:"pre-wrap"},h.style):h.style=mu({whiteSpace:"pre"},h.style),!z)return B.createElement(A,ne,D,B.createElement(M,h,N));(k===void 0&&$||O)&&(k=!0),$=$||Swt;var ce=[{type:"text",value:N}],re=wwt({astGenerator:z,language:a,code:N,defaultCodeValue:ce});re.language===null&&(re.value=ce);var Z=(i=(o=N.match(/\n/g))===null||o===void 0?void 0:o.length)!==null&&i!==void 0?i:0,ee=C+Z,K=Cwt(re,k,R,y,x,C,ee,_,O);return B.createElement(A,ne,B.createElement(M,h,!x&&D,$({rows:K,stylesheet:c,useInlineStyles:g})))}}const Hq=/[#.]/g;function _wt(e,t){const n=e||"",r={};let i=0,o,a;for(;i<n.length;){Hq.lastIndex=i;const s=Hq.exec(n),l=n.slice(i,s?s.index:n.length);l&&(o?o==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:a=l,i+=l.length),s&&(o=s[0],i++)}return{type:"element",tagName:a||t||"div",properties:r,children:[]}}function Yce(e,t,n){const r=n?Owt(n):void 0;function i(o,a,...s){let l;if(o==null){l={type:"root",children:[]};const c=a;s.unshift(c)}else{l=_wt(o,t);const c=l.tagName.toLowerCase(),u=r?r.get(c):void 0;if(l.tagName=u||c,kwt(a))s.unshift(a);else for(const[d,f]of Object.entries(a))Twt(e,l.properties,d,f)}for(const c of s)lM(l.children,c);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return i}function kwt(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const o=i;for(const a of o)if(typeof a!="number"&&typeof a!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Twt(e,t,n,r){const i=DD(e,n);let o;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;o=r}else typeof r=="boolean"?o=r:typeof r=="string"?i.spaceSeparated?o=VV(r):i.commaSeparated?o=DV(r):i.commaOrSpaceSeparated?o=VV(DV(r).join(" ")):o=Vq(i,i.property,r):Array.isArray(r)?o=[...r]:o=i.property==="style"?$wt(r):String(r);if(Array.isArray(o)){const a=[];for(const s of o)a.push(Vq(i,i.property,s));o=a}i.property==="className"&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[i.property]=o}}function lM(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)lM(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?lM(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Vq(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||D0(n)===D0(t)))return!0}return n}function $wt(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function Owt(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Pwt=["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"],Awt=Yce(FD,"div");Yce(hm,"g",Pwt);const Wq={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function Qce(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function Iwt(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Rwt(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Uq(e){return Rwt(e)||Qce(e)}const Lwt=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function Mwt(e,t){const n={},r=typeof n.additional=="string"?n.additional.charCodeAt(0):n.additional,i=[];let o=0,a=-1,s="",l,c;n.position&&("start"in n.position||"indent"in n.position?(c=n.position.indent,l=n.position.start):l=n.position);let u=(l?l.line:0)||1,d=(l?l.column:0)||1,f=p(),h;for(o--;++o<=e.length;)if(h===10&&(d=(c?c[a]:0)||1),h=e.charCodeAt(o),h===38){const y=e.charCodeAt(o+1);if(y===9||y===10||y===12||y===32||y===38||y===60||Number.isNaN(y)||r&&y===r){s+=String.fromCharCode(h),d++;continue}const b=o+1;let x=b,S=b,C;if(y===35){S=++x;const R=e.charCodeAt(S);R===88||R===120?(C="hexadecimal",S=++x):C="decimal"}else C="named";let w="",E="",_="";const k=C==="named"?Uq:C==="decimal"?Qce:Iwt;for(S--;++S<=e.length;){const R=e.charCodeAt(S);if(!k(R))break;_+=String.fromCharCode(R),C==="named"&&fse.includes(_)&&(w=_,E=j0(_))}let P=e.charCodeAt(S)===59;if(P){S++;const R=C==="named"?j0(_):!1;R&&(w=_,E=R)}let O=1+S-b,T="";if(!(!P&&n.nonTerminated===!1))if(!_)C!=="named"&&g(4,O);else if(C==="named"){if(P&&!E)g(5,1);else if(w!==_&&(S=x+w.length,O=1+S-x,P=!1),!P){const R=w?1:3;if(n.attribute){const $=e.charCodeAt(S);$===61?(g(R,O),E=""):Uq($)?E="":g(R,O)}else g(R,O)}T=E}else{P||g(2,O);let R=Number.parseInt(_,C==="hexadecimal"?16:10);if(Nwt(R))g(7,O),T="�";else if(R in Wq)g(6,O),T=Wq[R];else{let $="";Bwt(R)&&g(6,O),R>65535&&(R-=65536,$+=String.fromCharCode(R>>>10|55296),R=56320|R&1023),T=$+String.fromCharCode(R)}}if(T){m(),f=p(),o=S-1,d+=S-b+1,i.push(T);const R=p();R.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,T,{start:f,end:R},e.slice(b-1,S)),f=R}else _=e.slice(b-1,S),s+=_,d+=_.length,o=S-1}else h===10&&(u++,a++,d=0),Number.isNaN(h)?m():(s+=String.fromCharCode(h),d++);return i.join("");function p(){return{line:u,column:d,offset:o+((l?l.offset:0)||0)}}function g(y,b){let x;n.warning&&(x=p(),x.column+=b,x.offset+=b,n.warning.call(n.warningContext||void 0,Lwt[y],x,y))}function m(){s&&(i.push(s),n.text&&n.text.call(n.textContext||void 0,s,{start:f,end:p()}),s="")}}function Nwt(e){return e>=55296&&e<=57343||e>1114111}function Bwt(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var Dwt=0,M1={},bi={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++Dwt}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(bi.util.type(t)){case"Object":if(i=bi.util.objId(t),n[i])return n[i];r={},n[i]=r;for(var o in t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case"Array":return i=bi.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(a,s){r[s]=e(a,n)}),r);default:return t}}},languages:{plain:M1,plaintext:M1,text:M1,txt:M1,extend:function(e,t){var n=bi.util.clone(bi.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||bi.languages;var i=r[e],o={};for(var a in i)if(i.hasOwnProperty(a)){if(a==t)for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s]);n.hasOwnProperty(a)||(o[a]=i[a])}var l=r[e];return r[e]=o,bi.languages.DFS(bi.languages,function(c,u){u===l&&c!=e&&(this[c]=o)}),o},DFS:function e(t,n,r,i){i=i||{};var o=bi.util.objId;for(var a in t)if(t.hasOwnProperty(a)){n.call(t,a,t[a],r||a);var s=t[a],l=bi.util.type(s);l==="Object"&&!i[o(s)]?(i[o(s)]=!0,e(s,n,null,i)):l==="Array"&&!i[o(s)]&&(i[o(s)]=!0,e(s,n,a,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(bi.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=bi.tokenize(r.code,r.grammar),bi.hooks.run("after-tokenize",r),py.stringify(bi.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new Fwt;return PC(i,i.head,e),Zce(e,i,t,i.head,0),zwt(i)},hooks:{all:{},add:function(e,t){var n=bi.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=bi.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:py};function py(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function qq(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var o=i[1].length;i.index+=o,i[0]=i[0].slice(o)}return i}function Zce(e,t,n,r,i,o){for(var a in n)if(!(!n.hasOwnProperty(a)||!n[a])){var s=n[a];s=Array.isArray(s)?s:[s];for(var l=0;l<s.length;++l){if(o&&o.cause==a+","+l)return;var c=s[l],u=c.inside,d=!!c.lookbehind,f=!!c.greedy,h=c.alias;if(f&&!c.pattern.global){var p=c.pattern.toString().match(/[imsuy]*$/)[0];c.pattern=RegExp(c.pattern.source,p+"g")}for(var g=c.pattern||c,m=r.next,y=i;m!==t.tail&&!(o&&y>=o.reach);y+=m.value.length,m=m.next){var b=m.value;if(t.length>e.length)return;if(!(b instanceof py)){var x=1,S;if(f){if(S=qq(g,y,e,d),!S||S.index>=e.length)break;var _=S.index,C=S.index+S[0].length,w=y;for(w+=m.value.length;_>=w;)m=m.next,w+=m.value.length;if(w-=m.value.length,y=w,m.value instanceof py)continue;for(var E=m;E!==t.tail&&(w<C||typeof E.value=="string");E=E.next)x++,w+=E.value.length;x--,b=e.slice(y,w),S.index-=y}else if(S=qq(g,0,b,d),!S)continue;var _=S.index,k=S[0],P=b.slice(0,_),O=b.slice(_+k.length),T=y+b.length;o&&T>o.reach&&(o.reach=T);var R=m.prev;P&&(R=PC(t,R,P),y+=P.length),jwt(t,R,x);var $=new py(a,u?bi.tokenize(k,u):k,h,k);if(m=PC(t,R,$),O&&PC(t,m,O),x>1){var I={cause:a+","+l,reach:T};Zce(e,t,n,m.prev,y,I),o&&I.reach>o.reach&&(o.reach=I.reach)}}}}}}function Fwt(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function PC(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function jwt(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}function zwt(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}const Jce=bi;function eue(){}eue.prototype=Jce;const Yr=new eue;Yr.highlight=Hwt;Yr.register=Vwt;Yr.alias=Wwt;Yr.registered=Uwt;Yr.listLanguages=qwt;Yr.util.encode=Gwt;Yr.Token.stringify=cM;function Hwt(e,t){if(typeof e!="string")throw new TypeError("Expected `string` for `value`, got `"+e+"`");let n,r;if(t&&typeof t=="object")n=t;else{if(r=t,typeof r!="string")throw new TypeError("Expected `string` for `name`, got `"+r+"`");if(Object.hasOwn(Yr.languages,r))n=Yr.languages[r];else throw new Error("Unknown language: `"+r+"` is not registered")}return{type:"root",children:Jce.highlight.call(Yr,e,n,r)}}function Vwt(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `syntax`, got `"+e+"`");Object.hasOwn(Yr.languages,e.displayName)||e(Yr)}function Wwt(e,t){const n=Yr.languages;let r={};typeof e=="string"?t&&(r[e]=t):r=e;let i;for(i in r)if(Object.hasOwn(r,i)){const o=r[i],a=typeof o=="string"?[o]:o;let s=-1;for(;++s<a.length;)n[a[s]]=n[i]}}function Uwt(e){if(typeof e!="string")throw new TypeError("Expected `string` for `aliasOrLanguage`, got `"+e+"`");return Object.hasOwn(Yr.languages,e)}function qwt(){const e=Yr.languages,t=[];let n;for(n in e)Object.hasOwn(e,n)&&typeof e[n]=="object"&&t.push(n);return t}function cM(e,t){if(typeof e=="string")return{type:"text",value:e};if(Array.isArray(e)){const r=[];let i=-1;for(;++i<e.length;)e[i]!==null&&e[i]!==void 0&&e[i]!==""&&r.push(cM(e[i],t));return r}const n={attributes:{},classes:["token",e.type],content:cM(e.content,t),language:t,tag:"span",type:e.type};return e.alias&&n.classes.push(...typeof e.alias=="string"?[e.alias]:e.alias),Yr.hooks.run("wrap",n),Awt(n.tag+"."+n.classes.join("."),Kwt(n.attributes),n.content)}function Gwt(e){return e}function Kwt(e){let t;for(t in e)Object.hasOwn(e,t)&&(e[t]=Mwt(e[t]));return e}const r4t=Object.freeze(Object.defineProperty({__proto__:null,refractor:Yr},Symbol.toStringTag,{value:"Module"}));var rk=Ewt(Yr,{});rk.registerLanguage=function(e,t){return Yr.register(t)};rk.alias=function(e,t){return Yr.alias(e,t)};const Gq={'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%)"}},Xwt=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-header`]:{display:"flex",alignItems:"center",justifyContent:"space-between",color:e.colorText,background:e.colorFillContent,padding:e.paddingSM,borderStartStartRadius:e.borderRadius,borderStartEndRadius:e.borderRadius},[`${t}-header-title`]:{fontSize:e.fontSize,fontWeight:e.fontWeightStrong},[`${t}-code`]:{borderEndEndRadius:e.borderRadius,borderEndStartRadius:e.borderRadius,borderStartStartRadius:0,borderStartEndRadius:0,background:e.colorBgContainer,border:`1px solid ${e.colorBorderSecondary}`,borderTop:"none",overflow:"hidden","pre,code":{whiteSpace:"pre",fontSize:e.fontSize,fontFamily:e.fontFamilyCode,lineHeight:2,borderRadius:0,border:"none"},"code[class*='language-'],pre[class*='language-']":{background:"none"}},[`&${t}-rtl`]:{direction:"rtl"}}}},Ywt=e=>({colorBgTitle:e.colorFillContent,colorBorderCode:e.colorBorderSecondary,colorTextTitle:e.colorText}),Qwt=Qb("CodeHighlighter",e=>{const t=Gf(e,{});return[Xwt(t)]},Ywt),Zwt={...Gq,'pre[class*="language-"]':{...Gq['pre[class*="language-"]'],margin:0}},NO=new Map;let BO=null;const Jwt=e=>{if(!NO.has(e)){const t=v.lazy(async()=>{try{await U(()=>import(`react-syntax-highlighter/dist/esm/languages/prism/${e}`),[])}catch(n){console.warn(`[CodeHighlighter] Failed to load language: ${e}`,n)}return{default:({children:n,...r})=>B.createElement(rk,_e({language:e},r),n)}});NO.set(e,t)}return NO.get(e)},eEt=()=>(BO||(BO=v.lazy(()=>U(()=>import("./index-DBPwq3d-.js").then(e=>e.c9),[]).then(e=>({default:t=>B.createElement(e.Prism,t)})))),BO),tue=B.forwardRef((e,t)=>{var k,P;const{lang:n,children:r,header:i,prefixCls:o,className:a,classNames:s={},styles:l={},style:c={},highlightProps:u,prismLightMode:d=!0,...f}=e,{getPrefixCls:h,direction:p}=qi(),g=h("codeHighlighter",o),[m,y]=Qwt(g),b=Nc("codeHighlighter"),x=d?n?Jwt(n):rk:eEt();if(!r)return null;if(!n)return B.createElement("code",null,r);const S=it(g,b.className,a,(k=b.classNames)==null?void 0:k.root,s.root,m,y,{[`${g}-rtl`]:p==="rtl"}),C={...b.style,...l==null?void 0:l.root,...c},w=()=>{var T,R,$,I;if(i===void 0)return B.createElement("div",{className:it(`${g}-header`,(T=b.classNames)==null?void 0:T.header,s.header),style:{...(R=b.styles)==null?void 0:R.header,...l.header}},B.createElement("span",{className:it(`${g}-header-title`,s.headerTitle,($=b.classNames)==null?void 0:$.headerTitle),style:{...(I=b.styles)==null?void 0:I.headerTitle,...l.headerTitle}},n),B.createElement(wf.Copy,{text:r}));const O=typeof i=="function"?i():i;return O===!1?null:O},E=B.createElement(x,_e({language:n,wrapLines:!0,style:Zwt,codeTagProps:{style:{background:"transparent"}}},u),r.replace(/\n$/,"")),_=B.createElement(v.Suspense,{fallback:B.createElement("code",{style:{whiteSpace:"pre-wrap"}},r.replace(/\n$/,""))},E);return B.createElement("div",_e({ref:t,className:S,style:C},f),w(),B.createElement("div",{className:it(`${g}-code`,(P=b.classNames)==null?void 0:P.code,s.code),style:{...b.styles.code,...l.code}},_))});var nue="Expected a function",Kq=NaN,tEt="[object Symbol]",nEt=/^\s+|\s+$/g,rEt=/^[-+]0x[0-9a-f]+$/i,iEt=/^0b[01]+$/i,oEt=/^0o[0-7]+$/i,aEt=parseInt,sEt=typeof er=="object"&&er&&er.Object===Object&&er,lEt=typeof self=="object"&&self&&self.Object===Object&&self,cEt=sEt||lEt||Function("return this")(),uEt=Object.prototype,dEt=uEt.toString,fEt=Math.max,hEt=Math.min,DO=function(){return cEt.Date.now()};function pEt(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(nue);t=Xq(t)||0,aE(n)&&(u=!!n.leading,d="maxWait"in n,o=d?fEt(Xq(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f);function h(w){var E=r,_=i;return r=i=void 0,c=w,a=e.apply(_,E),a}function p(w){return c=w,s=setTimeout(y,t),u?h(w):a}function g(w){var E=w-l,_=w-c,k=t-E;return d?hEt(k,o-_):k}function m(w){var E=w-l,_=w-c;return l===void 0||E>=t||E<0||d&&_>=o}function y(){var w=DO();if(m(w))return b(w);s=setTimeout(y,g(w))}function b(w){return s=void 0,f&&r?h(w):(r=i=void 0,a)}function x(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function S(){return s===void 0?a:b(DO())}function C(){var w=DO(),E=m(w);if(r=arguments,i=this,l=w,E){if(s===void 0)return p(l);if(d)return s=setTimeout(y,t),h(l)}return s===void 0&&(s=setTimeout(y,t)),a}return C.cancel=x,C.flush=S,C}function gEt(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(nue);return aE(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),pEt(e,t,{leading:r,maxWait:t,trailing:i})}function aE(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function mEt(e){return!!e&&typeof e=="object"}function vEt(e){return typeof e=="symbol"||mEt(e)&&dEt.call(e)==tEt}function Xq(e){if(typeof e=="number")return e;if(vEt(e))return Kq;if(aE(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=aE(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(nEt,"");var n=iEt.test(e);return n||oEt.test(e)?aEt(e.slice(2),n?2:8):rEt.test(e)?Kq:+e}var yEt=gEt;const bEt=kn(yEt);var rue=Object.defineProperty,F=(e,t)=>rue(e,"name",{value:t,configurable:!0}),xEt=(e,t)=>{for(var n in t)rue(e,n,{get:t[n],enumerable:!0})},Vl={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},qe={trace:F((...e)=>{},"trace"),debug:F((...e)=>{},"debug"),info:F((...e)=>{},"info"),warn:F((...e)=>{},"warn"),error:F((...e)=>{},"error"),fatal:F((...e)=>{},"fatal")},N5=F(function(e="fatal"){let t=Vl.fatal;typeof e=="string"?e.toLowerCase()in Vl&&(t=Vl[e]):typeof e=="number"&&(t=e),qe.trace=()=>{},qe.debug=()=>{},qe.info=()=>{},qe.warn=()=>{},qe.error=()=>{},qe.fatal=()=>{},t<=Vl.fatal&&(qe.fatal=console.error?console.error.bind(console,Ra("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Ra("FATAL"))),t<=Vl.error&&(qe.error=console.error?console.error.bind(console,Ra("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Ra("ERROR"))),t<=Vl.warn&&(qe.warn=console.warn?console.warn.bind(console,Ra("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Ra("WARN"))),t<=Vl.info&&(qe.info=console.info?console.info.bind(console,Ra("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Ra("INFO"))),t<=Vl.debug&&(qe.debug=console.debug?console.debug.bind(console,Ra("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ra("DEBUG"))),t<=Vl.trace&&(qe.trace=console.debug?console.debug.bind(console,Ra("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ra("TRACE")))},"setLogLevel"),Ra=F(e=>`%c${I$e().format("ss.SSS")} : ${e} : `,"format");const AC={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e),hsl2rgb:({h:e,s:t,l:n},r)=>{if(!t)return n*2.55;e/=360,t/=100,n/=100;const i=n<.5?n*(1+t):n+t-n*t,o=2*n-i;switch(r){case"r":return AC.hue2rgb(o,i,e+1/3)*255;case"g":return AC.hue2rgb(o,i,e)*255;case"b":return AC.hue2rgb(o,i,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:n},r)=>{e/=255,t/=255,n/=255;const i=Math.max(e,t,n),o=Math.min(e,t,n),a=(i+o)/2;if(r==="l")return a*100;if(i===o)return 0;const s=i-o,l=a>.5?s/(2-i-o):s/(i+o);if(r==="s")return l*100;switch(i){case e:return((t-n)/s+(t<n?6:0))*60;case t:return((n-e)/s+2)*60;case n:return((e-t)/s+4)*60;default:return-1}}},CEt={clamp:(e,t,n)=>t>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},SEt={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},tn={channel:AC,lang:CEt,unit:SEt},Zc={};for(let e=0;e<=255;e++)Zc[e]=tn.unit.dec2hex(e);const ro={ALL:0,RGB:1,HSL:2};class wEt{constructor(){this.type=ro.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=ro.ALL}is(t){return this.type===t}}class EEt{constructor(t,n){this.color=n,this.changed=!1,this.data=t,this.type=new wEt}set(t,n){return this.color=n,this.changed=!1,this.data=t,this.type.type=ro.ALL,this}_ensureHSL(){const t=this.data,{h:n,s:r,l:i}=t;n===void 0&&(t.h=tn.channel.rgb2hsl(t,"h")),r===void 0&&(t.s=tn.channel.rgb2hsl(t,"s")),i===void 0&&(t.l=tn.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r:n,g:r,b:i}=t;n===void 0&&(t.r=tn.channel.hsl2rgb(t,"r")),r===void 0&&(t.g=tn.channel.hsl2rgb(t,"g")),i===void 0&&(t.b=tn.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,n=t.r;return!this.type.is(ro.HSL)&&n!==void 0?n:(this._ensureHSL(),tn.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,n=t.g;return!this.type.is(ro.HSL)&&n!==void 0?n:(this._ensureHSL(),tn.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,n=t.b;return!this.type.is(ro.HSL)&&n!==void 0?n:(this._ensureHSL(),tn.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,n=t.h;return!this.type.is(ro.RGB)&&n!==void 0?n:(this._ensureRGB(),tn.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,n=t.s;return!this.type.is(ro.RGB)&&n!==void 0?n:(this._ensureRGB(),tn.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,n=t.l;return!this.type.is(ro.RGB)&&n!==void 0?n:(this._ensureRGB(),tn.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(ro.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(ro.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(ro.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(ro.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(ro.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(ro.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const ik=new EEt({r:0,g:0,b:0,a:0},"transparent"),Ep={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(Ep.re);if(!t)return;const n=t[1],r=parseInt(n,16),i=n.length,o=i%4===0,a=i>4,s=a?1:17,l=a?8:4,c=o?0:-1,u=a?255:15;return ik.set({r:(r>>l*(c+3)&u)*s,g:(r>>l*(c+2)&u)*s,b:(r>>l*(c+1)&u)*s,a:o?(r&u)*s/255:1},e)},stringify:e=>{const{r:t,g:n,b:r,a:i}=e;return i<1?`#${Zc[Math.round(t)]}${Zc[Math.round(n)]}${Zc[Math.round(r)]}${Zc[Math.round(i*255)]}`:`#${Zc[Math.round(t)]}${Zc[Math.round(n)]}${Zc[Math.round(r)]}`}},zd={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(zd.hueRe);if(t){const[,n,r]=t;switch(r){case"grad":return tn.channel.clamp.h(parseFloat(n)*.9);case"rad":return tn.channel.clamp.h(parseFloat(n)*180/Math.PI);case"turn":return tn.channel.clamp.h(parseFloat(n)*360)}}return tn.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const n=e.match(zd.re);if(!n)return;const[,r,i,o,a,s]=n;return ik.set({h:zd._hue2deg(r),s:tn.channel.clamp.s(parseFloat(i)),l:tn.channel.clamp.l(parseFloat(o)),a:a?tn.channel.clamp.a(s?parseFloat(a)/100:parseFloat(a)):1},e)},stringify:e=>{const{h:t,s:n,l:r,a:i}=e;return i<1?`hsla(${tn.lang.round(t)}, ${tn.lang.round(n)}%, ${tn.lang.round(r)}%, ${i})`:`hsl(${tn.lang.round(t)}, ${tn.lang.round(n)}%, ${tn.lang.round(r)}%)`}},gy={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=gy.colors[e];if(t)return Ep.parse(t)},stringify:e=>{const t=Ep.stringify(e);for(const n in gy.colors)if(gy.colors[n]===t)return n}},Tv={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const n=e.match(Tv.re);if(!n)return;const[,r,i,o,a,s,l,c,u]=n;return ik.set({r:tn.channel.clamp.r(i?parseFloat(r)*2.55:parseFloat(r)),g:tn.channel.clamp.g(a?parseFloat(o)*2.55:parseFloat(o)),b:tn.channel.clamp.b(l?parseFloat(s)*2.55:parseFloat(s)),a:c?tn.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{const{r:t,g:n,b:r,a:i}=e;return i<1?`rgba(${tn.lang.round(t)}, ${tn.lang.round(n)}, ${tn.lang.round(r)}, ${tn.lang.round(i)})`:`rgb(${tn.lang.round(t)}, ${tn.lang.round(n)}, ${tn.lang.round(r)})`}},$l={format:{keyword:gy,hex:Ep,rgb:Tv,rgba:Tv,hsl:zd,hsla:zd},parse:e=>{if(typeof e!="string")return e;const t=Ep.parse(e)||Tv.parse(e)||zd.parse(e)||gy.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(ro.HSL)||e.data.r===void 0?zd.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Tv.stringify(e):Ep.stringify(e)},iue=(e,t)=>{const n=$l.parse(e);for(const r in t)n[r]=tn.channel.clamp[r](t[r]);return $l.stringify(n)},Iu=(e,t,n=0,r=1)=>{if(typeof e!="number")return iue(e,{a:t});const i=ik.set({r:tn.channel.clamp.r(e),g:tn.channel.clamp.g(t),b:tn.channel.clamp.b(n),a:tn.channel.clamp.a(r)});return $l.stringify(i)},_Et=e=>{const{r:t,g:n,b:r}=$l.parse(e),i=.2126*tn.channel.toLinear(t)+.7152*tn.channel.toLinear(n)+.0722*tn.channel.toLinear(r);return tn.lang.round(i)},kEt=e=>_Et(e)>=.5,Us=e=>!kEt(e),oue=(e,t,n)=>{const r=$l.parse(e),i=r[t],o=tn.channel.clamp[t](i+n);return i!==o&&(r[t]=o),$l.stringify(r)},Re=(e,t)=>oue(e,"l",t),Le=(e,t)=>oue(e,"l",-t),G=(e,t)=>{const n=$l.parse(e),r={};for(const i in t)t[i]&&(r[i]=n[i]+t[i]);return iue(e,r)},TEt=(e,t,n=50)=>{const{r,g:i,b:o,a}=$l.parse(e),{r:s,g:l,b:c,a:u}=$l.parse(t),d=n/100,f=d*2-1,h=a-u,g=((f*h===-1?f:(f+h)/(1+f*h))+1)/2,m=1-g,y=r*g+s*m,b=i*g+l*m,x=o*g+c*m,S=a*d+u*(1-d);return Iu(y,b,x,S)},Ce=(e,t=100)=>{const n=$l.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,TEt(n,e,t)};/*! @license DOMPurify 3.4.11 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.11/LICENSE */function Yq(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $Et(e){if(Array.isArray(e))return e}function OEt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function PEt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2292
2292
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AEt(e,t){return $Et(e)||OEt(e,t)||IEt(e,t)||PEt()}function IEt(e,t){if(e){if(typeof e=="string")return Yq(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yq(e,t):void 0}}const aue=Object.entries,Qq=Object.setPrototypeOf,REt=Object.isFrozen,LEt=Object.getPrototypeOf,MEt=Object.getOwnPropertyDescriptor;let Hi=Object.freeze,Gi=Object.seal,Ih=Object.create,sue=typeof Reflect<"u"&&Reflect,uM=sue.apply,dM=sue.construct;Hi||(Hi=function(t){return t});Gi||(Gi=function(t){return t});uM||(uM=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return t.apply(n,i)});dM||(dM=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return new t(...r)});const tv=Qr(Array.prototype.forEach),NEt=Qr(Array.prototype.lastIndexOf),Zq=Qr(Array.prototype.pop),xh=Qr(Array.prototype.push),BEt=Qr(Array.prototype.splice),au=Array.isArray,$v=Qr(String.prototype.toLowerCase),FO=Qr(String.prototype.toString),Jq=Qr(String.prototype.match),nv=Qr(String.prototype.replace),eG=Qr(String.prototype.indexOf),DEt=Qr(String.prototype.trim),FEt=Qr(Number.prototype.toString),jEt=Qr(Boolean.prototype.toString),tG=typeof BigInt>"u"?null:Qr(BigInt.prototype.toString),nG=typeof Symbol>"u"?null:Qr(Symbol.prototype.toString),xi=Qr(Object.prototype.hasOwnProperty),rv=Qr(Object.prototype.toString),Mi=Qr(RegExp.prototype.test),dd=zEt(TypeError);function Qr(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return uM(e,t,r)}}function zEt(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return dM(e,n)}}function Dn(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$v;if(Qq&&Qq(e,null),!au(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const o=n(i);o!==i&&(REt(t)||(t[r]=o),i=o)}e[i]=!0}return e}function HEt(e){for(let t=0;t<e.length;t++)xi(e,t)||(e[t]=null);return e}function So(e){const t=Ih(null);for(const r of aue(e)){var n=AEt(r,2);const i=n[0],o=n[1];xi(e,i)&&(au(o)?t[i]=HEt(o):o&&typeof o=="object"&&o.constructor===Object?t[i]=So(o):t[i]=o)}return t}function VEt(e){switch(typeof e){case"string":return e;case"number":return FEt(e);case"boolean":return jEt(e);case"bigint":return tG?tG(e):"0";case"symbol":return nG?nG(e):"Symbol()";case"undefined":return rv(e);case"function":case"object":{if(e===null)return rv(e);const t=e,n=nl(t,"toString");if(typeof n=="function"){const r=n(t);return typeof r=="string"?r:rv(r)}return rv(e)}default:return rv(e)}}function nl(e,t){for(;e!==null;){const r=MEt(e,t);if(r){if(r.get)return Qr(r.get);if(typeof r.value=="function")return Qr(r.value)}e=LEt(e)}function n(){return null}return n}function WEt(e){try{return Mi(e,""),!0}catch{return!1}}const rG=Hi(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),jO=Hi(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),zO=Hi(["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"]),UEt=Hi(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),HO=Hi(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),qEt=Hi(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),iG=Hi(["#text"]),oG=Hi(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),VO=Hi(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),aG=Hi(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),N1=Hi(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),GEt=Gi(/{{[\w\W]*|^[\w\W]*}}/g),KEt=Gi(/<%[\w\W]*|^[\w\W]*%>/g),XEt=Gi(/\${[\w\W]*/g),YEt=Gi(/^data-[\-\w.\u00B7-\uFFFF]+$/),QEt=Gi(/^aria-[\-\w]+$/),sG=Gi(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ZEt=Gi(/^(?:\w+script|data):/i),JEt=Gi(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),e2t=Gi(/^html$/i),t2t=Gi(/^[a-z][.\w]*(-[.\w]+)+$/i),lG=Gi(/<[/\w!]/g),n2t=Gi(/<[/\w]/g),r2t=Gi(/<\/no(script|embed|frames)/i),i2t=Gi(/\/>/i),Qs={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},o2t=function(){return typeof window>"u"?null:window},a2t=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},cG=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Wc=function(t,n,r,i){return xi(t,n)&&au(t[n])?Dn(i.base?So(i.base):{},t[n],i.transform):r};function lue(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o2t();const t=Ze=>lue(Ze);if(t.version="3.4.11",t.removed=[],!e||!e.document||e.document.nodeType!==Qs.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const r=n,i=r.currentScript;e.DocumentFragment;const o=e.HTMLTemplateElement,a=e.Node,s=e.Element,l=e.NodeFilter,c=e.NamedNodeMap;c===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const u=e.DOMParser,d=e.trustedTypes,f=s.prototype,h=nl(f,"cloneNode"),p=nl(f,"remove"),g=nl(f,"nextSibling"),m=nl(f,"childNodes"),y=nl(f,"parentNode"),b=nl(f,"shadowRoot"),x=nl(f,"attributes"),S=a&&a.prototype?nl(a.prototype,"nodeType"):null,C=a&&a.prototype?nl(a.prototype,"nodeName"):null;if(typeof o=="function"){const Ze=n.createElement("template");Ze.content&&Ze.content.ownerDocument&&(n=Ze.content.ownerDocument)}let w,E="",_,k=!1,P=0;const O=function(){if(P>0)throw dd('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},T=function(le){O(),P++;try{return w.createHTML(le)}finally{P--}},R=function(le){O(),P++;try{return w.createScriptURL(le)}finally{P--}},$=function(){return k||(_=a2t(d,i),k=!0),_},I=n,A=I.implementation,L=I.createNodeIterator,M=I.createDocumentFragment,j=I.getElementsByTagName,N=r.importNode;let z=cG();t.isSupported=typeof aue=="function"&&typeof y=="function"&&A&&A.createHTMLDocument!==void 0;const H=GEt,D=KEt,X=XEt,Y=YEt,ne=QEt,ce=ZEt,re=JEt,Z=t2t;let ee=sG,K=null;const W=Dn({},[...rG,...jO,...zO,...HO,...iG]);let ie=null;const q=Dn({},[...oG,...VO,...aG,...N1]);let J=Object.seal(Ih(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),se=null,me=null;const de=Object.seal(Ih(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Oe=!0,Pe=!0,fe=!1,ke=!0,be=!1,Se=!0,Be=!1,oe=!1,pe=null,we=null,Te=!1,Ie=!1,xe=!1,ye=!1,Me=!0,Ne=!1;const Ge="user-content-";let Ae=!0,Ue=!1,Ke={},tt=null;const zt=Dn({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Ht=null;const Pt=Dn({},["audio","video","img","source","image","track"]);let vn=null;const Zt=Dn({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Vt="http://www.w3.org/1998/Math/MathML",St="http://www.w3.org/2000/svg",Lt="http://www.w3.org/1999/xhtml";let Bt=Lt,nt=!1,gt=null;const xt=Dn({},[Vt,St,Lt],FO),Xe=Hi(["mi","mo","mn","ms","mtext"]);let je=Dn({},Xe);const Fe=Hi(["annotation-xml"]);let Ye=Dn({},Fe);const yt=Dn({},["title","style","font","a","script"]);let ut=null;const qt=["application/xhtml+xml","text/html"],at="text/html";let Ve=null,bt=null;const en=n.createElement("form"),an=function(le){return le instanceof RegExp||le instanceof Function},sn=function(){let le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(bt&&bt===le)return;(!le||typeof le!="object")&&(le={}),le=So(le),ut=qt.indexOf(le.PARSER_MEDIA_TYPE)===-1?at:le.PARSER_MEDIA_TYPE,Ve=ut==="application/xhtml+xml"?FO:$v,K=Wc(le,"ALLOWED_TAGS",W,{transform:Ve}),ie=Wc(le,"ALLOWED_ATTR",q,{transform:Ve}),gt=Wc(le,"ALLOWED_NAMESPACES",xt,{transform:FO}),vn=Wc(le,"ADD_URI_SAFE_ATTR",Zt,{transform:Ve,base:Zt}),Ht=Wc(le,"ADD_DATA_URI_TAGS",Pt,{transform:Ve,base:Pt}),tt=Wc(le,"FORBID_CONTENTS",zt,{transform:Ve}),se=Wc(le,"FORBID_TAGS",So({}),{transform:Ve}),me=Wc(le,"FORBID_ATTR",So({}),{transform:Ve}),Ke=xi(le,"USE_PROFILES")?le.USE_PROFILES&&typeof le.USE_PROFILES=="object"?So(le.USE_PROFILES):le.USE_PROFILES:!1,Oe=le.ALLOW_ARIA_ATTR!==!1,Pe=le.ALLOW_DATA_ATTR!==!1,fe=le.ALLOW_UNKNOWN_PROTOCOLS||!1,ke=le.ALLOW_SELF_CLOSE_IN_ATTR!==!1,be=le.SAFE_FOR_TEMPLATES||!1,Se=le.SAFE_FOR_XML!==!1,Be=le.WHOLE_DOCUMENT||!1,Ie=le.RETURN_DOM||!1,xe=le.RETURN_DOM_FRAGMENT||!1,ye=le.RETURN_TRUSTED_TYPE||!1,Te=le.FORCE_BODY||!1,Me=le.SANITIZE_DOM!==!1,Ne=le.SANITIZE_NAMED_PROPS||!1,Ae=le.KEEP_CONTENT!==!1,Ue=le.IN_PLACE||!1,ee=WEt(le.ALLOWED_URI_REGEXP)?le.ALLOWED_URI_REGEXP:sG,Bt=typeof le.NAMESPACE=="string"?le.NAMESPACE:Lt,je=xi(le,"MATHML_TEXT_INTEGRATION_POINTS")&&le.MATHML_TEXT_INTEGRATION_POINTS&&typeof le.MATHML_TEXT_INTEGRATION_POINTS=="object"?So(le.MATHML_TEXT_INTEGRATION_POINTS):Dn({},Xe),Ye=xi(le,"HTML_INTEGRATION_POINTS")&&le.HTML_INTEGRATION_POINTS&&typeof le.HTML_INTEGRATION_POINTS=="object"?So(le.HTML_INTEGRATION_POINTS):Dn({},Fe);const Ee=xi(le,"CUSTOM_ELEMENT_HANDLING")&&le.CUSTOM_ELEMENT_HANDLING&&typeof le.CUSTOM_ELEMENT_HANDLING=="object"?So(le.CUSTOM_ELEMENT_HANDLING):Ih(null);if(J=Ih(null),xi(Ee,"tagNameCheck")&&an(Ee.tagNameCheck)&&(J.tagNameCheck=Ee.tagNameCheck),xi(Ee,"attributeNameCheck")&&an(Ee.attributeNameCheck)&&(J.attributeNameCheck=Ee.attributeNameCheck),xi(Ee,"allowCustomizedBuiltInElements")&&typeof Ee.allowCustomizedBuiltInElements=="boolean"&&(J.allowCustomizedBuiltInElements=Ee.allowCustomizedBuiltInElements),Gi(J),be&&(Pe=!1),xe&&(Ie=!0),Ke&&(K=Dn({},iG),ie=Ih(null),Ke.html===!0&&(Dn(K,rG),Dn(ie,oG)),Ke.svg===!0&&(Dn(K,jO),Dn(ie,VO),Dn(ie,N1)),Ke.svgFilters===!0&&(Dn(K,zO),Dn(ie,VO),Dn(ie,N1)),Ke.mathMl===!0&&(Dn(K,HO),Dn(ie,aG),Dn(ie,N1))),de.tagCheck=null,de.attributeCheck=null,xi(le,"ADD_TAGS")&&(typeof le.ADD_TAGS=="function"?de.tagCheck=le.ADD_TAGS:au(le.ADD_TAGS)&&(K===W&&(K=So(K)),Dn(K,le.ADD_TAGS,Ve))),xi(le,"ADD_ATTR")&&(typeof le.ADD_ATTR=="function"?de.attributeCheck=le.ADD_ATTR:au(le.ADD_ATTR)&&(ie===q&&(ie=So(ie)),Dn(ie,le.ADD_ATTR,Ve))),xi(le,"ADD_URI_SAFE_ATTR")&&au(le.ADD_URI_SAFE_ATTR)&&Dn(vn,le.ADD_URI_SAFE_ATTR,Ve),xi(le,"FORBID_CONTENTS")&&au(le.FORBID_CONTENTS)&&(tt===zt&&(tt=So(tt)),Dn(tt,le.FORBID_CONTENTS,Ve)),xi(le,"ADD_FORBID_CONTENTS")&&au(le.ADD_FORBID_CONTENTS)&&(tt===zt&&(tt=So(tt)),Dn(tt,le.ADD_FORBID_CONTENTS,Ve)),Ae&&(K["#text"]=!0),Be&&Dn(K,["html","head","body"]),K.table&&(Dn(K,["tbody"]),delete se.tbody),le.TRUSTED_TYPES_POLICY){if(typeof le.TRUSTED_TYPES_POLICY.createHTML!="function")throw dd('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof le.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw dd('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const Qe=w;w=le.TRUSTED_TYPES_POLICY;try{E=T("")}catch(ht){throw w=Qe,ht}}else le.TRUSTED_TYPES_POLICY===null?(w=void 0,E=""):(w===void 0&&(w=$()),w&&typeof E=="string"&&(E=T("")));Hi&&Hi(le),bt=le},yn=Dn({},[...jO,...zO,...UEt]),Xt=Dn({},[...HO,...qEt]),$n=function(le,Ee,Qe){return Ee.namespaceURI===Lt?le==="svg":Ee.namespaceURI===Vt?le==="svg"&&(Qe==="annotation-xml"||je[Qe]):!!yn[le]},he=function(le,Ee,Qe){return Ee.namespaceURI===Lt?le==="math":Ee.namespaceURI===St?le==="math"&&Ye[Qe]:!!Xt[le]},$e=function(le,Ee,Qe){return Ee.namespaceURI===St&&!Ye[Qe]||Ee.namespaceURI===Vt&&!je[Qe]?!1:!Xt[le]&&(yt[le]||!yn[le])},He=function(le){let Ee=y(le);(!Ee||!Ee.tagName)&&(Ee={namespaceURI:Bt,tagName:"template"});const Qe=$v(le.tagName),ht=$v(Ee.tagName);return gt[le.namespaceURI]?le.namespaceURI===St?$n(Qe,Ee,ht):le.namespaceURI===Vt?he(Qe,Ee,ht):le.namespaceURI===Lt?$e(Qe,Ee,ht):!!(ut==="application/xhtml+xml"&>[le.namespaceURI]):!1},We=function(le){xh(t.removed,{element:le});try{y(le).removeChild(le)}catch{if(p(le),!y(le))throw dd("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ot=function(le){const Ee=m(le);if(Ee){const ht=[];tv(Ee,Wt=>{xh(ht,Wt)}),tv(ht,Wt=>{try{p(Wt)}catch{}})}const Qe=x(le);if(Qe)for(let ht=Qe.length-1;ht>=0;--ht){const Wt=Qe[ht],rt=Wt&&Wt.name;if(typeof rt=="string")try{le.removeAttribute(rt)}catch{}}},lt=function(le,Ee){try{xh(t.removed,{attribute:Ee.getAttributeNode(le),from:Ee})}catch{xh(t.removed,{attribute:null,from:Ee})}if(Ee.removeAttribute(le),le==="is")if(Ie||xe)try{We(Ee)}catch{}else try{Ee.setAttribute(le,"")}catch{}},Mt=function(le){const Ee=x(le);if(Ee)for(let Qe=Ee.length-1;Qe>=0;--Qe){const ht=Ee[Qe],Wt=ht&&ht.name;if(!(typeof Wt!="string"||ie[Ve(Wt)]))try{le.removeAttribute(Wt)}catch{}}},jt=function(le){const Ee=[le];for(;Ee.length>0;){const Qe=Ee.pop();(S?S(Qe):Qe.nodeType)===Qs.element&&Mt(Qe);const Wt=m(Qe);if(Wt)for(let rt=Wt.length-1;rt>=0;--rt)Ee.push(Wt[rt])}},ft=function(le){let Ee=null,Qe=null;if(Te)le="<remove></remove>"+le;else{const rt=Jq(le,/^[\r\n\t ]+/);Qe=rt&&rt[0]}ut==="application/xhtml+xml"&&Bt===Lt&&(le='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+le+"</body></html>");const ht=w?T(le):le;if(Bt===Lt)try{Ee=new u().parseFromString(ht,ut)}catch{}if(!Ee||!Ee.documentElement){Ee=A.createDocument(Bt,"template",null);try{Ee.documentElement.innerHTML=nt?E:ht}catch{}}const Wt=Ee.body||Ee.documentElement;return le&&Qe&&Wt.insertBefore(n.createTextNode(Qe),Wt.childNodes[0]||null),Bt===Lt?j.call(Ee,Be?"html":"body")[0]:Be?Ee.documentElement:Wt},wt=function(le){return L.call(le.ownerDocument||le,le,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},$t=function(le){return le=nv(le,H," "),le=nv(le,D," "),le=nv(le,X," "),le},bn=function(le){var Ee;le.normalize();const Qe=L.call(le.ownerDocument||le,le,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null);let ht=Qe.nextNode();for(;ht;)ht.data=$t(ht.data),ht=Qe.nextNode();const Wt=(Ee=le.querySelectorAll)===null||Ee===void 0?void 0:Ee.call(le,"template");Wt&&tv(Wt,rt=>{Bn(rt.content)&&bn(rt.content)})},Un=function(le){const Ee=C?C(le):null;return typeof Ee!="string"||Ve(Ee)!=="form"?!1:typeof le.nodeName!="string"||typeof le.textContent!="string"||typeof le.removeChild!="function"||le.attributes!==x(le)||typeof le.removeAttribute!="function"||typeof le.setAttribute!="function"||typeof le.namespaceURI!="string"||typeof le.insertBefore!="function"||typeof le.hasChildNodes!="function"||le.nodeType!==S(le)||le.childNodes!==m(le)},Bn=function(le){if(!S||typeof le!="object"||le===null)return!1;try{return S(le)===Qs.documentFragment}catch{return!1}},fr=function(le){if(!S||typeof le!="object"||le===null)return!1;try{return typeof S(le)=="number"}catch{return!1}};function Qn(Ze,le,Ee){Ze.length!==0&&tv(Ze,Qe=>{Qe.call(t,le,Ee,bt)})}const gi=function(le,Ee){return!!(Se&&le.hasChildNodes()&&!fr(le.firstElementChild)&&Mi(lG,le.textContent)&&Mi(lG,le.innerHTML)||Se&&le.namespaceURI===Lt&&Ee==="style"&&fr(le.firstElementChild)||le.nodeType===Qs.processingInstruction||Se&&le.nodeType===Qs.comment&&Mi(n2t,le.data))},Zr=function(le,Ee){if(!se[Ee]&&vt(Ee)&&(J.tagNameCheck instanceof RegExp&&Mi(J.tagNameCheck,Ee)||J.tagNameCheck instanceof Function&&J.tagNameCheck(Ee)))return!1;if(Ae&&!tt[Ee]){const Qe=y(le),ht=m(le);if(ht&&Qe){const Wt=ht.length;for(let rt=Wt-1;rt>=0;--rt){const It=Ue?ht[rt]:h(ht[rt],!0);Qe.insertBefore(It,g(le))}}}return We(le),!0},mi=function(le){if(Qn(z.beforeSanitizeElements,le,null),Un(le))return We(le),!0;const Ee=Ve(C?C(le):le.nodeName);if(Qn(z.uponSanitizeElement,le,{tagName:Ee,allowedTags:K}),gi(le,Ee))return We(le),!0;if(se[Ee]||!(de.tagCheck instanceof Function&&de.tagCheck(Ee))&&!K[Ee])return Zr(le,Ee);if((S?S(le):le.nodeType)===Qs.element&&!He(le)||(Ee==="noscript"||Ee==="noembed"||Ee==="noframes")&&Mi(r2t,le.innerHTML))return We(le),!0;if(be&&le.nodeType===Qs.text){const ht=$t(le.textContent);le.textContent!==ht&&(xh(t.removed,{element:le.cloneNode()}),le.textContent=ht)}return Qn(z.afterSanitizeElements,le,null),!1},Jr=function(le,Ee,Qe){if(me[Ee]||Me&&(Ee==="id"||Ee==="name")&&(Qe in n||Qe in en))return!1;const ht=ie[Ee]||de.attributeCheck instanceof Function&&de.attributeCheck(Ee,le);if(!(Pe&&Mi(Y,Ee))){if(!(Oe&&Mi(ne,Ee))){if(ht){if(!vn[Ee]){if(!Mi(ee,nv(Qe,re,""))){if(!((Ee==="src"||Ee==="xlink:href"||Ee==="href")&&le!=="script"&&eG(Qe,"data:")===0&&Ht[le])){if(!(fe&&!Mi(ce,nv(Qe,re,"")))){if(Qe)return!1}}}}}else if(!(vt(le)&&(J.tagNameCheck instanceof RegExp&&Mi(J.tagNameCheck,le)||J.tagNameCheck instanceof Function&&J.tagNameCheck(le))&&(J.attributeNameCheck instanceof RegExp&&Mi(J.attributeNameCheck,Ee)||J.attributeNameCheck instanceof Function&&J.attributeNameCheck(Ee,le))||Ee==="is"&&J.allowCustomizedBuiltInElements&&(J.tagNameCheck instanceof RegExp&&Mi(J.tagNameCheck,Qe)||J.tagNameCheck instanceof Function&&J.tagNameCheck(Qe))))return!1}}return!0},On=Dn({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),vt=function(le){return!On[$v(le)]&&Mi(Z,le)},mt=function(le,Ee,Qe,ht){if(w&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!Qe)switch(d.getAttributeType(le,Ee)){case"TrustedHTML":return T(ht);case"TrustedScriptURL":return R(ht)}return ht},Sn=function(le,Ee,Qe,ht){try{Qe?le.setAttributeNS(Qe,Ee,ht):le.setAttribute(Ee,ht),Un(le)?We(le):Zq(t.removed)}catch{lt(Ee,le)}},gn=function(le){Qn(z.beforeSanitizeAttributes,le,null);const Ee=le.attributes;if(!Ee||Un(le))return;const Qe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ie,forceKeepAttr:void 0};let ht=Ee.length;const Wt=Ve(le.nodeName);for(;ht--;){const rt=Ee[ht],It=rt.name,fn=rt.namespaceURI,wn=rt.value,An=Ve(It),Zi=wn;let zn=It==="value"?Zi:DEt(Zi);if(Qe.attrName=An,Qe.attrValue=zn,Qe.keepAttr=!0,Qe.forceKeepAttr=void 0,Qn(z.uponSanitizeAttribute,le,Qe),zn=Qe.attrValue,Ne&&(An==="id"||An==="name")&&eG(zn,Ge)!==0&&(lt(It,le),zn=Ge+zn),Se&&Mi(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,zn)){lt(It,le);continue}if(An==="attributename"&&Jq(zn,"href")){lt(It,le);continue}if(!Qe.forceKeepAttr){if(!Qe.keepAttr){lt(It,le);continue}if(!ke&&Mi(i2t,zn)){lt(It,le);continue}if(be&&(zn=$t(zn)),!Jr(Wt,An,zn)){lt(It,le);continue}zn=mt(Wt,An,fn,zn),zn!==Zi&&Sn(le,It,fn,zn)}}Qn(z.afterSanitizeAttributes,le,null)},Pn=function(le){let Ee=null;const Qe=wt(le);for(Qn(z.beforeSanitizeShadowDOM,le,null);Ee=Qe.nextNode();)if(Qn(z.uponSanitizeShadowNode,Ee,null),mi(Ee),gn(Ee),Bn(Ee.content)&&Pn(Ee.content),(S?S(Ee):Ee.nodeType)===Qs.element){const Wt=b(Ee);Bn(Wt)&&(Kn(Wt),Pn(Wt))}Qn(z.afterSanitizeShadowDOM,le,null)},Kn=function(le){const Ee=[{node:le,shadow:null}];for(;Ee.length>0;){const Qe=Ee.pop();if(Qe.shadow){Pn(Qe.shadow);continue}const ht=Qe.node,rt=(S?S(ht):ht.nodeType)===Qs.element,It=m(ht);if(It)for(let fn=It.length-1;fn>=0;--fn)Ee.push({node:It[fn],shadow:null});if(rt){const fn=C?C(ht):null;if(typeof fn=="string"&&Ve(fn)==="template"){const wn=ht.content;Bn(wn)&&Ee.push({node:wn,shadow:null})}}if(rt){const fn=b(ht);Bn(fn)&&Ee.push({node:null,shadow:fn},{node:fn,shadow:null})}}};return t.sanitize=function(Ze){let le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ee=null,Qe=null,ht=null,Wt=null;if(nt=!Ze,nt&&(Ze="<!-->"),typeof Ze!="string"&&!fr(Ze)&&(Ze=VEt(Ze),typeof Ze!="string"))throw dd("dirty is not a string, aborting");if(!t.isSupported)return Ze;oe?(K=pe,ie=we):sn(le),(z.uponSanitizeElement.length>0||z.uponSanitizeAttribute.length>0)&&(K=So(K)),z.uponSanitizeAttribute.length>0&&(ie=So(ie)),t.removed=[];const rt=Ue&&typeof Ze!="string"&&fr(Ze);if(rt){const wn=C?C(Ze):Ze.nodeName;if(typeof wn=="string"){const An=Ve(wn);if(!K[An]||se[An])throw dd("root node is forbidden and cannot be sanitized in-place")}if(Un(Ze))throw dd("root node is clobbered and cannot be sanitized in-place");try{Kn(Ze)}catch(An){throw ot(Ze),An}}else if(fr(Ze))Ee=ft("<!---->"),Qe=Ee.ownerDocument.importNode(Ze,!0),Qe.nodeType===Qs.element&&Qe.nodeName==="BODY"||Qe.nodeName==="HTML"?Ee=Qe:Ee.appendChild(Qe),Kn(Qe);else{if(!Ie&&!be&&!Be&&Ze.indexOf("<")===-1)return w&&ye?T(Ze):Ze;if(Ee=ft(Ze),!Ee)return Ie?null:ye?E:""}Ee&&Te&&We(Ee.firstChild);const It=wt(rt?Ze:Ee);try{for(;ht=It.nextNode();)mi(ht),gn(ht),Bn(ht.content)&&Pn(ht.content)}catch(wn){throw rt&&ot(Ze),wn}if(rt)return tv(t.removed,wn=>{wn.element&&jt(wn.element)}),be&&bn(Ze),Ze;if(Ie){if(be&&bn(Ee),xe)for(Wt=M.call(Ee.ownerDocument);Ee.firstChild;)Wt.appendChild(Ee.firstChild);else Wt=Ee;return(ie.shadowroot||ie.shadowrootmode)&&(Wt=N.call(r,Wt,!0)),Wt}let fn=Be?Ee.outerHTML:Ee.innerHTML;return Be&&K["!doctype"]&&Ee.ownerDocument&&Ee.ownerDocument.doctype&&Ee.ownerDocument.doctype.name&&Mi(e2t,Ee.ownerDocument.doctype.name)&&(fn="<!DOCTYPE "+Ee.ownerDocument.doctype.name+`>
|
|
2293
2293
|
`+fn),be&&(fn=$t(fn)),w&&ye?T(fn):fn},t.setConfig=function(){let Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};sn(Ze),oe=!0,pe=K,we=ie},t.clearConfig=function(){bt=null,oe=!1,pe=null,we=null,w=_,E=""},t.isValidAttribute=function(Ze,le,Ee){bt||sn({});const Qe=Ve(Ze),ht=Ve(le);return Jr(Qe,ht,Ee)},t.addHook=function(Ze,le){typeof le=="function"&&xi(z,Ze)&&xh(z[Ze],le)},t.removeHook=function(Ze,le){if(xi(z,Ze)){if(le!==void 0){const Ee=NEt(z[Ze],le);return Ee===-1?void 0:BEt(z[Ze],Ee,1)[0]}return Zq(z[Ze])}},t.removeHooks=function(Ze){xi(z,Ze)&&(z[Ze]=[])},t.removeAllHooks=function(){z=cG()},t}var Tc=lue(),fM=F((e,t,{depth:n=2,clobber:r=!1}={})=>{const i={depth:n,clobber:r};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(o=>fM(e,o,i)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(o=>{e.includes(o)||e.push(o)}),e):e===void 0||n<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(o=>{typeof t[o]=="object"&&t[o]!==null&&(e[o]===void 0||typeof e[o]=="object")?(e[o]===void 0&&(e[o]=Array.isArray(t[o])?[]:{}),e[o]=fM(e[o],t[o],{depth:n-1,clobber:r})):(r||typeof e[o]!="object"&&typeof t[o]!="object")&&(e[o]=t[o])}),e)},"assignWithDepth"),si=fM,Rl="#ffffff",Ll="#f2f2f2",Qt=F((e,t)=>t?G(e,{s:-40,l:10}):G(e,{s:-40,l:-10}),"mkBorder"),_p,s2t=(_p=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var n,r,i,o,a,s,l,c,u,d,f,h,p,g,m,y,b,x,S,C,w,E,_,k,P,O,T,R,$,I,A,L,M,j,N,z,H,D,X,Y,ne,ce,re,Z,ee,K,W,ie,q;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||G(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||G(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Qt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Qt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Qt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Qt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Ce(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ce(this.tertiaryColor),this.lineColor=this.lineColor||Ce(this.background),this.arrowheadColor=this.arrowheadColor||Ce(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Le(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Le(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ce(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Re(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||Le(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||Le(this.mainBkg,10)):(this.rowOdd=this.rowOdd||Re(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Re(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||G(this.primaryColor,{h:30}),this.cScale4=this.cScale4||G(this.primaryColor,{h:60}),this.cScale5=this.cScale5||G(this.primaryColor,{h:90}),this.cScale6=this.cScale6||G(this.primaryColor,{h:120}),this.cScale7=this.cScale7||G(this.primaryColor,{h:150}),this.cScale8=this.cScale8||G(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||G(this.primaryColor,{h:270}),this.cScale10=this.cScale10||G(this.primaryColor,{h:300}),this.cScale11=this.cScale11||G(this.primaryColor,{h:330}),this.darkMode)for(let J=0;J<this.THEME_COLOR_LIMIT;J++)this["cScale"+J]=Le(this["cScale"+J],75);else for(let J=0;J<this.THEME_COLOR_LIMIT;J++)this["cScale"+J]=Le(this["cScale"+J],25);for(let J=0;J<this.THEME_COLOR_LIMIT;J++)this["cScaleInv"+J]=this["cScaleInv"+J]||Ce(this["cScale"+J]);for(let J=0;J<this.THEME_COLOR_LIMIT;J++)this.darkMode?this["cScalePeer"+J]=this["cScalePeer"+J]||Re(this["cScale"+J],10):this["cScalePeer"+J]=this["cScalePeer"+J]||Le(this["cScale"+J],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let J=0;J<this.THEME_COLOR_LIMIT;J++)this["cScaleLabel"+J]=this["cScaleLabel"+J]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let J=0;J<5;J++)this["surface"+J]=this["surface"+J]||G(this.mainBkg,{h:180,s:-15,l:t*(5+J*3)}),this["surfacePeer"+J]=this["surfacePeer"+J]||G(this.mainBkg,{h:180,s:-15,l:t*(8+J*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||G(this.primaryColor,{h:64}),this.fillType3=this.fillType3||G(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||G(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||G(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||G(this.primaryColor,{h:128}),this.fillType7=this.fillType7||G(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||G(this.primaryColor,{l:-10}),this.pie5=this.pie5||G(this.secondaryColor,{l:-10}),this.pie6=this.pie6||G(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||G(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||G(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||G(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||G(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||G(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||G(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??G(this.primaryColor,{l:-30}),this.venn2=this.venn2??G(this.secondaryColor,{l:-30}),this.venn3=this.venn3??G(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??G(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??G(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??G(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??G(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??G(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:((n=this.cynefin)==null?void 0:n.domainFontSize)||16,itemFontSize:((r=this.cynefin)==null?void 0:r.itemFontSize)||12,boundaryColor:((i=this.cynefin)==null?void 0:i.boundaryColor)||this.lineColor,boundaryWidth:((o=this.cynefin)==null?void 0:o.boundaryWidth)||2,cliffColor:((a=this.cynefin)==null?void 0:a.cliffColor)||"#8B0000",cliffWidth:((s=this.cynefin)==null?void 0:s.cliffWidth)||4,arrowColor:((l=this.cynefin)==null?void 0:l.arrowColor)||this.lineColor,arrowWidth:((c=this.cynefin)==null?void 0:c.arrowWidth)||2,complexBg:((u=this.cynefin)==null?void 0:u.complexBg)||"#E8F5E9",complicatedBg:((d=this.cynefin)==null?void 0:d.complicatedBg)||"#E3F2FD",chaoticBg:((f=this.cynefin)==null?void 0:f.chaoticBg)||"#FBE9E7",clearBg:((h=this.cynefin)==null?void 0:h.clearBg)||"#FFF8E1",confusionBg:((p=this.cynefin)==null?void 0:p.confusionBg)||"#F3E5F5",textColor:((g=this.cynefin)==null?void 0:g.textColor)||this.textColor,labelColor:((m=this.cynefin)==null?void 0:m.labelColor)||this.primaryTextColor},this.radar={axisColor:((y=this.radar)==null?void 0:y.axisColor)||this.lineColor,axisStrokeWidth:((b=this.radar)==null?void 0:b.axisStrokeWidth)||2,axisLabelFontSize:((x=this.radar)==null?void 0:x.axisLabelFontSize)||12,curveOpacity:((S=this.radar)==null?void 0:S.curveOpacity)||.5,curveStrokeWidth:((C=this.radar)==null?void 0:C.curveStrokeWidth)||2,graticuleColor:((w=this.radar)==null?void 0:w.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((E=this.radar)==null?void 0:E.graticuleStrokeWidth)||1,graticuleOpacity:((_=this.radar)==null?void 0:_.graticuleOpacity)||.3,legendBoxSize:((k=this.radar)==null?void 0:k.legendBoxSize)||12,legendFontSize:((P=this.radar)==null?void 0:P.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((O=this.wardley)==null?void 0:O.backgroundColor)||this.background,axisColor:((T=this.wardley)==null?void 0:T.axisColor)||this.lineColor,axisTextColor:((R=this.wardley)==null?void 0:R.axisTextColor)||this.primaryTextColor,gridColor:(($=this.wardley)==null?void 0:$.gridColor)||this.gridColor,componentFill:((I=this.wardley)==null?void 0:I.componentFill)||this.background,componentStroke:((A=this.wardley)==null?void 0:A.componentStroke)||this.lineColor,componentLabelColor:((L=this.wardley)==null?void 0:L.componentLabelColor)||this.primaryTextColor,linkStroke:((M=this.wardley)==null?void 0:M.linkStroke)||this.lineColor,evolutionStroke:((j=this.wardley)==null?void 0:j.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((N=this.wardley)==null?void 0:N.annotationStroke)||this.lineColor,annotationTextColor:((z=this.wardley)==null?void 0:z.annotationTextColor)||this.primaryTextColor,annotationFill:((H=this.wardley)==null?void 0:H.annotationFill)||this.background},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||G(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||G(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||G(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||G(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||G(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||G(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Us(this.quadrant1Fill)?Re(this.quadrant1Fill):Le(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((D=this.xyChart)==null?void 0:D.backgroundColor)||this.background,titleColor:((X=this.xyChart)==null?void 0:X.titleColor)||this.primaryTextColor,dataLabelColor:((Y=this.xyChart)==null?void 0:Y.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((ne=this.xyChart)==null?void 0:ne.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((ce=this.xyChart)==null?void 0:ce.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((re=this.xyChart)==null?void 0:re.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((Z=this.xyChart)==null?void 0:Z.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((ee=this.xyChart)==null?void 0:ee.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((K=this.xyChart)==null?void 0:K.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((W=this.xyChart)==null?void 0:W.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((ie=this.xyChart)==null?void 0:ie.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((q=this.xyChart)==null?void 0:q.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Le(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||G(this.primaryColor,{h:-30}),this.git4=this.git4||G(this.primaryColor,{h:-60}),this.git5=this.git5||G(this.primaryColor,{h:-90}),this.git6=this.git6||G(this.primaryColor,{h:60}),this.git7=this.git7||G(this.primaryColor,{h:120}),this.darkMode?(this.git0=Re(this.git0,25),this.git1=Re(this.git1,25),this.git2=Re(this.git2,25),this.git3=Re(this.git3,25),this.git4=Re(this.git4,25),this.git5=Re(this.git5,25),this.git6=Re(this.git6,25),this.git7=Re(this.git7,25)):(this.git0=Le(this.git0,25),this.git1=Le(this.git1,25),this.git2=Le(this.git2,25),this.git3=Le(this.git3,25),this.git4=Le(this.git4,25),this.git5=Le(this.git5,25),this.git6=Le(this.git6,25),this.git7=Le(this.git7,25)),this.gitInv0=this.gitInv0||Ce(this.git0),this.gitInv1=this.gitInv1||Ce(this.git1),this.gitInv2=this.gitInv2||Ce(this.git2),this.gitInv3=this.gitInv3||Ce(this.git3),this.gitInv4=this.gitInv4||Ce(this.git4),this.gitInv5=this.gitInv5||Ce(this.git5),this.gitInv6=this.gitInv6||Ce(this.git6),this.gitInv7=this.gitInv7||Ce(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Rl,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ll,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}},F(_p,"Theme"),_p),l2t=F(e=>{const t=new s2t;return t.calculate(e),t},"getThemeVariables"),kp,c2t=(kp=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Re(this.primaryColor,16),this.tertiaryColor=G(this.primaryColor,{h:-160}),this.primaryBorderColor=Ce(this.background),this.secondaryBorderColor=Qt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ce(this.primaryColor),this.secondaryTextColor=Ce(this.secondaryColor),this.tertiaryTextColor=Ce(this.tertiaryColor),this.lineColor=Ce(this.background),this.textColor=Ce(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Re(Ce("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Iu(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.clusterBkg="#302F3D",this.sectionBkgColor=Le("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=Le(this.sectionBkgColor,10),this.taskBorderColor=Iu(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Iu(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||Re(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||Le(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){var t,n,r,i,o,a,s,l,c,u,d,f,h,p,g,m,y,b,x,S,C,w,E,_,k,P,O,T,R,$,I,A,L,M,j,N,z,H,D,X,Y,ne,ce,re,Z,ee,K,W,ie;this.secondBkg=Re(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=Re(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.background,this.taskBkgColor=Re(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=Ce(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=G(this.primaryColor,{h:64}),this.fillType3=G(this.secondaryColor,{h:64}),this.fillType4=G(this.primaryColor,{h:-64}),this.fillType5=G(this.secondaryColor,{h:-64}),this.fillType6=G(this.primaryColor,{h:128}),this.fillType7=G(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||G(this.primaryColor,{h:30}),this.cScale4=this.cScale4||G(this.primaryColor,{h:60}),this.cScale5=this.cScale5||G(this.primaryColor,{h:90}),this.cScale6=this.cScale6||G(this.primaryColor,{h:120}),this.cScale7=this.cScale7||G(this.primaryColor,{h:150}),this.cScale8=this.cScale8||G(this.primaryColor,{h:210}),this.cScale9=this.cScale9||G(this.primaryColor,{h:270}),this.cScale10=this.cScale10||G(this.primaryColor,{h:300}),this.cScale11=this.cScale11||G(this.primaryColor,{h:330});for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this["cScaleInv"+q]=this["cScaleInv"+q]||Ce(this["cScale"+q]);for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this["cScalePeer"+q]=this["cScalePeer"+q]||Re(this["cScale"+q],10);for(let q=0;q<5;q++)this["surface"+q]=this["surface"+q]||G(this.mainBkg,{h:30,s:-30,l:-(-10+q*4)}),this["surfacePeer"+q]=this["surfacePeer"+q]||G(this.mainBkg,{h:30,s:-30,l:-(-7+q*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this["cScaleLabel"+q]=this["cScaleLabel"+q]||this.scaleLabelColor;for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this["pie"+q]=this["cScale"+q];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let q=0;q<8;q++)this["venn"+(q+1)]=this["venn"+(q+1)]??Re(this["cScale"+q],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:((t=this.cynefin)==null?void 0:t.domainFontSize)||16,itemFontSize:((n=this.cynefin)==null?void 0:n.itemFontSize)||12,boundaryColor:((r=this.cynefin)==null?void 0:r.boundaryColor)||this.lineColor,boundaryWidth:((i=this.cynefin)==null?void 0:i.boundaryWidth)||2,cliffColor:((o=this.cynefin)==null?void 0:o.cliffColor)||"#FF6B6B",cliffWidth:((a=this.cynefin)==null?void 0:a.cliffWidth)||4,arrowColor:((s=this.cynefin)==null?void 0:s.arrowColor)||this.lineColor,arrowWidth:((l=this.cynefin)==null?void 0:l.arrowWidth)||2,complexBg:((c=this.cynefin)==null?void 0:c.complexBg)||"#1B5E20",complicatedBg:((u=this.cynefin)==null?void 0:u.complicatedBg)||"#0D47A1",chaoticBg:((d=this.cynefin)==null?void 0:d.chaoticBg)||"#BF360C",clearBg:((f=this.cynefin)==null?void 0:f.clearBg)||"#F57F17",confusionBg:((h=this.cynefin)==null?void 0:h.confusionBg)||"#4A148C",textColor:((p=this.cynefin)==null?void 0:p.textColor)||this.textColor,labelColor:((g=this.cynefin)==null?void 0:g.labelColor)||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||G(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||G(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||G(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||G(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||G(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||G(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Us(this.quadrant1Fill)?Re(this.quadrant1Fill):Le(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((m=this.xyChart)==null?void 0:m.backgroundColor)||this.background,titleColor:((y=this.xyChart)==null?void 0:y.titleColor)||this.primaryTextColor,dataLabelColor:((b=this.xyChart)==null?void 0:b.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((x=this.xyChart)==null?void 0:x.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((S=this.xyChart)==null?void 0:S.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((C=this.xyChart)==null?void 0:C.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((w=this.xyChart)==null?void 0:w.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((E=this.xyChart)==null?void 0:E.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((_=this.xyChart)==null?void 0:_.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((k=this.xyChart)==null?void 0:k.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((P=this.xyChart)==null?void 0:P.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((O=this.xyChart)==null?void 0:O.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:((T=this.radar)==null?void 0:T.axisColor)||this.lineColor,axisStrokeWidth:((R=this.radar)==null?void 0:R.axisStrokeWidth)||2,axisLabelFontSize:(($=this.radar)==null?void 0:$.axisLabelFontSize)||12,curveOpacity:((I=this.radar)==null?void 0:I.curveOpacity)||.5,curveStrokeWidth:((A=this.radar)==null?void 0:A.curveStrokeWidth)||2,graticuleColor:((L=this.radar)==null?void 0:L.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((M=this.radar)==null?void 0:M.graticuleStrokeWidth)||1,graticuleOpacity:((j=this.radar)==null?void 0:j.graticuleOpacity)||.3,legendBoxSize:((N=this.radar)==null?void 0:N.legendBoxSize)||12,legendFontSize:((z=this.radar)==null?void 0:z.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#ff6b6b",this.wardley={backgroundColor:((H=this.wardley)==null?void 0:H.backgroundColor)||this.background,axisColor:((D=this.wardley)==null?void 0:D.axisColor)||this.lineColor,axisTextColor:((X=this.wardley)==null?void 0:X.axisTextColor)||this.primaryTextColor,gridColor:((Y=this.wardley)==null?void 0:Y.gridColor)||this.gridColor,componentFill:((ne=this.wardley)==null?void 0:ne.componentFill)||this.mainBkg,componentStroke:((ce=this.wardley)==null?void 0:ce.componentStroke)||this.lineColor,componentLabelColor:((re=this.wardley)==null?void 0:re.componentLabelColor)||this.primaryTextColor,linkStroke:((Z=this.wardley)==null?void 0:Z.linkStroke)||this.lineColor,evolutionStroke:((ee=this.wardley)==null?void 0:ee.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((K=this.wardley)==null?void 0:K.annotationStroke)||this.lineColor,annotationTextColor:((W=this.wardley)==null?void 0:W.annotationTextColor)||this.primaryTextColor,annotationFill:((ie=this.wardley)==null?void 0:ie.annotationFill)||this.mainBkg},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Le(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Re(this.secondaryColor,20),this.git1=Re(this.pie2||this.secondaryColor,20),this.git2=Re(this.pie3||this.tertiaryColor,20),this.git3=Re(this.pie4||G(this.primaryColor,{h:-30}),20),this.git4=Re(this.pie5||G(this.primaryColor,{h:-60}),20),this.git5=Re(this.pie6||G(this.primaryColor,{h:-90}),10),this.git6=Re(this.pie7||G(this.primaryColor,{h:60}),10),this.git7=Re(this.pie8||G(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||Ce(this.git0),this.gitInv1=this.gitInv1||Ce(this.git1),this.gitInv2=this.gitInv2||Ce(this.git2),this.gitInv3=this.gitInv3||Ce(this.git3),this.gitInv4=this.gitInv4||Ce(this.git4),this.gitInv5=this.gitInv5||Ce(this.git5),this.gitInv6=this.gitInv6||Ce(this.git6),this.gitInv7=this.gitInv7||Ce(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Ce(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Ce(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"#2d2d2d",this.emUiStroke=this.emUiStroke||"#555",this.emProcessorFill=this.emProcessorFill||Re("#5a3d5c",10),this.emProcessorStroke=this.emProcessorStroke||"#8a6d8c",this.emReadModelFill=this.emReadModelFill||Re("#3d5a2d",10),this.emReadModelStroke=this.emReadModelStroke||"#6d8c5c",this.emCommandFill=this.emCommandFill||Re("#2d3d5a",10),this.emCommandStroke=this.emCommandStroke||"#5c6d8c",this.emEventFill=this.emEventFill||Re("#5a452d",10),this.emEventStroke=this.emEventStroke||"#8c755c",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||Re(this.background,5),this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||Re(this.background,12),this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Re(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Re(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}},F(kp,"Theme"),kp),u2t=F(e=>{const t=new c2t;return t.calculate(e),t},"getThemeVariables"),Tp,d2t=(Tp=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=G(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=G(this.primaryColor,{h:-160}),this.primaryBorderColor=Qt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Qt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ce(this.primaryColor),this.secondaryTextColor=Ce(this.secondaryColor),this.tertiaryTextColor=Ce(this.tertiaryColor),this.lineColor=Ce(this.background),this.textColor=Ce(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=Qt(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=Iu(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){var t,n,r,i,o,a,s,l,c,u,d,f,h,p,g,m,y,b,x,S,C,w,E,_,k,P,O,T,R,$,I,A,L,M,j,N,z,H,D,X,Y,ne,ce,re,Z,ee,K,W,ie;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||G(this.primaryColor,{h:30}),this.cScale4=this.cScale4||G(this.primaryColor,{h:60}),this.cScale5=this.cScale5||G(this.primaryColor,{h:90}),this.cScale6=this.cScale6||G(this.primaryColor,{h:120}),this.cScale7=this.cScale7||G(this.primaryColor,{h:150}),this.cScale8=this.cScale8||G(this.primaryColor,{h:210}),this.cScale9=this.cScale9||G(this.primaryColor,{h:270}),this.cScale10=this.cScale10||G(this.primaryColor,{h:300}),this.cScale11=this.cScale11||G(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Le(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Le(this.tertiaryColor,40);for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this["cScale"+q]=Le(this["cScale"+q],10),this["cScalePeer"+q]=this["cScalePeer"+q]||Le(this["cScale"+q],25);for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this["cScaleInv"+q]=this["cScaleInv"+q]||G(this["cScale"+q],{h:180});for(let q=0;q<5;q++)this["surface"+q]=this["surface"+q]||G(this.mainBkg,{h:30,l:-(5+q*5)}),this["surfacePeer"+q]=this["surfacePeer"+q]||G(this.mainBkg,{h:30,l:-(7+q*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||Ce(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||Ce(this.labelTextColor);for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this["cScaleLabel"+q]=this["cScaleLabel"+q]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||Re(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||Re(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=G(this.primaryColor,{h:64}),this.fillType3=G(this.secondaryColor,{h:64}),this.fillType4=G(this.primaryColor,{h:-64}),this.fillType5=G(this.secondaryColor,{h:-64}),this.fillType6=G(this.primaryColor,{h:128}),this.fillType7=G(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||G(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||G(this.primaryColor,{l:-10}),this.pie5=this.pie5||G(this.secondaryColor,{l:-30}),this.pie6=this.pie6||G(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||G(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||G(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||G(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||G(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||G(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||G(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??G(this.primaryColor,{l:-30}),this.venn2=this.venn2??G(this.secondaryColor,{l:-30}),this.venn3=this.venn3??G(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??G(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??G(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??G(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??G(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??G(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:((t=this.cynefin)==null?void 0:t.domainFontSize)||16,itemFontSize:((n=this.cynefin)==null?void 0:n.itemFontSize)||12,boundaryColor:((r=this.cynefin)==null?void 0:r.boundaryColor)||this.lineColor,boundaryWidth:((i=this.cynefin)==null?void 0:i.boundaryWidth)||2,cliffColor:((o=this.cynefin)==null?void 0:o.cliffColor)||"#8B0000",cliffWidth:((a=this.cynefin)==null?void 0:a.cliffWidth)||4,arrowColor:((s=this.cynefin)==null?void 0:s.arrowColor)||this.lineColor,arrowWidth:((l=this.cynefin)==null?void 0:l.arrowWidth)||2,complexBg:((c=this.cynefin)==null?void 0:c.complexBg)||"#E8F5E9",complicatedBg:((u=this.cynefin)==null?void 0:u.complicatedBg)||"#E3F2FD",chaoticBg:((d=this.cynefin)==null?void 0:d.chaoticBg)||"#FBE9E7",clearBg:((f=this.cynefin)==null?void 0:f.clearBg)||"#FFF8E1",confusionBg:((h=this.cynefin)==null?void 0:h.confusionBg)||"#F3E5F5",textColor:((p=this.cynefin)==null?void 0:p.textColor)||this.textColor,labelColor:((g=this.cynefin)==null?void 0:g.labelColor)||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||G(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||G(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||G(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||G(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||G(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||G(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Us(this.quadrant1Fill)?Re(this.quadrant1Fill):Le(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:((m=this.radar)==null?void 0:m.axisColor)||this.lineColor,axisStrokeWidth:((y=this.radar)==null?void 0:y.axisStrokeWidth)||2,axisLabelFontSize:((b=this.radar)==null?void 0:b.axisLabelFontSize)||12,curveOpacity:((x=this.radar)==null?void 0:x.curveOpacity)||.5,curveStrokeWidth:((S=this.radar)==null?void 0:S.curveStrokeWidth)||2,graticuleColor:((C=this.radar)==null?void 0:C.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((w=this.radar)==null?void 0:w.graticuleStrokeWidth)||1,graticuleOpacity:((E=this.radar)==null?void 0:E.graticuleOpacity)||.3,legendBoxSize:((_=this.radar)==null?void 0:_.legendBoxSize)||12,legendFontSize:((k=this.radar)==null?void 0:k.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((P=this.wardley)==null?void 0:P.backgroundColor)||this.background,axisColor:((O=this.wardley)==null?void 0:O.axisColor)||this.lineColor,axisTextColor:((T=this.wardley)==null?void 0:T.axisTextColor)||this.primaryTextColor,gridColor:((R=this.wardley)==null?void 0:R.gridColor)||this.gridColor,componentFill:(($=this.wardley)==null?void 0:$.componentFill)||this.background,componentStroke:((I=this.wardley)==null?void 0:I.componentStroke)||this.lineColor,componentLabelColor:((A=this.wardley)==null?void 0:A.componentLabelColor)||this.primaryTextColor,linkStroke:((L=this.wardley)==null?void 0:L.linkStroke)||this.lineColor,evolutionStroke:((M=this.wardley)==null?void 0:M.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((j=this.wardley)==null?void 0:j.annotationStroke)||this.lineColor,annotationTextColor:((N=this.wardley)==null?void 0:N.annotationTextColor)||this.primaryTextColor,annotationFill:((z=this.wardley)==null?void 0:z.annotationFill)||this.background},this.xyChart={backgroundColor:((H=this.xyChart)==null?void 0:H.backgroundColor)||this.background,titleColor:((D=this.xyChart)==null?void 0:D.titleColor)||this.primaryTextColor,dataLabelColor:((X=this.xyChart)==null?void 0:X.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((Y=this.xyChart)==null?void 0:Y.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((ne=this.xyChart)==null?void 0:ne.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((ce=this.xyChart)==null?void 0:ce.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((re=this.xyChart)==null?void 0:re.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((Z=this.xyChart)==null?void 0:Z.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((ee=this.xyChart)==null?void 0:ee.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((K=this.xyChart)==null?void 0:K.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((W=this.xyChart)==null?void 0:W.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((ie=this.xyChart)==null?void 0:ie.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||G(this.primaryColor,{h:-30}),this.git4=this.git4||G(this.primaryColor,{h:-60}),this.git5=this.git5||G(this.primaryColor,{h:-90}),this.git6=this.git6||G(this.primaryColor,{h:60}),this.git7=this.git7||G(this.primaryColor,{h:120}),this.darkMode?(this.git0=Re(this.git0,25),this.git1=Re(this.git1,25),this.git2=Re(this.git2,25),this.git3=Re(this.git3,25),this.git4=Re(this.git4,25),this.git5=Re(this.git5,25),this.git6=Re(this.git6,25),this.git7=Re(this.git7,25)):(this.git0=Le(this.git0,25),this.git1=Le(this.git1,25),this.git2=Le(this.git2,25),this.git3=Le(this.git3,25),this.git4=Le(this.git4,25),this.git5=Le(this.git5,25),this.git6=Le(this.git6,25),this.git7=Le(this.git7,25)),this.gitInv0=this.gitInv0||Le(Ce(this.git0),25),this.gitInv1=this.gitInv1||Ce(this.git1),this.gitInv2=this.gitInv2||Ce(this.git2),this.gitInv3=this.gitInv3||Ce(this.git3),this.gitInv4=this.gitInv4||Ce(this.git4),this.gitInv5=this.gitInv5||Ce(this.git5),this.gitInv6=this.gitInv6||Ce(this.git6),this.gitInv7=this.gitInv7||Ce(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Ce(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Ce(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Rl,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ll}calculate(t){if(Object.keys(this).forEach(r=>{this[r]==="calculated"&&(this[r]=void 0)}),typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}},F(Tp,"Theme"),Tp),f2t=F(e=>{const t=new d2t;return t.calculate(e),t},"getThemeVariables"),$p,h2t=($p=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=Re("#cde498",10),this.primaryBorderColor=Qt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Qt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ce(this.primaryColor),this.secondaryTextColor=Ce(this.secondaryColor),this.tertiaryTextColor=Ce(this.primaryColor),this.lineColor=Ce(this.background),this.textColor=Ce(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){var t,n,r,i,o,a,s,l,c,u,d,f,h,p,g,m,y,b,x,S,C,w,E,_,k,P,O,T,R,$,I,A,L,M,j,N,z,H,D,X,Y,ne,ce,re,Z,ee,K,W,ie;this.actorBorder=Le(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||G(this.primaryColor,{h:30}),this.cScale4=this.cScale4||G(this.primaryColor,{h:60}),this.cScale5=this.cScale5||G(this.primaryColor,{h:90}),this.cScale6=this.cScale6||G(this.primaryColor,{h:120}),this.cScale7=this.cScale7||G(this.primaryColor,{h:150}),this.cScale8=this.cScale8||G(this.primaryColor,{h:210}),this.cScale9=this.cScale9||G(this.primaryColor,{h:270}),this.cScale10=this.cScale10||G(this.primaryColor,{h:300}),this.cScale11=this.cScale11||G(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Le(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Le(this.tertiaryColor,40);for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this["cScale"+q]=Le(this["cScale"+q],10),this["cScalePeer"+q]=this["cScalePeer"+q]||Le(this["cScale"+q],25);for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this["cScaleInv"+q]=this["cScaleInv"+q]||G(this["cScale"+q],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this["cScaleLabel"+q]=this["cScaleLabel"+q]||this.scaleLabelColor;for(let q=0;q<5;q++)this["surface"+q]=this["surface"+q]||G(this.mainBkg,{h:30,s:-30,l:-(5+q*5)}),this["surfacePeer"+q]=this["surfacePeer"+q]||G(this.mainBkg,{h:30,s:-30,l:-(8+q*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||Re(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Re(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=G(this.primaryColor,{h:64}),this.fillType3=G(this.secondaryColor,{h:64}),this.fillType4=G(this.primaryColor,{h:-64}),this.fillType5=G(this.secondaryColor,{h:-64}),this.fillType6=G(this.primaryColor,{h:128}),this.fillType7=G(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||G(this.primaryColor,{l:-30}),this.pie5=this.pie5||G(this.secondaryColor,{l:-30}),this.pie6=this.pie6||G(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||G(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||G(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||G(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||G(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||G(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||G(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??G(this.primaryColor,{l:-30}),this.venn2=this.venn2??G(this.secondaryColor,{l:-30}),this.venn3=this.venn3??G(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??G(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??G(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??G(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??G(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??G(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:((t=this.cynefin)==null?void 0:t.domainFontSize)||16,itemFontSize:((n=this.cynefin)==null?void 0:n.itemFontSize)||12,boundaryColor:((r=this.cynefin)==null?void 0:r.boundaryColor)||this.lineColor,boundaryWidth:((i=this.cynefin)==null?void 0:i.boundaryWidth)||2,cliffColor:((o=this.cynefin)==null?void 0:o.cliffColor)||"#8B4513",cliffWidth:((a=this.cynefin)==null?void 0:a.cliffWidth)||4,arrowColor:((s=this.cynefin)==null?void 0:s.arrowColor)||this.lineColor,arrowWidth:((l=this.cynefin)==null?void 0:l.arrowWidth)||2,complexBg:((c=this.cynefin)==null?void 0:c.complexBg)||"#C8E6C9",complicatedBg:((u=this.cynefin)==null?void 0:u.complicatedBg)||"#DCEDC8",chaoticBg:((d=this.cynefin)==null?void 0:d.chaoticBg)||"#FFE0B2",clearBg:((f=this.cynefin)==null?void 0:f.clearBg)||"#FFF9C4",confusionBg:((h=this.cynefin)==null?void 0:h.confusionBg)||"#D7CCC8",textColor:((p=this.cynefin)==null?void 0:p.textColor)||this.textColor,labelColor:((g=this.cynefin)==null?void 0:g.labelColor)||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||G(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||G(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||G(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||G(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||G(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||G(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Us(this.quadrant1Fill)?Re(this.quadrant1Fill):Le(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:((m=this.radar)==null?void 0:m.axisColor)||this.lineColor,axisStrokeWidth:((y=this.radar)==null?void 0:y.axisStrokeWidth)||2,axisLabelFontSize:((b=this.radar)==null?void 0:b.axisLabelFontSize)||12,curveOpacity:((x=this.radar)==null?void 0:x.curveOpacity)||.5,curveStrokeWidth:((S=this.radar)==null?void 0:S.curveStrokeWidth)||2,graticuleColor:((C=this.radar)==null?void 0:C.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((w=this.radar)==null?void 0:w.graticuleStrokeWidth)||1,graticuleOpacity:((E=this.radar)==null?void 0:E.graticuleOpacity)||.3,legendBoxSize:((_=this.radar)==null?void 0:_.legendBoxSize)||12,legendFontSize:((k=this.radar)==null?void 0:k.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((P=this.wardley)==null?void 0:P.backgroundColor)||this.background,axisColor:((O=this.wardley)==null?void 0:O.axisColor)||this.lineColor,axisTextColor:((T=this.wardley)==null?void 0:T.axisTextColor)||this.primaryTextColor,gridColor:((R=this.wardley)==null?void 0:R.gridColor)||this.gridColor,componentFill:(($=this.wardley)==null?void 0:$.componentFill)||this.background,componentStroke:((I=this.wardley)==null?void 0:I.componentStroke)||this.lineColor,componentLabelColor:((A=this.wardley)==null?void 0:A.componentLabelColor)||this.primaryTextColor,linkStroke:((L=this.wardley)==null?void 0:L.linkStroke)||this.lineColor,evolutionStroke:((M=this.wardley)==null?void 0:M.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((j=this.wardley)==null?void 0:j.annotationStroke)||this.lineColor,annotationTextColor:((N=this.wardley)==null?void 0:N.annotationTextColor)||this.primaryTextColor,annotationFill:((z=this.wardley)==null?void 0:z.annotationFill)||this.background},this.xyChart={backgroundColor:((H=this.xyChart)==null?void 0:H.backgroundColor)||this.background,titleColor:((D=this.xyChart)==null?void 0:D.titleColor)||this.primaryTextColor,dataLabelColor:((X=this.xyChart)==null?void 0:X.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((Y=this.xyChart)==null?void 0:Y.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((ne=this.xyChart)==null?void 0:ne.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((ce=this.xyChart)==null?void 0:ce.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((re=this.xyChart)==null?void 0:re.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((Z=this.xyChart)==null?void 0:Z.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((ee=this.xyChart)==null?void 0:ee.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((K=this.xyChart)==null?void 0:K.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((W=this.xyChart)==null?void 0:W.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((ie=this.xyChart)==null?void 0:ie.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||G(this.primaryColor,{h:-30}),this.git4=this.git4||G(this.primaryColor,{h:-60}),this.git5=this.git5||G(this.primaryColor,{h:-90}),this.git6=this.git6||G(this.primaryColor,{h:60}),this.git7=this.git7||G(this.primaryColor,{h:120}),this.darkMode?(this.git0=Re(this.git0,25),this.git1=Re(this.git1,25),this.git2=Re(this.git2,25),this.git3=Re(this.git3,25),this.git4=Re(this.git4,25),this.git5=Re(this.git5,25),this.git6=Re(this.git6,25),this.git7=Re(this.git7,25)):(this.git0=Le(this.git0,25),this.git1=Le(this.git1,25),this.git2=Le(this.git2,25),this.git3=Le(this.git3,25),this.git4=Le(this.git4,25),this.git5=Le(this.git5,25),this.git6=Le(this.git6,25),this.git7=Le(this.git7,25)),this.gitInv0=this.gitInv0||Ce(this.git0),this.gitInv1=this.gitInv1||Ce(this.git1),this.gitInv2=this.gitInv2||Ce(this.git2),this.gitInv3=this.gitInv3||Ce(this.git3),this.gitInv4=this.gitInv4||Ce(this.git4),this.gitInv5=this.gitInv5||Ce(this.git5),this.gitInv6=this.gitInv6||Ce(this.git6),this.gitInv7=this.gitInv7||Ce(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Ce(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Ce(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Rl,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ll}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}},F($p,"Theme"),$p),p2t=F(e=>{const t=new h2t;return t.calculate(e),t},"getThemeVariables"),Op,g2t=(Op=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Re(this.contrast,55),this.background="#ffffff",this.tertiaryColor=G(this.primaryColor,{h:-160}),this.primaryBorderColor=Qt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Qt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ce(this.primaryColor),this.secondaryTextColor=Ce(this.secondaryColor),this.tertiaryTextColor=Ce(this.tertiaryColor),this.lineColor=Ce(this.background),this.textColor=Ce(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||Re(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var t,n,r,i,o,a,s,l,c,u,d,f,h,p,g,m,y,b,x,S,C,w,E,_,k,P,O,T,R,$,I,A,L,M,j,N,z,H,D,X,Y,ne,ce,re,Z,ee,K,W,ie;this.secondBkg=Re(this.contrast,55),this.border2=this.contrast,this.actorBorder=Re(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this["cScaleInv"+q]=this["cScaleInv"+q]||Ce(this["cScale"+q]);for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this.darkMode?this["cScalePeer"+q]=this["cScalePeer"+q]||Re(this["cScale"+q],10):this["cScalePeer"+q]=this["cScalePeer"+q]||Le(this["cScale"+q],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this["cScaleLabel"+q]=this["cScaleLabel"+q]||this.scaleLabelColor;for(let q=0;q<5;q++)this["surface"+q]=this["surface"+q]||G(this.mainBkg,{l:-(5+q*5)}),this["surfacePeer"+q]=this["surfacePeer"+q]||G(this.mainBkg,{l:-(8+q*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=Re(this.contrast,30),this.sectionBkgColor2=Re(this.contrast,30),this.taskBorderColor=Le(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=Re(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=Le(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=G(this.primaryColor,{h:64}),this.fillType3=G(this.secondaryColor,{h:64}),this.fillType4=G(this.primaryColor,{h:-64}),this.fillType5=G(this.secondaryColor,{h:-64}),this.fillType6=G(this.primaryColor,{h:128}),this.fillType7=G(this.secondaryColor,{h:128});for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this["pie"+q]=this["cScale"+q];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let q=0;q<8;q++)this["venn"+(q+1)]=this["venn"+(q+1)]??this["cScale"+q];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:((t=this.cynefin)==null?void 0:t.domainFontSize)||16,itemFontSize:((n=this.cynefin)==null?void 0:n.itemFontSize)||12,boundaryColor:((r=this.cynefin)==null?void 0:r.boundaryColor)||this.lineColor,boundaryWidth:((i=this.cynefin)==null?void 0:i.boundaryWidth)||2,cliffColor:((o=this.cynefin)==null?void 0:o.cliffColor)||"#8B0000",cliffWidth:((a=this.cynefin)==null?void 0:a.cliffWidth)||4,arrowColor:((s=this.cynefin)==null?void 0:s.arrowColor)||this.lineColor,arrowWidth:((l=this.cynefin)==null?void 0:l.arrowWidth)||2,complexBg:((c=this.cynefin)==null?void 0:c.complexBg)||"#E8F5E9",complicatedBg:((u=this.cynefin)==null?void 0:u.complicatedBg)||"#E3F2FD",chaoticBg:((d=this.cynefin)==null?void 0:d.chaoticBg)||"#FBE9E7",clearBg:((f=this.cynefin)==null?void 0:f.clearBg)||"#FFF8E1",confusionBg:((h=this.cynefin)==null?void 0:h.confusionBg)||"#F3E5F5",textColor:((p=this.cynefin)==null?void 0:p.textColor)||this.textColor,labelColor:((g=this.cynefin)==null?void 0:g.labelColor)||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||G(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||G(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||G(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||G(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||G(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||G(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Us(this.quadrant1Fill)?Re(this.quadrant1Fill):Le(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((m=this.xyChart)==null?void 0:m.backgroundColor)||this.background,titleColor:((y=this.xyChart)==null?void 0:y.titleColor)||this.primaryTextColor,dataLabelColor:((b=this.xyChart)==null?void 0:b.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((x=this.xyChart)==null?void 0:x.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((S=this.xyChart)==null?void 0:S.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((C=this.xyChart)==null?void 0:C.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((w=this.xyChart)==null?void 0:w.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((E=this.xyChart)==null?void 0:E.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((_=this.xyChart)==null?void 0:_.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((k=this.xyChart)==null?void 0:k.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((P=this.xyChart)==null?void 0:P.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((O=this.xyChart)==null?void 0:O.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:((T=this.radar)==null?void 0:T.axisColor)||this.lineColor,axisStrokeWidth:((R=this.radar)==null?void 0:R.axisStrokeWidth)||2,axisLabelFontSize:(($=this.radar)==null?void 0:$.axisLabelFontSize)||12,curveOpacity:((I=this.radar)==null?void 0:I.curveOpacity)||.5,curveStrokeWidth:((A=this.radar)==null?void 0:A.curveStrokeWidth)||2,graticuleColor:((L=this.radar)==null?void 0:L.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((M=this.radar)==null?void 0:M.graticuleStrokeWidth)||1,graticuleOpacity:((j=this.radar)==null?void 0:j.graticuleOpacity)||.3,legendBoxSize:((N=this.radar)==null?void 0:N.legendBoxSize)||12,legendFontSize:((z=this.radar)==null?void 0:z.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((H=this.wardley)==null?void 0:H.backgroundColor)||this.background,axisColor:((D=this.wardley)==null?void 0:D.axisColor)||this.lineColor,axisTextColor:((X=this.wardley)==null?void 0:X.axisTextColor)||this.primaryTextColor,gridColor:((Y=this.wardley)==null?void 0:Y.gridColor)||this.gridColor,componentFill:((ne=this.wardley)==null?void 0:ne.componentFill)||this.background,componentStroke:((ce=this.wardley)==null?void 0:ce.componentStroke)||this.lineColor,componentLabelColor:((re=this.wardley)==null?void 0:re.componentLabelColor)||this.primaryTextColor,linkStroke:((Z=this.wardley)==null?void 0:Z.linkStroke)||this.lineColor,evolutionStroke:((ee=this.wardley)==null?void 0:ee.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((K=this.wardley)==null?void 0:K.annotationStroke)||this.lineColor,annotationTextColor:((W=this.wardley)==null?void 0:W.annotationTextColor)||this.primaryTextColor,annotationFill:((ie=this.wardley)==null?void 0:ie.annotationFill)||this.background},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Le(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||G(this.primaryColor,{h:-30}),this.git4=this.pie5||G(this.primaryColor,{h:-60}),this.git5=this.pie6||G(this.primaryColor,{h:-90}),this.git6=this.pie7||G(this.primaryColor,{h:60}),this.git7=this.pie8||G(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||Ce(this.git0),this.gitInv1=this.gitInv1||Ce(this.git1),this.gitInv2=this.gitInv2||Ce(this.git2),this.gitInv3=this.gitInv3||Ce(this.git3),this.gitInv4=this.gitInv4||Ce(this.git4),this.gitInv5=this.gitInv5||Ce(this.git5),this.gitInv6=this.gitInv6||Ce(this.git6),this.gitInv7=this.gitInv7||Ce(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Rl,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ll}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}},F(Op,"Theme"),Op),m2t=F(e=>{const t=new g2t;return t.calculate(e),t},"getThemeVariables"),Pp,v2t=(Pp=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=Qt(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var o,a,s,l,c,u,d,f,h,p,g;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||G(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||G(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Qt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Qt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Qt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Qt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Ce(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ce(this.tertiaryColor),this.lineColor=this.lineColor||Ce(this.background),this.arrowheadColor=this.arrowheadColor||Ce(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Le(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Le(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ce(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;const t="#ECECFE",n="#E9E9F1",r=G(t,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||r,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||n,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||Re(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||t,this.cScale1=this.cScale1||n,this.cScale2=this.cScale2||r,this.cScale3=this.cScale3||G(t,{h:30}),this.cScale4=this.cScale4||G(t,{h:60}),this.cScale5=this.cScale5||G(t,{h:90}),this.cScale6=this.cScale6||G(t,{h:120}),this.cScale7=this.cScale7||G(t,{h:150}),this.cScale8=this.cScale8||G(t,{h:210,l:150}),this.cScale9=this.cScale9||G(t,{h:270}),this.cScale10=this.cScale10||G(t,{h:300}),this.cScale11=this.cScale11||G(t,{h:330}),this.darkMode)for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScale"+m]=Le(this["cScale"+m],75);else for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScale"+m]=Le(this["cScale"+m],25);for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleInv"+m]=this["cScaleInv"+m]||Ce(this["cScale"+m]);for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this.darkMode?this["cScalePeer"+m]=this["cScalePeer"+m]||Re(this["cScale"+m],10):this["cScalePeer"+m]=this["cScalePeer"+m]||Le(this["cScale"+m],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleLabel"+m]=this["cScaleLabel"+m]||this.scaleLabelColor;const i=this.darkMode?-4:-1;for(let m=0;m<5;m++)this["surface"+m]=this["surface"+m]||G(this.mainBkg,{h:180,s:-15,l:i*(5+m*3)}),this["surfacePeer"+m]=this["surfacePeer"+m]||G(this.mainBkg,{h:180,s:-15,l:i*(8+m*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||n,this.fillType2=this.fillType2||G(t,{h:64}),this.fillType3=this.fillType3||G(n,{h:64}),this.fillType4=this.fillType4||G(t,{h:-64}),this.fillType5=this.fillType5||G(n,{h:-64}),this.fillType6=this.fillType6||G(t,{h:128}),this.fillType7=this.fillType7||G(n,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||n,this.pie3=this.pie3||r,this.pie4=this.pie4||G(t,{l:-10}),this.pie5=this.pie5||G(n,{l:-10}),this.pie6=this.pie6||G(r,{l:-10}),this.pie7=this.pie7||G(t,{h:60,l:-10}),this.pie8=this.pie8||G(t,{h:-60,l:-10}),this.pie9=this.pie9||G(t,{h:120,l:0}),this.pie10=this.pie10||G(t,{h:60,l:-20}),this.pie11=this.pie11||G(t,{h:-60,l:-20}),this.pie12=this.pie12||G(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||G(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||G(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||G(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||G(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||G(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||G(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Us(this.quadrant1Fill)?Re(this.quadrant1Fill):Le(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((o=this.xyChart)==null?void 0:o.backgroundColor)||this.background,titleColor:((a=this.xyChart)==null?void 0:a.titleColor)||this.primaryTextColor,xAxisTitleColor:((s=this.xyChart)==null?void 0:s.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((c=this.xyChart)==null?void 0:c.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((u=this.xyChart)==null?void 0:u.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((d=this.xyChart)==null?void 0:d.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((p=this.xyChart)==null?void 0:p.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((g=this.xyChart)==null?void 0:g.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Le(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||n,this.git2=this.git2||r,this.git3=this.git3||G(t,{h:-30}),this.git4=this.git4||G(t,{h:-60}),this.git5=this.git5||G(t,{h:-90}),this.git6=this.git6||G(t,{h:60}),this.git7=this.git7||G(t,{h:120}),this.darkMode?(this.git0=Re(this.git0,25),this.git1=Re(this.git1,25),this.git2=Re(this.git2,25),this.git3=Re(this.git3,25),this.git4=Re(this.git4,25),this.git5=Re(this.git5,25),this.git6=Re(this.git6,25),this.git7=Re(this.git7,25)):(this.git0=Le(this.git0,25),this.git1=Le(this.git1,25),this.git2=Le(this.git2,25),this.git3=Le(this.git3,25),this.git4=Le(this.git4,25),this.git5=Le(this.git5,25),this.git6=Le(this.git6,25),this.git7=Le(this.git7,25)),this.gitInv0=this.gitInv0||Ce(this.git0),this.gitInv1=this.gitInv1||Ce(this.git1),this.gitInv2=this.gitInv2||Ce(this.git2),this.gitInv3=this.gitInv3||Ce(this.git3),this.gitInv4=this.gitInv4||Ce(this.git4),this.gitInv5=this.gitInv5||Ce(this.git5),this.gitInv6=this.gitInv6||Ce(this.git6),this.gitInv7=this.gitInv7||Ce(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Rl,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ll}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}},F(Pp,"Theme"),Pp),y2t=F(e=>{const t=new v2t;return t.calculate(e),t},"getThemeVariables"),Ap,b2t=(Ap=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Re(this.primaryColor,16),this.tertiaryColor=G(this.primaryColor,{h:-160}),this.primaryBorderColor=Ce(this.background),this.secondaryBorderColor=Qt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ce(this.primaryColor),this.secondaryTextColor=Ce(this.secondaryColor),this.tertiaryTextColor=Ce(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Re(Ce("#323D47"),10),this.border1="#ccc",this.border2=Iu(255,255,255,.25),this.arrowheadColor=Ce(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var n,r,i,o,a,s,l,c,u,d,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||G(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||G(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Qt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Qt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Qt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Qt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Ce(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ce(this.tertiaryColor),this.lineColor=this.lineColor||Ce(this.background),this.arrowheadColor=this.arrowheadColor||Ce(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Le(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Le(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ce(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Re(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||G(this.primaryColor,{h:30}),this.cScale4=this.cScale4||G(this.primaryColor,{h:60}),this.cScale5=this.cScale5||G(this.primaryColor,{h:90}),this.cScale6=this.cScale6||G(this.primaryColor,{h:120}),this.cScale7=this.cScale7||G(this.primaryColor,{h:150}),this.cScale8=this.cScale8||G(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||G(this.primaryColor,{h:270}),this.cScale10=this.cScale10||G(this.primaryColor,{h:300}),this.cScale11=this.cScale11||G(this.primaryColor,{h:330}),this.darkMode)for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScale"+h]=Le(this["cScale"+h],75);else for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScale"+h]=Le(this["cScale"+h],25);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||Ce(this["cScale"+h]);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this.darkMode?this["cScalePeer"+h]=this["cScalePeer"+h]||Re(this["cScale"+h],10):this["cScalePeer"+h]=this["cScalePeer"+h]||Le(this["cScale"+h],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||G(this.mainBkg,{h:180,s:-15,l:t*(5+h*3)}),this["surfacePeer"+h]=this["surfacePeer"+h]||G(this.mainBkg,{h:180,s:-15,l:t*(8+h*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||G(this.primaryColor,{h:64}),this.fillType3=this.fillType3||G(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||G(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||G(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||G(this.primaryColor,{h:128}),this.fillType7=this.fillType7||G(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||G(this.primaryColor,{l:-10}),this.pie5=this.pie5||G(this.secondaryColor,{l:-10}),this.pie6=this.pie6||G(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||G(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||G(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||G(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||G(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||G(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||G(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||G(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||G(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||G(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||G(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||G(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||G(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Us(this.quadrant1Fill)?Re(this.quadrant1Fill):Le(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((n=this.xyChart)==null?void 0:n.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((a=this.xyChart)==null?void 0:a.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((c=this.xyChart)==null?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Le(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||"#0b0000",this.git1=this.git1||"#4d1037",this.git2=this.git2||"#3f5258",this.git3=this.git3||"#4f2f1b",this.git4=this.git4||"#6e0a0a",this.git5=this.git5||"#3b0048",this.git6=this.git6||"#995a01",this.git7=this.git7||"#154706",this.gitDarkMode=!0,this.gitDarkMode?(this.git0=Re(this.git0,25),this.git1=Re(this.git1,25),this.git2=Re(this.git2,25),this.git3=Re(this.git3,25),this.git4=Re(this.git4,25),this.git5=Re(this.git5,25),this.git6=Re(this.git6,25),this.git7=Re(this.git7,25)):(this.git0=Le(this.git0,25),this.git1=Le(this.git1,25),this.git2=Le(this.git2,25),this.git3=Le(this.git3,25),this.git4=Le(this.git4,25),this.git5=Le(this.git5,25),this.git6=Le(this.git6,25),this.git7=Le(this.git7,25)),this.gitInv0=this.gitInv0||Ce(this.git0),this.gitInv1=this.gitInv1||Ce(this.git1),this.gitInv2=this.gitInv2||Ce(this.git2),this.gitInv3=this.gitInv3||Ce(this.git3),this.gitInv4=this.gitInv4||Ce(this.git4),this.gitInv5=this.gitInv5||Ce(this.git5),this.gitInv6=this.gitInv6||Ce(this.git6),this.gitInv7=this.gitInv7||Ce(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Rl,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ll}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}},F(Ap,"Theme"),Ap),x2t=F(e=>{const t=new b2t;return t.calculate(e),t},"getThemeVariables"),Ip,C2t=(Ip=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=Qt("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){var o,a,s,l,c,u,d,f,h,p,g;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||G(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||G(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Qt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Qt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Qt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Qt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||Ce(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ce(this.tertiaryColor),this.lineColor=this.lineColor||Ce(this.background),this.arrowheadColor=this.arrowheadColor||Ce(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Le(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Le(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ce(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;const t="#ECECFE",n="#E9E9F1",r=G(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||r,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||n,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||Re(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScale"+m]=this.mainBkg;if(this.darkMode)for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScale"+m]=Le(this["cScale"+m],75);else for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScale"+m]=Le(this["cScale"+m],25);for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleInv"+m]=this["cScaleInv"+m]||Ce(this["cScale"+m]);for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this.darkMode?this["cScalePeer"+m]=this["cScalePeer"+m]||Re(this["cScale"+m],10):this["cScalePeer"+m]=this["cScalePeer"+m]||Le(this["cScale"+m],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleLabel"+m]=this["cScaleLabel"+m]||this.scaleLabelColor;const i=this.darkMode?-4:-1;for(let m=0;m<5;m++)this["surface"+m]=this["surface"+m]||G(this.mainBkg,{h:180,s:-15,l:i*(5+m*3)}),this["surfacePeer"+m]=this["surfacePeer"+m]||G(this.mainBkg,{h:180,s:-15,l:i*(8+m*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||n,this.fillType2=this.fillType2||G(t,{h:64}),this.fillType3=this.fillType3||G(n,{h:64}),this.fillType4=this.fillType4||G(t,{h:-64}),this.fillType5=this.fillType5||G(n,{h:-64}),this.fillType6=this.fillType6||G(t,{h:128}),this.fillType7=this.fillType7||G(n,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||n,this.pie3=this.pie3||r,this.pie4=this.pie4||G(t,{l:-10}),this.pie5=this.pie5||G(n,{l:-10}),this.pie6=this.pie6||G(r,{l:-10}),this.pie7=this.pie7||G(t,{h:60,l:-10}),this.pie8=this.pie8||G(t,{h:-60,l:-10}),this.pie9=this.pie9||G(t,{h:120,l:0}),this.pie10=this.pie10||G(t,{h:60,l:-20}),this.pie11=this.pie11||G(t,{h:-60,l:-20}),this.pie12=this.pie12||G(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||G(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||G(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||G(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||G(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||G(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||G(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Us(this.quadrant1Fill)?Re(this.quadrant1Fill):Le(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((o=this.xyChart)==null?void 0:o.backgroundColor)||this.background,titleColor:((a=this.xyChart)==null?void 0:a.titleColor)||this.primaryTextColor,xAxisTitleColor:((s=this.xyChart)==null?void 0:s.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((c=this.xyChart)==null?void 0:c.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((u=this.xyChart)==null?void 0:u.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((d=this.xyChart)==null?void 0:d.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((p=this.xyChart)==null?void 0:p.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((g=this.xyChart)==null?void 0:g.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Le(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||t,this.git1=this.git1||n,this.git2=this.git2||r,this.git3=this.git3||G(t,{h:-30}),this.git4=this.git4||G(t,{h:-60}),this.git5=this.git5||G(t,{h:-90}),this.git6=this.git6||G(t,{h:60}),this.git7=this.git7||G(t,{h:120}),this.darkMode?(this.git0=Re(this.git0,25),this.git1=Re(this.git1,25),this.git2=Re(this.git2,25),this.git3=Re(this.git3,25),this.git4=Re(this.git4,25),this.git5=Re(this.git5,25),this.git6=Re(this.git6,25),this.git7=Re(this.git7,25)):(this.git0=Le(this.git0,25),this.git1=Le(this.git1,25),this.git2=Le(this.git2,25),this.git3=Le(this.git3,25),this.git4=Le(this.git4,25),this.git5=Le(this.git5,25),this.git6=Le(this.git6,25),this.git7=Le(this.git7,25)),this.gitInv0=this.gitInv0||Ce(this.git0),this.gitInv1=this.gitInv1||Ce(this.git1),this.gitInv2=this.gitInv2||Ce(this.git2),this.gitInv3=this.gitInv3||Ce(this.git3),this.gitInv4=this.gitInv4||Ce(this.git4),this.gitInv5=this.gitInv5||Ce(this.git5),this.gitInv6=this.gitInv6||Ce(this.git6),this.gitInv7=this.gitInv7||Ce(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Rl,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ll}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}},F(Ip,"Theme"),Ip),S2t=F(e=>{const t=new C2t;return t.calculate(e),t},"getThemeVariables"),Rp,w2t=(Rp=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Re(this.primaryColor,16),this.tertiaryColor=G(this.primaryColor,{h:-160}),this.primaryBorderColor=Ce(this.background),this.secondaryBorderColor=Qt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ce(this.primaryColor),this.secondaryTextColor=Ce(this.secondaryColor),this.tertiaryTextColor=Ce(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Re(Ce("#323D47"),10),this.border1="#ccc",this.border2=Iu(255,255,255,.25),this.arrowheadColor=Ce(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){var n,r,i,o,a,s,l,c,u,d,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||G(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||G(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Qt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Qt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Qt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Qt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||Ce(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ce(this.tertiaryColor),this.lineColor=this.lineColor||Ce(this.background),this.arrowheadColor=this.arrowheadColor||Ce(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Le(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Le(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ce(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Re(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||G(this.primaryColor,{h:30}),this.cScale4=this.cScale4||G(this.primaryColor,{h:60}),this.cScale5=this.cScale5||G(this.primaryColor,{h:90}),this.cScale6=this.cScale6||G(this.primaryColor,{h:120}),this.cScale7=this.cScale7||G(this.primaryColor,{h:150}),this.cScale8=this.cScale8||G(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||G(this.primaryColor,{h:270}),this.cScale10=this.cScale10||G(this.primaryColor,{h:300}),this.cScale11=this.cScale11||G(this.primaryColor,{h:330}),this.darkMode)for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScale"+h]=Le(this["cScale"+h],75);else for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScale"+h]=Le(this["cScale"+h],25);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||Ce(this["cScale"+h]);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this.darkMode?this["cScalePeer"+h]=this["cScalePeer"+h]||Re(this["cScale"+h],10):this["cScalePeer"+h]=this["cScalePeer"+h]||Le(this["cScale"+h],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||G(this.mainBkg,{h:180,s:-15,l:t*(5+h*3)}),this["surfacePeer"+h]=this["surfacePeer"+h]||G(this.mainBkg,{h:180,s:-15,l:t*(8+h*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||G(this.primaryColor,{h:64}),this.fillType3=this.fillType3||G(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||G(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||G(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||G(this.primaryColor,{h:128}),this.fillType7=this.fillType7||G(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||G(this.primaryColor,{l:-10}),this.pie5=this.pie5||G(this.secondaryColor,{l:-10}),this.pie6=this.pie6||G(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||G(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||G(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||G(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||G(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||G(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||G(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||G(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||G(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||G(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||G(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||G(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||G(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Us(this.quadrant1Fill)?Re(this.quadrant1Fill):Le(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((n=this.xyChart)==null?void 0:n.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((a=this.xyChart)==null?void 0:a.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((c=this.xyChart)==null?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Le(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||G(this.primaryColor,{h:-30}),this.git4=this.git4||G(this.primaryColor,{h:-60}),this.git5=this.git5||G(this.primaryColor,{h:-90}),this.git6=this.git6||G(this.primaryColor,{h:60}),this.git7=this.git7||G(this.primaryColor,{h:120}),this.darkMode?(this.git0=Re(this.git0,25),this.git1=Re(this.git1,25),this.git2=Re(this.git2,25),this.git3=Re(this.git3,25),this.git4=Re(this.git4,25),this.git5=Re(this.git5,25),this.git6=Re(this.git6,25),this.git7=Re(this.git7,25)):(this.git0=Le(this.git0,25),this.git1=Le(this.git1,25),this.git2=Le(this.git2,25),this.git3=Le(this.git3,25),this.git4=Le(this.git4,25),this.git5=Le(this.git5,25),this.git6=Le(this.git6,25),this.git7=Le(this.git7,25)),this.gitInv0=this.gitInv0||Ce(this.git0),this.gitInv1=this.gitInv1||Ce(this.git1),this.gitInv2=this.gitInv2||Ce(this.git2),this.gitInv3=this.gitInv3||Ce(this.git3),this.gitInv4=this.gitInv4||Ce(this.git4),this.gitInv5=this.gitInv5||Ce(this.git5),this.gitInv6=this.gitInv6||Ce(this.git6),this.gitInv7=this.gitInv7||Ce(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Rl,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ll}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}},F(Rp,"Theme"),Rp),E2t=F(e=>{const t=new w2t;return t.calculate(e),t},"getThemeVariables"),Lp,_2t=(Lp=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=Qt(this.primaryColor,this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.filterColor="#000000"}updateColors(){var o,a,s,l,c,u,d,f,h,p,g;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||G(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||G(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Qt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Qt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Qt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Qt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||Ce(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ce(this.tertiaryColor),this.lineColor=this.lineColor||Ce(this.background),this.arrowheadColor=this.arrowheadColor||Ce(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Le(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Le(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ce(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;const t="#ECECFE",n="#E9E9F1",r=G(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||r,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||n,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||Re(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleInv"+m]=this["cScaleInv"+m]||Ce(this["cScale"+m]);for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this.darkMode?this["cScalePeer"+m]=this["cScalePeer"+m]||Re(this["cScale"+m],10):this["cScalePeer"+m]=this["cScalePeer"+m]||Le(this["cScale"+m],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleLabel"+m]=this["cScaleLabel"+m]||this.scaleLabelColor;const i=this.darkMode?-4:-1;for(let m=0;m<5;m++)this["surface"+m]=this["surface"+m]||G(this.mainBkg,{h:180,s:-15,l:i*(5+m*3)}),this["surfacePeer"+m]=this["surfacePeer"+m]||G(this.mainBkg,{h:180,s:-15,l:i*(8+m*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||n,this.fillType2=this.fillType2||G(t,{h:64}),this.fillType3=this.fillType3||G(n,{h:64}),this.fillType4=this.fillType4||G(t,{h:-64}),this.fillType5=this.fillType5||G(n,{h:-64}),this.fillType6=this.fillType6||G(t,{h:128}),this.fillType7=this.fillType7||G(n,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||n,this.pie3=this.pie3||r,this.pie4=this.pie4||G(t,{l:-10}),this.pie5=this.pie5||G(n,{l:-10}),this.pie6=this.pie6||G(r,{l:-10}),this.pie7=this.pie7||G(t,{h:60,l:-10}),this.pie8=this.pie8||G(t,{h:-60,l:-10}),this.pie9=this.pie9||G(t,{h:120,l:0}),this.pie10=this.pie10||G(t,{h:60,l:-20}),this.pie11=this.pie11||G(t,{h:-60,l:-20}),this.pie12=this.pie12||G(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||G(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||G(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||G(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||G(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||G(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||G(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Us(this.quadrant1Fill)?Re(this.quadrant1Fill):Le(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((o=this.xyChart)==null?void 0:o.backgroundColor)||this.background,titleColor:((a=this.xyChart)==null?void 0:a.titleColor)||this.primaryTextColor,xAxisTitleColor:((s=this.xyChart)==null?void 0:s.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((c=this.xyChart)==null?void 0:c.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((u=this.xyChart)==null?void 0:u.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((d=this.xyChart)==null?void 0:d.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((p=this.xyChart)==null?void 0:p.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((g=this.xyChart)==null?void 0:g.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Le(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||n,this.git2=this.git2||r,this.git3=this.git3||G(t,{h:-30}),this.git4=this.git4||G(t,{h:-60}),this.git5=this.git5||G(t,{h:-90}),this.git6=this.git6||G(t,{h:60}),this.git7=this.git7||G(t,{h:120}),this.darkMode?(this.git0=Re(this.git0,25),this.git1=Re(this.git1,25),this.git2=Re(this.git2,25),this.git3=Re(this.git3,25),this.git4=Re(this.git4,25),this.git5=Re(this.git5,25),this.git6=Re(this.git6,25),this.git7=Re(this.git7,25)):(this.git0=Le(this.git0,25),this.git1=Le(this.git1,25),this.git2=Le(this.git2,25),this.git3=Le(this.git3,25),this.git4=Le(this.git4,25),this.git5=Le(this.git5,25),this.git6=Le(this.git6,25),this.git7=Le(this.git7,25)),this.gitInv0=this.gitInv0||Ce(this.git0),this.gitInv1=this.gitInv1||Ce(this.git1),this.gitInv2=this.gitInv2||Ce(this.git2),this.gitInv3=this.gitInv3||Ce(this.git3),this.gitInv4=this.gitInv4||Ce(this.git4),this.gitInv5=this.gitInv5||Ce(this.git5),this.gitInv6=this.gitInv6||Ce(this.git6),this.gitInv7=this.gitInv7||Ce(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLineColor=this.commitLineColor??"#BDBCCC",this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.fontWeight=600,this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Rl,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ll}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}},F(Lp,"Theme"),Lp),k2t=F(e=>{const t=new _2t;return t.calculate(e),t},"getThemeVariables"),Mp,T2t=(Mp=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Re(this.primaryColor,16),this.tertiaryColor=G(this.primaryColor,{h:-160}),this.primaryBorderColor=Ce(this.background),this.secondaryBorderColor=Qt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ce(this.primaryColor),this.secondaryTextColor=Ce(this.secondaryColor),this.tertiaryTextColor=Ce(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Re(Ce("#323D47"),10),this.border1="#ccc",this.border2=Iu(255,255,255,.25),this.arrowheadColor=Ce(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.filterColor="#FFFFFF"}updateColors(){var n,r,i,o,a,s,l,c,u,d,f;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||G(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||G(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Qt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Qt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Qt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Qt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||Ce(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ce(this.tertiaryColor),this.lineColor=this.lineColor||Ce(this.background),this.arrowheadColor=this.arrowheadColor||Ce(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Le(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Le(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ce(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.rootLabelColor="#FFFFFF",this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Re(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||Ce(this["cScale"+h]);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this.darkMode?this["cScalePeer"+h]=this["cScalePeer"+h]||Re(this["cScale"+h],10):this["cScalePeer"+h]=this["cScalePeer"+h]||Le(this["cScale"+h],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=Le(this["cScale"+h],75);const t=this.darkMode?-4:-1;for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||G(this.mainBkg,{h:180,s:-15,l:t*(5+h*3)}),this["surfacePeer"+h]=this["surfacePeer"+h]||G(this.mainBkg,{h:180,s:-15,l:t*(8+h*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||G(this.primaryColor,{h:64}),this.fillType3=this.fillType3||G(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||G(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||G(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||G(this.primaryColor,{h:128}),this.fillType7=this.fillType7||G(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||G(this.primaryColor,{l:-10}),this.pie5=this.pie5||G(this.secondaryColor,{l:-10}),this.pie6=this.pie6||G(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||G(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||G(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||G(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||G(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||G(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||G(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||G(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||G(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||G(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||G(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||G(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||G(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Us(this.quadrant1Fill)?Re(this.quadrant1Fill):Le(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((n=this.xyChart)==null?void 0:n.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((a=this.xyChart)==null?void 0:a.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((c=this.xyChart)==null?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Le(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||G(this.primaryColor,{h:-30}),this.git4=this.git4||G(this.primaryColor,{h:-60}),this.git5=this.git5||G(this.primaryColor,{h:-90}),this.git6=this.git6||G(this.primaryColor,{h:60}),this.git7=this.git7||G(this.primaryColor,{h:120}),this.darkMode?(this.git0=Re(this.git0,25),this.git1=Re(this.git1,25),this.git2=Re(this.git2,25),this.git3=Re(this.git3,25),this.git4=Re(this.git4,25),this.git5=Re(this.git5,25),this.git6=Re(this.git6,25),this.git7=Re(this.git7,25)):(this.git0=Le(this.git0,25),this.git1=Le(this.git1,25),this.git2=Le(this.git2,25),this.git3=Le(this.git3,25),this.git4=Le(this.git4,25),this.git5=Le(this.git5,25),this.git6=Le(this.git6,25),this.git7=Le(this.git7,25)),this.gitInv0=this.gitInv0||Ce(this.git0),this.gitInv1=this.gitInv1||Ce(this.git1),this.gitInv2=this.gitInv2||Ce(this.git2),this.gitInv3=this.gitInv3||Ce(this.git3),this.gitInv4=this.gitInv4||Ce(this.git4),this.gitInv5=this.gitInv5||Ce(this.git5),this.gitInv6=this.gitInv6||Ce(this.git6),this.gitInv7=this.gitInv7||Ce(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.fontWeight=600,this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Rl,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ll}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}},F(Mp,"Theme"),Mp),$2t=F(e=>{const t=new T2t;return t.calculate(e),t},"getThemeVariables"),hc={base:{getThemeVariables:l2t},dark:{getThemeVariables:u2t},default:{getThemeVariables:f2t},forest:{getThemeVariables:p2t},neutral:{getThemeVariables:m2t},neo:{getThemeVariables:y2t},"neo-dark":{getThemeVariables:x2t},redux:{getThemeVariables:S2t},"redux-dark":{getThemeVariables:E2t},"redux-color":{getThemeVariables:k2t},"redux-dark-color":{getThemeVariables:$2t}},Li={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},swimlane:{useMaxWidth:!0,lineHops:"arc",ignoreCrossLaneEdges:!0,optimizeRanksByCrossings:!0,automaticLaneOrdering:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75,donutHole:0,legendPosition:"right",highlightSlice:""},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1,showIcons:!1,defaultIconPack:"",filenameIcons:{},extensionIcons:{}},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500,seed:1},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},cynefin:{useMaxWidth:!0,width:800,height:600,padding:40,showDomainDescriptions:!0,boundaryAmplitude:8,seed:0},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},cue={...Li,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:hc.default.getThemeVariables(),sequence:{...Li.sequence,messageFont:F(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:F(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:F(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...Li.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Li.c4,useWidth:void 0,personFont:F(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...Li.flowchart,inheritDir:!1},external_personFont:F(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:F(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:F(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:F(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:F(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:F(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:F(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:F(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:F(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:F(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:F(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:F(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:F(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:F(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:F(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:F(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:F(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:F(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:F(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:F(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:F(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...Li.pie,useWidth:984},xyChart:{...Li.xyChart,useWidth:void 0},requirement:{...Li.requirement,useWidth:void 0},packet:{...Li.packet},eventmodeling:{...Li.eventmodeling},treeView:{...Li.treeView,useWidth:void 0},radar:{...Li.radar},railroad:{...Li.railroad,fontSize:void 0,fontFamily:void 0,terminalFill:void 0,terminalStroke:void 0,terminalTextColor:void 0,nonTerminalFill:void 0,nonTerminalStroke:void 0,nonTerminalTextColor:void 0,lineColor:void 0,markerFill:void 0,commentFill:void 0,commentStroke:void 0,commentTextColor:void 0,specialFill:void 0,specialStroke:void 0,ruleNameColor:void 0},ishikawa:{...Li.ishikawa},sankey:{...Li.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...Li.venn},cynefin:{...Li.cynefin}},uue=F((e,t="")=>Object.keys(e).reduce((n,r)=>Array.isArray(e[r])?n:typeof e[r]=="object"&&e[r]!==null?[...n,t+r,...uue(e[r],"")]:[...n,t+r],[]),"keyify"),O2t=new Set(uue(cue,"")),due=cue,P2t={nodeColors:/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,filenameIcons:/^[\w-]+(?::[\w-]+)?$/,extensionIcons:/^[\w-]+(?::[\w-]+)?$/},A2t=F((e,t)=>{for(const n of Object.keys(e)){const r=e[n];(n.startsWith("__")||n.includes("proto")||n.includes("constr")||typeof r!="string"||!t.test(r))&&(qe.debug("sanitize deleting dictionary entry:",n,r),delete e[n])}},"sanitizeDictionaryConfig"),sE=F(e=>{if(qe.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>sE(t));return}for(const t of Object.keys(e)){if(qe.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!O2t.has(t)||e[t]==null){qe.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){const r=P2t[t];r?A2t(e[t],r):(qe.debug("sanitizing object",t),sE(e[t]));continue}const n=["themeCSS","fontFamily","altFontFamily"];for(const r of n)t.includes(r)&&(qe.debug("sanitizing css option",t),e[t]=fue(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const n=e.themeVariables[t];n!=null&&n.match&&!n.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}qe.debug("After sanitization",e)}},"sanitizeDirective"),fue=F(e=>{let t=0,n=0;for(const r of e){if(t<n)return"{ /* ERROR: Unbalanced CSS */ }";r==="{"?t++:r==="}"&&n++}return t!==n?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss"),Ag=Object.freeze(due),Ml=F(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),Do=si({},Ag),lE,Ef=[],my=si({},Ag),ok=F((e,t)=>{let n=si({},e),r={};for(const i of t)gue(i),r=si(r,i);if(n=si(n,r),r.theme&&r.theme in hc){const i=si({},lE),o=si(i.themeVariables||{},r.themeVariables);n.theme&&n.theme in hc&&(n.themeVariables=hc[n.theme].getThemeVariables(o))}return my=n,vue(my),my},"updateCurrentConfig"),I2t=F(e=>(Do=si({},Ag),Do=si(Do,e),e.theme&&hc[e.theme]&&(Do.themeVariables=hc[e.theme].getThemeVariables(e.themeVariables)),ok(Do,Ef),Do),"setSiteConfig"),R2t=F(e=>{lE=si({},e)},"saveConfigFromInitialize"),L2t=F(e=>(Do=si(Do,e),ok(Do,Ef),Do),"updateSiteConfig"),hue=F(()=>si({},Do),"getSiteConfig"),pue=F(e=>(vue(e),si(my,e),Pr()),"setConfig"),Pr=F(()=>si({},my),"getConfig"),gue=F(e=>{e&&(["secure",...Do.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(qe.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&gue(e[t])}))},"sanitize"),M2t=F(e=>{var t;sE(e),e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),Ef.push(e),ok(Do,Ef)},"addDirective"),cE=F((e=Do)=>{Ef=[],ok(e,Ef)},"reset"),N2t={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},uG={},mue=F(e=>{uG[e]||(qe.warn(N2t[e]),uG[e]=!0)},"issueWarning"),vue=F(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&mue("LAZY_LOAD_DEPRECATED")},"checkConfig"),i4t=F(()=>{let e={};lE&&(e=si(e,lE));for(const t of Ef)e=si(e,t);return e},"getUserDefinedConfig"),Oo=F(e=>{var t,n;return((t=e.flowchart)==null?void 0:t.htmlLabels)!=null&&mue("FLOWCHART_HTML_LABELS_DEPRECATED"),Ml(e.htmlLabels??((n=e.flowchart)==null?void 0:n.htmlLabels)??!0)},"getEffectiveHtmlLabels"),yue=/^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s,vy=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,B2t=/\s*%%.*\n/gm,Np,bue=(Np=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},F(Np,"UnknownDiagramError"),Np),_f={},B5=F(function(e,t){e=e.replace(yue,"").replace(vy,"").replace(B2t,`
|
|
2294
2294
|
`);for(const[n,{detector:r}]of Object.entries(_f))if(r(e,t))return n;throw new bue(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),hM=F((...e)=>{for(const{id:t,detector:n,loader:r}of e)xue(t,n,r)},"registerLazyLoadedDiagrams"),xue=F((e,t,n)=>{_f[e]&&qe.warn(`Detector with key ${e} already exists. Overwriting.`),_f[e]={detector:t,loader:n},qe.debug(`Detector with key ${e} added${n?" with loader":""}`)},"addDetector"),D2t=F(e=>_f[e].loader,"getDiagramLoader"),Jb=/<br\s*\/?>/gi,F2t=F(e=>e?wue(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),j2t=(()=>{let e=!1;return()=>{e||(Cue(),e=!0)}})();function Cue(){const e="data-temp-href-target";Tc.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),Tc.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}F(Cue,"setupDompurifyHooks");var Sue=F(e=>(j2t(),Tc.sanitize(e)),"removeScript"),dG=F((e,t)=>{if(Oo(t)){const n=t.securityLevel;n==="antiscript"||n==="strict"||n==="sandbox"?e=Sue(e):n!=="loose"&&(e=wue(e),e=e.replace(/</g,"<").replace(/>/g,">"),e=e.replace(/=/g,"="),e=W2t(e))}return e},"sanitizeMore"),zs=F((e,t)=>e&&(t.dompurifyConfig?e=Tc.sanitize(dG(e,t),t.dompurifyConfig).toString():e=Tc.sanitize(dG(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),z2t=F((e,t)=>typeof e=="string"?zs(e,t):e.flat().map(n=>zs(n,t)),"sanitizeTextOrArray"),H2t=F(e=>Jb.test(e),"hasBreaks"),V2t=F(e=>e.split(Jb),"splitBreaks"),W2t=F(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),wue=F(e=>e.replace(Jb,"#br#"),"breakToPlaceholder"),U2t=F(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),q2t=F(function(...e){const t=e.filter(n=>!isNaN(n));return Math.max(...t)},"getMax"),G2t=F(function(...e){const t=e.filter(n=>!isNaN(n));return Math.min(...t)},"getMin"),fG=F(function(e){const t=e.split(/(,)/),n=[];for(let r=0;r<t.length;r++){let i=t[r];if(i===","&&r>0&&r+1<t.length){const o=t[r-1],a=t[r+1];K2t(o,a)&&(i=o+","+a,r++,n.pop())}n.push(X2t(i))}return n.join("")},"parseGenericTypes"),pM=F((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),K2t=F((e,t)=>{const n=pM(e,"~"),r=pM(t,"~");return n===1&&r===1},"shouldCombineSets"),X2t=F(e=>{const t=pM(e,"~");let n=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),n=!0);const r=[...e];let i=r.indexOf("~"),o=r.lastIndexOf("~");for(;i!==-1&&o!==-1&&i!==o;)r[i]="<",r[o]=">",i=r.indexOf("~"),o=r.lastIndexOf("~");return n&&r.unshift("~"),r.join("")},"processSet"),hG=F(()=>window.MathMLElement!==void 0,"isMathMLSupported"),gM=/\$\$(.*?)\$\$/g,Z0=F(e=>{var t;return(((t=e.match(gM))==null?void 0:t.length)??0)>0},"hasKatex"),o4t=F(async(e,t)=>{const n=document.createElement("div");n.innerHTML=await Eue(e,t),n.id="katex-temp",n.style.visibility="hidden",n.style.position="absolute",n.style.top="0";const r=document.querySelector("body");r==null||r.insertAdjacentElement("beforeend",n);const i={width:n.clientWidth,height:n.clientHeight};return n.remove(),i},"calculateMathMLDimensions"),Y2t=F(async(e,t)=>{if(!Z0(e))return e;if(!(hG()||t.legacyMathML||t.forceLegacyMathML))return e.replace(gM,"MathML is unsupported in this environment.");{const{default:n}=await U(async()=>{const{default:i}=await import("./katex-C5jXJg4s.js");return{default:i}},[]),r=t.forceLegacyMathML||!hG()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(Jb).map(i=>Z0(i)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${i}</div>`:`<div>${i}</div>`).join("").replace(gM,(i,o)=>n.renderToString(o,{throwOnError:!0,displayMode:!0,output:r}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),Eue=F(async(e,t)=>zs(await Y2t(e,t),t),"renderKatexSanitized"),ex={getRows:F2t,sanitizeText:zs,sanitizeTextOrArray:z2t,hasBreaks:H2t,splitBreaks:V2t,lineBreakRegex:Jb,removeScript:Sue,getUrl:U2t,evaluate:Ml,getMax:q2t,getMin:G2t},Q2t=F(function(e,t){for(let n of t)e.attr(n[0],n[1])},"d3Attrs"),Z2t=F(function(e,t,n){let r=new Map;return n?(r.set("width","100%"),r.set("style",`max-width: ${t}px;`)):(r.set("height",e),r.set("width",t)),r},"calculateSvgSizeAttrs"),_ue=F(function(e,t,n,r){const i=Z2t(t,n,r);Q2t(e,i)},"configureSvgSize"),J2t=F(function(e,t,n,r){const i=t.node().getBBox(),o=i.width,a=i.height;qe.info(`SVG bounds: ${o}x${a}`,i);let s=0,l=0;qe.info(`Graph bounds: ${s}x${l}`,e),s=o+n*2,l=a+n*2,qe.info(`Calculated bounds: ${s}x${l}`),_ue(t,l,s,r);const c=`${i.x-n} ${i.y-n} ${i.width+2*n} ${i.height+2*n}`;t.attr("viewBox",c)},"setupGraphViewbox"),IC={};function mM(e){return[...e.cssRules].map(t=>t.cssText).join(`
|
|
@@ -2593,8 +2593,8 @@ Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error
|
|
|
2593
2593
|
L0,20`)},"requirement_arrow"),ZIt=F((e,t,n)=>{const r=Pr(),{themeVariables:i}=r,{strokeWidth:o}=i;e.append("defs").append("marker").attr("id",n+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${o}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
|
|
2594
2594
|
L20,10
|
|
2595
2595
|
M20,10
|
|
2596
|
-
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),JIt=F((e,t,n)=>{const r=e.append("defs").append("marker").attr("id",n+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");r.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),r.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),r.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),eRt=F((e,t,n)=>{const r=Pr(),{themeVariables:i}=r,{strokeWidth:o}=i,a=e.append("defs").append("marker").attr("id",n+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");a.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),a.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),a.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),a.selectAll("*").attr("stroke-width",`${o}`)},"requirement_contains_neo"),tRt={extension:RIt,composition:LIt,aggregation:MIt,dependency:NIt,lollipop:BIt,point:DIt,circle:FIt,cross:jIt,barb:zIt,barbNeo:HIt,only_one:VIt,zero_or_one:WIt,one_or_more:UIt,zero_or_more:qIt,only_one_neo:GIt,zero_or_one_neo:KIt,one_or_more_neo:XIt,zero_or_more_neo:YIt,requirement_arrow:QIt,requirement_contains:JIt,requirement_arrow_neo:ZIt,requirement_contains_neo:eRt},nRt=IIt,rRt={common:ex,getConfig:Pr,insertCluster:ZAt,insertEdge:AIt,insertEdgeLabel:EIt,insertMarkers:nRt,insertNode:qpe,interpolateToCurve:a4,labelHelper:Kt,log:qe,positionEdgeLabel:_It},ob={},Ype=F(e=>{for(const t of e)ob[t.name]=t},"registerLayoutLoaders"),iRt=F(()=>{Ype([{name:"dagre",loader:F(async()=>await U(()=>import("./dagre-VKFMJZFB-DJHj16mR.js"),__vite__mapDeps([101,102,103,104,105])),"loader")},{name:"swimlane",loader:F(async()=>await U(()=>import("./swimlanes-5IMT3BWC-DSr9Ty4A.js"),__vite__mapDeps([106,102,103,104])),"loader")},{name:"cose-bilkent",loader:F(async()=>await U(()=>import("./cose-bilkent-JH36ORCC-BHQslHP3.js"),__vite__mapDeps([107,108])),"loader")}])},"registerDefaultLayoutLoaders");iRt();var b4t=F(async(e,t,n)=>{if(!(e.layoutAlgorithm in ob))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const d of e.nodes){const f=d.domId||d.id;d.domId=`${e.diagramId}-${f}`}const r=ob[e.layoutAlgorithm],i=await r.loader(),{theme:o,themeVariables:a}=e.config,{useGradient:s,gradientStart:l,gradientStop:c}=a,u=t.attr("id");if(t.append("defs").append("filter").attr("id",`${u}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${o!=null&&o.includes("dark")?"#FFFFFF":"#000000"}`),t.append("defs").append("filter").attr("id",`${u}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${o!=null&&o.includes("dark")?"#FFFFFF":"#000000"}`),s){const d=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");d.append("svg:stop").attr("offset","0%").attr("stop-color",l).attr("stop-opacity",1),d.append("svg:stop").attr("offset","100%").attr("stop-color",c).attr("stop-opacity",1)}return i.render(e,t,rRt,{algorithm:r.algorithm},n)},"render"),x4t=F((e="",{fallback:t="dagre"}={})=>{if(e in ob)return e;if(t in ob)return qe.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm"),Qpe="c4",oRt=F(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),aRt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./c4Diagram-LMCZKHZV-D1Oh6k37.js");return{diagram:t}},__vite__mapDeps([109,110]));return{id:Qpe,diagram:e}},"loader"),sRt={id:Qpe,detector:oRt,loader:aRt},lRt=sRt,Zpe="flowchart",cRt=F((e,t)=>{var n,r;return((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"||((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),uRt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./flowDiagram-23GEKE2U-vyGW67Xm.js").then(n=>n.f);return{diagram:t}},__vite__mapDeps([111,112,113,114,110,115]));return{id:Zpe,diagram:e}},"loader"),dRt={id:Zpe,detector:cRt,loader:uRt},fRt=dRt,Jpe="flowchart-v2",hRt=F((e,t)=>{var n,r,i;return((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="dagre-d3"?!1:(((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),pRt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./flowDiagram-23GEKE2U-vyGW67Xm.js").then(n=>n.f);return{diagram:t}},__vite__mapDeps([111,112,113,114,110,115]));return{id:Jpe,diagram:e}},"loader"),gRt={id:Jpe,detector:hRt,loader:pRt},mRt=gRt,ege="swimlane",vRt=F(e=>/^\s*swimlane-beta\b/.test(e),"detector"),yRt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./swimlanesDiagram-G3AALYLV-DFMCDs8b.js");return{diagram:t}},__vite__mapDeps([116,111,112,113,114,110,115]));return{id:ege,diagram:e}},"loader"),bRt={id:ege,detector:vRt,loader:yRt},xRt=bRt,tge="er",CRt=F(e=>/^\s*erDiagram/.test(e),"detector"),SRt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./erDiagram-Q63AITRT-DVZkY5RZ.js");return{diagram:t}},__vite__mapDeps([117,113,114,115]));return{id:tge,diagram:e}},"loader"),wRt={id:tge,detector:CRt,loader:SRt},ERt=wRt,nge="gitGraph",_Rt=F(e=>/^\s*gitGraph/.test(e),"detector"),kRt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./gitGraphDiagram-IHSO6WYX-CEiqfFIF.js");return{diagram:t}},__vite__mapDeps([118,119,120,121]));return{id:nge,diagram:e}},"loader"),TRt={id:nge,detector:_Rt,loader:kRt},$Rt=TRt,rge="gantt",ORt=F(e=>/^\s*gantt/.test(e),"detector"),PRt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./ganttDiagram-NO4QXBWP-C2TRbwLw.js");return{diagram:t}},[]);return{id:rge,diagram:e}},"loader"),ARt={id:rge,detector:ORt,loader:PRt},IRt=ARt,ige="info",RRt=F(e=>/^\s*info/.test(e),"detector"),LRt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./infoDiagram-FWYZ7A6U-C0Px17IN.js");return{diagram:t}},__vite__mapDeps([122,121]));return{id:ige,diagram:e}},"loader"),MRt={id:ige,detector:RRt,loader:LRt},oge="pie",NRt=F(e=>/^\s*pie/.test(e),"detector"),BRt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./pieDiagram-ENE6RG2P-CJkCdB38.js");return{diagram:t}},__vite__mapDeps([123,120,121,124]));return{id:oge,diagram:e}},"loader"),DRt={id:oge,detector:NRt,loader:BRt},age="quadrantChart",FRt=F(e=>/^\s*quadrantChart/.test(e),"detector"),jRt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./quadrantDiagram-ABIIQ3AL-Dd7PwxsF.js");return{diagram:t}},[]);return{id:age,diagram:e}},"loader"),zRt={id:age,detector:FRt,loader:jRt},HRt=zRt,sge="xychart",VRt=F(e=>/^\s*xychart(-beta)?/.test(e),"detector"),WRt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./xychartDiagram-FW5EYKEG-BxGVZcnb.js");return{diagram:t}},[]);return{id:sge,diagram:e}},"loader"),URt={id:sge,detector:VRt,loader:WRt},qRt=URt,lge="requirement",GRt=F(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),KRt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./requirementDiagram-TGXJPOKE-DihF4OTj.js");return{diagram:t}},__vite__mapDeps([125,113,114]));return{id:lge,diagram:e}},"loader"),XRt={id:lge,detector:GRt,loader:KRt},YRt=XRt,cge="sequence",QRt=F(e=>/^\s*sequenceDiagram/.test(e),"detector"),ZRt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./sequenceDiagram-DBY2YBRQ-njQlqy_J.js");return{diagram:t}},__vite__mapDeps([126,119,110]));return{id:cge,diagram:e}},"loader"),JRt={id:cge,detector:QRt,loader:ZRt},eLt=JRt,uge="class",tLt=F((e,t)=>{var n;return((n=t==null?void 0:t.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),nLt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./classDiagram-OUVF2IWQ-mHUiWjcC.js");return{diagram:t}},__vite__mapDeps([127,128,112,113,114,110]));return{id:uge,diagram:e}},"loader"),rLt={id:uge,detector:tLt,loader:nLt},iLt=rLt,dge="classDiagram",oLt=F((e,t)=>{var n;return/^\s*classDiagram/.test(e)&&((n=t==null?void 0:t.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),aLt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./classDiagram-v2-EOCWNBFH-mHUiWjcC.js");return{diagram:t}},__vite__mapDeps([129,128,112,113,114,110]));return{id:dge,diagram:e}},"loader"),sLt={id:dge,detector:oLt,loader:aLt},lLt=sLt,fge="state",cLt=F((e,t)=>{var n;return((n=t==null?void 0:t.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),uLt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./stateDiagram-2N3HPSRC-B4O8weor.js");return{diagram:t}},__vite__mapDeps([130,131,113,114,110,103,105,104]));return{id:fge,diagram:e}},"loader"),dLt={id:fge,detector:cLt,loader:uLt},fLt=dLt,hge="stateDiagram",hLt=F((e,t)=>{var n;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((n=t==null?void 0:t.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper")},"detector"),pLt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./stateDiagram-v2-6OUMAXLB-CO881_ht.js");return{diagram:t}},__vite__mapDeps([132,131,113,114,110]));return{id:hge,diagram:e}},"loader"),gLt={id:hge,detector:hLt,loader:pLt},mLt=gLt,pge="journey",vLt=F(e=>/^\s*journey/.test(e),"detector"),yLt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./journeyDiagram-5HDEW3XC-BpgJUvs6.js");return{diagram:t}},__vite__mapDeps([133,112,110,124]));return{id:pge,diagram:e}},"loader"),bLt={id:pge,detector:vLt,loader:yLt},xLt=bLt,CLt=F((e,t,n)=>{qe.debug(`rendering svg for syntax error
|
|
2597
|
-
`);const r=s$t(t),i=r.append("g");r.attr("viewBox","0 0 2412 512"),_ue(r,100,512,!0),i.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"),i.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"),i.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"),i.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"),i.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"),i.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"),i.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"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)},"draw"),gge={draw:CLt},SLt=gge,wLt={db:{},renderer:gge,parser:{parse:F(()=>{},"parse")}},ELt=wLt,mge="flowchart-elk",_Lt=F((e,t={})=>{var n;return/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="elk"?(t.layout="elk",!0):!1},"detector"),kLt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./flowDiagram-23GEKE2U-vyGW67Xm.js").then(n=>n.f);return{diagram:t}},__vite__mapDeps([111,112,113,114,110,115]));return{id:mge,diagram:e}},"loader"),TLt={id:mge,detector:_Lt,loader:kLt},$Lt=TLt,vge="timeline",OLt=F(e=>/^\s*timeline/.test(e),"detector"),PLt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./timeline-definition-FHXFAJF6-C4_gj50B.js");return{diagram:t}},__vite__mapDeps([134,124]));return{id:vge,diagram:e}},"loader"),ALt={id:vge,detector:OLt,loader:PLt},ILt=ALt,yge="mindmap",RLt=F(e=>/^\s*mindmap/.test(e),"detector"),LLt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./mindmap-definition-LN4V7U3C-s-nUZuCs.js");return{diagram:t}},__vite__mapDeps([135,113,114]));return{id:yge,diagram:e}},"loader"),MLt={id:yge,detector:RLt,loader:LLt},NLt=MLt,bge="kanban",BLt=F(e=>/^\s*kanban/.test(e),"detector"),DLt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./kanban-definition-HUTT4EX6-DFlE9edA.js");return{diagram:t}},__vite__mapDeps([136,112]));return{id:bge,diagram:e}},"loader"),FLt={id:bge,detector:BLt,loader:DLt},jLt=FLt,xge="sankey",zLt=F(e=>/^\s*sankey(-beta)?/.test(e),"detector"),HLt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./sankeyDiagram-HTMAVEWB-D6i-Mzte.js");return{diagram:t}},[]);return{id:xge,diagram:e}},"loader"),VLt={id:xge,detector:zLt,loader:HLt},WLt=VLt,Cge="packet",ULt=F(e=>/^\s*packet(-beta)?/.test(e),"detector"),qLt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./diagram-NH7WQ7WH-B4Fy72tP.js");return{diagram:t}},__vite__mapDeps([137,120,121]));return{id:Cge,diagram:e}},"loader"),GLt={id:Cge,detector:ULt,loader:qLt},Sge="radar",KLt=F(e=>/^\s*radar-beta/.test(e),"detector"),XLt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./diagram-WEI45ONY-CwlAiqOe.js");return{diagram:t}},__vite__mapDeps([138,120,121]));return{id:Sge,diagram:e}},"loader"),YLt={id:Sge,detector:KLt,loader:XLt},wge="block",QLt=F(e=>/^\s*block(-beta)?/.test(e),"detector"),ZLt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./blockDiagram-677ZJIJ3-DfhtgI1r.js");return{diagram:t}},__vite__mapDeps([139,112,103,115]));return{id:wge,diagram:e}},"loader"),JLt={id:wge,detector:QLt,loader:ZLt},eMt=JLt,Ege="treeView",tMt=F(e=>/^\s*treeView-beta/.test(e),"detector"),nMt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./diagram-OA4YK3LP-BndmuIBq.js");return{diagram:t}},__vite__mapDeps([140,119,120,121]));return{id:Ege,diagram:e}},"loader"),rMt={id:Ege,detector:tMt,loader:nMt},iMt=rMt,_ge="architecture",oMt=F(e=>/^\s*architecture/.test(e),"detector"),aMt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./architectureDiagram-ZJ3FMSHR-Dtvpnopp.js");return{diagram:t}},__vite__mapDeps([141,120,121,108]));return{id:_ge,diagram:e}},"loader"),sMt={id:_ge,detector:oMt,loader:aMt},lMt=sMt,kge="eventmodeling",cMt=F(e=>/^\s*eventmodeling/.test(e),"detector"),uMt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./diagram-FQU43EPY-iZEZ1f-R.js");return{diagram:t}},__vite__mapDeps([142,120,121]));return{id:kge,diagram:e}},"loader"),dMt={id:kge,detector:cMt,loader:uMt},fMt=dMt,Tge="ishikawa",hMt=F(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),pMt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./ishikawaDiagram-FXEZZL3T-BjmTMgpO.js");return{diagram:t}},[]);return{id:Tge,diagram:e}},"loader"),gMt={id:Tge,detector:hMt,loader:pMt},$ge="venn",mMt=F(e=>/^\s*venn-beta/.test(e),"detector"),vMt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./vennDiagram-L72KCM5P-BxcAUnYo.js");return{diagram:t}},[]);return{id:$ge,diagram:e}},"loader"),yMt={id:$ge,detector:mMt,loader:vMt},bMt=yMt,Oge="treemap",xMt=F(e=>/^\s*treemap/.test(e),"detector"),CMt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./diagram-G47NLZAW-rkQb3r-C.js");return{diagram:t}},__vite__mapDeps([143,120,114,121]));return{id:Oge,diagram:e}},"loader"),SMt={id:Oge,detector:xMt,loader:CMt},Pge="wardley",wMt=F(e=>/^\s*wardley-beta/i.test(e),"detector"),EMt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./wardleyDiagram-EHGQE667-DlwSH77q.js");return{diagram:t}},__vite__mapDeps([144,120,121]));return{id:Pge,diagram:e}},"loader"),_Mt={id:Pge,detector:wMt,loader:EMt},kMt=_Mt,Age="cynefin",TMt=F(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),$Mt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./cynefinDiagram-TSTJHNR4-fzaM4qcZ.js");return{diagram:t}},__vite__mapDeps([145,120,121]));return{id:Age,diagram:e}},"loader"),OMt={id:Age,detector:TMt,loader:$Mt},Ige="railroad",PMt=F(e=>/^\s*railroad-beta/i.test(e),"detector"),AMt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./railroadDiagram-RFXS5EU6-DtO5PVFZ.js");return{diagram:t}},__vite__mapDeps([146,147,120,121]));return{id:Ige,diagram:e}},"loader"),IMt={id:Ige,detector:PMt,loader:AMt},Rge="railroadEbnf",RMt=F(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),LMt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./ebnfDiagram-CCIWWBDH-DJ_RuhTm.js");return{diagram:t}},__vite__mapDeps([148,147,120,121]));return{id:Rge,diagram:e}},"loader"),MMt={id:Rge,detector:RMt,loader:LMt},Lge="railroadAbnf",NMt=F(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),BMt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./abnfDiagram-VRR7QNED-D8zK__Mj.js");return{diagram:t}},__vite__mapDeps([149,147,120,121]));return{id:Lge,diagram:e}},"loader"),DMt={id:Lge,detector:NMt,loader:BMt},Mge="railroadPeg",FMt=F(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),jMt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./pegDiagram-2B236MQR-CideH-XT.js");return{diagram:t}},__vite__mapDeps([150,147,120,121]));return{id:Mge,diagram:e}},"loader"),zMt={id:Mge,detector:FMt,loader:jMt},uK=!1,yk=F(()=>{uK||(uK=!0,dE("error",ELt,e=>e.toLowerCase().trim()==="error"),dE("---",{db:{clear:F(()=>{},"clear")},styles:{},renderer:{draw:F(()=>{},"draw")},parser:{parse:F(()=>{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:F(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),hM($Lt,NLt,lMt),hM(lRt,jLt,lLt,iLt,ERt,IRt,MRt,DRt,YRt,eLt,xRt,mRt,fRt,ILt,$Rt,mLt,fLt,xLt,HRt,WLt,GLt,qRt,eMt,fMt,iMt,YLt,gMt,SMt,IMt,MMt,DMt,zMt,bMt,kMt,OMt))},"addDiagrams"),HMt=F(async()=>{qe.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(_f).map(async([n,{detector:r,loader:i}])=>{if(i)try{vM(n)}catch{try{const{diagram:o,id:a}=await i();dE(a,o,r)}catch(o){throw qe.error(`Failed to load external diagram with key ${n}. Removing from detectors.`),delete _f[n],o}}}))).filter(n=>n.status==="rejected");if(t.length>0){qe.error(`Failed to load ${t.length} external diagrams`);for(const n of t)qe.error(n);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),VMt="graphics-document document";function Nge(e,t){e.attr("role",VMt),t!==""&&e.attr("aria-roledescription",t)}F(Nge,"setA11yDiagramInfo");function Bge(e,t,n,r){if(e.insert!==void 0){if(n){const i=`chart-desc-${r}`;e.attr("aria-describedby",i),e.insert("desc",":first-child").attr("id",i).text(n)}if(t){const i=`chart-title-${r}`;e.attr("aria-labelledby",i),e.insert("title",":first-child").attr("id",i).text(t)}}}F(Bge,"addSVGa11yTitleDescription");var nf,ZM=(nf=class{constructor(t,n,r,i,o){this.type=t,this.text=n,this.db=r,this.parser=i,this.renderer=o}static async fromText(t,n={}){var c,u;const r=Pr(),i=B5(t,r);t=gPt(t)+`
|
|
2596
|
+
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),JIt=F((e,t,n)=>{const r=e.append("defs").append("marker").attr("id",n+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");r.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),r.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),r.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),eRt=F((e,t,n)=>{const r=Pr(),{themeVariables:i}=r,{strokeWidth:o}=i,a=e.append("defs").append("marker").attr("id",n+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");a.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),a.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),a.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),a.selectAll("*").attr("stroke-width",`${o}`)},"requirement_contains_neo"),tRt={extension:RIt,composition:LIt,aggregation:MIt,dependency:NIt,lollipop:BIt,point:DIt,circle:FIt,cross:jIt,barb:zIt,barbNeo:HIt,only_one:VIt,zero_or_one:WIt,one_or_more:UIt,zero_or_more:qIt,only_one_neo:GIt,zero_or_one_neo:KIt,one_or_more_neo:XIt,zero_or_more_neo:YIt,requirement_arrow:QIt,requirement_contains:JIt,requirement_arrow_neo:ZIt,requirement_contains_neo:eRt},nRt=IIt,rRt={common:ex,getConfig:Pr,insertCluster:ZAt,insertEdge:AIt,insertEdgeLabel:EIt,insertMarkers:nRt,insertNode:qpe,interpolateToCurve:a4,labelHelper:Kt,log:qe,positionEdgeLabel:_It},ob={},Ype=F(e=>{for(const t of e)ob[t.name]=t},"registerLayoutLoaders"),iRt=F(()=>{Ype([{name:"dagre",loader:F(async()=>await U(()=>import("./dagre-VKFMJZFB-nxN1qAKi.js"),__vite__mapDeps([101,102,103,104,105])),"loader")},{name:"swimlane",loader:F(async()=>await U(()=>import("./swimlanes-5IMT3BWC-vO-7dG2V.js"),__vite__mapDeps([106,102,103,104])),"loader")},{name:"cose-bilkent",loader:F(async()=>await U(()=>import("./cose-bilkent-JH36ORCC-B2e-rPVN.js"),__vite__mapDeps([107,108])),"loader")}])},"registerDefaultLayoutLoaders");iRt();var b4t=F(async(e,t,n)=>{if(!(e.layoutAlgorithm in ob))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const d of e.nodes){const f=d.domId||d.id;d.domId=`${e.diagramId}-${f}`}const r=ob[e.layoutAlgorithm],i=await r.loader(),{theme:o,themeVariables:a}=e.config,{useGradient:s,gradientStart:l,gradientStop:c}=a,u=t.attr("id");if(t.append("defs").append("filter").attr("id",`${u}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${o!=null&&o.includes("dark")?"#FFFFFF":"#000000"}`),t.append("defs").append("filter").attr("id",`${u}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${o!=null&&o.includes("dark")?"#FFFFFF":"#000000"}`),s){const d=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");d.append("svg:stop").attr("offset","0%").attr("stop-color",l).attr("stop-opacity",1),d.append("svg:stop").attr("offset","100%").attr("stop-color",c).attr("stop-opacity",1)}return i.render(e,t,rRt,{algorithm:r.algorithm},n)},"render"),x4t=F((e="",{fallback:t="dagre"}={})=>{if(e in ob)return e;if(t in ob)return qe.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm"),Qpe="c4",oRt=F(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),aRt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./c4Diagram-LMCZKHZV-C4Vo5RAI.js");return{diagram:t}},__vite__mapDeps([109,110]));return{id:Qpe,diagram:e}},"loader"),sRt={id:Qpe,detector:oRt,loader:aRt},lRt=sRt,Zpe="flowchart",cRt=F((e,t)=>{var n,r;return((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"||((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),uRt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./flowDiagram-23GEKE2U-CWYmXYgW.js").then(n=>n.f);return{diagram:t}},__vite__mapDeps([111,112,113,114,110,115]));return{id:Zpe,diagram:e}},"loader"),dRt={id:Zpe,detector:cRt,loader:uRt},fRt=dRt,Jpe="flowchart-v2",hRt=F((e,t)=>{var n,r,i;return((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="dagre-d3"?!1:(((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),pRt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./flowDiagram-23GEKE2U-CWYmXYgW.js").then(n=>n.f);return{diagram:t}},__vite__mapDeps([111,112,113,114,110,115]));return{id:Jpe,diagram:e}},"loader"),gRt={id:Jpe,detector:hRt,loader:pRt},mRt=gRt,ege="swimlane",vRt=F(e=>/^\s*swimlane-beta\b/.test(e),"detector"),yRt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./swimlanesDiagram-G3AALYLV-DxwJcNf4.js");return{diagram:t}},__vite__mapDeps([116,111,112,113,114,110,115]));return{id:ege,diagram:e}},"loader"),bRt={id:ege,detector:vRt,loader:yRt},xRt=bRt,tge="er",CRt=F(e=>/^\s*erDiagram/.test(e),"detector"),SRt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./erDiagram-Q63AITRT-CCeU8uXM.js");return{diagram:t}},__vite__mapDeps([117,113,114,115]));return{id:tge,diagram:e}},"loader"),wRt={id:tge,detector:CRt,loader:SRt},ERt=wRt,nge="gitGraph",_Rt=F(e=>/^\s*gitGraph/.test(e),"detector"),kRt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./gitGraphDiagram-IHSO6WYX-OfPpsImd.js");return{diagram:t}},__vite__mapDeps([118,119,120,121]));return{id:nge,diagram:e}},"loader"),TRt={id:nge,detector:_Rt,loader:kRt},$Rt=TRt,rge="gantt",ORt=F(e=>/^\s*gantt/.test(e),"detector"),PRt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./ganttDiagram-NO4QXBWP-Bw1obkG5.js");return{diagram:t}},[]);return{id:rge,diagram:e}},"loader"),ARt={id:rge,detector:ORt,loader:PRt},IRt=ARt,ige="info",RRt=F(e=>/^\s*info/.test(e),"detector"),LRt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./infoDiagram-FWYZ7A6U-DNrZutb1.js");return{diagram:t}},__vite__mapDeps([122,121]));return{id:ige,diagram:e}},"loader"),MRt={id:ige,detector:RRt,loader:LRt},oge="pie",NRt=F(e=>/^\s*pie/.test(e),"detector"),BRt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./pieDiagram-ENE6RG2P-BOBkdC1f.js");return{diagram:t}},__vite__mapDeps([123,120,121,124]));return{id:oge,diagram:e}},"loader"),DRt={id:oge,detector:NRt,loader:BRt},age="quadrantChart",FRt=F(e=>/^\s*quadrantChart/.test(e),"detector"),jRt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./quadrantDiagram-ABIIQ3AL-BHAhzSkD.js");return{diagram:t}},[]);return{id:age,diagram:e}},"loader"),zRt={id:age,detector:FRt,loader:jRt},HRt=zRt,sge="xychart",VRt=F(e=>/^\s*xychart(-beta)?/.test(e),"detector"),WRt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./xychartDiagram-FW5EYKEG-DmyzmXyI.js");return{diagram:t}},[]);return{id:sge,diagram:e}},"loader"),URt={id:sge,detector:VRt,loader:WRt},qRt=URt,lge="requirement",GRt=F(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),KRt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./requirementDiagram-TGXJPOKE-BTTRG_C-.js");return{diagram:t}},__vite__mapDeps([125,113,114]));return{id:lge,diagram:e}},"loader"),XRt={id:lge,detector:GRt,loader:KRt},YRt=XRt,cge="sequence",QRt=F(e=>/^\s*sequenceDiagram/.test(e),"detector"),ZRt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./sequenceDiagram-DBY2YBRQ-DYM-Lf_t.js");return{diagram:t}},__vite__mapDeps([126,119,110]));return{id:cge,diagram:e}},"loader"),JRt={id:cge,detector:QRt,loader:ZRt},eLt=JRt,uge="class",tLt=F((e,t)=>{var n;return((n=t==null?void 0:t.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),nLt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./classDiagram-OUVF2IWQ-BlFcpmEd.js");return{diagram:t}},__vite__mapDeps([127,128,112,113,114,110]));return{id:uge,diagram:e}},"loader"),rLt={id:uge,detector:tLt,loader:nLt},iLt=rLt,dge="classDiagram",oLt=F((e,t)=>{var n;return/^\s*classDiagram/.test(e)&&((n=t==null?void 0:t.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),aLt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./classDiagram-v2-EOCWNBFH-BlFcpmEd.js");return{diagram:t}},__vite__mapDeps([129,128,112,113,114,110]));return{id:dge,diagram:e}},"loader"),sLt={id:dge,detector:oLt,loader:aLt},lLt=sLt,fge="state",cLt=F((e,t)=>{var n;return((n=t==null?void 0:t.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),uLt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./stateDiagram-2N3HPSRC-CX-Qz4n7.js");return{diagram:t}},__vite__mapDeps([130,131,113,114,110,103,105,104]));return{id:fge,diagram:e}},"loader"),dLt={id:fge,detector:cLt,loader:uLt},fLt=dLt,hge="stateDiagram",hLt=F((e,t)=>{var n;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((n=t==null?void 0:t.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper")},"detector"),pLt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./stateDiagram-v2-6OUMAXLB-Ch54U9zs.js");return{diagram:t}},__vite__mapDeps([132,131,113,114,110]));return{id:hge,diagram:e}},"loader"),gLt={id:hge,detector:hLt,loader:pLt},mLt=gLt,pge="journey",vLt=F(e=>/^\s*journey/.test(e),"detector"),yLt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./journeyDiagram-5HDEW3XC-CaegxpYw.js");return{diagram:t}},__vite__mapDeps([133,112,110,124]));return{id:pge,diagram:e}},"loader"),bLt={id:pge,detector:vLt,loader:yLt},xLt=bLt,CLt=F((e,t,n)=>{qe.debug(`rendering svg for syntax error
|
|
2597
|
+
`);const r=s$t(t),i=r.append("g");r.attr("viewBox","0 0 2412 512"),_ue(r,100,512,!0),i.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"),i.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"),i.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"),i.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"),i.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"),i.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"),i.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"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)},"draw"),gge={draw:CLt},SLt=gge,wLt={db:{},renderer:gge,parser:{parse:F(()=>{},"parse")}},ELt=wLt,mge="flowchart-elk",_Lt=F((e,t={})=>{var n;return/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="elk"?(t.layout="elk",!0):!1},"detector"),kLt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./flowDiagram-23GEKE2U-CWYmXYgW.js").then(n=>n.f);return{diagram:t}},__vite__mapDeps([111,112,113,114,110,115]));return{id:mge,diagram:e}},"loader"),TLt={id:mge,detector:_Lt,loader:kLt},$Lt=TLt,vge="timeline",OLt=F(e=>/^\s*timeline/.test(e),"detector"),PLt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./timeline-definition-FHXFAJF6-Cn7z-Bqh.js");return{diagram:t}},__vite__mapDeps([134,124]));return{id:vge,diagram:e}},"loader"),ALt={id:vge,detector:OLt,loader:PLt},ILt=ALt,yge="mindmap",RLt=F(e=>/^\s*mindmap/.test(e),"detector"),LLt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./mindmap-definition-LN4V7U3C-Ck5xDFhg.js");return{diagram:t}},__vite__mapDeps([135,113,114]));return{id:yge,diagram:e}},"loader"),MLt={id:yge,detector:RLt,loader:LLt},NLt=MLt,bge="kanban",BLt=F(e=>/^\s*kanban/.test(e),"detector"),DLt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./kanban-definition-HUTT4EX6-DocIVGMy.js");return{diagram:t}},__vite__mapDeps([136,112]));return{id:bge,diagram:e}},"loader"),FLt={id:bge,detector:BLt,loader:DLt},jLt=FLt,xge="sankey",zLt=F(e=>/^\s*sankey(-beta)?/.test(e),"detector"),HLt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./sankeyDiagram-HTMAVEWB-_xUP3uiO.js");return{diagram:t}},[]);return{id:xge,diagram:e}},"loader"),VLt={id:xge,detector:zLt,loader:HLt},WLt=VLt,Cge="packet",ULt=F(e=>/^\s*packet(-beta)?/.test(e),"detector"),qLt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./diagram-NH7WQ7WH-fhOp1mr9.js");return{diagram:t}},__vite__mapDeps([137,120,121]));return{id:Cge,diagram:e}},"loader"),GLt={id:Cge,detector:ULt,loader:qLt},Sge="radar",KLt=F(e=>/^\s*radar-beta/.test(e),"detector"),XLt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./diagram-WEI45ONY-B-toJrZu.js");return{diagram:t}},__vite__mapDeps([138,120,121]));return{id:Sge,diagram:e}},"loader"),YLt={id:Sge,detector:KLt,loader:XLt},wge="block",QLt=F(e=>/^\s*block(-beta)?/.test(e),"detector"),ZLt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./blockDiagram-677ZJIJ3-Dusa5zr8.js");return{diagram:t}},__vite__mapDeps([139,112,103,115]));return{id:wge,diagram:e}},"loader"),JLt={id:wge,detector:QLt,loader:ZLt},eMt=JLt,Ege="treeView",tMt=F(e=>/^\s*treeView-beta/.test(e),"detector"),nMt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./diagram-OA4YK3LP-B7UMZ-5d.js");return{diagram:t}},__vite__mapDeps([140,119,120,121]));return{id:Ege,diagram:e}},"loader"),rMt={id:Ege,detector:tMt,loader:nMt},iMt=rMt,_ge="architecture",oMt=F(e=>/^\s*architecture/.test(e),"detector"),aMt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./architectureDiagram-ZJ3FMSHR-D3rUGwDS.js");return{diagram:t}},__vite__mapDeps([141,120,121,108]));return{id:_ge,diagram:e}},"loader"),sMt={id:_ge,detector:oMt,loader:aMt},lMt=sMt,kge="eventmodeling",cMt=F(e=>/^\s*eventmodeling/.test(e),"detector"),uMt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./diagram-FQU43EPY-CWkdysy2.js");return{diagram:t}},__vite__mapDeps([142,120,121]));return{id:kge,diagram:e}},"loader"),dMt={id:kge,detector:cMt,loader:uMt},fMt=dMt,Tge="ishikawa",hMt=F(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),pMt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./ishikawaDiagram-FXEZZL3T-DodxL_A3.js");return{diagram:t}},[]);return{id:Tge,diagram:e}},"loader"),gMt={id:Tge,detector:hMt,loader:pMt},$ge="venn",mMt=F(e=>/^\s*venn-beta/.test(e),"detector"),vMt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./vennDiagram-L72KCM5P-BnjZCady.js");return{diagram:t}},[]);return{id:$ge,diagram:e}},"loader"),yMt={id:$ge,detector:mMt,loader:vMt},bMt=yMt,Oge="treemap",xMt=F(e=>/^\s*treemap/.test(e),"detector"),CMt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./diagram-G47NLZAW-L7jPJ-r1.js");return{diagram:t}},__vite__mapDeps([143,120,114,121]));return{id:Oge,diagram:e}},"loader"),SMt={id:Oge,detector:xMt,loader:CMt},Pge="wardley",wMt=F(e=>/^\s*wardley-beta/i.test(e),"detector"),EMt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./wardleyDiagram-EHGQE667-Bgp49v0-.js");return{diagram:t}},__vite__mapDeps([144,120,121]));return{id:Pge,diagram:e}},"loader"),_Mt={id:Pge,detector:wMt,loader:EMt},kMt=_Mt,Age="cynefin",TMt=F(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),$Mt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./cynefinDiagram-TSTJHNR4-BvtRhsVM.js");return{diagram:t}},__vite__mapDeps([145,120,121]));return{id:Age,diagram:e}},"loader"),OMt={id:Age,detector:TMt,loader:$Mt},Ige="railroad",PMt=F(e=>/^\s*railroad-beta/i.test(e),"detector"),AMt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./railroadDiagram-RFXS5EU6-CsQep5fB.js");return{diagram:t}},__vite__mapDeps([146,147,120,121]));return{id:Ige,diagram:e}},"loader"),IMt={id:Ige,detector:PMt,loader:AMt},Rge="railroadEbnf",RMt=F(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),LMt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./ebnfDiagram-CCIWWBDH-l1kXQDgJ.js");return{diagram:t}},__vite__mapDeps([148,147,120,121]));return{id:Rge,diagram:e}},"loader"),MMt={id:Rge,detector:RMt,loader:LMt},Lge="railroadAbnf",NMt=F(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),BMt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./abnfDiagram-VRR7QNED-B0E8zzLB.js");return{diagram:t}},__vite__mapDeps([149,147,120,121]));return{id:Lge,diagram:e}},"loader"),DMt={id:Lge,detector:NMt,loader:BMt},Mge="railroadPeg",FMt=F(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),jMt=F(async()=>{const{diagram:e}=await U(async()=>{const{diagram:t}=await import("./pegDiagram-2B236MQR-CnkbIPdt.js");return{diagram:t}},__vite__mapDeps([150,147,120,121]));return{id:Mge,diagram:e}},"loader"),zMt={id:Mge,detector:FMt,loader:jMt},uK=!1,yk=F(()=>{uK||(uK=!0,dE("error",ELt,e=>e.toLowerCase().trim()==="error"),dE("---",{db:{clear:F(()=>{},"clear")},styles:{},renderer:{draw:F(()=>{},"draw")},parser:{parse:F(()=>{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:F(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),hM($Lt,NLt,lMt),hM(lRt,jLt,lLt,iLt,ERt,IRt,MRt,DRt,YRt,eLt,xRt,mRt,fRt,ILt,$Rt,mLt,fLt,xLt,HRt,WLt,GLt,qRt,eMt,fMt,iMt,YLt,gMt,SMt,IMt,MMt,DMt,zMt,bMt,kMt,OMt))},"addDiagrams"),HMt=F(async()=>{qe.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(_f).map(async([n,{detector:r,loader:i}])=>{if(i)try{vM(n)}catch{try{const{diagram:o,id:a}=await i();dE(a,o,r)}catch(o){throw qe.error(`Failed to load external diagram with key ${n}. Removing from detectors.`),delete _f[n],o}}}))).filter(n=>n.status==="rejected");if(t.length>0){qe.error(`Failed to load ${t.length} external diagrams`);for(const n of t)qe.error(n);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),VMt="graphics-document document";function Nge(e,t){e.attr("role",VMt),t!==""&&e.attr("aria-roledescription",t)}F(Nge,"setA11yDiagramInfo");function Bge(e,t,n,r){if(e.insert!==void 0){if(n){const i=`chart-desc-${r}`;e.attr("aria-describedby",i),e.insert("desc",":first-child").attr("id",i).text(n)}if(t){const i=`chart-title-${r}`;e.attr("aria-labelledby",i),e.insert("title",":first-child").attr("id",i).text(t)}}}F(Bge,"addSVGa11yTitleDescription");var nf,ZM=(nf=class{constructor(t,n,r,i,o){this.type=t,this.text=n,this.db=r,this.parser=i,this.renderer=o}static async fromText(t,n={}){var c,u;const r=Pr(),i=B5(t,r);t=gPt(t)+`
|
|
2598
2598
|
`;try{vM(i)}catch{const d=D2t(i);if(!d)throw new bue(`Diagram ${i} not found.`);const{id:f,diagram:h}=await d();dE(f,h)}const{db:o,parser:a,renderer:s,init:l}=vM(i);return a.parser&&(a.parser.yy=o),(c=o.clear)==null||c.call(o),l==null||l(r),n.title&&((u=o.setDiagramTitle)==null||u.call(o,n.title)),await a.parse(t),new nf(i,t,o,a,s)}async render(t,n){await this.renderer.draw(this.text,t,n,this)}getParser(){return this.parser}getType(){return this.type}},F(nf,"Diagram"),nf),dK=[],WMt=F(()=>{dK.forEach(e=>{e()}),dK=[]},"attachFunctions"),UMt=F(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function Dge(e){const t=e.match(yue);if(!t)return{text:e,metadata:{}};const n=t[1],r=n?t[2].split(`
|
|
2599
2599
|
`).map(a=>a.startsWith(n)?a.slice(n.length):a).join(`
|
|
2600
2600
|
`):t[2];let i=pOt(r,{schema:hOt})??{};i=typeof i=="object"&&!Array.isArray(i)?i:{};const o={};return i.displayMode&&(o.displayMode=i.displayMode.toString()),i.title&&(o.title=i.title.toString()),i.config&&(o.config=i.config),{text:e.slice(t[0].length),metadata:o}}F(Dge,"extractFrontMatter");var qMt=F(e=>e.replace(/\r\n?/g,`
|