aitu-app 0.6.21 → 0.6.22
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/README.md +3 -3
- package/assets/{ChatMessagesArea-Bc7FkjZo.js → ChatMessagesArea-63H9tZtG.js} +3 -3
- package/assets/{KnowledgeBaseContent-BLIcG9KK.js → KnowledgeBaseContent-5j70f-FP.js} +4 -4
- package/assets/{ModelBenchmarkWorkbench-CGztJD2j.js → ModelBenchmarkWorkbench-OdGWsh0T.js} +1 -1
- package/assets/{ResizableDivider-DfqWs8LM.js → ResizableDivider-DUn2YRJi.js} +1 -1
- package/assets/{ToolboxDrawer-B9g_w8pc.js → ToolboxDrawer-DDAFUdNA.js} +1 -1
- package/assets/{VideoAnalyzer-KdlQiqKF.js → VideoAnalyzer-C7mAfG_a.js} +1 -1
- package/assets/{ai-analyze-D51W4jnj.js → ai-analyze-CJsLcVP0.js} +1 -1
- package/assets/{arc-DVIrWwbE.js → arc-BwiBrwsC.js} +1 -1
- package/assets/{arc-BqtXmYwJ.js → arc-bU0RTLO_.js} +1 -1
- package/assets/{batch-image-generation-DEC8rrCP.js → batch-image-generation-se7md6Xz.js} +1 -1
- package/assets/{blockDiagram-38ab4fdb-BgPS1CyJ.js → blockDiagram-38ab4fdb-C-J430-U.js} +1 -1
- package/assets/{blockDiagram-38ab4fdb-CMoyjTgm.js → blockDiagram-38ab4fdb-CRlC08-f.js} +1 -1
- package/assets/{c4Diagram-3d4e48cf-wjCA-CL-.js → c4Diagram-3d4e48cf-CZXHUfLE.js} +1 -1
- package/assets/{c4Diagram-3d4e48cf-CIeKmCwa.js → c4Diagram-3d4e48cf-CjnnPMdb.js} +1 -1
- package/assets/channel-C0300EYS.js +1 -0
- package/assets/channel-CFKYr4PJ.js +1 -0
- package/assets/{classDiagram-70f12bd4-vizVZzUd.js → classDiagram-70f12bd4-CHHFCLtW.js} +1 -1
- package/assets/{classDiagram-70f12bd4-DfTNrA1t.js → classDiagram-70f12bd4-Cka5pz9E.js} +1 -1
- package/assets/{classDiagram-v2-f2320105-LutY6jPP.js → classDiagram-v2-f2320105-BoY5QpGK.js} +1 -1
- package/assets/{classDiagram-v2-f2320105-DO7izSAk.js → classDiagram-v2-f2320105-DhMOYQPM.js} +1 -1
- package/assets/{clipper-D3zP18nj.js → clipper-ZDte_DyN.js} +1 -1
- package/assets/clone-B4wQMor7.js +1 -0
- package/assets/clone-DTNvy75S.js +1 -0
- package/assets/{createText-2e5e7dd3-CtWg9f_f.js → createText-2e5e7dd3-CouAisK8.js} +1 -1
- package/assets/{createText-2e5e7dd3-iSllMU05.js → createText-2e5e7dd3-DQiR2iFi.js} +1 -1
- package/assets/{edges-e0da2a9e-B8N3S4AD.js → edges-e0da2a9e-D5w5n92i.js} +1 -1
- package/assets/{edges-e0da2a9e-B9APkBSa.js → edges-e0da2a9e-dJImi3XC.js} +1 -1
- package/assets/{erDiagram-9861fffd-Dnp1WpmL.js → erDiagram-9861fffd-9WI5iVS2.js} +1 -1
- package/assets/{erDiagram-9861fffd-B1x-ZWfU.js → erDiagram-9861fffd-IyJNqdw_.js} +1 -1
- package/assets/{flowDb-956e92f1-BT8eaBZE.js → flowDb-956e92f1-DltT8K-M.js} +1 -1
- package/assets/{flowDb-956e92f1-5caTHN1T.js → flowDb-956e92f1-FUMkFpNV.js} +1 -1
- package/assets/{flowDiagram-66a62f08-B5xcjVie.js → flowDiagram-66a62f08-Dbc4Nx93.js} +1 -1
- package/assets/{flowDiagram-66a62f08-Cx_V_MoA.js → flowDiagram-66a62f08-nXDkz0Ug.js} +1 -1
- package/assets/flowDiagram-v2-96b9c2cf-BVOhfZw2.js +1 -0
- package/assets/flowDiagram-v2-96b9c2cf-j5LlfdZR.js +1 -0
- package/assets/{flowchart-elk-definition-4a651766-Cjgywupa.js → flowchart-elk-definition-4a651766-B6rzHwEw.js} +1 -1
- package/assets/{flowchart-elk-definition-4a651766-CwIA9l-O.js → flowchart-elk-definition-4a651766-gZ7Jh0C4.js} +1 -1
- package/assets/{ganttDiagram-c361ad54-6zSjhOJy.js → ganttDiagram-c361ad54-B9Sd11GI.js} +1 -1
- package/assets/{ganttDiagram-c361ad54-oySKvDa4.js → ganttDiagram-c361ad54-CItnWrDi.js} +1 -1
- package/assets/{gitGraphDiagram-72cf32ee-BK7TWB1s.js → gitGraphDiagram-72cf32ee-CYyEomwm.js} +1 -1
- package/assets/{gitGraphDiagram-72cf32ee-BnNAY3pp.js → gitGraphDiagram-72cf32ee-Dd5nG_11.js} +1 -1
- package/assets/{graph-B_MH2EY9.js → graph-BHlg4sFb.js} +1 -1
- package/assets/{graph-BPS27gwv.js → graph-Cy6oe2k_.js} +1 -1
- package/assets/{grid-image-DLa8OQhL.js → grid-image-C-msrN1B.js} +1 -1
- package/assets/{has-D0S1Zmzg.js → has-CWNO02CD.js} +1 -1
- package/assets/{hasIn-De9yBkgj.js → hasIn-Bs6kQ8q7.js} +1 -1
- package/assets/{index-3862675e-FzFTrzJW.js → index-3862675e-BKpqGoRu.js} +1 -1
- package/assets/{index-3862675e-D6LCgHcS.js → index-3862675e-DsPsD_QS.js} +1 -1
- package/assets/{index-T5OF1JP4.js → index-B-A2026m.js} +1 -1
- package/assets/{index-Bjr6SLmW.js → index-BC5aP94k.js} +1 -1
- package/assets/{index-Cb_6lq4r.js → index-BEFGFeiI.js} +1 -1
- package/assets/{index-Dgs_9LtJ.js → index-BTRvm9gy.js} +1 -1
- package/assets/{index-B8Cp8ZAq.js → index-B_ECxmtW.js} +1 -1
- package/assets/{index-CGUpUzSI.js → index-BcM3gyCR.js} +1 -1
- package/assets/{index-Ia_xKhIZ.js → index-BdH171U0.js} +5 -5
- package/assets/{index-sARZWo5n.js → index-Br38Ej3g.js} +1 -1
- package/assets/{index-CU-f8hlX.js → index-C-wf0YcU.js} +1 -1
- package/assets/{index-Ctlb8bi0.js → index-C1X4nHa1.js} +1 -1
- package/assets/{index-Br6iEGLw.js → index-CCzr4Dqs.js} +1 -1
- package/assets/{index-DYQtOpt_.js → index-CMfdA3Eb.js} +1 -1
- package/assets/{index-B1Qj7KmK.js → index-CRvF4JAy.js} +1 -1
- package/assets/{index-GP_0iNEx.js → index-CUYzOOe1.js} +1 -1
- package/assets/{index-rrHZbeHC.js → index-CnVvluBH.js} +1 -1
- package/assets/{index-Ddc6oDDk.js → index-D4JTX52h.js} +1 -1
- package/assets/{index-BdrYk4gf.js → index-DB9eHDVM.js} +1 -1
- package/assets/{index-DFgRlr0t.js → index-DGVrURNm.js} +1 -1
- package/assets/{index-CG_qIHbM.js → index-Dczi3BkD.js} +1 -1
- package/assets/{index-CSxjkKUk.js → index-DtJW2qel.js} +1 -1
- package/assets/{index-6opHRfWl.js → index-DysS6hq1.js} +1 -1
- package/assets/{index-C6mW2Bug.js → index-KJVd0B2z.js} +1 -1
- package/assets/{index-BIv91qW9.js → index-T9dstNa6.js} +16 -16
- package/assets/{index-B3GMIqjJ.js → index-TQu9hYF9.js} +1 -1
- package/assets/{index-CAghokCh.js → index-Y5c26X-0.js} +1 -1
- package/assets/{index-BR5Ge2w3.js → index-YBixVTkA.js} +1 -1
- package/assets/{index-CqeciDtE.js → index-ZRpcXeUi.js} +1 -1
- package/assets/{index-DUFh_idy.js → index-byQfZx9Y.js} +1 -1
- package/assets/{index-DJhDtQwz.js → index-hmLPqXUT.js} +1 -1
- package/assets/{index-BUde8Mm7.js → index-iDwZIVzi.js} +1 -1
- package/assets/{index-B_TY0tLT.js → index-sRNe5iWo.js} +1 -1
- package/assets/{index-CoNiRHcD.js → index-w0J-N3Bz.js} +1 -1
- package/assets/{index-CIsTR1zp.js → index-xSQSiTqU.js} +1 -1
- package/assets/{infoDiagram-f8f76790-C5lK_OdP.js → infoDiagram-f8f76790-D3aFK43x.js} +1 -1
- package/assets/{infoDiagram-f8f76790-DqxLIqvx.js → infoDiagram-f8f76790-plyhvVln.js} +1 -1
- package/assets/{inspiration-board-DELLwhlH.js → inspiration-board-WeHubIbH.js} +1 -1
- package/assets/{isEmpty-DF_ugZHw.js → isEmpty-DZgnI1Gi.js} +1 -1
- package/assets/{journeyDiagram-49397b02-f6bVwxyz.js → journeyDiagram-49397b02-BUEu9YZl.js} +1 -1
- package/assets/{journeyDiagram-49397b02-BJ9tbMfk.js → journeyDiagram-49397b02-CJLyWjZc.js} +1 -1
- package/assets/{layers-DAOrLzwi.js → layers-BZ-h9vGA.js} +1 -1
- package/assets/{layout-yMh6DKYs.js → layout-CB3iLEN-.js} +1 -1
- package/assets/{layout-fmUyEip8.js → layout-CfIv6ys6.js} +1 -1
- package/assets/{line-DANa88VO.js → line-Cl2IINpY.js} +1 -1
- package/assets/{line-DXiCFjwk.js → line-DEMH00tR.js} +1 -1
- package/assets/{linear-5iY8Cy-H.js → linear-CAlPBLIZ.js} +1 -1
- package/assets/{linear-ctDXkzM_.js → linear-CYligRij.js} +1 -1
- package/assets/{mermaid.core-Dgk12NKe.js → mermaid.core-HRa8_3iy.js} +5 -5
- package/assets/{mindmap-definition-fc14e90a-C7BlMhzr.js → mindmap-definition-fc14e90a-BE_BelNq.js} +1 -1
- package/assets/{mindmap-definition-fc14e90a-DLlf6Rx9.js → mindmap-definition-fc14e90a-BjEfE1ER.js} +1 -1
- package/assets/{model-benchmark-launcher-fleyPbmY.js → model-benchmark-launcher-DGhnqUWi.js} +1 -1
- package/assets/{photo-wall-splitter-xpPO2k5T.js → photo-wall-splitter-CEBkekUS.js} +1 -1
- package/assets/{pick-VCZntyna.js → pick-BDzXufGU.js} +1 -1
- package/assets/{pieDiagram-8a3498a8-BBnaNSJ-.js → pieDiagram-8a3498a8-BOz79K-l.js} +1 -1
- package/assets/{pieDiagram-8a3498a8-BvSfbq65.js → pieDiagram-8a3498a8-BXg1_0zb.js} +1 -1
- package/assets/{quadrantDiagram-120e2f19-Bnh-DNQv.js → quadrantDiagram-120e2f19-BNSax4Yv.js} +1 -1
- package/assets/{quadrantDiagram-120e2f19-Cm8pCCM5.js → quadrantDiagram-120e2f19-BW0c6246.js} +1 -1
- package/assets/{requirementDiagram-deff3bca-CDm-DECv.js → requirementDiagram-deff3bca-BdKQCBBh.js} +1 -1
- package/assets/{requirementDiagram-deff3bca-DMRUc1cx.js → requirementDiagram-deff3bca-DLC9wibM.js} +1 -1
- package/assets/{sankeyDiagram-04a897e0-CXC5R9JG.js → sankeyDiagram-04a897e0-gzh6unx3.js} +1 -1
- package/assets/{sankeyDiagram-04a897e0-BMtXJIXg.js → sankeyDiagram-04a897e0-mnwYvtIk.js} +1 -1
- package/assets/{sequenceDiagram-704730f1-D42qglAv.js → sequenceDiagram-704730f1-9WzL_6Og.js} +1 -1
- package/assets/{sequenceDiagram-704730f1-CNMmBUQx.js → sequenceDiagram-704730f1-CPrfOGmY.js} +1 -1
- package/assets/{settings-dialog-2ODvctTh.js → settings-dialog-DKi0S3Fj.js} +1 -1
- package/assets/{shard-sync-service-D3USLllH.js → shard-sync-service-DMBoL8-S.js} +1 -1
- package/assets/{stateDiagram-587899a1-DqPLyMub.js → stateDiagram-587899a1-D0lAIKBU.js} +1 -1
- package/assets/{stateDiagram-587899a1-DsEPR5ou.js → stateDiagram-587899a1-DHfaNuxL.js} +1 -1
- package/assets/{stateDiagram-v2-d93cdb3a-DrlPKA21.js → stateDiagram-v2-d93cdb3a-BW2UOJGd.js} +1 -1
- package/assets/{stateDiagram-v2-d93cdb3a-Bf_7sDs_.js → stateDiagram-v2-d93cdb3a-BkSMcdnU.js} +1 -1
- package/assets/{styles-6aaf32cf-YHAPMNO9.js → styles-6aaf32cf-BzV4m8wn.js} +1 -1
- package/assets/{styles-6aaf32cf-Bj2sDHb0.js → styles-6aaf32cf-DbLx1dQP.js} +1 -1
- package/assets/{styles-9a916d00-7jELss6_.js → styles-9a916d00-BWvAJ5en.js} +1 -1
- package/assets/{styles-9a916d00-CZUDnhpb.js → styles-9a916d00-DfAvsjKD.js} +1 -1
- package/assets/{styles-c10674c1-DC9073pI.js → styles-c10674c1-CeFiajQK.js} +1 -1
- package/assets/{styles-c10674c1-DLuj745u.js → styles-c10674c1-DOM3WQ5r.js} +1 -1
- package/assets/{svgDrawCommon-08f97a94-CrWF0HaY.js → svgDrawCommon-08f97a94-BVgqbMeh.js} +1 -1
- package/assets/{svgDrawCommon-08f97a94-D2AO9i1k.js → svgDrawCommon-08f97a94-BlKKsIl4.js} +1 -1
- package/assets/{timeline-definition-85554ec2-leTEuD1Q.js → timeline-definition-85554ec2-9aW1_D2N.js} +1 -1
- package/assets/{timeline-definition-85554ec2-7KS0GPh6.js → timeline-definition-85554ec2-DzpdYs0t.js} +1 -1
- package/assets/ttd-dialog-DEnnfHyO.js +115 -0
- package/assets/{upload-CQNwOcX2.js → upload-DNNZ8L4F.js} +1 -1
- package/assets/{video-recovery-service-BQIopXWm.js → video-recovery-service-CbVWiAGn.js} +1 -1
- package/assets/{xychartDiagram-e933f94c-BCEY4mIx.js → xychartDiagram-e933f94c-DNl2ns7z.js} +1 -1
- package/assets/{xychartDiagram-e933f94c-B_6b1Ojq.js → xychartDiagram-e933f94c-d54TQLOU.js} +1 -1
- package/changelog.json +13 -0
- package/package.json +1 -1
- package/precache-manifest.json +277 -277
- package/sw.js +1 -1
- package/version.json +3 -7
- package/assets/channel-Ckduo0Rh.js +0 -1
- package/assets/channel-DXN87Isu.js +0 -1
- package/assets/clone-CuD87pDT.js +0 -1
- package/assets/clone-DOLqw3Mb.js +0 -1
- package/assets/flowDiagram-v2-96b9c2cf-BaJg3X7e.js +0 -1
- package/assets/flowDiagram-v2-96b9c2cf-bslUZjmZ.js +0 -1
- package/assets/ttd-dialog-DZzhIaYG.js +0 -115
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-
|
|
2
|
-
import{b6 as Vl,dE as ot,h0 as bt,h1 as Q,h2 as je,v as Nt,h3 as Sn,h4 as he,h5 as Dt,h6 as Qi,h7 as tr,h8 as er,h9 as Kl,ha as vn,hb as Tr,hc as Zl,hd as Jl,he as Ql,dF as tc,hf as ci,hg as wn,eZ as ec,bm as K}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-T9dstNa6.js","./index-D73zwRQ2.css","./c4Diagram-3d4e48cf-CZXHUfLE.js","./svgDrawCommon-08f97a94-BlKKsIl4.js","./isEmpty-DZgnI1Gi.js","./flowDiagram-66a62f08-Dbc4Nx93.js","./flowDb-956e92f1-FUMkFpNV.js","./graph-Cy6oe2k_.js","./has-CWNO02CD.js","./hasIn-Bs6kQ8q7.js","./layout-CB3iLEN-.js","./pick-BDzXufGU.js","./styles-c10674c1-DOM3WQ5r.js","./index-3862675e-BKpqGoRu.js","./clone-DTNvy75S.js","./edges-e0da2a9e-D5w5n92i.js","./createText-2e5e7dd3-CouAisK8.js","./index-sRNe5iWo.js","./line-DEMH00tR.js","./array-BKyUJesY.js","./path-CbwjOpE9.js","./channel-C0300EYS.js","./flowDiagram-v2-96b9c2cf-j5LlfdZR.js","./erDiagram-9861fffd-IyJNqdw_.js","./gitGraphDiagram-72cf32ee-Dd5nG_11.js","./ganttDiagram-c361ad54-CItnWrDi.js","./linear-CYligRij.js","./init-Gi6I4Gst.js","./infoDiagram-f8f76790-plyhvVln.js","./pieDiagram-8a3498a8-BOz79K-l.js","./arc-BwiBrwsC.js","./ordinal-Cboi1Yqb.js","./quadrantDiagram-120e2f19-BNSax4Yv.js","./xychartDiagram-e933f94c-d54TQLOU.js","./requirementDiagram-deff3bca-BdKQCBBh.js","./sequenceDiagram-704730f1-CPrfOGmY.js","./classDiagram-70f12bd4-CHHFCLtW.js","./styles-9a916d00-BWvAJ5en.js","./classDiagram-v2-f2320105-DhMOYQPM.js","./stateDiagram-587899a1-DHfaNuxL.js","./styles-6aaf32cf-BzV4m8wn.js","./stateDiagram-v2-d93cdb3a-BkSMcdnU.js","./journeyDiagram-49397b02-CJLyWjZc.js","./flowchart-elk-definition-4a651766-B6rzHwEw.js","./timeline-definition-85554ec2-9aW1_D2N.js","./mindmap-definition-fc14e90a-BE_BelNq.js","./sankeyDiagram-04a897e0-gzh6unx3.js","./Tableau10-B-NsZVaP.js","./blockDiagram-38ab4fdb-C-J430-U.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{b6 as Vl,dE as ot,h0 as bt,h1 as Q,h2 as je,v as Nt,h3 as Sn,h4 as he,h5 as Dt,h6 as Qi,h7 as tr,h8 as er,h9 as Kl,ha as vn,hb as Tr,hc as Zl,hd as Jl,he as Ql,dF as tc,hf as ci,hg as wn,eZ as ec,bm as K}from"./index-T9dstNa6.js";import{i as Ur}from"./isEmpty-DZgnI1Gi.js";var zi={exports:{}},ic=zi.exports,Ao;function rc(){return Ao||(Ao=1,(function(t,e){(function(i,r){t.exports=r()})(ic,(function(){var i=1e3,r=6e4,n=36e5,o="millisecond",s="second",a="minute",l="hour",c="day",u="week",d="month",h="quarter",f="year",m="date",_="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(R){var w=["th","st","nd","rd"],T=R%100;return"["+R+(w[(T-20)%10]||w[T]||w[0])+"]"}},N=function(R,w,T){var B=String(R);return!B||B.length>=w?R:""+Array(w+1-B.length).join(T)+R},x={s:N,z:function(R){var w=-R.utcOffset(),T=Math.abs(w),B=Math.floor(T/60),S=T%60;return(w<=0?"+":"-")+N(B,2,"0")+":"+N(S,2,"0")},m:function R(w,T){if(w.date()<T.date())return-R(T,w);var B=12*(T.year()-w.year())+(T.month()-w.month()),S=w.clone().add(B,d),M=T-S<0,z=w.clone().add(B+(M?-1:1),d);return+(-(B+(T-S)/(M?S-z:z-S))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return{M:d,y:f,w:u,d:c,D:m,h:l,m:a,s,ms:o,Q:h}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},W="en",j={};j[W]=y;var O="$isDayjsObject",Z=function(R){return R instanceof it||!(!R||!R[O])},J=function R(w,T,B){var S;if(!w)return W;if(typeof w=="string"){var M=w.toLowerCase();j[M]&&(S=M),T&&(j[M]=T,S=M);var z=w.split("-");if(!S&&z.length>1)return R(z[0])}else{var q=w.name;j[q]=w,S=q}return!B&&S&&(W=S),S||!B&&W},Y=function(R,w){if(Z(R))return R.clone();var T=typeof w=="object"?w:{};return T.date=R,T.args=arguments,new it(T)},A=x;A.l=J,A.i=Z,A.w=function(R,w){return Y(R,{locale:w.$L,utc:w.$u,x:w.$x,$offset:w.$offset})};var it=(function(){function R(T){this.$L=J(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[O]=!0}var w=R.prototype;return w.parse=function(T){this.$d=(function(B){var S=B.date,M=B.utc;if(S===null)return new Date(NaN);if(A.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var z=S.match(C);if(z){var q=z[2]-1||0,V=(z[7]||"0").substring(0,3);return M?new Date(Date.UTC(z[1],q,z[3]||1,z[4]||0,z[5]||0,z[6]||0,V)):new Date(z[1],q,z[3]||1,z[4]||0,z[5]||0,z[6]||0,V)}}return new Date(S)})(T),this.init()},w.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},w.$utils=function(){return A},w.isValid=function(){return this.$d.toString()!==_},w.isSame=function(T,B){var S=Y(T);return this.startOf(B)<=S&&S<=this.endOf(B)},w.isAfter=function(T,B){return Y(T)<this.startOf(B)},w.isBefore=function(T,B){return this.endOf(B)<Y(T)},w.$g=function(T,B,S){return A.u(T)?this[B]:this.set(S,T)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(T,B){var S=this,M=!!A.u(B)||B,z=A.p(T),q=function(It,st){var Ot=A.w(S.$u?Date.UTC(S.$y,st,It):new Date(S.$y,st,It),S);return M?Ot:Ot.endOf(c)},V=function(It,st){return A.w(S.toDate()[It].apply(S.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(st)),S)},H=this.$W,rt=this.$M,X=this.$D,vt="set"+(this.$u?"UTC":"");switch(z){case f:return M?q(1,0):q(31,11);case d:return M?q(1,rt):q(0,rt+1);case u:var Ft=this.$locale().weekStart||0,oe=(H<Ft?H+7:H)-Ft;return q(M?X-oe:X+(6-oe),rt);case c:case m:return V(vt+"Hours",0);case l:return V(vt+"Minutes",1);case a:return V(vt+"Seconds",2);case s:return V(vt+"Milliseconds",3);default:return this.clone()}},w.endOf=function(T){return this.startOf(T,!1)},w.$set=function(T,B){var S,M=A.p(T),z="set"+(this.$u?"UTC":""),q=(S={},S[c]=z+"Date",S[m]=z+"Date",S[d]=z+"Month",S[f]=z+"FullYear",S[l]=z+"Hours",S[a]=z+"Minutes",S[s]=z+"Seconds",S[o]=z+"Milliseconds",S)[M],V=M===c?this.$D+(B-this.$W):B;if(M===d||M===f){var H=this.clone().set(m,1);H.$d[q](V),H.init(),this.$d=H.set(m,Math.min(this.$D,H.daysInMonth())).$d}else q&&this.$d[q](V);return this.init(),this},w.set=function(T,B){return this.clone().$set(T,B)},w.get=function(T){return this[A.p(T)]()},w.add=function(T,B){var S,M=this;T=Number(T);var z=A.p(B),q=function(rt){var X=Y(M);return A.w(X.date(X.date()+Math.round(rt*T)),M)};if(z===d)return this.set(d,this.$M+T);if(z===f)return this.set(f,this.$y+T);if(z===c)return q(1);if(z===u)return q(7);var V=(S={},S[a]=r,S[l]=n,S[s]=i,S)[z]||1,H=this.$d.getTime()+T*V;return A.w(H,this)},w.subtract=function(T,B){return this.add(-1*T,B)},w.format=function(T){var B=this,S=this.$locale();if(!this.isValid())return S.invalidDate||_;var M=T||"YYYY-MM-DDTHH:mm:ssZ",z=A.z(this),q=this.$H,V=this.$m,H=this.$M,rt=S.weekdays,X=S.months,vt=S.meridiem,Ft=function(st,Ot,wt,se){return st&&(st[Ot]||st(B,M))||wt[Ot].slice(0,se)},oe=function(st){return A.s(q%12||12,st,"0")},It=vt||function(st,Ot,wt){var se=st<12?"AM":"PM";return wt?se.toLowerCase():se};return M.replace(v,(function(st,Ot){return Ot||(function(wt){switch(wt){case"YY":return String(B.$y).slice(-2);case"YYYY":return A.s(B.$y,4,"0");case"M":return H+1;case"MM":return A.s(H+1,2,"0");case"MMM":return Ft(S.monthsShort,H,X,3);case"MMMM":return Ft(X,H);case"D":return B.$D;case"DD":return A.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return Ft(S.weekdaysMin,B.$W,rt,2);case"ddd":return Ft(S.weekdaysShort,B.$W,rt,3);case"dddd":return rt[B.$W];case"H":return String(q);case"HH":return A.s(q,2,"0");case"h":return oe(1);case"hh":return oe(2);case"a":return It(q,V,!0);case"A":return It(q,V,!1);case"m":return String(V);case"mm":return A.s(V,2,"0");case"s":return String(B.$s);case"ss":return A.s(B.$s,2,"0");case"SSS":return A.s(B.$ms,3,"0");case"Z":return z}return null})(st)||z.replace(":","")}))},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(T,B,S){var M,z=this,q=A.p(B),V=Y(T),H=(V.utcOffset()-this.utcOffset())*r,rt=this-V,X=function(){return A.m(z,V)};switch(q){case f:M=X()/12;break;case d:M=X();break;case h:M=X()/3;break;case u:M=(rt-H)/6048e5;break;case c:M=(rt-H)/864e5;break;case l:M=rt/n;break;case a:M=rt/r;break;case s:M=rt/i;break;default:M=rt}return S?M:A.a(M)},w.daysInMonth=function(){return this.endOf(d).$D},w.$locale=function(){return j[this.$L]},w.locale=function(T,B){if(!T)return this.$L;var S=this.clone(),M=J(T,B,!0);return M&&(S.$L=M),S},w.clone=function(){return A.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},R})(),ne=it.prototype;return Y.prototype=ne,[["$ms",o],["$s",s],["$m",a],["$H",l],["$W",c],["$M",d],["$y",f],["$D",m]].forEach((function(R){ne[R[1]]=function(w){return this.$g(w,R[0],R[1])}})),Y.extend=function(R,w){return R.$i||(R(w,it,Y),R.$i=!0),Y},Y.locale=J,Y.isDayjs=Z,Y.unix=function(R){return Y(1e3*R)},Y.en=j[W],Y.Ls=j,Y.p={},Y}))})(zi)),zi.exports}var nc=rc();const oc=Vl(nc),kr=20,sc={rect:"rectangle",circle:"ellipse"},Eo={startOnLoad:!1,flowchart:{curve:"linear"},themeVariables:{fontSize:`${kr}px`},maxEdges:500,maxTextSize:5e4};class Sr{constructor({converter:e}){this.convert=(i,r)=>this.converter(i,{...r,fontSize:r.fontSize||kr}),this.converter=e}}var _e;(function(t){t.ROUND="round",t.STADIUM="stadium",t.DOUBLECIRCLE="doublecircle",t.CIRCLE="circle",t.DIAMOND="diamond"})(_e||(_e={}));var an;(function(t){t.COLOR="color"})(an||(an={}));var Fe;(function(t){t.FILL="fill",t.STROKE="stroke",t.STROKE_WIDTH="stroke-width",t.STROKE_DASHARRAY="stroke-dasharray"})(Fe||(Fe={}));const ac=(t,e={listUnicodeChar:""})=>{e=e||{},e.listUnicodeChar=e.hasOwnProperty("listUnicodeChar")?e.listUnicodeChar:!1,e.stripListLeaders=e.hasOwnProperty("stripListLeaders")?e.stripListLeaders:!0,e.gfm=e.hasOwnProperty("gfm")?e.gfm:!0,e.useImgAltText=e.hasOwnProperty("useImgAltText")?e.useImgAltText:!0,e.preserveLinks=e.hasOwnProperty("preserveLinks")?e.preserveLinks:!1;let i=t||"";i=i.replace(/^(-\s*?|\*\s*?|_\s*?){3,}\s*$/gm,"");try{e.stripListLeaders&&(e.listUnicodeChar?i=i.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,e.listUnicodeChar+" $1"):i=i.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,"$1")),e.gfm&&(i=i.replace(/\n={2,}/g,`
|
|
3
3
|
`).replace(/~{3}.*\n/g,"").replace(/~~/g,"").replace(/`{3}.*\n/g,"")),e.preserveLinks&&(i=i.replace(/\[(.*?)\][\[\(](.*?)[\]\)]/g,"$1 ($2)")),i=i.replace(/<[^>]*>/g,"").replace(/^[=\-]{2,}\s*$/g,"").replace(/\[\^.+?\](\: .*?$)?/g,"").replace(/\s{0,2}\[.*?\]: .*?$/g,"").replace(/\!\[(.*?)\][\[\(].*?[\]\)]/g,e.useImgAltText?"$1":"").replace(/\[(.*?)\][\[\(].*?[\]\)]/g,"$1").replace(/^\s{0,3}>\s?/g,"").replace(/(^|\n)\s{0,3}>\s?/g,`
|
|
4
4
|
|
|
5
5
|
`).replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/g,"").replace(/^(\n)?\s{0,}#{1,6}\s+| {0,}(\n)?\s{0,}#{0,} {0,}(\n)?\s{0,}$/gm,"$1$2$3").replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/(`{3,})(.*?)\1/gm,"$2").replace(/`(.+?)`/g,"$1").replace(/\n{2,}/g,`
|
|
@@ -13,13 +13,13 @@ import{b6 as Vl,dE as ot,h0 as bt,h1 as Q,h2 as je,v as Nt,h3 as Sn,h4 as he,h5
|
|
|
13
13
|
`)&&(d=String(a).split(`
|
|
14
14
|
`).map(function(h,f){return f===0?h:""+u+h}).join(`
|
|
15
15
|
`)),s+=d+r[l+1]}),s}var Xr={},Bo;function Tc(){return Bo||(Bo=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizeUrl=t.BLANK_URL=void 0;var e=/^([^\w]*)(javascript|data|vbscript)/im,i=/&#(\w+)(^\w|;)?/g,r=/&(newline|tab);/gi,n=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,o=/^.+(:|:)/gim,s=[".","/"];t.BLANK_URL="about:blank";function a(u){return s.indexOf(u[0])>-1}function l(u){var d=u.replace(n,"");return d.replace(i,function(h,f){return String.fromCharCode(f)})}function c(u){if(!u)return t.BLANK_URL;var d=l(u).replace(r,"").replace(n,"").trim();if(!d)return t.BLANK_URL;if(a(d))return d;var h=d.match(o);if(!h)return d;var f=h[0];return e.test(f)?t.BLANK_URL:d}t.sanitizeUrl=c})(Xr)),Xr}var kc=Tc(),Sc={value:()=>{}};function Os(){for(var t=0,e=arguments.length,i={},r;t<e;++t){if(!(r=arguments[t]+"")||r in i||/[\s.]/.test(r))throw new Error("illegal type: "+r);i[r]=[]}return new Hi(i)}function Hi(t){this._=t}function vc(t,e){return t.trim().split(/^|\s+/).map(function(i){var r="",n=i.indexOf(".");if(n>=0&&(r=i.slice(n+1),i=i.slice(0,n)),i&&!e.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:r}})}Hi.prototype=Os.prototype={constructor:Hi,on:function(t,e){var i=this._,r=vc(t+"",i),n,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((n=(t=r[o]).type)&&(n=wc(i[n],t.name)))return n;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(n=(t=r[o]).type)i[n]=Lo(i[n],t.name,e);else if(e==null)for(n in i)i[n]=Lo(i[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var i in e)t[i]=e[i].slice();return new Hi(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var i=new Array(n),r=0,n,o;r<n;++r)i[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,n=o.length;r<n;++r)o[r].value.apply(e,i)},apply:function(t,e,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],n=0,o=r.length;n<o;++n)r[n].value.apply(e,i)}};function wc(t,e){for(var i=0,r=t.length,n;i<r;++i)if((n=t[i]).name===e)return n.value}function Lo(t,e,i){for(var r=0,n=t.length;r<n;++r)if(t[r].name===e){t[r]=Sc,t=t.slice(0,r).concat(t.slice(r+1));break}return i!=null&&t.push({name:e,value:i}),t}var ln="http://www.w3.org/1999/xhtml";const Fo={svg:"http://www.w3.org/2000/svg",xhtml:ln,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function vr(t){var e=t+="",i=e.indexOf(":");return i>=0&&(e=t.slice(0,i))!=="xmlns"&&(t=t.slice(i+1)),Fo.hasOwnProperty(e)?{space:Fo[e],local:t}:t}function Ac(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===ln&&e.documentElement.namespaceURI===ln?e.createElement(t):e.createElementNS(i,t)}}function Ec(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ms(t){var e=vr(t);return(e.local?Ec:Ac)(e)}function Bc(){}function En(t){return t==null?Bc:function(){return this.querySelector(t)}}function Lc(t){typeof t!="function"&&(t=En(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var o=e[n],s=o.length,a=r[n]=new Array(s),l,c,u=0;u<s;++u)(l=o[u])&&(c=t.call(l,l.__data__,u,o))&&("__data__"in l&&(c.__data__=l.__data__),a[u]=c);return new kt(r,this._parents)}function Fc(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Ic(){return[]}function Ds(t){return t==null?Ic:function(){return this.querySelectorAll(t)}}function Oc(t){return function(){return Fc(t.apply(this,arguments))}}function Mc(t){typeof t=="function"?t=Oc(t):t=Ds(t);for(var e=this._groups,i=e.length,r=[],n=[],o=0;o<i;++o)for(var s=e[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&(r.push(t.call(l,l.__data__,c,s)),n.push(l));return new kt(r,n)}function Ns(t){return function(){return this.matches(t)}}function $s(t){return function(e){return e.matches(t)}}var Dc=Array.prototype.find;function Nc(t){return function(){return Dc.call(this.children,t)}}function $c(){return this.firstElementChild}function Rc(t){return this.select(t==null?$c:Nc(typeof t=="function"?t:$s(t)))}var Pc=Array.prototype.filter;function qc(){return Array.from(this.children)}function zc(t){return function(){return Pc.call(this.children,t)}}function Wc(t){return this.selectAll(t==null?qc:zc(typeof t=="function"?t:$s(t)))}function Yc(t){typeof t!="function"&&(t=Ns(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var o=e[n],s=o.length,a=r[n]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new kt(r,this._parents)}function Rs(t){return new Array(t.length)}function Hc(){return new kt(this._enter||this._groups.map(Rs),this._parents)}function nr(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}nr.prototype={constructor:nr,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Uc(t){return function(){return t}}function Xc(t,e,i,r,n,o){for(var s=0,a,l=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):i[s]=new nr(t,o[s]);for(;s<l;++s)(a=e[s])&&(n[s]=a)}function jc(t,e,i,r,n,o,s){var a,l,c=new Map,u=e.length,d=o.length,h=new Array(u),f;for(a=0;a<u;++a)(l=e[a])&&(h[a]=f=s.call(l,l.__data__,a,e)+"",c.has(f)?n[a]=l:c.set(f,l));for(a=0;a<d;++a)f=s.call(t,o[a],a,o)+"",(l=c.get(f))?(r[a]=l,l.__data__=o[a],c.delete(f)):i[a]=new nr(t,o[a]);for(a=0;a<u;++a)(l=e[a])&&c.get(h[a])===l&&(n[a]=l)}function Gc(t){return t.__data__}function Vc(t,e){if(!arguments.length)return Array.from(this,Gc);var i=e?jc:Xc,r=this._parents,n=this._groups;typeof t!="function"&&(t=Uc(t));for(var o=n.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var u=r[c],d=n[c],h=d.length,f=Kc(t.call(u,u&&u.__data__,c,r)),m=f.length,_=a[c]=new Array(m),C=s[c]=new Array(m),v=l[c]=new Array(h);i(u,d,_,C,v,f,e);for(var y=0,N=0,x,W;y<m;++y)if(x=_[y]){for(y>=N&&(N=y+1);!(W=C[N])&&++N<m;);x._next=W||null}}return s=new kt(s,r),s._enter=a,s._exit=l,s}function Kc(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Zc(){return new kt(this._exit||this._groups.map(Rs),this._parents)}function Jc(t,e,i){var r=this.enter(),n=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(n=e(n),n&&(n=n.selection())),i==null?o.remove():i(o),r&&n?r.merge(n).order():n}function Qc(t){for(var e=t.selection?t.selection():t,i=this._groups,r=e._groups,n=i.length,o=r.length,s=Math.min(n,o),a=new Array(n),l=0;l<s;++l)for(var c=i[l],u=r[l],d=c.length,h=a[l]=new Array(d),f,m=0;m<d;++m)(f=c[m]||u[m])&&(h[m]=f);for(;l<n;++l)a[l]=i[l];return new kt(a,this._parents)}function th(){for(var t=this._groups,e=-1,i=t.length;++e<i;)for(var r=t[e],n=r.length-1,o=r[n],s;--n>=0;)(s=r[n])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function eh(t){t||(t=ih);function e(d,h){return d&&h?t(d.__data__,h.__data__):!d-!h}for(var i=this._groups,r=i.length,n=new Array(r),o=0;o<r;++o){for(var s=i[o],a=s.length,l=n[o]=new Array(a),c,u=0;u<a;++u)(c=s[u])&&(l[u]=c);l.sort(e)}return new kt(n,this._parents).order()}function ih(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function rh(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function nh(){return Array.from(this)}function oh(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var r=t[e],n=0,o=r.length;n<o;++n){var s=r[n];if(s)return s}return null}function sh(){let t=0;for(const e of this)++t;return t}function ah(){return!this.node()}function lh(t){for(var e=this._groups,i=0,r=e.length;i<r;++i)for(var n=e[i],o=0,s=n.length,a;o<s;++o)(a=n[o])&&t.call(a,a.__data__,o,n);return this}function ch(t){return function(){this.removeAttribute(t)}}function hh(t){return function(){this.removeAttributeNS(t.space,t.local)}}function uh(t,e){return function(){this.setAttribute(t,e)}}function dh(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function fh(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttribute(t):this.setAttribute(t,i)}}function gh(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function ph(t,e){var i=vr(t);if(arguments.length<2){var r=this.node();return i.local?r.getAttributeNS(i.space,i.local):r.getAttribute(i)}return this.each((e==null?i.local?hh:ch:typeof e=="function"?i.local?gh:fh:i.local?dh:uh)(i,e))}function Ps(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function mh(t){return function(){this.style.removeProperty(t)}}function _h(t,e,i){return function(){this.style.setProperty(t,e,i)}}function yh(t,e,i){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,i)}}function Ch(t,e,i){return arguments.length>1?this.each((e==null?mh:typeof e=="function"?yh:_h)(t,e,i??"")):Re(this.node(),t)}function Re(t,e){return t.style.getPropertyValue(e)||Ps(t).getComputedStyle(t,null).getPropertyValue(e)}function xh(t){return function(){delete this[t]}}function bh(t,e){return function(){this[t]=e}}function Th(t,e){return function(){var i=e.apply(this,arguments);i==null?delete this[t]:this[t]=i}}function kh(t,e){return arguments.length>1?this.each((e==null?xh:typeof e=="function"?Th:bh)(t,e)):this.node()[t]}function qs(t){return t.trim().split(/^|\s+/)}function Bn(t){return t.classList||new zs(t)}function zs(t){this._node=t,this._names=qs(t.getAttribute("class")||"")}zs.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Ws(t,e){for(var i=Bn(t),r=-1,n=e.length;++r<n;)i.add(e[r])}function Ys(t,e){for(var i=Bn(t),r=-1,n=e.length;++r<n;)i.remove(e[r])}function Sh(t){return function(){Ws(this,t)}}function vh(t){return function(){Ys(this,t)}}function wh(t,e){return function(){(e.apply(this,arguments)?Ws:Ys)(this,t)}}function Ah(t,e){var i=qs(t+"");if(arguments.length<2){for(var r=Bn(this.node()),n=-1,o=i.length;++n<o;)if(!r.contains(i[n]))return!1;return!0}return this.each((typeof e=="function"?wh:e?Sh:vh)(i,e))}function Eh(){this.textContent=""}function Bh(t){return function(){this.textContent=t}}function Lh(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Fh(t){return arguments.length?this.each(t==null?Eh:(typeof t=="function"?Lh:Bh)(t)):this.node().textContent}function Ih(){this.innerHTML=""}function Oh(t){return function(){this.innerHTML=t}}function Mh(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Dh(t){return arguments.length?this.each(t==null?Ih:(typeof t=="function"?Mh:Oh)(t)):this.node().innerHTML}function Nh(){this.nextSibling&&this.parentNode.appendChild(this)}function $h(){return this.each(Nh)}function Rh(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ph(){return this.each(Rh)}function qh(t){var e=typeof t=="function"?t:Ms(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function zh(){return null}function Wh(t,e){var i=typeof t=="function"?t:Ms(t),r=e==null?zh:typeof e=="function"?e:En(e);return this.select(function(){return this.insertBefore(i.apply(this,arguments),r.apply(this,arguments)||null)})}function Yh(){var t=this.parentNode;t&&t.removeChild(this)}function Hh(){return this.each(Yh)}function Uh(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Xh(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function jh(t){return this.select(t?Xh:Uh)}function Gh(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Vh(t){return function(e){t.call(this,e,this.__data__)}}function Kh(t){return t.trim().split(/^|\s+/).map(function(e){var i="",r=e.indexOf(".");return r>=0&&(i=e.slice(r+1),e=e.slice(0,r)),{type:e,name:i}})}function Zh(t){return function(){var e=this.__on;if(e){for(var i=0,r=-1,n=e.length,o;i<n;++i)o=e[i],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function Jh(t,e,i){return function(){var r=this.__on,n,o=Vh(e);if(r){for(var s=0,a=r.length;s<a;++s)if((n=r[s]).type===t.type&&n.name===t.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=o,n.options=i),n.value=e;return}}this.addEventListener(t.type,o,i),n={type:t.type,name:t.name,value:e,listener:o,options:i},r?r.push(n):this.__on=[n]}}function Qh(t,e,i){var r=Kh(t+""),n,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,u;l<c;++l)for(n=0,u=a[l];n<o;++n)if((s=r[n]).type===u.type&&s.name===u.name)return u.value}return}for(a=e?Jh:Zh,n=0;n<o;++n)this.each(a(r[n],e,i));return this}function Hs(t,e,i){var r=Ps(t),n=r.CustomEvent;typeof n=="function"?n=new n(e,i):(n=r.document.createEvent("Event"),i?(n.initEvent(e,i.bubbles,i.cancelable),n.detail=i.detail):n.initEvent(e,!1,!1)),t.dispatchEvent(n)}function tu(t,e){return function(){return Hs(this,t,e)}}function eu(t,e){return function(){return Hs(this,t,e.apply(this,arguments))}}function iu(t,e){return this.each((typeof e=="function"?eu:tu)(t,e))}function*ru(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var r=t[e],n=0,o=r.length,s;n<o;++n)(s=r[n])&&(yield s)}var Us=[null];function kt(t,e){this._groups=t,this._parents=e}function Si(){return new kt([[document.documentElement]],Us)}function nu(){return this}kt.prototype=Si.prototype={constructor:kt,select:Lc,selectAll:Mc,selectChild:Rc,selectChildren:Wc,filter:Yc,data:Vc,enter:Hc,exit:Zc,join:Jc,merge:Qc,selection:nu,order:th,sort:eh,call:rh,nodes:nh,node:oh,size:sh,empty:ah,each:lh,attr:ph,style:Ch,property:kh,classed:Ah,text:Fh,html:Dh,raise:$h,lower:Ph,append:qh,insert:Wh,remove:Hh,clone:jh,datum:Gh,on:Qh,dispatch:iu,[Symbol.iterator]:ru};function Et(t){return typeof t=="string"?new kt([[document.querySelector(t)]],[document.documentElement]):new kt([[t]],Us)}function Ln(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function Xs(t,e){var i=Object.create(t.prototype);for(var r in e)i[r]=e[r];return i}function vi(){}var mi=.7,or=1/mi,Me="\\s*([+-]?\\d+)\\s*",_i="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ht="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ou=/^#([0-9a-f]{3,8})$/,su=new RegExp(`^rgb\\(${Me},${Me},${Me}\\)$`),au=new RegExp(`^rgb\\(${Ht},${Ht},${Ht}\\)$`),lu=new RegExp(`^rgba\\(${Me},${Me},${Me},${_i}\\)$`),cu=new RegExp(`^rgba\\(${Ht},${Ht},${Ht},${_i}\\)$`),hu=new RegExp(`^hsl\\(${_i},${Ht},${Ht}\\)$`),uu=new RegExp(`^hsla\\(${_i},${Ht},${Ht},${_i}\\)$`),Io={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Ln(vi,yi,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Oo,formatHex:Oo,formatHex8:du,formatHsl:fu,formatRgb:Mo,toString:Mo});function Oo(){return this.rgb().formatHex()}function du(){return this.rgb().formatHex8()}function fu(){return js(this).formatHsl()}function Mo(){return this.rgb().formatRgb()}function yi(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=ou.exec(t))?(i=e[1].length,e=parseInt(e[1],16),i===6?Do(e):i===3?new Ct(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):i===8?Oi(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):i===4?Oi(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=su.exec(t))?new Ct(e[1],e[2],e[3],1):(e=au.exec(t))?new Ct(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=lu.exec(t))?Oi(e[1],e[2],e[3],e[4]):(e=cu.exec(t))?Oi(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=hu.exec(t))?Ro(e[1],e[2]/100,e[3]/100,1):(e=uu.exec(t))?Ro(e[1],e[2]/100,e[3]/100,e[4]):Io.hasOwnProperty(t)?Do(Io[t]):t==="transparent"?new Ct(NaN,NaN,NaN,0):null}function Do(t){return new Ct(t>>16&255,t>>8&255,t&255,1)}function Oi(t,e,i,r){return r<=0&&(t=e=i=NaN),new Ct(t,e,i,r)}function gu(t){return t instanceof vi||(t=yi(t)),t?(t=t.rgb(),new Ct(t.r,t.g,t.b,t.opacity)):new Ct}function cn(t,e,i,r){return arguments.length===1?gu(t):new Ct(t,e,i,r??1)}function Ct(t,e,i,r){this.r=+t,this.g=+e,this.b=+i,this.opacity=+r}Ln(Ct,cn,Xs(vi,{brighter(t){return t=t==null?or:Math.pow(or,t),new Ct(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?mi:Math.pow(mi,t),new Ct(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Ct(xe(this.r),xe(this.g),xe(this.b),sr(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:No,formatHex:No,formatHex8:pu,formatRgb:$o,toString:$o}));function No(){return`#${ye(this.r)}${ye(this.g)}${ye(this.b)}`}function pu(){return`#${ye(this.r)}${ye(this.g)}${ye(this.b)}${ye((isNaN(this.opacity)?1:this.opacity)*255)}`}function $o(){const t=sr(this.opacity);return`${t===1?"rgb(":"rgba("}${xe(this.r)}, ${xe(this.g)}, ${xe(this.b)}${t===1?")":`, ${t})`}`}function sr(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function xe(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ye(t){return t=xe(t),(t<16?"0":"")+t.toString(16)}function Ro(t,e,i,r){return r<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new $t(t,e,i,r)}function js(t){if(t instanceof $t)return new $t(t.h,t.s,t.l,t.opacity);if(t instanceof vi||(t=yi(t)),!t)return new $t;if(t instanceof $t)return t;t=t.rgb();var e=t.r/255,i=t.g/255,r=t.b/255,n=Math.min(e,i,r),o=Math.max(e,i,r),s=NaN,a=o-n,l=(o+n)/2;return a?(e===o?s=(i-r)/a+(i<r)*6:i===o?s=(r-e)/a+2:s=(e-i)/a+4,a/=l<.5?o+n:2-o-n,s*=60):a=l>0&&l<1?0:s,new $t(s,a,l,t.opacity)}function mu(t,e,i,r){return arguments.length===1?js(t):new $t(t,e,i,r??1)}function $t(t,e,i,r){this.h=+t,this.s=+e,this.l=+i,this.opacity=+r}Ln($t,mu,Xs(vi,{brighter(t){return t=t==null?or:Math.pow(or,t),new $t(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?mi:Math.pow(mi,t),new $t(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,r=i+(i<.5?i:1-i)*e,n=2*i-r;return new Ct(jr(t>=240?t-240:t+120,n,r),jr(t,n,r),jr(t<120?t+240:t-120,n,r),this.opacity)},clamp(){return new $t(Po(this.h),Mi(this.s),Mi(this.l),sr(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=sr(this.opacity);return`${t===1?"hsl(":"hsla("}${Po(this.h)}, ${Mi(this.s)*100}%, ${Mi(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Po(t){return t=(t||0)%360,t<0?t+360:t}function Mi(t){return Math.max(0,Math.min(1,t||0))}function jr(t,e,i){return(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)*255}const Fn=t=>()=>t;function Gs(t,e){return function(i){return t+i*e}}function _u(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(r){return Math.pow(t+r*e,i)}}function sC(t,e){var i=e-t;return i?Gs(t,i>180||i<-180?i-360*Math.round(i/360):i):Fn(isNaN(t)?e:t)}function yu(t){return(t=+t)==1?Vs:function(e,i){return i-e?_u(e,i,t):Fn(isNaN(e)?i:e)}}function Vs(t,e){var i=e-t;return i?Gs(t,i):Fn(isNaN(t)?e:t)}const qo=(function t(e){var i=yu(e);function r(n,o){var s=i((n=cn(n)).r,(o=cn(o)).r),a=i(n.g,o.g),l=i(n.b,o.b),c=Vs(n.opacity,o.opacity);return function(u){return n.r=s(u),n.g=a(u),n.b=l(u),n.opacity=c(u),n+""}}return r.gamma=t,r})(1);function ce(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var hn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Gr=new RegExp(hn.source,"g");function Cu(t){return function(){return t}}function xu(t){return function(e){return t(e)+""}}function bu(t,e){var i=hn.lastIndex=Gr.lastIndex=0,r,n,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(r=hn.exec(t))&&(n=Gr.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(n=n[0])?a[s]?a[s]+=n:a[++s]=n:(a[++s]=null,l.push({i:s,x:ce(r,n)})),i=Gr.lastIndex;return i<e.length&&(o=e.slice(i),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?xu(l[0].x):Cu(e):(e=l.length,function(c){for(var u=0,d;u<e;++u)a[(d=l[u]).i]=d.x(c);return a.join("")})}var zo=180/Math.PI,un={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ks(t,e,i,r,n,o){var s,a,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*i+e*r)&&(i-=t*l,r-=e*l),(a=Math.sqrt(i*i+r*r))&&(i/=a,r/=a,l/=a),t*r<e*i&&(t=-t,e=-e,l=-l,s=-s),{translateX:n,translateY:o,rotate:Math.atan2(e,t)*zo,skewX:Math.atan(l)*zo,scaleX:s,scaleY:a}}var Di;function Tu(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?un:Ks(e.a,e.b,e.c,e.d,e.e,e.f)}function ku(t){return t==null||(Di||(Di=document.createElementNS("http://www.w3.org/2000/svg","g")),Di.setAttribute("transform",t),!(t=Di.transform.baseVal.consolidate()))?un:(t=t.matrix,Ks(t.a,t.b,t.c,t.d,t.e,t.f))}function Zs(t,e,i,r){function n(c){return c.length?c.pop()+" ":""}function o(c,u,d,h,f,m){if(c!==d||u!==h){var _=f.push("translate(",null,e,null,i);m.push({i:_-4,x:ce(c,d)},{i:_-2,x:ce(u,h)})}else(d||h)&&f.push("translate("+d+e+h+i)}function s(c,u,d,h){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),h.push({i:d.push(n(d)+"rotate(",null,r)-2,x:ce(c,u)})):u&&d.push(n(d)+"rotate("+u+r)}function a(c,u,d,h){c!==u?h.push({i:d.push(n(d)+"skewX(",null,r)-2,x:ce(c,u)}):u&&d.push(n(d)+"skewX("+u+r)}function l(c,u,d,h,f,m){if(c!==d||u!==h){var _=f.push(n(f)+"scale(",null,",",null,")");m.push({i:_-4,x:ce(c,d)},{i:_-2,x:ce(u,h)})}else(d!==1||h!==1)&&f.push(n(f)+"scale("+d+","+h+")")}return function(c,u){var d=[],h=[];return c=t(c),u=t(u),o(c.translateX,c.translateY,u.translateX,u.translateY,d,h),s(c.rotate,u.rotate,d,h),a(c.skewX,u.skewX,d,h),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,h),c=u=null,function(f){for(var m=-1,_=h.length,C;++m<_;)d[(C=h[m]).i]=C.x(f);return d.join("")}}}var Su=Zs(Tu,"px, ","px)","deg)"),vu=Zs(ku,", ",")",")"),Pe=0,oi=0,Qe=0,Js=1e3,ar,si,lr=0,Te=0,wr=0,Ci=typeof performance=="object"&&performance.now?performance:Date,Qs=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function In(){return Te||(Qs(wu),Te=Ci.now()+wr)}function wu(){Te=0}function cr(){this._call=this._time=this._next=null}cr.prototype=ta.prototype={constructor:cr,restart:function(t,e,i){if(typeof t!="function")throw new TypeError("callback is not a function");i=(i==null?In():+i)+(e==null?0:+e),!this._next&&si!==this&&(si?si._next=this:ar=this,si=this),this._call=t,this._time=i,dn()},stop:function(){this._call&&(this._call=null,this._time=1/0,dn())}};function ta(t,e,i){var r=new cr;return r.restart(t,e,i),r}function Au(){In(),++Pe;for(var t=ar,e;t;)(e=Te-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Pe}function Wo(){Te=(lr=Ci.now())+wr,Pe=oi=0;try{Au()}finally{Pe=0,Bu(),Te=0}}function Eu(){var t=Ci.now(),e=t-lr;e>Js&&(wr-=e,lr=t)}function Bu(){for(var t,e=ar,i,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(i=e._next,e._next=null,e=t?t._next=i:ar=i);si=t,dn(r)}function dn(t){if(!Pe){oi&&(oi=clearTimeout(oi));var e=t-Te;e>24?(t<1/0&&(oi=setTimeout(Wo,t-Ci.now()-wr)),Qe&&(Qe=clearInterval(Qe))):(Qe||(lr=Ci.now(),Qe=setInterval(Eu,Js)),Pe=1,Qs(Wo))}}function Yo(t,e,i){var r=new cr;return e=e==null?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,i),r}var Lu=Os("start","end","cancel","interrupt"),Fu=[],ea=0,Ho=1,fn=2,Ui=3,Uo=4,gn=5,Xi=6;function Ar(t,e,i,r,n,o){var s=t.__transition;if(!s)t.__transition={};else if(i in s)return;Iu(t,i,{name:e,index:r,group:n,on:Lu,tween:Fu,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:ea})}function On(t,e){var i=Pt(t,e);if(i.state>ea)throw new Error("too late; already scheduled");return i}function Vt(t,e){var i=Pt(t,e);if(i.state>Ui)throw new Error("too late; already running");return i}function Pt(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function Iu(t,e,i){var r=t.__transition,n;r[e]=i,i.timer=ta(o,0,i.time);function o(c){i.state=Ho,i.timer.restart(s,i.delay,i.time),i.delay<=c&&s(c-i.delay)}function s(c){var u,d,h,f;if(i.state!==Ho)return l();for(u in r)if(f=r[u],f.name===i.name){if(f.state===Ui)return Yo(s);f.state===Uo?(f.state=Xi,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete r[u]):+u<e&&(f.state=Xi,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete r[u])}if(Yo(function(){i.state===Ui&&(i.state=Uo,i.timer.restart(a,i.delay,i.time),a(c))}),i.state=fn,i.on.call("start",t,t.__data__,i.index,i.group),i.state===fn){for(i.state=Ui,n=new Array(h=i.tween.length),u=0,d=-1;u<h;++u)(f=i.tween[u].value.call(t,t.__data__,i.index,i.group))&&(n[++d]=f);n.length=d+1}}function a(c){for(var u=c<i.duration?i.ease.call(null,c/i.duration):(i.timer.restart(l),i.state=gn,1),d=-1,h=n.length;++d<h;)n[d].call(t,u);i.state===gn&&(i.on.call("end",t,t.__data__,i.index,i.group),l())}function l(){i.state=Xi,i.timer.stop(),delete r[e];for(var c in r)return;delete t.__transition}}function Ou(t,e){var i=t.__transition,r,n,o=!0,s;if(i){e=e==null?null:e+"";for(s in i){if((r=i[s]).name!==e){o=!1;continue}n=r.state>fn&&r.state<gn,r.state=Xi,r.timer.stop(),r.on.call(n?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete i[s]}o&&delete t.__transition}}function Mu(t){return this.each(function(){Ou(this,t)})}function Du(t,e){var i,r;return function(){var n=Vt(this,t),o=n.tween;if(o!==i){r=i=o;for(var s=0,a=r.length;s<a;++s)if(r[s].name===e){r=r.slice(),r.splice(s,1);break}}n.tween=r}}function Nu(t,e,i){var r,n;if(typeof i!="function")throw new Error;return function(){var o=Vt(this,t),s=o.tween;if(s!==r){n=(r=s).slice();for(var a={name:e,value:i},l=0,c=n.length;l<c;++l)if(n[l].name===e){n[l]=a;break}l===c&&n.push(a)}o.tween=n}}function $u(t,e){var i=this._id;if(t+="",arguments.length<2){for(var r=Pt(this.node(),i).tween,n=0,o=r.length,s;n<o;++n)if((s=r[n]).name===t)return s.value;return null}return this.each((e==null?Du:Nu)(i,t,e))}function Mn(t,e,i){var r=t._id;return t.each(function(){var n=Vt(this,r);(n.value||(n.value={}))[e]=i.apply(this,arguments)}),function(n){return Pt(n,r).value[e]}}function ia(t,e){var i;return(typeof e=="number"?ce:e instanceof yi?qo:(i=yi(e))?(e=i,qo):bu)(t,e)}function Ru(t){return function(){this.removeAttribute(t)}}function Pu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function qu(t,e,i){var r,n=i+"",o;return function(){var s=this.getAttribute(t);return s===n?null:s===r?o:o=e(r=s,i)}}function zu(t,e,i){var r,n=i+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===n?null:s===r?o:o=e(r=s,i)}}function Wu(t,e,i){var r,n,o;return function(){var s,a=i(this),l;return a==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=a+"",s===l?null:s===r&&l===n?o:(n=l,o=e(r=s,a)))}}function Yu(t,e,i){var r,n,o;return function(){var s,a=i(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=a+"",s===l?null:s===r&&l===n?o:(n=l,o=e(r=s,a)))}}function Hu(t,e){var i=vr(t),r=i==="transform"?vu:ia;return this.attrTween(t,typeof e=="function"?(i.local?Yu:Wu)(i,r,Mn(this,"attr."+t,e)):e==null?(i.local?Pu:Ru)(i):(i.local?zu:qu)(i,r,e))}function Uu(t,e){return function(i){this.setAttribute(t,e.call(this,i))}}function Xu(t,e){return function(i){this.setAttributeNS(t.space,t.local,e.call(this,i))}}function ju(t,e){var i,r;function n(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&Xu(t,o)),i}return n._value=e,n}function Gu(t,e){var i,r;function n(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&Uu(t,o)),i}return n._value=e,n}function Vu(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;var r=vr(t);return this.tween(i,(r.local?ju:Gu)(r,e))}function Ku(t,e){return function(){On(this,t).delay=+e.apply(this,arguments)}}function Zu(t,e){return e=+e,function(){On(this,t).delay=e}}function Ju(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Ku:Zu)(e,t)):Pt(this.node(),e).delay}function Qu(t,e){return function(){Vt(this,t).duration=+e.apply(this,arguments)}}function td(t,e){return e=+e,function(){Vt(this,t).duration=e}}function ed(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Qu:td)(e,t)):Pt(this.node(),e).duration}function id(t,e){if(typeof e!="function")throw new Error;return function(){Vt(this,t).ease=e}}function rd(t){var e=this._id;return arguments.length?this.each(id(e,t)):Pt(this.node(),e).ease}function nd(t,e){return function(){var i=e.apply(this,arguments);if(typeof i!="function")throw new Error;Vt(this,t).ease=i}}function od(t){if(typeof t!="function")throw new Error;return this.each(nd(this._id,t))}function sd(t){typeof t!="function"&&(t=Ns(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var o=e[n],s=o.length,a=r[n]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new re(r,this._parents,this._name,this._id)}function ad(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,i=t._groups,r=e.length,n=i.length,o=Math.min(r,n),s=new Array(r),a=0;a<o;++a)for(var l=e[a],c=i[a],u=l.length,d=s[a]=new Array(u),h,f=0;f<u;++f)(h=l[f]||c[f])&&(d[f]=h);for(;a<r;++a)s[a]=e[a];return new re(s,this._parents,this._name,this._id)}function ld(t){return(t+"").trim().split(/^|\s+/).every(function(e){var i=e.indexOf(".");return i>=0&&(e=e.slice(0,i)),!e||e==="start"})}function cd(t,e,i){var r,n,o=ld(e)?On:Vt;return function(){var s=o(this,t),a=s.on;a!==r&&(n=(r=a).copy()).on(e,i),s.on=n}}function hd(t,e){var i=this._id;return arguments.length<2?Pt(this.node(),i).on.on(t):this.each(cd(i,t,e))}function ud(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}function dd(){return this.on("end.remove",ud(this._id))}function fd(t){var e=this._name,i=this._id;typeof t!="function"&&(t=En(t));for(var r=this._groups,n=r.length,o=new Array(n),s=0;s<n;++s)for(var a=r[s],l=a.length,c=o[s]=new Array(l),u,d,h=0;h<l;++h)(u=a[h])&&(d=t.call(u,u.__data__,h,a))&&("__data__"in u&&(d.__data__=u.__data__),c[h]=d,Ar(c[h],e,i,h,c,Pt(u,i)));return new re(o,this._parents,e,i)}function gd(t){var e=this._name,i=this._id;typeof t!="function"&&(t=Ds(t));for(var r=this._groups,n=r.length,o=[],s=[],a=0;a<n;++a)for(var l=r[a],c=l.length,u,d=0;d<c;++d)if(u=l[d]){for(var h=t.call(u,u.__data__,d,l),f,m=Pt(u,i),_=0,C=h.length;_<C;++_)(f=h[_])&&Ar(f,e,i,_,h,m);o.push(h),s.push(u)}return new re(o,s,e,i)}var pd=Si.prototype.constructor;function md(){return new pd(this._groups,this._parents)}function _d(t,e){var i,r,n;return function(){var o=Re(this,t),s=(this.style.removeProperty(t),Re(this,t));return o===s?null:o===i&&s===r?n:n=e(i=o,r=s)}}function ra(t){return function(){this.style.removeProperty(t)}}function yd(t,e,i){var r,n=i+"",o;return function(){var s=Re(this,t);return s===n?null:s===r?o:o=e(r=s,i)}}function Cd(t,e,i){var r,n,o;return function(){var s=Re(this,t),a=i(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),Re(this,t))),s===l?null:s===r&&l===n?o:(n=l,o=e(r=s,a))}}function xd(t,e){var i,r,n,o="style."+e,s="end."+o,a;return function(){var l=Vt(this,t),c=l.on,u=l.value[o]==null?a||(a=ra(e)):void 0;(c!==i||n!==u)&&(r=(i=c).copy()).on(s,n=u),l.on=r}}function bd(t,e,i){var r=(t+="")=="transform"?Su:ia;return e==null?this.styleTween(t,_d(t,r)).on("end.style."+t,ra(t)):typeof e=="function"?this.styleTween(t,Cd(t,r,Mn(this,"style."+t,e))).each(xd(this._id,t)):this.styleTween(t,yd(t,r,e),i).on("end.style."+t,null)}function Td(t,e,i){return function(r){this.style.setProperty(t,e.call(this,r),i)}}function kd(t,e,i){var r,n;function o(){var s=e.apply(this,arguments);return s!==n&&(r=(n=s)&&Td(t,s,i)),r}return o._value=e,o}function Sd(t,e,i){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,kd(t,e,i??""))}function vd(t){return function(){this.textContent=t}}function wd(t){return function(){var e=t(this);this.textContent=e??""}}function Ad(t){return this.tween("text",typeof t=="function"?wd(Mn(this,"text",t)):vd(t==null?"":t+""))}function Ed(t){return function(e){this.textContent=t.call(this,e)}}function Bd(t){var e,i;function r(){var n=t.apply(this,arguments);return n!==i&&(e=(i=n)&&Ed(n)),e}return r._value=t,r}function Ld(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Bd(t))}function Fd(){for(var t=this._name,e=this._id,i=na(),r=this._groups,n=r.length,o=0;o<n;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)if(l=s[c]){var u=Pt(l,e);Ar(l,t,i,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new re(r,this._parents,t,i)}function Id(){var t,e,i=this,r=i._id,n=i.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--n===0&&o()}};i.each(function(){var c=Vt(this,r),u=c.on;u!==t&&(e=(t=u).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),n===0&&o()})}var Od=0;function re(t,e,i,r){this._groups=t,this._parents=e,this._name=i,this._id=r}function na(){return++Od}var Jt=Si.prototype;re.prototype={constructor:re,select:fd,selectAll:gd,selectChild:Jt.selectChild,selectChildren:Jt.selectChildren,filter:sd,merge:ad,selection:md,transition:Fd,call:Jt.call,nodes:Jt.nodes,node:Jt.node,size:Jt.size,empty:Jt.empty,each:Jt.each,on:hd,attr:Hu,attrTween:Vu,style:bd,styleTween:Sd,text:Ad,textTween:Ld,remove:dd,tween:$u,delay:Ju,duration:ed,ease:rd,easeVarying:od,end:Id,[Symbol.iterator]:Jt[Symbol.iterator]};function Md(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Dd={time:null,delay:0,duration:250,ease:Md};function Nd(t,e){for(var i;!(i=t.__transition)||!(i=i[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return i}function $d(t){var e,i;t instanceof re?(e=t._id,t=t._name):(e=na(),(i=Dd).time=In(),t=t==null?null:t+"");for(var r=this._groups,n=r.length,o=0;o<n;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&Ar(l,t,e,c,s,i||Nd(l,e));return new re(r,this._parents,t,e)}Si.prototype.interrupt=Mu;Si.prototype.transition=$d;const aC=Math.abs,lC=Math.atan2,cC=Math.cos,hC=Math.max,uC=Math.min,dC=Math.sin,fC=Math.sqrt,Xo=1e-12,Dn=Math.PI,jo=Dn/2,gC=2*Dn;function pC(t){return t>1?0:t<-1?Dn:Math.acos(t)}function mC(t){return t>=1?jo:t<=-1?-jo:Math.asin(t)}function oa(t){this._context=t}oa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function Rd(t){return new oa(t)}class sa{constructor(e,i){this._context=e,this._x=i}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,i){switch(e=+e,i=+i,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,i):this._context.moveTo(e,i);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,i,e,i):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+i)/2,e,this._y0,e,i);break}}this._x0=e,this._y0=i}}function Pd(t){return new sa(t,!0)}function qd(t){return new sa(t,!1)}function fe(){}function hr(t,e,i){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+i)/6)}function Er(t){this._context=t}Er.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:hr(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:hr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function zd(t){return new Er(t)}function aa(t){this._context=t}aa.prototype={areaStart:fe,areaEnd:fe,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:hr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Wd(t){return new aa(t)}function la(t){this._context=t}la.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,r):this._context.moveTo(i,r);break;case 3:this._point=4;default:hr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Yd(t){return new la(t)}function ca(t,e){this._basis=new Er(t),this._beta=e}ca.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,i=t.length-1;if(i>0)for(var r=t[0],n=e[0],o=t[i]-r,s=e[i]-n,a=-1,l;++a<=i;)l=a/i,this._basis.point(this._beta*t[a]+(1-this._beta)*(r+l*o),this._beta*e[a]+(1-this._beta)*(n+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const Hd=(function t(e){function i(r){return e===1?new Er(r):new ca(r,e)}return i.beta=function(r){return t(+r)},i})(.85);function ur(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function Nn(t,e){this._context=t,this._k=(1-e)/6}Nn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ur(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:ur(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ud=(function t(e){function i(r){return new Nn(r,e)}return i.tension=function(r){return t(+r)},i})(0);function $n(t,e){this._context=t,this._k=(1-e)/6}$n.prototype={areaStart:fe,areaEnd:fe,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ur(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Xd=(function t(e){function i(r){return new $n(r,e)}return i.tension=function(r){return t(+r)},i})(0);function Rn(t,e){this._context=t,this._k=(1-e)/6}Rn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ur(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const jd=(function t(e){function i(r){return new Rn(r,e)}return i.tension=function(r){return t(+r)},i})(0);function Pn(t,e,i){var r=t._x1,n=t._y1,o=t._x2,s=t._y2;if(t._l01_a>Xo){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,n=(n*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>Xo){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/u,s=(s*c+t._y1*t._l23_2a-i*t._l12_2a)/u}t._context.bezierCurveTo(r,n,o,s,t._x2,t._y2)}function ha(t,e){this._context=t,this._alpha=e}ha.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Pn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Gd=(function t(e){function i(r){return e?new ha(r,e):new Nn(r,0)}return i.alpha=function(r){return t(+r)},i})(.5);function ua(t,e){this._context=t,this._alpha=e}ua.prototype={areaStart:fe,areaEnd:fe,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Pn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Vd=(function t(e){function i(r){return e?new ua(r,e):new $n(r,0)}return i.alpha=function(r){return t(+r)},i})(.5);function da(t,e){this._context=t,this._alpha=e}da.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Pn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Kd=(function t(e){function i(r){return e?new da(r,e):new Rn(r,0)}return i.alpha=function(r){return t(+r)},i})(.5);function fa(t){this._context=t}fa.prototype={areaStart:fe,areaEnd:fe,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function Zd(t){return new fa(t)}function Go(t){return t<0?-1:1}function Vo(t,e,i){var r=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(r||n<0&&-0),s=(i-t._y1)/(n||r<0&&-0),a=(o*n+s*r)/(r+n);return(Go(o)+Go(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function Ko(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function Vr(t,e,i){var r=t._x0,n=t._y0,o=t._x1,s=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,n+a*e,o-a,s-a*i,o,s)}function dr(t){this._context=t}dr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Vr(this,this._t0,Ko(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var i=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Vr(this,Ko(this,i=Vo(this,t,e)),i);break;default:Vr(this,this._t0,i=Vo(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function ga(t){this._context=new pa(t)}(ga.prototype=Object.create(dr.prototype)).point=function(t,e){dr.prototype.point.call(this,e,t)};function pa(t){this._context=t}pa.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,i,r,n,o){this._context.bezierCurveTo(e,t,r,i,o,n)}};function Jd(t){return new dr(t)}function Qd(t){return new ga(t)}function ma(t){this._context=t}ma.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),i===2)this._context.lineTo(t[1],e[1]);else for(var r=Zo(t),n=Zo(e),o=0,s=1;s<i;++o,++s)this._context.bezierCurveTo(r[0][o],n[0][o],r[1][o],n[1][o],t[s],e[s]);(this._line||this._line!==0&&i===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function Zo(t){var e,i=t.length-1,r,n=new Array(i),o=new Array(i),s=new Array(i);for(n[0]=0,o[0]=2,s[0]=t[0]+2*t[1],e=1;e<i-1;++e)n[e]=1,o[e]=4,s[e]=4*t[e]+2*t[e+1];for(n[i-1]=2,o[i-1]=7,s[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)r=n[e]/o[e-1],o[e]-=r,s[e]-=r*s[e-1];for(n[i-1]=s[i-1]/o[i-1],e=i-2;e>=0;--e)n[e]=(s[e]-n[e+1])/o[e];for(o[i-1]=(t[i]+n[i-1])/2,e=0;e<i-1;++e)o[e]=2*t[e+1]-n[e+1];return[n,o]}function tf(t){return new ma(t)}function Br(t,e){this._context=t,this._t=e}Br.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}break}}this._x=t,this._y=e}};function ef(t){return new Br(t,.5)}function rf(t){return new Br(t,0)}function nf(t){return new Br(t,1)}function ai(t,e,i){this.k=t,this.x=e,this.y=i}ai.prototype={constructor:ai,scale:function(t){return t===1?this:new ai(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new ai(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};ai.prototype;/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:_a,setPrototypeOf:Jo,isFrozen:of,getPrototypeOf:sf,getOwnPropertyDescriptor:af}=Object;let{freeze:mt,seal:Bt,create:ya}=Object,{apply:pn,construct:mn}=typeof Reflect<"u"&&Reflect;mt||(mt=function(e){return e});Bt||(Bt=function(e){return e});pn||(pn=function(e,i,r){return e.apply(i,r)});mn||(mn=function(e,i){return new e(...i)});const Ni=St(Array.prototype.forEach),Qo=St(Array.prototype.pop),ti=St(Array.prototype.push),ji=St(String.prototype.toLowerCase),Kr=St(String.prototype.toString),ts=St(String.prototype.match),ei=St(String.prototype.replace),lf=St(String.prototype.indexOf),cf=St(String.prototype.trim),Mt=St(Object.prototype.hasOwnProperty),ft=St(RegExp.prototype.test),ii=hf(TypeError);function St(t){return function(e){for(var i=arguments.length,r=new Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return pn(t,e,r)}}function hf(t){return function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return mn(t,i)}}function U(t,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ji;Jo&&Jo(t,null);let r=e.length;for(;r--;){let n=e[r];if(typeof n=="string"){const o=i(n);o!==n&&(of(e)||(e[r]=o),n=o)}t[n]=!0}return t}function uf(t){for(let e=0;e<t.length;e++)Mt(t,e)||(t[e]=null);return t}function me(t){const e=ya(null);for(const[i,r]of _a(t))Mt(t,i)&&(Array.isArray(r)?e[i]=uf(r):r&&typeof r=="object"&&r.constructor===Object?e[i]=me(r):e[i]=r);return e}function ri(t,e){for(;t!==null;){const r=af(t,e);if(r){if(r.get)return St(r.get);if(typeof r.value=="function")return St(r.value)}t=sf(t)}function i(){return null}return i}const es=mt(["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","section","select","shadow","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"]),Zr=mt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Jr=mt(["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"]),df=mt(["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"]),Qr=mt(["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"]),ff=mt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),is=mt(["#text"]),rs=mt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),tn=mt(["accent-height","accumulate","additive","alignment-baseline","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","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","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","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","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","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"]),ns=mt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","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"]),$i=mt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),gf=Bt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),pf=Bt(/<%[\w\W]*|[\w\W]*%>/gm),mf=Bt(/\${[\w\W]*}/gm),_f=Bt(/^data-[\-\w.\u00B7-\uFFFF]/),yf=Bt(/^aria-[\-\w]+$/),Ca=Bt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Cf=Bt(/^(?:\w+script|data):/i),xf=Bt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),xa=Bt(/^html$/i),bf=Bt(/^[a-z][.\w]*(-[.\w]+)+$/i);var os=Object.freeze({__proto__:null,MUSTACHE_EXPR:gf,ERB_EXPR:pf,TMPLIT_EXPR:mf,DATA_ATTR:_f,ARIA_ATTR:yf,IS_ALLOWED_URI:Ca,IS_SCRIPT_OR_DATA:Cf,ATTR_WHITESPACE:xf,DOCTYPE_NAME:xa,CUSTOM_ELEMENT:bf});const ni={element:1,text:3,progressingInstruction:7,comment:8,document:9},Tf=function(){return typeof window>"u"?null:window},kf=function(e,i){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";i&&i.hasAttribute(n)&&(r=i.getAttribute(n));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function ba(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tf();const e=L=>ba(L);if(e.version="3.1.6",e.removed=[],!t||!t.document||t.document.nodeType!==ni.document)return e.isSupported=!1,e;let{document:i}=t;const r=i,n=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:c,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:h,trustedTypes:f}=t,m=l.prototype,_=ri(m,"cloneNode"),C=ri(m,"remove"),v=ri(m,"nextSibling"),y=ri(m,"childNodes"),N=ri(m,"parentNode");if(typeof s=="function"){const L=i.createElement("template");L.content&&L.content.ownerDocument&&(i=L.content.ownerDocument)}let x,W="";const{implementation:j,createNodeIterator:O,createDocumentFragment:Z,getElementsByTagName:J}=i,{importNode:Y}=r;let A={};e.isSupported=typeof _a=="function"&&typeof N=="function"&&j&&j.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:it,ERB_EXPR:ne,TMPLIT_EXPR:R,DATA_ATTR:w,ARIA_ATTR:T,IS_SCRIPT_OR_DATA:B,ATTR_WHITESPACE:S,CUSTOM_ELEMENT:M}=os;let{IS_ALLOWED_URI:z}=os,q=null;const V=U({},[...es,...Zr,...Jr,...Qr,...is]);let H=null;const rt=U({},[...rs,...tn,...ns,...$i]);let X=Object.seal(ya(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}})),vt=null,Ft=null,oe=!0,It=!0,st=!1,Ot=!0,wt=!1,se=!0,pe=!1,Rr=!1,Pr=!1,Se=!1,Ei=!1,Bi=!1,oo=!0,so=!1;const zl="user-content-";let qr=!0,Ke=!1,ve={},we=null;const ao=U({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let lo=null;const co=U({},["audio","video","img","source","image","track"]);let zr=null;const ho=U({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Li="http://www.w3.org/1998/Math/MathML",Fi="http://www.w3.org/2000/svg",Kt="http://www.w3.org/1999/xhtml";let Ae=Kt,Wr=!1,Yr=null;const Wl=U({},[Li,Fi,Kt],Kr);let Ze=null;const Yl=["application/xhtml+xml","text/html"],Hl="text/html";let nt=null,Ee=null;const Ul=i.createElement("form"),uo=function(g){return g instanceof RegExp||g instanceof Function},Hr=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ee&&Ee===g)){if((!g||typeof g!="object")&&(g={}),g=me(g),Ze=Yl.indexOf(g.PARSER_MEDIA_TYPE)===-1?Hl:g.PARSER_MEDIA_TYPE,nt=Ze==="application/xhtml+xml"?Kr:ji,q=Mt(g,"ALLOWED_TAGS")?U({},g.ALLOWED_TAGS,nt):V,H=Mt(g,"ALLOWED_ATTR")?U({},g.ALLOWED_ATTR,nt):rt,Yr=Mt(g,"ALLOWED_NAMESPACES")?U({},g.ALLOWED_NAMESPACES,Kr):Wl,zr=Mt(g,"ADD_URI_SAFE_ATTR")?U(me(ho),g.ADD_URI_SAFE_ATTR,nt):ho,lo=Mt(g,"ADD_DATA_URI_TAGS")?U(me(co),g.ADD_DATA_URI_TAGS,nt):co,we=Mt(g,"FORBID_CONTENTS")?U({},g.FORBID_CONTENTS,nt):ao,vt=Mt(g,"FORBID_TAGS")?U({},g.FORBID_TAGS,nt):{},Ft=Mt(g,"FORBID_ATTR")?U({},g.FORBID_ATTR,nt):{},ve=Mt(g,"USE_PROFILES")?g.USE_PROFILES:!1,oe=g.ALLOW_ARIA_ATTR!==!1,It=g.ALLOW_DATA_ATTR!==!1,st=g.ALLOW_UNKNOWN_PROTOCOLS||!1,Ot=g.ALLOW_SELF_CLOSE_IN_ATTR!==!1,wt=g.SAFE_FOR_TEMPLATES||!1,se=g.SAFE_FOR_XML!==!1,pe=g.WHOLE_DOCUMENT||!1,Se=g.RETURN_DOM||!1,Ei=g.RETURN_DOM_FRAGMENT||!1,Bi=g.RETURN_TRUSTED_TYPE||!1,Pr=g.FORCE_BODY||!1,oo=g.SANITIZE_DOM!==!1,so=g.SANITIZE_NAMED_PROPS||!1,qr=g.KEEP_CONTENT!==!1,Ke=g.IN_PLACE||!1,z=g.ALLOWED_URI_REGEXP||Ca,Ae=g.NAMESPACE||Kt,X=g.CUSTOM_ELEMENT_HANDLING||{},g.CUSTOM_ELEMENT_HANDLING&&uo(g.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(X.tagNameCheck=g.CUSTOM_ELEMENT_HANDLING.tagNameCheck),g.CUSTOM_ELEMENT_HANDLING&&uo(g.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(X.attributeNameCheck=g.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),g.CUSTOM_ELEMENT_HANDLING&&typeof g.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(X.allowCustomizedBuiltInElements=g.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),wt&&(It=!1),Ei&&(Se=!0),ve&&(q=U({},is),H=[],ve.html===!0&&(U(q,es),U(H,rs)),ve.svg===!0&&(U(q,Zr),U(H,tn),U(H,$i)),ve.svgFilters===!0&&(U(q,Jr),U(H,tn),U(H,$i)),ve.mathMl===!0&&(U(q,Qr),U(H,ns),U(H,$i))),g.ADD_TAGS&&(q===V&&(q=me(q)),U(q,g.ADD_TAGS,nt)),g.ADD_ATTR&&(H===rt&&(H=me(H)),U(H,g.ADD_ATTR,nt)),g.ADD_URI_SAFE_ATTR&&U(zr,g.ADD_URI_SAFE_ATTR,nt),g.FORBID_CONTENTS&&(we===ao&&(we=me(we)),U(we,g.FORBID_CONTENTS,nt)),qr&&(q["#text"]=!0),pe&&U(q,["html","head","body"]),q.table&&(U(q,["tbody"]),delete vt.tbody),g.TRUSTED_TYPES_POLICY){if(typeof g.TRUSTED_TYPES_POLICY.createHTML!="function")throw ii('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof g.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ii('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=g.TRUSTED_TYPES_POLICY,W=x.createHTML("")}else x===void 0&&(x=kf(f,n)),x!==null&&typeof W=="string"&&(W=x.createHTML(""));mt&&mt(g),Ee=g}},fo=U({},["mi","mo","mn","ms","mtext"]),go=U({},["foreignobject","annotation-xml"]),Xl=U({},["title","style","font","a","script"]),po=U({},[...Zr,...Jr,...df]),mo=U({},[...Qr,...ff]),jl=function(g){let b=N(g);(!b||!b.tagName)&&(b={namespaceURI:Ae,tagName:"template"});const E=ji(g.tagName),G=ji(b.tagName);return Yr[g.namespaceURI]?g.namespaceURI===Fi?b.namespaceURI===Kt?E==="svg":b.namespaceURI===Li?E==="svg"&&(G==="annotation-xml"||fo[G]):!!po[E]:g.namespaceURI===Li?b.namespaceURI===Kt?E==="math":b.namespaceURI===Fi?E==="math"&&go[G]:!!mo[E]:g.namespaceURI===Kt?b.namespaceURI===Fi&&!go[G]||b.namespaceURI===Li&&!fo[G]?!1:!mo[E]&&(Xl[E]||!po[E]):!!(Ze==="application/xhtml+xml"&&Yr[g.namespaceURI]):!1},qt=function(g){ti(e.removed,{element:g});try{N(g).removeChild(g)}catch{C(g)}},Ii=function(g,b){try{ti(e.removed,{attribute:b.getAttributeNode(g),from:b})}catch{ti(e.removed,{attribute:null,from:b})}if(b.removeAttribute(g),g==="is"&&!H[g])if(Se||Ei)try{qt(b)}catch{}else try{b.setAttribute(g,"")}catch{}},_o=function(g){let b=null,E=null;if(Pr)g="<remove></remove>"+g;else{const at=ts(g,/^[\r\n\t ]+/);E=at&&at[0]}Ze==="application/xhtml+xml"&&Ae===Kt&&(g='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+g+"</body></html>");const G=x?x.createHTML(g):g;if(Ae===Kt)try{b=new h().parseFromString(G,Ze)}catch{}if(!b||!b.documentElement){b=j.createDocument(Ae,"template",null);try{b.documentElement.innerHTML=Wr?W:G}catch{}}const lt=b.body||b.documentElement;return g&&E&<.insertBefore(i.createTextNode(E),lt.childNodes[0]||null),Ae===Kt?J.call(b,pe?"html":"body")[0]:pe?b.documentElement:lt},yo=function(g){return O.call(g.ownerDocument||g,g,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Co=function(g){return g instanceof d&&(typeof g.nodeName!="string"||typeof g.textContent!="string"||typeof g.removeChild!="function"||!(g.attributes instanceof u)||typeof g.removeAttribute!="function"||typeof g.setAttribute!="function"||typeof g.namespaceURI!="string"||typeof g.insertBefore!="function"||typeof g.hasChildNodes!="function")},xo=function(g){return typeof a=="function"&&g instanceof a},Zt=function(g,b,E){A[g]&&Ni(A[g],G=>{G.call(e,b,E,Ee)})},bo=function(g){let b=null;if(Zt("beforeSanitizeElements",g,null),Co(g))return qt(g),!0;const E=nt(g.nodeName);if(Zt("uponSanitizeElement",g,{tagName:E,allowedTags:q}),g.hasChildNodes()&&!xo(g.firstElementChild)&&ft(/<[/\w]/g,g.innerHTML)&&ft(/<[/\w]/g,g.textContent)||g.nodeType===ni.progressingInstruction||se&&g.nodeType===ni.comment&&ft(/<[/\w]/g,g.data))return qt(g),!0;if(!q[E]||vt[E]){if(!vt[E]&&ko(E)&&(X.tagNameCheck instanceof RegExp&&ft(X.tagNameCheck,E)||X.tagNameCheck instanceof Function&&X.tagNameCheck(E)))return!1;if(qr&&!we[E]){const G=N(g)||g.parentNode,lt=y(g)||g.childNodes;if(lt&&G){const at=lt.length;for(let _t=at-1;_t>=0;--_t){const zt=_(lt[_t],!0);zt.__removalCount=(g.__removalCount||0)+1,G.insertBefore(zt,v(g))}}}return qt(g),!0}return g instanceof l&&!jl(g)||(E==="noscript"||E==="noembed"||E==="noframes")&&ft(/<\/no(script|embed|frames)/i,g.innerHTML)?(qt(g),!0):(wt&&g.nodeType===ni.text&&(b=g.textContent,Ni([it,ne,R],G=>{b=ei(b,G," ")}),g.textContent!==b&&(ti(e.removed,{element:g.cloneNode()}),g.textContent=b)),Zt("afterSanitizeElements",g,null),!1)},To=function(g,b,E){if(oo&&(b==="id"||b==="name")&&(E in i||E in Ul))return!1;if(!(It&&!Ft[b]&&ft(w,b))){if(!(oe&&ft(T,b))){if(!H[b]||Ft[b]){if(!(ko(g)&&(X.tagNameCheck instanceof RegExp&&ft(X.tagNameCheck,g)||X.tagNameCheck instanceof Function&&X.tagNameCheck(g))&&(X.attributeNameCheck instanceof RegExp&&ft(X.attributeNameCheck,b)||X.attributeNameCheck instanceof Function&&X.attributeNameCheck(b))||b==="is"&&X.allowCustomizedBuiltInElements&&(X.tagNameCheck instanceof RegExp&&ft(X.tagNameCheck,E)||X.tagNameCheck instanceof Function&&X.tagNameCheck(E))))return!1}else if(!zr[b]){if(!ft(z,ei(E,S,""))){if(!((b==="src"||b==="xlink:href"||b==="href")&&g!=="script"&&lf(E,"data:")===0&&lo[g])){if(!(st&&!ft(B,ei(E,S,"")))){if(E)return!1}}}}}}return!0},ko=function(g){return g!=="annotation-xml"&&ts(g,M)},So=function(g){Zt("beforeSanitizeAttributes",g,null);const{attributes:b}=g;if(!b)return;const E={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:H};let G=b.length;for(;G--;){const lt=b[G],{name:at,namespaceURI:_t,value:zt}=lt,Je=nt(at);let dt=at==="value"?zt:cf(zt);if(E.attrName=Je,E.attrValue=dt,E.keepAttr=!0,E.forceKeepAttr=void 0,Zt("uponSanitizeAttribute",g,E),dt=E.attrValue,se&&ft(/((--!?|])>)|<\/(style|title)/i,dt)){Ii(at,g);continue}if(E.forceKeepAttr||(Ii(at,g),!E.keepAttr))continue;if(!Ot&&ft(/\/>/i,dt)){Ii(at,g);continue}wt&&Ni([it,ne,R],wo=>{dt=ei(dt,wo," ")});const vo=nt(g.nodeName);if(To(vo,Je,dt)){if(so&&(Je==="id"||Je==="name")&&(Ii(at,g),dt=zl+dt),x&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!_t)switch(f.getAttributeType(vo,Je)){case"TrustedHTML":{dt=x.createHTML(dt);break}case"TrustedScriptURL":{dt=x.createScriptURL(dt);break}}try{_t?g.setAttributeNS(_t,at,dt):g.setAttribute(at,dt),Co(g)?qt(g):Qo(e.removed)}catch{}}}Zt("afterSanitizeAttributes",g,null)},Gl=function L(g){let b=null;const E=yo(g);for(Zt("beforeSanitizeShadowDOM",g,null);b=E.nextNode();)Zt("uponSanitizeShadowNode",b,null),!bo(b)&&(b.content instanceof o&&L(b.content),So(b));Zt("afterSanitizeShadowDOM",g,null)};return e.sanitize=function(L){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=null,E=null,G=null,lt=null;if(Wr=!L,Wr&&(L="<!-->"),typeof L!="string"&&!xo(L))if(typeof L.toString=="function"){if(L=L.toString(),typeof L!="string")throw ii("dirty is not a string, aborting")}else throw ii("toString is not a function");if(!e.isSupported)return L;if(Rr||Hr(g),e.removed=[],typeof L=="string"&&(Ke=!1),Ke){if(L.nodeName){const zt=nt(L.nodeName);if(!q[zt]||vt[zt])throw ii("root node is forbidden and cannot be sanitized in-place")}}else if(L instanceof a)b=_o("<!---->"),E=b.ownerDocument.importNode(L,!0),E.nodeType===ni.element&&E.nodeName==="BODY"||E.nodeName==="HTML"?b=E:b.appendChild(E);else{if(!Se&&!wt&&!pe&&L.indexOf("<")===-1)return x&&Bi?x.createHTML(L):L;if(b=_o(L),!b)return Se?null:Bi?W:""}b&&Pr&&qt(b.firstChild);const at=yo(Ke?L:b);for(;G=at.nextNode();)bo(G)||(G.content instanceof o&&Gl(G.content),So(G));if(Ke)return L;if(Se){if(Ei)for(lt=Z.call(b.ownerDocument);b.firstChild;)lt.appendChild(b.firstChild);else lt=b;return(H.shadowroot||H.shadowrootmode)&&(lt=Y.call(r,lt,!0)),lt}let _t=pe?b.outerHTML:b.innerHTML;return pe&&q["!doctype"]&&b.ownerDocument&&b.ownerDocument.doctype&&b.ownerDocument.doctype.name&&ft(xa,b.ownerDocument.doctype.name)&&(_t="<!DOCTYPE "+b.ownerDocument.doctype.name+`>
|
|
16
|
-
`+_t),wt&&Ni([it,ne,R],zt=>{_t=ei(_t,zt," ")}),x&&Bi?x.createHTML(_t):_t},e.setConfig=function(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Hr(L),Rr=!0},e.clearConfig=function(){Ee=null,Rr=!1},e.isValidAttribute=function(L,g,b){Ee||Hr({});const E=nt(L),G=nt(g);return To(E,G,b)},e.addHook=function(L,g){typeof g=="function"&&(A[L]=A[L]||[],ti(A[L],g))},e.removeHook=function(L){if(A[L])return Qo(A[L])},e.removeHooks=function(L){A[L]&&(A[L]=[])},e.removeAllHooks=function(){A={}},e}var qe=ba();const Gi={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:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,i)=>(i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t),hsl2rgb:({h:t,s:e,l:i},r)=>{if(!e)return i*2.55;t/=360,e/=100,i/=100;const n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;switch(r){case"r":return Gi.hue2rgb(o,n,t+1/3)*255;case"g":return Gi.hue2rgb(o,n,t)*255;case"b":return Gi.hue2rgb(o,n,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:i},r)=>{t/=255,e/=255,i/=255;const n=Math.max(t,e,i),o=Math.min(t,e,i),s=(n+o)/2;if(r==="l")return s*100;if(n===o)return 0;const a=n-o,l=s>.5?a/(2-n-o):a/(n+o);if(r==="s")return l*100;switch(n){case t:return((e-i)/a+(e<i?6:0))*60;case e:return((i-t)/a+2)*60;case i:return((t-e)/a+4)*60;default:return-1}}},Sf={clamp:(t,e,i)=>e>i?Math.min(e,Math.max(i,t)):Math.min(i,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},vf={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},P={channel:Gi,lang:Sf,unit:vf},le={};for(let t=0;t<=255;t++)le[t]=P.unit.dec2hex(t);const ct={ALL:0,RGB:1,HSL:2};class wf{constructor(){this.type=ct.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=ct.ALL}is(e){return this.type===e}}class Af{constructor(e,i){this.color=i,this.changed=!1,this.data=e,this.type=new wf}set(e,i){return this.color=i,this.changed=!1,this.data=e,this.type.type=ct.ALL,this}_ensureHSL(){const e=this.data,{h:i,s:r,l:n}=e;i===void 0&&(e.h=P.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=P.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=P.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:i,g:r,b:n}=e;i===void 0&&(e.r=P.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=P.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=P.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,i=e.r;return!this.type.is(ct.HSL)&&i!==void 0?i:(this._ensureHSL(),P.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,i=e.g;return!this.type.is(ct.HSL)&&i!==void 0?i:(this._ensureHSL(),P.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,i=e.b;return!this.type.is(ct.HSL)&&i!==void 0?i:(this._ensureHSL(),P.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,i=e.h;return!this.type.is(ct.RGB)&&i!==void 0?i:(this._ensureRGB(),P.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,i=e.s;return!this.type.is(ct.RGB)&&i!==void 0?i:(this._ensureRGB(),P.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,i=e.l;return!this.type.is(ct.RGB)&&i!==void 0?i:(this._ensureRGB(),P.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(ct.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(ct.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(ct.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(ct.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(ct.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(ct.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const Lr=new Af({r:0,g:0,b:0,a:0},"transparent"),De={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(De.re);if(!e)return;const i=e[1],r=parseInt(i,16),n=i.length,o=n%4===0,s=n>4,a=s?1:17,l=s?8:4,c=o?0:-1,u=s?255:15;return Lr.set({r:(r>>l*(c+3)&u)*a,g:(r>>l*(c+2)&u)*a,b:(r>>l*(c+1)&u)*a,a:o?(r&u)*a/255:1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`#${le[Math.round(e)]}${le[Math.round(i)]}${le[Math.round(r)]}${le[Math.round(n*255)]}`:`#${le[Math.round(e)]}${le[Math.round(i)]}${le[Math.round(r)]}`}},Ce={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:t=>{const e=t.match(Ce.hueRe);if(e){const[,i,r]=e;switch(r){case"grad":return P.channel.clamp.h(parseFloat(i)*.9);case"rad":return P.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return P.channel.clamp.h(parseFloat(i)*360)}}return P.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const i=t.match(Ce.re);if(!i)return;const[,r,n,o,s,a]=i;return Lr.set({h:Ce._hue2deg(r),s:P.channel.clamp.s(parseFloat(n)),l:P.channel.clamp.l(parseFloat(o)),a:s?P.channel.clamp.a(a?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:i,l:r,a:n}=t;return n<1?`hsla(${P.lang.round(e)}, ${P.lang.round(i)}%, ${P.lang.round(r)}%, ${n})`:`hsl(${P.lang.round(e)}, ${P.lang.round(i)}%, ${P.lang.round(r)}%)`}},ui={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:t=>{t=t.toLowerCase();const e=ui.colors[t];if(e)return De.parse(e)},stringify:t=>{const e=De.stringify(t);for(const i in ui.colors)if(ui.colors[i]===e)return i}},li={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:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const i=t.match(li.re);if(!i)return;const[,r,n,o,s,a,l,c,u]=i;return Lr.set({r:P.channel.clamp.r(n?parseFloat(r)*2.55:parseFloat(r)),g:P.channel.clamp.g(s?parseFloat(o)*2.55:parseFloat(o)),b:P.channel.clamp.b(l?parseFloat(a)*2.55:parseFloat(a)),a:c?P.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`rgba(${P.lang.round(e)}, ${P.lang.round(i)}, ${P.lang.round(r)}, ${P.lang.round(n)})`:`rgb(${P.lang.round(e)}, ${P.lang.round(i)}, ${P.lang.round(r)})`}},Xt={format:{keyword:ui,hex:De,rgb:li,rgba:li,hsl:Ce,hsla:Ce},parse:t=>{if(typeof t!="string")return t;const e=De.parse(t)||li.parse(t)||Ce.parse(t)||ui.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(ct.HSL)||t.data.r===void 0?Ce.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?li.stringify(t):De.stringify(t)},Ta=(t,e)=>{const i=Xt.parse(t);for(const r in e)i[r]=P.channel.clamp[r](e[r]);return Xt.stringify(i)},di=(t,e,i=0,r=1)=>{if(typeof t!="number")return Ta(t,{a:e});const n=Lr.set({r:P.channel.clamp.r(t),g:P.channel.clamp.g(e),b:P.channel.clamp.b(i),a:P.channel.clamp.a(r)});return Xt.stringify(n)},Ef=t=>{const{r:e,g:i,b:r}=Xt.parse(t),n=.2126*P.channel.toLinear(e)+.7152*P.channel.toLinear(i)+.0722*P.channel.toLinear(r);return P.lang.round(n)},Bf=t=>Ef(t)>=.5,wi=t=>!Bf(t),ka=(t,e,i)=>{const r=Xt.parse(t),n=r[e],o=P.channel.clamp[e](n+i);return n!==o&&(r[e]=o),Xt.stringify(r)},F=(t,e)=>ka(t,"l",e),$=(t,e)=>ka(t,"l",-e),p=(t,e)=>{const i=Xt.parse(t),r={};for(const n in e)e[n]&&(r[n]=i[n]+e[n]);return Ta(t,r)},Lf=(t,e,i=50)=>{const{r,g:n,b:o,a:s}=Xt.parse(t),{r:a,g:l,b:c,a:u}=Xt.parse(e),d=i/100,h=d*2-1,f=s-u,_=((h*f===-1?h:(h+f)/(1+h*f))+1)/2,C=1-_,v=r*_+a*C,y=n*_+l*C,N=o*_+c*C,x=s*d+u*(1-d);return di(v,y,N,x)},k=(t,e=100)=>{const i=Xt.parse(t);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,Lf(i,t,e)};var Sa="comm",va="rule",wa="decl",Ff="@import",If="@namespace",Of="@keyframes",Mf="@layer",Aa=Math.abs,qn=String.fromCharCode;function Ea(t){return t.trim()}function Vi(t,e,i){return t.replace(e,i)}function Df(t,e,i){return t.indexOf(e,i)}function Ne(t,e){return t.charCodeAt(e)|0}function ze(t,e,i){return t.slice(e,i)}function Yt(t){return t.length}function Nf(t){return t.length}function Ri(t,e){return e.push(t),t}var Fr=1,We=1,Ba=0,Lt=0,tt=0,Ge="";function zn(t,e,i,r,n,o,s,a){return{value:t,root:e,parent:i,type:r,props:n,children:o,line:Fr,column:We,length:s,return:"",siblings:a}}function $f(){return tt}function Rf(){return tt=Lt>0?Ne(Ge,--Lt):0,We--,tt===10&&(We=1,Fr--),tt}function Rt(){return tt=Lt<Ba?Ne(Ge,Lt++):0,We++,tt===10&&(We=1,Fr++),tt}function ue(){return Ne(Ge,Lt)}function Ki(){return Lt}function Ir(t,e){return ze(Ge,t,e)}function xi(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Pf(t){return Fr=We=1,Ba=Yt(Ge=t),Lt=0,[]}function qf(t){return Ge="",t}function en(t){return Ea(Ir(Lt-1,_n(t===91?t+2:t===40?t+1:t)))}function zf(t){for(;(tt=ue())&&tt<33;)Rt();return xi(t)>2||xi(tt)>3?"":" "}function Wf(t,e){for(;--e&&Rt()&&!(tt<48||tt>102||tt>57&&tt<65||tt>70&&tt<97););return Ir(t,Ki()+(e<6&&ue()==32&&Rt()==32))}function _n(t){for(;Rt();)switch(tt){case t:return Lt;case 34:case 39:t!==34&&t!==39&&_n(tt);break;case 40:t===41&&_n(t);break;case 92:Rt();break}return Lt}function Yf(t,e){for(;Rt()&&t+tt!==57;)if(t+tt===84&&ue()===47)break;return"/*"+Ir(e,Lt-1)+"*"+qn(t===47?t:Rt())}function Hf(t){for(;!xi(ue());)Rt();return Ir(t,Lt)}function Uf(t){return qf(Zi("",null,null,null,[""],t=Pf(t),0,[0],t))}function Zi(t,e,i,r,n,o,s,a,l){for(var c=0,u=0,d=s,h=0,f=0,m=0,_=1,C=1,v=1,y=0,N="",x=n,W=o,j=r,O=N;C;)switch(m=y,y=Rt()){case 40:if(m!=108&&Ne(O,d-1)==58){Df(O+=Vi(en(y),"&","&\f"),"&\f",Aa(c?a[c-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:O+=en(y);break;case 9:case 10:case 13:case 32:O+=zf(m);break;case 92:O+=Wf(Ki()-1,7);continue;case 47:switch(ue()){case 42:case 47:Ri(Xf(Yf(Rt(),Ki()),e,i,l),l),(xi(m||1)==5||xi(ue()||1)==5)&&Yt(O)&&ze(O,-1,void 0)!==" "&&(O+=" ");break;default:O+="/"}break;case 123*_:a[c++]=Yt(O)*v;case 125*_:case 59:case 0:switch(y){case 0:case 125:C=0;case 59+u:v==-1&&(O=Vi(O,/\f/g,"")),f>0&&(Yt(O)-d||_===0&&m===47)&&Ri(f>32?as(O+";",r,i,d-1,l):as(Vi(O," ","")+";",r,i,d-2,l),l);break;case 59:O+=";";default:if(Ri(j=ss(O,e,i,c,u,n,a,N,x=[],W=[],d,o),o),y===123)if(u===0)Zi(O,e,j,j,x,o,d,a,W);else{switch(h){case 99:if(Ne(O,3)===110)break;case 108:if(Ne(O,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Zi(t,j,j,r&&Ri(ss(t,j,j,0,0,n,a,N,n,x=[],d,W),W),n,W,d,a,r?x:W):Zi(O,j,j,j,[""],W,0,a,W)}}c=u=f=0,_=v=1,N=O="",d=s;break;case 58:d=1+Yt(O),f=m;default:if(_<1){if(y==123)--_;else if(y==125&&_++==0&&Rf()==125)continue}switch(O+=qn(y),y*_){case 38:v=u>0?1:(O+="\f",-1);break;case 44:a[c++]=(Yt(O)-1)*v,v=1;break;case 64:ue()===45&&(O+=en(Rt())),h=ue(),u=d=Yt(N=O+=Hf(Ki())),y++;break;case 45:m===45&&Yt(O)==2&&(_=0)}}return o}function ss(t,e,i,r,n,o,s,a,l,c,u,d){for(var h=n-1,f=n===0?o:[""],m=Nf(f),_=0,C=0,v=0;_<r;++_)for(var y=0,N=ze(t,h+1,h=Aa(C=s[_])),x=t;y<m;++y)(x=Ea(C>0?f[y]+" "+N:Vi(N,/&\f/g,f[y])))&&(l[v++]=x);return zn(t,e,i,n===0?va:a,l,c,u,d)}function Xf(t,e,i,r){return zn(t,e,i,Sa,qn($f()),ze(t,2,-2),0,r)}function as(t,e,i,r,n){return zn(t,e,i,wa,ze(t,0,r),ze(t,r+1,-1),r,n)}function yn(t,e){for(var i="",r=0;r<t.length;r++)i+=e(t[r],r,t,e)||"";return i}function jf(t,e,i,r){switch(t.type){case Mf:if(t.children.length)break;case Ff:case If:case wa:return t.return=t.return||t.value;case Sa:return"";case Of:return t.return=t.value+"{"+yn(t.children,r)+"}";case va:if(!Yt(t.value=t.props.join(",")))return""}return Yt(i=yn(t.children,r))?t.return=t.value+"{"+i+"}":""}const Qt={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},D={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},Wn=function(t="fatal"){let e=Qt.fatal;typeof t=="string"?(t=t.toLowerCase(),t in Qt&&(e=Qt[t])):typeof t=="number"&&(e=t),D.trace=()=>{},D.debug=()=>{},D.info=()=>{},D.warn=()=>{},D.error=()=>{},D.fatal=()=>{},e<=Qt.fatal&&(D.fatal=console.error?console.error.bind(console,At("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",At("FATAL"))),e<=Qt.error&&(D.error=console.error?console.error.bind(console,At("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",At("ERROR"))),e<=Qt.warn&&(D.warn=console.warn?console.warn.bind(console,At("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",At("WARN"))),e<=Qt.info&&(D.info=console.info?console.info.bind(console,At("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",At("INFO"))),e<=Qt.debug&&(D.debug=console.debug?console.debug.bind(console,At("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",At("DEBUG"))),e<=Qt.trace&&(D.trace=console.debug?console.debug.bind(console,At("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",At("TRACE")))},At=t=>`%c${oc().format("ss.SSS")} : ${t} : `,Ai=/<br\s*\/?>/gi,Gf=t=>t?Fa(t).replace(/\\n/g,"#br#").split("#br#"):[""],Vf=(()=>{let t=!1;return()=>{t||(Kf(),t=!0)}})();function Kf(){const t="data-temp-href-target";qe.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")||"")}),qe.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)||""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}const La=t=>(Vf(),qe.sanitize(t)),ls=(t,e)=>{var i;if(((i=e.flowchart)==null?void 0:i.htmlLabels)!==!1){const r=e.securityLevel;r==="antiscript"||r==="strict"?t=La(t):r!=="loose"&&(t=Fa(t),t=t.replace(/</g,"<").replace(/>/g,">"),t=t.replace(/=/g,"="),t=tg(t))}return t},bi=(t,e)=>t&&(e.dompurifyConfig?t=qe.sanitize(ls(t,e),e.dompurifyConfig).toString():t=qe.sanitize(ls(t,e),{FORBID_TAGS:["style"]}).toString(),t),Zf=(t,e)=>typeof t=="string"?bi(t,e):t.flat().map(i=>bi(i,e)),Jf=t=>Ai.test(t),Qf=t=>t.split(Ai),tg=t=>t.replace(/#br#/g,"<br/>"),Fa=t=>t.replace(Ai,"#br#"),eg=t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},Ia=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),ig=function(...t){const e=t.filter(i=>!isNaN(i));return Math.max(...e)},rg=function(...t){const e=t.filter(i=>!isNaN(i));return Math.min(...e)},_C=function(t){const e=t.split(/(,)/),i=[];for(let r=0;r<e.length;r++){let n=e[r];if(n===","&&r>0&&r+1<e.length){const o=e[r-1],s=e[r+1];ng(o,s)&&(n=o+","+s,r++,i.pop())}i.push(og(n))}return i.join("")},Cn=(t,e)=>Math.max(0,t.split(e).length-1),ng=(t,e)=>{const i=Cn(t,"~"),r=Cn(e,"~");return i===1&&r===1},og=t=>{const e=Cn(t,"~");let i=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),i=!0);const r=[...t];let n=r.indexOf("~"),o=r.lastIndexOf("~");for(;n!==-1&&o!==-1&&n!==o;)r[n]="<",r[o]=">",n=r.indexOf("~"),o=r.lastIndexOf("~");return i&&r.unshift("~"),r.join("")},cs=()=>window.MathMLElement!==void 0,xn=/\$\$(.*)\$\$/g,hs=t=>{var e;return(((e=t.match(xn))==null?void 0:e.length)??0)>0},yC=async(t,e)=>{t=await sg(t,e);const i=document.createElement("div");i.innerHTML=t,i.id="katex-temp",i.style.visibility="hidden",i.style.position="absolute",i.style.top="0";const r=document.querySelector("body");r==null||r.insertAdjacentElement("beforeend",i);const n={width:i.clientWidth,height:i.clientHeight};return i.remove(),n},sg=async(t,e)=>{if(!hs(t))return t;if(!cs()&&!e.legacyMathML)return t.replace(xn,"MathML is unsupported in this environment.");const{default:i}=await K(async()=>{const{default:r}=await import("./index-BIv91qW9.js").then(n=>n.iI);return{default:r}},__vite__mapDeps([0,1]),import.meta.url);return t.split(Ai).map(r=>hs(r)?`
|
|
16
|
+
`+_t),wt&&Ni([it,ne,R],zt=>{_t=ei(_t,zt," ")}),x&&Bi?x.createHTML(_t):_t},e.setConfig=function(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Hr(L),Rr=!0},e.clearConfig=function(){Ee=null,Rr=!1},e.isValidAttribute=function(L,g,b){Ee||Hr({});const E=nt(L),G=nt(g);return To(E,G,b)},e.addHook=function(L,g){typeof g=="function"&&(A[L]=A[L]||[],ti(A[L],g))},e.removeHook=function(L){if(A[L])return Qo(A[L])},e.removeHooks=function(L){A[L]&&(A[L]=[])},e.removeAllHooks=function(){A={}},e}var qe=ba();const Gi={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:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,i)=>(i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t),hsl2rgb:({h:t,s:e,l:i},r)=>{if(!e)return i*2.55;t/=360,e/=100,i/=100;const n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;switch(r){case"r":return Gi.hue2rgb(o,n,t+1/3)*255;case"g":return Gi.hue2rgb(o,n,t)*255;case"b":return Gi.hue2rgb(o,n,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:i},r)=>{t/=255,e/=255,i/=255;const n=Math.max(t,e,i),o=Math.min(t,e,i),s=(n+o)/2;if(r==="l")return s*100;if(n===o)return 0;const a=n-o,l=s>.5?a/(2-n-o):a/(n+o);if(r==="s")return l*100;switch(n){case t:return((e-i)/a+(e<i?6:0))*60;case e:return((i-t)/a+2)*60;case i:return((t-e)/a+4)*60;default:return-1}}},Sf={clamp:(t,e,i)=>e>i?Math.min(e,Math.max(i,t)):Math.min(i,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},vf={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},P={channel:Gi,lang:Sf,unit:vf},le={};for(let t=0;t<=255;t++)le[t]=P.unit.dec2hex(t);const ct={ALL:0,RGB:1,HSL:2};class wf{constructor(){this.type=ct.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=ct.ALL}is(e){return this.type===e}}class Af{constructor(e,i){this.color=i,this.changed=!1,this.data=e,this.type=new wf}set(e,i){return this.color=i,this.changed=!1,this.data=e,this.type.type=ct.ALL,this}_ensureHSL(){const e=this.data,{h:i,s:r,l:n}=e;i===void 0&&(e.h=P.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=P.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=P.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:i,g:r,b:n}=e;i===void 0&&(e.r=P.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=P.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=P.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,i=e.r;return!this.type.is(ct.HSL)&&i!==void 0?i:(this._ensureHSL(),P.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,i=e.g;return!this.type.is(ct.HSL)&&i!==void 0?i:(this._ensureHSL(),P.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,i=e.b;return!this.type.is(ct.HSL)&&i!==void 0?i:(this._ensureHSL(),P.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,i=e.h;return!this.type.is(ct.RGB)&&i!==void 0?i:(this._ensureRGB(),P.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,i=e.s;return!this.type.is(ct.RGB)&&i!==void 0?i:(this._ensureRGB(),P.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,i=e.l;return!this.type.is(ct.RGB)&&i!==void 0?i:(this._ensureRGB(),P.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(ct.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(ct.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(ct.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(ct.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(ct.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(ct.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const Lr=new Af({r:0,g:0,b:0,a:0},"transparent"),De={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(De.re);if(!e)return;const i=e[1],r=parseInt(i,16),n=i.length,o=n%4===0,s=n>4,a=s?1:17,l=s?8:4,c=o?0:-1,u=s?255:15;return Lr.set({r:(r>>l*(c+3)&u)*a,g:(r>>l*(c+2)&u)*a,b:(r>>l*(c+1)&u)*a,a:o?(r&u)*a/255:1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`#${le[Math.round(e)]}${le[Math.round(i)]}${le[Math.round(r)]}${le[Math.round(n*255)]}`:`#${le[Math.round(e)]}${le[Math.round(i)]}${le[Math.round(r)]}`}},Ce={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:t=>{const e=t.match(Ce.hueRe);if(e){const[,i,r]=e;switch(r){case"grad":return P.channel.clamp.h(parseFloat(i)*.9);case"rad":return P.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return P.channel.clamp.h(parseFloat(i)*360)}}return P.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const i=t.match(Ce.re);if(!i)return;const[,r,n,o,s,a]=i;return Lr.set({h:Ce._hue2deg(r),s:P.channel.clamp.s(parseFloat(n)),l:P.channel.clamp.l(parseFloat(o)),a:s?P.channel.clamp.a(a?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:i,l:r,a:n}=t;return n<1?`hsla(${P.lang.round(e)}, ${P.lang.round(i)}%, ${P.lang.round(r)}%, ${n})`:`hsl(${P.lang.round(e)}, ${P.lang.round(i)}%, ${P.lang.round(r)}%)`}},ui={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:t=>{t=t.toLowerCase();const e=ui.colors[t];if(e)return De.parse(e)},stringify:t=>{const e=De.stringify(t);for(const i in ui.colors)if(ui.colors[i]===e)return i}},li={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:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const i=t.match(li.re);if(!i)return;const[,r,n,o,s,a,l,c,u]=i;return Lr.set({r:P.channel.clamp.r(n?parseFloat(r)*2.55:parseFloat(r)),g:P.channel.clamp.g(s?parseFloat(o)*2.55:parseFloat(o)),b:P.channel.clamp.b(l?parseFloat(a)*2.55:parseFloat(a)),a:c?P.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`rgba(${P.lang.round(e)}, ${P.lang.round(i)}, ${P.lang.round(r)}, ${P.lang.round(n)})`:`rgb(${P.lang.round(e)}, ${P.lang.round(i)}, ${P.lang.round(r)})`}},Xt={format:{keyword:ui,hex:De,rgb:li,rgba:li,hsl:Ce,hsla:Ce},parse:t=>{if(typeof t!="string")return t;const e=De.parse(t)||li.parse(t)||Ce.parse(t)||ui.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(ct.HSL)||t.data.r===void 0?Ce.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?li.stringify(t):De.stringify(t)},Ta=(t,e)=>{const i=Xt.parse(t);for(const r in e)i[r]=P.channel.clamp[r](e[r]);return Xt.stringify(i)},di=(t,e,i=0,r=1)=>{if(typeof t!="number")return Ta(t,{a:e});const n=Lr.set({r:P.channel.clamp.r(t),g:P.channel.clamp.g(e),b:P.channel.clamp.b(i),a:P.channel.clamp.a(r)});return Xt.stringify(n)},Ef=t=>{const{r:e,g:i,b:r}=Xt.parse(t),n=.2126*P.channel.toLinear(e)+.7152*P.channel.toLinear(i)+.0722*P.channel.toLinear(r);return P.lang.round(n)},Bf=t=>Ef(t)>=.5,wi=t=>!Bf(t),ka=(t,e,i)=>{const r=Xt.parse(t),n=r[e],o=P.channel.clamp[e](n+i);return n!==o&&(r[e]=o),Xt.stringify(r)},F=(t,e)=>ka(t,"l",e),$=(t,e)=>ka(t,"l",-e),p=(t,e)=>{const i=Xt.parse(t),r={};for(const n in e)e[n]&&(r[n]=i[n]+e[n]);return Ta(t,r)},Lf=(t,e,i=50)=>{const{r,g:n,b:o,a:s}=Xt.parse(t),{r:a,g:l,b:c,a:u}=Xt.parse(e),d=i/100,h=d*2-1,f=s-u,_=((h*f===-1?h:(h+f)/(1+h*f))+1)/2,C=1-_,v=r*_+a*C,y=n*_+l*C,N=o*_+c*C,x=s*d+u*(1-d);return di(v,y,N,x)},k=(t,e=100)=>{const i=Xt.parse(t);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,Lf(i,t,e)};var Sa="comm",va="rule",wa="decl",Ff="@import",If="@namespace",Of="@keyframes",Mf="@layer",Aa=Math.abs,qn=String.fromCharCode;function Ea(t){return t.trim()}function Vi(t,e,i){return t.replace(e,i)}function Df(t,e,i){return t.indexOf(e,i)}function Ne(t,e){return t.charCodeAt(e)|0}function ze(t,e,i){return t.slice(e,i)}function Yt(t){return t.length}function Nf(t){return t.length}function Ri(t,e){return e.push(t),t}var Fr=1,We=1,Ba=0,Lt=0,tt=0,Ge="";function zn(t,e,i,r,n,o,s,a){return{value:t,root:e,parent:i,type:r,props:n,children:o,line:Fr,column:We,length:s,return:"",siblings:a}}function $f(){return tt}function Rf(){return tt=Lt>0?Ne(Ge,--Lt):0,We--,tt===10&&(We=1,Fr--),tt}function Rt(){return tt=Lt<Ba?Ne(Ge,Lt++):0,We++,tt===10&&(We=1,Fr++),tt}function ue(){return Ne(Ge,Lt)}function Ki(){return Lt}function Ir(t,e){return ze(Ge,t,e)}function xi(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Pf(t){return Fr=We=1,Ba=Yt(Ge=t),Lt=0,[]}function qf(t){return Ge="",t}function en(t){return Ea(Ir(Lt-1,_n(t===91?t+2:t===40?t+1:t)))}function zf(t){for(;(tt=ue())&&tt<33;)Rt();return xi(t)>2||xi(tt)>3?"":" "}function Wf(t,e){for(;--e&&Rt()&&!(tt<48||tt>102||tt>57&&tt<65||tt>70&&tt<97););return Ir(t,Ki()+(e<6&&ue()==32&&Rt()==32))}function _n(t){for(;Rt();)switch(tt){case t:return Lt;case 34:case 39:t!==34&&t!==39&&_n(tt);break;case 40:t===41&&_n(t);break;case 92:Rt();break}return Lt}function Yf(t,e){for(;Rt()&&t+tt!==57;)if(t+tt===84&&ue()===47)break;return"/*"+Ir(e,Lt-1)+"*"+qn(t===47?t:Rt())}function Hf(t){for(;!xi(ue());)Rt();return Ir(t,Lt)}function Uf(t){return qf(Zi("",null,null,null,[""],t=Pf(t),0,[0],t))}function Zi(t,e,i,r,n,o,s,a,l){for(var c=0,u=0,d=s,h=0,f=0,m=0,_=1,C=1,v=1,y=0,N="",x=n,W=o,j=r,O=N;C;)switch(m=y,y=Rt()){case 40:if(m!=108&&Ne(O,d-1)==58){Df(O+=Vi(en(y),"&","&\f"),"&\f",Aa(c?a[c-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:O+=en(y);break;case 9:case 10:case 13:case 32:O+=zf(m);break;case 92:O+=Wf(Ki()-1,7);continue;case 47:switch(ue()){case 42:case 47:Ri(Xf(Yf(Rt(),Ki()),e,i,l),l),(xi(m||1)==5||xi(ue()||1)==5)&&Yt(O)&&ze(O,-1,void 0)!==" "&&(O+=" ");break;default:O+="/"}break;case 123*_:a[c++]=Yt(O)*v;case 125*_:case 59:case 0:switch(y){case 0:case 125:C=0;case 59+u:v==-1&&(O=Vi(O,/\f/g,"")),f>0&&(Yt(O)-d||_===0&&m===47)&&Ri(f>32?as(O+";",r,i,d-1,l):as(Vi(O," ","")+";",r,i,d-2,l),l);break;case 59:O+=";";default:if(Ri(j=ss(O,e,i,c,u,n,a,N,x=[],W=[],d,o),o),y===123)if(u===0)Zi(O,e,j,j,x,o,d,a,W);else{switch(h){case 99:if(Ne(O,3)===110)break;case 108:if(Ne(O,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Zi(t,j,j,r&&Ri(ss(t,j,j,0,0,n,a,N,n,x=[],d,W),W),n,W,d,a,r?x:W):Zi(O,j,j,j,[""],W,0,a,W)}}c=u=f=0,_=v=1,N=O="",d=s;break;case 58:d=1+Yt(O),f=m;default:if(_<1){if(y==123)--_;else if(y==125&&_++==0&&Rf()==125)continue}switch(O+=qn(y),y*_){case 38:v=u>0?1:(O+="\f",-1);break;case 44:a[c++]=(Yt(O)-1)*v,v=1;break;case 64:ue()===45&&(O+=en(Rt())),h=ue(),u=d=Yt(N=O+=Hf(Ki())),y++;break;case 45:m===45&&Yt(O)==2&&(_=0)}}return o}function ss(t,e,i,r,n,o,s,a,l,c,u,d){for(var h=n-1,f=n===0?o:[""],m=Nf(f),_=0,C=0,v=0;_<r;++_)for(var y=0,N=ze(t,h+1,h=Aa(C=s[_])),x=t;y<m;++y)(x=Ea(C>0?f[y]+" "+N:Vi(N,/&\f/g,f[y])))&&(l[v++]=x);return zn(t,e,i,n===0?va:a,l,c,u,d)}function Xf(t,e,i,r){return zn(t,e,i,Sa,qn($f()),ze(t,2,-2),0,r)}function as(t,e,i,r,n){return zn(t,e,i,wa,ze(t,0,r),ze(t,r+1,-1),r,n)}function yn(t,e){for(var i="",r=0;r<t.length;r++)i+=e(t[r],r,t,e)||"";return i}function jf(t,e,i,r){switch(t.type){case Mf:if(t.children.length)break;case Ff:case If:case wa:return t.return=t.return||t.value;case Sa:return"";case Of:return t.return=t.value+"{"+yn(t.children,r)+"}";case va:if(!Yt(t.value=t.props.join(",")))return""}return Yt(i=yn(t.children,r))?t.return=t.value+"{"+i+"}":""}const Qt={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},D={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},Wn=function(t="fatal"){let e=Qt.fatal;typeof t=="string"?(t=t.toLowerCase(),t in Qt&&(e=Qt[t])):typeof t=="number"&&(e=t),D.trace=()=>{},D.debug=()=>{},D.info=()=>{},D.warn=()=>{},D.error=()=>{},D.fatal=()=>{},e<=Qt.fatal&&(D.fatal=console.error?console.error.bind(console,At("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",At("FATAL"))),e<=Qt.error&&(D.error=console.error?console.error.bind(console,At("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",At("ERROR"))),e<=Qt.warn&&(D.warn=console.warn?console.warn.bind(console,At("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",At("WARN"))),e<=Qt.info&&(D.info=console.info?console.info.bind(console,At("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",At("INFO"))),e<=Qt.debug&&(D.debug=console.debug?console.debug.bind(console,At("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",At("DEBUG"))),e<=Qt.trace&&(D.trace=console.debug?console.debug.bind(console,At("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",At("TRACE")))},At=t=>`%c${oc().format("ss.SSS")} : ${t} : `,Ai=/<br\s*\/?>/gi,Gf=t=>t?Fa(t).replace(/\\n/g,"#br#").split("#br#"):[""],Vf=(()=>{let t=!1;return()=>{t||(Kf(),t=!0)}})();function Kf(){const t="data-temp-href-target";qe.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")||"")}),qe.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)||""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}const La=t=>(Vf(),qe.sanitize(t)),ls=(t,e)=>{var i;if(((i=e.flowchart)==null?void 0:i.htmlLabels)!==!1){const r=e.securityLevel;r==="antiscript"||r==="strict"?t=La(t):r!=="loose"&&(t=Fa(t),t=t.replace(/</g,"<").replace(/>/g,">"),t=t.replace(/=/g,"="),t=tg(t))}return t},bi=(t,e)=>t&&(e.dompurifyConfig?t=qe.sanitize(ls(t,e),e.dompurifyConfig).toString():t=qe.sanitize(ls(t,e),{FORBID_TAGS:["style"]}).toString(),t),Zf=(t,e)=>typeof t=="string"?bi(t,e):t.flat().map(i=>bi(i,e)),Jf=t=>Ai.test(t),Qf=t=>t.split(Ai),tg=t=>t.replace(/#br#/g,"<br/>"),Fa=t=>t.replace(Ai,"#br#"),eg=t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},Ia=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),ig=function(...t){const e=t.filter(i=>!isNaN(i));return Math.max(...e)},rg=function(...t){const e=t.filter(i=>!isNaN(i));return Math.min(...e)},_C=function(t){const e=t.split(/(,)/),i=[];for(let r=0;r<e.length;r++){let n=e[r];if(n===","&&r>0&&r+1<e.length){const o=e[r-1],s=e[r+1];ng(o,s)&&(n=o+","+s,r++,i.pop())}i.push(og(n))}return i.join("")},Cn=(t,e)=>Math.max(0,t.split(e).length-1),ng=(t,e)=>{const i=Cn(t,"~"),r=Cn(e,"~");return i===1&&r===1},og=t=>{const e=Cn(t,"~");let i=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),i=!0);const r=[...t];let n=r.indexOf("~"),o=r.lastIndexOf("~");for(;n!==-1&&o!==-1&&n!==o;)r[n]="<",r[o]=">",n=r.indexOf("~"),o=r.lastIndexOf("~");return i&&r.unshift("~"),r.join("")},cs=()=>window.MathMLElement!==void 0,xn=/\$\$(.*)\$\$/g,hs=t=>{var e;return(((e=t.match(xn))==null?void 0:e.length)??0)>0},yC=async(t,e)=>{t=await sg(t,e);const i=document.createElement("div");i.innerHTML=t,i.id="katex-temp",i.style.visibility="hidden",i.style.position="absolute",i.style.top="0";const r=document.querySelector("body");r==null||r.insertAdjacentElement("beforeend",i);const n={width:i.clientWidth,height:i.clientHeight};return i.remove(),n},sg=async(t,e)=>{if(!hs(t))return t;if(!cs()&&!e.legacyMathML)return t.replace(xn,"MathML is unsupported in this environment.");const{default:i}=await K(async()=>{const{default:r}=await import("./index-T9dstNa6.js").then(n=>n.iI);return{default:r}},__vite__mapDeps([0,1]),import.meta.url);return t.split(Ai).map(r=>hs(r)?`
|
|
17
17
|
<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">
|
|
18
18
|
${r}
|
|
19
19
|
</div>
|
|
20
20
|
`:`<div>${r}</div>`).join("").replace(xn,(r,n)=>i.renderToString(n,{throwOnError:!0,displayMode:!0,output:cs()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))},Yn={getRows:Gf,sanitizeText:bi,sanitizeTextOrArray:Zf,hasBreaks:Jf,splitBreaks:Qf,lineBreakRegex:Ai,removeScript:La,getUrl:eg,evaluate:Ia,getMax:ig,getMin:rg},pt=(t,e)=>e?p(t,{s:-40,l:10}):p(t,{s:-40,l:-10}),Or="#ffffff",Mr="#f2f2f2";let ag=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var e,i,r,n,o,s,a,l,c,u,d;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||p(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||p(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||pt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||pt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||k(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||k(this.tertiaryColor),this.lineColor=this.lineColor||k(this.background),this.arrowheadColor=this.arrowheadColor||k(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?$(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||"grey",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||$(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||k(this.lineColor),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||F(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.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||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||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330}),this.darkMode)for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=$(this["cScale"+f],75);else for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=$(this["cScale"+f],25);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||k(this["cScale"+f]);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this.darkMode?this["cScalePeer"+f]=this["cScalePeer"+f]||F(this["cScale"+f],10):this["cScalePeer"+f]=this["cScalePeer"+f]||$(this["cScale"+f],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=this["cScaleLabel"+f]||this.scaleLabelColor;const h=this.darkMode?-4:-1;for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||p(this.mainBkg,{h:180,s:-15,l:h*(5+f*3)}),this["surfacePeer"+f]=this["surfacePeer"+f]||p(this.mainBkg,{h:180,s:-15,l:h*(8+f*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||p(this.primaryColor,{h:64}),this.fillType3=this.fillType3||p(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||p(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||p(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||p(this.primaryColor,{h:128}),this.fillType7=this.fillType7||p(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||p(this.primaryColor,{l:-10}),this.pie5=this.pie5||p(this.secondaryColor,{l:-10}),this.pie6=this.pie6||p(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||p(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||p(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||p(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||p(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||p(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||p(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.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||p(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||p(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||p(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||p(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||p(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||p(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||wi(this.quadrant1Fill)?F(this.quadrant1Fill):$(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:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.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?$(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||p(this.primaryColor,{h:-30}),this.git4=this.git4||p(this.primaryColor,{h:-60}),this.git5=this.git5||p(this.primaryColor,{h:-90}),this.git6=this.git6||p(this.primaryColor,{h:60}),this.git7=this.git7||p(this.primaryColor,{h:120}),this.darkMode?(this.git0=F(this.git0,25),this.git1=F(this.git1,25),this.git2=F(this.git2,25),this.git3=F(this.git3,25),this.git4=F(this.git4,25),this.git5=F(this.git5,25),this.git6=F(this.git6,25),this.git7=F(this.git7,25)):(this.git0=$(this.git0,25),this.git1=$(this.git1,25),this.git2=$(this.git2,25),this.git3=$(this.git3,25),this.git4=$(this.git4,25),this.git5=$(this.git5,25),this.git6=$(this.git6,25),this.git7=$(this.git7,25)),this.gitInv0=this.gitInv0||k(this.git0),this.gitInv1=this.gitInv1||k(this.git1),this.gitInv2=this.gitInv2||k(this.git2),this.gitInv3=this.gitInv3||k(this.git3),this.gitInv4=this.gitInv4||k(this.git4),this.gitInv5=this.gitInv5||k(this.git5),this.gitInv6=this.gitInv6||k(this.git6),this.gitInv7=this.gitInv7||k(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||Or,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Mr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const lg=t=>{const e=new ag;return e.calculate(t),e};let cg=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=F(this.primaryColor,16),this.tertiaryColor=p(this.primaryColor,{h:-160}),this.primaryBorderColor=k(this.background),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=k(this.primaryColor),this.secondaryTextColor=k(this.secondaryColor),this.tertiaryTextColor=k(this.tertiaryColor),this.lineColor=k(this.background),this.textColor=k(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=F(k("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=di(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.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.sectionBkgColor=$("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=$(this.sectionBkgColor,10),this.taskBorderColor=di(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=di(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.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,i,r,n,o,s,a,l,c,u,d;this.secondBkg=F(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=F(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,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.altSectionBkgColor=this.background,this.taskBkgColor=F(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=this.darkTextColor,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=p(this.primaryColor,{h:64}),this.fillType3=p(this.secondaryColor,{h:64}),this.fillType4=p(this.primaryColor,{h:-64}),this.fillType5=p(this.secondaryColor,{h:-64}),this.fillType6=p(this.primaryColor,{h:128}),this.fillType7=p(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||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330});for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||k(this["cScale"+h]);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScalePeer"+h]=this["cScalePeer"+h]||F(this["cScale"+h],10);for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||p(this.mainBkg,{h:30,s:-30,l:-(-10+h*4)}),this["surfacePeer"+h]=this["surfacePeer"+h]||p(this.mainBkg,{h:30,s:-30,l:-(-7+h*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.scaleLabelColor;for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["pie"+h]=this["cScale"+h];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.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||p(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||p(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||p(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||p(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||p(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||p(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||wi(this.quadrant1Fill)?F(this.quadrant1Fill):$(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:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},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?$(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=F(this.secondaryColor,20),this.git1=F(this.pie2||this.secondaryColor,20),this.git2=F(this.pie3||this.tertiaryColor,20),this.git3=F(this.pie4||p(this.primaryColor,{h:-30}),20),this.git4=F(this.pie5||p(this.primaryColor,{h:-60}),20),this.git5=F(this.pie6||p(this.primaryColor,{h:-90}),10),this.git6=F(this.pie7||p(this.primaryColor,{h:60}),10),this.git7=F(this.pie8||p(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||k(this.git0),this.gitInv1=this.gitInv1||k(this.git1),this.gitInv2=this.gitInv2||k(this.git2),this.gitInv3=this.gitInv3||k(this.git3),this.gitInv4=this.gitInv4||k(this.git4),this.gitInv5=this.gitInv5||k(this.git5),this.gitInv6=this.gitInv6||k(this.git6),this.gitInv7=this.gitInv7||k(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||k(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||k(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.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||F(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||F(this.background,2)}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const hg=t=>{const e=new cg;return e.calculate(t),e};let ug=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=p(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=p(this.primaryColor,{h:-160}),this.primaryBorderColor=pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=k(this.primaryColor),this.secondaryTextColor=k(this.secondaryColor),this.tertiaryTextColor=k(this.tertiaryColor),this.lineColor=k(this.background),this.textColor=k(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,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="grey",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.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.sectionBkgColor=di(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.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var e,i,r,n,o,s,a,l,c,u,d;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||$(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||$(this.tertiaryColor,40);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScale"+h]=$(this["cScale"+h],10),this["cScalePeer"+h]=this["cScalePeer"+h]||$(this["cScale"+h],25);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||p(this["cScale"+h],{h:180});for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||p(this.mainBkg,{h:30,l:-(5+h*5)}),this["surfacePeer"+h]=this["surfacePeer"+h]||p(this.mainBkg,{h:30,l:-(7+h*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||k(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||k(this.labelTextColor);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||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=F(this.border1,23),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.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,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=p(this.primaryColor,{h:64}),this.fillType3=p(this.secondaryColor,{h:64}),this.fillType4=p(this.primaryColor,{h:-64}),this.fillType5=p(this.secondaryColor,{h:-64}),this.fillType6=p(this.primaryColor,{h:128}),this.fillType7=p(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||p(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||p(this.primaryColor,{l:-10}),this.pie5=this.pie5||p(this.secondaryColor,{l:-30}),this.pie6=this.pie6||p(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||p(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||p(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||p(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||p(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||p(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||p(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.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||p(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||p(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||p(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||p(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||p(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||p(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||wi(this.quadrant1Fill)?F(this.quadrant1Fill):$(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:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.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||p(this.primaryColor,{h:-30}),this.git4=this.git4||p(this.primaryColor,{h:-60}),this.git5=this.git5||p(this.primaryColor,{h:-90}),this.git6=this.git6||p(this.primaryColor,{h:60}),this.git7=this.git7||p(this.primaryColor,{h:120}),this.darkMode?(this.git0=F(this.git0,25),this.git1=F(this.git1,25),this.git2=F(this.git2,25),this.git3=F(this.git3,25),this.git4=F(this.git4,25),this.git5=F(this.git5,25),this.git6=F(this.git6,25),this.git7=F(this.git7,25)):(this.git0=$(this.git0,25),this.git1=$(this.git1,25),this.git2=$(this.git2,25),this.git3=$(this.git3,25),this.git4=$(this.git4,25),this.git5=$(this.git5,25),this.git6=$(this.git6,25),this.git7=$(this.git7,25)),this.gitInv0=this.gitInv0||$(k(this.git0),25),this.gitInv1=this.gitInv1||k(this.git1),this.gitInv2=this.gitInv2||k(this.git2),this.gitInv3=this.gitInv3||k(this.git3),this.gitInv4=this.gitInv4||k(this.git4),this.gitInv5=this.gitInv5||k(this.git5),this.gitInv6=this.gitInv6||k(this.git6),this.gitInv7=this.gitInv7||k(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||k(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||k(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.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Or,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Mr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const dg=t=>{const e=new ug;return e.calculate(t),e};let fg=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=F("#cde498",10),this.primaryBorderColor=pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=k(this.primaryColor),this.secondaryTextColor=k(this.secondaryColor),this.tertiaryTextColor=k(this.primaryColor),this.lineColor=k(this.background),this.textColor=k(this.background),this.THEME_COLOR_LIMIT=12,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="grey",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.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,o,s,a,l,c,u,d;this.actorBorder=$(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.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||$(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||$(this.tertiaryColor,40);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScale"+h]=$(this["cScale"+h],10),this["cScalePeer"+h]=this["cScalePeer"+h]||$(this["cScale"+h],25);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||p(this["cScale"+h],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.scaleLabelColor;for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||p(this.mainBkg,{h:30,s:-30,l:-(5+h*5)}),this["surfacePeer"+h]=this["surfacePeer"+h]||p(this.mainBkg,{h:30,s:-30,l:-(8+h*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.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=p(this.primaryColor,{h:64}),this.fillType3=p(this.secondaryColor,{h:64}),this.fillType4=p(this.primaryColor,{h:-64}),this.fillType5=p(this.secondaryColor,{h:-64}),this.fillType6=p(this.primaryColor,{h:128}),this.fillType7=p(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||p(this.primaryColor,{l:-30}),this.pie5=this.pie5||p(this.secondaryColor,{l:-30}),this.pie6=this.pie6||p(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||p(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||p(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||p(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||p(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||p(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||p(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.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||p(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||p(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||p(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||p(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||p(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||p(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||wi(this.quadrant1Fill)?F(this.quadrant1Fill):$(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:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.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||p(this.primaryColor,{h:-30}),this.git4=this.git4||p(this.primaryColor,{h:-60}),this.git5=this.git5||p(this.primaryColor,{h:-90}),this.git6=this.git6||p(this.primaryColor,{h:60}),this.git7=this.git7||p(this.primaryColor,{h:120}),this.darkMode?(this.git0=F(this.git0,25),this.git1=F(this.git1,25),this.git2=F(this.git2,25),this.git3=F(this.git3,25),this.git4=F(this.git4,25),this.git5=F(this.git5,25),this.git6=F(this.git6,25),this.git7=F(this.git7,25)):(this.git0=$(this.git0,25),this.git1=$(this.git1,25),this.git2=$(this.git2,25),this.git3=$(this.git3,25),this.git4=$(this.git4,25),this.git5=$(this.git5,25),this.git6=$(this.git6,25),this.git7=$(this.git7,25)),this.gitInv0=this.gitInv0||k(this.git0),this.gitInv1=this.gitInv1||k(this.git1),this.gitInv2=this.gitInv2||k(this.git2),this.gitInv3=this.gitInv3||k(this.git3),this.gitInv4=this.gitInv4||k(this.git4),this.gitInv5=this.gitInv5||k(this.git5),this.gitInv6=this.gitInv6||k(this.git6),this.gitInv7=this.gitInv7||k(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||k(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||k(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.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Or,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Mr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const gg=t=>{const e=new fg;return e.calculate(t),e};class pg{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=F(this.contrast,55),this.background="#ffffff",this.tertiaryColor=p(this.primaryColor,{h:-160}),this.primaryBorderColor=pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=k(this.primaryColor),this.secondaryTextColor=k(this.secondaryColor),this.tertiaryTextColor=k(this.tertiaryColor),this.lineColor=k(this.background),this.textColor=k(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.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="calculated",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.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,o,s,a,l,c,u,d;this.secondBkg=F(this.contrast,55),this.border2=this.contrast,this.actorBorder=F(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,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 h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||k(this["cScale"+h]);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this.darkMode?this["cScalePeer"+h]=this["cScalePeer"+h]||F(this["cScale"+h],10):this["cScalePeer"+h]=this["cScalePeer"+h]||$(this["cScale"+h],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.scaleLabelColor;for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||p(this.mainBkg,{l:-(5+h*5)}),this["surfacePeer"+h]=this["surfacePeer"+h]||p(this.mainBkg,{l:-(8+h*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=F(this.contrast,30),this.sectionBkgColor2=F(this.contrast,30),this.taskBorderColor=$(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=F(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=$(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,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=p(this.primaryColor,{h:64}),this.fillType3=p(this.secondaryColor,{h:64}),this.fillType4=p(this.primaryColor,{h:-64}),this.fillType5=p(this.secondaryColor,{h:-64}),this.fillType6=p(this.primaryColor,{h:128}),this.fillType7=p(this.secondaryColor,{h:128});for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["pie"+h]=this["cScale"+h];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",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||p(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||p(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||p(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||p(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||p(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||p(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||wi(this.quadrant1Fill)?F(this.quadrant1Fill):$(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:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},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.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||p(this.primaryColor,{h:-30}),this.git4=this.pie5||p(this.primaryColor,{h:-60}),this.git5=this.pie6||p(this.primaryColor,{h:-90}),this.git6=this.pie7||p(this.primaryColor,{h:60}),this.git7=this.pie8||p(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||k(this.git0),this.gitInv1=this.gitInv1||k(this.git1),this.gitInv2=this.gitInv2||k(this.git2),this.gitInv3=this.gitInv3||k(this.git3),this.gitInv4=this.gitInv4||k(this.git4),this.gitInv5=this.gitInv5||k(this.git5),this.gitInv6=this.gitInv6||k(this.git6),this.gitInv7=this.gitInv7||k(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.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Or,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Mr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}}const mg=t=>{const e=new pg;return e.calculate(t),e},ie={base:{getThemeVariables:lg},dark:{getThemeVariables:hg},default:{getThemeVariables:dg},forest:{getThemeVariables:gg},neutral:{getThemeVariables:mg}},te={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},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,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"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},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,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},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,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},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},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},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:""},block:{useMaxWidth:!0,padding:8},theme:"default",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","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16},Oa={...te,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:ie.default.getThemeVariables(),sequence:{...te.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...te.gantt,tickInterval:void 0,useWidth:void 0},c4:{...te.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...te.pie,useWidth:984},xyChart:{...te.xyChart,useWidth:void 0},requirement:{...te.requirement,useWidth:void 0},gitGraph:{...te.gitGraph,useMaxWidth:!1},sankey:{...te.sankey,useMaxWidth:!1}},Ma=(t,e="")=>Object.keys(t).reduce((i,r)=>Array.isArray(t[r])?i:typeof t[r]=="object"&&t[r]!==null?[...i,e+r,...Ma(t[r],"")]:[...i,e+r],[]),_g=new Set(Ma(Oa,"")),yg=Oa,fr=t=>{if(D.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>fr(e));return}for(const e of Object.keys(t)){if(D.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!_g.has(e)||t[e]==null){D.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){D.debug("sanitizing object",e),fr(t[e]);continue}const i=["themeCSS","fontFamily","altFontFamily"];for(const r of i)e.includes(r)&&(D.debug("sanitizing css option",e),t[e]=Cg(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const i=t.themeVariables[e];i!=null&&i.match&&!i.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}D.debug("After sanitization",t)}},Cg=t=>{let e=0,i=0;for(const r of t){if(e<i)return"{ /* ERROR: Unbalanced CSS */ }";r==="{"?e++:r==="}"&&i++}return e!==i?"{ /* ERROR: Unbalanced CSS */ }":t},Da=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,fi=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,xg=/\s*%%.*\n/gm;class Na extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}}const Ye={},Dr=function(t,e){t=t.replace(Da,"").replace(fi,"").replace(xg,`
|
|
21
21
|
`);for(const[i,{detector:r}]of Object.entries(Ye))if(r(t,e))return i;throw new Na(`No diagram type detected matching given configuration for text: ${t}`)},$a=(...t)=>{for(const{id:e,detector:i,loader:r}of t)Ra(e,i,r)},Ra=(t,e,i)=>{Ye[t]?D.error(`Detector with key ${t} already exists`):Ye[t]={detector:e,loader:i},D.debug(`Detector with key ${t} added${i?" with loader":""}`)},bg=t=>Ye[t].loader,bn=(t,e,{depth:i=2,clobber:r=!1}={})=>{const n={depth:i,clobber:r};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(o=>bn(t,o,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(o=>{t.includes(o)||t.push(o)}),t):t===void 0||i<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(o=>{typeof e[o]=="object"&&(t[o]===void 0||typeof t[o]=="object")?(t[o]===void 0&&(t[o]=Array.isArray(e[o])?[]:{}),t[o]=bn(t[o],e[o],{depth:i-1,clobber:r})):(r||typeof t[o]!="object"&&typeof e[o]!="object")&&(t[o]=e[o])}),t)},ht=bn,Tg="",kg={curveBasis:zd,curveBasisClosed:Wd,curveBasisOpen:Yd,curveBumpX:Pd,curveBumpY:qd,curveBundle:Hd,curveCardinalClosed:Xd,curveCardinalOpen:jd,curveCardinal:Ud,curveCatmullRomClosed:Vd,curveCatmullRomOpen:Kd,curveCatmullRom:Gd,curveLinear:Rd,curveLinearClosed:Zd,curveMonotoneX:Jd,curveMonotoneY:Qd,curveNatural:tf,curveStep:ef,curveStepAfter:nf,curveStepBefore:rf},Sg=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,vg=function(t,e){const i=Pa(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(i)){const s=i.map(a=>a.args);fr(s),r=ht(r,[...s])}else r=i.args;if(!r)return;let n=Dr(t,e);const o="config";return r[o]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),r[n]=r[o],delete r[o]),r},Pa=function(t,e=null){try{const i=new RegExp(`[%]{2}(?![{]${Sg.source})(?=[}][%]{2}).*
|
|
22
|
-
`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),D.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=fi.exec(t))!==null;)if(r.index===fi.lastIndex&&fi.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:o,args:s})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return D.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},wg=function(t){return t.replace(fi,"")},Ag=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function Eg(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return kg[i]??e}function Bg(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?kc.sanitizeUrl(i):i}const Lg=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let s=0;s<r;s++)if(o=o[i[s]],!o){D.error(`Function name: ${t} not found in window`);return}o[n](...e)};function qa(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Fg(t){let e,i=0;t.forEach(n=>{i+=qa(n,e),e=n});const r=i/2;return Hn(t,r)}function Ig(t){return t.length===1?t[0]:Fg(t)}const us=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},Hn=(t,e)=>{let i,r=e;for(const n of t){if(i){const o=qa(n,i);if(o<r)r-=o;else{const s=r/o;if(s<=0)return i;if(s>=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:us((1-s)*i.x+s*n.x,5),y:us((1-s)*i.y+s*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},Og=(t,e,i)=>{D.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=Hn(e,25),o=t?10:5,s=Math.atan2(e[0].y-n.y,e[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(s)*o+(e[0].x+n.x)/2,a.y=-Math.cos(s)*o+(e[0].y+n.y)/2,a};function Mg(t,e,i){const r=structuredClone(i);D.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,o=Hn(r,n),s=10+t*.5,a=Math.atan2(r[0].y-o.y,r[0].x-o.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a+Math.PI)*s+(r[0].y+o.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(r[0].y+o.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2-5):(l.x=Math.sin(a)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2),l}function Dg(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let ds=0;const Ng=()=>(ds++,"id-"+Math.random().toString(36).substr(2,12)+"-"+ds);function $g(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;n<t;n++)e+=i.charAt(Math.floor(Math.random()*r));return e}const Rg=t=>$g(t.length),Pg=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},qg=function(t,e){const i=e.text.replace(Yn.lineBreakRegex," "),[,r]=Xn(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const o=n.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(i),n},zg=wn((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),Yn.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((s,a)=>{const l=gr(`${s} `,i),c=gr(o,i);if(l>e){const{hyphenatedStrings:h,remainingWord:f}=Wg(s,e,"-",i);n.push(o,...h),o=f}else c+l>=e?(n.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===r.length&&n.push(o)}),n.filter(s=>s!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),Wg=wn((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let s="";return n.forEach((a,l)=>{const c=`${s}${a}`;if(gr(c,r)>=e){const d=l+1,h=n.length===d,f=`${c}${i}`;o.push(h?c:f),s=""}else s=c}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function Yg(t,e){return Un(t,e).height}function gr(t,e){return Un(t,e).width}const Un=wn((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,o]=Xn(i),s=["sans-serif",r],a=t.split(Yn.lineBreakRegex),l=[],c=Et("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const h of s){let f=0;const m={width:0,height:0,lineHeight:0};for(const _ of a){const C=Pg();C.text=_||Tg;const v=qg(u,C).style("font-size",o).style("font-weight",n).style("font-family",h),y=(v._groups||v)[0][0].getBBox();if(y.width===0&&y.height===0)throw new Error("svg element not in render tree");m.width=Math.round(Math.max(m.width,y.width)),f=Math.round(y.height),m.height+=f,m.lineHeight=Math.round(Math.max(m.lineHeight,f))}l.push(m)}u.remove();const d=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[d]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class Hg{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let Pi;const Ug=function(t){return Pi=Pi||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Pi.innerHTML=t,unescape(Pi.textContent)};function za(t){return"str"in t}const Xg=(t,e,i,r)=>{var n;if(!r)return;const o=(n=t.node())==null?void 0:n.getBBox();o&&t.append("text").text(r).attr("x",o.x+o.width/2).attr("y",-i).attr("class",e)},Xn=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function Wa(t,e){return ec({},t,e)}const gi={assignWithDepth:ht,wrapLabel:zg,calculateTextHeight:Yg,calculateTextWidth:gr,calculateTextDimensions:Un,cleanAndMerge:Wa,detectInit:vg,detectDirective:Pa,isSubstringInArray:Ag,interpolateToCurve:Eg,calcLabelPosition:Ig,calcCardinalityPosition:Og,calcTerminalLabelPosition:Mg,formatUrl:Bg,getStylesFromArray:Dg,generateId:Ng,random:Rg,runFunc:Lg,entityDecode:Ug,insertTitle:Xg,parseFontSize:Xn,InitIDGenerator:Hg},jg=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},Gg=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},fs="10.9.3",He=Object.freeze(yg);let yt=ht({},He),Ya,Ue=[],pi=ht({},He);const Nr=(t,e)=>{let i=ht({},t),r={};for(const n of e)Xa(n),r=ht(r,n);if(i=ht(i,r),r.theme&&r.theme in ie){const n=ht({},Ya),o=ht(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in ie&&(i.themeVariables=ie[i.theme].getThemeVariables(o))}return pi=i,ja(pi),pi},Vg=t=>(yt=ht({},He),yt=ht(yt,t),t.theme&&ie[t.theme]&&(yt.themeVariables=ie[t.theme].getThemeVariables(t.themeVariables)),Nr(yt,Ue),yt),Kg=t=>{Ya=ht({},t)},Zg=t=>(yt=ht(yt,t),Nr(yt,Ue),yt),Ha=()=>ht({},yt),Ua=t=>(ja(t),ht(pi,t),jt()),jt=()=>ht({},pi),Xa=t=>{t&&(["secure",...yt.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(D.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&Xa(t[e])}))},Jg=t=>{fr(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),Ue.push(t),Nr(yt,Ue)},pr=(t=yt)=>{Ue=[],Nr(t,Ue)},Qg={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},gs={},tp=t=>{gs[t]||(D.warn(Qg[t]),gs[t]=!0)},ja=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&tp("LAZY_LOAD_DEPRECATED")},Ga="c4",ep=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),ip=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./c4Diagram-3d4e48cf-wjCA-CL-.js");return{diagram:e}},__vite__mapDeps([2,3,0,1,4]),import.meta.url);return{id:Ga,diagram:t}},rp={id:Ga,detector:ep,loader:ip},np=rp,Va="flowchart",op=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},sp=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./flowDiagram-66a62f08-B5xcjVie.js");return{diagram:e}},__vite__mapDeps([5,6,7,8,9,0,1,4,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url);return{id:Va,diagram:t}},ap={id:Va,detector:op,loader:sp},lp=ap,Ka="flowchart-v2",cp=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},hp=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./flowDiagram-v2-96b9c2cf-bslUZjmZ.js");return{diagram:e}},__vite__mapDeps([22,6,12,7,8,9,0,1,4,13,10,11,14,15,16,17,18,19,20,21]),import.meta.url);return{id:Ka,diagram:t}},up={id:Ka,detector:cp,loader:hp},dp=up,Za="er",fp=t=>/^\s*erDiagram/.test(t),gp=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./erDiagram-9861fffd-B1x-ZWfU.js");return{diagram:e}},__vite__mapDeps([23,7,8,9,0,1,4,10,11,18,19,20]),import.meta.url);return{id:Za,diagram:t}},pp={id:Za,detector:fp,loader:gp},mp=pp,Ja="gitGraph",_p=t=>/^\s*gitGraph/.test(t),yp=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./gitGraphDiagram-72cf32ee-BnNAY3pp.js");return{diagram:e}},__vite__mapDeps([24,0,1,4]),import.meta.url);return{id:Ja,diagram:t}},Cp={id:Ja,detector:_p,loader:yp},xp=Cp,Qa="gantt",bp=t=>/^\s*gantt/.test(t),Tp=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./ganttDiagram-c361ad54-oySKvDa4.js");return{diagram:e}},__vite__mapDeps([25,0,1,26,27,4]),import.meta.url);return{id:Qa,diagram:t}},kp={id:Qa,detector:bp,loader:Tp},Sp=kp,tl="info",vp=t=>/^\s*info/.test(t),wp=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./infoDiagram-f8f76790-DqxLIqvx.js");return{diagram:e}},__vite__mapDeps([28,0,1,4]),import.meta.url);return{id:tl,diagram:t}},Ap={id:tl,detector:vp,loader:wp},el="pie",Ep=t=>/^\s*pie/.test(t),Bp=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./pieDiagram-8a3498a8-BBnaNSJ-.js");return{diagram:e}},__vite__mapDeps([29,30,20,31,27,19,0,1,4]),import.meta.url);return{id:el,diagram:t}},Lp={id:el,detector:Ep,loader:Bp},il="quadrantChart",Fp=t=>/^\s*quadrantChart/.test(t),Ip=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./quadrantDiagram-120e2f19-Bnh-DNQv.js");return{diagram:e}},__vite__mapDeps([32,26,27,0,1,4]),import.meta.url);return{id:il,diagram:t}},Op={id:il,detector:Fp,loader:Ip},Mp=Op,rl="xychart",Dp=t=>/^\s*xychart-beta/.test(t),Np=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./xychartDiagram-e933f94c-B_6b1Ojq.js");return{diagram:e}},__vite__mapDeps([33,16,17,0,1,27,31,26,18,19,20,4]),import.meta.url);return{id:rl,diagram:t}},$p={id:rl,detector:Dp,loader:Np},Rp=$p,nl="requirement",Pp=t=>/^\s*requirement(Diagram)?/.test(t),qp=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./requirementDiagram-deff3bca-CDm-DECv.js");return{diagram:e}},__vite__mapDeps([34,7,8,9,0,1,4,10,11,18,19,20]),import.meta.url);return{id:nl,diagram:t}},zp={id:nl,detector:Pp,loader:qp},Wp=zp,ol="sequence",Yp=t=>/^\s*sequenceDiagram/.test(t),Hp=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./sequenceDiagram-704730f1-CNMmBUQx.js");return{diagram:e}},__vite__mapDeps([35,3,0,1,4]),import.meta.url);return{id:ol,diagram:t}},Up={id:ol,detector:Yp,loader:Hp},Xp=Up,sl="class",jp=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},Gp=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./classDiagram-70f12bd4-vizVZzUd.js");return{diagram:e}},__vite__mapDeps([36,37,7,8,9,0,1,4,10,11,18,19,20]),import.meta.url);return{id:sl,diagram:t}},Vp={id:sl,detector:jp,loader:Gp},Kp=Vp,al="classDiagram",Zp=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},Jp=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./classDiagram-v2-f2320105-DO7izSAk.js");return{diagram:e}},__vite__mapDeps([38,37,7,8,9,0,1,4,13,10,11,14,15,16,17,18,19,20]),import.meta.url);return{id:al,diagram:t}},Qp={id:al,detector:Zp,loader:Jp},tm=Qp,ll="state",em=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},im=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./stateDiagram-587899a1-DsEPR5ou.js");return{diagram:e}},__vite__mapDeps([39,40,7,8,9,0,1,4,10,11,18,19,20]),import.meta.url);return{id:ll,diagram:t}},rm={id:ll,detector:em,loader:im},nm=rm,cl="stateDiagram",om=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},sm=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./stateDiagram-v2-d93cdb3a-Bf_7sDs_.js");return{diagram:e}},__vite__mapDeps([41,40,7,8,9,0,1,4,13,10,11,14,15,16,17,18,19,20]),import.meta.url);return{id:cl,diagram:t}},am={id:cl,detector:om,loader:sm},lm=am,hl="journey",cm=t=>/^\s*journey/.test(t),hm=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./journeyDiagram-49397b02-BJ9tbMfk.js");return{diagram:e}},__vite__mapDeps([42,3,30,20,0,1,4]),import.meta.url);return{id:hl,diagram:t}},um={id:hl,detector:cm,loader:hm},dm=um,fm=function(t,e){for(let i of e)t.attr(i[0],i[1])},gm=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},ul=function(t,e,i,r){const n=gm(e,i,r);fm(t,n)},pm=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,s=n.height;D.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;D.info(`Graph bounds: ${a}x${l}`,t),a=o+i*2,l=s+i*2,D.info(`Calculated bounds: ${a}x${l}`),ul(e,l,a,r);const c=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",c)},Ji={},mm=(t,e,i)=>{let r="";return t in Ji&&Ji[t]?r=Ji[t](i):D.warn(`No theme found for ${t}`),` & {
|
|
22
|
+
`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),D.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=fi.exec(t))!==null;)if(r.index===fi.lastIndex&&fi.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:o,args:s})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return D.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},wg=function(t){return t.replace(fi,"")},Ag=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function Eg(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return kg[i]??e}function Bg(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?kc.sanitizeUrl(i):i}const Lg=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let s=0;s<r;s++)if(o=o[i[s]],!o){D.error(`Function name: ${t} not found in window`);return}o[n](...e)};function qa(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Fg(t){let e,i=0;t.forEach(n=>{i+=qa(n,e),e=n});const r=i/2;return Hn(t,r)}function Ig(t){return t.length===1?t[0]:Fg(t)}const us=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},Hn=(t,e)=>{let i,r=e;for(const n of t){if(i){const o=qa(n,i);if(o<r)r-=o;else{const s=r/o;if(s<=0)return i;if(s>=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:us((1-s)*i.x+s*n.x,5),y:us((1-s)*i.y+s*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},Og=(t,e,i)=>{D.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=Hn(e,25),o=t?10:5,s=Math.atan2(e[0].y-n.y,e[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(s)*o+(e[0].x+n.x)/2,a.y=-Math.cos(s)*o+(e[0].y+n.y)/2,a};function Mg(t,e,i){const r=structuredClone(i);D.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,o=Hn(r,n),s=10+t*.5,a=Math.atan2(r[0].y-o.y,r[0].x-o.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a+Math.PI)*s+(r[0].y+o.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(r[0].y+o.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2-5):(l.x=Math.sin(a)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2),l}function Dg(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let ds=0;const Ng=()=>(ds++,"id-"+Math.random().toString(36).substr(2,12)+"-"+ds);function $g(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;n<t;n++)e+=i.charAt(Math.floor(Math.random()*r));return e}const Rg=t=>$g(t.length),Pg=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},qg=function(t,e){const i=e.text.replace(Yn.lineBreakRegex," "),[,r]=Xn(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const o=n.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(i),n},zg=wn((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),Yn.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((s,a)=>{const l=gr(`${s} `,i),c=gr(o,i);if(l>e){const{hyphenatedStrings:h,remainingWord:f}=Wg(s,e,"-",i);n.push(o,...h),o=f}else c+l>=e?(n.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===r.length&&n.push(o)}),n.filter(s=>s!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),Wg=wn((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let s="";return n.forEach((a,l)=>{const c=`${s}${a}`;if(gr(c,r)>=e){const d=l+1,h=n.length===d,f=`${c}${i}`;o.push(h?c:f),s=""}else s=c}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function Yg(t,e){return Un(t,e).height}function gr(t,e){return Un(t,e).width}const Un=wn((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,o]=Xn(i),s=["sans-serif",r],a=t.split(Yn.lineBreakRegex),l=[],c=Et("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const h of s){let f=0;const m={width:0,height:0,lineHeight:0};for(const _ of a){const C=Pg();C.text=_||Tg;const v=qg(u,C).style("font-size",o).style("font-weight",n).style("font-family",h),y=(v._groups||v)[0][0].getBBox();if(y.width===0&&y.height===0)throw new Error("svg element not in render tree");m.width=Math.round(Math.max(m.width,y.width)),f=Math.round(y.height),m.height+=f,m.lineHeight=Math.round(Math.max(m.lineHeight,f))}l.push(m)}u.remove();const d=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[d]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class Hg{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let Pi;const Ug=function(t){return Pi=Pi||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Pi.innerHTML=t,unescape(Pi.textContent)};function za(t){return"str"in t}const Xg=(t,e,i,r)=>{var n;if(!r)return;const o=(n=t.node())==null?void 0:n.getBBox();o&&t.append("text").text(r).attr("x",o.x+o.width/2).attr("y",-i).attr("class",e)},Xn=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function Wa(t,e){return ec({},t,e)}const gi={assignWithDepth:ht,wrapLabel:zg,calculateTextHeight:Yg,calculateTextWidth:gr,calculateTextDimensions:Un,cleanAndMerge:Wa,detectInit:vg,detectDirective:Pa,isSubstringInArray:Ag,interpolateToCurve:Eg,calcLabelPosition:Ig,calcCardinalityPosition:Og,calcTerminalLabelPosition:Mg,formatUrl:Bg,getStylesFromArray:Dg,generateId:Ng,random:Rg,runFunc:Lg,entityDecode:Ug,insertTitle:Xg,parseFontSize:Xn,InitIDGenerator:Hg},jg=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},Gg=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},fs="10.9.3",He=Object.freeze(yg);let yt=ht({},He),Ya,Ue=[],pi=ht({},He);const Nr=(t,e)=>{let i=ht({},t),r={};for(const n of e)Xa(n),r=ht(r,n);if(i=ht(i,r),r.theme&&r.theme in ie){const n=ht({},Ya),o=ht(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in ie&&(i.themeVariables=ie[i.theme].getThemeVariables(o))}return pi=i,ja(pi),pi},Vg=t=>(yt=ht({},He),yt=ht(yt,t),t.theme&&ie[t.theme]&&(yt.themeVariables=ie[t.theme].getThemeVariables(t.themeVariables)),Nr(yt,Ue),yt),Kg=t=>{Ya=ht({},t)},Zg=t=>(yt=ht(yt,t),Nr(yt,Ue),yt),Ha=()=>ht({},yt),Ua=t=>(ja(t),ht(pi,t),jt()),jt=()=>ht({},pi),Xa=t=>{t&&(["secure",...yt.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(D.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&Xa(t[e])}))},Jg=t=>{fr(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),Ue.push(t),Nr(yt,Ue)},pr=(t=yt)=>{Ue=[],Nr(t,Ue)},Qg={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},gs={},tp=t=>{gs[t]||(D.warn(Qg[t]),gs[t]=!0)},ja=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&tp("LAZY_LOAD_DEPRECATED")},Ga="c4",ep=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),ip=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./c4Diagram-3d4e48cf-CZXHUfLE.js");return{diagram:e}},__vite__mapDeps([2,3,0,1,4]),import.meta.url);return{id:Ga,diagram:t}},rp={id:Ga,detector:ep,loader:ip},np=rp,Va="flowchart",op=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},sp=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./flowDiagram-66a62f08-Dbc4Nx93.js");return{diagram:e}},__vite__mapDeps([5,6,7,8,9,0,1,4,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url);return{id:Va,diagram:t}},ap={id:Va,detector:op,loader:sp},lp=ap,Ka="flowchart-v2",cp=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},hp=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./flowDiagram-v2-96b9c2cf-j5LlfdZR.js");return{diagram:e}},__vite__mapDeps([22,6,12,7,8,9,0,1,4,13,10,11,14,15,16,17,18,19,20,21]),import.meta.url);return{id:Ka,diagram:t}},up={id:Ka,detector:cp,loader:hp},dp=up,Za="er",fp=t=>/^\s*erDiagram/.test(t),gp=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./erDiagram-9861fffd-IyJNqdw_.js");return{diagram:e}},__vite__mapDeps([23,7,8,9,0,1,4,10,11,18,19,20]),import.meta.url);return{id:Za,diagram:t}},pp={id:Za,detector:fp,loader:gp},mp=pp,Ja="gitGraph",_p=t=>/^\s*gitGraph/.test(t),yp=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./gitGraphDiagram-72cf32ee-Dd5nG_11.js");return{diagram:e}},__vite__mapDeps([24,0,1,4]),import.meta.url);return{id:Ja,diagram:t}},Cp={id:Ja,detector:_p,loader:yp},xp=Cp,Qa="gantt",bp=t=>/^\s*gantt/.test(t),Tp=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./ganttDiagram-c361ad54-CItnWrDi.js");return{diagram:e}},__vite__mapDeps([25,0,1,26,27,4]),import.meta.url);return{id:Qa,diagram:t}},kp={id:Qa,detector:bp,loader:Tp},Sp=kp,tl="info",vp=t=>/^\s*info/.test(t),wp=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./infoDiagram-f8f76790-plyhvVln.js");return{diagram:e}},__vite__mapDeps([28,0,1,4]),import.meta.url);return{id:tl,diagram:t}},Ap={id:tl,detector:vp,loader:wp},el="pie",Ep=t=>/^\s*pie/.test(t),Bp=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./pieDiagram-8a3498a8-BOz79K-l.js");return{diagram:e}},__vite__mapDeps([29,30,20,31,27,19,0,1,4]),import.meta.url);return{id:el,diagram:t}},Lp={id:el,detector:Ep,loader:Bp},il="quadrantChart",Fp=t=>/^\s*quadrantChart/.test(t),Ip=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./quadrantDiagram-120e2f19-BNSax4Yv.js");return{diagram:e}},__vite__mapDeps([32,26,27,0,1,4]),import.meta.url);return{id:il,diagram:t}},Op={id:il,detector:Fp,loader:Ip},Mp=Op,rl="xychart",Dp=t=>/^\s*xychart-beta/.test(t),Np=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./xychartDiagram-e933f94c-d54TQLOU.js");return{diagram:e}},__vite__mapDeps([33,16,17,0,1,27,31,26,18,19,20,4]),import.meta.url);return{id:rl,diagram:t}},$p={id:rl,detector:Dp,loader:Np},Rp=$p,nl="requirement",Pp=t=>/^\s*requirement(Diagram)?/.test(t),qp=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./requirementDiagram-deff3bca-BdKQCBBh.js");return{diagram:e}},__vite__mapDeps([34,7,8,9,0,1,4,10,11,18,19,20]),import.meta.url);return{id:nl,diagram:t}},zp={id:nl,detector:Pp,loader:qp},Wp=zp,ol="sequence",Yp=t=>/^\s*sequenceDiagram/.test(t),Hp=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./sequenceDiagram-704730f1-CPrfOGmY.js");return{diagram:e}},__vite__mapDeps([35,3,0,1,4]),import.meta.url);return{id:ol,diagram:t}},Up={id:ol,detector:Yp,loader:Hp},Xp=Up,sl="class",jp=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},Gp=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./classDiagram-70f12bd4-CHHFCLtW.js");return{diagram:e}},__vite__mapDeps([36,37,7,8,9,0,1,4,10,11,18,19,20]),import.meta.url);return{id:sl,diagram:t}},Vp={id:sl,detector:jp,loader:Gp},Kp=Vp,al="classDiagram",Zp=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},Jp=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./classDiagram-v2-f2320105-DhMOYQPM.js");return{diagram:e}},__vite__mapDeps([38,37,7,8,9,0,1,4,13,10,11,14,15,16,17,18,19,20]),import.meta.url);return{id:al,diagram:t}},Qp={id:al,detector:Zp,loader:Jp},tm=Qp,ll="state",em=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},im=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./stateDiagram-587899a1-DHfaNuxL.js");return{diagram:e}},__vite__mapDeps([39,40,7,8,9,0,1,4,10,11,18,19,20]),import.meta.url);return{id:ll,diagram:t}},rm={id:ll,detector:em,loader:im},nm=rm,cl="stateDiagram",om=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},sm=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./stateDiagram-v2-d93cdb3a-BkSMcdnU.js");return{diagram:e}},__vite__mapDeps([41,40,7,8,9,0,1,4,13,10,11,14,15,16,17,18,19,20]),import.meta.url);return{id:cl,diagram:t}},am={id:cl,detector:om,loader:sm},lm=am,hl="journey",cm=t=>/^\s*journey/.test(t),hm=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./journeyDiagram-49397b02-CJLyWjZc.js");return{diagram:e}},__vite__mapDeps([42,3,30,20,0,1,4]),import.meta.url);return{id:hl,diagram:t}},um={id:hl,detector:cm,loader:hm},dm=um,fm=function(t,e){for(let i of e)t.attr(i[0],i[1])},gm=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},ul=function(t,e,i,r){const n=gm(e,i,r);fm(t,n)},pm=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,s=n.height;D.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;D.info(`Graph bounds: ${a}x${l}`,t),a=o+i*2,l=s+i*2,D.info(`Calculated bounds: ${a}x${l}`),ul(e,l,a,r);const c=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",c)},Ji={},mm=(t,e,i)=>{let r="";return t in Ji&&Ji[t]?r=Ji[t](i):D.warn(`No theme found for ${t}`),` & {
|
|
23
23
|
font-family: ${i.fontFamily};
|
|
24
24
|
font-size: ${i.fontSize};
|
|
25
25
|
fill: ${i.textColor}
|
|
@@ -70,7 +70,7 @@ import{b6 as Vl,dE as ot,h0 as bt,h1 as Q,h2 as je,v as Nt,h3 as Sn,h4 as he,h5
|
|
|
70
70
|
${e}
|
|
71
71
|
`},_m=(t,e)=>{e!==void 0&&(Ji[t]=e)},ym=mm;let jn="",Gn="",Vn="";const Kn=t=>bi(t,jt()),Cm=()=>{jn="",Vn="",Gn=""},xm=t=>{jn=Kn(t).replace(/^\s+/g,"")},bm=()=>jn,Tm=t=>{Vn=Kn(t).replace(/\n\s+/g,`
|
|
72
72
|
`)},km=()=>Vn,Sm=t=>{Gn=Kn(t)},vm=()=>Gn,wm=Object.freeze(Object.defineProperty({__proto__:null,clear:Cm,getAccDescription:km,getAccTitle:bm,getDiagramTitle:vm,setAccDescription:Tm,setAccTitle:xm,setDiagramTitle:Sm},Symbol.toStringTag,{value:"Module"})),Am=D,Em=Wn,Zn=jt,kC=Ua,SC=He,Bm=t=>bi(t,Zn()),Lm=pm,Fm=()=>wm,mr={},_r=(t,e,i)=>{var r;if(mr[t])throw new Error(`Diagram ${t} already registered.`);mr[t]=e,i&&Ra(t,i),_m(t,e.styles),(r=e.injectUtils)==null||r.call(e,Am,Em,Zn,Bm,Lm,Fm(),()=>{})},Jn=t=>{if(t in mr)return mr[t];throw new Im(t)};class Im extends Error{constructor(e){super(`Diagram ${e} not found.`)}}const Om=t=>{var e;const{securityLevel:i}=Zn();let r=Et("body");if(i==="sandbox"){const s=((e=Et(`#i${t}`).node())==null?void 0:e.contentDocument)??document;r=Et(s.body)}return r.select(`#${t}`)},Mm=(t,e,i)=>{D.debug(`rendering svg for syntax error
|
|
73
|
-
`);const r=Om(e),n=r.append("g");r.attr("viewBox","0 0 2412 512"),ul(r,100,512,!0),n.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"),n.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"),n.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"),n.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"),n.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"),n.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"),n.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"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},dl={draw:Mm},Dm=dl,Nm={db:{},renderer:dl,parser:{parser:{yy:{}},parse:()=>{}}},$m=Nm,fl="flowchart-elk",Rm=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},Pm=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./flowchart-elk-definition-4a651766-
|
|
73
|
+
`);const r=Om(e),n=r.append("g");r.attr("viewBox","0 0 2412 512"),ul(r,100,512,!0),n.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"),n.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"),n.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"),n.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"),n.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"),n.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"),n.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"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},dl={draw:Mm},Dm=dl,Nm={db:{},renderer:dl,parser:{parser:{yy:{}},parse:()=>{}}},$m=Nm,fl="flowchart-elk",Rm=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},Pm=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./flowchart-elk-definition-4a651766-B6rzHwEw.js");return{diagram:e}},__vite__mapDeps([43,6,15,16,17,0,1,18,19,20,4]),import.meta.url);return{id:fl,diagram:t}},qm={id:fl,detector:Rm,loader:Pm},zm=qm,gl="timeline",Wm=t=>/^\s*timeline/.test(t),Ym=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./timeline-definition-85554ec2-9aW1_D2N.js");return{diagram:e}},__vite__mapDeps([44,30,20,0,1,4]),import.meta.url);return{id:gl,diagram:t}},Hm={id:gl,detector:Wm,loader:Ym},Um=Hm,pl="mindmap",Xm=t=>/^\s*mindmap/.test(t),jm=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./mindmap-definition-fc14e90a-BE_BelNq.js");return{diagram:e}},__vite__mapDeps([45,0,1,16,17,4]),import.meta.url);return{id:pl,diagram:t}},Gm={id:pl,detector:Xm,loader:jm},Vm=Gm,ml="sankey",Km=t=>/^\s*sankey-beta/.test(t),Zm=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./sankeyDiagram-04a897e0-gzh6unx3.js");return{diagram:e}},__vite__mapDeps([46,31,27,47,0,1,4]),import.meta.url);return{id:ml,diagram:t}},Jm={id:ml,detector:Km,loader:Zm},Qm=Jm,_l="block",t0=t=>/^\s*block-beta/.test(t),e0=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./blockDiagram-38ab4fdb-C-J430-U.js");return{diagram:e}},__vite__mapDeps([48,14,0,1,15,16,17,18,19,20,7,8,9,4,21,31,27,47]),import.meta.url);return{id:_l,diagram:t}},i0={id:_l,detector:t0,loader:e0},r0=i0;let ps=!1;const Qn=()=>{ps||(ps=!0,_r("error",$m,t=>t.toLowerCase().trim()==="error"),_r("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{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")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),$a(np,tm,Kp,mp,Sp,Ap,Lp,Wp,Xp,zm,dp,lp,Vm,Um,xp,lm,nm,dm,Mp,Qm,Rp,r0))};class yl{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text=jg(e),this.text+=`
|
|
74
74
|
`;const r=jt();try{this.type=Dr(e,r)}catch(o){this.type="error",this.detectError=o}const n=Jn(this.type);D.debug("Type "+this.type),this.db=n.db,this.renderer=n.renderer,this.parser=n.parser,this.parser.parser.yy=this.db,this.init=n.init,this.parse()}parse(){var e,i,r,n,o;if(this.detectError)throw this.detectError;(i=(e=this.db).clear)==null||i.call(e);const s=jt();(r=this.init)==null||r.call(this,s),this.metadata.title&&((o=(n=this.db).setDiagramTitle)==null||o.call(n,this.metadata.title)),this.parser.parse(this.text)}async render(e,i){await this.renderer.draw(this.text,e,i,this)}getParser(){return this.parser}getType(){return this.type}}const n0=async(t,e={})=>{const i=Dr(t,jt());try{Jn(i)}catch{const n=bg(i);if(!n)throw new Na(`Diagram ${i} not found.`);const{id:o,diagram:s}=await n();_r(o,s)}return new yl(t,e)};let ms=[];const o0=()=>{ms.forEach(t=>{t()}),ms=[]},s0="graphics-document document";function a0(t,e){t.attr("role",s0),e!==""&&t.attr("aria-roledescription",e)}function l0(t,e,i,r){if(t.insert!==void 0){if(i){const n=`chart-desc-${r}`;t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(i)}if(e){const n=`chart-title-${r}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}const c0=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Cl(t){return typeof t>"u"||t===null}function h0(t){return typeof t=="object"&&t!==null}function u0(t){return Array.isArray(t)?t:Cl(t)?[]:[t]}function d0(t,e){var i,r,n,o;if(e)for(o=Object.keys(e),i=0,r=o.length;i<r;i+=1)n=o[i],t[n]=e[n];return t}function f0(t,e){var i="",r;for(r=0;r<e;r+=1)i+=t;return i}function g0(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var p0=Cl,m0=h0,_0=u0,y0=f0,C0=g0,x0=d0,gt={isNothing:p0,isObject:m0,toArray:_0,repeat:y0,isNegativeZero:C0,extend:x0};function xl(t,e){var i="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(i+='in "'+t.mark.name+'" '),i+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(i+=`
|
|
75
75
|
|
|
76
76
|
`+t.mark.snippet),r+" "+i):r}function Ti(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=xl(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Ti.prototype=Object.create(Error.prototype);Ti.prototype.constructor=Ti;Ti.prototype.toString=function(e){return this.name+": "+xl(this,e)};var ee=Ti;function rn(t,e,i,r,n){var o="",s="",a=Math.floor(n/2)-1;return r-e>a&&(o=" ... ",e=r-a+o.length),i-r>a&&(s=" ...",i=r+a-s.length),{str:o+t.slice(e,i).replace(/\t/g,"→")+s,pos:r-e+o.length}}function nn(t,e){return gt.repeat(" ",e-t.length)+t}function b0(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var i=/\r?\n|\r|\0/g,r=[0],n=[],o,s=-1;o=i.exec(t.buffer);)n.push(o.index),r.push(o.index+o[0].length),t.position<=o.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);var a="",l,c,u=Math.min(t.line+e.linesAfter,n.length).toString().length,d=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)c=rn(t.buffer,r[s-l],n[s-l],t.position-(r[s]-r[s-l]),d),a=gt.repeat(" ",e.indent)+nn((t.line-l+1).toString(),u)+" | "+c.str+`
|